/* =========================================================
   BIHHEL V2  |  shared styles
   Light grey and ink, Switzer + IBM Plex Mono, one red dot.
   The site is dark only: every page sets html[data-theme="dark"].
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --bg: #f3f3f3;
  --bg-2: #e6e6e6;
  --card: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #474747;
  --muted: #858585;
  --line: rgba(11, 11, 11, 0.14);
  --dark: #0e0e0e;
  --dark-2: #191919;
  --on-dark: #f3f3f3;
  --on-dark-2: #979797;
  --line-dark: rgba(243, 243, 243, 0.15);
  --accent: #e2392b;
  --hero-type: #a5a5a5;

  --font: "Switzer", "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --pad: clamp(16px, 2.2vw, 32px);
  --gap: clamp(12px, 1.6vw, 24px);
  --maxw: 1720px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg-2: #171717;
  --card: #1c1c1c;
  --ink: #efefef;
  --ink-2: #b2b2b2;
  --muted: #7b7b7b;
  --line: rgba(239, 239, 239, 0.14);
  --dark: #000000;
  --dark-2: #121212;
  --on-dark: #efefef;
  --on-dark-2: #8a8a8a;
  --line-dark: rgba(239, 239, 239, 0.13);
  --hero-type: #3e3e3e;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.025em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}
img, video, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; text-align: inherit; }
p, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 9px; vertical-align: middle; transform: translateY(-1px);
}
.dot--pulse { animation: bh-pulse 2.4s var(--ease) infinite; }
@keyframes bh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 57, 43, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(226, 57, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 57, 43, 0); }
}

.display { font-weight: 500; font-size: clamp(52px, 9vw, 168px); line-height: 0.86; letter-spacing: -0.06em; }
/* big serif word that opens a section ("Hello", "Services"...) */
.opener {
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-style: italic; font-weight: 400; font-size: clamp(64px, 8.4vw, 156px);
  line-height: 0.84; letter-spacing: -0.025em; color: var(--ink);
}
/* red box behind a word, like selected text; it wipes in when the block reveals */
.hl {
  color: #fff; padding: 0 0.12em; margin: 0 -0.04em;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 var(--hl-y, 0) / 100% var(--hl-h, 100%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  font-style: inherit;
}
.hl__t { position: relative; z-index: 1; } /* text paints above the box on every line */
.js .hl { color: var(--ink); background-size: 0% var(--hl-h, 100%); transition: background-size 0.9s var(--ease-io) 0.25s, color 0.4s var(--ease) 0.55s; }
.js .hl.is-on { color: #fff; background-size: 100% var(--hl-h, 100%); } /* toggled by v2.js each time it enters the view */
.js .services .hl { color: var(--on-dark); }
.js .services .hl.is-on { color: #fff; }
.opener--sm { font-size: clamp(52px, 6vw, 112px); }
.services .opener, .ftr .opener { color: var(--on-dark); }
.h2 { font-weight: 500; font-size: clamp(30px, 3.6vw, 64px); line-height: 1; letter-spacing: -0.045em; }
.lead { font-size: clamp(20px, 1.9vw, 30px); line-height: 1.2; letter-spacing: -0.035em; }

/* ---------- rolling text (hover) ---------- */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.15; }
.roll > span { display: block; transition: transform 0.6s var(--ease); }
.roll > span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
a:hover .roll > span, button:hover .roll > span, .is-hover .roll > span { transform: translateY(-100%); }

/* ---------- pills ---------- */
.pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  background: var(--card); color: var(--ink);
  font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: uppercase; white-space: nowrap;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.pill:hover, .pill.is-active, .pill[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.pill--lg { height: 54px; padding: 0 28px; font-size: 13px; }
.pill--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.pill--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.pill__arrow { display: inline-block; transition: transform 0.45s var(--ease); }
.pill:hover .pill__arrow { transform: translate(2px, -2px); }
.pill__caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.45s var(--ease); }
.drop:hover .pill__caret, .drop:focus-within .pill__caret { transform: rotate(225deg) translateY(-1px); }

/* =========================================================
   HEADER
   ========================================================= */
/* Logo and menu are plain bold type (no capsules). A "difference" blend
   keeps them readable everywhere: black on light pages, white on dark ones. */
.logo {
  position: fixed; top: var(--pad); left: var(--pad); z-index: 62;
  height: 40px; display: inline-flex; align-items: center;
  color: #fff; mix-blend-mode: difference;
  font-weight: 700; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -0.06em;
  transition: transform 0.7s var(--ease);
}
.logo .roll { line-height: 1.1; }
.nav {
  position: fixed; top: var(--pad); right: var(--pad); z-index: 62;
  display: flex; align-items: center; gap: clamp(14px, 1.7vw, 30px);
  color: #fff; mix-blend-mode: difference;
  transition: transform 0.7s var(--ease);
}
.nav__a {
  position: relative; display: inline-flex; align-items: center; height: 40px;
  font-size: clamp(16px, 1.32vw, 21px); font-weight: 600; letter-spacing: -0.045em; color: inherit;
}
.nav__a .roll { line-height: 1.12; }
.nav__a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right center; transition: transform 0.6s var(--ease);
}
.nav__a.is-active::after, .nav__a[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left center; }
.hdr-hide .logo, .hdr-hide .nav { transform: translateY(calc(-100% - var(--pad) - 12px)); }
.menu-btn { display: none; }

