/* Ashlyn D Rozario: a white portfolio on the WAC pattern. Light oversized type, square-cornered photos and panels,
   outlined rectangle buttons with arrows, pale grey bands between white ones, and one dark band: the footer. */
:root {
  --bg: #fdfdfd;          /* soft white: page ground */
  --surface: #f5f5f3;     /* light surface: panels, frames, pills */
  --fg: #080807;          /* near black: type and strong accents */
  --fg-body: #2a2a27;     /* long-form text */
  --fg-2: #636659;        /* olive gray: supporting text, 6:1 on white */
  --fg-3: #777773;        /* secondary grey: large type and decoration only (4.4:1) */
  --line: #e8e8e5;
  --line-strong: #d6d5cf;
  --beige: #b6b09f;
  --espresso: #50321f;
  --gold: #9f9366;
  --copper: #85583b;
  --header-bg: rgba(253, 253, 253, .9);
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Unbounded", "Geist", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1480px;
  --r: 0;                 /* square corners on photos, frames and panels; only tags and chips stay round */
  --r-lg: 0;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
/* Near-black ground: the footer only */
.night {
  --bg: #080807;
  --surface: #151513;
  --fg: #fdfdfd;
  --fg-body: #dcdad3;
  --fg-2: #b6b09f;
  --fg-3: #8e8b80;
  --line: rgba(253, 253, 253, .13);
  --line-strong: rgba(253, 253, 253, .3);
  --header-bg: rgba(8, 8, 7, .86);
  background: var(--bg);
  color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #c9c8c2 var(--bg); scrollbar-width: thin; }
body { background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--font); letter-spacing: -.006em; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cfcec8; border: 3px solid var(--bg); border-radius: 10px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.display { font-family: var(--font); font-weight: 300; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
.two-tone .dim { color: var(--fg-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 500; }
.skip:focus { top: 12px; }
.text-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; color: var(--espresso); }
.night .text-link:hover { color: var(--beige); }
.example { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .02em; border: 1px dashed currentColor; padding: 3px 10px; border-radius: 999px; }
.inline-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Arrow icon, drawn (no glyph) */
.arrow { display: inline-block; width: 14px; height: 10px; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 5h12.5M8.5 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%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 14 10'%3E%3Cpath d='M0 5h12.5M8.5 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease-out); }
/* Square arrow button that points up-right, turning to point right on hover */
.go { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); color: var(--fg); transition: background .3s, color .3s, border-color .3s; }
.go .arrow { transform: rotate(-45deg); }
.card:hover .go, .service:hover .go, a:hover > .go { background: var(--espresso); color: #fdfdfd; border-color: var(--espresso); }
.card:hover .go .arrow, .service:hover .go .arrow, a:hover > .go .arrow { transform: rotate(0); }

/* Buttons: outlined rectangles with an arrow */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 22px; border: 1px solid var(--fg); background: transparent; font-size: 15px; font-weight: 400; letter-spacing: 0; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: var(--espresso); border-color: var(--espresso); color: #fdfdfd; }
.btn-line:hover { background: var(--fg); color: var(--bg); }
.night .btn-solid:hover { background: var(--beige); border-color: var(--beige); color: #080807; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.scrolled { background: var(--bg); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 80px; }
/* Logo: "ADR" in Unbounded Bold, CircuitX's display face (favicon.svg and assets/brand/ carry the same outlines) */
.brand { color: var(--fg); font: 700 26px/1 var(--font-logo); letter-spacing: -.03em; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 15px; }
.nav-links a { position: relative; color: var(--fg-body); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a[aria-current="page"]::before { content: ""; position: absolute; left: 50%; bottom: -10px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--copper); }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; font-size: 15px; font-weight: 500; padding: 8px 0; }
.burger { display: grid; gap: 5px; width: 22px; }
.burger i { display: block; height: 1.5px; background: var(--fg); }

/* Full-screen menu */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); color: var(--fg); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 110px var(--gutter) 48px; overflow-y: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-out), visibility 0s .7s; }
.menu.open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s; }
.menu-close { position: absolute; top: 18px; right: var(--gutter); width: 46px; height: 46px; display: grid; place-items: center; background: none; border: 1px solid var(--line-strong); cursor: pointer; }
.menu-links { list-style: none; align-self: center; }
.menu-links a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--line); font: 300 clamp(36px, 6vw, 76px)/1.08 var(--font); letter-spacing: -.035em; color: var(--fg-3); transition: color .25s, padding-left .35s var(--ease-out); }
.menu-links a:hover, .menu-links a:focus-visible { color: var(--fg); padding-left: 10px; }
.menu-links .arrow { width: 28px; height: 20px; }
.menu-aside { align-self: end; display: grid; gap: 28px; color: var(--fg-2); }
.menu-aside h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; margin-bottom: 6px; }
.menu-aside a:not(.btn) { color: var(--fg); }
.menu-aside .btn { justify-self: start; }

