/* ==========================================================================
   Sreesha Suresh — portfolio
   Design reference: Figma "Final_homepage_version" (1444px wide)
   ========================================================================== */

:root {
  --ink: #141312;
  --black: #000;
  --text-light: #414141;
  --text-muted: #555557;
  --text-meta: #6b6b6b;
  --line: #ececec;
  --glow: #c8f7c5;
  --sticker-edge: #ededea;
  --green: #039100;
  --green-dark: #1b6a2c;   /* readable link-hover green (~6.6:1 on white) */
  --bg: #fff;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --page: 1444px;          /* design frame width */
  --gutter: 72px;          /* outer margin in design */
  --content: 1135px;       /* main column width */
  --content-left: 188px;   /* main column x in design */
  --nav-x: max(24px, calc((100vw - var(--page)) / 2 + 40px));  /* side nav left edge */
  --nav-w: 96px;           /* widest nav label ("playground") + tick */
  --nav-gap: clamp(56px, 5.5vw, 80px);  /* space between nav and content */
  --col-left: calc(var(--nav-x) + var(--nav-w) + var(--nav-gap));  /* main column x */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }   /* belt and braces: nothing can push the page sideways */
body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
u { text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
ol, ul { list-style: none; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Soft mint halo around text (tagline + off-the-clock labels) */
.glow {   /* sticker: light-green fill around the letters, a light-grey cut edge outside it, and a whisper of shadow for depth */
  text-shadow:
    1.6px 0.0px 0 var(--glow),
    1.5px 0.6px 0 var(--glow),
    1.1px 1.1px 0 var(--glow),
    0.6px 1.5px 0 var(--glow),
    0.0px 1.6px 0 var(--glow),
    -0.6px 1.5px 0 var(--glow),
    -1.1px 1.1px 0 var(--glow),
    -1.5px 0.6px 0 var(--glow),
    -1.6px 0.0px 0 var(--glow),
    -1.5px -0.6px 0 var(--glow),
    -1.1px -1.1px 0 var(--glow),
    -0.6px -1.5px 0 var(--glow),
    -0.0px -1.6px 0 var(--glow),
    0.6px -1.5px 0 var(--glow),
    1.1px -1.1px 0 var(--glow),
    1.5px -0.6px 0 var(--glow),
    2.8px 0.0px 0 var(--glow),
    2.7px 0.9px 0 var(--glow),
    2.3px 1.6px 0 var(--glow),
    1.6px 2.3px 0 var(--glow),
    0.9px 2.7px 0 var(--glow),
    0.0px 2.8px 0 var(--glow),
    -0.9px 2.7px 0 var(--glow),
    -1.6px 2.3px 0 var(--glow),
    -2.3px 1.6px 0 var(--glow),
    -2.7px 0.9px 0 var(--glow),
    -2.8px 0.0px 0 var(--glow),
    -2.7px -0.9px 0 var(--glow),
    -2.3px -1.6px 0 var(--glow),
    -1.6px -2.3px 0 var(--glow),
    -0.9px -2.7px 0 var(--glow),
    -0.0px -2.8px 0 var(--glow),
    0.9px -2.7px 0 var(--glow),
    1.6px -2.3px 0 var(--glow),
    2.3px -1.6px 0 var(--glow),
    2.7px -0.9px 0 var(--glow),
    4.0px 0.0px 0 var(--sticker-edge),
    3.9px 1.0px 0 var(--sticker-edge),
    3.5px 2.0px 0 var(--sticker-edge),
    2.8px 2.8px 0 var(--sticker-edge),
    2.0px 3.5px 0 var(--sticker-edge),
    1.0px 3.9px 0 var(--sticker-edge),
    0.0px 4.0px 0 var(--sticker-edge),
    -1.0px 3.9px 0 var(--sticker-edge),
    -2.0px 3.5px 0 var(--sticker-edge),
    -2.8px 2.8px 0 var(--sticker-edge),
    -3.5px 2.0px 0 var(--sticker-edge),
    -3.9px 1.0px 0 var(--sticker-edge),
    -4.0px 0.0px 0 var(--sticker-edge),
    -3.9px -1.0px 0 var(--sticker-edge),
    -3.5px -2.0px 0 var(--sticker-edge),
    -2.8px -2.8px 0 var(--sticker-edge),
    -2.0px -3.5px 0 var(--sticker-edge),
    -1.0px -3.9px 0 var(--sticker-edge),
    -0.0px -4.0px 0 var(--sticker-edge),
    1.0px -3.9px 0 var(--sticker-edge),
    2.0px -3.5px 0 var(--sticker-edge),
    2.8px -2.8px 0 var(--sticker-edge),
    3.5px -2.0px 0 var(--sticker-edge),
    3.9px -1.0px 0 var(--sticker-edge),
    0.5px 2.5px 1.5px rgba(0,0,0,.12);
}

/* ---------- Background grid lines ---------- */
.gridlines {
  position: absolute; inset: 0 0 auto 0; height: 100%;
  max-width: var(--page); margin: 0 auto;
  pointer-events: none; z-index: 0;
}
.gridlines span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.gridlines span:nth-child(1) { left: 4.986%; }   /*  72 / 1444 */
.gridlines span:nth-child(2) { left: 30.817%; }  /* 445 / 1444 */
.gridlines span:nth-child(3) { left: 56.648%; }  /* 818 / 1444 */
.gridlines span:nth-child(4) { left: 82.479%; }  /* 1191 / 1444 */
body { position: relative; }

/* ---------- Layout ---------- */
main, .footer { position: relative; z-index: 1; }
.wrap {
  margin-left: var(--col-left);
  margin-right: auto;
  width: min(var(--content), calc(100% - var(--col-left) - var(--gutter)));
}

/* ---------- Ruler nav (the "clicker") ---------- */
.ruler {
  position: fixed; z-index: 20;
  top: 87px;
  left: var(--nav-x);
  --step: 42px;           /* distance between labelled ticks */
}
.ruler__list { position: relative; }
.ruler__item {
  position: relative; display: flex; align-items: center; gap: 7px;
  height: 14px; margin: 0 0 0; cursor: pointer;
  color: var(--text-light); font-size: 14px; letter-spacing: -0.56px;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.ruler__tick { width: 6px; height: 1px; background: var(--text-light); transition: width .25s cubic-bezier(.3,1.6,.5,1), background .2s; }
.ruler__label { transition: transform .25s cubic-bezier(.3,1.6,.5,1), font-weight .1s; display: inline-block; }
.ruler__item:hover .ruler__tick { width: 12px; background: var(--ink); }
.ruler__item:hover .ruler__label { transform: translateX(3px); color: var(--ink); }
.ruler__item:active .ruler__label { transform: translateX(1px) scale(.96); }
.ruler__item.is-active { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.ruler__item.is-active .ruler__tick { width: 22px; height: 1.5px; opacity: 0; }
.ruler__item.is-active .ruler__label { transform: translateX(-2px); }
.ruler__minor { display: flex; flex-direction: column; gap: 13px; padding: 6.5px 0; }
.ruler__minor i { display: block; width: 4px; height: 1px; background: var(--text-light); transform-origin: left center; }
.ruler__minor i.flick { animation: flick .32s ease-out; }
@keyframes flick { 0% { transform: scaleX(1); } 35% { transform: scaleX(3.2); background: var(--ink); } 100% { transform: scaleX(1); } }
.ruler__indicator {
  position: absolute; left: 0; top: 0; width: 22px; height: 1.5px; background: var(--ink);
  transform: translateY(var(--y, 7px));
  transition: transform .42s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.ruler.is-pressed .ruler__indicator { transition-duration: .42s; }

@media (min-width: 1101px) {
  /* once the off-the-clock strip scrolls up, the nav glides down to rest above the footer */
  .ruler { transition: transform .9s cubic-bezier(.65,0,.25,1); }
  body.nav-down .ruler { transform: translateY(var(--navdrop, 0px)); }
}

/* ---------- Top links ---------- */
.toplinks {
  position: absolute; z-index: 5; top: 72px;
  right: max(71px, calc((100vw - var(--page)) / 2 + 71px));
  display: flex; gap: 28px;
  font-family: var(--serif); font-size: 18px; color: var(--text-light);
}
.lk { position: relative; display: inline-flex; align-items: baseline; transition: color .2s; outline: none; }
.lk__b, .lk__t { position: relative; display: inline-block; transition: color .2s, transform .3s cubic-bezier(.3,1.5,.5,1); }
.lk:focus-visible { outline: 1.5px solid var(--green-dark); outline-offset: 3px; }

/* hover: brackets spring apart, word goes dark green + underlined, and a small ↗ arrow appears */
.lk__a {   /* ↗ arrow that slides in inside the brackets, sized and centred to the text */
  display: inline-block; align-self: center; width: 0; height: 0.58em; margin-left: 0;
  background: var(--green-dark); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.2 8.8 8.6 1.4M3.2 1.2h5.6v5.6' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.2 8.8 8.6 1.4M3.2 1.2h5.6v5.6' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transform: translate(-3px, 3px);
  transition: width .3s cubic-bezier(.3,1.3,.5,1), margin .3s cubic-bezier(.3,1.3,.5,1), opacity .2s, transform .35s cubic-bezier(.3,1.5,.5,1);
}
.lk:hover .lk__a, .lk:focus-visible .lk__a { width: 0.58em; margin-left: 0.22em; opacity: 1; transform: none; }
.lk .lk__t { text-decoration: underline transparent; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.lk:hover .lk__t, .lk:focus-visible .lk__t { color: var(--green-dark); text-decoration-color: currentColor; }
.lk:hover .lk__b:first-child, .lk:focus-visible .lk__b:first-child { transform: translateX(-4px); }
.lk:hover .lk__b:last-child, .lk:focus-visible .lk__b:last-child { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { padding-top: 221px; display: flex; flex-direction: column; gap: 28px; }
.hero__name { display: flex; flex-direction: column; gap: 8px; }
.hero__hi { font-weight: 500; font-size: 15.5px; line-height: 24px; color: var(--black); margin-top: 0; }
.hero__name .hero__hi { margin-bottom: -4px; }
.hero__tagline {
  font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1;
  min-height: 32px; white-space: nowrap;
}
.hero__tagline { position: relative; }
.tw { transition: filter .35s ease, opacity .35s ease; }
.tw--gif { cursor: pointer; }
.hero__tagline.is-focus .tw:not(.is-on) { filter: blur(3px); opacity: .3; }
.tw-pop {   /* photo-stack GIF that pops up beside the hovered word */
  position: absolute; top: 50%; z-index: 30; width: 170px; aspect-ratio: 646 / 926; pointer-events: none;
  background: center / cover no-repeat; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.22);
  opacity: 0; transform: translateY(-72%) translateX(-8px) rotate(-4deg) scale(.85);
  transition: opacity .25s ease, transform .4s cubic-bezier(.3,1.5,.5,1);
}
.tw-pop.is-on { opacity: 1; transform: translateY(-72%) rotate(3deg) scale(1); }
@media (max-width: 560px) { .tw-pop { width: 120px; } }
.caret {
  display: inline-block; width: 2px; height: .9em; margin-left: 3px; vertical-align: -0.1em;
  background: var(--ink); animation: blink 1s steps(1) infinite;
}
.caret.is-done { animation: blink 1s steps(1) 3, fadeout .4s 3s forwards; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }

/* avatar: spins like a coin on hover */
.avatar { width: 73px; height: 72px; perspective: 600px; cursor: pointer; }
.avatar__card {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, 0deg));
  transition: transform 2s cubic-bezier(.45,.05,.25,1);
  will-change: transform;
}
.avatar__card img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar__glare { display: none; }

.hero__copy { display: flex; flex-direction: column; gap: 4px; font-size: 18px; line-height: 24px; }
.hero__copy strong { font-weight: 600; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; letter-spacing: -0.18px; white-space: nowrap; }
.brand__target { width: 12px; height: 12px; align-self: center; }
.brand img { width: 13px; height: 15px; object-fit: contain; filter: brightness(0); align-self: center; }
.brand u, .hero__community u { text-underline-offset: 4px; }

.hero__more { display: flex; flex-direction: column; gap: 24px; margin-top: 20px; }
.hero__community { font-size: 16px; line-height: 1.5; letter-spacing: -0.16px; }
.hero__community img { display: inline-block; height: 16px; width: auto; margin: 0 1px; vertical-align: -3px; }

.inline-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; }
.inline-link:hover, .inline-link:focus-visible { color: var(--green-dark); }
.inline-link .lk__a { vertical-align: -0.05em; }
.inline-link:hover .lk__a, .inline-link:focus-visible .lk__a { width: 0.58em; margin-left: 0.2em; opacity: 1; transform: none; }

/* ---------- Section titles ---------- */
.section-title {
  font-family: var(--serif); font-size: 32px; line-height: 1; letter-spacing: -1px; color: var(--ink);
  display: flex; align-items: center; gap: 4px;
}
.section-title em { font-style: italic; }
.section-title img { width: 20px; height: 20px; }
.spin-on-scroll { transform: rotate(var(--spin, 0deg)); will-change: transform; }
.section-title--center { justify-content: center; letter-spacing: -.5px; }

/* ---------- Shipped projects ---------- */
.work { margin-top: 176px; display: flex; flex-direction: column; gap: 33px; scroll-margin-top: 60px; }
.card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.card--wide { flex-direction: row; align-items: center; gap: 24px; }
.card--wide .card__media { flex: 0 0 50.75%; }
.card--wide .card__body { flex: 1; }
.card__media { position: relative; aspect-ratio: 576 / 422; overflow: hidden; background: #e9efe6; }
.card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card__ui {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  object-fit: cover; border: 1px solid #f6f6f6;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s;
}
.card__ui--sm { width: 80%; height: 79.9%; top: 9.7%; transform: translateX(-50%); border-color: #e4e4e4; }   /* 461 x 337, 41px from top */
.card__ui--rgm { width: 89%; height: 86.7%; top: auto; bottom: 0; transform: translateX(-50%); border: 0; }   /* 513 x 366, sits on the bottom edge */
.card__ui--vr { width: 90.8%; height: 75.4%; top: 12.3%; transform: translateX(-50%); border: 0; border-radius: 8px; }   /* 523 x 319 */
.card:hover .card__bg { transform: scale(1.03); }
.card:hover .card__ui { transform: translate(-50%, -2%); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.card:hover .card__ui--rgm { transform: translate(-50%, 0) scale(1.02); transform-origin: 50% 100%; }
.card__body { display: flex; flex-direction: column; gap: 0; padding-top: 8px; min-width: 0; }
.card--wide .card__body { padding: 0 0 0 8px; }   /* 24px gap + 8px = 32px to the image */
.card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px;
  font-size: 12.5px; line-height: 1.4; letter-spacing: -0.2px; color: var(--text-meta);
}
.card__tags i { font-style: normal; color: #b9b9b9; margin: 0 6px; }
.card__meta img { height: auto; flex: none; }
.card__title { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; font-weight: 600; letter-spacing: -0.9px; margin-top: 6px; color: var(--ink); text-wrap: balance; }
.card--wide .card__title { font-size: clamp(24px, 2.3vw, 32px); }
.card__desc { font-size: 14px; line-height: 1.5; letter-spacing: -0.2px; margin-top: 6px; color: #4a4a4a; max-width: 46ch; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 23px; }

/* "View project" label that follows the cursor over a project */
.card { cursor: none; }
@media (hover: none) { .card { cursor: pointer; } }
.view-label {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  background: var(--ink); color: #fff; padding: 9px 14px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.3px; white-space: nowrap;
  transform: translate(var(--vx, -100px), var(--vy, -100px)) translate(-50%, -50%) scale(.6);
  opacity: 0; transition: opacity .2s, transform .25s cubic-bezier(.3,1.5,.5,1);
}
.view-label span { display: inline-block; margin-left: 4px; transition: transform .3s; }
.view-label.is-on { opacity: 1; transform: translate(var(--vx), var(--vy)) translate(-50%, -50%) scale(1); }
.view-label.is-on span { transform: translateX(2px); }

/* ---------- Clients ---------- */
.clients { padding-top: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; flex: none; }
.clients__logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px 32px; }
.clients__logos img { max-width: none; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.clients__logos li:hover img { transform: translateY(-3px); }

/* ---------- Off the clock (pinned horizontal scroll) ---------- */
.otc {
  --s: 1;                       /* scale of the 4865x608 design canvas */
  position: relative; margin-top: 20px; z-index: 2;
  height: 200vh;                /* real value set in JS */
}
.otc__sticky {
  /* logos + strip share one pinned screen: logos at the top, grass on the bottom edge */
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(40px, 7vh, 72px); overflow-x: clip;
}
.otc__stage { position: relative; height: var(--strip-h, 608px); display: flex; align-items: flex-end; flex: none; }
.otc__track { position: relative; width: calc((4865px + var(--pad, 0px)) * var(--s)); height: calc(608px * var(--s)); will-change: transform; flex: none; }
.otc__canvas { position: absolute; left: 0; top: 0; width: calc(4865px + var(--pad, 0px)); height: 608px; transform: scale(var(--s)); transform-origin: 0 0; }
.otc__inner { position: absolute; inset: 0; transform: translateX(var(--pad, 0px)); }   /* real content, shifted right by the lead-in */
.otc__fill-grass { position: absolute; right: 100%; margin-right: -2px; top: 387px; width: 1400px; height: 221px; z-index: 2; pointer-events: none;
  background: url(../assets/img/otc-grass.webp) left top / auto 100% no-repeat; transform: scaleX(-1); }   /* mirrored so it joins seamlessly */
.otc__fill-ribbon {   /* the tail end of the ribbon, tilted to meet the ribbon's start so it runs on off the left edge */
  position: absolute; right: calc(100% + 36px - 52px); top: -6px; width: 1300px; height: 431.5px; z-index: 1; pointer-events: none;
  background: url(../assets/img/otc-ribbon.webp) right -40px top / 4941px 431.5px no-repeat;
  transform-origin: 100% 196px; transform: rotate(var(--fr, 30deg));
  -webkit-mask-image: linear-gradient(90deg, #000 98.6%, transparent); mask-image: linear-gradient(90deg, #000 98.6%, transparent);
}
.otc__grass { position: absolute; left: -1px; top: 387px; width: 5113px; height: 221px; max-width: none; z-index: 2; pointer-events: none; }
.otc__ribbon { -webkit-mask-image: linear-gradient(90deg, transparent, #000 .8%); mask-image: linear-gradient(90deg, transparent, #000 .8%); position: absolute; left: -36px; top: 101px; width: 4941px; height: 431.5px; max-width: none; z-index: 1; pointer-events: none; }
.otc__item, .otc__stack, .otc__label { position: absolute; z-index: 3; }
.otc__item { object-fit: cover; max-width: none; transform: rotate(var(--r, 0deg)); transition: transform .45s cubic-bezier(.3,1.5,.5,1); }
.otc__item:hover { transform: rotate(var(--r, 0deg)) translateY(-6px) scale(1.03); z-index: 4; }
.otc__item--border { border: 1px solid #7f7f7f; }
.otc__item--border-dark { border: 1px solid #494949; }
.otc__stack { display: flex; flex-direction: column; gap: 4px; }
.otc__stack img { width: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.3,1.5,.5,1); }
.otc__stack img:hover { transform: translateX(6px); }
/* concept-art reel: images drift down in an endless loop, fading out at the bottom and back in from the top */
.otc__reel { display: block; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.otc__reel-track { display: flex; flex-direction: column; gap: 4px; animation: reel 9s linear infinite; }
.otc__reel:hover .otc__reel-track { animation-play-state: paused; }
.otc__reel img:hover { transform: none; }
@keyframes reel { from { transform: translateY(calc(-50% - 2px)); } to { transform: translateY(0); } }   /* drifts down, re-enters from above */
@media (prefers-reduced-motion: reduce) { .otc__reel-track { animation: none; } }
.otc__label {
  font-family: var(--serif); font-style: italic; line-height: 1; color: var(--black);
  white-space: nowrap; transform: rotate(var(--r, 0deg)); transform-origin: left center; z-index: 5;
}

/* pinned-section header: title + tick progress (echoes the nav ruler) */
.otc__hud {
  position: absolute; z-index: 6; right: max(var(--gutter), calc((100vw - var(--page)) / 2 + 71px)); top: 4px;
  display: flex; align-items: flex-end; justify-content: flex-end; gap: 24px; pointer-events: none;
}
.otc__progress { display: flex; align-items: flex-end; gap: 5px; height: 14px; }
.otc__progress i { display: block; width: 1px; height: 6px; background: var(--text-light); opacity: .35; transition: height .2s, opacity .2s; }
.otc__progress i:nth-child(5n+1) { height: 10px; }
.otc__progress i.on { opacity: 1; background: var(--ink); }
.otc__progress i.now { height: 14px; width: 1.5px; opacity: 1; background: var(--ink); }
.otc__hint { font-size: 12px; color: var(--text-meta); letter-spacing: -0.2px; margin-right: 12px; white-space: nowrap; }

/* ---------- CTA ---------- */
.cta { margin-top: 143px; display: flex; justify-content: center; }
.cta__inner { position: relative; }
.cta__title { font-family: var(--serif); font-size: 184px; line-height: 1.3; letter-spacing: -1px; white-space: nowrap; color: var(--black); }
.cta__title em { font-style: italic; }
.cta__title a { display: inline-block; }
.cta__badge {
  position: absolute; left: calc(100% + 13px); top: 25px; z-index: 3;
  background: var(--green); color: #fff; padding: 8px; white-space: nowrap;
  font-weight: 500; font-size: 16px; letter-spacing: -0.64px; line-height: 1.2;
  display: inline-flex; align-items: center; min-height: calc(1.2em + 16px);
}
.cta__caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; background: #fff; animation: blink 1s steps(1) infinite; }
.cta__caret.is-done { animation: blink 1s steps(1) 2, fadeout .3s 2s forwards; }

/* "Work with me": a vine draws itself along the heading, weaving through the letters, then flowers open */
.cta__title { position: relative; z-index: 1; }
.garden { position: absolute; left: -200px; top: -200px; width: calc(100% + 400px); height: calc(100% + 400px); overflow: visible; pointer-events: none; z-index: 0; }
.garden--front { z-index: 2; }
.garden .stem { fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  transition: stroke-dashoffset var(--dout, .5s) cubic-bezier(.5,0,.75,.4) var(--out, 0s); }
.garden .leaf, .garden .flower, .garden .bud {
  transform-box: view-box; transform-origin: var(--ox) var(--oy);
  transform: rotate(var(--r0, 0deg)) scale(0); opacity: 0;
  transition: transform .45s cubic-bezier(.5,0,.75,.4) var(--out, 0s), opacity .3s var(--out, 0s);
}
.garden .leaf { transform: rotate(var(--rot)) scale(0); }
.cta__inner.is-grown .garden .stem { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur, 1s) cubic-bezier(.35,.1,.45,1) var(--in, 0s); }
.cta__inner.is-grown .garden .leaf { transform: rotate(var(--rot)) scale(1); opacity: 1; transition: transform .7s cubic-bezier(.25,1.4,.5,1) var(--in, 0s), opacity .2s var(--in, 0s); }
.cta__inner.is-grown .garden .bud { transform: scale(1); opacity: 1; transition: transform .6s cubic-bezier(.25,1.5,.5,1) var(--in, 0s), opacity .2s var(--in, 0s); }
.cta__inner.is-grown .garden .flower { transform: rotate(0deg) scale(1); opacity: 1;
  transition: transform 1.1s cubic-bezier(.2,1.25,.35,1) var(--in, 0s), opacity .35s var(--in, 0s); }
@media (prefers-reduced-motion: reduce) { .garden * { transition: none !important; } }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--page); margin: 64px auto 0; padding: 0 var(--gutter) 73px;   /* room for the garland below the heading */
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.footer__meta.is-empty { visibility: hidden; }   /* keeps the footer balanced until a city loads */
.footer__meta { font-size: 14px; line-height: 24px; color: var(--text-meta); }
.footer__links { display: flex; gap: 64px; font-family: var(--serif); font-size: 20px; color: var(--black); }

/* ---------- Focus zoom (values set in JS) ---------- */
.focusable { transform: scale(var(--fz, 1)); opacity: var(--fo, 1); transition: transform .25s ease-out, opacity .25s ease-out; will-change: transform; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s cubic-bezier(.3,1.5,.5,1);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Large tablets / small laptops: nav moves to a horizontal ruler at the top */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .wrap { margin-left: var(--gutter); margin-right: var(--gutter); width: auto; max-width: none; }

  .ruler {
    position: sticky; top: 0; left: auto;
    display: flex; align-items: center; height: 56px; padding: 0 var(--gutter);
    background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .ruler__list { display: flex; align-items: flex-end; height: 32px; }
  .ruler__item { flex-direction: column-reverse; align-items: flex-start; gap: 6px; height: auto; }
  .ruler__tick { width: 1px; height: 14px; transform: scaleY(.43); transform-origin: bottom; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
  .ruler__item:hover .ruler__tick { width: 1px; transform: scaleY(.75); }
  .ruler__item:hover .ruler__label { transform: translateY(-2px); }
  .ruler__item.is-active { font-size: 14px; letter-spacing: -0.3px; }
  .ruler__item.is-active .ruler__tick { width: 1px; height: 14px; transform: none; opacity: 0; }
  .ruler__item.is-active .ruler__label { transform: none; }
  .ruler__minor { flex-direction: row; gap: 10px; padding: 0 12px; align-self: flex-end; }
  .ruler__minor i { width: 1px; height: 4px; transform-origin: center bottom; }
  @keyframes flick { 0% { transform: scaleY(1); } 35% { transform: scaleY(3); background: var(--ink); } 100% { transform: scaleY(1); } }
  .ruler__indicator { top: auto; bottom: 12px; left: 0; width: 1.5px; height: 14px; transform: translateX(var(--x, 0px)); }

  .toplinks { top: 18px; right: var(--gutter); z-index: 25; position: absolute; font-size: 16px; gap: 16px; }
  .hero { padding-top: 88px; }
  .work { margin-top: 120px; }
  .cta__title { font-size: clamp(72px, 15vw, 184px); }
}

/* Tablets */
@media (max-width: 860px) {
  .toplinks { position: static; justify-content: flex-start; padding: 16px var(--gutter) 0; }
  .otc__hud { right: var(--gutter); }
  .otc__sticky { justify-content: space-between; padding-top: 76px; }   /* logos tuck under the top bar, strip stays on the bottom edge */
  .otc__progress { gap: 3px; }
  .otc__hint { display: none; }
  .hero { padding-top: 56px; }
  .hero__tagline { white-space: normal; }
  .hero__copy p + p { margin-top: 4px; }
  .card--wide { flex-direction: column; align-items: stretch; gap: 12px; }
  .card--wide .card__body { padding: 8px 0 0; }
  .card--wide .card__media { flex: none; }
  .cards-2 { grid-template-columns: 1fr; gap: 48px; margin-top: 15px; }
  .clients__logos { gap: 24px 28px; }
  .clients__logos img { max-height: 56px; transform-origin: center; zoom: .8; }
  .cta { margin-top: 96px; overflow-x: clip; }   /* the flower canvas is wider than the screen on phones */
  .cta__inner { display: flex; flex-direction: column; align-items: center; }
  .cta__badge { position: static; order: -1; margin-bottom: 8px; }
    .footer { flex-direction: column; gap: 16px; padding-top: 24px; margin-top: 0; text-align: center; }
  .footer__links { gap: 24px; flex-wrap: wrap; justify-content: center; }
}

/* Phones */
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .ruler { padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .ruler::-webkit-scrollbar { display: none; }
  .ruler__minor { gap: 7px; padding: 0 8px; }
  .ruler__item { font-size: 13px; }
  .toplinks { font-size: 15px; gap: 12px; flex-wrap: wrap; }
  .hero__tagline { font-size: 28px; }
  .hero__copy { font-size: 16px; line-height: 22px; }
  .hero__community { font-size: 14px; line-height: 1.5; }
  .section-title { font-size: 28px; }
  .work { margin-top: 88px; gap: 24px; }
  .card__meta { flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; flex-wrap: wrap; gap: 6px 12px; }
  .card__meta span { flex-basis: 100%; }
  .card__title { font-size: 22px; }
  .card__desc { font-size: 14px; }
  .card--wide .card__body { padding: 0; }
  .clients__logos img { zoom: .62; }
  .footer__links { font-size: 18px; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