/* language switcher (js/lang.js): a flag in the top right corner; the menu sits to its left */
.nav { right: calc(var(--pad) + 86px); }
.lang { position: fixed; top: var(--pad); right: var(--pad); z-index: 63; transition: transform 0.7s var(--ease); }
.hdr-hide .lang { transform: translateY(calc(-100% - var(--pad) - 12px)); }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s var(--ease);
}
.lang__btn:hover, .lang.is-open .lang__btn { background: rgba(255, 255, 255, 0.16); }
.lang__flag { display: inline-flex; flex: 0 0 auto; }
.lang__flag svg { width: 22px; height: 15px; border-radius: 3px; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; border-radius: 16px;
  background: var(--card); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s 0.25s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s; }
.lang__opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 10px; font-size: 14px; color: var(--ink); text-align: left; transition: background-color 0.2s var(--ease); }
.lang__opt:hover { background: var(--bg-2); }
.lang__opt.is-on { color: var(--accent); font-weight: 600; }

/* Insomnia hover panel (positioned by v2.js under the menu word) */
.drop__panel {
  position: fixed; top: 80px; right: var(--pad); z-index: 64; width: 300px;
  padding: 20px; border-radius: 20px;
  background: var(--card); color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top right;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s;
}
.drop__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.drop__panel.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s;
}
.drop__msg { font-size: 14px; line-height: 1.4; color: var(--ink-2); margin-bottom: 10px; }
.drop__msg strong { color: var(--ink); font-weight: 500; }
.drop__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 500;
  transition: color 0.3s var(--ease);
}
.drop__link:last-child { padding-bottom: 0; }
.drop__link:hover { color: var(--accent); }

/* mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 61;
  background: var(--dark); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--pad) + 84px) var(--pad) var(--pad);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.9s var(--ease-io), visibility 0s 0.9s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.9s var(--ease-io), visibility 0s; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: block; overflow: hidden; width: fit-content;
  font-size: clamp(44px, 12.5vw, 120px); font-weight: 500; line-height: 1; letter-spacing: -0.055em;
}
.menu__links a > span { display: block; transform: translateY(105%); transition: transform 0.9s var(--ease); }
.menu-open .menu__links a > span { transform: none; transition-delay: calc(0.25s + var(--i, 0) * 0.06s); }
.menu__links a:hover { color: var(--on-dark-2); }
.menu__links sup { font-family: var(--mono); font-size: 12px; letter-spacing: 0; vertical-align: top; margin-left: 6px; color: var(--on-dark-2); }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; opacity: 0; transition: opacity 0.6s var(--ease); }
.menu__foot a { font-size: 15px; }
.menu__foot .label { color: var(--on-dark-2); }
.menu-open .menu__foot { opacity: 1; transition-delay: 0.55s; }
.menu-open { overflow: hidden; }

/* =========================================================
   PAGE TRANSITION + LOADER
   ========================================================= */
.curtain {
  position: fixed; inset: 0; z-index: 105;
  background: var(--dark); color: var(--on-dark);
  display: grid; place-items: center;
  transform: translateY(101%); pointer-events: none;
}
.curtain__mark { font-weight: 600; font-size: 22px; letter-spacing: -0.055em; opacity: 0; transition: opacity 0.3s; }
.t-out .curtain { transform: none; transition: transform 0.7s var(--ease-io); pointer-events: auto; }
.t-out .curtain__mark { opacity: 1; transition-delay: 0.35s; }
.t-in .curtain { transform: none; }
.t-in .curtain__mark { opacity: 1; }
.t-in.t-go .curtain { transform: translateY(-101%); transition: transform 0.95s var(--ease-io) 0.05s; }
.t-in.t-go .curtain__mark { opacity: 0; transition: opacity 0.25s; }