/* Hero */
.hero { position: relative; padding-top: clamp(118px, 15vh, 160px); }
.hero h1 { font-size: clamp(46px, 9.2vw, 140px); line-height: .98; letter-spacing: -.05em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .line-in { display: inline-flex; align-items: center; gap: .12em; animation: lineUp 1.15s var(--ease-out) both; }
.hero h1 .line:nth-child(2) .line-in { animation-delay: .1s; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-top: clamp(36px, 5vw, 64px); animation: fadeUp 1s .35s var(--ease-out) both; }
.hero-line { max-width: 50ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--fg-body); }
.hero-line strong { color: var(--fg); font-weight: 500; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(40px, 6vw, 72px); padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-2); animation: fadeUp 1s .5s var(--ease-out) both; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.scroll-cue .arrow { transform: rotate(90deg); animation: nudge 2.4s ease-in-out infinite; }
@keyframes lineUp { from { transform: translateY(105%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes nudge { 50% { transform: rotate(90deg) translateX(4px); } }

/* Preloader (home): on the hero video's own ground and glow. The ADR letters rise out of a blur, the bar fills as
   the video downloads; then the letters blur away and the panel lifts as the video starts from its first frame.
   Without script it never shows; if the script fails, it clears itself after 9 seconds. */
.preloader { display: none; }
.js .preloader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 30px;
  background: radial-gradient(60% 62% at 50% 44%, rgba(250, 249, 246, .9), rgba(250, 249, 246, 0)),
              radial-gradient(52vw 52vw at 14% 98%, rgba(201, 194, 182, .6), rgba(201, 194, 182, 0) 70%),
              radial-gradient(48vw 48vw at 87% 92%, rgba(201, 194, 182, .52), rgba(201, 194, 182, 0) 70%),
              radial-gradient(34vw 34vw at 81% 3%, rgba(201, 194, 182, .26), rgba(201, 194, 182, 0) 70%), #f7f6f2;
  clip-path: inset(0); transition: clip-path 1s cubic-bezier(.76, 0, .24, 1); animation: preFailsafe .01s 9s forwards; }
.js.no-preload .preloader { display: none; }
html.is-loading { overflow: hidden; }
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes preFailsafe { to { visibility: hidden; } }
.pre-mark { display: flex; font: 700 clamp(64px, 11vw, 150px)/1 var(--font-logo); letter-spacing: -.03em; color: #111110; }
.pre-mark span { display: inline-block; animation: preIn .9s var(--ease-out) both; transition: opacity .45s, filter .45s, transform .45s var(--ease-out); }
.pre-mark span:nth-child(2) { animation-delay: .1s; transition-delay: .05s; }
.pre-mark span:nth-child(3) { animation-delay: .2s; transition-delay: .1s; }
@keyframes preIn { from { opacity: 0; transform: translateY(40%); filter: blur(14px); } }
.preloader.is-leaving .pre-mark span { opacity: 0; transform: translateY(-24%); filter: blur(16px); }
.pre-bar, .pre-meta { width: clamp(200px, 24vw, 340px); transition: opacity .35s; }
.pre-bar { height: 2px; background: rgba(17, 17, 16, .12); overflow: hidden; animation: fadeIn .6s .3s both; }
.pre-fill { display: block; height: 100%; background: #111110; transform-origin: left; transform: scaleX(var(--p, 0)); }
.pre-meta { display: flex; justify-content: space-between; margin-top: -14px; font-size: 13px; color: #636659; font-variant-numeric: tabular-nums; animation: fadeIn .6s .3s both; }
.preloader.is-leaving .pre-bar, .preloader.is-leaving .pre-meta { opacity: 0; }

/* Hero video: the first thing on the home page, a text-led showreel full width just under the header (80px). The
   project on screen, its headline and a bar per project sit on white underneath and follow the video. */
.reel { padding-top: 80px; animation: fadeIn .8s var(--ease-out) both; }
.reel + .hero { padding-top: clamp(64px, 8vw, 120px); }
.reel-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f3f2ee; }
.reel-video { width: 100%; height: 100%; object-fit: cover; }
.reel-toggle { position: absolute; right: var(--gutter); bottom: clamp(12px, 1.6vw, 22px); display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid rgba(8, 8, 7, .14); background: rgba(253, 253, 253, .88); color: #080807; font-size: 13px; cursor: pointer; transition: background .2s; }
.reel-toggle:hover { background: #fdfdfd; }
.reel-toggle .i-play, .reel-toggle[aria-pressed="true"] .i-pause { display: none; }
.reel-toggle[aria-pressed="true"] .i-play { display: block; }
.reel-caps { display: grid; }
.reel-item { grid-area: 1 / 1; display: grid; justify-items: start; align-content: start; gap: 10px; padding-top: clamp(22px, 2.4vw, 34px); padding-right: calc(var(--gutter) + clamp(160px, 22vw, 420px)); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility 0s .6s; }
.reel-item.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out), visibility 0s; z-index: 1; }
.reel-ind { font-size: 14px; color: var(--fg-2); }
.reel-line { max-width: 30ch; font: 300 clamp(26px, 3vw, 46px)/1.1 var(--font); letter-spacing: -.03em; text-wrap: balance; }
.reel-go { display: inline-flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 15px; }
.reel-item:hover .reel-go .arrow { transform: translateX(4px); }
.reel-item:hover .reel-line { color: var(--espresso); }
/* a bar per project, lined up with the caption, bottom right; it fills as that part plays */
.reel-nav { grid-area: 1 / 1; align-self: end; z-index: 2; display: flex; justify-content: flex-end; gap: 8px; padding-bottom: 4px; pointer-events: none; }
.reel-dot { flex: 0 1 72px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; pointer-events: auto; }
.reel-dot span { display: block; height: 2px; background: var(--line-strong); overflow: hidden; }
.reel-dot span::before { content: ""; display: block; height: 100%; background: var(--fg); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Stack strip: the tools behind the work, as a slow line of pills */
.stack-strip { margin-top: clamp(40px, 5vw, 72px); padding: 22px 0; border-block: 1px solid var(--line); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.stack-track { display: flex; gap: 10px; width: max-content; animation: marquee 48s linear infinite; }
.stack-strip:hover .stack-track { animation-play-state: paused; }
.stack-track ul { display: flex; gap: 10px; list-style: none; }
.stack-track li { padding: 9px 18px; border-radius: 999px; background: var(--surface); font-size: 15px; white-space: nowrap; color: var(--fg); }
.stack-track li:nth-child(4n + 2) { background: transparent; border: 1px solid var(--line); }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }

/* Sections */
.section { padding-block: clamp(80px, 10vw, 150px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: clamp(40px, 5.5vw, 80px); }
/* Pale grey band, as WAC sets "What We Do" apart */
.band { background: var(--surface); }
.band .tags li, .band .spot-copy .tags li { background: var(--bg); }
.section-head p { max-width: 40ch; color: var(--fg-2); font-size: 17px; }
.count { font: 500 16px var(--font); color: var(--fg-2); vertical-align: top; margin-left: 10px; letter-spacing: 0; }
.page-head { padding-top: 160px; }
.page-head h1 { font-size: clamp(56px, 9vw, 140px); line-height: .98; letter-spacing: -.045em; }
.page-head p { max-width: 54ch; margin-top: 24px; color: var(--fg-2); font-size: 19px; }
.page-head + .section { padding-top: 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--fg-2); }
.crumbs a { color: var(--fg-2); } .crumbs a:hover { color: var(--fg); }
.empty { padding: 40px 0 80px; display: grid; gap: 24px; justify-items: start; }
.empty p { font: 300 clamp(24px, 3vw, 40px)/1.15 var(--font); letter-spacing: -.025em; }
.center-page { text-align: center; min-height: 64vh; display: grid; align-content: center; justify-items: center; gap: 14px; padding-bottom: 80px; }
.center-page .hero-actions { animation: none; justify-content: center; }
.giant-404 { font-size: clamp(120px, 22vw, 280px) !important; }

/* About (home) */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.intro-grid h2 { font-size: clamp(40px, 5.4vw, 84px); }
.intro-copy { padding-top: clamp(0px, 4.6vw, 64px); }
.intro-copy p { font-size: clamp(17px, 1.3vw, 20px); color: var(--fg-body); line-height: 1.55; }
.intro-copy p + p { margin-top: 1em; }
.intro-copy .btn { margin-top: 32px; }
.intro-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(48px, 6vw, 88px); align-items: stretch; }
.intro-side { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.intro-steps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; counter-reset: step; }
.intro-steps li { padding-top: 16px; border-top: 1px solid var(--line); }
.intro-steps li::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 14px; font-size: 13px; color: var(--copper); font-variant-numeric: tabular-nums; }
.intro-steps h3 { font: 500 21px/1.2 var(--font); letter-spacing: -.02em; }
.intro-steps p { margin-top: 8px; color: var(--fg-2); font-size: 15px; }
.head-side { display: grid; gap: 18px; justify-items: start; }
.intro-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(.85); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--fg); }
.facts div { padding: 22px 20px 0 0; }
.facts dt { order: 2; margin-top: 8px; font-size: 14px; color: var(--fg-2); }
.facts dd { font: 300 clamp(44px, 5vw, 76px)/1 var(--font); letter-spacing: -.045em; }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

/* Work */
.pause-btn { background: none; border: 1px solid var(--line-strong); color: var(--fg-2); font-size: 13px; padding: 9px 14px; cursor: pointer; transition: color .2s, border-color .2s; }
.pause-btn:hover { color: var(--fg); border-color: var(--fg); }
.filters { position: relative; z-index: 5; }
.cases-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cases-head h1 { font-size: clamp(52px, 7vw, 104px); }
.cases-head .count { margin-left: .12em; font-size: .26em; font-weight: 400; letter-spacing: 0; vertical-align: super; color: var(--fg-2); }
.head-side .filters { margin-top: 18px; }
.filter-toggle { display: inline-flex; align-items: center; gap: 14px; padding: 13px 22px; border: 1px solid var(--fg); background: transparent; color: var(--fg); font-size: 15px; cursor: pointer; transition: background .25s, color .25s; }
.filter-toggle:hover, .filter-toggle[aria-expanded="true"] { background: var(--fg); color: var(--bg); }
.chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease-out); }
.filter-toggle[aria-expanded="true"] .chev { transform: translateY(2px) rotate(-135deg); }
.filter-list { position: absolute; right: 0; top: calc(100% + 10px); display: grid; min-width: 260px; padding: 8px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 24px 50px -24px rgba(8, 8, 7, .3); }
.filter-list .filter { display: flex; justify-content: space-between; gap: 18px; width: 100%; text-align: left; background: transparent; border-radius: 0; font-weight: 400; }
.filter-list[hidden] { display: none; }
.filter-list .filter[aria-pressed="true"] { background: var(--surface); color: var(--fg); }
.filter { border: 1px solid transparent; background: var(--surface); padding: 10px 18px; border-radius: 999px; cursor: pointer; color: var(--fg); font-size: 14px; font-weight: 500; transition: background .25s, color .25s; }
.filter:hover { background: #ebeae5; }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.filter span { opacity: .5; margin-left: 4px; font-variant-numeric: tabular-nums; }
.filters .pause-btn { margin-left: auto; }
/* Case-study grid: three square scenes a row, the industry, then "Name: headline" */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 4.4vw, 72px) clamp(20px, 2.6vw, 38px); }
.shot.thumb { aspect-ratio: 1 / 1; border-radius: 0; background: #d9d4ca; }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot.thumb img { height: 100%; transition: scale .9s var(--ease-out), opacity .45s; }
.thumb video { opacity: 0; transition: opacity .45s, scale .9s var(--ease-out); }
.card.is-looping .thumb video { opacity: 1; }
.card:hover .thumb img, .card:hover .thumb video { scale: 1.03; }
.js .thumb { clip-path: inset(9% 9% 9% 9%); transition: clip-path 1.1s var(--ease-out); }
.js .thumb img { scale: 1.12; }
.js .thumb.in { clip-path: inset(0); }
.js .thumb.in img { scale: 1; }
.js .card:hover .thumb.in img { scale: 1.03; }
.card-ind { margin-top: 22px; font-size: 14px; font-weight: 400; color: var(--fg); }
.card-status { margin-left: 8px; padding: 2px 9px; border: 1px dashed var(--line-strong); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--fg-2); }
.card-title { margin-top: 12px; max-width: 34ch; font: 300 clamp(19px, 1.45vw, 23px)/1.32 var(--font); letter-spacing: -.012em; color: var(--fg-2); text-wrap: pretty; }
.card-name { font-weight: 500; color: var(--fg); }
.card:hover .card-name { color: var(--espresso); }

