/* ─────────────────────────────────────────────
   cerulian design system v2
   Editorial film (serif italics, grain, real photos)
   + candy pastels and pill UI
   + thick black outlines, blobs and drips
   + bubbly wide display type (Unbounded)
   ───────────────────────────────────────────── */
:root {
  --bg: #f6f0e4;          /* cream */
  --bg-2: #efe6d6;
  --surface: #fffaf1;
  --ink: #141414;
  --ink-2: #3d3a35;
  --muted: #736b60;
  --line: #141414;         /* outlines are ink */
  --hair: rgba(20, 20, 20, 0.12);

  /* candy */
  --butter: #f4d96b;
  --bubble: #f5b5d2;
  --peri: #b6c6f1;         /* the "cerulian" pastel */
  --sage: #c6d49a;
  --peach: #f8b98c;
  /* loud accents, used sparingly */
  --hot: #ec4a94;
  --lime: #6fd63c;

  --on-candy: #141414;     /* text on pastel tiles, always dark */
  --dark: #141414;
  --on-dark: #f6f0e4;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --display: "Unbounded", "Inter", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --stroke: 2px;
  --shadow: 4px 4px 0 var(--ink);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15131d; --bg-2: #1d1a28; --surface: #201d2c;
    --ink: #f6f0e4; --ink-2: #d6cfc3; --muted: #a39b90;
    --line: #f6f0e4; --hair: rgba(246, 240, 228, 0.14);
    --dark: #0d0c13; --on-dark: #f6f0e4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15131d; --bg-2: #1d1a28; --surface: #201d2c;
  --ink: #f6f0e4; --ink-2: #d6cfc3; --muted: #a39b90;
  --line: #f6f0e4; --hair: rgba(246, 240, 228, 0.14);
  --dark: #0d0c13; --on-dark: #f6f0e4;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::after { /* film grain, kept from v1 */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 99px; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }

/* type */
h1, h2 { margin: 0; font-weight: 400; }
.px { font-family: var(--display); font-weight: 700; letter-spacing: -0.045em; }
h1 em, h2 em, .contact-email { font-family: var(--serif); font-style: italic; letter-spacing: -0.02em; }
h1 { font-size: clamp(44px, 7vw, 104px); line-height: 0.95; }
h1 .px { font-size: 0.66em; }
h1 em { font-size: 1.12em; color: var(--hot); position: relative; white-space: nowrap; }
h2 { font-size: clamp(34px, 4.8vw, 68px); line-height: 1; }
h2 .px { font-size: 0.68em; }
h2 em { font-size: 1.12em; color: var(--hot); }

.tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 7px 14px; border: var(--stroke) solid var(--line); border-radius: 99px; font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; background: var(--surface); }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--line); }
.tag-dark { background: var(--surface); color: var(--ink); }

/* stickers */
.stk { position: absolute; pointer-events: none; }
.stk use { fill: currentColor; }