.loader {
  position: fixed; inset: 0; z-index: 110;
  background: var(--bg); color: var(--ink);
  display: none; flex-direction: column; justify-content: space-between;
  padding: var(--pad);
}
.is-loading .loader { display: flex; }
.loader__top { display: flex; justify-content: space-between; }
.loader__word { display: flex; overflow: hidden; font-size: clamp(72px, 18vw, 330px); font-weight: 500; letter-spacing: -0.065em; line-height: 0.8; padding-top: 0.04em; }
.loader__word span { display: block; transform: translateY(105%); animation: bh-rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes bh-rise { to { transform: none; } }
.loader__bar { position: relative; height: 1px; background: var(--line); margin-top: 18px; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.25s linear; }
.loader.is-done { transform: translateY(-100%); transition: transform 1.05s var(--ease-io); }

/* =========================================================
   REVEALS
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(108%); transition: transform 1.15s var(--ease); transition-delay: var(--d, 0s); }
.js [data-split].is-in .wi { transform: none; }

/* =========================================================
   CURSOR / THEME SWITCH / MODALS
   ========================================================= */
.cursor { position: fixed; left: 0; top: 0; z-index: 99; width: 0; height: 0; pointer-events: none; }
.cursor__in {
  position: absolute; left: 0; top: 0;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0; text-transform: uppercase;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.45s var(--ease);
}
.cursor.is-big .cursor__in { transform: translate(-50%, -50%) scale(1); }


.cmodal, .vmodal {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center; padding: var(--pad);
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}
.cmodal.is-open, .vmodal.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease), visibility 0s; }
.cmodal { overflow-y: auto; }
.cmodal__bg { position: fixed; inset: 0; background: rgba(8, 8, 8, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cmodal__wrap {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 470px));
  justify-content: center; align-items: stretch; gap: 14px; width: min(100%, 954px);
}
.cmodal__panel {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); color: var(--ink);
  border-radius: 26px; padding: clamp(24px, 3vw, 40px);
  transform: translateY(28px) scale(0.97); transition: transform 0.7s var(--ease);
}
.cmodal__panel--form { transition-delay: 0.06s; }
.cmodal.is-open .cmodal__panel { transform: none; }
.cmodal__x {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--ink); font-size: 24px; line-height: 1;
  transition: transform 0.5s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.cmodal__x:hover { transform: rotate(90deg); background: var(--accent); color: #fff; }
.cmodal h3 { font-size: clamp(40px, 4.4vw, 60px); letter-spacing: -0.06em; line-height: 0.92; margin: 0 0 12px; }
.cmodal__sub { color: var(--ink-2); font-size: 15px; margin-bottom: 22px; max-width: 36ch; }
.cform2 { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cform2__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cform2 input, .cform2 textarea {
  width: 100%; font: inherit; font-size: 15px; letter-spacing: -0.01em; color: var(--ink);
  background: var(--bg); border: 1px solid transparent; border-radius: 14px; padding: 15px 16px; outline: none;
  transition: border-color 0.3s var(--ease);
}
.cform2 input:focus, .cform2 textarea:focus { border-color: var(--ink); }
.cform2 input::placeholder, .cform2 textarea::placeholder { color: var(--muted); }
.cform2 textarea { resize: vertical; min-height: 130px; flex: 1; line-height: 1.5; }
.cform2__send {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; transition: background-color 0.4s var(--ease);
}
.cform2__send:hover { background: var(--accent); color: #fff; }
.cform2__note { min-height: 1.3em; font-size: 14px; color: var(--ink-2); text-align: center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.copt {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 16px 0; border-top: 1px solid var(--line);
  font-size: 17px; font-weight: 500; transition: color 0.3s var(--ease), padding 0.45s var(--ease);
}
.copt:last-of-type { border-bottom: 1px solid var(--line); }
.copt:hover { color: var(--accent); padding-left: 6px; }
.copt.is-copied { color: var(--accent); }
.cmodal__mail { margin-top: auto; padding-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .cmodal { place-items: start center; padding-top: calc(var(--pad) + 64px); padding-bottom: var(--pad); }
  .cmodal__wrap { grid-template-columns: minmax(0, 520px); width: min(100%, 520px); }
  .cform2__row { grid-template-columns: 1fr; }
}

.vmodal { background: rgba(0, 0, 0, 0.94); z-index: 96; }
.vmodal__box {
  position: relative; width: min(94vw, calc(84vh * 16 / 9)); aspect-ratio: 16 / 9;
  background: #000; border-radius: 14px; overflow: hidden;
  transform: scale(0.94); transition: transform 0.8s var(--ease);
}
.vmodal.is-open .vmodal__box { transform: none; }
.vmodal__box iframe { width: 100%; height: 100%; border: 0; }
.vmodal__close { position: absolute; top: var(--pad); right: var(--pad); }

/* cookie bar (from js/consent.js) restyled for V2 */
html body .ckbar { left: auto; right: calc(var(--pad) + 72px); bottom: var(--pad); max-width: 560px; background: var(--card); color: var(--ink); border: 0; border-radius: 22px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18); font-family: var(--font); backdrop-filter: none; -webkit-backdrop-filter: none; }
html body .ckbar__in { padding: 20px 22px; gap: 16px; }
html body .ckbar__title { color: var(--ink); font-weight: 500; font-size: 16px; letter-spacing: -0.03em; }
html body .ckbar__txt { color: var(--ink-2); font-size: 14px; }
html body .ckbar__txt a { color: var(--ink); }
html body .ckbar__btn { padding: 12px 22px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0; color: var(--ink); border-color: var(--line); }
html body .ckbar__accept { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (max-width: 640px) { html body .ckbar { left: 14px; right: 14px; bottom: 64px; } }

/* =========================================================
   HOME  |  HERO
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
/* the name across the whole width, bold red, centred behind the window (font size set by data-fit) */
.hero__namewrap {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center;
  padding: 0 var(--pad); pointer-events: none; user-select: none;
}
.hero__name {
  width: 100%; text-align: center; font-weight: 700; letter-spacing: -0.075em; line-height: 0.74;
  white-space: nowrap; font-size: 27vw; color: var(--accent); transform: translateY(0.04em);
}
.hero__name span { display: inline-block; }

.hero__card {
  cursor: pointer; outline-offset: 6px;
  position: absolute; left: 50%; top: 50%; z-index: 2;
  height: 78%; aspect-ratio: 3 / 5; /* tall window in front of the name */
  transform: translate(-50%, -50%);
  perspective: 2200px; display: block;
}
.hero__tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateZ(-7deg); }
/* hover fan: covers inside the same 3D stack as the main card, spread on a diagonal
   like layers; at rest they hide right behind it (no fading, they just slide back) */
/* Each fan card has two layers.
   Outer (.fan__c): only the depth. All cards move in depth together, with no stagger, so their order
   from front to back never changes during the motion (when it did, overlapping cards swapped places
   mid-expansion and it looked like pictures flickering).
   Inner (.fan__in): the picture and the sideways slide, which keeps the small stagger. */
.fan__c {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transform: translate3d(0, 0, var(--z0, -5px));
  opacity: 0; visibility: hidden; /* once folded back they disappear, so the turning card never cuts through them */
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s linear 0.68s, visibility 0s linear 0.83s;
}
.fan__in {
  position: absolute; inset: 0; overflow: hidden; border-radius: 24px; background: var(--bg-2);
  transform: translate(0, 0);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--dl, 0s), box-shadow 0.6s var(--ease) var(--dl, 0s);
}
.fan__in img { width: 100%; height: 100%; object-fit: cover; }
.hero__card.is-fan .fan__c {
  pointer-events: auto; opacity: 1; visibility: visible;
  transform: translate3d(0, 0, var(--z));
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0s, visibility 0s;
}
.hero__card.is-fan .fan__in {
  transform: translate(var(--x), var(--y));
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.6);
}
/* slow turn: eases in, sweeps, then settles gently */
.flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 2.1s cubic-bezier(0.7, 0, 0.12, 1); }
.flip__face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 24px;
  background: var(--bg-2);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.55);
}
.flip__face img { width: 100%; height: 100%; object-fit: cover; }
.flip__face--back { transform: rotateY(180deg); }
.hero__cap {
  position: absolute; left: 0; right: 0; top: calc(100% + 16px);
  display: flex; justify-content: space-between; gap: 12px;
  transform: rotateZ(-7deg); transform-origin: top left;
}
.hero__cap span { transition: opacity 0.5s var(--ease); background: var(--bg); padding: 2px 4px; border-radius: 3px; }
.hero__cap.is-swap span { opacity: 0; }

