/* ============ Fonts (self-hosted, Latin subset; both are SIL Open Font License) ============ */
/* Inter Tight is a variable font: one file covers every weight used here (300–800) */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-tight-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-latin.woff2") format("woff2"); }

/* ============ Tokens ============ */
:root {
  --black: #000;
  --panel: #fff;
  --soft: #f0f0f0;
  --ink-64: rgba(0, 0, 0, .64);
  --ink-48: rgba(0, 0, 0, .48);
  --chip: rgba(0, 0, 0, .04);
  --chip-hover: rgba(0, 0, 0, .12);

  --blue: #0088cc;
  --pink: #ffade4;
  --green: #25a750;
  --yellow: #fff570;
  --brown: #ab6349;
  --orange: #ffa970;
  --mint: #b4e4db;
  --sky: #a3daf5;
  --red: #e95935;
  --magenta: #d747a7;

  --radius: 32px;
  --gap: 3px;
  --pad: 32px;
  --space-xl: 160px;
  /* Inter Tight first so every device renders the same face */
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Editorial New", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* scroll-padding keeps section headings clear of the fixed navbar when a page opens at #work etc. */
html { scrollbar-width: none; scroll-padding-top: 90px; }
html::-webkit-scrollbar { display: none; }
body { background: var(--black); color: #000; font-family: var(--font); font-weight: 500; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 12px; }
.serif { font-family: var(--serif); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ Panels (white rounded sheets on black) ============ */
/* overflow: clip (not just hidden) so focus or scrollIntoView can't slide a panel sideways to reach marquee content */
.panel { position: relative; background: var(--panel); border-radius: var(--radius); margin-bottom: var(--gap); overflow: hidden; overflow: clip; }
.label { display: block; padding-left: var(--pad); font-size: 48px; line-height: 1; letter-spacing: -0.04em; }

/* Generic infinite marquee: two identical sets slide left forever */
.marquee { display: flex; flex-wrap: nowrap; min-width: 100%; }
.marquee-set { display: flex; flex-wrap: nowrap; flex-shrink: 0; animation: slide var(--speed, 40s) linear infinite; }
@keyframes slide { to { transform: translateX(-100%); } }

/* ============ Intro on every page load (dots spell the name, then fly into the navbar logo) ============ */
.intro { position: fixed; inset: 0; z-index: 1000; background: #000; }
/* Difference blending keeps the white dots visible on anything: white on the black curtain, black on the white navbar */
.intro-dots { position: fixed; inset: 0; z-index: 1001; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: difference; }
body.is-loading { overflow: hidden; }

/* ============ Navbar ============ */
.navbar { position: fixed; top: 0; left: 0; z-index: 300; width: 100%; height: 80px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; background: var(--panel); border-radius: 0 0 var(--radius) var(--radius); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 30px; letter-spacing: -0.05em; }
.logo-mark { width: 40px; height: 32px; background: var(--magenta); clip-path: polygon(50% 0, 62% 38%, 100% 22%, 72% 55%, 100% 100%, 50% 72%, 0 100%, 28% 55%, 0 22%, 38% 38%); }
.nav-right { width: 50%; padding-left: 16px; display: flex; justify-content: space-between; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 200px; background: var(--chip); font-size: 24px; line-height: 1; letter-spacing: -0.05em; transition: background .2s; }
.chip:hover { background: var(--chip-hover); }
.menu { position: relative; }
.menu-icon { position: relative; width: 16px; height: 10px; border-top: 2px solid #000; border-bottom: 2px solid #000; transition: .2s; }
.menu-btn[aria-expanded="true"] .menu-icon { border: 0; }
.menu-btn[aria-expanded="true"] .menu-icon::before, .menu-btn[aria-expanded="true"] .menu-icon::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 2px; background: #000; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
.menu-list { position: absolute; top: calc(100% + 4px); left: 0; width: 240px; list-style: none; border-radius: 24px; background: rgba(0, 0, 0, .04); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
/* visibility (not just opacity) keeps the closed menu's links out of the Tab order */
.menu-list.active { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-list a { display: block; padding: 12px 16px; font-size: 24px; letter-spacing: -0.05em; border-radius: 200px; }
.menu-list a:hover { background: var(--chip); }

/* Contact button: white pill + round arrow, black ring that turns into a spinning pink gradient on hover */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.contact-btn { display: flex; align-items: center; height: 48px; }
/* isolation keeps the ring (::after) under the fill (::before) and both under the label */
.contact-pill, .contact-arrow { --fill: #fff; position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; letter-spacing: -0.04em; }
.contact-pill { padding: 12px 16px; border-radius: 200px; margin-right: 2px; }
.contact-arrow { padding: 12px; border-radius: 50%; }
.contact-arrow svg { width: 24px; height: 24px; }
.contact-pill::after, .contact-arrow::after { content: ""; position: absolute; z-index: -2; top: 50%; left: 50%; width: calc(100% + 4px); height: calc(100% + 4px); border-radius: 200px; transform: translate(-50%, -50%); background: #000; }
.contact-pill::before, .contact-arrow::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--fill); }
.contact-btn:hover .contact-pill::after, .contact-btn:hover .contact-arrow::after { background: conic-gradient(from var(--angle), var(--magenta) 0%, #000 50%, var(--magenta) 100%); animation: spin 2s linear infinite; }
@keyframes spin { to { --angle: 360deg; } }
.contact-btn.on-orange .contact-pill, .contact-btn.on-orange .contact-arrow { --fill: var(--orange); }
.contact-btn.small { height: 48px; }

/* ============ Hero + draggable sliders ============ */
.hero { margin-top: 82px; }
.slider-wrap { position: relative; padding: var(--pad) 0; }
/* min-height reserves the cards' height: script.js adds them after the first paint,
   and an empty strip would make everything below jump down when they appear */
.slider { display: flex; width: max-content; min-height: 258px; cursor: grab; touch-action: pan-y; }
.slider:active { cursor: grabbing; }
.slider .marquee-set { --speed: 70s; }
.slider:hover .marquee-set { animation-play-state: paused; }
/* Clothesline: a taut line across the hero; each .card is a hanger with a polaroid pegged to the line.
   Sizes: --pw photo width, --ph picture height, --cap caption height (the card is the line + peg + photo). */
.slider-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--pad) + 10px); height: 2px; background: #1a1a1a; }
.card { --pw: 216px; --ph: 150px; --cap: 62px; position: relative; flex-shrink: 0; width: calc(var(--pw) + 24px); height: 258px; user-select: none; transform-origin: 50% 11px; }
.pol-swing { transform-origin: 50% 11px; animation: pol-sway var(--sway-time, 3s) ease-in-out var(--sway-delay, 0s) infinite; }
@keyframes pol-sway { 0%, 100% { transform: rotate(calc(var(--tilt, 0deg) - 2deg)); } 50% { transform: rotate(calc(var(--tilt, 0deg) + 2deg)); } }
.pol-kick { position: relative; transform-origin: 50% 11px; }
/* A wooden clothes peg clipped over the line and the top of the photo */
.peg { position: absolute; z-index: 2; left: 50%; top: 0; width: 13px; height: 32px; margin-left: -6.5px; border-radius: 3px; background: linear-gradient(90deg, #c08a55 0 46%, #8a5a2e 46% 54%, #d29b62 54%); }
.peg::after { content: ""; position: absolute; left: -2px; right: -2px; top: 12px; height: 3px; border-radius: 2px; background: #9aa0a6; } /* the metal spring */
/* No shadow: a hairline edge and warm paper white keep the frame visible on the white panel */
.pol-photo { position: absolute; left: 12px; top: 20px; width: var(--pw); padding: 10px 10px 0; background: #fbf9f4; border: 1px solid rgba(0, 0, 0, .12); border-radius: 3px; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.card:hover .pol-photo { transform: translateY(4px) scale(1.03); }
.pol-pic { position: relative; height: var(--ph); overflow: hidden; border-radius: 2px; container-type: size; }
.pol-shot { position: absolute; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.pol-shot.frame-phone { right: 12cqw; top: 12cqh; height: 122cqh; }
.pol-shot.frame-browser { right: -6cqw; bottom: -12cqh; width: 92cqw; }
.pol-shot.frame-icon { left: 50%; top: 50%; height: 62cqh; transform: translate(-50%, -50%); }
.pol-shot.frame-plain { left: 10%; top: 10%; width: 80%; height: 80%; }
.pol-pic .card-initial { right: 8cqw; bottom: -26cqh; font-size: 112cqh; --dot: 4.4cqh; }
.card:hover .pol-shot.frame-phone, .card:hover .pol-shot.frame-browser { transform: translateY(-4cqh); }
.pol-caption { height: var(--cap); display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 2px; }
.pol-caption .name { font-size: 30px; line-height: 1; letter-spacing: -0.01em; }
.pol-caption .tagline { overflow: hidden; font-size: 12px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; color: rgba(0, 0, 0, .55); }
.card .view { position: absolute; right: 8px; bottom: 10px; padding: 5px 11px; border-radius: 200px; background: #000; color: #fff; font: inherit; font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s, transform .2s, background .2s; }
.card:hover .view, .card:focus-within .view { opacity: 1; transform: none; pointer-events: auto; }
.card .view:hover { background: var(--magenta); }
.motion-paused .pol-swing { animation-play-state: paused; }
/* Device frames — used on the slider cards and in the project sheet gallery */
.frame { position: relative; flex-shrink: 0; overflow: hidden; background: #000; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.frame-phone { aspect-ratio: 9 / 19; padding: 5px; border-radius: 26px; }
.frame-phone img { border-radius: 21px; }
.frame-browser { aspect-ratio: 16 / 11; border-radius: 12px; display: flex; flex-direction: column; background: #1c1c1e; }
.frame-bar { flex: none; height: 18px; background: radial-gradient(circle at 11px 9px, #ff5f57 3.5px, transparent 4px), radial-gradient(circle at 23px 9px, #febc2e 3.5px, transparent 4px), radial-gradient(circle at 35px 9px, #28c840 3.5px, transparent 4px), #2c2c2e; }
.frame-browser img { flex: 1; min-height: 0; }
.frame-icon { aspect-ratio: 1; border-radius: 26%; }
.frame-plain { border-radius: 20px; background: none; }
.frame-plain img { object-fit: contain; }

.card-initial { position: absolute; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
/* No screenshot yet: the project's initial as a big dot-matrix letter (--dot = grid spacing) */
.card-initial, .ps-initial { --dot: 3.6cqh; font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: transparent;
  background: radial-gradient(circle, rgba(0, 0, 0, .82) calc(var(--dot) * .26), transparent calc(var(--dot) * .31)) 0 0 / var(--dot) var(--dot);
  -webkit-background-clip: text; background-clip: text; }
.card-initial { right: 6cqw; bottom: -24cqh; font-size: 100cqh; }
.card:hover .card-initial { transform: translateY(-3.5cqh); }
.c0 { background: var(--blue); } .c1 { background: var(--pink); } .c2 { background: var(--green); }
.c3 { background: var(--yellow); } .c4 { background: var(--brown); } .c5 { background: var(--orange); }

/* Spinning "Let's Talk" sticker: beside the headline at the hero's right edge, raised clear of the
   floating Play music button (the hero's bottom often meets the screen's bottom);
   on narrow screens it sits on the cards’ bottom-right edge instead (see the 860px rules) */
/* bottom: on short screens, lift it so it clears the button zone at the top of the page
   (hero height + 82px above the hero + 66px button zone - screen height), within 76–110px */
.talk-sticker { position: absolute; z-index: 5; right: var(--pad); bottom: clamp(76px, calc(100% + 148px - 100vh), 110px); width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; }
.talk-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: ring-spin 16s linear infinite; }
.talk-ring text { font-size: 19px; font-weight: 600; letter-spacing: .14em; fill: #000; }
.talk-core { --reveal: var(--magenta); position: relative; isolation: isolate; overflow: hidden; width: 46%; height: 46%; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.talk-core svg { width: 44%; height: 44%; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.talk-sticker:hover .talk-core, .talk-sticker:focus-visible .talk-core { transform: scale(1.1); }
.talk-sticker:hover .talk-core svg, .talk-sticker:focus-visible .talk-core svg { transform: rotate(45deg); }
/* Short laptop screens (≤760px tall, e.g. 1366×768 minus the browser bars): a smaller sticker that may rise
   further, so at the top of the page it clears both the intro text above and the floating buttons below */
@media (min-width: 1101px) and (max-height: 760px) {
  .talk-sticker { width: 104px; height: 104px; bottom: clamp(76px, calc(100% + 148px - 100vh), 164px); }
  .talk-ring text { font-size: 21px; }
}

/* Circular reveal: a fill circle grows from the pointer's entry point (--x/--y set in script.js) */
.reveal { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--reveal, #000); pointer-events: none;
  clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); transition: clip-path .55s cubic-bezier(.22, 1, .36, 1); }
.contact-pill:hover > .reveal, .contact-arrow:hover > .reveal,
.contact-pill:focus-visible > .reveal, .contact-arrow:focus-visible > .reveal,
.contact-btn:focus-visible .reveal,
.talk-sticker:hover .reveal, .talk-sticker:focus-visible .reveal { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.contact-pill, .contact-arrow { transition: color .3s; }
.contact-pill:hover, .contact-arrow:hover, .contact-pill:focus-visible, .contact-arrow:focus-visible, .contact-btn:focus-visible .contact-pill, .contact-btn:focus-visible .contact-arrow { color: #fff; }

.hero-text { display: flex; flex-direction: column; padding: 0 var(--pad) var(--pad); }
.right-text { width: 50%; margin-left: auto; padding-left: 16px; color: var(--ink-64); font-size: 24px; line-height: 1; letter-spacing: -0.02em; }
.hero-text .right-text { margin-bottom: var(--space-xl); }
/* Hero intro: a bigger black lead line, then the body, then the closing line, each on its own line */
.hero-lead { display: block; margin-bottom: 12px; color: #000; font-size: 1.35em; letter-spacing: -0.035em; }
.hero-closer { display: block; margin-top: 12px; }

/* Hero buddies: a typing laptop and its steaming mug in the space left of the intro, drawn like the sketch
   (plain outlines, dot eyes). The drawing is as tall as the intro (absolutely placed, so it never makes the hero
   taller), and pops in once the cursors have built the hero. */
.hero-intro-row { display: flex; align-items: stretch; }
.hero-buddies { position: relative; flex: 1; min-width: 0; margin-right: 32px; transition: opacity .5s, transform .7s cubic-bezier(.34, 1.56, .64, 1); }
body.is-loading .hero-buddies, .hero.is-building .hero-buddies { opacity: 0; transform: translateY(24px) scale(.9); }
.hero-buddies svg { position: absolute; left: 50%; bottom: 0; height: min(75%, 150px); /* about three quarters of the intro's height */ max-width: 100%; overflow: visible; transform: translateX(-50%); }
.hero-buddies [data-buddy] { cursor: pointer; }
.b-out { stroke: #111; stroke-width: 2.5; stroke-linejoin: round; }
.b-pink { fill: var(--pink); } .b-white { fill: #fff; } .b-yellow { fill: var(--yellow); }
.b-handle { fill: none; }
.b-anchor { fill: none; } /* where an eye rests: the eye-tracking measures from here */
.b-pupil { fill: #111; transition: transform .12s ease-out; }
.b-smile, .b-happy path { fill: none; stroke: #111; stroke-width: 2; stroke-linecap: round; }
.b-steam path { fill: none; stroke: #999; stroke-width: 2; stroke-linecap: round; }
.b-pop { font: 700 9px var(--font); fill: var(--magenta); text-anchor: middle; opacity: 0; }
/* Idle life, as in the sketch: the laptop bobs as it types and the steam rises */
.b-bob { animation: b-type .4s ease-in-out infinite alternate; }
@keyframes b-type { to { transform: translateY(1px); } }
.b-steam path { animation: b-steam 2s ease-in-out infinite; }
.b-steam path:nth-child(2) { animation-delay: .7s; }
@keyframes b-steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-14px); } }
.b-sway { transform-box: fill-box; transform-origin: 50% 100%; }
/* Blink (script.js adds .blink-laptop / .blink-mug for a moment) */
.b-eyes g { transform-box: fill-box; transform-origin: center; transition: transform .08s; }
.hero-buddies.blink-laptop .b-laptop .b-eyes g, .hero-buddies.blink-mug .b-mug .b-eyes g { transform: scaleY(.1); }
/* Click the laptop: happy ^ ^ eyes, typing at double speed and a little </> popping up. Click the mug: a sip wiggle and a puff */
.b-happy { opacity: 0; }
.laptop-happy .b-laptop .b-eyes { opacity: 0; } .laptop-happy .b-happy { opacity: 1; }
.laptop-happy .b-bob { animation-duration: .12s; }
.laptop-happy .b-pop { animation: b-pop 1.2s ease-out; }
@keyframes b-pop { 0% { opacity: 0; transform: translateY(4px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.mug-sip .b-sway { animation: b-sip .6s ease-in-out 2; }
@keyframes b-sip { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.mug-sip .b-steam path { animation-duration: .8s; }
.motion-paused .hero-buddies * { animation-play-state: paused; }
.hero h1 { font-size: 120px; font-weight: 300; line-height: .86; letter-spacing: -0.06em; text-wrap: balance; }
/* The whole headline should fit on the first screen. The gap under the intro gives way first (830px = navbar,
   slider, intro, headline and padding at full size); on short screens the intro and headline also step down a size.
   ".hero .hero-text" outranks the plain ".hero h1" sizes, including the tablet ones further down. */
@media (min-width: 721px) {
  /* The free space around the intro: 40% sits above it (nudging it down from the photos), 60% below, but never
     less than 24px below, so on short screens the headline keeps its breathing room and the nudge gives way */
  .hero-text { --intro-gap: clamp(24px, calc(100vh - 830px), var(--space-xl)); --intro-below: max(24px, calc(var(--intro-gap) * .6)); --intro-above: calc(var(--intro-gap) - var(--intro-below)); }
  .hero-text .right-text { margin-top: var(--intro-above); margin-bottom: var(--intro-below); }
  /* the row is the intro plus that space, so the buddies stand on the space below, level with the text's last line */
  .hero-buddies svg { bottom: var(--intro-below); height: min(calc((100% - var(--intro-gap)) * .75), 150px); }
}
@media (min-width: 721px) and (max-height: 860px) { .hero .hero-text .right-text { font-size: 20px; } .hero .hero-text h1 { font-size: min(100px, 8.6vw); } }
@media (min-width: 721px) and (max-height: 760px) { .hero .hero-text .right-text { font-size: 18px; } .hero .hero-text h1 { font-size: min(84px, 8vw); } }

/* ============ Toolkit pills ============ */
/* Toolkit ribbon: one big line of type, bold and serif words in turn (like the headline), pink ✦ between */
.clients { padding: var(--pad) 0; }
.clients-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-right: var(--pad); margin-bottom: 36px; }
.ribbon-note { max-width: 280px; font-size: 16px; line-height: 1.25; letter-spacing: -0.01em; text-align: right; color: var(--ink-64); }
.clients .marquee { min-height: 136px; } /* reserves the ribbon's height before script.js adds the words */
.ribbon .marquee-set { --speed: 70s; align-items: center; padding-bottom: 8px; }
.ribbon:hover .marquee-set { animation-play-state: paused; }
.tool-word { display: inline-flex; align-items: flex-start; flex-shrink: 0; padding: 0 .2em; border-radius: 200px; font-size: 112px; font-weight: 800; line-height: 1.15; letter-spacing: -0.055em; white-space: nowrap; transition: background .25s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.tool-word.serif { letter-spacing: -0.02em; }
.tool-word:hover { background: var(--soft); transform: rotate(-2deg); }
.mark-pink { background: var(--pink); } .mark-yellow { background: var(--yellow); } .mark-sky { background: var(--sky); }
.mark-mint { background: var(--mint); } .mark-orange { background: var(--orange); }
.tool-word[class*="mark-"]:hover { background-color: var(--soft); }
.tool-count { margin: .3em 0 0 .12em; font-family: var(--font); font-size: .24em; font-weight: 700; line-height: 1; letter-spacing: 0; vertical-align: baseline; color: var(--magenta); }
.tool-sep { flex-shrink: 0; margin: 0 .45em; font-size: 40px; color: var(--magenta); }

/* ============ About ============ */
/* flow-root keeps the stats strip's bottom margin inside the panel instead of leaking out as a gap */
.thinking { border-radius: 40px; display: flow-root; }
.thinking-top { display: flex; justify-content: space-between; padding: var(--pad) var(--pad) 0; margin-bottom: var(--space-xl); }
.slashes { font-size: 48px; letter-spacing: -0.04em; }
.thinking-left { width: 50%; display: flex; flex-direction: column; gap: 40px; }
/* Dot-matrix portrait card: tilted like a sticker, straightens on hover */
.dots-wrap { width: min(420px, 80%); aspect-ratio: 4 / 5; margin-left: 12%; border-radius: 32px; overflow: hidden; background: #000; transform: rotate(-3deg); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.dots-wrap:hover { transform: rotate(0deg) scale(1.02); }
.dots-wrap canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
/* The text sits level with the portrait's middle, not up at the slashes (the top padding skips the slashes and the gap under them) */
.thinking .texts { width: 50%; padding-left: 16px; padding-top: 88px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 32px; }
/* About copy: a big lead line, two reading paragraphs, and a bold closing line */
.about-copy { display: flex; flex-direction: column; gap: 18px; max-width: 600px; }
.about-copy p { font-size: 22px; line-height: 1.35; letter-spacing: -0.02em; color: var(--ink-64); }
.thinking .about-copy .about-lead { margin-bottom: 6px; font-size: 48px; line-height: 1; letter-spacing: -0.04em; }
/* The lead in stepped sizes, solid black: the joining words small, "designer's eye" huge, the last line big.
   Sizes follow the text column's width (cqw), so "designer's eye" spans it on every screen */
.about-copy { width: 100%; container-type: inline-size; }
.thinking .about-copy .about-lead { color: #000; }
.about-lead > span { display: block; }
.about-lead .lead-s { margin-bottom: 6px; font-size: 23px; font-size: max(17px, 3.9cqw); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.about-lead .lead-xl { margin-bottom: 14px; font-size: 96px; font-size: 16.1cqw; font-weight: 800; line-height: .92; letter-spacing: -0.055em; }
.about-lead .lead-l { margin-top: 4px; font-size: 62px; font-size: 10.2cqw; font-weight: 800; line-height: 1.02; letter-spacing: -0.05em; }
/* Rolling ideas: script.js turns "random ideas" into a pink tag, as wide as its longest word so the line never
   reflows, whose words roll up one after another (the list repeats its first word at the end for a seamless loop) */
/* The words are set a touch smaller than the lead so the tag takes about the room "random ideas" did */
.idea-roll.is-rolling { --row: 1.12em; display: inline-block; height: calc(var(--row) + 5px); overflow: hidden; vertical-align: -0.24em; padding: 0 .1em; border: 2.5px solid #000; border-radius: .28em; background: var(--pink); color: #000; font-size: .9em; transform: rotate(-2deg); }
.idea-roll-track { display: block; transition: transform .6s cubic-bezier(.68, -0.35, .32, 1.35); }
.idea-roll-track > span { display: block; width: max-content; height: var(--row); margin: 0 auto; line-height: var(--row); white-space: nowrap; }
.idea-roll-track.no-anim { transition: none; }
.about-copy .about-kicker { font-size: 26px; font-weight: 700; line-height: 1.4; letter-spacing: -0.03em; color: #000; }
/* Verb stickers: tilted pills in the site's sticker colours (each sets --c and --r), outlined like the rolling tag */
.verb { position: relative; display: inline-block; padding: 0 .36em; border: 2.5px solid #000; border-radius: 200px; background: var(--c); line-height: 1.2; transform: rotate(var(--r, 0deg)); user-select: none; }
@media (pointer: fine) { .verb { cursor: grab; } .verb:active { cursor: grabbing; } }
/* Fact stickers: die-cut stickers (white edge + hairline, no shadow) scattered under the text, never over the portrait.
   The tilt and hover live on .fact-face; GSAP moves the <li> (slap-in and drag), so the two never fight. */
.fact-stickers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; max-width: 560px; list-style: none; }
.fact:nth-child(even) { margin-top: 18px; }
.fact-face { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border: 3px solid #fff; outline: 1px solid rgba(0, 0, 0, .12); color: #000; font-size: 20px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; text-align: center; white-space: nowrap; user-select: none; transform: rotate(var(--r, 0deg)); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.fact-face:hover { transform: rotate(0deg) scale(1.06); }
a.fact-face:hover, button.fact-face:hover { text-decoration: underline; text-underline-offset: 3px; }
.fact-pill .fact-face { border-radius: 200px; }
.fact-tag .fact-face { border-radius: 12px; }
.fact-round .fact-face { width: 128px; height: 128px; padding: 16px; border-radius: 50%; white-space: normal; }
.fact-scallop .fact-face { width: 140px; height: 140px; padding: 26px; border: 0; outline: 0; background-size: 100% 100%; white-space: normal; }
.since { position: relative; width: 760px; height: 300px; margin: 0 auto 32px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.since-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #000; stroke-width: 2; }
.since h2 { position: relative; font-size: 120px; line-height: 1; letter-spacing: -0.06em; white-space: nowrap; }
.since small { position: relative; font-size: 16px; letter-spacing: -0.02em; margin-top: 4px; }
.stats { margin-bottom: var(--pad); }
.stats .marquee-set { --speed: 30s; }
.stat { position: relative; width: 480px; height: 480px; flex-shrink: 0; margin-right: -40px; border-radius: 50%; border: 6px solid #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
.stat b { font-size: 240px; line-height: .8; font-weight: 500; letter-spacing: -0.07em; }
.stat span { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -0.01em; }
.stat:nth-child(5n+1) { background: var(--pink); } .stat:nth-child(5n+2) { background: var(--yellow); }
.stat:nth-child(5n+3) { background: var(--sky); } .stat:nth-child(5n+4) { background: var(--green); }
.stat:nth-child(5n+5) { background: var(--orange); }

/* ============ Services ============ */
/* Each card sticks under the navbar, a little lower than the one before, so the next slides up over it like a page
   on a pile. script.js sets --depth (how many cards now cover it) and the covered card shrinks back and dims. */
.services { padding: var(--pad) 0; }
.services .label { margin-bottom: 48px; }
.service-stack { display: flex; flex-direction: column; gap: 32px; padding: 0 var(--pad); }
.service-card { --depth: 0; position: sticky; top: calc(104px + var(--i) * 22px); display: flex; gap: 40px; height: min(560px, calc(100vh - 210px)); padding: 40px; border-radius: var(--radius); overflow: hidden; color: #000; transform-origin: 50% 0; transform: scale(calc(1 - var(--depth) * .05)); filter: brightness(calc(1 - var(--depth) * .2)); will-change: transform; }
.service-card:focus-visible { outline-offset: -6px; border-radius: var(--radius); }
.service-info { flex: 1 1 50%; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.service-top { display: flex; gap: 20px; font-size: 18px; letter-spacing: -0.02em; color: rgba(0, 0, 0, .6); }
.service-title { display: flex; align-items: center; gap: 24px; }
.service-title h3 { font-size: 120px; line-height: .9; letter-spacing: -0.06em; font-weight: 800; }
.service-title svg { width: 88px; height: 88px; flex-shrink: 0; }
.service-info p { max-width: 520px; font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; color: rgba(0, 0, 0, .72); }
.service-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.service-chips span { padding: 8px 14px; border-radius: 200px; background: rgba(255, 255, 255, .5); font-size: 18px; letter-spacing: -0.02em; }
.service-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 200px; background: #000; color: #fff; font-size: 20px; letter-spacing: -0.03em; transition: transform .2s; }
.service-cta svg { width: 20px; height: 20px; }
.service-card:hover .service-cta { transform: translateX(6px); }
/* Screenshots fanned out in their device frames (--x / --r come from script.js) */
.service-shots { position: relative; flex: 1 1 50%; min-width: 0; }
.service-shots .frame { position: absolute; top: 50%; left: calc(50% + var(--x, 0) * 1%); transform: translate(-50%, -50%) rotate(var(--r, 0deg)); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.service-card:hover .service-shots .frame { transform: translate(-50%, -52%) rotate(calc(var(--r, 0deg) * 1.4)); }
.service-shots .frame-browser { width: 58%; }
.service-shots .frame-phone { height: 92%; }
.service-shots .frame-icon { width: 46%; }
.service-shots > svg { position: absolute; top: 50%; left: 50%; width: 52%; height: 52%; transform: translate(-50%, -50%); stroke-width: 1.2; }
.s0 { background: var(--pink); } .s1 { background: var(--brown); } .s2 { background: var(--yellow); } .s3 { background: var(--red); }
.motion-paused .service-card { transform: none; filter: none; }

/* ============ Projects (work list) ============ */
.projects { padding: var(--pad) 0; border-radius: 40px; }
.projects-head { display: flex; justify-content: space-between; padding-right: var(--pad); margin-bottom: 56px; }
.projects-head .label { padding-left: var(--pad); }
.projects-head .right-text { margin-left: 0; max-width: 50%; }
.work-filter { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -24px var(--pad) 32px; font-size: 24px; letter-spacing: -0.04em; }
.work-filter[hidden] { display: none; }

/* Record crate: the picked project's sleeve on the left with its vinyl sliding out, the track details on the right */
.crate-stage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 0 var(--pad); }
.deck { position: relative; width: min(440px, 64%); aspect-ratio: 1; }
.vinyl { position: absolute; inset: 3%; border-radius: 50%; transition: transform .6s cubic-bezier(.3, 1.25, .5, 1); }
.deck.is-out .vinyl { transform: translateX(46%); }
/* The shine stays put while the grooves turn under it, like light on a real record */
.vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 255, .14) 13%, transparent 20% 56%, rgba(255, 255, 255, .1) 62%, transparent 70%); }
.vinyl-disc { position: relative; width: 100%; height: 100%; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 2px 4px); animation: vinyl-spin 5s linear infinite; }
body.music-on .vinyl-disc { animation-duration: 1.8s; }
@keyframes vinyl-spin { to { transform: rotate(360deg); } }
.vinyl-label { position: absolute; inset: 32%; border-radius: 50%; display: grid; place-items: center; padding: 12%; text-align: center; font-size: clamp(10px, 1.1vw, 15px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.vinyl-label::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #000; }
/* The sleeve (album cover). Its art is sized in container units, so the same rules fit the small crate covers */
.sleeve { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: 10px; cursor: pointer; container-type: size; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.sleeve:hover { transform: rotate(-1.5deg) scale(1.01); }
.cover-name { position: absolute; z-index: 1; left: 7cqw; top: 6cqw; max-width: 86cqw; font-size: 13cqw; font-weight: 800; line-height: .9; letter-spacing: -0.06em; }
.cover-meta { position: absolute; z-index: 1; left: 7cqw; bottom: 6cqw; font-size: max(10px, 3.4cqw); letter-spacing: .08em; text-transform: uppercase; color: rgba(0, 0, 0, .62); }
.cover-shot { position: absolute; }
.cover-shot.frame-phone { right: 9cqw; top: 25cqh; height: 96cqh; }
.cover-shot.frame-browser { right: -5cqw; bottom: -7cqh; width: 86cqw; }
.cover-shot.frame-icon { right: 9cqw; bottom: 9cqh; width: 44cqw; }
.sleeve .card-initial { right: 6cqw; bottom: -22cqh; font-size: 96cqh; }
.sleeve:has(.frame-browser) .cover-meta, .sleeve:has(.card-initial) .cover-meta { top: 22cqw; bottom: auto; } /* clear of art at the bottom */

.track { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.track > * { transition: opacity .25s, transform .25s; }
.track.is-swapping > * { opacity: 0; transform: translateY(10px); }
.track-top { align-self: stretch; display: flex; justify-content: space-between; align-items: center; }
.track-no { font-size: 18px; letter-spacing: -0.02em; color: var(--ink-48); }
.track-nav { display: flex; gap: 6px; }
.track-nav button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #000; font-size: 22px; transition: background .2s, color .2s; }
.track-nav button:hover { background: #000; color: #fff; }
.track h3 { font-size: 96px; line-height: .9; letter-spacing: -0.06em; font-weight: 800; }
.track-tagline { font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink-64); }
.track-stack { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.track-stack li { padding: 6px 12px; border-radius: 200px; background: var(--chip); font-size: 15px; letter-spacing: -0.01em; }
.track-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.track-actions a, .track-open { padding: 12px 18px; border-radius: 200px; border: 2px solid #000; font-size: 20px; letter-spacing: -0.03em; white-space: nowrap; transition: background .2s, color .2s; }
.track-open { background: #000; color: #fff; }
.track-actions a:hover { background: #000; color: #fff; }
.track-open:hover { background: var(--magenta); border-color: var(--magenta); }

/* The crate: covers lean back in a box, the picked one stands up out of it. Only the crate scrolls sideways. */
.crate-scroll { margin-top: 48px; padding: 56px var(--pad) 28px; overflow-x: auto; scrollbar-width: none; }
.crate-scroll::-webkit-scrollbar { display: none; }
.crate-box { position: relative; width: max-content; margin: 0 auto; }
.crate { display: flex; gap: 12px; padding: 0 28px; list-style: none; perspective: 900px; }
.work-row[hidden] { display: none; }
.crate-record { display: block; border-radius: 8px; transform-origin: 50% 100%; transform: rotateX(-12deg); transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.crate-record:hover { transform: translateY(-26px); }
.is-current .crate-record { transform: translateY(-46px) rotate(-3deg); }
.crate-record:focus-visible { outline-offset: 4px; border-radius: 8px; }
.mini-cover { position: relative; display: block; width: 124px; height: 124px; overflow: hidden; border-radius: 8px; container-type: size; }
.mini-name { position: absolute; z-index: 1; left: 9cqw; top: 8cqw; right: 6cqw; font-size: 15cqw; font-weight: 800; line-height: .9; letter-spacing: -0.05em; text-align: left; }
.mini-shot { position: absolute; object-fit: cover; object-position: top; background: #000; }
.mini-phone { right: 10cqw; top: 34cqh; width: 40cqw; height: 84cqh; border: 3px solid #000; border-radius: 10px; }
.mini-browser { right: -6cqw; bottom: -6cqh; width: 84cqw; height: 54cqh; border: 3px solid #1c1c1e; border-top-width: 9px; border-radius: 6px; }
.mini-icon { right: 10cqw; bottom: 10cqh; width: 46cqw; height: 46cqw; border-radius: 26%; }
.mini-cover .card-initial { right: 6cqw; bottom: -20cqh; font-size: 92cqh; --dot: 4.6cqh; }
/* The crate's front panel hides the lower part of the covers */
.crate-front { position: absolute; left: 0; right: 0; bottom: -20px; z-index: 2; height: 86px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 28px 16px; border-radius: 18px 18px 26px 26px; background: #111; color: #fff; font-size: 18px; letter-spacing: -0.02em; pointer-events: none; }
.crate-front span:last-child { color: rgba(255, 255, 255, .6); }
.motion-paused .vinyl-disc { animation-play-state: paused; }

/* ============ Journey timeline ============ */
/* Oldest first, one sticker per stage. Everything on a sticker is sized in cqw (its own width),
   so a sticker of any size fits its words the same way */
.journey { padding: var(--pad) 0 48px; }
.journey .label { margin-bottom: 56px; }
.timeline { display: flex; gap: 40px; padding: 12px var(--pad) 16px; list-style: none; }
.step { position: relative; flex: 1 1 0; min-width: 0; max-width: 340px; container-type: inline-size; }
/* Auto margins centre the row when it fits, yet let it scroll from the very first sticker when it doesn't */
.step:first-child { margin-left: auto; }
.step:last-child { margin-right: auto; }
/* The dashed arrow on to the next stage */
.step:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: 100%; width: 40px; height: 16px; margin-top: -8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='3'%3E%3Cpath d='M2 8h27' stroke-dasharray='4 4'/%3E%3Cpath d='M29 2.5l7 5.5-7 5.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.sticker { aspect-ratio: 1; padding: 11cqw; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; background-size: 100% 100%; transform: rotate(var(--tilt, 0deg)); }
.sticker .badge { display: grid; place-items: center; width: 17cqw; height: 17cqw; border-radius: 50%; background: #000; color: #fff; font-family: var(--serif); font-size: 8.5cqw; }
.sticker p { font-size: 6.2cqw; line-height: 1.08; letter-spacing: -0.03em; }
.sticker .details { display: flex; flex-direction: column; gap: 1.6cqw; }
.sticker h3 { font-size: 9cqw; line-height: 1; letter-spacing: -0.04em; }
.sticker .details span { font-size: max(12px, 4.4cqw); color: var(--ink-64); }
/* The closing card is black, so its words and badge flip to white */
.step-end .sticker { color: #fff; }
.step-end .badge { background: #fff; color: #000; }
.step-end .details span { color: rgba(255, 255, 255, .72); }
/* Too narrow for all four in a row: it scrolls sideways and snaps to each sticker, with the next one peeking in */
@media (max-width: 1100px) {
  .timeline { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .3) transparent; }
  .step { flex: none; width: 300px; max-width: none; scroll-snap-align: center; }
}

/* ============ Craft CTA ============ */
.craft { display: flex; justify-content: space-between; align-items: center; gap: 0; padding: var(--pad); }
.craft-arrow, .craft-face { position: relative; flex: none; width: 344px; height: 344px; border-radius: 50%; background: var(--green); }
.craft-arrow svg, .craft-face svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.star { fill: var(--sky); transition: fill .2s; }
.craft:hover .star { fill: var(--pink); }
.craft:active .star { fill: var(--yellow); }
.craft-arrow path:not(.star) { fill: none; stroke: #000; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; }
/* Cursor-following face */
.craft-face .sclera { fill: #fff; stroke: #000; stroke-width: 7; }
.craft-face .pupil { transition: transform .12s ease-out; }
.craft-face .pupil circle { fill: #000; }
.craft-face .pupil .glint { fill: #fff; }
.craft-face .eye { transform-box: fill-box; transform-origin: center; transition: transform .08s; }
.craft-face .eye.blink { transform: scaleY(.08); }
.craft-face .cheek { fill: var(--pink); opacity: .9; }
.craft:hover .craft-face .cheek { fill: var(--magenta); opacity: .55; }
.craft-face .smile { fill: none; stroke: #000; stroke-width: 12; stroke-linecap: round; transition: d .3s; }
.craft:hover .craft-face .smile { d: path("M156 276 Q214 344 272 276"); }
.craft-center { flex: 1; min-width: 0; align-self: stretch; margin: 0 -40px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px 24px; border-radius: 400px; background: var(--orange); text-align: center; }
.craft-center h2 { font-size: 80px; line-height: .8; letter-spacing: -0.04em; margin-bottom: 43px; max-width: 520px; }
.craft-center p { font-size: 16px; letter-spacing: -0.02em; color: var(--ink-64); margin-bottom: 32px; max-width: 320px; }

/* ============ Toolkit cursors ============ */
/* Name-tagged pointers (tools from SITE.tools) that build the hero after the intro and crowd round Let's Talk.
   A cursor's own (0, 0) is its arrow's tip, so script.js can place and turn it by the tip */
.cursor-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.tool-cursor { position: absolute; left: 0; top: 0; }
.tool-cursor-arrow { position: absolute; left: -2px; top: -2px; width: 24px; height: 24px; overflow: visible; transform-origin: 2px 2px; fill: var(--c); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.tool-cursor-label { position: absolute; left: 14px; top: 20px; padding: 3px 10px; border-radius: 200px; background: var(--c); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; white-space: nowrap; }
.tool-cursor.tag-left .tool-cursor-label { left: auto; right: 10px; }
.tool-ripple { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border: 2px solid var(--c); border-radius: 50%; opacity: 0; }
/* The blueprint each cursor builds over, like a frame in a design tool: dashed, then selected (solid, with handles) */
.build-frame { position: absolute; border: 2px dashed var(--blue); border-radius: 18px; background: rgba(0, 136, 204, .05); }
.build-frame.round { border-radius: 50%; }
.build-frame.selected { border-style: solid; }
.build-tag { position: absolute; left: -2px; bottom: calc(100% + 6px); padding: 2px 8px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.build-frame.tag-below .build-tag { top: calc(100% + 6px); bottom: auto; }
.build-frame.tag-inside .build-tag { left: 10px; top: 10px; bottom: auto; }
/* While the cursors build the hero, the project strip holds still so the cards land where the cursor is */
.hero.is-building .marquee-set { animation-play-state: paused; }
.build-frame.round .build-tag { left: 50%; transform: translateX(-50%); }
.build-frame i { position: absolute; width: 10px; height: 10px; border: 2px solid var(--blue); background: #fff; opacity: 0; }
.build-frame.selected i { opacity: 1; }
.build-frame .h-tl { left: -6px; top: -6px; }
.build-frame .h-tr { right: -6px; top: -6px; }
.build-frame .h-bl { left: -6px; bottom: -6px; }
.build-frame .h-br { right: -6px; bottom: -6px; }

/* ============ Links ============ */
.links { padding-top: var(--pad); }
/* Metro map: two lines of stops. Each stop draws the piece of track to the next one, so the stops share the
   width equally and the track always meets every dot. Wide screens run the lines across, smaller ones down */
.metro { display: flex; flex-direction: column; gap: 72px; padding: 0 var(--pad); margin-bottom: var(--space-xl); }
.metro-line { --line: var(--magenta); --dot: 30px; --lane: 40px; min-width: 0; }
.line-oss { --line: var(--pink); --lane: 0px; }
.metro-head { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; font-size: 48px; font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.metro-head small { align-self: flex-end; padding-bottom: 5px; font-size: 16px; letter-spacing: 0; color: var(--ink-48); }
.line-badge { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 3px solid #000; border-radius: 50%; background: var(--line); color: #fff; font-size: 22px; font-weight: 800; letter-spacing: 0; }
.line-oss .line-badge { color: #000; }
.metro-rail { position: relative; }
.metro-track { display: flex; list-style: none; padding-top: var(--lane); }
.stop { position: relative; flex: 1 1 0; min-width: 0; padding-right: 14px; }
.stop:not(:last-child)::before { content: ""; position: absolute; left: calc(var(--dot) / 2); top: calc(var(--dot) / 2 - 8px); width: 100%; height: 16px; background: var(--line); border-block: 3px solid #000; }
.stop a { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.stop-dot { width: var(--dot); height: var(--dot); flex: none; border: 3.5px solid #000; border-radius: 50%; background: #fff; transition: background .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.is-terminus .stop-dot { width: calc(var(--dot) * 1.8); border-radius: 100px; background: #000; }
.stop-name { font-size: clamp(24px, 2.3vw, 40px); line-height: 1; letter-spacing: -0.04em; color: var(--ink-48); transition: color .15s; }
.stop a:hover .stop-name, .stop a:focus-visible .stop-name, .stop.is-here .stop-name { color: #000; }
.stop a:hover .stop-dot, .stop a:focus-visible .stop-dot, .stop.is-here .stop-dot { background: var(--yellow); transform: scale(1.2); }
.stop a:focus-visible { outline-offset: 6px; }
/* A line under each open-source stop saying what it is */
.link-note { max-width: 300px; margin-top: 12px; padding-right: 8px; font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink-64); }
.ext { font-size: .6em; vertical-align: .3em; }
/* The tram: waits above a stop, rides to the next every couple of seconds, and runs to any stop you point at
   (script.js sets --x / --y to the stop's centre) */
.metro-tram { position: absolute; left: 0; top: 4px; display: flex; align-items: center; justify-content: center; gap: 5px; width: 48px; height: 30px; border: 3px solid #000; border-radius: 10px 10px 7px 7px; background: var(--pink); transform: translate(calc(var(--x, 15px) - 50%), 0); transition: transform 1s cubic-bezier(.65, 0, .35, 1); }
.metro-tram i { width: 11px; height: 10px; border: 2px solid #000; border-radius: 3px; background: #fff; }
@media (max-width: 1100px) {
  .metro { flex-direction: row; gap: 24px; }
  .metro-line { flex: 1 1 0; }
  .metro-head { font-size: 36px; margin-bottom: 28px; } .line-badge { width: 38px; height: 38px; font-size: 18px; }
  .metro-track { flex-direction: column; padding: 0 0 0 var(--lane); }
  .stop { padding: 0 0 26px; } .line-site .stop { padding-bottom: 40px; }
  .stop:not(:last-child)::before { left: calc(var(--dot) / 2 - 8px); top: calc(var(--dot) / 2); width: 16px; height: 100%; border-block: 0; border-inline: 3px solid #000; }
  .stop a { flex-direction: row; gap: 14px; }
  .stop-name { font-size: 28px; line-height: var(--dot); }
  .is-terminus .stop-dot { width: var(--dot); height: calc(var(--dot) * 1.8); }
  .link-note { max-width: 420px; margin: 4px 0 0 calc(var(--dot) + 14px); }
  .metro-tram { left: 0; top: 0; flex-direction: column; width: 30px; height: 48px; border-radius: 10px 7px 7px 10px; transform: translate(0, calc(var(--y, 15px) - 50%)); }
}
@media (max-width: 720px) {
  .metro { flex-direction: column; gap: 48px; }
  .metro-head { font-size: 28px; gap: 12px; } .line-badge { width: 34px; height: 34px; font-size: 16px; }
  .stop-name { font-size: 24px; }
}
.motion-paused .metro-tram, .motion-paused .stop-dot { transition: none; }
/* Big scrolling social links: one huge line of words; hovering a word turns it pink and pauses the strip,
   and keyboard focus pauses it too (script.js brings the focused word on screen) */
.big-links .marquee-set { --speed: 36s; align-items: center; }
.big-links:hover .marquee-set, .big-links:focus-within .marquee-set { animation-play-state: paused; }
.big-link { display: inline-flex; align-items: flex-start; gap: .06em; font-size: 140px; font-weight: 700; line-height: 1.05; letter-spacing: -0.055em; white-space: nowrap; transition: color .25s; }
.big-link-arrow { font-size: .4em; line-height: 1; margin-top: .2em; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.big-link:hover { color: var(--magenta); }
.big-link:hover .big-link-arrow { transform: translate(.1em, -.1em); }
.big-link-sep { margin: 0 .55em; font-size: 56px; color: var(--magenta); }

.hi { display: flex; justify-content: space-between; align-items: flex-end; }
.hi-left { display: flex; flex-direction: column; gap: 80px; padding: var(--space-xl) 0 var(--pad) var(--pad); }
.hi h2 { font-size: 120px; line-height: 1; letter-spacing: -0.06em; }
.step { display: flex; flex-direction: column; gap: 16px; }
.copy { display: flex; align-items: center; gap: 20px; font-size: 48px; line-height: 1; letter-spacing: -0.04em; text-align: left; }
.copy:hover { color: var(--magenta); }
.plane { display: inline-block; font-size: 36px; transform: rotate(-35deg); }
.hi-right { align-self: stretch; display: flex; align-items: flex-end; padding: var(--pad) 64px 0; }
/* "Say hi!" sticker inside a slowly spinning text ring */
.say-hi { position: relative; width: 420px; height: 420px; margin-bottom: 32px; display: grid; place-items: center; border-radius: 50%; }
.say-hi-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: ring-spin 24s linear infinite; }
.say-hi-ring text { font-size: 22px; font-weight: 500; letter-spacing: .12em; fill: #000; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
/* Sized so the tilted square's corners stay inside the ring of text */
.say-hi-sticker { width: 240px; height: 240px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; background-size: 100% 100%; transform: rotate(-8deg); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.say-hi-sticker .wave { font-size: 76px; line-height: 1; transform-origin: 70% 80%; }
.say-hi-sticker .serif { font-size: 64px; line-height: 1; letter-spacing: -0.02em; }
.say-hi:hover .say-hi-sticker, .say-hi:focus-visible .say-hi-sticker { transform: rotate(6deg) scale(1.06); }
.say-hi:hover .wave, .say-hi:focus-visible .wave { animation: wave .9s ease-in-out; }
@keyframes wave { 0%, 100% { rotate: 0deg; } 20%, 60% { rotate: 18deg; } 40%, 80% { rotate: -12deg; } }
.motion-paused .say-hi-ring { animation-play-state: paused; }

/* ============ Footer ============ */
.footer-top { padding: var(--pad) 0; }
.ticker { --speed: 40s; gap: 80px; padding-right: 80px; }
.ticker p { font-size: 24px; line-height: 1; letter-spacing: -0.05em; white-space: nowrap; }
/* Extra bottom padding: at the end of the page the floating Pause motion / Play music buttons sit below the wordmark */
.footer-bottom { padding: var(--pad) var(--pad) 72px; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: 0; }
.wordmark { display: block; width: 100%; height: auto; }
.wordmark text { font-family: "Inter Tight", var(--font); font-weight: 800; font-size: 170px; letter-spacing: -0.04em; fill: #000; }

/* ============ Contact sheet ============ */
/* Both pop-ups (contact form and project card) open centred below the navbar */
.contact-layer { position: fixed; inset: 82px 0 0; z-index: 200; display: flex; justify-content: center; align-items: center; padding: 24px; border-radius: var(--radius) var(--radius) 0 0; --env-w: 420px; --env-h: 270px; }
/* The tinted blur lives on its own layer behind the sheet. With backdrop-filter on the parent,
   Chrome/Edge (GPU) punch an unblurred rectangle where the clip-path'd sheet sits during the ink reveal. */
/* Starts 64px above the layer, hidden behind the (higher) navbar: a blur's top edge washes out
   toward white, and that pale band used to show in the gap beside the sheet's rounded corner. */
/* Strong, desaturated veil so the bright cards behind don't show through as coloured patches
   (e.g. a mint wedge in the gap beside the sheet's rounded corner) */
.contact-layer::before { content: ""; position: absolute; inset: -64px 0 0; border-radius: inherit; opacity: var(--veil, 1); background: rgba(171, 99, 73, .82); backdrop-filter: blur(40px) saturate(.5); -webkit-backdrop-filter: blur(40px) saturate(.5); }
.contact-layer[hidden] { display: none; }
.contact-sheet { position: relative; z-index: 2; display: flex; flex-direction: column; width: min(640px, 100%); height: min(700px, 100%); overflow: hidden; border-radius: var(--radius); background: var(--pink); }
.contact-sheet h2 { font-size: 30px; line-height: 1.05; letter-spacing: -0.04em; }
/* The envelope the chat arrives in. Back, front pocket and flap are separate layers (no shared parent),
   so the chat, the "letter", can sit between them: back (1) < letter (2) < front (3) < closed flap (4) */
.env { position: absolute; left: 50%; top: 50%; width: var(--env-w); height: var(--env-h); margin: calc(var(--env-h) / -2) 0 0 calc(var(--env-w) / -2); border-radius: 14px; opacity: 0; pointer-events: none; }
.env-back { z-index: 1; background: #b8358c; }
.env-front { z-index: 3; background: var(--magenta); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env-flap { z-index: 4; height: calc(var(--env-h) * .62); background: #e25bb5; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; }
/* Words are split into spans by the open animations (envelope, ink drop) so each can drop in on its own */
.contact-sheet h2 .word, .project-sheet h2 .word { display: inline-block; transform-origin: 0 100%; }

/* Project detail card: the same size for every project, centred below the navbar.
   Background follows the project's card colour (--sheet); the title scales with the card (cqw). */
.project-sheet { position: relative; z-index: 1; width: min(1080px, 100%); height: min(780px, 100%); border-radius: var(--radius); overflow: hidden; background: var(--sheet, var(--pink)); container-type: inline-size; }
/* Slim, arrowless scrollbars on the coloured sheets (instead of the grey system ones) */
.chat-log, .ps-info, .ps-gallery { overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .3) transparent; }
/* Fixed grid: top bar, then the words (they scroll on their own) beside the media panel, then Next */
.ps-body { display: grid; height: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 20px 36px; padding: 26px 32px 24px; }
.ps-top { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; min-height: 40px; padding-right: 56px; }
.ps-chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 200px; background: rgba(255, 255, 255, .55); font-size: 15px; letter-spacing: -0.01em; }
.ps-count { font-size: 15px; color: var(--ink-64); }
.ps-info { grid-row: 2; grid-column: 1; overflow-y: auto; padding-right: 10px; }
.project-sheet h2 { font-size: min(7.6cqw, 88px); line-height: .86; letter-spacing: -0.06em; }
.ps-tagline { margin-top: 12px; font-family: var(--serif); font-size: 30px; line-height: 1.05; }
.ps-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ps-btn { padding: 10px 18px; border-radius: 200px; border: 2px solid #000; font-size: 18px; letter-spacing: -0.03em; transition: background .2s, color .2s; }
.ps-btn:hover { background: #000; color: #fff; }
.ps-btn-dark { background: #000; color: #fff; }
.ps-btn-dark:hover { background: #fff; color: #000; }
.ps-details { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.ps-summary { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; }
.ps-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ps-features li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.3; color: rgba(0, 0, 0, .78); }
.ps-features li::before { content: "✦"; position: absolute; left: 0; top: 1px; font-size: 12px; }
.ps-stack { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; }
.ps-stack-label { margin-right: 6px; font-size: 15px; color: var(--ink-64); }
/* Media panel: one fixed-size stage. Screenshots scroll sideways (centred when they fit);
   a project without any shows its dotted initial, like its hero card */
.ps-media { grid-row: 2; grid-column: 2; position: relative; border-radius: 24px; background: rgba(255, 255, 255, .28); overflow: hidden; container-type: size; }
.ps-gallery { display: flex; gap: 16px; align-items: center; height: 100%; padding: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.ps-gallery > * { flex: none; scroll-snap-align: center; }
.ps-gallery > :first-child { margin-left: auto; }
.ps-gallery > :last-child { margin-right: auto; }
.ps-gallery .frame-phone { height: calc(100cqh - 32px); }
.ps-gallery .frame-browser { width: min(100cqw - 32px, (100cqh - 32px) * 16 / 11); }
.ps-gallery .frame-icon { height: min(56cqh, 56cqw); }
.ps-gallery .frame-wide { height: calc(100cqh - 32px); aspect-ratio: auto; }
.ps-gallery .frame-wide img { width: auto; }
.ps-initial { position: absolute; left: 50%; top: 50%; translate: -50% -50%; --dot: 2.6cqh; font-size: 92cqh; }
.ps-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.ps-next { padding: 12px 20px; border-radius: 200px; background: #000; color: #fff; font-size: 18px; letter-spacing: -0.03em; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.ps-next:hover { transform: translateX(4px); }
.project-sheet .close-btn { position: absolute; top: 22px; right: 24px; z-index: 3; float: none; }
.close-btn { position: sticky; top: 0; float: right; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #000; font-size: 18px; }
/* ============ Contact chat ============ */
/* Who you're talking to, then the conversation (it scrolls), then the answer bar pinned at the bottom */
.chat-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px 22px; border-bottom: 2px solid rgba(0, 0, 0, .08); }
.chat-avatar { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #000; color: var(--pink); font-size: 20px; font-weight: 700; letter-spacing: -0.04em; }
.chat-who { flex: 1; min-width: 0; }
.chat-who p { margin-top: 2px; font-size: 16px; letter-spacing: -0.02em; color: var(--ink-64); }
.chat-head .close-btn { position: static; float: none; flex: none; }
.chat-log { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px; overflow-y: auto; }
.bubble { max-width: 82%; padding: 12px 18px; border-radius: 24px; font-size: 22px; line-height: 1.25; letter-spacing: -0.03em; white-space: pre-wrap; overflow-wrap: anywhere; animation: bubble-in .4s cubic-bezier(.34, 1.56, .64, 1) both; }
.bubble.bot { align-self: flex-start; border-bottom-left-radius: 8px; background: #fff; transform-origin: 0 100%; }
.bubble.me { align-self: flex-end; border-bottom-right-radius: 8px; background: #000; color: #fff; transform-origin: 100% 100%; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(12px) scale(.9); } }
/* "Vaibhav is typing": three dots that bob in turn */
.typing { display: flex; gap: 6px; padding: 19px 20px; }
.typing span { width: 9px; height: 9px; border-radius: 50%; background: #000; animation: typing 1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-5px); } }
.chat-bar, .chat-done { display: flex; align-items: flex-end; gap: 10px; padding: 14px 16px 16px; border-top: 2px solid rgba(0, 0, 0, .08); }
.chat-bar[hidden], .chat-done[hidden] { display: none; }
.chat-field { flex: 1; min-width: 0; height: 54px; padding: 14px 22px; border: 0; border-radius: 27px; outline: none; font: inherit; font-size: 20px; line-height: 26px; letter-spacing: -0.03em; color: #000; background: #fff; }
textarea.chat-field { max-height: 160px; resize: none; }
.chat-field::placeholder { color: rgba(0, 0, 0, .4); }
.chat-field:focus-visible { box-shadow: inset 0 0 0 3px var(--magenta); }
.chat-send { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #000; color: #fff; transition: background .2s, transform .2s; }
.chat-send svg { width: 24px; height: 24px; }
.chat-send:hover { background: var(--magenta); }
.chat-send:active { transform: scale(.92); }
.chat-done { align-items: center; gap: 20px; }
.send-btn { padding: 12px 26px; border-radius: 200px; background: #000; color: #fff; font-size: 22px; letter-spacing: -0.04em; transition: background .2s; }
.send-btn:hover { background: var(--magenta); }
.send-btn:disabled { opacity: .6; cursor: progress; }
.chat-restart { font-size: 18px; letter-spacing: -0.02em; text-decoration: underline; text-underline-offset: 4px; }

/* Pause / play all motion */
.motion-toggle { position: fixed; left: 16px; bottom: 16px; z-index: 150; padding: 10px 16px; border-radius: 200px; background: #fff; border: 2px solid #000; font-size: 15px; letter-spacing: -0.02em; transition: background .2s, color .2s; }
.motion-toggle:hover { background: #000; color: #fff; }
.motion-paused .marquee-set, .motion-paused .talk-ring, .motion-paused .contact-pill::after, .motion-paused .contact-arrow::after { animation-play-state: paused !important; }

/* Music on/off, bottom-right; the little bars bounce while it plays */
.music-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 150; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 200px; background: #fff; border: 2px solid #000; font-size: 15px; letter-spacing: -0.02em; transition: background .2s, color .2s; }
.music-toggle[hidden] { display: none; }
.music-toggle:hover { background: #000; color: #fff; }
.music-toggle.playing { background: var(--yellow); }
.music-toggle.playing:hover { background: #000; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; }
.playing .eq i { animation: eq .9s ease-in-out infinite; }
.playing .eq i:nth-child(2) { animation-delay: -.3s; }
.playing .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 12px; } }
.motion-paused .eq i { animation-play-state: paused; }
/* Phones: the two buttons sit at the end of the menu (script.js moves them there) instead of over the page */
.menu-controls { margin-top: 6px; padding-top: 6px; border-top: 2px solid rgba(0, 0, 0, .08); }
.menu-controls:not(:has(> :not([hidden]))) { display: none; }
.menu-list .motion-toggle, .menu-list .music-toggle { position: static; display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-radius: 200px; background: none; font-size: 24px; letter-spacing: -0.05em; text-align: left; }
.menu-list .motion-toggle:hover, .menu-list .music-toggle:hover { background: var(--chip); color: inherit; }
.menu-list .music-toggle.playing { background: var(--yellow); }
/* At rest the three bars read like "…" in a menu, so there they only show while music plays */
.menu-list .music-toggle:not(.playing) .eq { display: none; }
.menu-list .music-toggle[hidden] { display: none; }

.copy-label { position: fixed; left: 50%; bottom: -100px; transform: translateX(-50%); z-index: 300; padding: 16px; border-radius: 10px; background: rgba(0, 0, 0, .85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff; font-size: 16px; white-space: nowrap; transition: bottom .3s; }
.copy-label.show { bottom: 16px; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  :root { --space-xl: 112px; }
  .label, .thinking .about-copy .about-lead, .slashes { font-size: 36px; }
  .about-copy p { font-size: 19px; } .about-copy .about-kicker { font-size: 22px; }
  .hero h1 { font-size: 88px; }
  .tool-word { font-size: 84px; } .tool-sep { font-size: 30px; } .clients .marquee { min-height: 104px; }
  .fact-face { font-size: 17px; padding: 10px 15px; } .fact-round .fact-face { width: 110px; height: 110px; } .fact-scallop .fact-face { width: 120px; height: 120px; padding: 22px; }
  .card { --pw: 196px; --ph: 128px; --cap: 54px; height: 225px; } .slider { min-height: 225px; }
  .pol-caption .name { font-size: 26px; }
  .talk-sticker { width: 112px; height: 112px; bottom: clamp(72px, calc(100% + 148px - 100vh), 120px); } .talk-ring text { font-size: 21px; }
  .ps-body { gap: 18px 26px; padding: 24px 26px 22px; } .ps-tagline { font-size: 26px; }
  .since { width: 480px; height: 230px; } .since h2 { font-size: 88px; }
  .stat { width: 380px; height: 380px; } .stat b { font-size: 180px; } .stat span { font-size: 34px; }
  .service-card { padding: 32px; gap: 24px; } .service-title h3 { font-size: 88px; } .service-title svg { width: 64px; height: 64px; }
  .service-info p { font-size: 22px; } .service-chips span { font-size: 16px; }
  .craft { flex-direction: column; gap: 16px; }
  .craft-center { margin: 0; align-self: stretch; padding: 56px 24px; border-radius: 200px; }
  .craft-center h2 { font-size: 64px; }
  .craft-arrow, .craft-face { width: 260px; height: 260px; }
  .big-link { font-size: 108px; } .big-link-sep { font-size: 44px; }
  .hi h2 { font-size: 88px; } .copy { font-size: 36px; }
  .say-hi { width: 320px; height: 320px; }
  .say-hi-ring text { font-size: 24px; }
  .say-hi-sticker { width: 182px; height: 182px; } .say-hi-sticker .wave { font-size: 52px; } .say-hi-sticker .serif { font-size: 44px; }
  .hi-right { padding-right: 40px; }
  .crate-stage { gap: 32px; }
  .track h3 { font-size: 72px; } .track-tagline { font-size: 22px; }
  .track-actions a, .track-open { font-size: 18px; padding: 10px 16px; }
}
/* Narrow tablets: the headline nearly fills the width, so the sticker moves to the cards' bottom-right edge
   (top = slider padding + card height - half the sticker) and the intro text steps down to clear it.
   Over the colourful cards it gets a white backing, like a real sticker, so the ring text stays readable */
@media (max-width: 860px) {
  .talk-sticker { top: calc(var(--pad) + 225px - 56px); bottom: auto; background: #fff; }
  .hero-text { padding-top: 40px; }
}
@media (max-width: 720px) {
  :root { --pad: 20px; --space-xl: 80px; --radius: 24px; }
  html { scroll-padding-top: 76px; }
  /* Open the menu leftwards from the button so it stays on screen */
  .menu-list { left: auto; right: 0; }
  .footer-bottom { padding-bottom: var(--pad); }
  .navbar { height: 64px; }
  .hero { margin-top: 66px; }
  .contact-layer { inset: 66px 0 0; }
  .logo { font-size: 20px; white-space: nowrap; gap: 8px; } .logo-mark { width: 26px; height: 21px; }
  .nav-right { width: auto; gap: 8px; }
  .chip, .contact-pill { font-size: 18px; padding: 10px 14px; }
  .nav-right .contact-pill { display: none; }
  .label, .thinking .about-copy .about-lead, .slashes { font-size: 28px; }
  .about-copy { gap: 14px; } .about-copy p { font-size: 17px; } .about-copy .about-kicker { font-size: 20px; }
  .right-text { width: 100%; padding-left: 0; font-size: 18px; }
  .hero-buddies { display: none; } /* phones: the intro takes the full width, so there's no room beside it */
  .hero h1 { font-size: 56px; }
  .card { --pw: 172px; --ph: 116px; --cap: 50px; height: 210px; } .slider { min-height: 210px; }
  .pol-photo { padding: 8px 8px 0; } .pol-caption .name { font-size: 24px; } .pol-caption .tagline { font-size: 11px; }
  /* Phones: the pop-ups fill the space below the navbar (project card: screenshots on top, words below) */
  .contact-layer { padding: 10px; --env-w: 300px; --env-h: 192px; }
  .ps-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 36% minmax(0, 1fr) auto; gap: 14px; padding: 18px 18px 16px; }
  .ps-media { grid-row: 2; grid-column: 1; border-radius: 18px; }
  .ps-info { grid-row: 3; grid-column: 1; }
  .ps-gallery { gap: 12px; padding: 12px; } .ps-gallery .frame-phone, .ps-gallery .frame-wide { height: calc(100cqh - 24px); }
  .ps-gallery .frame-browser { width: min(100cqw - 24px, (100cqh - 24px) * 16 / 11); }
  .project-sheet h2 { font-size: min(12cqw, 56px); } .ps-tagline { font-size: 24px; }
  .ps-summary { font-size: 17px; } .ps-btn, .ps-next { font-size: 16px; }
  /* Phones: badge centred on the cards' edge, with room left above the intro text */
  /* Phones: the headline fills the width, so the sticker sits on the cards' bottom-right edge
     (top = slider padding + card height - half the sticker); the intro text keeps clear below */
  .talk-sticker { top: calc(var(--pad) + 210px - 48px); bottom: auto; width: 96px; height: 96px; }
  .talk-ring text { font-size: 22px; } .hero-text { padding-top: 44px; }
  .clients-head { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 var(--pad); margin-bottom: 20px; }
  .clients-head .label { padding-left: 0; }
  .ribbon-note { max-width: none; font-size: 14px; text-align: left; }
  .tool-word { font-size: 60px; } .tool-sep { font-size: 22px; } .clients .marquee { min-height: 78px; }
  .thinking-top { flex-direction: column; gap: 24px; }
  .thinking-left { width: 100%; gap: 24px; }
  .dots-wrap { width: min(300px, 86%); margin: 0 auto; }
  .thinking .texts { width: 100%; padding-left: 0; padding-top: 0; }
  .fact-stickers { gap: 10px; } .fact:nth-child(even) { margin-top: 10px; }
  .fact-face { font-size: 15px; padding: 9px 13px; } .fact-round .fact-face { width: 96px; height: 96px; padding: 12px; } .fact-scallop .fact-face { width: 106px; height: 106px; padding: 20px; }
  .since { width: 100%; max-width: 340px; height: 170px; } .since h2 { font-size: 56px; }
  .stat { width: 260px; height: 260px; margin-right: -24px; border-width: 4px; }
  .stat b { font-size: 120px; } .stat span { font-size: 24px; }
  /* Phones: text on top, screenshots underneath, still stacking */
  .services .label { margin-bottom: 28px; }
  .service-stack { padding: 0 12px; gap: 20px; }
  .service-card { flex-direction: column; top: calc(88px + var(--i) * 14px); height: min(540px, calc(100svh - 132px)); padding: 22px; gap: 14px; }
  .service-info { flex: none; gap: 12px; }
  .service-top { font-size: 14px; }
  .service-title { gap: 14px; } .service-title h3 { font-size: 56px; } .service-title svg { width: 44px; height: 44px; }
  .service-info p { font-size: 18px; }
  .service-chips { margin-top: 0; gap: 6px; } .service-chips span { padding: 6px 11px; font-size: 13px; }
  .service-cta { padding: 9px 14px; font-size: 16px; }
  .service-shots { flex: 1; min-height: 0; }
  .projects-head { flex-direction: column; gap: 20px; padding: 0 var(--pad); }
  .projects-head .label { padding-left: 0; }
  .projects-head .right-text { max-width: none; }
  .journey .label { margin-bottom: 28px; }
  .timeline { gap: 28px; }
  .step { width: 272px; }
  .step:not(:last-child)::after { width: 28px; }
  .craft-center h2 { font-size: 44px; margin-bottom: 24px; }
  .craft-arrow, .craft-face { width: 200px; height: 200px; }
  .big-link { font-size: 68px; } .big-link-sep { font-size: 30px; }
  .hi { flex-direction: column; align-items: stretch; }
  .hi-left { gap: 40px; padding-right: var(--pad); }
  .hi h2 { font-size: 60px; } .copy { font-size: 20px; gap: 12px; word-break: break-all; } .plane { font-size: 22px; }
  .hi-right { justify-content: center; }
  .hi-right { padding: 0 var(--pad); }
  .hi-right { justify-content: center; }
  .say-hi { width: 280px; height: 280px; margin-bottom: 24px; }
  .say-hi-ring text { font-size: 25px; }
  .say-hi-sticker { width: 158px; height: 158px; } .say-hi-sticker .wave { font-size: 44px; } .say-hi-sticker .serif { font-size: 36px; }
  .projects-head { margin-bottom: 32px; }
  .work-filter { margin: -8px var(--pad) 20px; font-size: 18px; flex-wrap: wrap; }
  /* Phones: sleeve on top (its record slides a little less far), details under it, the crate scrolls sideways */
  .crate-stage { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .deck { width: 60vw; }
  .deck.is-out .vinyl { transform: translateX(40%); }
  .vinyl-label { font-size: 10px; }
  .track { gap: 14px; }
  .track-no { font-size: 15px; } .track-nav button { width: 42px; height: 42px; font-size: 19px; }
  .track h3 { font-size: 52px; } .track-tagline { font-size: 19px; }
  .track-stack li { font-size: 13px; padding: 5px 10px; }
  .track-actions a, .track-open { font-size: 16px; padding: 9px 14px; }
  .crate-scroll { margin-top: 28px; padding: 44px 0 26px; }
  .crate { gap: 8px; padding: 0 20px; }
  .mini-cover { width: 92px; height: 92px; }
  .is-current .crate-record { transform: translateY(-34px) rotate(-3deg); }
  .crate-front { height: 74px; bottom: -18px; padding: 0 20px 12px; font-size: 15px; border-radius: 14px 14px 20px 20px; }
  .ticker p { font-size: 18px; }
  /* Phones: the chat fills the space below the navbar. Fields stay at 16px+ so iOS doesn't zoom in on them */
  .contact-sheet { height: 100%; }
  .chat-head { gap: 12px; padding: 14px 14px 12px 16px; }
  .chat-avatar { width: 44px; height: 44px; font-size: 17px; }
  .contact-sheet h2 { font-size: 24px; }
  .chat-who p { font-size: 14px; }
  .chat-log { padding: 16px; }
  .bubble { padding: 10px 15px; border-radius: 20px; font-size: 18px; }
  .chat-bar, .chat-done { padding: 10px 12px 12px; }
  .chat-field { height: 48px; padding: 12px 18px; line-height: 24px; font-size: 17px; }
  .chat-send { width: 48px; height: 48px; }
  .send-btn { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-set, .talk-ring, .say-hi-ring, .eq i, .bubble { animation: none !important; }
  .card-initial, .pol-shot, .pol-photo { transition: none; }
  .pol-swing { animation: none; transform: rotate(var(--tilt, 0deg)); }
  .service-card { transform: none; filter: none; } .service-shots .frame, .service-cta { transition: none; }
  .vinyl-disc { animation: none; } .vinyl, .sleeve, .crate-record, .track > * { transition: none; }
  .fact-face { transition: none; }
  .hero-buddies, .hero-buddies * { animation: none !important; transition: none; }
  .intro { display: none; }
  /* Without the scroll, the social links wrap onto lines so none are cut off */
  .big-links .marquee-set, .ribbon .marquee-set { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; }
  .big-links .marquee-set[aria-hidden], .ribbon .marquee-set[aria-hidden] { display: none; }
}