/* ── header: floating black pill ── */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); }
.top::before { content: ""; position: absolute; inset: 0 0 -14px; background: linear-gradient(var(--bg) 72%, transparent); z-index: -1; }
.wordmark { font: italic 400 32px/1 var(--serif); text-decoration: none; position: relative; padding-right: 18px; }
.wm-spark { position: absolute; right: 0; top: -2px; width: 16px; height: 16px; color: var(--hot); fill: var(--hot); animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.6) rotate(45deg); } }
.navpill { display: flex; align-items: center; gap: 2px; padding: 6px; background: #141414; border-radius: 99px; box-shadow: var(--shadow); }
:root .navpill { box-shadow: 4px 4px 0 var(--hot); }
.navpill a { font: 500 13px/1 var(--sans); text-decoration: none; color: #f6f0e4; padding: 10px 14px; border-radius: 99px; white-space: nowrap; transition: background .2s, color .2s; }
.navpill a:hover { background: #f6f0e4; color: #141414; }
.navpill .nav-plus { background: var(--bubble); color: #141414; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.navpill .nav-plus span { font: 700 18px/1 var(--sans); }
.navpill .nav-plus em { font-style: normal; }
.navpill .nav-plus:hover { background: var(--hot); color: #fff; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: var(--stroke) solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font: 600 14px/1 var(--sans); text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn-solid { background: #141414; color: #f6f0e4; border-color: #141414; }
:root .btn-solid:hover { box-shadow: 4px 4px 0 var(--hot); }

/* ── hero ── */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px clamp(24px, 4vw, 64px); align-items: center; padding: clamp(28px, 5vw, 72px) var(--gutter) clamp(36px, 5vw, 64px); }
.lede { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); max-width: 33em; margin: 26px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-phones { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; padding: 6% 4%; min-height: 0; }
.phone { aspect-ratio: 9/18.5; border: 7px solid #141414; border-radius: 30px; overflow: hidden; background: #141414; box-shadow: 6px 6px 0 var(--peri); position: relative; }
.phone::before { content: ""; position: absolute; z-index: 2; top: 6px; left: 50%; translate: -50% 0; width: 34%; height: 12px; border-radius: 99px; background: #141414; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.p1 { transform: rotate(-6deg) translateY(16px); box-shadow: 6px 6px 0 var(--bubble); }
.p2 { transform: translateY(-14px); z-index: 1; box-shadow: 6px 6px 0 var(--butter); }
.p3 { transform: rotate(6deg) translateY(20px); box-shadow: 6px 6px 0 var(--sage); }
.stk-burst { width: 92px; height: 92px; right: -6px; top: -18px; color: var(--butter); filter: drop-shadow(2px 2px 0 #141414); animation: spin 22s linear infinite; z-index: 2; }
.stk-spark1 { width: 46px; height: 46px; left: -8px; top: 8%; color: var(--hot); z-index: 2; animation: twinkle 3.4s ease-in-out infinite; }
.stk-spark2 { width: 28px; height: 28px; right: 10%; bottom: 0; color: var(--peri); z-index: 2; animation: twinkle 2.6s ease-in-out infinite .6s; }
.stk-blob { width: 70px; height: 70px; left: 28%; bottom: -14px; color: var(--lime); z-index: 0; opacity: .9; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; margin: 12px 0 0; }
.stats div { position: relative; overflow: hidden; padding: 18px 18px 20px; border-radius: var(--r-md); background: var(--c, var(--butter)); color: var(--on-candy); border: var(--stroke) solid #141414; }
.stats div::after { content: ""; position: absolute; right: -16px; top: -16px; width: 64px; height: 64px; background: rgba(255,255,255,.35); clip-path: path("M32 0C35 22 42 29 64 32 42 35 35 42 32 64 29 42 22 35 0 32 22 29 29 22 32 0Z"); }
.stats div:nth-child(1) { --c: var(--butter); }
.stats div:nth-child(2) { --c: var(--bubble); }
.stats div:nth-child(3) { --c: var(--peri); }
.stats div:nth-child(4) { --c: var(--sage); }
.stats dt { font: 700 clamp(30px, 3.4vw, 46px)/1 var(--display); }
.stats dd { margin: 8px 0 0; font-size: 13px; font-weight: 500; line-height: 1.35; }

/* ── marquee ── */
.marquee { background: #141414; color: #f6f0e4; overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); margin: 18px -10px; border-block: 3px solid var(--hot); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 34s linear infinite; font: 500 clamp(18px, 2.2vw, 28px)/1 var(--display); letter-spacing: -0.03em; }
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee-track span::after { content: "✦"; font-family: var(--sans); color: var(--butter); }
.marquee-track span:nth-child(even)::after { color: var(--bubble); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── sections ── */
.section { padding: clamp(64px, 8vw, 112px) var(--gutter) 0; }
.sec-head { margin-bottom: clamp(24px, 3.5vw, 40px); max-width: 1100px; }
.sec-num { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: var(--bg); font: 500 12px/1 var(--display); letter-spacing: -0.01em; }
.sec-sub { margin: 14px 0 0; color: var(--muted); max-width: 40em; }

.todo { display: inline; outline: 2px dashed var(--hot); outline-offset: 3px; color: var(--hot); background: color-mix(in srgb, var(--hot) 8%, transparent); border-radius: 4px; }
.is-live .todo { display: none; }

/* ── case study ── */
.case-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.meta-card { border: var(--stroke) solid var(--line); border-radius: var(--r-md); padding: 20px 22px; background: var(--surface); }
.meta-card h3 { margin: 0 0 8px; font: 500 12px/1 var(--display); letter-spacing: -0.01em; color: var(--muted); }
.meta-card p { margin: 0; }
.phase { position: relative; display: grid; grid-template-columns: minmax(180px, 1fr) 3.2fr; gap: 24px; padding: 24px; margin-top: 14px; border-radius: var(--r-lg); background: var(--c); color: var(--on-candy); border: var(--stroke) solid #141414; overflow: hidden; }
.phase:nth-child(4n+1) { --c: var(--butter); }
.phase:nth-child(4n+2) { --c: var(--bubble); }
.phase:nth-child(4n+3) { --c: var(--peri); }
.phase:nth-child(4n+4) { --c: var(--sage); }
.phase-deco { position: absolute; width: 140px; height: 140px; left: -30px; bottom: -40px; color: rgba(255,255,255,.4); }
.phase-label { position: relative; }
.phase-label .count { display: inline-block; padding: 5px 10px; border-radius: 99px; background: #141414; color: #f6f0e4; font: 500 11px/1 var(--display); letter-spacing: -0.01em; margin-bottom: 14px; }
.phase-label h3 { font: italic 400 44px/1 var(--serif); margin: 0 0 6px; }
.phase-label p { margin: 0; font-size: 14px; font-weight: 500; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(130px, 13vw, 172px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 6px 10px 4px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.phase .card-cap { color: #141414; }
.phase .card-cap .meta { color: rgba(20,20,20,.65); }

/* ── cards ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 15vw, 196px), 1fr)); gap: 28px 16px; }
.grid > *, .phase > *, .model-wrap > * { min-width: 0; }
.card { all: unset; cursor: pointer; display: block; min-width: 0; }
.card-media { position: relative; aspect-ratio: 9/16; background: #141414; overflow: hidden; border-radius: var(--r-md); border: var(--stroke) solid #141414; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover .card-media, .card:focus-visible .card-media { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--hot); }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.card-media[data-ratio="4x5"] img, .card-media[data-ratio="4x5"] video,
.card-media[data-ratio="1x1"] img, .card-media[data-ratio="1x1"] video { object-fit: contain; }
.card-media video { opacity: 0; }
.card-media video.on { opacity: 1; }
.card-dur { position: absolute; right: 8px; bottom: 8px; z-index: 2; background: #f6f0e4; color: #141414; padding: 4px 8px; border-radius: 99px; border: 1.5px solid #141414; font: 600 10px/1 var(--mono); }
.card-play { position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%; width: 50px; height: 50px; border-radius: 50%; background: var(--bubble); color: #141414; border: 2px solid #141414; display: grid; place-items: center; opacity: 0; transition: opacity .2s; font-size: 15px; }
.card:hover .card-play, .card:focus-visible .card-play { opacity: 1; }
.card-cap { padding: 10px 2px 0; }
.card-cap .meta { display: block; color: var(--muted); font: 500 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.card-cap strong { display: block; margin-top: 4px; font: italic 400 20px/1.1 var(--serif); }
.card:focus-visible { outline: none; }

/* ── filters ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { all: unset; cursor: pointer; padding: 10px 16px; border: var(--stroke) solid var(--line); border-radius: 99px; font: 600 13px/1 var(--sans); background: var(--surface); transition: transform .15s, box-shadow .15s, background .2s; }
.chip sup { font: 500 9px var(--mono); margin-left: 4px; }
.chip:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--line); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.chip:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }
.filter-blurb { color: var(--muted); margin: 0 0 26px; min-height: 1.5em; font-size: 14px; }

/* ── empty slots (draft only) ── */
.slot { min-width: 0; overflow-wrap: anywhere; display: grid; place-items: center; text-align: center; padding: 16px; border: 2px dashed var(--muted); border-radius: var(--r-md); background: var(--bg-2); color: var(--muted); font-size: 12px; line-height: 1.4; }
.slot b { display: block; font: italic 400 21px/1.1 var(--serif); color: var(--ink-2); margin-bottom: 6px; }
.slot code { font: 10px var(--mono); }
.is-live .slot { display: none; }
.grid-design { grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(160px, 20vw, 250px)), 1fr)); }
.grid-design .slot, .grid-design .card-media { aspect-ratio: 4/5; }
.grid-design .slot:nth-of-type(4n+1) { background: color-mix(in srgb, var(--peri) 35%, var(--bg)); }
.grid-design .slot:nth-of-type(4n+2) { background: color-mix(in srgb, var(--bubble) 35%, var(--bg)); }
.grid-design .slot:nth-of-type(4n+3) { background: color-mix(in srgb, var(--butter) 35%, var(--bg)); }
.grid-design .slot:nth-of-type(4n+4) { background: color-mix(in srgb, var(--sage) 35%, var(--bg)); }
.grid-slides { grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(240px, 30vw, 420px)), 1fr)); }
.grid-slides .slot, .grid-slides .card-media { aspect-ratio: 16/9; }
.deck-link { font: 600 12px var(--sans); color: var(--hot); }

/* ── modeling: black with drip ── */
.section-dark { position: relative; background: #141414; color: #f6f0e4; margin-top: clamp(100px, 12vw, 160px); padding-bottom: clamp(64px, 8vw, 112px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section-dark { background: #0b0a10; } :root:not([data-theme="light"]) .drip path { fill: #0b0a10; } }
:root[data-theme="dark"] .section-dark { background: #0b0a10; }
:root[data-theme="dark"] .drip path { fill: #0b0a10; }
.section-dark { border-radius: 40px 40px 0 0; margin-bottom: clamp(50px, 7vw, 110px); }
.drip { position: absolute; left: 0; right: 0; top: calc(100% - 1px); width: 100%; height: clamp(50px, 7vw, 110px); }
.drip path { fill: #141414; }
.section-dark .sec-num { background: var(--bubble); color: #141414; }
.section-dark h2 em { color: var(--bubble); }
.section-dark .slot { border-color: #57524b; background: #1f1d1b; color: #a39b90; }
.section-dark .slot b { color: #e6dfd4; }
.section-dark .todo { color: var(--bubble); outline-color: var(--bubble); background: rgba(245,181,210,.08); }
.model-wrap { display: grid; grid-template-columns: minmax(230px, 1fr) 3fr; gap: 28px; }
.comp-card { position: sticky; top: 100px; align-self: start; padding: 26px; border-radius: var(--r-lg); background: #f6f0e4; color: #141414; border: 3px solid #f6f0e4; box-shadow: 6px 6px 0 var(--peri); }
.comp-spark { width: 44px; height: 44px; right: 16px; top: 16px; color: var(--hot); animation: twinkle 3s ease-in-out infinite; }
.comp-name { font: italic 400 46px/1 var(--serif); margin: 0 0 20px; }
.comp-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0 0 18px; font-size: 14px; }
.comp-card dt { font: 500 11px/1.9 var(--display); letter-spacing: -0.01em; color: #736b60; }
.comp-card dd { margin: 0; font-weight: 500; }
.comp-card .todo { color: var(--hot); outline-color: var(--hot); }
.comp-agency { font-size: 13px; margin: 0 0 22px; }
.model-label { margin: 0 0 12px; font: 500 13px/1 var(--display); letter-spacing: -0.01em; color: var(--butter); }
.model-label:not(:first-child) { margin-top: 34px; color: var(--peri); }
.digitals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.digitals > * { aspect-ratio: 3/4; }
.editorial { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.editorial > * { aspect-ratio: 4/5; }
.editorial > :first-child { grid-row: span 2; aspect-ratio: auto; }
.photo { position: relative; overflow: hidden; margin: 0; background: #000; border-radius: var(--r-md); border: 2px solid #f6f0e4; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 8px; bottom: 8px; padding: 4px 9px; border-radius: 99px; background: #f6f0e4; color: #141414; font: 500 10px/1 var(--display); letter-spacing: -0.01em; }

/* ── services: pastel tiles ── */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.services li { position: relative; overflow: hidden; padding: 24px 24px 28px; border-radius: var(--r-lg); background: var(--c); color: var(--on-candy); border: var(--stroke) solid #141414; counter-increment: s; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.services li:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 #141414; }
.services li:nth-child(6n+1) { --c: var(--peri); }
.services li:nth-child(6n+2) { --c: var(--butter); }
.services li:nth-child(6n+3) { --c: var(--bubble); }
.services li:nth-child(6n+4) { --c: var(--sage); }
.services li:nth-child(6n+5) { --c: var(--peach); }
.services li:nth-child(6n+6) { --c: #f6f0e4; }
.services li::before { content: counter(s, decimal-leading-zero); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #141414; color: #f6f0e4; font: 400 13px/1 var(--display); }
.services h3 { font: italic 400 30px/1.05 var(--serif); margin: 16px 0 8px; }
.services p { margin: 0; font-size: 14px; max-width: 28em; color: rgba(20,20,20,.78); }

/* ── contact ── */
.contact-wrap { padding: clamp(64px, 8vw, 112px) var(--gutter); }
.contact { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 7vw, 96px) 24px; border-radius: 36px; background: var(--butter); color: #141414; border: 3px solid #141414; box-shadow: 8px 8px 0 var(--hot); }
.contact .tag { background: #fffaf1; color: #141414; border-color: #141414; }
.contact .tag .dot { box-shadow: 0 0 0 2px #141414; }
.contact-head { margin: 0 0 10px; font-size: clamp(26px, 4.4vw, 60px); line-height: 1; }
.contact-email { display: inline-block; font-size: clamp(32px, 6.4vw, 96px); line-height: 1.05; text-decoration: none; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--hot); }
.contact-links { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.contact .btn { border-color: #141414; }
.contact .btn:not(.btn-solid) { background: #fffaf1; color: #141414; }
.contact .btn:hover { box-shadow: 4px 4px 0 #141414; }
.c-burst { width: 150px; height: 150px; left: -40px; top: -40px; color: var(--bubble); filter: drop-shadow(3px 3px 0 #141414); animation: spin 26s linear infinite; }
.c-blob { width: 200px; height: 200px; right: -60px; bottom: -70px; color: var(--peri); }
.foot { display: flex; justify-content: space-between; padding: 0 var(--gutter) 28px; color: var(--muted); font: 500 11px/1 var(--display); letter-spacing: -0.01em; }

/* ── lightbox ── */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(20,19,29,.94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px 8px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lb-phone { border: 8px solid #141414; border-radius: 34px; overflow: hidden; background: #000; box-shadow: 0 0 0 2px #f6f0e4, 8px 8px 0 2px var(--hot); }
.lightbox video { max-height: calc(100vh - 140px); max-width: min(92vw, 520px); display: block; }
.lightbox figcaption { color: #f6f0e4; text-align: center; display: grid; gap: 6px; }
.lb-meta { font: 500 11px/1 var(--display); letter-spacing: -0.01em; color: var(--butter); }
.lightbox figcaption span:last-child { font: italic 400 26px/1.1 var(--serif); }
.lb-close, .lb-nav { all: unset; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #f6f0e4; color: #141414; font: 500 26px/1 var(--sans); justify-self: center; }
.lb-close { position: absolute; top: 16px; right: 16px; background: var(--bubble); }
.lb-close:hover, .lb-nav:hover { background: var(--butter); }

/* ── responsive ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-phones { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase, .model-wrap { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comp-card { position: relative; top: 0; }
  .digitals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* app-style bottom nav, like the references */
  .top { padding-block: 12px; }
  .top::before { background: var(--bg); }
  .navpill { position: fixed; left: 50%; bottom: 14px; translate: -50% 0; z-index: 60; }
  .navpill a { padding: 11px 11px; font-size: 12px; }
  .navpill a[href="#design"] { display: none; }
  .navpill .nav-plus em { display: none; }
  .navpill .nav-plus { width: 40px; height: 40px; justify-content: center; padding: 0; }
  body { padding-bottom: 80px; }
  .case-meta, .services { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase { padding: 18px; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 16px; gap: 12px; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-row: 2; grid-column: 1; }
  .lb-next { grid-row: 2; grid-column: 2; }
  .lightbox video { max-height: calc(100vh - 200px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .stk, .wm-spark { animation: none !important; }
  * { transition: none !important; }
}

/* fixes */
html, body { overflow-x: clip; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-solid { background: #f6f0e4; color: #141414; border-color: #f6f0e4; }
}
:root[data-theme="dark"] .btn-solid { background: #f6f0e4; color: #141414; border-color: #f6f0e4; }
.contact .btn-solid, .comp-card .btn-solid { background: #141414; color: #f6f0e4; border-color: #141414; }

/* modeling gallery v3: masonry, natural crops, click to enlarge */
.comp-head { margin: -8px -8px 18px; border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; background: #141414; }
.comp-head:empty { display: none; }
.comp-head img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.editorial { display: block; columns: 3 200px; column-gap: 12px; }
.editorial > * { aspect-ratio: auto; break-inside: avoid; margin: 0 0 12px; width: 100%; }
.editorial > :first-child { grid-row: auto; aspect-ratio: auto; }
.editorial .slot { aspect-ratio: 4/5; }
button.photo { all: unset; box-sizing: border-box; display: block; position: relative; overflow: hidden; cursor: zoom-in; border-radius: var(--r-md); border: 2px solid #f6f0e4; background: #000; }
.digitals button.photo { height: 100%; }
button.photo img { width: 100%; height: auto; display: block; transition: transform .5s var(--ease); }
.digitals button.photo img { height: 100%; object-fit: cover; }
button.photo:hover img { transform: scale(1.03); }
button.photo:focus-visible { outline: 3px solid var(--bubble); outline-offset: 3px; }
.photo-cap { position: absolute; left: 8px; bottom: 8px; padding: 5px 10px; border-radius: 99px; background: #f6f0e4; color: #141414; font: 500 11px/1 var(--display); letter-spacing: -0.01em; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
button.photo:hover .photo-cap, button.photo:focus-visible .photo-cap { opacity: 1; transform: none; }
.lb-img { max-height: calc(100vh - 140px); max-width: min(92vw, 1100px); border-radius: 20px; border: 3px solid #f6f0e4; box-shadow: 8px 8px 0 var(--peri); }
.lb-img[hidden], .lb-phone[hidden] { display: none; }
@media (hover: none) { .photo-cap { opacity: 1; transform: none; } }

/* runway + results v4 */
.model-label.model-runway { color: var(--bubble); }
.model-runway span { color: #f6f0e4; margin-left: 8px; font-weight: 400; }
.runway { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; align-items: start; }
.runway button.photo img { width: 100%; height: auto; }
.result-stat { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.result-stat b { display: block; font: 700 clamp(36px, 4vw, 52px)/1 var(--display); letter-spacing: -0.04em; color: var(--hot); }
@media (max-width: 640px) { .runway { grid-template-columns: 1fr; } }

/* role credit on cards */
.card-cap .credit { display: inline-block; margin-top: 6px; padding: 3px 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--butter); color: #141414; font-size: 11px; font-weight: 600; }

/* my own channel v5 */
.channel-card { position: relative; max-width: 1100px; padding: clamp(20px, 3vw, 32px); border: var(--stroke) solid #141414; border-radius: var(--r-lg, 28px); background: var(--bubble); color: #141414; box-shadow: 6px 6px 0 #141414; }
.channel-burst { position: absolute; right: -18px; top: -26px; width: 84px; height: 84px; color: var(--butter); }
.channel-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.yt-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #141414; color: #f6f0e4; font: 600 13px/1 var(--display); }
.yt-badge span { color: #ff4e45; font-size: 11px; }
.channel-roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.channel-roles li { padding: 6px 12px; border: 1.5px solid #141414; border-radius: 99px; background: #f6f0e4; font-size: 12px; font-weight: 600; }
.channel-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.channel-stats div { min-width: 0; padding: 16px 16px 18px; border: var(--stroke) solid #141414; border-radius: var(--r-md); background: #f6f0e4; }
.channel-stats dt { font: 700 clamp(30px, 4vw, 54px)/1 var(--display); letter-spacing: -0.04em; }
.channel-stats div:nth-child(1) dt { color: var(--hot); }
.channel-stats dd { margin: 8px 0 0; font-size: 13px; font-weight: 500; line-height: 1.35; }
.channel-cta:not(:empty) { margin-top: 18px; }
@media (max-width: 760px) { .channel-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .channel-burst { right: -6px; width: 60px; height: 60px; } }
@media (max-width: 640px) { .navpill a.nav-channel { display: none; } }

/* model-first hero v6 */
.hero h1 .px { white-space: normal; }
.hero-visual { position: relative; justify-self: center; width: min(100%, 460px); padding: 4% 16% 10% 2%; }
.hero-photo { margin: 0; aspect-ratio: 3/4; border: var(--stroke) solid #141414; border-radius: var(--r-lg); overflow: hidden; background: #141414; box-shadow: 8px 8px 0 var(--bubble); rotate: -2deg; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone.mini { position: absolute; right: 0; bottom: 0; width: 36%; z-index: 3; border-width: 5px; border-radius: 22px; box-shadow: 6px 6px 0 var(--butter); rotate: 7deg; }
.phone.mini::before { top: 4px; height: 8px; }
.hero-visual .stk-burst { right: 8%; top: -14px; }
.hero-visual .stk-blob { left: -14px; bottom: 6%; }
.hero-visual .stk-spark2 { right: auto; left: 40%; bottom: 0; }
.stats div:nth-child(4) dt { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; }
@media (max-width: 960px) { .hero-visual { width: min(100%, 420px); } }
@media (max-width: 640px) { .stats div:nth-child(4) dt { font-size: clamp(16px, 5.2vw, 22px); } }

/* channel detail cards v7 */
.channel-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ch-card { min-width: 0; padding: 16px 18px 18px; border: var(--stroke) solid #141414; border-radius: var(--r-md); background: #f6f0e4; }
.ch-break { background: var(--butter); }
.ch-kicker { display: inline-block; padding: 4px 10px; border-radius: 99px; background: #141414; color: #f6f0e4; font: 500 11px/1.2 var(--display); }
.ch-card h3 { margin: 12px 0 2px; font: 700 clamp(17px, 1.6vw, 21px)/1.2 var(--display); letter-spacing: -0.02em; }
.ch-note { margin: 0 0 14px; font-size: 12px; color: #4a4540; }
.ch-break dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ch-break dt { font: 700 clamp(20px, 2vw, 26px)/1 var(--display); letter-spacing: -0.03em; }
.ch-break dd { margin: 4px 0 0; font-size: 12px; font-weight: 500; }
.ch-bars { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ch-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 13px; font-weight: 500; }
.ch-bars b { font: 700 13px/1.3 var(--display); }
.ch-bars i { grid-column: 1 / -1; height: 10px; border: 1.5px solid #141414; border-radius: 99px; background: linear-gradient(90deg, var(--hot) var(--w), transparent var(--w)); }
.ch-card:nth-child(3) .ch-bars i { background: linear-gradient(90deg, var(--peri) var(--w), transparent var(--w)); }
@media (max-width: 900px) { .channel-more { grid-template-columns: 1fr; } }

/* channel top videos v8 */
.ch-videos-wrap { margin-top: 12px; padding: 16px 18px 18px; border: var(--stroke) solid #141414; border-radius: var(--r-md); background: #f6f0e4; }
.ch-videos { display: grid; grid-template-columns: 1fr 1fr 1.7fr 1.7fr; grid-template-areas: "v1 v2 v3 v4"; gap: 14px; margin-top: 14px; align-items: start; }
.ch-vid { display: grid; gap: 6px; min-width: 0; color: #141414; text-decoration: none; }
.ch-thumb { position: relative; display: block; overflow: hidden; border: 2px solid #141414; border-radius: 14px; background: #141414; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.is-short .ch-thumb { aspect-ratio: 9/16; }
.is-long .ch-thumb { aspect-ratio: 16/9; }
.ch-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-vid:hover .ch-thumb, .ch-vid:focus-visible .ch-thumb { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--hot); }
.ch-views { position: absolute; left: 8px; bottom: 8px; padding: 4px 9px; border-radius: 99px; background: #141414; color: #f6f0e4; font: 600 12px/1.2 var(--display); }
.ch-play { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ff4e45; color: #fff; font-size: 10px; border: 2px solid #141414; }
.ch-vmeta { font: 500 11px/1.2 var(--mono, monospace); text-transform: uppercase; letter-spacing: .04em; color: #5a544d; }
.ch-vid strong { font: 400 italic 17px/1.15 var(--serif, serif); overflow-wrap: anywhere; }
@media (max-width: 900px) { .ch-videos { grid-template-columns: 1fr 1fr; grid-template-areas: "v1 v2" "v3 v3" "v4 v4"; } }