.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 58px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--pad); background: var(--bg); border-top: 1px solid var(--line);
}
.hero__meta-l, .hero__meta-r { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.hero__meta-r { justify-content: flex-end; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i { position: relative; display: block; width: 34px; height: 1px; background: var(--line); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: bh-line 2.2s var(--ease-io) infinite; }
@keyframes bh-line { 0% { transform: translateX(-101%); } 55% { transform: translateX(0); } 100% { transform: translateX(101%); } }

/* entrance */
.js .hero__namewrap { opacity: 0; transform: translateY(4%); transition: opacity 1.4s var(--ease), transform 1.8s var(--ease); }
.js .hero__card { opacity: 0; transform: translate(-50%, -40%) scale(0.85); transition: opacity 1.1s var(--ease) 0.25s, transform 1.4s var(--ease) 0.25s; }
.js .hero__meta { opacity: 0; transition: opacity 1s var(--ease) 0.6s; }
.js .hero.is-ready .hero__namewrap { opacity: 1; transform: none; }
.js .hero.is-ready .hero__card { opacity: 1; transform: translate(-50%, -50%); }
.js .hero.is-ready .hero__meta { opacity: 1; }

/* =========================================================
   HOME  |  REEL
   ========================================================= */
.reel { padding: clamp(36px, 5vw, 80px) 0 clamp(70px, 9vw, 150px); }
.reel__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.reel__title { font-size: clamp(28px, 3vw, 48px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.reel__stage { padding: 0 var(--pad); }
.reel__frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: clamp(10px, 1.4vw, 22px); overflow: hidden; background: #000; cursor: pointer;
  transform: scale(var(--reel-s, 0.88)); transform-origin: 50% 0;
  will-change: transform;
}
.reel__poster, .reel__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.reel__bg { opacity: 0; transition: opacity 1.2s var(--ease); }
.reel__bg.is-on { opacity: 1; }
.reel__bg iframe { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); border: 0; pointer-events: none; }
.reel__play {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 26px 0 22px; border-radius: 999px;
  background: var(--card); color: var(--ink);
  font-size: 13px; font-weight: 500; text-transform: uppercase; white-space: nowrap;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) translate(-50%, -50%);
  pointer-events: none;
}
.reel__tri { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35)); pointer-events: none; }
.reel__corner { position: absolute; left: 22px; bottom: 18px; z-index: 2; color: #fff; }
.reel__corner .label { color: rgba(255, 255, 255, 0.8); }

/* =========================================================
   HOME  |  INTRO STATEMENT
   ========================================================= */
.intro { padding: clamp(30px, 5vw, 80px) 0 clamp(80px, 11vw, 190px); }
.intro__grid { display: grid; grid-template-columns: minmax(150px, 1fr) 3fr; gap: var(--gap); align-items: start; }
.statement { font-size: clamp(30px, 3.95vw, 70px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 500; }
.statement .fw { opacity: 0.16; transition: opacity 0.35s linear; }
.statement .fw.on { opacity: 1; }
.intro__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(40px, 5vw, 84px); grid-column: 2; max-width: 980px;
}
.intro__cols p { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; color: var(--ink-2); }
.intro__cols b { color: var(--ink); font-weight: 500; }

/* =========================================================
   HOME  |  WORKS
   ========================================================= */
.works { padding: clamp(20px, 3vw, 40px) 0 clamp(120px, 15vw, 250px); }
.works__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(26px, 3vw, 44px); }
.works__head .label { margin-bottom: 0.6em; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(40px, 5vw, 84px); }
.filter { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.filter sup { font-family: var(--mono); font-size: 10px; font-weight: 400; margin-left: 2px; opacity: 0.7; transform: translateY(-3px); }
.filter.is-active { background: var(--ink); color: var(--bg); box-shadow: none; }
.works__cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); align-items: start; transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
.works__cols.is-switching { opacity: 0; transform: translateY(14px); }
.works__col { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 130px); min-width: 0; }
.works__col--b { padding-top: clamp(90px, 14vw, 260px); }

