/* Mohamad Ramy. Palette "Fusion", inverted: an ice-blue ground (#D7EFFF), black ink, deep blue and liquid chrome.
   The project films stay dark (they are screens), and so does the contact section (the inverted band). */
:root, .theme-light {
  --bg: #d7efff;
  --bg-soft: #eaf6ff;
  --surface: rgba(244, 250, 255, .72);
  --surface-raised: #ffffff;
  --line: rgba(3, 8, 13, .09);
  --line-2: rgba(3, 8, 13, .16);
  --ink: #03080d;
  --ink-muted: #03080d;
  --ink-faint: #03080d;
  --accent: #03080d;
  --accent-2: #1f5f93;
  --on-accent: #d7efff;
  --accent-soft: rgba(3, 8, 13, .05);
  --accent-line: rgba(3, 8, 13, .22);
  --accent2-soft: rgba(31, 95, 147, .1);
  --accent2-line: rgba(31, 95, 147, .35);
  --glass: rgba(255, 255, 255, .55);
  color-scheme: light;
}
.film-frame, .theme-dark {
  --bg: #030507;
  --bg-soft: #090d12;
  --surface: #090d12;
  --surface-raised: #10161d;
  --line: #17202a;
  --line-2: #24303c;
  --ink: #f2f8ff;
  --ink-muted: #9db0c3;
  --ink-faint: #637588;
  --accent: #d7efff;
  --accent-2: #7cbcec;
  --on-accent: #04121c;
  --accent-soft: rgba(215, 239, 255, .09);
  --accent-line: rgba(215, 239, 255, .3);
  --accent2-soft: rgba(124, 188, 236, .13);
  --accent2-line: rgba(124, 188, 236, .4);
  --glass: rgba(12, 17, 23, .62);
  color-scheme: dark;
}
:root {
  /* literal colours (the scenes inside the films use these) */
  --ice: #d7efff;
  --glacier: #7cbcec;
  --steel: #8ea3b8;
  --on-ice: #04121c;
  --chrome: linear-gradient(180deg, #ffffff 0%, #e4f3ff 30%, #8ea6bb 50%, #d7efff 68%, #f7fbff 82%, #9fb4c7 100%);
  --chrome-h: linear-gradient(90deg, #9fb4c7 0%, #f4faff 18%, #d7efff 34%, #7f97ad 50%, #e9f5ff 66%, #ffffff 80%, #a9bccd 100%);
  --chrome-dark: linear-gradient(135deg, #03080d 0%, #2a6fa5 45%, #0b1a26 60%, #7cbcec 100%);

  --font-display: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  --font-body: Inter, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: transparent; color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 24px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }
.ice { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.faint { color: var(--ink-faint); }
.skip { position: fixed; z-index: 200; left: 12px; top: -60px; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- shared type ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font: 500 11.5px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.tag b { color: var(--accent-2); font-weight: 600; }
.headline { margin: var(--space-4) 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 7vw, 108px); line-height: .95; letter-spacing: -.04em; text-wrap: balance; }
.headline .ln { display: block; }
.headline em { font-family: var(--font-accent); font-weight: 400; font-style: italic; font-size: 1.08em; letter-spacing: -.01em; color: var(--accent-2); }
.split .word { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; will-change: transform; }
.split .ln { overflow: hidden; padding-bottom: .08em; }
.lede { margin: var(--space-6) 0 0; max-width: 44ch; color: var(--ink-muted); font-size: 17px; line-height: 27px; }
.sec-lede { margin: var(--space-6) 0 0; max-width: 58ch; color: var(--ink-muted); font-size: 17px; line-height: 27px; }
.chip { display: inline-flex; align-items: center; margin: 0; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-muted); font: 500 12px/1 var(--font-body); white-space: nowrap; list-style: none; }
.chip.c { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.chip.g { color: var(--accent-2); border-color: var(--accent2-line); background: var(--accent2-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 var(--space-8); border-radius: 999px; border: 1px solid var(--line-2); font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease, color .25s ease; }
.btn-ice { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-ice:hover { box-shadow: 0 0 0 4px var(--accent2-soft), 0 12px 32px rgba(10, 40, 70, .28); }
  .btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
}
.btn:active { transform: scale(.97); }

/* ---------- cursor + progress ---------- */
.cursor { position: fixed; z-index: 150; left: 0; top: 0; pointer-events: none; display: none; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--ink); }
.cursor-ring { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid rgba(3, 8, 13, .45); transition: width .3s var(--ease-out), height .3s var(--ease-out), border-color .25s ease, background-color .25s ease; }
.cursor.hover .cursor-ring { width: 64px; height: 64px; border-color: var(--accent-2); background: rgba(31, 95, 147, .08); }
.cursor-label { font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s ease; }
.cursor.label .cursor-ring { width: 86px; height: 86px; background: var(--accent-2); border-color: var(--accent-2); }
.cursor.label .cursor-label { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: block; } .has-cursor, .has-cursor a, .has-cursor button { cursor: none; } }
.progress { position: fixed; z-index: 40; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent-2), var(--ink)); }

/* ---------- header ---------- */
.top { position: fixed; z-index: 30; inset: 0 0 auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); padding: calc(var(--space-4) + env(safe-area-inset-top, 0px)) var(--gutter) var(--space-4); background: linear-gradient(rgba(215, 239, 255, .9), transparent); transition: background-color .3s ease; }
.top.on-dark { background: rgba(215, 239, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { justify-self: start; display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 22px/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
.brand-word { display: flex; align-items: center; font: 800 21px/1 var(--font-display); letter-spacing: -.045em; color: var(--ink); }
.brand-word .d { width: .52em; height: .66em; margin: 0 .16em; display: inline-block; background: url("assets/diamond.svg") center / 100% 100% no-repeat; }
.dm { width: .5em; height: .64em; display: inline-block; background: url("assets/diamond.svg") center / 100% 100% no-repeat; align-self: center; }
.pill-nav { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.pill-nav a { position: relative; z-index: 1; padding: 8px 15px; border-radius: 999px; font-size: 13.5px; line-height: 18px; font-weight: 500; text-decoration: none; color: var(--ink-muted); white-space: nowrap; transition: color .25s ease; }
.pill-nav a.on { color: var(--on-accent); }
.nav-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--accent); box-shadow: 0 6px 18px rgba(3, 8, 13, .22); transition: left .45s var(--ease-out), width .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pill-nav a:not(.on):hover { color: var(--ink); } }
.top-right { justify-self: end; display: flex; align-items: center; gap: var(--space-4); }
.train { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.train > i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); animation: blink 1.4s steps(2, start) infinite; }
.train.done > i { animation: none; background: var(--ink); }
.train .tr-k { color: var(--ink-faint); }
@keyframes blink { to { visibility: hidden; } }
.hire { display: flex; align-items: center; gap: var(--space-3); padding: 4px 4px 4px var(--space-4); border-radius: 999px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-size: 13.5px; font-weight: 600; line-height: 20px; }
.hire i { width: 30px; height: 30px; border-radius: 50%; background: var(--on-accent); display: grid; place-items: center; }
.hire i::after { content: ""; width: 9px; height: 9px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateX(-1px) rotate(45deg); }

/* ---------- home: the giant name, flowing contour lines, and the intro in the middle ---------- */
.home { --name: clamp(56px, 10.5vw, 184px); position: relative; height: 100vh; height: 100svh; min-height: 700px; overflow: hidden; }
.home-name { position: absolute; left: 0; right: 0; top: 128px; z-index: 1; margin: 0; text-align: center; font: 400 var(--name)/.85 var(--font-accent); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.home-name span { display: inline-block; }
.home-name .an-2 { font-style: italic; color: var(--accent-2); }
.home-sub { position: absolute; left: 0; right: 0; top: calc(128px + var(--name) * .9); z-index: 3; margin: 0; text-align: center; font: 500 12px/1 var(--font-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--accent-2); }
.home-intro { position: absolute; z-index: 3; left: 50%; top: calc(128px + var(--name) * .9 + 56px); width: min(590px, 42vw); transform: translateX(-50%); display: grid; justify-items: center; gap: 18px; text-align: center; }
.home-intro .lede { margin: 0; max-width: none; color: var(--ink-muted); }
.home-intro .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: 4px; }
.home-intro .chips { justify-content: center; margin-top: 6px; }
.about-cards { position: absolute; z-index: 3; left: var(--gutter); bottom: var(--space-8); display: grid; gap: var(--space-2); width: 196px; }
.acard { position: relative; display: grid; gap: 5px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.acard .ak { font: 500 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.acard b { font: 700 14.5px/1.25 var(--font-display); letter-spacing: -.01em; }
.acard .ad { position: absolute; right: 12px; top: 12px; width: 12px; height: 15px; display: inline-block; background: url("assets/diamond.svg") center / 100% 100% no-repeat; }
.about-bio { position: absolute; z-index: 3; right: var(--gutter); top: 46%; width: min(320px, 24vw); padding: 18px 20px 20px; border-radius: 18px; background: rgba(241, 248, 255, .78); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 18px 50px rgba(10, 40, 70, .14), inset 0 1px 0 #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bio-big { margin: var(--space-4) 0 0; font: 700 26px/1.1 var(--font-display); letter-spacing: -.03em; }
.bio-big em { font-family: var(--font-accent); font-weight: 400; font-style: italic; color: var(--accent-2); font-size: 1.15em; }
.bio { margin: var(--space-3) 0 0; color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.scroll-hint { position: absolute; z-index: 3; right: var(--gutter); bottom: var(--space-8); margin: 0; font: 500 11px/1 var(--font-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-muted); writing-mode: vertical-rl; }
.scroll-hint::after { content: ""; display: inline-block; width: 1px; height: 40px; margin-top: var(--space-2); background: linear-gradient(var(--ink), transparent); }

/* ---------- film frame (the work panels and the case study): always a dark screen ---------- */
.film-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 70% 25%, #0b1824, #040608 70%); border: 1px solid rgba(3, 8, 13, .35); box-shadow: 0 30px 70px rgba(10, 40, 70, .3); container-type: size; isolation: isolate; color: var(--ink); }
.film-corner { position: absolute; z-index: 5; width: 18px; height: 18px; border: 2px solid var(--ice); opacity: .75; pointer-events: none; }
.film-corner.tl { left: 12px; top: 12px; border-right: 0; border-bottom: 0; }
.film-corner.tr { right: 12px; top: 12px; border-left: 0; border-bottom: 0; }
.film-corner.bl { left: 12px; bottom: 12px; border-right: 0; border-top: 0; }
.film-corner.br { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.film-hud { position: absolute; z-index: 5; left: 36px; right: 36px; top: 13px; display: flex; justify-content: space-between; font: 500 10.5px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(242, 248, 255, .7); pointer-events: none; }
.film-name { display: inline-flex; align-items: center; gap: 6px; }
.film-name i { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); animation: blink 1.4s steps(2, start) infinite; }
.film-tc { color: var(--ice); font-variant-numeric: tabular-nums; }
.film-illus { position: absolute; z-index: 5; right: 36px; bottom: 14px; padding: 3px 8px; border-radius: 6px; background: rgba(3, 5, 7, .6); border: 1px solid var(--line-2); font: 500 9.5px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); pointer-events: none; }
.film-bar { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(215, 239, 255, .1); }
.film-bar i { display: block; height: 100%; background: var(--ice); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 8px rgba(215, 239, 255, .7); }

/* ---------- scenes: everything is sized in container units of the frame ---------- */
.sc { position: absolute; inset: 0; overflow: hidden; font-family: var(--font-body); color: var(--ink); }
.sc::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(215, 239, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(215, 239, 255, .04) 1px, transparent 1px); background-size: 4cqw 4cqw; pointer-events: none; }
.sc > * { position: absolute; }
.sc img { display: block; width: 100%; height: auto; }
.g-ice { background: rgba(225, 242, 255, .9); color: var(--on-ice); border: 1px solid rgba(255, 255, 255, .9); border-radius: 1.4cqw; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .45), inset 0 1px 0 #fff; backdrop-filter: blur(8px); overflow: hidden; }
.g-dark { background: rgba(10, 15, 21, .82); border: 1px solid rgba(215, 239, 255, .22); border-radius: 1.4cqw; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .5); backdrop-filter: blur(10px); }
.sc-scan { z-index: 3; background: #fff; box-shadow: 0 0 1.4cqw 0.4cqw rgba(215, 239, 255, .85), 0 0 4cqw 1.2cqw rgba(124, 188, 236, .45); }
.sc-scan.v { top: -2%; bottom: -2%; width: 0.25cqw; transform: translateX(-50%); }
.sc-scan.h { left: -2%; right: -2%; height: 0.25cqw; transform: translateY(-50%); }
.sc-stats { display: flex; gap: 3cqw; left: 5cqw; bottom: 5.5cqw; }
.sc-stats div { display: grid; gap: .4cqw; }
.sc-stats b { font: 700 4.6cqw/1 var(--font-display); letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.sc-stats span { max-width: 22cqw; font: 500 1.25cqw/1.35 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.sc-stats .faint-stat b { color: var(--ink-faint); }
.sc-chips { display: grid; gap: .8cqw; justify-items: end; }
.sc-chips span { padding: .7cqw 1.2cqw; border-radius: 99px; background: rgba(215, 239, 255, .1); border: 1px solid rgba(215, 239, 255, .35); color: var(--ice); font: 500 1.35cqw/1 var(--font-mono); white-space: nowrap; }
.sc-caret { display: inline-block; width: .2cqw; height: 2cqw; background: var(--ice); vertical-align: middle; animation: blink .9s steps(2, start) infinite; }
.sc-term { left: 5cqw; top: 6.5cqw; display: grid; gap: .5cqw; z-index: 2; }
.sc-term p { margin: 0; font: 500 1.35cqw/1.3 var(--font-mono); color: var(--ice); white-space: nowrap; }
.sc-formula { right: 5cqw; bottom: 5.5cqw; margin: 0; font: 400 2.6cqw/1 var(--font-accent); font-style: italic; color: rgba(215, 239, 255, .75); }
.sc-bars { display: grid; gap: 1cqw; }
.sc-bars > div { display: grid; grid-template-columns: 13cqw 1fr 5.5cqw; align-items: center; gap: 1.2cqw; }
.sc-bars span { font: 500 1.35cqw/1 var(--font-mono); color: var(--ink-muted); white-space: nowrap; }
.sc-bars i { display: block; height: 1.5cqw; width: var(--w); border-radius: 1cqw; background: var(--ice); box-shadow: 0 0 1.4cqw rgba(215, 239, 255, .45); }
.sc-bars .t i { background: rgba(142, 163, 184, .55); box-shadow: none; }
.sc-bars b { font: 700 2cqw/1 var(--font-display); color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.sc-bars .t b { color: var(--ink-muted); }
.sc-bars p { margin: .3cqw 0 0; font: 500 1.15cqw/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

/* EROSIGHT */
.ero-tiles { inset: 0; width: 100%; height: 100%; }
.ero-map { left: 5cqw; top: 12.5cqw; width: 70cqw; padding: .6cqw; z-index: 2; overflow: visible; }
.ero-map .ero-clip { border-radius: .9cqw; overflow: hidden; }
.ero-year { right: 5cqw; top: 13cqw; display: grid; gap: .6cqw; justify-items: end; z-index: 3; }
.ero-year span { font: 500 1.3cqw/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.ero-year b { position: relative; display: block; width: 14cqw; height: 6cqw; overflow: hidden; }
.ero-year b i { position: absolute; inset: 0; font: 700 6cqw/1 var(--font-display); font-style: normal; letter-spacing: -.05em; text-align: right; color: #fff; }
.ero-trend { right: 5cqw; bottom: 5.5cqw; width: 42cqw; padding: .5cqw; z-index: 3; }
.ero-stats { z-index: 3; }

/* Data Scientist Agent */
.win { left: 5cqw; top: 6cqw; width: 60cqw; height: 50cqw; border-radius: 1.4cqw; overflow: hidden; background: #000; border: 1px solid rgba(215, 239, 255, .25); box-shadow: 0 3cqw 6cqw rgba(0, 0, 0, .6); }
.win-bar { display: flex; align-items: center; gap: .7cqw; height: 3.4cqw; padding: 0 1.4cqw; background: #0d1218; border-bottom: 1px solid rgba(215, 239, 255, .14); }
.win-bar i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #2a3642; }
.win-bar i:first-child { background: var(--ice); }
.win-bar span { margin-left: .8cqw; font: 500 1.2cqw/1 var(--font-mono); color: var(--ink-muted); white-space: nowrap; }
.win-body { position: relative; height: calc(100% - 3.4cqw); overflow: hidden; }
.win-body .shot { position: absolute; left: 0; top: 0; width: 100%; }
.ask { left: 13cqw; bottom: 6cqw; width: 52cqw; display: flex; align-items: center; gap: 1cqw; padding: 1.3cqw 1.3cqw 1.3cqw 2cqw; z-index: 3; border-radius: 99px; }
.ask-q { font: 500 1.6cqw/1.2 var(--font-body); color: #fff; white-space: nowrap; }
.ask-go { margin-left: auto; display: grid; place-items: center; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: var(--ice); color: var(--on-ice); font: 700 1.8cqw/1 var(--font-body); }
.reply { right: 4cqw; top: 14cqw; width: 37cqw; padding: 2cqw 2.2cqw; z-index: 4; }
.reply .rk { margin: 0; font: 600 1.15cqw/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #2a6fa5; }
.reply .rt { margin: 1cqw 0 0; font: 600 2.1cqw/1.3 var(--font-display); letter-spacing: -.02em; }
.reply .rt em { font-family: var(--font-accent); font-weight: 400; font-size: 1.15em; color: #1f5f93; }
.dsa-chips { right: 4cqw; bottom: 6cqw; }

/* Health & Fitness */
.phone { left: 9cqw; top: 5cqw; width: 23cqw; height: 49cqw; padding: .9cqw; border-radius: 3.4cqw; background: linear-gradient(160deg, #1b232c, #07090c); border: 1px solid rgba(215, 239, 255, .28); box-shadow: 0 3cqw 6cqw rgba(0, 0, 0, .6), inset 0 0 0 .3cqw #000; z-index: 2; }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: 2.6cqw; overflow: hidden; background: #05080b; }
.v-cam, .v-day { position: absolute; inset: 0; padding: 2.6cqw 1.6cqw 1.6cqw; }
.ph-top { display: flex; justify-content: space-between; margin: 0; font: 500 1.1cqw/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.ph-top b { color: var(--ice); font-weight: 500; }
.plate-wrap { position: relative; margin-top: 2.4cqw; aspect-ratio: 1; }
.plate { width: 100%; height: 100%; display: block; }
.vf { position: absolute; width: 2.2cqw; height: 2.2cqw; border: .25cqw solid #fff; }
.vf.tl { left: -.4cqw; top: -.4cqw; border-right: 0; border-bottom: 0; } .vf.tr { right: -.4cqw; top: -.4cqw; border-left: 0; border-bottom: 0; }
.vf.bl { left: -.4cqw; bottom: -.4cqw; border-right: 0; border-top: 0; } .vf.br { right: -.4cqw; bottom: -.4cqw; border-left: 0; border-top: 0; }
.det { position: absolute; border: .2cqw dashed var(--ice); border-radius: 1cqw; background: rgba(215, 239, 255, .1); }
.det span { position: absolute; left: -.2cqw; top: -2.2cqw; padding: .35cqw .6cqw; border-radius: .5cqw; background: var(--ice); color: var(--on-ice); font: 600 .95cqw/1 var(--font-mono); white-space: nowrap; }
.det.d1 { left: 14%; top: 22%; width: 38%; height: 36%; } .det.d2 { left: 50%; top: 23%; width: 36%; height: 36%; } .det.d3 { left: 28%; top: 58%; width: 46%; height: 32%; }
.det.d2 span, .det.d3 span { top: auto; bottom: -2.2cqw; }
.flash { position: absolute; inset: -20%; background: #fff; }
.meal { position: absolute; left: 1.6cqw; right: 1.6cqw; bottom: 2cqw; display: grid; gap: .5cqw; padding: 1.4cqw; border-radius: 1.4cqw; background: var(--ice); color: var(--on-ice); }
.meal b { font: 700 2.4cqw/1 var(--font-display); letter-spacing: -.03em; }
.meal > span { font: 500 1cqw/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.rings { display: block; width: 74%; margin: 3cqw auto 2cqw; transform: rotate(-90deg); }
.rings circle { fill: none; stroke-width: 7; }
.rings .rb { stroke: rgba(215, 239, 255, .08); }
.rings .rg { stroke-linecap: round; stroke-dasharray: 1; }
.rings .r1 { stroke: var(--ice); } .rings .r2 { stroke: var(--glacier); } .rings .r3 { stroke: #fff; } .rings .r4 { stroke: var(--steel); }
.vd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1cqw; }
.vd-list li { display: grid; grid-template-columns: 1cqw 1fr auto; align-items: center; gap: .8cqw; font: 500 1.15cqw/1 var(--font-body); color: var(--ink-muted); }
.vd-list li b { color: #fff; font: 600 1.1cqw/1 var(--font-mono); }
.vd-list i { width: 1cqw; height: 1cqw; border-radius: 50%; }
.vd-list .k1 { background: var(--ice); } .vd-list .k2 { background: var(--glacier); } .vd-list .k3 { background: #fff; } .vd-list .k4 { background: var(--steel); }
.fit-fc { right: 5cqw; top: 9cqw; width: 52cqw; padding: 2cqw 2.2cqw 1.4cqw; z-index: 2; }
.fit-fc .fk { margin: 0 0 1.2cqw; font: 600 1.2cqw/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #2a6fa5; }
.fit-fc svg { display: block; width: 100%; overflow: visible; }
.fc-grid path { stroke: rgba(4, 18, 28, .1); stroke-width: 1; }
.fc-band { fill: rgba(42, 111, 165, .16); }
.fc-hist { fill: none; stroke: #04121c; stroke-width: 3; stroke-dasharray: 1; stroke-linecap: round; }
.fc-fore { fill: none; stroke: #2a6fa5; stroke-width: 3; stroke-dasharray: 1; stroke-linecap: round; }
.fc-now { fill: #04121c; } .fc-goal { fill: #2a6fa5; stroke: #fff; stroke-width: 3; }
.fc-t { font: 500 7.5px var(--font-mono); fill: rgba(4, 18, 28, .55); text-transform: uppercase; letter-spacing: .06em; }
.fit-chips { right: 5cqw; bottom: 5.5cqw; grid-auto-flow: column; }

/* Dental */
.xr { left: 4cqw; top: 9cqw; width: 64cqw; border-radius: 1.2cqw; overflow: hidden; background: #fff; box-shadow: 0 3cqw 6cqw rgba(0, 0, 0, .55); }
.xr .xr-clip { position: absolute; inset: 0; }
.den-zoom { right: 4cqw; top: 9cqw; width: 25cqw; padding: 1cqw; z-index: 3; }
.den-zoom .dz { position: relative; border-radius: .8cqw; overflow: hidden; }
.den-zoom .dz-cam { position: absolute; inset: 0; }
.den-zoom p { margin: 1cqw .4cqw .2cqw; font: 500 1.3cqw/1.2 var(--font-body); }
.den-zoom p b { font-family: var(--font-display); font-weight: 700; }
.den-stats { bottom: 5.5cqw; }
.den-chips { right: 4cqw; bottom: 5.5cqw; }

/* OCR */
.doc { left: 4cqw; top: 9cqw; width: 56cqw; border-radius: 1cqw; overflow: hidden; box-shadow: 0 3cqw 6cqw rgba(0, 0, 0, .55); }
.doc .doc-clip { position: absolute; inset: 0; }
.ocr-out { right: 4cqw; top: 9cqw; width: 33cqw; height: 42cqw; padding: 1.8cqw; z-index: 2; }
.ocr-out .ok { display: flex; align-items: center; gap: .7cqw; margin: 0 0 1.4cqw; font: 600 1.15cqw/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ice); }
.ocr-out .ok i { width: .9cqw; height: .9cqw; border-radius: 50%; background: var(--ice); box-shadow: 0 0 .8cqw var(--ice); }
.ocr-out .lines { display: grid; gap: .9cqw; }
.ocr-out .lines p { margin: 0; min-height: 1.6cqw; font: 500 1.25cqw/1.3 var(--font-mono); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.ocr-bars { left: 4cqw; bottom: 5.5cqw; width: 56cqw; }

/* Summarizer */
.art { left: 4cqw; top: 7cqw; width: 50cqw; padding: 2.4cqw 2.6cqw; }
.art .ah { margin: 0 0 1.4cqw; font: 700 2.6cqw/1.1 var(--font-display); letter-spacing: -.03em; }
.art .as { margin: 0; font: 400 1.5cqw/1.6 var(--font-body); color: #22323f; }
.art .key { background-image: linear-gradient(rgba(124, 188, 236, .55), rgba(124, 188, 236, .55)); background-repeat: no-repeat; background-size: 0% 100%; border-radius: .3cqw; color: var(--on-ice); }
.sum { right: 4cqw; top: 7cqw; width: 37cqw; min-height: 24cqw; padding: 2cqw 2.2cqw; z-index: 2; }
.sum .sk { display: flex; align-items: center; gap: .7cqw; margin: 0 0 1.2cqw; font: 600 1.15cqw/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ice); }
.sum .sk i { width: .9cqw; height: .9cqw; border-radius: 50%; background: var(--ice); box-shadow: 0 0 .8cqw var(--ice); }
.sum .st { margin: 0; font: 600 1.85cqw/1.4 var(--font-display); letter-spacing: -.015em; color: #fff; }
.rouge { right: 4cqw; bottom: 5.5cqw; width: 37cqw; }
.rouge > div { grid-template-columns: 14cqw 1fr 4.5cqw; }

/* Hand gestures */
.g-cam { inset: 0; width: 100%; height: 100%; }
.g-hud { left: 5cqw; bottom: 5.5cqw; margin: 0; display: flex; align-items: center; gap: .7cqw; font: 500 1.2cqw/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.g-hud i { width: .9cqw; height: .9cqw; border-radius: 50%; background: var(--ice); animation: blink 1.4s steps(2, start) infinite; }
.g-label { left: 5cqw; top: 7cqw; display: grid; gap: 1cqw; }
.g-label b { font: 700 5.4cqw/1 var(--font-display); letter-spacing: -.045em; color: #fff; }
.g-label span { display: flex; gap: .6cqw; }
.g-label span i { width: 3.4cqw; height: .45cqw; border-radius: 1cqw; background: rgba(215, 239, 255, .2); transition: background-color .3s ease; }
.g-label span i.on { background: var(--ice); box-shadow: 0 0 .8cqw var(--ice); }
.g-screen { right: 5cqw; top: 9cqw; width: 36cqw; height: 40cqw; overflow: hidden; }
.gs-list { position: absolute; left: 2cqw; right: 2cqw; top: 2cqw; display: grid; gap: 1.1cqw; }
.gs-list p { margin: 0; height: 2.6cqw; border-radius: .7cqw; background: rgba(215, 239, 255, .08); }
.gs-list p:nth-child(3n + 1) { background: rgba(215, 239, 255, .16); width: 70%; }
.gs-btn { position: absolute; right: 2cqw; bottom: 8cqw; padding: 1cqw 2.2cqw; border: 0; border-radius: 99px; background: rgba(215, 239, 255, .14); color: var(--ice); font: 600 1.4cqw/1 var(--font-body); transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.gs-btn.on { background: var(--ice); color: var(--on-ice); transform: scale(.94); }
.gs-vol { position: absolute; left: 2cqw; right: 2cqw; bottom: 2.4cqw; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.2cqw; padding: 1.2cqw 1.4cqw; border-radius: 1cqw; background: rgba(3, 5, 7, .85); border: 1px solid rgba(215, 239, 255, .16); }
.gs-vol span { font: 500 1.1cqw/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.gs-vol i { display: block; height: .9cqw; border-radius: 1cqw; background: rgba(215, 239, 255, .14); overflow: hidden; }
.gs-vol b { display: block; height: 100%; background: var(--ice); transform-origin: left; transform: scaleX(.4); }
.gs-cur { position: absolute; width: 2.4cqw; z-index: 2; filter: drop-shadow(0 .3cqw .6cqw rgba(0, 0, 0, .6)); }
.gs-cur path { fill: #fff; stroke: #04121c; stroke-width: 1.4; }
.gs-ripple { position: absolute; width: 6cqw; height: 6cqw; margin: -2cqw 0 0 -2cqw; border-radius: 50%; border: .3cqw solid var(--ice); opacity: 0; }
.g-illus { right: 5cqw; bottom: 5.5cqw; margin: 0; font: 500 1.15cqw/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- section heads ---------- */
.sec-head { padding: 0 var(--gutter); }
.manifesto .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- work: stacked case panels ---------- */
.work { padding: 14vh 0 0; }
.cases { position: relative; margin-top: var(--space-12); }
.case { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; padding: 86px var(--gutter) 28px; }
.case-card { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(24px, 3.2vw, 56px); height: 100%; max-height: 780px; padding: clamp(20px, 2.6vw, 40px); border-radius: 28px; border: 1px solid var(--line-2); background: radial-gradient(900px circle at 100% 0%, rgba(255, 255, 255, .6), transparent 60%), linear-gradient(180deg, rgba(241, 248, 255, .86), rgba(214, 236, 253, .8)); border-color: rgba(255, 255, 255, .75); box-shadow: 0 -24px 70px rgba(10, 40, 70, .18), inset 0 1px 0 #fff; transform-origin: 50% 0%; will-change: transform; }
.case-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; }
.case-info { display: grid; align-content: center; gap: var(--space-4); min-width: 0; }
.case-n { display: flex; align-items: baseline; gap: 8px; margin: 0; font: 500 12px/1 var(--font-mono); letter-spacing: .1em; color: var(--ink-faint); }
.case-n b { font: 700 13px/1 var(--font-mono); color: var(--accent-2); }
.case-kicker { margin: 0; font: 500 11.5px/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.case-title { margin: 0; font: 700 clamp(34px, 3.8vw, 62px)/.95 var(--font-display); letter-spacing: -.045em; }
.case-line { margin: 0; font: 400 clamp(20px, 1.8vw, 28px)/1.15 var(--font-accent); font-style: italic; color: var(--accent-2); }
.case-lede { margin: 0; max-width: 50ch; color: var(--ink-muted); font-size: 15px; line-height: 23px; }
.case-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-2) 0 0; padding: var(--space-4) 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.case-metrics div { min-width: 0; }
.case-metrics dt { font: 700 clamp(22px, 2vw, 32px)/1 var(--font-display); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-metrics dd { margin: 6px 0 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.case-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.case-cta .btn { height: 46px; padding: 0 22px; font-size: 14px; }
.case .film-frame { width: 100%; }

/* ---------- skills ---------- */
.skills { position: relative; padding: 18vh 0 12vh; overflow: hidden; }
.skills-net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.skill-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); padding: var(--space-12) var(--gutter) 0; perspective: 1200px; }
.skill { position: relative; display: grid; align-content: start; gap: var(--space-3); padding: var(--space-6); border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); min-width: 0; transform-style: preserve-3d; transition: border-color .3s ease, box-shadow .3s ease; }
.skill.wide { grid-column: span 2; }
.skill .sk-n { margin: 0; font: 500 12px/1 var(--font-mono); color: var(--ink-faint); }
.skill h3 { margin: 0; font: 700 24px/1.1 var(--font-display); letter-spacing: -.03em; }
.skill > p:not(.sk-n) { margin: 0; color: var(--ink-muted); }
.skill .chips { margin-top: var(--space-2); }
.glow { background: radial-gradient(320px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, .85), transparent 70%), var(--surface); }
@media (hover: hover) and (pointer: fine) { .skill:hover { border-color: var(--accent2-line); box-shadow: 0 20px 50px rgba(10, 40, 70, .14); } }
.soft { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: var(--space-12) var(--gutter) 0; font: 600 clamp(16px, 1.6vw, 22px)/1.2 var(--font-display); letter-spacing: -.02em; color: var(--ink-muted); }
.soft .dm { font-size: .8em; }

/* ---------- journey ---------- */
.journey { padding: 14vh 0 16vh; }
.steps { position: relative; padding: var(--space-12) var(--gutter) 0; }
.steps-line { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--space-12) + 30px); width: calc(100% - 2 * var(--gutter)); height: 20px; overflow: visible; }
.steps-line path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 1000; stroke-dashoffset: 1000; vector-effect: non-scaling-stroke; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); position: relative; }
.step { display: grid; gap: var(--space-2); align-content: start; }
.step .n { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); color: var(--ink); font: 600 16px/1 var(--font-mono); box-shadow: 0 10px 24px rgba(10, 40, 70, .14); margin-bottom: var(--space-4); }
.step:nth-child(2n) .n { border-color: var(--accent-2); color: var(--accent-2); }
.step .when { margin: 0; font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.step h3 { margin: 0; font: 700 21px/1.15 var(--font-display); letter-spacing: -.03em; }
.step p:not(.when) { margin: 0; color: var(--ink-muted); max-width: 30ch; }

/* ---------- manifesto ---------- */
.manifesto { position: relative; height: 300vh; }
.manifesto .stage { display: grid; place-items: center; padding-inline: var(--gutter); }
.m-orbit { position: absolute; width: min(90vw, 900px); left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .16; }
.orbit { display: block; width: 100%; height: auto; overflow: visible; }
.orbit circle.o { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.orbit circle.o.d { stroke-dasharray: 2 7; }
.orbit circle.n { fill: var(--ink); }
.orbit circle.n.w { fill: var(--accent-2); }
.words { position: relative; margin: 0; max-width: 22em; text-align: center; font-family: var(--font-body); font-size: clamp(22px, 2.8vw, 42px); line-height: 1.3; letter-spacing: -.015em; }
.words .w { display: inline-block; will-change: transform, opacity, filter; }
.words mark { background: none; color: var(--accent-2); }
.words em { font-family: var(--font-accent); font-style: italic; color: var(--accent-2); font-size: 1.15em; }

/* ---------- contact: the inverted band ---------- */
.contact { position: relative; padding: 16vh var(--gutter); background: var(--bg); color: var(--ink); overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -20vw; border-radius: 50%; background: radial-gradient(circle, rgba(124, 188, 236, .32), transparent 65%); filter: blur(40px); }
.contact::after { content: ""; position: absolute; width: 40vw; height: 40vw; left: -14vw; bottom: -18vw; border-radius: 50%; background: radial-gradient(circle, rgba(215, 239, 255, .16), transparent 65%); filter: blur(30px); }
.contact-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.contact .headline em { color: var(--accent); }
.contact-lede { margin: var(--space-6) 0 0; font-size: 18px; line-height: 28px; max-width: 34ch; color: var(--ink-muted); }
.contact-links { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-2); max-width: 440px; }
.contact-links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); text-decoration: none; transition: background-color .25s ease, border-color .25s ease; }
.contact-links span { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.contact-links b { font: 600 14.5px/1.2 var(--font-display); text-align: right; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .contact-links a:hover { background: rgba(215, 239, 255, .07); border-color: var(--accent-line); } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-6); padding: var(--space-8); border-radius: 24px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 #fff; }
.form label { display: grid; gap: var(--space-2); font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); min-width: 0; }
.form .wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; font: 400 16px/24px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line-2); border-radius: 10px; padding: var(--space-3) var(--space-4); transition: border-color .2s ease, box-shadow .2s ease; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent2-soft); outline: none; }
.form-row { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.form-note { margin: 0; color: var(--ink-muted); font-size: 13px; }

/* ---------- footer ---------- */
.foot { padding: var(--space-16) var(--gutter) calc(var(--space-8) + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.giant { margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; font: 800 clamp(34px, 9.6vw, 190px)/.9 var(--font-display); letter-spacing: -.055em; white-space: nowrap; color: var(--bg); -webkit-text-stroke: 3px rgba(3, 8, 13, .38); paint-order: stroke fill; }
.giant span { display: inline-block; transition: color .3s ease, -webkit-text-stroke-color .3s ease; }
.giant .d { width: .52em; height: .66em; margin: 0 .12em; display: inline-block; background: url("assets/diamond.svg") center / 100% 100% no-repeat; }
@media (hover: hover) and (pointer: fine) { .giant span:hover { color: var(--ink); -webkit-text-stroke-color: var(--ink); } }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-12); color: var(--ink-faint); font-size: 12px; }
.foot-row p { margin: 0; }
.totop { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.foot-credit { margin: var(--space-6) 0 0; text-align: center; font-size: 11.5px; line-height: 18px; color: var(--ink-faint); }

/* ---------- case study ---------- */
.case-modal { position: fixed; inset: 0; z-index: 120; }
.case-modal[hidden] { display: none; }
.cm-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 13, .32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cm-sheet { position: absolute; left: 50%; top: 16px; bottom: 0; width: min(1180px, calc(100% - 24px)); transform: translateX(-50%); overflow-y: auto; overscroll-behavior: contain; border-radius: 28px 28px 0 0; border: 1px solid var(--line-2); border-bottom: 0; background: linear-gradient(180deg, #f1f8ff, var(--bg) 40%); box-shadow: 0 -30px 100px rgba(3, 8, 13, .35); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.cm-close { position: sticky; top: 16px; float: right; z-index: 3; margin: 16px 16px 0 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .75); color: var(--ink); cursor: pointer; backdrop-filter: blur(8px); }
@media (hover: hover) and (pointer: fine) { .cm-close:hover { border-color: var(--accent-2); color: var(--accent-2); } }
.cm-body { padding: clamp(24px, 4vw, 56px); padding-top: clamp(28px, 4vw, 52px); }
.cm-head { display: grid; gap: 14px; max-width: 880px; }
.cm-head .case-title { font-size: clamp(40px, 5.6vw, 84px); }
.cm-head .case-line { font-size: clamp(22px, 2.2vw, 32px); }
.cm-film { margin-top: clamp(24px, 3vw, 40px); }
.cm-metrics { margin-top: clamp(24px, 3vw, 40px); }
.cm-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(40px, 5vw, 72px); }
.cm-grid + .cm-grid { padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.cm-grid h3 { margin: 0; font: 500 12px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.cm-text p { margin: 0 0 14px; max-width: 70ch; color: var(--ink); font-size: 16px; line-height: 27px; }
.cm-stack { margin-top: 18px; }
.cm-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: how; }
.cm-how li { position: relative; display: grid; grid-template-columns: 44px 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); counter-increment: how; }
.cm-how li::before { content: counter(how, decimal-leading-zero); font: 500 12px/24px var(--font-mono); color: var(--ink-faint); }
.cm-how b { font: 700 17px/24px var(--font-display); letter-spacing: -.02em; }
.cm-how span { color: var(--ink-muted); line-height: 24px; }
.cm-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cm-table th { padding: 0 12px 10px 0; text-align: left; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--line-2); }
.cm-table td { padding: 14px 12px 14px 0; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-muted); }
.cm-table td:nth-child(2) { color: var(--ink); font: 700 17px/1.25 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.cm-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cm-notes li { position: relative; padding: 16px 18px 16px 46px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .5); color: var(--ink); line-height: 25px; max-width: 78ch; }
.cm-notes li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 11px; height: 14px; background: var(--chrome-dark); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.cm-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cm-gallery figure { margin: 0; display: grid; gap: 10px; }
.cm-gallery figure.tall { grid-row: span 2; }
.cm-gallery .gimg { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; }
.cm-gallery img { display: block; width: 100%; height: auto; }
.cm-gallery figcaption { font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.cm-credit { margin: 18px 0 0; font-size: 12.5px; color: var(--ink-faint); }
.cm-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 6vw, 88px); padding-top: 24px; border-top: 1px solid var(--line-2); }
.cm-nav button { display: grid; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.cm-nav button:last-child { text-align: right; }
.cm-nav span { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.cm-nav b { font: 700 clamp(20px, 2.4vw, 34px)/1 var(--font-display); letter-spacing: -.04em; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .cm-nav button:hover b { color: var(--accent-2); } }

@media (max-width: 1300px) {
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .case-lede { display: none; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .train { display: none; }
  .steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-8); }
  .steps-line { display: none; }
  .home-intro { width: min(440px, 42vw); }
  .home-intro .lede { font-size: 15px; line-height: 24px; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .top { grid-template-columns: 1fr auto; }
  .pill-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); top: auto; max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; box-shadow: 0 10px 40px rgba(10, 40, 70, .25); }
  .pill-nav a { padding: 8px 12px; font-size: 13px; }
  .train { display: none; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-word { font-size: 17px; }
  .film-hud { left: 28px; right: 28px; top: 9px; font-size: 9px; }
  .film-corner { width: 12px; height: 12px; }
  .film-corner.tl { left: 8px; top: 8px; } .film-corner.tr { right: 8px; top: 8px; } .film-corner.bl { left: 8px; bottom: 8px; } .film-corner.br { right: 8px; bottom: 8px; }
  .film-illus { right: 28px; bottom: 9px; font-size: 8.5px; }
  .home { height: auto; min-height: 0; padding: 84px var(--gutter) var(--space-12); display: flex; flex-direction: column; }
  .home-name, .home-sub, .home-intro { position: relative; top: auto; left: auto; transform: none; }
  .home-name { font-size: clamp(48px, 17vw, 96px); margin-top: var(--space-3); white-space: normal; line-height: .88; }
  .home-name span { display: block; }
  .home-sub { margin-top: var(--space-3); }
  .home-intro { width: auto; margin-top: var(--space-8); }
  .home-intro .lede { font-size: 16px; line-height: 26px; }
  .about-cards { position: relative; left: auto; bottom: auto; width: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-8); }
  .acard b { font-size: 12px; }
  .about-bio { position: relative; right: auto; top: auto; width: auto; margin-top: var(--space-6); }
  .scroll-hint { display: none; }
  .work { padding-top: 10vh; }
  .case { position: relative; height: auto; padding: 0 var(--gutter) var(--space-6); }
  .case-card { grid-template-columns: 1fr; height: auto; max-height: none; padding: 18px; gap: 22px; border-radius: 22px; box-shadow: 0 10px 40px rgba(10, 40, 70, .12), inset 0 1px 0 #fff; }
  .case-card .film-frame { order: -1; }
  .case-lede { display: block; }
  .case-metrics dt { font-size: 22px; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill.wide { grid-column: auto; }
  .steps ol { grid-template-columns: 1fr 1fr; row-gap: var(--space-8); }
  .steps-line { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: var(--space-6); }
  .foot-row { flex-direction: column; text-align: center; padding-bottom: 64px; }
  .cm-sheet { top: 8px; width: calc(100% - 12px); border-radius: 20px 20px 0 0; }
  .cm-grid { grid-template-columns: 1fr; gap: 14px; }
  .cm-how li { grid-template-columns: 32px minmax(0, 1fr); }
  .cm-how li span { grid-column: 2; }
  .cm-gallery { grid-template-columns: 1fr; }
  .cm-gallery figure.tall { grid-row: auto; }
  .cm-table thead { display: none; }
  .cm-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cm-table td { padding: 0; border: 0; }
  .cm-table td:nth-child(2) { text-align: right; }
  .cm-table td:nth-child(3) { grid-column: 1 / -1; margin-top: 6px; font-size: 13px; line-height: 19px; color: var(--ink-faint); }
}
@media (max-width: 520px) {
  .pill-nav a { padding: 8px 9px; font-size: 12.5px; }
  .case-metrics { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .case-metrics dt { font-size: 18px; }
  .case-metrics dd { font-size: 11px; line-height: 14px; }
  .steps ol { grid-template-columns: 1fr; }
  .hire span { display: none; }
  .hire { padding: 4px; }
  .about-cards { grid-template-columns: 1fr; }
  .home-intro .btn { flex: 1 1 140px; padding: 0 16px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .train > i, .film-name i, .sc-caret, .g-hud i { animation: none !important; }
  .manifesto { height: auto; }
  .manifesto .stage { position: relative; height: auto; min-height: 100vh; }
  .case { position: relative; height: auto; padding-block: 16px; }
  .case-card { max-height: none; }
}