.work-more { display: flex; justify-content: center; margin-top: clamp(56px, 7vw, 96px); }
.card { display: block; }
.card[hidden] { display: none; }
.shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); border-radius: var(--r); isolation: isolate; }
.shot img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: scale .9s var(--ease-out); }
.shot.still img { height: 100%; }
.shot.video video { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale .9s var(--ease-out); }
.card:hover .shot:not(.is-mock) img, .card:hover .shot video, .card:hover .shot.is-mock .plate { scale: 1.035; }
.card.is-playing .shot.scroll img { animation: pageScroll var(--dur, 18s) linear infinite alternate; }
.card.is-playing .shot.still img { animation: drift 16s ease-in-out infinite alternate; }
.previews-paused .shot img { animation-play-state: paused !important; }
@keyframes pageScroll { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(calc(var(--travel, 0px) * -1)); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.shot .view { position: absolute; left: 16px; bottom: 16px; z-index: 1; background: var(--bg); color: var(--fg); font-size: 13px; font-weight: 500; padding: 8px 14px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease-out); }
.card:hover .shot .view, .card:focus-visible .shot .view { opacity: 1; transform: none; }
.shot.is-mock { aspect-ratio: 4 / 3; background: #141413; }
.shot.is-mock img { height: 100%; object-fit: cover; animation: none !important; }
.plate { position: absolute; inset: 0; display: block; transition: scale .9s var(--ease-out); }
/* Live screen: the site's full-page capture warped onto the rendered laptop screen (matrix3d set by site.js), scrolling on hover */
.screen-live { position: absolute; left: 0; top: 0; width: 960px; height: 600px; overflow: hidden; transform-origin: 0 0; background: #fff; opacity: 0; transition: opacity .3s; pointer-events: none; }
.screen-live.is-on { opacity: 1; }
.screen-live::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 42%), rgba(8, 8, 7, .05); }
.shot .screen-live img, .case-photo .shot .screen-live img { display: block; width: 960px; height: auto; min-height: 0; max-height: none; object-fit: fill; scale: none; transform: none; filter: saturate(.94); transition: transform .9s var(--ease-out); }
/* Card hover: a dark scrim rises with the project's tags and a round arrow */
.shot.is-mock::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 8, 7, 0) 50%, rgba(8, 8, 7, .62)); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover .shot.is-mock::after, .card:focus-visible .shot.is-mock::after { opacity: 1; }
.shot-over { position: absolute; left: 18px; bottom: 18px; z-index: 2; max-width: calc(100% - 36px); opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .5s var(--ease-out); pointer-events: none; }
.card:hover .shot-over, .card:focus-visible .shot-over { opacity: 1; transform: none; }
.over-pill { display: inline-flex; align-items: center; gap: 14px; padding: 6px 6px 6px 20px; background: #fdfdfd; color: #080807; font-size: 15px; font-weight: 500; letter-spacing: -.01em; box-shadow: 0 10px 30px rgba(8, 8, 7, .25); }
.over-pill .go { width: 38px; height: 38px; border: 0; background: #080807; color: #fdfdfd; }
.card:hover .over-pill .go { background: var(--espresso); color: #fdfdfd; }
.card:has(.is-mock) .card-meta > .go { display: none; }
.demo-chip { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 5px 11px; border-radius: 999px; background: rgba(253, 253, 253, .92); color: #080807; font-size: 12px; font-weight: 500; border: 1px dashed #85583b; }
.ov-side .spec { margin-top: 0; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
.card-meta h3 { font: 400 clamp(24px, 2.3vw, 36px)/1.08 var(--font); letter-spacing: -.03em; }
.card-sub { margin-top: 6px; font-size: 14px; color: var(--fg-2); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; list-style: none; }
.card-tags li { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--surface); color: var(--fg-2); }
.card-tags .example { padding: 4px 10px; }

/* Services */
.services-list { list-style: none; border-top: 1px solid var(--line); counter-reset: svc; }
.service { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.15fr) minmax(0, 1fr) 46px; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: center; transition: padding .45s var(--ease-out); }
.service::before { counter-increment: svc; content: counter(svc, decimal-leading-zero); align-self: start; padding-top: .6em; font-size: 14px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.service h3 { font: 300 clamp(32px, 4.2vw, 64px)/1.04 var(--font); letter-spacing: -.035em; transition: color .3s; }
.service h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service:hover { padding-left: 12px; }
.service:hover h3 { color: var(--espresso); }
.service p { color: var(--fg-2); max-width: 46ch; }
.service .go { align-self: center; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; list-style: none; }
.tags li { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--surface); color: var(--fg-2); }
.service .peek { position: absolute; right: 80px; top: 50%; width: 220px; aspect-ratio: 16/10; overflow: hidden; transform: translateY(-50%) rotate(-3deg) scale(.92); opacity: 0; transition: opacity .35s, transform .5s var(--ease-out); pointer-events: none; z-index: 2; }
.service .peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.service:hover .peek { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }

/* Services page */
.services-page { counter-reset: svc; }
.svc { padding: 56px 0 80px; border-top: 1px solid var(--line); }
.svc-head h2::before { counter-increment: svc; content: counter(svc, decimal-leading-zero) " \2014  "; color: var(--fg-3); }
.svc-head h2 { font-size: clamp(42px, 6vw, 88px); }
.svc-body { margin: 20px 0 0; max-width: 60ch; }
.svc-body p { color: var(--fg-body); font-size: 18px; }
.svc-work { margin-top: 48px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 48px; }
.faq h2 { font-size: clamp(42px, 6vw, 88px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 19px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 20px; height: 20px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease-out); }
.plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0); }
.faq details p { color: var(--fg-2); max-width: 62ch; padding-bottom: 24px; }

/* Spotlights: own products in their own panels */
.spotlight { padding-block: clamp(24px, 3vw, 40px); }
.spot-panel { border-radius: var(--r-lg); background: var(--surface); padding: clamp(24px, 4.5vw, 72px); }
.spot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.spot-grid.is-flipped .spot-copy { order: 2; }
.spot-copy h2 { font-size: clamp(42px, 5.6vw, 84px); }
.spot-copy > p { max-width: 40ch; margin-top: 20px; color: var(--fg-2); font-size: 17px; }
.spot-copy .tags { margin-top: 22px; }
.spot-copy .tags li { background: var(--bg); }
.spot-copy .btn { margin-top: 32px; }
.spot-panel .section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.spotlight:has(+ .band) { padding-bottom: clamp(80px, 10vw, 150px); } /* keep the last grey panel clear of a grey band */

/* Game player */
.game-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: var(--r); }
.game-screen:fullscreen { aspect-ratio: auto; border-radius: 0; }
.game-poster { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.game-start { position: absolute; inset: 0; display: grid; place-items: center; }
.game-play { display: inline-flex; align-items: center; gap: .4em; padding: .48em 1em .48em .86em; background: #fdfdfd; color: #080807; font: 400 clamp(24px, 2.6vw, 38px)/1 var(--font); letter-spacing: -.03em; transition: background .25s, color .25s; }
.game-play svg { width: .52em; height: .6em; fill: currentColor; transition: transform .3s var(--ease-out); }
.game-start:hover .game-play, .game-start:focus-visible .game-play { background: var(--beige); }
.game-start:hover .game-play svg { transform: translateX(3px); }
.game-screen:hover .game-poster { scale: 1.03; }
.game-start:focus-visible { outline: none; }
.game-note { position: absolute; left: 16px; bottom: 16px; background: rgba(8, 8, 7, .78); color: #fdfdfd; font-size: 13px; font-weight: 500; padding: 8px 14px; pointer-events: none; }
.game-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.game.is-on .game-poster, .game.is-on .game-start, .game.is-on .game-note { display: none; }
.game-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 18px; }
.game-keys { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; color: var(--fg-2); }
.game-keys kbd { display: inline-block; min-width: 28px; margin-right: 4px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--fg); font: 500 12px/1.2 var(--font); text-align: center; }
.game-tools { display: flex; gap: 10px; }
.game-tools [hidden] { display: none; }
.play-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: clamp(28px, 3vw, 40px); padding-top: 24px; border-top: 1px solid var(--line); }
.play-foot p { max-width: 64ch; font-size: 14px; color: var(--fg-2); }
.play-name { margin-bottom: 20px; font: 300 clamp(26px, 2.4vw, 36px)/1.05 var(--font); letter-spacing: -.03em; }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.post .cover { aspect-ratio: 4/3; overflow: hidden; background: var(--surface); border-radius: var(--r); }
.post .cover img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease-out); }
.post:hover .cover img { scale: 1.04; }
.post .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-size: 13px; color: var(--fg-2); }
.post h3 { margin-top: 10px; font: 400 23px/1.25 var(--font); letter-spacing: -.02em; }
.post:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* After hours */
.after-panel { border-radius: var(--r-lg); padding: clamp(28px, 5vw, 80px); background: var(--surface); }
.after-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.after-card { display: block; border-top: 1px solid var(--fg); padding-top: 18px; }
.after-card .kind { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2); }
.after-card h3 { margin-top: 10px; font: 300 clamp(26px, 2.4vw, 36px)/1.08 var(--font); letter-spacing: -.03em; }
.after-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.after-card p { margin-top: 12px; color: var(--fg-2); }
.after-more { margin-top: 48px; }
.chart-fig { margin-top: 18px; }
.chart-fig figcaption { font-size: 13px; font-weight: 500; color: var(--fg-2); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chart { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.bar .track { height: 12px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--fg); border-radius: 999px; transform-origin: left; transition: transform 1.2s var(--ease-out); }

/* Contact: a pale grey band, then the dark footer closes the page */
.contact { padding-block: clamp(90px, 11vw, 170px); background: var(--surface); }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact h2 { font-size: clamp(56px, 9.4vw, 150px); line-height: .98; letter-spacing: -.05em; }
.contact .lede { margin-top: 26px; max-width: 38ch; font-size: clamp(18px, 1.4vw, 21px); color: var(--fg-body); }
.contact-links { display: grid; gap: 10px; margin-top: 36px; font-size: 15px; color: var(--fg-2); }
.contact-links a { color: var(--fg); }
.form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.form h3 { font: 300 30px/1.05 var(--font); letter-spacing: -.03em; }
.form label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.form input, .form select, .form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; padding: 10px 0; font-size: 16px; color: var(--fg); border-radius: 0; }
.form select option { color: #080807; background: #fdfdfd; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--fg); }
.form textarea { resize: vertical; min-height: 96px; }
.form .btn { background: var(--fg); color: var(--bg); border-color: var(--fg); margin-top: 8px; }
.form .btn:hover { background: var(--espresso); border-color: var(--espresso); color: #fdfdfd; }
.form .note { font-size: 13px; color: var(--fg-2); min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-head { padding-bottom: clamp(56px, 7vw, 96px); }
.contact-head + .contact { padding-top: clamp(64px, 7vw, 110px); }
.to-top { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-size: 14px; }
.to-top .arrow { transform: rotate(-90deg); }
.to-top:hover .arrow { transform: rotate(-90deg) translateX(3px); }

/* Footer: the one dark block, an inset card as on CircuitX. Logo and links, a quiet wordmark rising behind the credit,
   then the base line. After the grey contact band, the card sits on that grey. */
.foot-outer { padding: 12px; }
main:has(> .contact:last-child) + .foot-outer { background: var(--surface); }
.footer { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px) 24px; }
.foot-top { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-brand { display: inline-block; font-size: 32px; }
.foot-tag { margin-top: 16px; max-width: 26ch; font-size: 18px; line-height: 1.4; color: var(--fg); }
.foot-h { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--fg); }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer ul a { display: inline-block; padding: 2px 0; font-size: 14.5px; color: var(--fg-2); transition: color .2s; }
.footer ul a:hover { color: var(--fg); }
.foot-mark { display: block; margin-top: clamp(24px, 4vw, 40px); font: 700 clamp(48px, 12.5vw, 176px)/.8 var(--font); letter-spacing: -.04em; text-align: center; white-space: nowrap; color: #1e1e1c; user-select: none; }
.foot-credit { position: relative; z-index: 1; margin-top: clamp(14px, 2vw, 22px); text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-2); }
.foot-credit b { margin-left: .4em; font: 700 12.5px/1 var(--font-logo); letter-spacing: .02em; color: var(--fg); }
.legal { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--fg-2); }

/* Case study: the title and facts on the page, then the project on a real device photo, full width */
.case-head { padding-top: clamp(118px, 13vw, 168px); padding-bottom: clamp(36px, 4.4vw, 60px); }
.back { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); transition: color .2s; }
.back .arrow { transform: rotate(180deg); }
.back:hover { color: var(--fg); }
.back:hover .arrow { transform: rotate(180deg) translateX(4px); }
.case-ind { margin-top: clamp(28px, 3.4vw, 44px); font-size: 15px; font-weight: 400; }
.case-head h1 { margin-top: 14px; font-size: clamp(52px, 8.6vw, 148px); line-height: 1; letter-spacing: -.045em; }
.case-head-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-top: clamp(22px, 2.6vw, 34px); }
.band-headline { max-width: 34ch; font: 300 clamp(21px, 2vw, 30px)/1.25 var(--font); letter-spacing: -.02em; color: var(--fg-2); }
.case-actions { margin-top: 28px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.hero-pills li { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; }
.hero-pills li.is-status { border-style: dashed; }
.case-photo { overflow: hidden; }
/* The hero photo keeps its own shape at every width, so the devices on it are never cut off */
.case-photo .case-hero-media .shot { aspect-ratio: auto; border-radius: 0; background: var(--surface); }
.case-photo .shot .plate { position: relative; inset: auto; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.03); transition: transform 1.1s var(--ease-out); }
.case-photo .shot img { display: block; width: 100%; height: auto; object-fit: cover; object-position: 50% 50%; }
.case-photo .demo-chip { top: auto; bottom: 20px; left: auto; right: 20px; }
/* Draggable gallery of device scenes */
.scenes { margin-top: clamp(80px, 9vw, 140px); }
.scenes-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 3vw, 44px); }
.scenes-head h2 { font-size: clamp(40px, 5.5vw, 80px); }
.scenes-hint { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: 14px; white-space: nowrap; }
.drag-track { display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scrollbar-width: none; cursor: grab; }
.drag-track::-webkit-scrollbar { display: none; }
.drag-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.drag-track:focus-visible { outline-offset: -3px; }
/* one height for the row; each image takes the width its own shape needs, so none is cropped */
.scene { flex: 0 0 auto; height: clamp(193px, 37.3vw, 640px); scroll-snap-align: start; border-radius: var(--r-lg); overflow: hidden; background: #141413; }
.scene img { display: block; width: auto; height: 100%; user-select: none; transition: scale 1s var(--ease-out); }
.scene:hover img { scale: 1.03; }

/* Images that open up as they scroll in */
.js .reveal-media, .js .wide-shot { clip-path: inset(7% 5%); transition: clip-path 1.2s var(--ease-out); }
.js .reveal-media img, .js .wide-shot img { scale: 1.08; transition: scale 1.4s var(--ease-out); }
.js .reveal-media.in, .js .wide-shot.in { clip-path: inset(0); }
.js .reveal-media.in img, .js .wide-shot.in img { scale: 1; }

/* Cursor bubble over projects and the gallery (mouse only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; will-change: transform; }
.cursor-in { display: grid; place-items: center; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: #fdfdfd; color: #080807; font-size: 13px; font-weight: 600; letter-spacing: -.01em; transform: scale(0); transition: transform .35s var(--ease-out); box-shadow: 0 12px 30px rgba(8, 8, 7, .25); }
.cursor.is-on .cursor-in { transform: scale(1); }
.cursor.is-dark .cursor-in { background: #080807; color: #fdfdfd; }
.has-cursor .card, .has-cursor .drag-track { cursor: none; }
[data-magnetic] { transition: transform .45s var(--ease-out), background .25s, color .25s, border-color .25s; }

.case-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(64px, 8vw, 120px); }
.ov-side .label-plain + .tags { margin-top: 0; }
.ov-side .tags + .label-plain { margin-top: 32px; }
.label-plain { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 14px; }
.ov-lead { font: 300 clamp(26px, 2.7vw, 42px)/1.2 var(--font); letter-spacing: -.025em; }
.ov-short { margin-top: 22px; max-width: 62ch; font-size: 18px; color: var(--fg-body); }
.spec { width: 100%; border-collapse: collapse; margin-top: 32px; }
.spec th, .spec td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 150px; color: var(--fg-2); font-weight: 400; }
.spec td { font-weight: 500; }


.case-points { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(80px, 9vw, 140px); }
.case-points h2 { font-size: clamp(42px, 5.4vw, 84px); }
.points-list { list-style: none; border-top: 1px solid var(--fg); }
.points-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.points-list p { font: 300 clamp(20px, 1.8vw, 28px)/1.3 var(--font); letter-spacing: -.015em; }

.case-sections { margin-top: clamp(64px, 8vw, 120px); }
.sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 80px); padding: clamp(36px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.sec-h { font: 300 clamp(30px, 3vw, 48px)/1.08 var(--font); letter-spacing: -.03em; }
.sec .prose { max-width: 66ch; }
.sec-figs { display: grid; gap: clamp(20px, 3vw, 40px); margin-bottom: clamp(36px, 4vw, 56px); }
.wide-shot { margin: 0; }
.wide-shot img { width: 100%; height: auto; aspect-ratio: auto 16 / 10; border-radius: var(--r); }
.wide-shot figcaption { margin-top: 12px; font-size: 14px; color: var(--fg-2); text-align: center; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: clamp(72px, 8vw, 110px); }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; height: auto; aspect-ratio: auto 16 / 10; border-radius: var(--r); background: var(--surface); }
.gallery figcaption { margin-top: 12px; font-size: 14px; color: var(--fg-2); }

.more-work { margin-top: clamp(100px, 11vw, 160px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(96px, 10vw, 150px); }
.more-work::before { content: ""; display: block; margin-top: calc(clamp(40px, 5vw, 64px) * -1); margin-bottom: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.more-grid .card-meta h3 { font-size: clamp(20px, 1.7vw, 26px); }
.more-grid .go { width: 40px; height: 40px; }
.more-grid .card-tags { display: none; }

/* Long-form text */
.prose { max-width: 70ch; color: var(--fg-body); font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; color: var(--fg); font: 300 clamp(30px, 3vw, 46px)/1.1 var(--font); letter-spacing: -.03em; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; color: var(--fg); font: 500 21px/1.3 var(--font); letter-spacing: -.015em; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a:not(.btn) { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--copper); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--fg-2); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.prose td:first-child { color: var(--fg); font-weight: 500; white-space: nowrap; }
.prose img { width: 100%; height: auto; border-radius: var(--r); }
.prose blockquote { padding: 22px 26px; border-radius: var(--r); background: var(--surface); color: var(--fg); font-size: 20px; letter-spacing: -.02em; }

/* Post page */
.post-head { padding-top: 150px; max-width: 980px; }
.post-head h1 { margin-top: 18px; font: 300 clamp(38px, 5vw, 76px)/1.06 var(--font); letter-spacing: -.035em; }
.byline { display: flex; gap: 12px; align-items: center; margin-top: 26px; font-size: 14px; color: var(--fg-2); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline strong { color: var(--fg); font-weight: 600; }
.post-cover { margin-top: 44px; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 56px; margin-top: 56px; padding-bottom: 120px; align-items: start; }
.toc, .related { position: sticky; top: 104px; }
.toc h2, .related h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; margin-bottom: 14px; }
.toc ol { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.toc a { color: var(--fg-2); } .toc a:hover { color: var(--fg); }
.related ol { list-style: none; }
.related li { border-bottom: 1px solid var(--line); padding: 14px 0; font-weight: 500; line-height: 1.35; }
.related li:first-child { border-top: 1px solid var(--line); }
.related a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nutshell { background: var(--surface); border-radius: var(--r); padding: 22px 26px; margin-bottom: 36px; }
.nutshell-h { font: 500 20px/1.1 var(--font); letter-spacing: -.02em; color: var(--fg); margin-bottom: 8px; }

/* About page */
.about-hero { padding-top: 160px; }
.about-hero h1 { font-size: clamp(56px, 9vw, 140px); line-height: .98; letter-spacing: -.045em; }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); margin-top: 56px; align-items: start; }
.about-photo { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.about-photo img { width: 100%; height: auto; filter: saturate(.85); }
.about-text .lead { font-size: clamp(21px, 1.9vw, 28px); line-height: 1.38; letter-spacing: -.025em; color: var(--fg); }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px !important; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { border-top: 1px solid var(--fg); padding-top: 18px; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; color: var(--fg-2); font-size: 14px; margin-bottom: 20px; }
.steps h3 { font: 400 26px/1.1 var(--font); letter-spacing: -.025em; }
.steps p { margin-top: 10px; color: var(--fg-2); }
.tool-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
.tool-group h3 { font: 400 24px/1.1 var(--font); letter-spacing: -.025em; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header .btn-sm { margin-left: auto; }
  .spot-grid, .case-overview, .case-points, .sec { grid-template-columns: minmax(0, 1fr); }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spot-grid.is-flipped .spot-copy { order: 0; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-copy { padding-top: 0; }
  .after-grid { grid-template-columns: 1fr 1fr; }
  .after-grid > :first-child { grid-column: 1 / -1; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top > div:first-child { grid-column: 1 / -1; }
  .post-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .related { grid-column: 2; position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { grid-template-columns: 48px minmax(0, 1fr) 46px; }
  .service > div:nth-child(2) { grid-column: 2; }
  .service .go { grid-column: 3; grid-row: 1; }
  .service .peek { display: none; }
  .contact-panel { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header .btn-sm { display: none; }
  .site-header .menu-btn { margin-left: auto; }
  .menu { grid-template-columns: 1fr; padding-top: 96px; }
  .hero h1 { font-size: clamp(36px, 10.2vw, 64px); }
  .hero h1 .line-in { flex-wrap: wrap; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-meta span:nth-child(2) { display: none; }
  .section-head { flex-direction: column; align-items: start; }
  /* Hero video: phones get the tall 4:5 cut; the bars move under the caption, the pause button tucks into the corner */
  .reel-media { aspect-ratio: 4 / 5; }
  .reel-item { padding-right: var(--gutter); }
  .reel-line { font-size: 26px; }
  .reel-nav { grid-area: 2 / 1; justify-content: flex-start; padding-top: 10px; }
  .reel-toggle { right: 10px; bottom: 10px; padding: 7px 10px; font-size: 12px; }



  .work-grid, .post-grid { grid-template-columns: 1fr; gap: 52px; }
  .filter-list { left: 0; right: auto; }

  .facts div { padding-right: 12px; }
  .facts dd { font-size: clamp(34px, 10vw, 52px); }
  .facts dt { font-size: 12px; }
  .intro-row { grid-template-columns: 1fr; }
  .intro-photo { max-width: 360px; }
  .intro-steps { grid-template-columns: 1fr; gap: 24px; }
  .service { grid-template-columns: minmax(0, 1fr) 46px; gap: 12px; padding: 26px 0; }
  .service::before { grid-column: 1 / -1; padding-top: 0; }
  .service > div:nth-child(n) { grid-column: 1; }
  .service .go { grid-column: 2; grid-row: 2; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .after-grid { grid-template-columns: 1fr; }
  .about-grid, .tool-groups, .more-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr; }


  .post-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .related { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .foot-outer { padding: 8px; }
  .footer { border-radius: 18px; }
  .prose td:first-child { white-space: normal; }
  .prose table { display: block; overflow-x: auto; }
  .game-keys { display: none; }
  .game-note { left: 10px; bottom: 10px; font-size: 12px; padding: 6px 11px; }
}

/* Project-to-page morph. Opening a project, its preview grows into the case-study stage and its name
   travels up into the title; going back shrinks them into the card again. base.njk names the pair. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
.case-head h1 { width: fit-content; max-width: 100%; }
.vt-src .shot .view { display: none; }
::view-transition-old(root) { animation: vt-out .22s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .5s .14s var(--ease-out) both; }
::view-transition-group(work-shot) { overflow: clip; animation-duration: .72s; animation-timing-function: var(--ease-out); }
::view-transition-old(work-shot), ::view-transition-new(work-shot) { animation-duration: .4s; }
::view-transition-group(work-title) { animation-duration: .62s; animation-timing-function: var(--ease-out); }
::view-transition-old(work-title), ::view-transition-new(work-title) { height: 100%; animation-duration: .3s; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .preloader { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-media, .js .wide-shot { clip-path: none; }
  .js .reveal-media img, .js .wide-shot img { scale: 1; }
  .stack-strip { -webkit-mask: none; mask: none; }
  .stack-track { width: auto; flex-wrap: wrap; }
  .stack-track ul + ul { display: none; }
  .stack-track ul { flex-wrap: wrap; }
}