.work { display: block; position: relative; }
.work__media { position: relative; overflow: hidden; border-radius: 6px; background: var(--bg-2); aspect-ratio: 808 / 632; }
.work__media > img, .work__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work__img { transform: scale(1.001); transition: transform 1.4s var(--ease), opacity 0.6s var(--ease); }
.work:hover .work__img { transform: scale(1.045); }
.work__gif { opacity: 0; transition: opacity 0.5s var(--ease); }
.work.is-gif .work__gif { opacity: 1; }
.js .work .work__media { clip-path: inset(14% 0 0 0 round 6px); transition: clip-path 1.4s var(--ease-io); }
.js .work.is-in .work__media { clip-path: inset(0 0 0 0 round 6px); }
.work__phone { position: absolute; inset: 0; display: grid; place-items: center; }
.work__phone-in { height: 84%; aspect-ratio: 1072 / 1928; border-radius: 18px; overflow: hidden; background: #040404; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.5); transition: transform 1.2s var(--ease); }
.work:hover .work__phone-in { transform: translateY(-2%) rotate(-2deg) scale(1.03); }
.work__phone-in video { width: 100%; height: 100%; object-fit: cover; }
.work__info { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 15px; }
.work__title { font-size: clamp(17px, 1.35vw, 23px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.work__title .roll { line-height: 1.12; }
.work__year { grid-column: 2; grid-row: 1; }
.work__cats { grid-column: 1 / -1; }
.works__empty { padding: 40px 0; }

/* =========================================================
   HOME  |  SERVICES (dark)
   ========================================================= */
.services {
  background: var(--dark); color: var(--on-dark);
  padding: clamp(80px, 10vw, 180px) 0 clamp(80px, 10vw, 170px);
  border-radius: clamp(18px, 2.4vw, 36px);
  margin: 0 clamp(6px, 0.8vw, 12px);
}
.services .label { color: var(--on-dark-2); }
.services__head { display: grid; grid-template-columns: minmax(150px, 1fr) 3fr; gap: var(--gap); }
.services__head .display, .services__lead { grid-column: 2; }
.services__lead { max-width: 640px; margin-top: 30px; color: var(--on-dark-2); font-size: clamp(17px, 1.3vw, 21px); line-height: 1.5; }
.services__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 18px; overflow: hidden;
  margin-top: clamp(56px, 7vw, 110px);
}
.svc {
  position: relative; background: var(--dark);
  padding: clamp(22px, 2.3vw, 36px); min-height: clamp(230px, 21vw, 330px);
  display: flex; flex-direction: column; transition: background-color 0.5s var(--ease);
}
.svc:hover { background: var(--dark-2); }
.js .svc[data-reveal] { transform: none; }
.svc__t { font-size: clamp(25px, 2.3vw, 40px); letter-spacing: -0.05em; line-height: 1; margin-top: auto; }
.svc__d { color: var(--on-dark-2); font-size: 15px; line-height: 1.5; margin-top: 14px; max-width: 34ch; }
.svc__ico {
  position: absolute; top: clamp(20px, 2.2vw, 32px); right: clamp(20px, 2.2vw, 32px);
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: grid; place-items: center; font-size: 15px;
  transition: transform 0.7s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.svc:hover .svc__ico { transform: rotate(45deg); background: var(--on-dark); color: var(--dark); }

/* =========================================================
   HOME  |  ABOUT TEASER
   ========================================================= */
.teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap); align-items: end; padding-top: clamp(100px, 13vw, 220px); padding-bottom: clamp(100px, 13vw, 220px); }
.teaser__year { font-size: clamp(96px, 20vw, 360px); font-weight: 500; letter-spacing: -0.075em; line-height: 0.78; }
.teaser__year sup { font-family: var(--mono); font-size: 13px; letter-spacing: 0; font-weight: 400; vertical-align: top; color: var(--muted); margin-left: 8px; }
.teaser__text .h2 { margin: 18px 0 30px; max-width: 17ch; }

/* =========================================================
   FOOTER (dark)
   ========================================================= */
.ftr { background: var(--dark); color: var(--on-dark); padding-top: clamp(80px, 9vw, 150px); overflow: hidden; position: relative; }
.ftr .label { color: var(--on-dark-2); }
.ftr__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.ftr__talk { display: inline-flex; align-items: center; gap: 0.16em; font-size: clamp(60px, 11vw, 200px); font-weight: 500; letter-spacing: -0.065em; line-height: 0.86; }
.ftr__talk .roll { line-height: 0.95; padding-bottom: 0.04em; }
.ftr__arrow {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 0.6em; height: 0.6em; border-radius: 50%;
  background: var(--accent); color: #fff;
  transition: transform 0.8s var(--ease);
}
.ftr__arrow svg { width: 46%; height: 46%; }
.ftr__talk:hover .ftr__arrow { transform: rotate(-45deg) scale(1.06); }
.ftr__avail { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; letter-spacing: -0.02em; color: var(--on-dark-2); transition: color 0.3s var(--ease); }
.ftr__avail:hover { color: var(--on-dark); }
.ftr__mail { font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.03em; border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; transition: border-color 0.4s var(--ease); }
.ftr__mail:hover { border-color: var(--on-dark); }
.ftr__grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: var(--gap); margin-top: clamp(64px, 8vw, 130px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.ftr__links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 16px; }
.ftr__links a, .ftr__links button { font-size: 17px; letter-spacing: -0.03em; transition: color 0.3s var(--ease); }
.ftr__links a:hover, .ftr__links button:hover { color: var(--on-dark-2); }
.news { display: flex; gap: 6px; margin-top: 16px; }
.news input {
  flex: 1; min-width: 0; height: 50px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark);
  font: inherit; font-size: 15px; outline: none; transition: border-color 0.3s var(--ease);
}
.news input:focus { border-color: var(--on-dark); }
.news input::placeholder { color: var(--on-dark-2); }
.news button { height: 50px; padding: 0 22px; border-radius: 999px; background: var(--on-dark); color: var(--dark); font-size: 12px; font-weight: 500; text-transform: uppercase; transition: transform 0.4s var(--ease); }
.news button:hover { transform: scale(1.04); }
.news__note { margin-top: 10px; font-size: 13px; color: var(--on-dark-2); min-height: 1.3em; }
.ftr__p { color: var(--on-dark-2); font-size: 15px; line-height: 1.5; margin-top: 16px; max-width: 34ch; }
.ftr__legal { position: relative; margin-top: clamp(50px, 7vw, 110px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 22px var(--pad) 26px; border-top: 1px solid var(--line-dark); background: var(--dark); }
.ftr__legal button.label { color: var(--on-dark-2); }
.ftr__legal a, .ftr__legal button { transition: color 0.3s var(--ease); }
.ftr__legal a:hover, .ftr__legal button:hover { color: var(--on-dark); }
.ftr__legal .label { color: var(--on-dark-2); }

/* =========================================================
   PROJECT PAGE
   ========================================================= */
.proj__head { padding-top: calc(var(--pad) + clamp(100px, 12vw, 170px)); padding-bottom: clamp(40px, 5vw, 80px); }
.proj__eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(18px, 2vw, 30px); }
.proj__back { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); transition: color 0.3s var(--ease); }
.proj__back:hover { color: var(--ink); }
.proj__title { font-size: clamp(50px, 9vw, 168px); font-weight: 500; letter-spacing: -0.065em; line-height: 0.86; max-width: 15ch; }
.proj__sub { margin-top: clamp(14px, 1.6vw, 24px); color: var(--muted); font-size: clamp(20px, 2vw, 32px); letter-spacing: -0.04em; line-height: 1.1; }
.proj__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(40px, 5vw, 80px); padding-top: 18px; border-top: 1px solid var(--line); }
.proj__meta dl { margin: 0; }
.proj__meta dd { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.proj__body { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 0.9vw, 14px); } /* a little air between images */
.m-img { width: 100%; max-width: 1400px; margin: 0 auto; background: var(--bg-2); }
.m-img img { width: 100%; height: auto; }
.m-grid { width: 100%; max-width: 1400px; display: flex; flex-direction: column; gap: clamp(8px, 0.9vw, 14px); }
.m-row { display: flex; gap: clamp(8px, 0.9vw, 14px); }
.m-row figure { flex: var(--ar) 1 0; aspect-ratio: var(--ar); overflow: hidden; background: var(--bg-2); min-width: 0; }
.m-row img { width: 100%; height: 100%; object-fit: cover; }
.m-text { width: 100%; max-width: 980px; padding: clamp(48px, 7vw, 120px) var(--pad); font-size: clamp(18px, 1.55vw, 25px); line-height: 1.45; letter-spacing: -0.028em; color: var(--ink-2); }
.m-text--center { text-align: center; }
.m-text--right { text-align: right; }
.m-text h3 { font-size: clamp(36px, 5vw, 84px); letter-spacing: -0.06em; line-height: 0.92; color: var(--ink); margin-bottom: 0.45em; }
.m-text p + p { margin-top: 0.9em; }
.m-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.m-embed { position: relative; width: 100%; max-width: 1400px; background: #000; }
.m-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 1.2s var(--ease), opacity 0.6s; }
.yt:hover img { transform: scale(1.03); opacity: 1; }
.yt__btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px 0 20px; border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: 13px; font-weight: 500; text-transform: uppercase;
}
.m-cap { width: 100%; max-width: 1400px; padding: 12px var(--pad) 0; }

