/* The Reel: German de Leon portfolio.
   Warm paper + ink, one ember accent. Optional "lights off" dark mode. */
:root {
  --paper: #eeeae3;
  --paper-2: #e5e0d6;
  --ink: #151412;
  --ink-2: #48453f;
  --muted: #7d786f;
  --line: rgba(21, 20, 18, .12);
  --accent: #d4521c;
  --card-shadow: 0 30px 60px -28px rgba(30, 22, 12, .45), 0 8px 18px -10px rgba(30, 22, 12, .25);
  --f-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(18px, 3vw, 40px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #121110;
  --paper-2: #1b1a18;
  --ink: #f1ede6;
  --ink-2: #c9c4bb;
  --muted: #8e887e;
  --line: rgba(241, 237, 230, .12);
  --accent: #f06a33;
  --card-shadow: 0 30px 70px -26px rgba(0, 0, 0, .8), 0 8px 18px -10px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.55;
  transition: background .6s ease, color .6s ease;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Film grain + light leak */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
:root[data-theme="dark"] .grain { opacity: .1; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.leak {
  position: fixed; z-index: 0; pointer-events: none; width: 70vmax; height: 70vmax; border-radius: 50%;
  top: -30vmax; right: -25vmax; filter: blur(60px); opacity: .35;
  background: radial-gradient(circle, rgba(232, 128, 64, .55), rgba(232, 128, 64, 0) 65%);
  animation: leak 18s ease-in-out infinite alternate;
}
:root[data-theme="dark"] .leak { opacity: .22; }
@keyframes leak { to { transform: translate(-12vmax, 14vmax) scale(1.15); } }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: 22px;
  background: linear-gradient(to bottom, var(--paper) 35%, color-mix(in srgb, var(--paper) 0%, transparent));
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.brand-mark {
  font-family: var(--f-serif); font-style: italic; font-size: 1.9rem; line-height: 1; letter-spacing: -.02em;
}
.brand-mark b { font-family: var(--f-sans); font-style: normal; font-weight: 700; }
.brand-mark i { color: var(--accent); font-style: normal; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-size: .86rem; font-weight: 600; }
.brand-text span { font-size: .62rem; color: var(--muted); }
.pills {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pills a { text-decoration: none; font-size: .82rem; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); transition: background .25s, color .25s; }
.pills a:hover { background: var(--paper-2); color: var(--ink); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.lights {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; color: var(--ink-2);
}
.lights .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 11px 18px;
  font-size: .86rem; font-weight: 600; transition: transform .25s, background .25s;
}
.btn:hover { transform: translateY(-1px); background: var(--accent); color: #fff; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }
@media (max-width: 860px) { .pills, .brand-text { display: none; } .nav { grid-template-columns: 1fr auto; } }
@media (max-width: 480px) { .lights span:not(.dot) { display: none; } }

/* Hero / reel */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; z-index: 1; }
.intro {
  position: absolute; z-index: 5; left: max(var(--gutter), env(safe-area-inset-left)); top: 108px; max-width: 34ch;
}
.intro h1 { margin: 0; font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
.intro h1 .serif { font-size: 1.12em; }
.intro p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.corner { position: absolute; z-index: 5; right: max(var(--gutter), env(safe-area-inset-right)); top: 112px; text-align: right; color: var(--muted); display: grid; gap: 4px; }
.corner .live { color: var(--ink); display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; }
.corner .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.ghost {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; pointer-events: none;
  font-weight: 600; font-size: clamp(5rem, 17vw, 17rem); letter-spacing: -.055em; line-height: .8;
  color: color-mix(in srgb, var(--ink) 9%, transparent); white-space: nowrap;
}
.ghost span { transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.ghost span.out { opacity: 0; transform: translateY(18px); filter: blur(8px); }

.stage {
  position: absolute; inset: 0; z-index: 3; perspective: 1500px; perspective-origin: 50% 42%;
  display: grid; place-items: center; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.stage.dragging { cursor: grabbing; }
.ring { position: relative; width: var(--cw); height: var(--ch); transform-style: preserve-3d; --ch: clamp(360px, 58vh, 600px); --cw: calc(var(--ch) * .74); margin-top: -3vh; }
@media (max-width: 720px) { .ring { --ch: clamp(250px, 38vh, 360px); margin-top: -14vh; } }
.card {
  position: absolute; inset: 0; transform-style: preserve-3d; border: 0; padding: 0; background: none; cursor: pointer;
  border-radius: 16px; text-align: left; -webkit-tap-highlight-color: transparent;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.card .frame { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card .frame {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: var(--paper-2);
  box-shadow: var(--card-shadow); outline: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  transition: filter .5s, transform .5s cubic-bezier(.2, .7, .2, 1);
}
.card .bar {
  position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 2; display: flex; align-items: center; gap: 5px; padding: 0 10px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.card .bar i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.card .bar em { margin-left: auto; margin-right: auto; font-style: normal; font-family: var(--f-mono); font-size: .55rem; color: var(--muted); letter-spacing: .04em; }
.card .shot {
  position: absolute; top: 26px; left: 0; width: 100%; height: auto; min-height: calc(100% - 26px); object-fit: cover; object-position: top;
  transition: transform 1.2s cubic-bezier(.3, .6, .2, 1);
}
.card.is-front:hover .shot, .card.is-front:focus-visible .shot { transform: translateY(var(--scroll, 0px)); transition: transform 7s linear; }
.card .label {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 8px;
  color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); pointer-events: none;
}
.card .label strong { font-size: .9rem; font-weight: 600; line-height: 1.15; }
.card .label .mono { font-size: .55rem; opacity: .85; }
.card .frame::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 38%); pointer-events: none; }
.card.is-front .frame { transform: translateZ(30px); }
.card.future .shot { filter: blur(10px) saturate(1.2); transform: scale(1.15); }
.card.future .frame { background: #0b1a3a; }
.card.future .stamp, .card.yours .stamp {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; gap: 6px; color: #fff; padding: 20px;
}
.card.future .stamp b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 2rem; line-height: 1; }
.card.yours .frame { background: transparent; box-shadow: none; outline: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.card.yours .frame::after { display: none; }
.card.yours .stamp { color: var(--ink); }
.card.yours .stamp b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 2.3rem; line-height: 1; }
.card.yours .stamp .plus { width: 54px; height: 54px; margin: 0 auto 6px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.6rem; color: var(--accent); }

.reflection {
  position: absolute; left: 50%; bottom: 13vh; width: min(560px, 80vw); height: 60px; transform: translateX(-50%); z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(40, 30, 20, .22), rgba(40, 30, 20, 0) 70%); filter: blur(6px);
}
:root[data-theme="dark"] .reflection { background: radial-gradient(ellipse at center, rgba(240, 106, 51, .18), rgba(0, 0, 0, 0) 70%); }

.meta {
  position: absolute; z-index: 5; left: max(var(--gutter), env(safe-area-inset-left)); bottom: max(28px, env(safe-area-inset-bottom));
  display: grid; gap: 6px; max-width: min(560px, 60vw);
}
.meta .count { color: var(--muted); }
.meta .count b { color: var(--accent); font-weight: 500; }
.meta h2 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: .98; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.meta .cat { color: var(--ink-2); font-size: .95rem; }
.meta .open { justify-self: start; margin-top: 8px; }
.meta .swap { transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.meta.changing .swap { opacity: 0; transform: translateY(10px); }

.controls {
  position: absolute; z-index: 5; right: max(var(--gutter), env(safe-area-inset-right)); bottom: max(28px, env(safe-area-inset-bottom));
  display: grid; justify-items: end; gap: 12px;
}
.controls .arrows { display: flex; gap: 8px; }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 60%, transparent);
  display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s, transform .25s; backdrop-filter: blur(8px);
}
.round:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.controls .hint { color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, width .3s; }
.dots i.on { background: var(--accent); width: 18px; border-radius: 4px; }
@media (max-width: 720px) {
  .intro { top: 92px; max-width: 22ch; } .corner { display: none; }
  .meta { max-width: calc(100vw - 2 * var(--gutter)); bottom: 108px; }
  .intro { max-width: 24ch; }
  .controls { bottom: 28px; left: max(var(--gutter), env(safe-area-inset-left)); right: auto; justify-items: start; }
  .controls .hint { display: none; }
  .reflection { bottom: 30vh; }
}

/* Zoom transition into a case study */
.zoom {
  position: fixed; z-index: 200; border-radius: 16px; background-size: cover; background-position: top center; background-color: #0c0a0a;
  transition: all .75s cubic-bezier(.7, 0, .2, 1);
}
.zoom.full { inset: 0 !important; width: 100vw !important; height: 100vh !important; border-radius: 0; filter: brightness(.35); }

/* Sections */
section { position: relative; z-index: 1; }
.sec { padding-block: clamp(90px, 12vw, 160px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { margin: 0; font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: .95; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; max-width: 14ch; }
.sec-head p { margin: 0; max-width: 40ch; color: var(--ink-2); }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 18px; }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }

/* Work index */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row a {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1.4fr) minmax(0, 1fr) 5rem 2rem; gap: 16px; align-items: center;
  padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s, color .3s;
}
.row a:hover { padding-left: 18px; color: var(--accent); }
.row .n { color: var(--muted); }
.row .name { font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.row .what { color: var(--ink-2); font-size: .92rem; }
.row .yr { color: var(--muted); text-align: right; }
.row .go { text-align: right; transition: transform .3s; }
.row a:hover .go { transform: translateX(4px); }
.row.soon .name::after { content: "In production"; margin-left: 12px; vertical-align: middle; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 720px) {
  .row a { grid-template-columns: 2.2rem minmax(0, 1fr) 1.4rem; }
  .row .what, .row .yr { display: none; }
}
.peek {
  position: fixed; z-index: 40; width: 280px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; pointer-events: none;
  box-shadow: var(--card-shadow); opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-3deg);
  transition: opacity .25s, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (hover: none) { .peek { display: none; } }

/* Practice: fanned cards */
.fan { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; perspective: 1400px; }
.svc {
  position: relative; min-height: 520px; border-radius: 18px; padding: 28px; background: var(--paper-2);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; transform-origin: 50% 120%;
}
.svc:nth-child(1) { transform: translateX(62%) rotate(-7deg); }
.svc:nth-child(2) { transform: translateY(16px); z-index: 2; }
.svc:nth-child(3) { transform: translateX(-62%) rotate(7deg); }
.fan.open .svc { transform: none; }
.fan.open .svc:hover { transform: translateY(-8px); box-shadow: var(--card-shadow); }
.svc .num { display: flex; justify-content: space-between; color: var(--muted); }
.svc h3 { margin: 4px 0 0; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: .95; letter-spacing: -.04em; font-weight: 600; }
.svc h3 .serif { color: var(--accent); }
.svc p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.svc ul { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.svc li { font-size: .74rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.svc:nth-child(2) { background: var(--ink); color: var(--paper); border-color: transparent; }
.svc:nth-child(2) p, .svc:nth-child(2) li, .svc:nth-child(2) .num { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.svc:nth-child(2) li, .svc:nth-child(2) ul { border-color: color-mix(in srgb, var(--paper) 18%, transparent); }
@media (max-width: 860px) {
  .fan { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(n) { transform: none; min-height: 320px; }
}

/* Person */
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.portrait { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: #0d0c0b; box-shadow: var(--card-shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait figcaption { position: absolute; left: 16px; bottom: 14px; color: rgba(255, 255, 255, .75); }
.person h2 { margin: 0 0 22px; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: .96; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.person p { margin: 0 0 16px; max-width: 54ch; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.stats div { padding: 20px 16px 0 0; display: grid; gap: 4px; }
.stats b { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .86rem; }
@media (max-width: 860px) { .person { grid-template-columns: 1fr; } .portrait { max-width: 420px; } }

/* Process film strip */
.strip-sec { height: 340vh; padding: 0; }
.strip-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 30px); padding-top: 72px; }
.strip-head { margin-bottom: 0 !important; align-items: end; }
.reel-count { display: grid; justify-items: end; gap: 6px; color: var(--muted); }
.reel-count b { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -.02em; color: var(--ink); font-family: var(--f-sans); }
.reel-count b span { color: var(--accent); }
.reel-count .tc::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; animation: rec 1.6s steps(2) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.strip { --fw: clamp(260px, min(78vw, calc((100vh - 500px) * 1.45)), 540px); display: flex; gap: 0; will-change: transform; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.frame-f { flex: none; width: var(--fw); display: flex; flex-direction: column; }
.cell {
  --film: #0f0d0c; position: relative; padding: 30px 14px; background: var(--film);
  border-right: 1px solid rgba(255,255,255,.06);
}
.frame-f:first-child .cell { border-radius: 14px 0 0 14px; } .frame-f:last-child .cell { border-radius: 0 14px 14px 0; border-right: 0; }
.cell::before, .cell::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 10px;
  background: repeating-linear-gradient(90deg, #e9e3d9 0 12px, transparent 12px 26px); opacity: .85;
  -webkit-mask: linear-gradient(#000 0 0); border-radius: 2px;
}
.cell::before { top: 10px; } .cell::after { bottom: 10px; }
.edge { position: absolute; right: 16px; bottom: -1px; transform: translateY(-26px); font-size: .58rem; color: #e0703a; opacity: .7; letter-spacing: .2em; z-index: 2; }
.sc { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #1c1916; transition: filter .6s, opacity .6s; filter: saturate(.2) brightness(.6); }
.frame-f.on .sc { filter: none; }
.cap { padding: 18px 22px 0 4px; opacity: .45; transition: opacity .6s; }
.frame-f.on .cap { opacity: 1; }
.cap .wk { color: var(--accent); }
.cap h3 { margin: 6px 0 6px; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.04em; line-height: .95; font-weight: 600; }
.cap p { margin: 0; color: var(--ink-2); max-width: 36ch; font-size: .95rem; }
.sc .tag { position: absolute; left: 12px; bottom: 10px; font-size: .6rem; color: rgba(255,255,255,.75); background: rgba(0,0,0,.55); padding: 5px 9px; border-radius: 999px; backdrop-filter: blur(6px); z-index: 3; }

/* Audit scene */
.sc-audit { background: #f3efe8; }
.wire { position: absolute; inset: 10% 12%; display: grid; gap: 7%; align-content: start; }
.wire i { display: block; background: #d9d2c6; border-radius: 3px; }
.w-nav { height: 8px; width: 100%; } .w-hero { height: 34%; min-height: 40px; background: #cbc2b4 !important; } .w-l { height: 7px; width: 70%; } .w-l.s { width: 45%; }
.w-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .w-cols i { height: 26px; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(transparent, rgba(212,82,28,.18) 80%, rgba(212,82,28,.9) 98%, transparent); opacity: 0; }
.frame-f.on .scan { opacity: 1; animation: scan 2.8s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.flag { position: absolute; display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 500; color: #151412; background: #fff; padding: 5px 9px 5px 5px; border-radius: 999px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.35); opacity: 0; transform: scale(.7); transition: opacity .4s, transform .5s cubic-bezier(.3,1.6,.5,1); white-space: nowrap; }
.flag em { font-style: normal; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: #d4521c; color: #fff; font-size: .6rem; font-weight: 700; }
.f1 { left: 46%; top: 16%; } .f2 { left: 8%; top: 48%; } .f3 { right: 7%; top: 66%; }
.frame-f.on .flag { opacity: 1; transform: none; }
.frame-f.on .f1 { transition-delay: .6s; } .frame-f.on .f2 { transition-delay: 1.2s; } .frame-f.on .f3 { transition-delay: 1.8s; }

/* Direction scene */
.sc-dir { background: radial-gradient(circle at 50% 60%, #3a1a17, #141110 70%); }
.d { position: absolute; margin: 0; width: 52%; top: 18%; left: 24%; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 30px -12px rgba(0,0,0,.7); transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .6s, filter .6s; }
.d img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.d span { position: absolute; left: 6px; top: 6px; font-size: .58rem; color: #fff; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 4px; }
.frame-f.on .d1 { transform: translate(-46%, 8%) rotate(-8deg) scale(.82); filter: brightness(.55); }
.frame-f.on .d3 { transform: translate(46%, 8%) rotate(8deg) scale(.82); filter: brightness(.55); }
.frame-f.on .d2 { transform: translateY(-4%) scale(1.04); transition-delay: .2s; }
.stamp { position: absolute; right: 9%; top: 9%; z-index: 3; font-size: .66rem; color: #e5484d; border: 1.5px solid currentColor; padding: 4px 9px; border-radius: 4px; transform: rotate(-10deg) scale(1.8); opacity: 0; transition: transform .45s cubic-bezier(.3,1.5,.5,1), opacity .3s; background: rgba(15,13,12,.7); }
.frame-f.on .stamp { opacity: 1; transform: rotate(-10deg) scale(1); transition-delay: 1.1s; }

/* Build scene */
.sc-build { background: linear-gradient(160deg, #26211d, #141110); }
.br { position: absolute; left: 10%; right: 10%; top: 10%; bottom: 22%; background: #f3efe8; border-radius: 7px; overflow: hidden; }
.br-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #e2dbcf; }
.br-bar i { width: 6px; height: 6px; border-radius: 50%; background: #b9b0a2; }
.br-bar em { margin-left: 8px; font-style: normal; font-size: .55rem; color: #7d786f; }
.br-body { padding: 8% 9%; display: grid; gap: 8px; }
.br-body > i, .b4 i { display: block; background: #d9d2c6; border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.b1 { height: 12px; width: 70%; background: #151412 !important; } .b2 { height: 6px; width: 50%; } .b3 { height: 14px; width: 26%; border-radius: 999px !important; background: #d4521c !important; }
.b4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; } .b4 i { height: 22px; transform: scaleY(0); transform-origin: bottom; }
.frame-f.on .br-body i { transform: none; }
.frame-f.on .b1 { transition-delay: .3s; } .frame-f.on .b2 { transition-delay: .6s; } .frame-f.on .b3 { transition-delay: .9s; }
.frame-f.on .b4 i:nth-child(1) { transition-delay: 1.1s; } .frame-f.on .b4 i:nth-child(2) { transition-delay: 1.25s; } .frame-f.on .b4 i:nth-child(3) { transition-delay: 1.4s; }
.sprints { position: absolute; left: 10%; right: 10%; bottom: 8%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sprints span { position: relative; font-size: .55rem; color: rgba(255,255,255,.55); padding-top: 8px; }
.sprints span::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); }
.sprints span::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; border-radius: 3px; background: #e0703a; transition: width .7s ease; }
.frame-f.on .sprints span::after { width: 100%; }
.frame-f.on .sprints span:nth-child(2)::after { transition-delay: .7s; } .frame-f.on .sprints span:nth-child(3)::after { transition-delay: 1.4s; }
.ready { position: absolute; right: 6%; top: 52%; display: flex; align-items: center; gap: 7px; font-size: .6rem; color: #151412; background: #fff; padding: 6px 10px; border-radius: 999px; box-shadow: 0 10px 22px -8px rgba(0,0,0,.6); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s cubic-bezier(.3,1.5,.5,1); }
.ready i { width: 7px; height: 7px; border-radius: 50%; background: #2fa36b; }
.frame-f.on .ready { opacity: 1; transform: none; transition-delay: 2.1s; }

/* Grow scene */
.sc-grow { background: #f3efe8; }
.rep { position: absolute; inset: 10% 9% 20%; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; }
.rep-h { display: flex; justify-content: space-between; font-size: .55rem; color: #7d786f; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8%; align-items: end; border-bottom: 1px solid #d9d2c6; }
.bars i { display: block; height: var(--h); border-radius: 4px 4px 0 0; background: #d9d2c6; transform: scaleY(0); transform-origin: bottom; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.bars i:last-child { background: #d4521c; }
.frame-f.on .bars i { transform: none; }
.frame-f.on .bars i:nth-child(2) { transition-delay: .15s; } .frame-f.on .bars i:nth-child(3) { transition-delay: .3s; } .frame-f.on .bars i:nth-child(4) { transition-delay: .45s; } .frame-f.on .bars i:nth-child(5) { transition-delay: .6s; } .frame-f.on .bars i:nth-child(6) { transition-delay: .75s; }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8%; font-size: .52rem; color: #7d786f; text-align: center; }

/* Timeline rail */
.rail { margin-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); display: grid; gap: 10px; }
.rail-track { height: 2px; background: var(--line); }
.rail-track i { display: block; height: 100%; width: 0; background: var(--accent); }
.rail-labels { display: grid; grid-template-columns: repeat(4, 1fr); color: var(--muted); }
.rail-labels span { transition: color .4s; } .rail-labels span.on { color: var(--ink); }
.rail-labels span:nth-child(2) { text-align: center; } .rail-labels span:nth-child(3) { text-align: center; } .rail-labels span:last-child { text-align: right; }
@media (max-width: 720px) { .strip { --fw: 82vw; } .reel-count .tc { display: none; } }
@media (prefers-reduced-motion: reduce) { .frame-f .sc, .frame-f .cap { filter: none; opacity: 1; } .scan { display: none; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.contact h2 { margin: 0; font-size: clamp(3rem, 8vw, 7.2rem); line-height: .9; letter-spacing: -.05em; font-weight: 600; text-wrap: balance; }
.contact h2 .serif { color: var(--accent); }
.contact .lede { margin: 26px 0 30px; max-width: 46ch; color: var(--ink-2); font-size: 1.05rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ghost-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; text-decoration: none; font-size: .86rem; transition: border-color .25s, color .25s; }
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }
.blank {
  aspect-ratio: 3 / 4; border-radius: 18px; border: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent);
  display: grid; place-content: center; text-align: center; gap: 10px; transform: rotate(4deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .3s;
  text-decoration: none; padding: 20px; width: 100%; max-width: 340px; justify-self: center;
}
.blank:hover { transform: rotate(0deg) translateY(-6px); border-color: var(--accent); }
.blank b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; }
.blank .plus { width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.8rem; color: var(--accent); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .blank { max-width: 300px; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .85rem; transition: all .3s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-block: 26px max(26px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }

/* Project preview sheet */
.sheet { border: 0; padding: 0; width: min(980px, 94vw); max-height: 90vh; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .6); }
.sheet::backdrop { background: rgba(12, 10, 8, .55); backdrop-filter: blur(6px); }
.sheet-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; padding: 26px 28px 18px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 4px 0 0; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1; font-weight: 600; }
.sheet-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 60ch; }
.sheet-body { max-height: 62vh; overflow: auto; padding: 22px 28px 28px; }
.sheet-body img { border-radius: 10px; border: 1px solid var(--line); width: 100%; }
.sheet-note { color: var(--muted); margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .card.is-front:hover .shot { transform: none; }
  .svc:nth-child(n) { transform: none; }
}

/* ---------- Practice card scenes ---------- */
.viz { position: relative; flex: 1; min-height: 190px; margin: 6px -6px 6px; }
.svc .viz ~ h3 { margin-top: 0; }

/* Design: fanned work frames, a spec chip and a live cursor */
.vz-design .f { position: absolute; width: 62%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); border: 1px solid var(--line); top: 22%; left: 19%;
  transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.vz-design .f1 { transform: rotate(-4deg); }
.vz-design .f2 { transform: rotate(3deg); }
.vz-design .f3 { transform: none; }
.fan.open .vz-design .f1 { transform: translate(-30%, 10%) rotate(-10deg); }
.fan.open .vz-design .f2 { transform: translate(30%, 6%) rotate(9deg); }
.fan.open .vz-design .f3 { transform: translateY(-14%); }
.svc:hover .vz-design .f1 { transform: translate(-36%, 6%) rotate(-13deg); }
.svc:hover .vz-design .f2 { transform: translate(36%, 2%) rotate(12deg); }
.svc:hover .vz-design .f3 { transform: translateY(-20%) scale(1.04); }
.vz-design .spec { position: absolute; right: 4%; top: 0; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(0,0,0,.4); z-index: 3; }
.vz-design .spec b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.15rem; line-height: 1; }
.vz-design .spec span { font-size: .58rem; color: var(--muted); margin-right: 2px; }
.vz-design .spec i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.vz-design .cursor { position: absolute; left: 30%; top: 70%; z-index: 4; color: var(--accent); display: flex; align-items: flex-start; gap: 2px;
  animation: cursor 7s ease-in-out infinite; }
.vz-design .cursor span { margin-top: 12px; font-size: .62rem; font-weight: 600; color: #fff; background: var(--accent); padding: 3px 7px; border-radius: 6px 6px 6px 2px; }
@keyframes cursor { 0%,100% { transform: translate(0,0); } 30% { transform: translate(90px,-60px); } 55% { transform: translate(150px,-10px); } 80% { transform: translate(40px,-80px); } }

/* Build: a code window that types itself, then ships */
.vz-build .code { position: absolute; inset: 4% 0 auto; border-radius: 12px; overflow: hidden; background: #1f1d1b; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.vz-build .cbar { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.vz-build .cbar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); }
.vz-build .cbar em { margin-left: 8px; font-style: normal; font-family: var(--f-mono); font-size: .6rem; color: rgba(255,255,255,.45); }
.vz-build .lines { padding: 12px 14px 16px; display: grid; gap: 5px; font-family: var(--f-mono); font-size: .7rem; line-height: 1.5; color: #e9e4dc; counter-reset: ln; }
.vz-build .ln { display: block; white-space: pre; overflow: hidden; width: 0; max-width: 100%; position: relative; }
.vz-build .ln.typing::after { content: ""; position: absolute; right: 0; top: 2px; bottom: 2px; width: 6px; background: var(--accent); animation: blink .8s steps(1) infinite; }
.vz-build .ln b { font-weight: 400; }
.vz-build .t { color: #f08a5d; } .vz-build .a { color: #e8c37a; } .vz-build .s { color: #9fd3a8; }
@keyframes blink { 50% { opacity: 0; } }
.vz-build .ship { position: absolute; left: 50%; bottom: 2%; transform: translate(-50%, 14px) scale(.96); opacity: 0; white-space: nowrap;
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: .76rem; font-weight: 600; box-shadow: 0 16px 34px -14px rgba(0,0,0,.7); transition: opacity .5s, transform .6s cubic-bezier(.2,.7,.2,1); }
.vz-build .ship i { width: 8px; height: 8px; border-radius: 50%; background: #2fae5f; box-shadow: 0 0 0 4px rgba(47,174,95,.2); }
.vz-build.shipped .ship { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* Grow: a line that draws itself, with the ROAS stat riding it */
.vz-grow svg { position: absolute; inset: 18% 0 14% 0; width: 100%; height: 68%; overflow: visible; }
.vz-grow .grid line { stroke: var(--line); stroke-dasharray: 3 5; }
.vz-grow .area { fill: url(#g-area); opacity: 0; transition: opacity 1.2s .9s; }
.vz-grow .line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.6,.1,.2,1) .2s; }
.fan.open .vz-grow .line { stroke-dashoffset: 0; }
.fan.open .vz-grow .area { opacity: 1; }
.vz-grow .dot { position: absolute; right: 0; top: calc(18% + 68% * 16 / 140); width: 10px; height: 10px; margin: -5px -5px 0 0; border-radius: 50%;
  background: var(--accent); opacity: 0; transition: opacity .4s 2.3s; }
.vz-grow .dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 1.8s ease-out infinite; }
.fan.open .vz-grow .dot { opacity: 1; }
@keyframes ping { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.vz-grow .kpi { position: absolute; left: 0; top: 0; display: grid; gap: 2px; }
.vz-grow .kpi span { font-size: .6rem; color: var(--muted); }
.vz-grow .kpi b { font-size: 2.1rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.vz-grow .chips { position: absolute; left: 0; bottom: 0; display: flex; gap: 6px; }
.vz-grow .chips span { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.svc:hover .vz-grow .kpi b { color: var(--accent); }

@media (max-width: 860px) { .svc, .svc:nth-child(n) { min-height: 480px; } }
@media (prefers-reduced-motion: reduce) {
  .vz-design .cursor, .vz-grow .dot::after { animation: none; }
  .vz-grow .line { stroke-dashoffset: 0; transition: none; } .vz-grow .area { opacity: 1; }
  .vz-build .ln { width: auto; } .vz-build .ship { opacity: 1; transform: translate(-50%, 0); }
}

/* ===================== Noa Vale pass 2 ===================== */
/* Nav icons + glossy copper button */
.pills a { display: inline-flex; align-items: center; gap: 7px; }
.pills svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3; opacity: .75; }
.glow {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; padding: 5px 5px 5px 18px; border-radius: 10px;
  background: linear-gradient(180deg, #e8763f 0%, #c9521f 55%, #b3441a 100%); color: #fff7ef;
  border: 1px solid #8f3412; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 4px rgba(90,25,5,.35), 0 10px 22px -10px rgba(180,68,26,.7);
  transition: transform .25s, box-shadow .25s;
}
.glow .mono { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(90,25,5,.4); }
.glow .tile { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center;
  background: linear-gradient(180deg, #ffb075, #e0682c); border: 1px solid #8f3412; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.glow svg { width: 15px; height: 15px; fill: none; stroke: #5a1d06; stroke-width: 1.4; }
.glow:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 4px rgba(90,25,5,.35), 0 14px 28px -10px rgba(180,68,26,.85); }
@media (max-width: 520px) { .glow { padding-left: 14px; gap: 10px; } }

/* Hero scroll cue */
.cue { position: absolute; z-index: 6; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink-2); }
.cue-ring { width: 50px; height: 50px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); display: grid; place-items: center; color: var(--accent); font-size: 1.1rem; animation: bob 2.4s ease-in-out infinite; }
.cue .mono { font-size: .6rem; letter-spacing: .14em; line-height: 1.7; text-transform: uppercase; }
@keyframes bob { 50% { transform: translateY(5px); } }
@media (max-width: 1100px) { .cue { display: none; } }

/* Two-tone headlines */
.tone { display: block; color: var(--accent); }
.corner-note { color: var(--muted); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; align-self: start; }
.offset { margin: -10px 0 clamp(40px, 5vw, 64px) auto; width: min(100%, 58%); color: var(--ink-2); font-size: 1.12rem; line-height: 1.55; }
@media (max-width: 860px) { .offset { width: 100%; margin-left: 0; } }

/* Numbered gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 22px; }
.gallery .row { opacity: 0; transform: translateY(30px); transition: opacity .8s ease var(--d, 0ms), transform 1s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.gallery .row.in { opacity: 1; transform: none; }
.gallery .row a { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px; text-decoration: none; padding: 0; border: 0; }
.gallery .row a:hover { padding: 0; color: inherit; }
.gallery .thumb { grid-column: 1 / -1; position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--paper-2); margin-bottom: 12px;
  box-shadow: 0 1px 0 var(--line); }
.gallery .thumb img { width: 100%; min-height: 100%; object-fit: cover; object-position: top; transition: transform 6s cubic-bezier(.3,.1,.2,1); }
.gallery .row a:hover .thumb img { transform: translateY(calc(-100% + 100cqh)); }
.gallery .thumb { container-type: size; }
.gallery .row a:hover .thumb { box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.gallery .n { color: var(--ink); font-size: .9rem; font-family: var(--f-sans); }
.gallery .n::after { content: " /"; color: var(--muted); }
.gallery .name { font-size: .95rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.gallery .what { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; }
.gallery .yr, .gallery .go { display: none; }
.gallery .row a:hover .name { color: var(--accent); }
.gallery .row.soon .thumb img { filter: blur(12px) saturate(.8); transform: scale(1.15); }
.gallery .row.soon a:hover .thumb img { transform: scale(1.15); }
.gallery .row.soon .thumb::after { content: "In production · 2027"; position: absolute; inset: auto 12px 12px auto; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; background: var(--paper); color: var(--ink-2); }
.gallery .row.soon .name::after { content: none; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; } }

/* Behind the work */
.behind-head { display: grid; justify-items: center; gap: 14px; text-align: center; margin-bottom: clamp(50px, 7vw, 100px); }
.behind-head .mono { color: var(--ink-2); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; }
.behind-head h2 { margin: 0; font-size: clamp(3.4rem, 10vw, 8.4rem); line-height: .9; letter-spacing: -.06em; font-weight: 600; }
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.reveal-up.in { opacity: 1; transform: none; }
.behind { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.behind-left { position: sticky; top: 110px; display: grid; justify-items: center; }
.behind .portrait { width: min(100%, 400px); aspect-ratio: 4 / 5; }
.behind-cards { display: grid; gap: 28px; }
.story { position: relative; padding: clamp(28px, 3.4vw, 44px); border-radius: 18px; background: color-mix(in srgb, var(--paper) 55%, #fff); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); display: grid; gap: 18px;
  opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
:root[data-theme="dark"] .story { background: color-mix(in srgb, var(--paper) 80%, #fff); }
.story.in { opacity: 1; transform: none; }
.story .label { color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.story h3 { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.story p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.story .foot { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); padding-top: 6px; }
.becomes { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -.01em; }
.becomes span { opacity: 0; transform: translateX(-10px); transition: opacity .6s, transform .7s cubic-bezier(.2,.7,.2,1); }
.becomes .to { color: var(--accent); padding-left: 22px; margin-bottom: 8px; }
.story.in .becomes span { opacity: 1; transform: none; }
.story.in .becomes span:nth-child(2) { transition-delay: .25s; } .story.in .becomes span:nth-child(3) { transition-delay: .5s; }
.story.in .becomes span:nth-child(4) { transition-delay: .75s; } .story.in .becomes span:nth-child(5) { transition-delay: 1s; }
.story.in .becomes span:nth-child(6) { transition-delay: 1.25s; }
.steps { display: grid; gap: 4px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.steps span { transition: color .5s; }
.steps span:nth-child(2) { padding-left: 14%; } .steps span:nth-child(3) { padding-left: 30%; }
.steps span.on { color: var(--accent); }
.story .stats { margin-top: 6px; }
.story.center { text-align: center; justify-items: center; }
.story .big { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink); line-height: 1.35; max-width: 26ch; }
.story .sig { font-family: var(--f-serif); font-style: italic; font-size: 1.8rem; line-height: 1; margin-top: 6px; }
@media (max-width: 860px) { .behind { grid-template-columns: 1fr; } .behind-left { position: static; } .behind .portrait { width: min(100%, 320px); } }

/* Close: centered call to action */
.close { display: grid; justify-items: center; text-align: center; gap: 20px; padding-top: 30px;
  opacity: 0; transform: translateY(30px); transition: opacity 1s, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.close.in { opacity: 1; transform: none; }
.close > .mono { color: var(--ink-2); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
.close h2 { margin: 0; font-size: clamp(3rem, 8vw, 6.6rem); line-height: .92; letter-spacing: -.055em; font-weight: 600; text-shadow: 0 20px 40px rgba(0,0,0,.08); }
.close > p { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: 1.08rem; }
.next-card { width: 150px; aspect-ratio: 3 / 4; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); display: grid; place-content: center; gap: 6px;
  text-decoration: none; transform: rotate(-6deg); margin-bottom: 10px; background: color-mix(in srgb, var(--paper) 60%, #fff); box-shadow: 0 30px 50px -30px rgba(0,0,0,.35);
  transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.close.in .next-card { animation: floaty 6s ease-in-out infinite; }
.next-card .plus { width: 38px; height: 38px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); font-size: 1.2rem; }
.next-card b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.35rem; }
.next-card .mono { font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@keyframes floaty { 0%,100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }
.chrome { margin-top: 18px; display: inline-flex; align-items: center; gap: 30px; padding: 16px 18px 16px 40px; text-decoration: none; color: #2a2826;
  background: linear-gradient(180deg, #fbfaf8 0%, #dcd9d4 48%, #b9b5af 100%); border: 1px solid #77736d; border-radius: 4px;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.15), 0 22px 40px -20px rgba(0,0,0,.45); transition: transform .25s, box-shadow .25s; }
.chrome .mono { font-size: .86rem; letter-spacing: .2em; text-transform: uppercase; }
.chrome .orb { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ffc49c, var(--accent) 55%, #8f3412); box-shadow: inset 0 2px 4px rgba(255,255,255,.5), 0 8px 18px -6px rgba(143,52,18,.7);
  transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.chrome:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.15), 0 28px 50px -20px rgba(0,0,0,.5); }
.chrome:hover .orb { transform: translateX(4px) rotate(-8deg); }
.quiet { display: flex; align-items: center; gap: 14px; color: var(--ink-2) !important; font-size: .95rem !important; }
.quiet i { width: 26px; height: 1px; background: var(--accent); }
.close .contact-links { justify-content: center; margin-top: 10px; }

/* Footer */
.site-foot { align-items: end; padding-top: 34px; }
.site-foot b { display: block; font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.site-foot b i { color: var(--accent); font-style: normal; }
.site-foot .mono { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-foot nav a { color: var(--ink-2); text-decoration: none; text-transform: none; letter-spacing: 0; font-family: var(--f-sans); font-size: .86rem; }
.site-foot nav a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .gallery .row, .story, .reveal-up, .close, .becomes span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cue-ring, .close.in .next-card { animation: none; }
}

/* The fine print: cleanup tickets */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tk { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.tk:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.tk-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.tk h3 { margin: 6px 0 0; font-size: 1.45rem; line-height: 1.05; letter-spacing: -.03em; font-weight: 600; }
.tk p { margin: 0; color: var(--ink-2); font-size: .94rem; flex: 1; }
.ba { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .74rem; }
.ba s { color: var(--muted); text-decoration-color: var(--accent); }
.ba span { color: var(--muted); }
.ba em { font-style: normal; color: var(--ink); font-weight: 500; }
.st { position: relative; display: inline-grid; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); overflow: hidden; font-size: .68rem; }
.st i, .st b { grid-area: 1 / 1; font-style: normal; font-weight: 500; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.st b { transform: translateY(120%); opacity: 0; color: #fff; }
.st::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.st i, .st b { position: relative; }
.board.in .st::before { transform: scaleX(1); }
.board.in .st i { transform: translateY(-120%); opacity: 0; }
.board.in .st b { transform: none; opacity: 1; }
.board.in .tk:nth-child(1) .st *, .board.in .tk:nth-child(1) .st::before { transition-delay: .5s; }
.board.in .tk:nth-child(2) .st *, .board.in .tk:nth-child(2) .st::before { transition-delay: .75s; }
.board.in .tk:nth-child(3) .st *, .board.in .tk:nth-child(3) .st::before { transition-delay: 1s; }
.board.in .tk:nth-child(4) .st *, .board.in .tk:nth-child(4) .st::before { transition-delay: 1.25s; }
.board.in .tk:nth-child(5) .st *, .board.in .tk:nth-child(5) .st::before { transition-delay: 1.5s; }
.board.in .tk:nth-child(6) .st *, .board.in .tk:nth-child(6) .st::before { transition-delay: 1.75s; }
.fixes-foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.fixes-foot p { margin: 0; color: var(--ink-2); }
@media (max-width: 960px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .board { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .st *, .st::before { transition: none !important; } }

/* Work header + filters */
.work-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.work-head h2 { margin: 0; font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: .95; letter-spacing: -.04em; font-weight: 600; }
.work-side { display: grid; gap: 18px; justify-items: start; }
.work-side .corner-note { position: static; color: var(--muted); }
.work-side p { margin: 0; color: var(--ink-2); font-size: 1.12rem; line-height: 1.55; max-width: 46ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: .9rem; color: var(--ink-2); transition: background .25s, color .25s, border-color .25s, transform .2s; }
.chip sup { font-family: var(--f-mono); font-size: .62rem; margin-left: 3px; color: var(--muted); }
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.on sup { color: var(--accent); }
.gallery .row.out { display: none; }
.gallery .row.pop { animation: pop .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--pd, 0ms); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .work-head { grid-template-columns: 1fr; } }

/* Hero depth: ambient background layer + sound toggle */
.amb { position: absolute; inset: -12%; z-index: 0; pointer-events: none; will-change: transform; }
.amb i { position: absolute; inset: 0; background-size: cover; background-position: center top; filter: blur(70px) saturate(1.4); opacity: 0; transition: opacity 1.2s ease; transform: scale(1.1); }
.amb i.on { opacity: .34; }
:root[data-theme="dark"] .amb i.on { opacity: .42; }
.amb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 20%, var(--paper) 72%); }
.ghost { will-change: transform; }
.card { will-change: transform, opacity; }
.card .frame { will-change: filter; }
.card.is-front .frame { transform: none; box-shadow: 0 50px 90px -30px rgba(30, 22, 12, .55), 0 14px 30px -12px rgba(30, 22, 12, .35); }
:root[data-theme="dark"] .card.is-front .frame { box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255,255,255,.06); }
.card .glare { position: absolute; inset: 0; z-index: 3; border-radius: 16px; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.22), rgba(255,255,255,0) 45%); opacity: 0; transition: opacity .4s; }
.card.is-front:hover .glare { opacity: 1; }
.reflection { width: min(720px, 86vw); bottom: 9vh; }
.sound { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px 7px 10px; cursor: pointer; color: var(--ink-2); }
.sound svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sound svg path:first-child { fill: currentColor; stroke: none; }
.sound .w1, .sound .w2 { display: none; }
.sound[aria-pressed="true"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.sound[aria-pressed="true"] .w1, .sound[aria-pressed="true"] .w2 { display: block; animation: wave 1.2s ease-in-out infinite; }
.sound[aria-pressed="true"] .w2 { animation-delay: .2s; }
.sound[aria-pressed="true"] .x { display: none; }
@keyframes wave { 50% { opacity: .35; } }
@media (max-width: 480px) { .sound span { display: none; } }

/* ---------- Shared motion (fx.js) ---------- */
.spot { position: fixed; left: 0; top: 0; width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%); opacity: 0; transition: opacity .8s; will-change: transform; }
.spot.on { opacity: 1; }
:root[data-theme="dark"] .spot { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 62%); }
.tilt { transform-style: preserve-3d; }
:root body .tilt.tilting.tilting { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transition: box-shadow .5s, background .3s; }
.svc.tilt { --lift: -8px; } .tk.tilt { --lift: -4px; } .cut .shot-wrap.tilt { --lift: -6px; }
.tglare { position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.28), rgba(255,255,255,0) 50%); mix-blend-mode: soft-light; }
.tilting .tglare { opacity: 1; }
.portrait.tilt, .ix-browser.tilt, .cut .shot-wrap.tilt { position: relative; }
.mag { translate: var(--mx, 0px) var(--my, 0px); transition: translate .35s cubic-bezier(.2,.7,.2,1), background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s; }
/* Room around each word so italic overhangs and descenders (y, g, f, p) are not clipped during the reveal; clipping is removed once it finishes. */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .06em .22em .32em .12em; margin: -.06em -.22em -.32em -.12em; }
.split.done .w { overflow: visible; }
.split .w > span { display: inline-block; transform: translateY(105%); opacity: 0; filter: blur(8px);
  transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .7s ease, filter .8s ease; transition-delay: calc(var(--i) * 55ms); }
.split.in .w > span { transform: none; opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) { .split .w > span { transform: none; opacity: 1; filter: none; transition: none; } }

/* ---------- Music toggle ---------- */
.music { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 70%, transparent);
  color: var(--ink-2); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(8px); transition: border-color .25s, color .25s, background .25s; }
.music:hover { border-color: var(--accent); color: var(--ink); }
.music .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.music .eq i { width: 2px; height: 3px; border-radius: 1px; background: currentColor; transition: height .3s; }
.music[aria-pressed="true"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.music[aria-pressed="true"] .eq i { animation: eq 1.07s ease-in-out infinite; }
.music[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.4s; } .music[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.7s; } .music[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.2s; }
.music.waiting .eq i { animation: eq 2.4s ease-in-out infinite; opacity: .6; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 12px; } }
@media (max-width: 720px) { .music .music-label { display: none; } .music { padding: 0 11px; } }
@media (prefers-reduced-motion: reduce) { .music .eq i { animation: none !important; height: 8px; } }

/* ---------- Call / Text / Email ---------- */
.reach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(100%, 980px); margin: 34px auto 22px; text-align: left; }
.reach-tile { position: relative; display: grid; gap: 4px; padding: 22px 22px 20px; border-radius: 18px; border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--paper) 55%, #fff); box-shadow: 0 1px 0 rgba(0,0,0,.03); transition: border-color .3s, box-shadow .3s, transform .3s; }
:root[data-theme="dark"] .reach-tile { background: color-mix(in srgb, var(--paper) 85%, #fff); }
.reach-tile:hover { border-color: var(--accent); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--accent) 55%, transparent); }
.reach-tile .ri { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; margin-bottom: 10px; }
.reach-tile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.reach-tile .rl { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.reach-tile b { font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.reach-tile .rs { font-size: .8rem; color: var(--ink-2); }
.reach-tile .ra { position: absolute; top: 22px; right: 22px; color: var(--accent); transition: transform .3s; }
.reach-tile:hover .ra { transform: translateX(4px); }
@media (max-width: 760px) { .reach { grid-template-columns: 1fr; } .reach-tile { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 16px 18px; }
  .reach-tile .ri { grid-row: span 3; margin: 0; } .reach-tile .ra { top: 50%; transform: translateY(-50%); } }

/* Floating contact dock (all pages) */
.dock { position: fixed; z-index: 60; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 78%, transparent); border: 1px solid var(--line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.35); transform: translateY(140%); opacity: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.dock.show { transform: none; opacity: 1; }
.dock .dk-l { padding: 0 10px 0 12px; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.dock a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .84rem; font-weight: 500; transition: background .25s, color .25s; }
.dock a:hover { background: var(--accent); color: #fff; }
.dock a.primary { background: var(--accent); color: #fff; }
.dock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 720px) {
  .dock { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); justify-content: space-between; }
  .dock .dk-l { display: none; } .dock a { flex: 1; justify-content: center; padding: 12px 8px; }
}
@media print { .dock { display: none; } }

/* ---------- Mobile polish ---------- */
/* Header turns into a frosted bar once the page scrolls, so content never runs under the logo */
.nav { transition: background .35s, box-shadow .35s, padding .35s, backdrop-filter .35s; }
.nav.scrolled { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line); padding-bottom: 12px; padding-top: max(12px, env(safe-area-inset-top)); }
@media (max-width: 720px) {
  /* Film strip: one frame centered at a time, neighbors dimmed, only the active caption shows */
  .strip { --fw: 84vw; }
  .frame-f .cap { opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; }
  .frame-f.on .cap { opacity: 1; transform: none; }
  .frame-f .cell { border-radius: 14px !important; margin: 0 3vw; }
  .cap { padding: 16px 4px 0; } .cap h3 { font-size: 2.1rem; }
  .rail-labels { font-size: .58rem; }
  /* Case-study "next card": title above, thumbnail below */
  a.next.wrap { grid-template-columns: 1fr; gap: 22px; padding-block: 64px 120px; }
  a.next.wrap h2 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  a.next.wrap img { width: 100%; max-width: 360px; transform: rotate(1.5deg); }
  /* Leave room for the floating contact bar */
  body { padding-bottom: 76px; }
  .site-foot { padding-bottom: 12px; }
  /* Comfortable tap targets */
  .chip { min-height: 40px; }
  .contact-links .ghost-btn { min-height: 44px; }
}

/* ---------- Phone hero: stacked, nothing overlaps at any screen height ---------- */
@media (max-width: 720px) {
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; padding: calc(max(18px, env(safe-area-inset-top)) + 70px) 0 22px; }
  .intro { position: relative; top: auto; left: auto; max-width: none; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
  .intro h1 { font-size: 1.18rem; max-width: 24ch; }
  .intro p { font-size: .84rem; margin-top: 6px; max-width: 36ch; }
  .stage { position: relative; inset: auto; flex: 1 0 auto; min-height: calc(var(--ch-m) + 64px); margin: 10px 0 4px; perspective-origin: 50% 40%; }
  .ring { --ch: var(--ch-m); margin-top: -26px; }
  .hero { --ch-m: clamp(210px, calc(100svh - 405px), 430px); }
  .meta { position: relative; left: auto; bottom: auto; max-width: none; gap: 3px; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
  .meta h2 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .meta .cat { font-size: .86rem; }
  .meta .open { margin-top: 10px; padding: 12px 18px; font-size: .9rem; }
  .controls { position: absolute; left: auto; right: max(var(--gutter), env(safe-area-inset-right)); bottom: 22px; }
  .controls .dots { display: none; }
  .round { width: 46px; height: 46px; }
  .reflection, .cue { display: none; }
  .ghost { font-size: 26vw; place-items: start center; padding-top: 34svh; }
}
.card .bar { white-space: nowrap; overflow: hidden; }
.card .bar > * { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ===== Case study layout: center / left / right rhythm + bentos ===== */
.cs-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); align-items: center; }
.cs-c { text-align: center; max-width: 820px; margin-inline: auto; }
.cs-c p { margin-inline: auto; }
.cs-r { text-align: right; }
.cs-r p { margin-left: auto; }
.cs-r .kicker { justify-content: flex-end; }
.cs-c .kicker { justify-content: center; }
.cs-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem) !important; color: var(--ink-2); max-width: 46ch; }
.span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; }
.span-5.end { grid-column: 8 / span 5; } .span-6.end { grid-column: 7 / span 6; }

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bento.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 128px; padding: clamp(18px, 2vw, 26px); border-radius: 18px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; text-align: left; transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .3s; }
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tile .mono { color: var(--muted); }
.tile b { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.3; }
.tile p { margin: 0 !important; color: var(--ink-2); font-size: .95rem !important; line-height: 1.5; max-width: none !important; }
.tile .big { display: block; font-size: clamp(3rem, 6vw, 5.2rem); line-height: .85; letter-spacing: -.06em; font-weight: 600; color: var(--ink); }
.tile .big small { font-size: .32em; letter-spacing: -.01em; color: var(--muted); font-weight: 500; margin-left: 6px; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile.hot { background: var(--accent); border-color: transparent; color: #fff; }
.tile.hot .mono, .tile.hot p { color: rgba(255,255,255,.82); }
.tile.hot .big, .tile.hot b { color: #fff; }
.tile.hot .big small { color: rgba(255,255,255,.75); }
.tile.wide { min-height: 0; }
.tile .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tile .chips span { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }

/* Shot bento: one hero tile, two supporting */
.shots { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.shots figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; min-height: 214px; }
.shots figure:first-child { grid-row: span 2; min-height: 440px; }
.shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.shots figure:hover img { transform: scale(1.04); }
.shots figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: rgba(10,8,9,.72); backdrop-filter: blur(8px); color: #f3ede7; font-size: .85rem; }
.shots figcaption b { font-weight: 600; }
.shots figcaption .mono { font-size: .58rem; color: rgba(243,237,231,.7); }
.shots figcaption .pick { color: #fff; background: var(--accent); padding: 4px 8px; border-radius: 999px; }

/* Phone tile */
.tile.phone-tile { place-items: center; padding: 26px 18px 0; align-content: end; background: radial-gradient(120% 80% at 50% 100%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%), var(--paper-2); }
.tile.phone-tile .phone { transform: rotate(-3deg) translateY(18px); width: min(240px, 62vw); }

/* Centered "next" card */
.next.cs-next { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 30px; }
.next.cs-next img { transform: rotate(-2deg); }

@media (max-width: 960px) {
  .cs-row { grid-template-columns: 1fr; }
  .span-5, .span-6, .span-7, .span-5.end, .span-6.end { grid-column: auto; }
  .cs-r, .cs-c { text-align: left; } .cs-r p, .cs-c p { margin-left: 0; }
  .cs-r .kicker, .cs-c .kicker { justify-content: flex-start; }
  .order-first { order: -1; }
}
@media (max-width: 600px) {
  .bento, .bento.cols-3 { grid-template-columns: 1fr 1fr; }
  .bento.cols-3 .tile:last-child:nth-child(odd) { grid-column: span 2; }
  .shots { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .shots figure:first-child { grid-column: span 2; grid-row: auto; min-height: 220px; }
  .shots figure { min-height: 140px; }
  .tile { min-height: 0; }
}
.cs-h { margin: 0 0 22px; font-size: clamp(2.2rem, 4.4vw, 3.7rem); line-height: .96; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.cs-h .serif { color: var(--accent); }
.cs-row p { margin: 0 0 16px; max-width: 54ch; color: var(--ink-2); font-size: 1.05rem; }
/* Centered scroll-through: heading on top, wide browser below */
.cs-roll .scroller-pin { padding-top: 72px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; }
.cs-roll .block h2 { margin-bottom: 0; }
.cs-roll .scroller-progress { margin: 18px auto 0; }
.cs-roll .browser { width: min(1180px, 100%); height: min(62vh, 640px); }
.cs-hint { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .cs-roll .scroller-pin { gap: 18px; } .cs-roll .browser { height: 70vh; } .cs-hint { display: none; } }

/* Client reviews bento */
.rv { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.rv-card { margin: 0; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(22px, 2.4vw, 32px);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; grid-column: span 4; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.rv-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); }
.rv-spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(212,82,28,.16), transparent 60%); }
.rv-spot:hover::before { opacity: 1; }
.rv-card blockquote { margin: 0; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.4; letter-spacing: -.01em; color: var(--ink); }
.rv-card figcaption { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv-card figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 1px solid var(--line); flex: none; }
.rv-card figcaption > span, .rv-who > span { display: grid; gap: 2px; min-width: 0; }
.rv-card b { font-weight: 600; font-size: .98rem; }
.rv-card figcaption .mono, .rv-who .mono { color: var(--muted); font-size: .66rem; letter-spacing: .06em; }

/* Featured card with client tabs */
.rv-feature { grid-column: span 8; grid-row: span 2; background: var(--ink); color: var(--paper); border-color: transparent; min-height: 460px; }
.rv-feature::before { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(240,106,51,.22), transparent 60%); }
.rv-mark { font-family: var(--f-serif); font-size: 7rem; line-height: .6; color: var(--accent); height: 44px; }
.rv-panels { display: grid; flex: 1; align-content: center; }
.rv-panel { grid-area: 1 / 1; display: grid; gap: 26px; align-content: center; }
.rv-panel[hidden] { display: none; }
.rv-panel.enter { animation: rvIn .6s cubic-bezier(.2,.7,.2,1); }
@keyframes rvIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.rv-feature blockquote { color: var(--paper); font-family: var(--f-serif); font-size: clamp(1.9rem, 3.5vw, 3.2rem); line-height: 1.06; letter-spacing: -.02em; max-width: 24ch; }
.rv-feature mark { background: none; color: inherit; background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-position: 0 92%; background-size: 0% .08em;
  transition: color .6s .35s, background-size .8s .35s cubic-bezier(.2,.7,.2,1); }
.rv-feature.lit mark { color: var(--accent); background-size: 100% .08em; }
.rv-who { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rv-who .mono { color: rgba(255,255,255,.6); }
.rv-link { margin-left: auto; color: var(--paper); text-decoration: none; font-size: .68rem; letter-spacing: .08em; padding: 8px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; transition: background .3s, border-color .3s; }
.rv-link:hover, .rv-link:focus-visible { background: var(--accent); border-color: var(--accent); }
.rv-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.rv-tab { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: rgba(255,255,255,.62);
  font: 500 .8rem var(--f-sans); cursor: pointer; transition: color .3s, border-color .3s, background .3s; }
.rv-tab img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: top; filter: grayscale(1); transition: filter .3s; }
.rv-tab:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.rv-tab[aria-selected="true"] { color: #fff; border-color: var(--accent); background: rgba(212,82,28,.16); }
.rv-tab[aria-selected="true"] img, .rv-tab:hover img { filter: none; }
.rv-tab i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.rv-tab[aria-selected="true"] i { animation: rvBar var(--rv-dur, 7s) linear forwards; }
.rv-feature.paused .rv-tab i { animation-play-state: paused; }
@keyframes rvBar { to { width: 100%; } }
.rv-tab:focus-visible, .rv-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Original message reveal */
.rv-open { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: .64rem; letter-spacing: .06em; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.rv-open i { font-style: normal; font-size: .95rem; line-height: 1; transition: transform .35s; }
.rv-open:hover { border-color: var(--ink); }
.rv-open[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rv-open[aria-expanded="true"] i { transform: rotate(45deg); }
.rv-orig { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1); }
.rv-orig.open { grid-template-rows: 1fr; }
.rv-orig[hidden] { display: none; }
.rv-chat { min-height: 0; overflow: hidden; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rv-chat li { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: .9rem; line-height: 1.35; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .35s, transform .35s; }
.rv-orig.open li { opacity: 1; transform: none; }
.rv-orig.open li:nth-child(2) { transition-delay: .18s; } .rv-orig.open li:nth-child(3) { transition-delay: .36s; } .rv-orig.open li:nth-child(4) { transition-delay: .54s; }
.rv-chat .them { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.rv-chat .me { align-self: flex-end; background: #2f7cf6; color: #fff; border-bottom-right-radius: 6px; }

.rv-stat { background: var(--accent); color: #fff; border-color: transparent; justify-content: flex-start; gap: 10px; }
.rv-stat::before { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 60%); }
.rv-stat .mono { color: rgba(255,255,255,.8); }
.rv-stat .rv-big { font-size: clamp(3.2rem, 5vw, 4.6rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.rv-stat .rv-big small { font-size: .3em; letter-spacing: 0; margin-left: 6px; font-weight: 500; opacity: .8; }
.rv-stat p { margin: auto 0 0; color: rgba(255,255,255,.88); }
.rv-wide { grid-column: span 8; }
@media (max-width: 960px) { .rv-card, .rv-feature, .rv-wide, .rv-stat { grid-column: span 12; } .rv-feature { min-height: 0; } }
@media (min-width: 601px) and (max-width: 960px) { .rv-card:not(.rv-feature):not(.rv-wide) { grid-column: span 6; } }
@media (max-width: 600px) { .rv-tab span { display: none; } .rv-tab { padding: 4px; } .rv-tab[aria-selected="true"] span { display: inline; } .rv-tab[aria-selected="true"] { padding-right: 12px; } }
@media (prefers-reduced-motion: reduce) { .rv-panel.enter, .rv-tab i { animation: none !important; } .rv-chat li, .rv-feature mark, .rv-orig { transition: none; } .rv-card:hover { transform: none; } }

/* Gradient and italic serif text: keep the last glyph's overhang inside the painted box */
.serif, .tone, .grad { padding-right: .06em; }
[style*="background-clip"], .grad { padding-bottom: .08em; }

/* ---------- Practice: X/Y ratio motion (xy.js) ---------- */
.xy-read { margin-left: 10px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; opacity: 0; transition: opacity .4s; }
#practice.xy-live .xy-read { opacity: 1; }
/* Scroll Y ratio deals the cards out along X */
.fan.xy .svc { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.fan.xy .svc:nth-child(1) { transform: translate(calc((1 - var(--p, 1)) * 62%), calc((1 - var(--p, 1)) * 40px)) rotate(calc((1 - var(--p, 1)) * -7deg)); }
.fan.xy .svc:nth-child(2) { transform: translateY(calc((1 - var(--p, 1)) * 16px)) scale(calc(1 + (1 - var(--p, 1)) * .03)); }
.fan.xy .svc:nth-child(3) { transform: translate(calc((1 - var(--p, 1)) * -62%), calc((1 - var(--p, 1)) * 40px)) rotate(calc((1 - var(--p, 1)) * 7deg)); }
/* Graph paper behind the cards, lit where the pointer is */
.fan.xy::before { content: ""; position: absolute; inset: -40px -20px; z-index: -1; pointer-events: none; border-radius: 24px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px; background-position: calc(var(--sx, .5) * -28px) calc(var(--sy, .5) * -28px);
  -webkit-mask-image: radial-gradient(260px circle at calc(var(--sx, .5) * 100%) calc(var(--sy, .5) * 100%), #000, transparent 70%);
  mask-image: radial-gradient(260px circle at calc(var(--sx, .5) * 100%) calc(var(--sy, .5) * 100%), #000, transparent 70%);
  opacity: 0; transition: opacity .5s; }
#practice.xy-live .fan.xy::before { opacity: .9; }

/* Design: X ratio morphs the front frame's aspect ratio, crosshairs track X/Y */
.vz-design .ratio { position: absolute; left: 0; top: 0; z-index: 3; display: grid; gap: 1px; padding: 6px 9px; border-radius: 8px; background: var(--ink); color: var(--paper);
  font-size: .56rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.vz-design .ratio b { font: 600 .95rem var(--f-sans); letter-spacing: -.02em; }
.vz-design .ratio span { opacity: .6; }
.vz-design .cross { position: absolute; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s; }
.vz-design .cx { top: 0; bottom: 0; left: calc(var(--vx, .5) * 100%); border-left: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.vz-design .cy { left: 0; right: 0; top: calc(var(--vy, .5) * 100%); border-top: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.svc.xy-on .vz-design .ratio, .svc.xy-on .vz-design .cross { opacity: 1; transform: none; }
.svc.xy-on .vz-design .f3 { width: auto; height: 64%; left: 50%; aspect-ratio: var(--ar, 1.6); translate: -50% 0; transition: transform .9s cubic-bezier(.2,.7,.2,1), aspect-ratio .2s; }
.svc.xy-on .vz-design .f1 { transform: translate(calc(-30% - var(--vx, .5) * 12%), calc(var(--vy, .5) * 14%)) rotate(calc(-8deg - var(--vx, .5) * 6deg)); transition: transform .3s; }
.svc.xy-on .vz-design .f2 { transform: translate(calc(26% + var(--vx, .5) * 12%), calc(var(--vy, .5) * -10% + 8%)) rotate(calc(7deg + var(--vy, .5) * 6deg)); transition: transform .3s; }
.svc.xy-on .vz-design .cursor { animation: none; left: calc(var(--vx, .5) * 100%); top: calc(var(--vy, .5) * 100%); margin: -2px 0 0 -2px; }

/* Build: X ratio is the viewport width, Y ratio is the active line */
.vz-build .code { transition: right .25s cubic-bezier(.2,.7,.2,1); }
.svc.xy-on .vz-build .code { right: calc((1 - var(--vx, 1)) * 52%); }
.vz-build .bp { margin-left: auto; font-family: var(--f-mono); font-size: .56rem; color: #9fd3a8; white-space: nowrap; opacity: 0; transition: opacity .3s; font-variant-numeric: tabular-nums; }
.svc.xy-on .vz-build .bp { opacity: 1; }
.vz-build .ln.on { background: rgba(255,255,255,.07); box-shadow: -14px 0 0 rgba(255,255,255,.07), 14px 0 0 rgba(255,255,255,.07), inset 2px 0 0 var(--accent); }

/* Grow: X ratio scrubs through the year */
.vz-grow .guide { position: absolute; top: 18%; bottom: 14%; left: var(--dx, 100%); border-left: 1px dashed var(--accent); opacity: 0; transition: opacity .3s; }
.svc.xy-on .vz-grow .guide { opacity: .7; }
.svc.xy-on .vz-grow .dot { right: auto; left: var(--dx, 100%); top: var(--dy, 30%); margin: -5px 0 0 -5px; transition: none; opacity: 1; }
.svc.xy-on .vz-grow .line { stroke-dashoffset: calc(1 - var(--lf, 1)); transition: none; }
.svc.xy-on .vz-grow .area { clip-path: inset(0 calc((1 - var(--vx, 1)) * 100%) 0 0); }
.vz-grow .kpi b { font-variant-numeric: tabular-nums; }

@media (max-width: 860px) { .fan.xy .svc:nth-child(n) { transform: none; } .fan.xy::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .fan.xy .svc:nth-child(n) { transform: none; } }