.proj__credits { display: grid; grid-template-columns: minmax(150px, 1fr) 3fr; gap: var(--gap); padding-top: clamp(70px, 9vw, 150px); padding-bottom: clamp(50px, 6vw, 90px); }
.credits__list { font-size: clamp(19px, 1.7vw, 28px); line-height: 1.35; letter-spacing: -0.035em; max-width: 46ch; }
.credits__list .muted { color: var(--muted); }
.credits__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }

.next { display: block; padding: clamp(70px, 9vw, 150px) var(--pad) clamp(90px, 11vw, 180px); text-align: center; border-top: 1px solid var(--line); }
.next__title { display: block; font-size: clamp(58px, 11vw, 210px); font-weight: 500; letter-spacing: -0.068em; line-height: 0.86; margin-top: 18px; }
.next__img { width: clamp(220px, 24vw, 400px); aspect-ratio: 808 / 632; margin: 34px auto 0; border-radius: 8px; overflow: hidden; background: var(--bg-2); transform: rotate(-5deg); transition: transform 1s var(--spring); }
.next__img img, .next__img video { width: 100%; height: 100%; object-fit: cover; }
.next:hover .next__img { transform: rotate(0deg) scale(1.05); }

/* local interactive project (Day & Night) */
.dn { width: 100%; max-width: var(--maxw); padding: 0 var(--pad); }
.dn__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 90px); align-items: center; padding: clamp(20px, 3vw, 50px) 0 clamp(60px, 8vw, 140px); }
.dn__text .lead { color: var(--ink); }
.dn__text p + p { margin-top: 1em; }
.dn__text p:not(.lead) { color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 46ch; }
.dn__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.dn__stage { display: grid; place-items: center; background: var(--bg-2); border-radius: clamp(16px, 2vw, 30px); padding: clamp(28px, 4vw, 70px) 0; }
.phone {
  position: relative; width: clamp(240px, 23vw, 360px); aspect-ratio: 1072 / 1928;
  border-radius: 34px; overflow: hidden; background: #040404;
  box-shadow: 0 0 0 10px #111, 0 50px 100px -40px rgba(0, 0, 0, 0.6);
}
.phone video, .phone iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.phone__tap { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.12); transition: background-color 0.4s var(--ease); }
.phone__tap:hover { background: rgba(0, 0, 0, 0.3); }
.phone__tap .pill { pointer-events: none; }
/* Day & Night: separated parts, day row on a warm tile, night row on a dark one */
.dn-parts { width: 100%; max-width: 1400px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 0.9vw, 14px); }
.dn-part { position: relative; aspect-ratio: 1; margin: 0; overflow: hidden; }
.dn-part--day { background: #e9e4dc; }
.dn-part--night { background: #2c3142; }
.dn-part img { position: absolute; left: 12%; top: 12%; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.28)); }
/* balloon that follows the mouse over the game on a computer */
.dn-tip {
  position: fixed; left: 0; top: 0; z-index: 90; max-width: 290px; padding: 14px 16px; border-radius: 16px;
  background: var(--accent); color: #fff; font-size: 13px; line-height: 1.45; letter-spacing: -0.01em;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55); pointer-events: none;
  opacity: 0; transition: opacity 0.2s var(--ease);
}
.dn-tip.is-on { opacity: 1; }
.dn-tip b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.ahero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.ahero__word {
  position: absolute; left: 0; right: 0; top: calc(var(--pad) + 96px); z-index: 1;
  text-align: center; font-weight: 600; letter-spacing: -0.075em; line-height: 0.76;
  white-space: nowrap; font-size: 27vw; user-select: none; color: var(--accent);
}
.ahero__word span { display: inline-block; }
/* one rectangular window; images scroll up inside it */
.ahero__slider {
  position: absolute; left: 0; right: 0; margin: 0 auto; top: 33%; z-index: 2;
  height: 62%; aspect-ratio: 3 / 4; /* vertical window */
  overflow: hidden; border-radius: 10px; background: var(--bg-2); isolation: isolate;
}
.ahero__slide {
  position: absolute; inset: 0; overflow: hidden;
  transform: translate3d(0, 100%, 0);
  transition: transform 1.1s var(--ease-io);
}
.ahero__slide img { width: 100%; height: 100%; object-fit: cover; }
.ahero__slide.is-cur { transform: none; z-index: 2; }
.ahero__slide.is-out { transform: none; z-index: 1; } /* the one showing stays put while the next covers it */
.ahero__slide.no-anim { transition: none; }
.js .ahero__slider { opacity: 0; transform: translateY(60px); transition: opacity 1.1s var(--ease) 0.2s, transform 1.4s var(--ease) 0.2s; }
.js .ahero.is-ready .ahero__slider { opacity: 1; transform: none; }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(30px, 6vw, 110px); padding-top: clamp(90px, 11vw, 190px); padding-bottom: clamp(90px, 11vw, 190px); align-items: start; }
.story__media { position: sticky; top: calc(var(--pad) + 70px); }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(160deg, #d9d9d9, #bdbdbd 55%, #a9a9a9);
  display: flex; flex-direction: column; justify-content: space-between; padding: 20px;
}
html[data-theme="dark"] .portrait { background: radial-gradient(120% 80% at 30% 20%, rgba(255, 255, 255, 0.08), transparent 60%), linear-gradient(160deg, #262626, #1a1a1a 55%, #121212); }
.portrait__mono { font-size: clamp(80px, 12vw, 200px); font-weight: 600; letter-spacing: -0.08em; line-height: 0.8; color: rgba(11, 11, 11, 0.12); align-self: flex-end; }
html[data-theme="dark"] .portrait__mono { color: rgba(255, 255, 255, 0.08); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.story__text .display { font-size: clamp(46px, 6.4vw, 118px); margin-bottom: clamp(30px, 3.5vw, 56px); }
.story__text p { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.story__text p + p { margin-top: 1.1em; }
.story__text p b { color: var(--ink); font-weight: 500; }

.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding-bottom: clamp(90px, 11vw, 190px); }
.num { border-top: 1px solid var(--line); padding-top: 18px; }
.num__n { display: block; font-size: clamp(56px, 7.5vw, 140px); font-weight: 500; letter-spacing: -0.065em; line-height: 0.85; margin-top: 18px; font-variant-numeric: tabular-nums; }

.clients { display: grid; grid-template-columns: minmax(150px, 1fr) 1.5fr 1.5fr; gap: var(--gap); padding-bottom: clamp(90px, 11vw, 190px); }
.clients__list li { border-top: 1px solid var(--line); }
.clients__list li:last-child { border-bottom: 1px solid var(--line); }
.clients__list li > span {
  display: block; padding: 14px 0; font-size: clamp(26px, 2.8vw, 48px); letter-spacing: -0.05em; line-height: 1;
  transition: transform 0.6s var(--ease), color 0.4s var(--ease);
}
.clients__list li:hover > span { transform: translateX(14px); color: var(--accent); }
/* alternate studios get a red box that follows the name */
.clients__list .hl { padding: 0 0.16em; margin: 0 -0.16em; }

.tools { display: grid; grid-template-columns: minmax(150px, 1fr) 3fr; gap: var(--gap); padding-bottom: clamp(90px, 11vw, 190px); }
.tools__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tools__list .pill { height: 44px; padding: 0 20px; font-size: 13px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); text-transform: none; font-weight: 400; letter-spacing: -0.02em; }
.tools__list .pill:hover { background: var(--ink); color: var(--bg); box-shadow: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .services__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 50px; }
}

@media (max-width: 900px) {
  .nav > :not(.menu-btn) { display: none; }
  .menu-btn { display: inline-flex; }
  html body .ckbar { right: 14px; }
  .intro__grid, .services__head, .proj__credits, .tools { grid-template-columns: 1fr; }
  .intro__cols, .services__head .display, .services__lead { grid-column: auto; }
  .clients { grid-template-columns: 1fr 1fr; }
  .clients > .label { grid-column: 1 / -1; }
  .story { grid-template-columns: 1fr; }
  .story__media { position: relative; top: 0; max-width: 420px; }
  .teaser { grid-template-columns: 1fr; }
  .dn__grid { grid-template-columns: 1fr; }
  .dn-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .works__cols { grid-template-columns: 1fr; }
  .works__col--b { display: none; }
  .intro__cols { grid-template-columns: 1fr; }
  .services__list { grid-template-columns: 1fr; }
  .svc { min-height: 200px; }
  .hero__card { height: auto; width: 64vw; max-height: 80%; }
  .reel__frame { border-radius: 10px; }
  .reel__play { height: 52px; padding: 0 20px 0 16px; font-size: 12px; }
  .clients { grid-template-columns: 1fr; }
  .ahero { height: 76vh; height: 76svh; min-height: 520px; }
  .ahero__word { top: 34%; }
  .ahero__slider { height: auto; width: 58vw; top: calc(34% + 12vw); }
  .proj__meta { grid-template-columns: 1fr 1fr; }
}

/* only when RESPECT_REDUCED_MOTION is true in js/v2.js (off: the site animates on every computer) */
html.reduce-motion, html.reduce-motion body {
  scroll-behavior: auto !important;
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
