/* ==========================================================================
   LBL STUDIOS — master stylesheet, brand system v2.0 (premium editorial release)
   Single consolidated system. Self-contained: local Inter fonts, no CDN.
   ========================================================================== */

/* --- 1. Fonts ------------------------------------------------------------ */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* --- 2. Tokens ----------------------------------------------------------- */
:root {
  --scarlet:    #00E5FF;   /* cyan — primary accent (legacy token name) */
  --lift:       #7CEEFF;
  --blood:      #0066FF;
  --crimson:    #6B00FF;

  --black:      #050507;
  --ink:        #0D111B;
  --ink2:       #121827;
  --surface-2:  #080A0F;
  --white:      #FFFFFF;
  --grey:       #A7ADB6;
  --line:       #242B3A;
  --iron:       var(--line);   /* legacy alias — key-art border safety */

  /* Division accents. */
  --film:       #E11D48;
  --film-hi:    #FF4F77;   /* AA lift for small Screen-red text on dark */
  --anim:       #E11D48;
  --soft:       #FF5A1F;
  --softw:      #00A3FF;   /* LBL SOFTWARE — cyan/blue of the master gradient */
  --brand:      #FFD119;
  --gradient-master: linear-gradient(45deg, #6B00FF 0%, #0066FF 55%, #00E5FF 100%);

  --f-display: "Inter Tight", "Inter", "Segoe UI Variable Display", "Segoe UI", Helvetica, Arial, sans-serif;
  --f-body:    "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --f-mono:    ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --max:       1320px;
  --wide:      1640px;
  --read:      68ch;
  --gutter:    clamp(20px, 5vw, 56px);

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px; --s11: 192px;

  /* One radius scale: small chrome / media cards / large panels. */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;

  --t-fast: 120ms; --t-base: 220ms; --t-slow: 420ms; --t-reveal: 700ms;
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:   cubic-bezier(0.25, 0, 0, 1);

  --nav-h: 80px;
  --accent: var(--scarlet);
}

/* --- 3. Reset & base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; line-height: 1.05; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); }
a:hover { color: var(--lift); border-bottom-color: currentColor; }
:focus-visible { outline: 2px solid var(--lift); outline-offset: 3px; border-radius: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s8) 0; }
::selection { background: var(--scarlet); color: var(--black); }
summary { cursor: pointer; }

/* --- 4. Filmic texture ---------------------------------------------------- */
/* The whole site sits under one very fine noise field. Static (no animation),
   fixed to the viewport, below the lightbox, inert to input. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 900;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* --- 5. Utility ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: var(--wide); }
.section { padding-block: clamp(72px, 9vw, 144px); position: relative; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* A skip link that stays invisible when focused is no skip link at all. */
a.sr-only:focus {
  position: fixed; top: 12px; left: 12px; z-index: 1100;
  width: auto; height: auto; margin: 0; padding: 12px 20px;
  clip: auto; overflow: visible;
  background: var(--scarlet); color: var(--black);
  font-family: var(--f-display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; border-radius: var(--r-sm);
}
.center { text-align: center; }
.stack > * + * { margin-top: var(--s5); }

.eyebrow {
  font-family: var(--f-display);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--grey);
  margin: 0 0 var(--s4); display: flex; align-items: center; gap: var(--s3);
  font-variant-numeric: tabular-nums;
}
.eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--accent); flex: none; }
.eyebrow--plain::before { display: none; }
/* .eyebrow is applied to <h2> for the document outline; keep it a kicker */
h2.eyebrow { font-size: 0.6875rem; font-weight: 700; line-height: 1.4; }
.kicker {
  color: var(--accent);
  font-family: var(--f-display);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
  line-height: 1.35; text-transform: uppercase;
}

.h-hero {
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 8vw, 7rem); font-weight: 700;
  letter-spacing: -0.055em; text-transform: uppercase; line-height: 0.88;
}
.h1 { font-family: var(--f-display); font-size: clamp(2.75rem, 5.5vw, 5.25rem); font-weight: 700; letter-spacing: -0.045em; line-height: 0.92; text-transform: uppercase; }
.h2 { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; }

.lede { font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.45; max-width: 60ch; }
.logline { font-family: var(--f-body); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.45; max-width: 52ch; }
.muted { color: var(--grey); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.accent { color: var(--accent); }
.amber { color: var(--scarlet); }

/* Headline mask-rise. The initial state and the end state MUST stay in one
   block with the end state last — splitting them strands hero headlines at
   translateY(105%) (invisible). */
.rise { display: block; overflow: hidden; }
.rise > span { display: block; transform: none; transition: transform 900ms var(--ease-out-expo); }
.js .rise > span { transform: translateY(105%); }
.js .is-in .rise > span,
.js .hero--lit .rise > span { transform: none; }
.rise:nth-child(2) > span { transition-delay: 80ms; }
.rise:nth-child(3) > span { transition-delay: 160ms; }
.rise:nth-child(4) > span { transition-delay: 240ms; }

/* --- 6. Buttons, tags, advisory ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: var(--s3);
  min-height: 48px;
  font-family: var(--f-display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 14px 24px; border: 1px solid rgba(167, 173, 182, 0.28); border-radius: var(--r-sm);
  color: var(--white); background: rgba(13, 17, 27, 0.72); cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--t-base) var(--ease-smooth), border-color var(--t-base),
              color var(--t-base), transform var(--t-fast);
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--black); }
.btn--solid:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--sm { padding: 9px 16px; min-height: 0; font-size: 0.6875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-display); font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid rgba(167, 173, 182, 0.22); border-radius: var(--r-sm);
  color: var(--white); background: transparent;
}
.tag::before { content: ""; width: 5px; height: 5px; background: currentColor; }
.tag--film, .tag--anim { color: var(--film-hi); }   /* AA lift, not --film */
.tag--film::before, .tag--anim::before { background: var(--film); }
.tag--soft { color: var(--soft); }
.tag--softw { color: var(--softw); }
.tag--brand { color: var(--brand); }
.tag--plain::before { display: none; }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

.advisory {
  display: flex; gap: var(--s3); align-items: flex-start;
  border: 1px solid var(--line); border-left: 3px solid var(--blood);
  border-radius: var(--r-sm);
  background: rgba(10, 10, 10, 0.86); padding: var(--s4) var(--s5);
  font-size: 0.875rem; color: var(--grey); backdrop-filter: blur(4px);
}
.advisory strong { color: var(--white); }

/* --- 7. Nav -------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(5, 5, 7, 0.24); border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
}
.nav.is-stuck {
  background: rgba(5, 5, 7, 0.9); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: rgba(167, 173, 182, 0.18);
}
@supports not (backdrop-filter: blur(1px)) { .nav.is-stuck { background: var(--black); } }
.nav__in { display: flex; align-items: center; gap: var(--s6); min-height: var(--nav-h); }
.nav__logo { display: flex; align-items: center; gap: 12px; border: 0; flex: none; }
.nav__logo:hover { border: 0; }
.nav__logo img { width: 154px; height: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); margin-left: auto; }
.nav__links a {
  font-family: var(--f-display); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: #C4CAD3; border: 0;
  position: relative; padding-block: 4px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right var(--t-base) var(--ease-smooth);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { right: 0; }
.nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a[aria-current="page"]::after { right: 0; }
.nav__toggle {
  display: none; margin-left: auto; background: rgba(10, 10, 10, 0.6); border: 1px solid var(--line);
  color: var(--white); padding: 8px 12px; border-radius: var(--r-sm); cursor: pointer;
  min-width: 44px; min-height: 44px;
  font-family: var(--f-display); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase;
}
@media (max-width: 900px) {
  body.menu-open { overflow: hidden; }
  .nav { background: rgba(5, 5, 7, 0.9); backdrop-filter: blur(14px); border-bottom-color: rgba(167, 173, 182, 0.18); }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--ink); border-bottom: 1px solid var(--line);
    padding: var(--s4) var(--gutter) var(--s6); margin: 0;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links[hidden] { display: none; }
  .nav__links a { padding: 14px 0; font-size: 0.8125rem; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
}

/* scroll progress */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 600;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--gradient-master);
}

/* --- 8. Hero ------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(96vh, 980px);
  display: flex; align-items: flex-end; overflow: hidden;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: var(--nav-h);
  background: var(--black);
}
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 34%;
  filter: brightness(0.7) saturate(0.88) contrast(1.03);
  animation: heroDrift 40s var(--ease-out-expo) both;
  will-change: transform;
}
/* Multi-stage settle: slow zoom-out with a gentle pan, ending at rest. */
@keyframes heroDrift {
  0%   { transform: scale(1.12) translate3d(0, 0, 0); }
  35%  { transform: scale(1.065) translate3d(-1.2%, -0.9%, 0); }
  70%  { transform: scale(1.02) translate3d(0.8%, -1.3%, 0); }
  100% { transform: scale(1) translate3d(0, 0, 0); }
}
/* Radial vignette for tonal depth. */
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(5, 5, 7, 0.42) 100%);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, #050507 0%, rgba(5, 5, 7, 0.7) 20%, rgba(5, 5, 7, 0.1) 58%, rgba(5, 5, 7, 0.46) 100%),
    linear-gradient(to right, rgba(5, 5, 7, 0.95) 0%, rgba(5, 5, 7, 0.72) 38%, rgba(5, 5, 7, 0.08) 76%);
}
/* Slow violet→cyan wash drifting across the scrim; light, never a border. */
.hero__scrim::before {
  content: ""; position: absolute; inset: -20%; pointer-events: none;
  background: linear-gradient(115deg, rgba(107, 0, 255, 0.55), rgba(0, 102, 255, 0.35) 50%, rgba(0, 229, 255, 0.45));
  background-size: 220% 220%;
  mix-blend-mode: screen; opacity: 0.22;
  animation: scrimWash 24s ease-in-out infinite alternate;
}
@keyframes scrimWash {
  from { background-position: 0% 30%; }
  to   { background-position: 100% 70%; }
}
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Particle tide layer — decorative, sits above the scrim, below the copy.
   Also used inside .studio-close. JS injects the canvas; without JS/WebGL the
   layer is simply empty. */
.hero__tide { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__tide canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__body { position: relative; padding-block: clamp(96px, 15vw, 174px) clamp(84px, 11vw, 132px); width: 100%; z-index: 2; }
.page-home .hero__body { max-width: 940px; }
.hero__body .h-hero { max-width: 11ch; }
.hero .eyebrow { color: var(--white); }
.hero .lede { max-width: 48ch; color: #DCE1E8; }
.hero .lede, .hero .logline { text-shadow: 0 1px 28px rgba(0, 0, 0, 0.92); }
.hero__subtitle {
  display: block;
  max-width: 24ch;
  margin-top: 0.24em;
  font-size: 0.27em;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: none;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s6);
  padding-top: var(--s5); border-top: 1px solid var(--line);
}
.hero__meta div { min-width: 120px; }
.hero__meta dt { font-family: var(--f-display); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.hero__meta dd { margin: 0; font-size: 0.9375rem; }
.hero__scrollcue {
  position: absolute; left: auto; right: var(--gutter); bottom: 22px;
  font-family: var(--f-display); font-size: 0.5625rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--grey); z-index: 3;
}
.hero__scrollcue::after {
  content: ""; display: block; width: 1px; height: 26px; margin: 8px auto 0;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0%, 100% { opacity: .25; transform: scaleY(.4); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* Project heroes lift the image a touch and open the scrim. */
.page-project .hero__media img { filter: brightness(0.79) saturate(0.91) contrast(1.045); }
.page-project .hero__scrim {
  background:
    linear-gradient(to top, #050507 0%, rgba(5, 5, 7, 0.56) 18%, rgba(5, 5, 7, 0.04) 60%, rgba(5, 5, 7, 0.34) 100%),
    linear-gradient(to right, rgba(5, 5, 7, 0.96) 0%, rgba(5, 5, 7, 0.68) 34%, rgba(5, 5, 7, 0.02) 72%);
}
.hero--studio .hero__media img { filter: brightness(0.82) saturate(0.88) contrast(1.04); object-position: center; }
.hero--studio .hero__scrim {
  background:
    linear-gradient(to top, #050507 0%, rgba(5, 5, 7, 0.62) 20%, transparent 62%),
    linear-gradient(to right, rgba(5, 5, 7, 0.98) 0%, rgba(5, 5, 7, 0.76) 36%, rgba(5, 5, 7, 0.04) 72%);
}

/* Narrow viewports crop a wide frame hard. Shorten the hero so the picture
   keeps more of its own composition instead of a centre-strip detail. */
@media (max-width: 900px) {
  .hero { min-height: min(76vh, 640px); }
  .hero__media img { object-position: center 38%; }
}
@media (max-width: 560px) {
  .hero { min-height: min(68vh, 540px); }
}

/* Flat hero — no media, gradient wash only. */
.hero--flat {
  min-height: 0; display: block; border-bottom: 1px solid var(--line);
  padding-block: calc(var(--nav-h) + clamp(92px, 12vw, 168px)) clamp(72px, 9vw, 120px);
  background: linear-gradient(125deg, rgba(107, 0, 255, 0.14), transparent 34%), var(--black);
}
.page-slate .hero--flat { background: linear-gradient(125deg, rgba(225, 29, 72, 0.17), transparent 34%), var(--black); }
.page-software .hero--flat { background: linear-gradient(125deg, rgba(255, 90, 31, 0.16), transparent 34%), var(--black); }
.page-services .hero--flat { background: linear-gradient(125deg, rgba(255, 209, 25, 0.12), transparent 34%), var(--black); }

/* Division hero — copy beside a framed visual. */
.hero--division { overflow: hidden; }
.division-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.division-hero__copy { position: relative; z-index: 2; }
.hero--division .h-hero { font-size: clamp(3.5rem, 6.7vw, 7.2rem); }
.division-hero__visual { position: relative; min-height: clamp(360px, 38vw, 500px); }
.division-hero__visual img:not(.division-hero__lockup) {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(167, 173, 182, 0.22);
  border-radius: var(--r-lg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.46);
}
.division-hero__visual--stack img { position: absolute; width: 72%; aspect-ratio: 16 / 9; height: auto; }
.division-hero__visual--stack img:nth-child(1) { left: 0; top: 18%; z-index: 3; }
.division-hero__visual--stack img:nth-child(2) { right: 0; top: 0; z-index: 1; filter: brightness(0.75); }
.division-hero__visual--stack img:nth-child(3) { right: 5%; bottom: 0; width: 62%; z-index: 2; filter: brightness(0.86); }
.division-hero__visual--single > img:not(.division-hero__lockup) {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: brightness(0.72) saturate(0.88);
}
.division-hero__visual--single::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  background: linear-gradient(90deg, rgba(5, 5, 7, 0.4), transparent 54%), linear-gradient(0deg, rgba(5, 5, 7, 0.5), transparent 50%);
  pointer-events: none;
}
.division-hero__lockup {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  bottom: clamp(24px, 4vw, 52px);
  z-index: 2;
  width: min(58%, 360px);
  border: 0;
  box-shadow: none;
  height: auto;
  object-fit: contain;
  animation: none;
}
.division-hero__visual img { animation: none; }

/* --- 9. Section movements ------------------------------------------------- */
.section--edge { border-top: 1px solid rgba(167, 173, 182, 0.18); }

/* Full-bleed image band. Templates set background-image inline. */
.section--bleed {
  min-height: 70vh;
  display: flex; align-items: center;
  background-color: var(--ink);
  background-size: cover; background-position: center;
  border-top: 0; overflow: hidden;
}
.section--bleed::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 7, 0.92), rgba(5, 5, 7, 0.45) 55%, rgba(5, 5, 7, 0.55));
}
.section--bleed > * { position: relative; z-index: 1; }
.bleed__in { max-width: 40rem; }
.bleed__in .h2, .bleed__in .lede { text-shadow: 0 1px 24px rgba(0, 0, 0, 0.85); }

/* Tinted panel — surface-2 ground, no hairline. */
.section--tint {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 30%), var(--surface-2);
  border-top: 0;
}

.section--worlds {
  background: radial-gradient(90% 60% at 50% 0%, rgba(0, 102, 255, 0.05), transparent 60%), var(--surface-2);
}
.studio-statement { background: var(--black); }
.studio-statement .split { grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr); }
/* Studio closing section — hosts the tide layer behind the final CTA. */
.studio-close { overflow: hidden; }
.studio-close > .wrap { position: relative; z-index: 2; }
.contact-band { background: var(--surface-2); }
.contact-band__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr) auto;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.contact-band__in .btn { align-self: end; white-space: nowrap; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.section-head > .btn { justify-self: end; }

/* --- 10. Cards ------------------------------------------------------------ */
.grid { display: grid; gap: clamp(18px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; isolation: isolate;
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color var(--t-base), transform var(--t-base) var(--ease-smooth);
}
.card:hover, .card:focus-within { border-color: var(--accent); transform: translateY(-5px); }
.card:focus-within { outline: 2px solid var(--lift); outline-offset: 3px; }
.card__title a:focus-visible { outline: none; }   /* the card carries the ring */
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111827; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
  transition: transform var(--t-slow) var(--ease-smooth), filter var(--t-slow) var(--ease-smooth);
}
.card:hover .card__media img { transform: scale(1.04); filter: saturate(1.02) contrast(1.03); }
.card__media--tall { aspect-ratio: 2 / 3; }
.card__media--campaign img { filter: saturate(0.96) contrast(1.04); }
.card:hover .card__media--campaign img { filter: saturate(1.04) contrast(1.05); }
.card__body { padding: clamp(22px, 2.3vw, 32px); display: flex; flex-direction: column; gap: var(--s4); flex: 1; }
.card__title { font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.015em; }
.card__title a { color: var(--white); border: 0; }
.card:hover .card__title a { color: var(--accent); }
.card__text { font-size: 0.9375rem; color: var(--grey); line-height: 1.55; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-size: 0.75rem; color: var(--grey); font-family: var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; }
.card__foot span:last-child { transition: transform var(--t-base) var(--ease-smooth); }
.card:hover .card__foot span:last-child { transform: translateX(4px); color: var(--accent); }
/* Block-link pattern: the title anchor covers the whole card — one link, one
   tab stop, no duplicated overlay. */
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.card__foot a, .card__body a:not(.card__title a) { position: relative; z-index: 5; }
.slate-grid .card__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.slate-grid .card__body { min-height: 250px; }
.slate-feature { margin-top: var(--s5); }

.feature {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid var(--line); background: var(--ink); border-radius: var(--r-lg); overflow: hidden;
}
.feature__media { position: relative; min-height: 500px; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: var(--s5); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 0; aspect-ratio: 16 / 9; }
  .feature__media img { position: static; }
}

/* World-cards — divisions. The art layer is optional: when templates emit
   .world-card__art (img or wrapper), it sits under logo + copy with a
   division-accent light wash. Without it the card renders as before. */
.world-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 30px); }
.world-card {
  --world-accent: var(--scarlet);
  position: relative; isolation: isolate;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  transition: transform var(--t-base) var(--ease-smooth), border-color var(--t-base), background var(--t-base);
}
.world-card--screen { --world-accent: var(--film); }
.world-card--games { --world-accent: var(--soft); }
.world-card--software { --world-accent: var(--softw); }
.world-card--brands { --world-accent: var(--brand); }
.world-card > a {
  position: relative; z-index: 2;
  display: flex;
  height: 100%;
  min-height: inherit;
  padding: clamp(28px, 3.2vw, 46px);
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  border: 0;
}
.world-card:hover,
.world-card:focus-within { transform: translateY(-6px); background: #111726; }
.world-card--screen:hover,
.world-card--screen:focus-within { border-color: var(--film); }
.world-card--games:hover,
.world-card--games:focus-within { border-color: var(--soft); }
.world-card--software:hover,
.world-card--software:focus-within { border-color: var(--softw); }
.world-card--brands:hover,
.world-card--brands:focus-within { border-color: var(--brand); }
/* Art layer — covers both `img.world-card__art` and wrapper markup. */
.world-card__art { position: absolute; inset: 0; z-index: 0; }
.world-card__art, .world-card__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.9);
  transition: transform var(--t-slow) var(--ease-smooth), filter var(--t-slow) var(--ease-smooth);
}
.world-card:hover .world-card__art,
.world-card:focus-within .world-card__art,
.world-card:hover .world-card__art img,
.world-card:focus-within .world-card__art img { transform: scale(1.03); }
/* Division-accent wash as light over the art. */
.world-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(160deg, var(--world-accent) 0%, transparent 62%);
  opacity: 0; mix-blend-mode: screen;
  transition: opacity var(--t-base) var(--ease-smooth);
}
.world-card:has(.world-card__art)::after { opacity: 0.18; }
.world-card:has(.world-card__art):hover::after,
.world-card:has(.world-card__art):focus-within::after { opacity: 0.26; }
.world-card__logo { width: min(100%, 290px); height: auto; }
.world-card__copy { max-width: 34ch; }
.world-card__line {
  color: var(--white);
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--s4);
}
.world-card__copy > p:not(.world-card__line) { color: var(--grey); font-size: 0.9375rem; }
.world-card__cta {
  display: inline-flex;
  gap: var(--s3);
  margin-top: var(--s4);
  font-family: var(--f-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.world-card__cta span { transition: transform var(--t-base) var(--ease-smooth); }
.world-card:hover .world-card__cta span { transform: translateX(5px); }

/* Product cards (Games page). */
.product-card {
  min-height: 430px;
  padding: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s6);
  background: linear-gradient(145deg, rgba(255, 90, 31, 0.08), transparent 38%), var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease-smooth), border-color var(--t-base);
}
.product-card:hover { transform: translateY(-5px); border-color: transparent; border-top-color: var(--soft); }
.product-card__top {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  color: var(--grey);
  font-family: var(--f-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.product-card__top span:first-child { color: var(--soft); }
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Product detail sections (Games page). */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  padding: var(--s5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec-strip dt {
  font-family: var(--f-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 4px;
}
.spec-strip dd { margin: 0; font-size: 0.9375rem; }
.feat-grid { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.product-detail__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.product-detail__foot p { margin: 0; }
.contact-route.is-selected { border-top-color: var(--accent); }
.contact-route.is-selected .card__title { color: var(--accent); }

/* Video cards (Trailers & media). */
.video-card__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.video-card__frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.82);
  transition: filter var(--t-base) var(--ease-smooth);
}
.video-card__frame:hover img, .video-card__frame:focus-visible img { filter: brightness(0.95); }
.video-card__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(5, 5, 7, 0.55);
}
.video-card__play::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-38%, -50%);
  border-left: 1rem solid var(--white);
  border-top: 0.625rem solid transparent;
  border-bottom: 0.625rem solid transparent;
}
.video-card__duration {
  position: absolute; right: 12px; bottom: 10px;
  font-family: var(--f-display); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; color: var(--white);
  background: rgba(5, 5, 7, 0.72); padding: 3px 8px; border-radius: var(--r-sm);
}
.video-card__frame iframe, .video-card__frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-card__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); margin-top: var(--s3); }
.video-card__title { margin: 0; font-size: 1.0625rem; }
@media print { .video-card__frame { display: none; } }

/* Brand proof band (Brands page). */
.brand-proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(220px, 0.7fr));
  gap: clamp(16px, 2vw, 28px);
}
.brand-proof__grid figure {
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink);
}
.brand-proof__grid picture { display: block; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.brand-proof__grid img { width: 100%; height: 100%; object-fit: cover; }
.brand-proof__grid figure:first-child img { object-position: center; }
.brand-proof__cap {
  display: grid; gap: 3px;
  padding: var(--s3) var(--s4) var(--s4);
  border-top: 1px solid var(--line);
  background: var(--ink2);
}
.brand-proof__wall { margin-top: clamp(16px, 2vw, 28px); }
.brand-proof__wall .eyebrow { margin: 0 0 var(--s4); }
.brand-proof__lockups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.brand-proof__tile {
  display: flex; align-items: center; justify-content: center;
  min-height: 8.5rem; padding: var(--s5);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--ink);
  transition: border-color var(--t-base) var(--ease-smooth);
}
.brand-proof__tile:hover { border-color: var(--line-strong); }
.brand-proof__tile img { width: auto; max-width: 100%; height: 2.75rem; object-fit: contain; }

/* --- 11. Editorial -------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: var(--s7); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: var(--s5); } }

.people { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.person { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink); padding: var(--s5); transition: border-color var(--t-base); }
.person:hover { border-color: var(--accent); }
.person h3 { font-family: var(--f-display); font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.person .role { font-size: 0.75rem; color: var(--accent); font-family: var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--s3); }
.person p { font-size: 0.875rem; color: var(--grey); margin: 0; }

/* Field block (black-tide): kicker + oversized heading intro, strip below. */
.field-block { margin-top: clamp(72px, 11vw, 152px); }
.field-block__intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  column-gap: clamp(28px, 6vw, 88px);
  align-items: start;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.field-block__intro .kicker { grid-column: 1; margin: 0.35rem 0 0; }
.field-block__intro h3 {
  grid-column: 2;
  margin: 0 0 var(--s3);
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.field-block__intro > p:last-child { grid-column: 2; max-width: 66ch; margin: 0; color: var(--grey); }
.field-block .strip { grid-auto-columns: 72%; }
.field-block .strip figcaption { font-size: 0.75rem; }
@media (max-width: 700px) {
  .field-block__intro { grid-template-columns: 1fr; }
  .field-block__intro .kicker,
  .field-block__intro h3,
  .field-block__intro > p:last-child { grid-column: 1; }
  .field-block__intro .kicker { margin: 0 0 var(--s3); }
  .field-block .strip { grid-auto-columns: 92%; }
}

/* Episodes — a prestige list, not a data table. */
.eps { display: grid; gap: var(--s7); min-width: 0; }
.ep, .ep__head, .ep__head > div { min-width: 0; }
.ep + .ep { border-top: 1px solid var(--line); padding-top: var(--s7); }
.ep__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}
/* Ghost numeral — decorative (templates mark it aria-hidden). */
.ep__no {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 229, 255, 0.28);
  transition: -webkit-text-stroke-color 0.4s ease;
}
.ep:hover .ep__no, .ep:focus-visible .ep__no { -webkit-text-stroke-color: rgba(0, 229, 255, 0.6); }
.ep__title {
  font-family: var(--f-display); font-size: 1.125rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--s2);
}
.ep__line { font-size: 1rem; color: var(--grey); max-width: 72ch; margin: 0; }

/* List-level hover dimming (JS adds .is-hovering while the pointer is inside).
   Gated on .js and more specific than the reveal transition so dimming eases
   at 0.4s without inheriting the reveal stagger delay. */
.js .ep-list.is-hovering .ep { opacity: 0.55; transition: opacity 0.4s ease; transition-delay: 0ms; }
.js .ep-list.is-hovering .ep:hover,
.js .ep-list.is-hovering .ep:focus-visible { opacity: 1; }

/* Cross-fade still preview beside the list — desktop only. The two-column
   grid lives on .ep-layout (list + preview), not on the list itself. */
.ep-preview { display: none; }
@media (min-width: 1024px) {
  .ep-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: clamp(32px, 4vw, 72px);
    align-items: start;
  }
  .ep-preview {
    display: block;
    position: sticky; top: calc(var(--nav-h) + 24px);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--ink2);
  }
  .ep-preview img {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity 0.6s ease;
  }
  .ep-preview.is-swapping img { opacity: 0; }
}

/* --- 12. Galleries -------------------------------------------------------- */
/* Captions live BELOW the image as a two-line meta lockup (title + detail);
   single-text captions degrade gracefully to the title line. */
.gallery { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gallery figure {
  margin: 0; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink2);
}
.gallery picture { display: block; overflow: hidden; }
.gallery img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  filter: saturate(0.85) contrast(1.035) brightness(0.985);
  transition: transform var(--t-slow) var(--ease-smooth), filter var(--t-slow) var(--ease-smooth);
}
.gallery figure:hover img { transform: scale(1.03); filter: saturate(1) contrast(1.04) brightness(1); }
.gallery figcaption,
.strip figcaption {
  display: grid; gap: 3px;
  padding: var(--s3) var(--s4) var(--s4);
  border-top: 1px solid var(--line);
  font-family: var(--f-body); font-size: 0.8125rem; font-weight: 600;
  line-height: 1.4; color: #E6EAF0;
}
/* Two-line meta lockup: title (Inter 600, off-white) over detail (tracked
   uppercase slate). Single-text captions inherit the figcaption base above. */
.cap-title { font-weight: 600; color: #E6EAF0; }
.cap-detail {
  font-family: var(--f-display); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey);
}
.gallery--wide figure:first-child { grid-column: 1 / -1; }
.gallery--wide figure:first-child img { aspect-ratio: 21 / 9; }

/* Product UI media rows (software page detail sections) */
.product-media__eyebrow { margin: var(--s7) 0 var(--s4); }
.product-media { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.product-media img { aspect-ratio: 16 / 10; }
.product-media--stack { grid-template-columns: 1fr; }
.product-media--stack img { aspect-ratio: 12 / 5; }
.gallery--cinema { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.gallery--cinema figure { grid-column: span 6; }
.gallery--cinema figure:first-child { grid-column: 1 / -1; }
.gallery--cinema figure:nth-child(4),
.gallery--cinema figure:nth-child(5),
.gallery--cinema figure:nth-child(6) { grid-column: span 4; }

/* zoom affordance for lightbox-enabled galleries */
.gallery[data-lightbox] figure { cursor: zoom-in; }
.gallery figure:focus-visible, .strip figure:focus-visible, .ladder figure:focus-visible,
.mutation-grid figure:focus-visible { outline: 2px solid var(--lift); outline-offset: 3px; }
.gallery[data-lightbox] figure::after {
  content: "+"; position: absolute; top: 10px; right: 12px; z-index: 2;
  font-size: 1rem; font-weight: 600; color: var(--white); opacity: 0;
  transition: opacity var(--t-base); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.gallery[data-lightbox] figure:hover::after { opacity: 0.85; }

/* horizontal film strip with snap */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 34%);
  gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--s4); scrollbar-color: var(--line-strong) transparent;
  min-width: 0;
}
.strip > figure {
  scroll-snap-align: start; margin: 0; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md); cursor: zoom-in;
}
.strip picture { display: block; overflow: hidden; }
.strip img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  filter: saturate(0.85) contrast(1.035) brightness(0.985);
  transition: transform var(--t-slow) var(--ease-smooth), filter var(--t-slow) var(--ease-smooth);
}
.strip figure:hover img { transform: scale(1.03); filter: saturate(1) contrast(1.04) brightness(1); }
@media (max-width: 700px) {
  .strip { grid-auto-columns: 84%; }
  .gallery--cinema { grid-template-columns: 1fr; }
  .gallery--cinema figure,
  .gallery--cinema figure:first-child,
  .gallery--cinema figure:nth-child(4),
  .gallery--cinema figure:nth-child(5),
  .gallery--cinema figure:nth-child(6) { grid-column: 1; }
  .gallery--cinema figure:first-child img { aspect-ratio: 16 / 9; }
}

/* the five-stage ladder — overlay captions stay: they are stage plates */
.ladder { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); counter-reset: st; }
.ladder figure { margin: 0; position: relative; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--ink2); counter-increment: st; cursor: zoom-in; }
.ladder img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(0.9) contrast(1.035) brightness(0.985); }
.ladder figcaption {
  position: absolute; inset: auto 0 0; padding: var(--s7) var(--s4) var(--s4);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96), transparent);
  font-family: var(--f-display); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.ladder figure::before {
  content: "0" counter(st); position: absolute; top: 10px; left: 12px; z-index: 2;
  font-family: var(--f-mono); font-size: 0.6875rem; color: var(--accent);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

/* host-factor mutations (emitted by build_site.py mutation_grid(); kept styled) */
.mutation-block { margin-top: clamp(64px, 9vw, 128px); }
.mutation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: var(--s3);
}
.mutation-grid figure {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink2);
  cursor: zoom-in;
}
.mutation-grid picture { display: block; overflow: hidden; }
.mutation-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.035) brightness(0.985);
  transition: transform var(--t-slow) var(--ease-smooth);
}
.mutation-grid figure:hover img { transform: scale(1.025); }
.mutation-grid figcaption {
  display: grid;
  gap: 0.45rem;
  padding: var(--s4);
  border-top: 1px solid var(--line);
}
.mutation-grid figcaption strong {
  font-family: var(--f-display);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.mutation-grid figcaption span {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.mutation-grid figcaption small { font-size: 0.8125rem; line-height: 1.45; color: var(--grey); }

/* --- 13. Lightbox --------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: rgba(4, 5, 6, 0.96); padding: clamp(16px, 4vw, 56px);
  opacity: 0; visibility: hidden; transition: opacity var(--t-base);
}
.lightbox[open], .lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  border: 1px solid var(--line);
  transition: opacity 0.35s ease;
}
.lightbox.is-swapping img { opacity: 0; }
.lightbox__cap {
  margin-top: var(--s4); text-align: center; font-family: var(--f-display);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--grey);
}
.lightbox__count { font-family: var(--f-mono); font-size: 0.6875rem; color: var(--grey); margin-top: 6px; letter-spacing: 0.08em; }
.lightbox button {
  position: absolute; background: rgba(10, 10, 10, 0.7); border: 1px solid var(--line);
  color: var(--white); width: 44px; height: 44px; border-radius: var(--r-sm); cursor: pointer;
  font-size: 1.125rem; line-height: 1; display: grid; place-items: center;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.lightbox button:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* --- 14. 3D stage ---------------------------------------------------------- */
.stage3d {
  position: relative; min-height: clamp(420px, 62vh, 720px);
  border-radius: var(--r-lg); overflow: hidden;
  background: #080B12; border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 56px);
}
.stage3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage3d__copy { position: relative; z-index: 2; pointer-events: none; max-width: 42ch; }
.stage3d__copy a, .stage3d__copy button { pointer-events: auto; }
.stage3d__hint {
  position: absolute; right: var(--gutter); bottom: 20px; z-index: 2;
  font-family: var(--f-display); font-size: 0.5625rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--grey);
}
.stage3d__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.stage3d__fallback img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.no-webgl .stage3d canvas { display: none; }

/* --- 15. Marquee (kept for template use) ----------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: var(--s5); }
.marquee__track { display: flex; gap: var(--s8); width: max-content; animation: slide 46s linear infinite; }
.marquee span {
  font-family: var(--f-display); font-size: clamp(1.5rem, 4vw, 2.75rem); font-weight: 800;
  letter-spacing: -0.01em; text-transform: uppercase; color: transparent;
  -webkit-text-stroke: 1px var(--line); white-space: nowrap;
}
.marquee span.lit { color: var(--scarlet); -webkit-text-stroke: 0; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* --- 16. Footer ------------------------------------------------------------ */
.footer {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line); background: var(--surface-2);
  padding-block: var(--s8) var(--s6);
}
.footer > .wrap { position: relative; z-index: 1; }
/* Giant stroked wordmark behind the footer columns. */
.footer-wordmark {
  position: absolute; left: 50%; bottom: 0; z-index: 0;
  transform: translateX(-50%);
  width: min(94%, 72rem); height: auto;
  opacity: 0.14;
  pointer-events: none; user-select: none;
}
.footer-tagline {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.02em; line-height: 1.1;
  color: var(--white); margin: 0 0 var(--s6);
}
.footer__grid { display: grid; gap: var(--s7); grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.footer__grid--slim { grid-template-columns: 1.8fr 1fr 1fr; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__grid > div:first-child { min-width: 0; }
.footer img { width: min(100%, 300px); height: auto; }
.footer h5, .footer .footer__h {
  font-family: var(--f-display); font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey);
  margin: 0 0 var(--s4);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li + li { margin-top: var(--s2); }
.footer a { color: var(--white); font-size: 0.875rem; border: 0;
            display: inline-block; padding-block: 4px; }   /* ≥ 24px target */
.footer a:hover { color: var(--accent); }
.footer__base {
  margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s5); justify-content: space-between;
  font-size: 0.75rem; color: var(--grey);
}

/* --- 17. Responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
  .world-grid { grid-template-columns: 1fr; }
  .world-card { min-height: 340px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .division-hero { grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr); }
  .contact-band__in { grid-template-columns: 1fr 1fr; }
  .contact-band__in .btn { justify-self: start; }
}

@media (max-width: 760px) {
  :root { --nav-h: 70px; }
  .nav__logo img { width: 134px; }
  .section { padding-block: 72px; }
  .section-head,
  .contact-band__in { grid-template-columns: 1fr; gap: var(--s5); }
  .section-head > .btn { justify-self: start; }
  .grid--3 { grid-template-columns: 1fr; }
  .hero { min-height: min(86vh, 760px); }
  .hero__body { padding-block: 118px 88px; }
  .hero__scrollcue { display: none; }
  .hero--division { padding-block: calc(var(--nav-h) + 72px) 72px; }
  .division-hero { grid-template-columns: 1fr; gap: var(--s6); }
  .division-hero__visual { min-height: 290px; }
  .division-hero__visual--stack img { width: 78%; }
  .hero--division .h-hero { font-size: clamp(3.3rem, 16vw, 5.8rem); }
  .hero__subtitle { font-size: 0.32em; }
  .studio-statement .split { grid-template-columns: 1fr; }
  .world-card { min-height: 310px; }
  .world-card__logo { width: 230px; }
  .product-card { min-height: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .brand-proof__grid { grid-template-columns: 1fr; }
  .brand-proof__grid figure { min-height: 360px; }
  .brand-proof__grid figure:not(:first-child) { min-height: 520px; }
}

/* --- 18. Reveal ------------------------------------------------------------ */
/* Gated on .js (set by an inline script in <head>). Without scripting the
   page renders fully rather than leaving every section at opacity 0.
   Stagger reads --d, set per sibling by JS. */
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--t-reveal) var(--ease-out-expo), transform var(--t-reveal) var(--ease-out-expo);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --- 19. Reduced motion ----------------------------------------------------- */
/* Grain is static and stays; every drift, wash, parallax-adjacent keyframe and
   reveal collapses to its end state instantly. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
  .rise > span, .js .rise > span { transform: none; }
  .hero__media img { animation: none; transform: none; }
  .hero__scrim::before { animation: none; }
  .marquee__track { animation: none; }
  .hero__scrollcue::after { animation: none; }
}

/* --- 20. Print -------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  body::after, .nav, .footer, .footer-wordmark, .hero__media, .hero__fx,
  .btn-row, .progress, .lightbox, .ep-preview, .world-card__art,
  .hero__scrollcue, .stage3d { display: none !important; }
  .hero { min-height: 0; margin-top: 0; padding-top: var(--s6); }
  .world-card { min-height: 0; }
  a { color: #000; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
  .rise > span, .js .rise > span { transform: none !important; }
  .section--bleed { min-height: 0; background-image: none !important; }
}

/* ==========================================================================
   21. LBL STUDIOS brand system v7 — premium editorial override
   A late cascade layer preserves every template/class contract while bringing
   the public site onto the current Ink / Slate / Signature visual language.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Brand literals and semantic surfaces. */
  --black: #050507;
  --ink: #0b0c12;
  --ink2: #11131c;
  --surface-2: #08090d;
  --white: #FFFFFF;
  --grey: #A7ADB6;
  --line: rgba(197, 207, 222, 0.16);
  --line-strong: rgba(213, 222, 235, 0.3);
  --scarlet: #00E5FF;
  --lift: #8cecff;
  --blood: #0066FF;
  --crimson: #6B00FF;
  --gradient-master: linear-gradient(45deg, #6B00FF 0%, #0066FF 55%, #00E5FF 100%);

  --max: 1360px;
  --wide: 1740px;
  --read: 70ch;
  --gutter: clamp(1.25rem, 4.5vw, 4.75rem);

  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;
  --nav-h: 5.25rem;

  --shadow-float: 0 1.5rem 5rem rgba(0, 0, 0, 0.42);
  --surface-material: rgba(15, 17, 25, 0.88);
}

html {
  max-width: 100%;
  background: var(--black);
  scrollbar-color: #626c7d var(--black);
  scrollbar-width: thin;
}

body {
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  background:
    radial-gradient(80rem 50rem at 82% -18%, rgba(0, 102, 255, 0.055), transparent 62%),
    var(--black);
  font-size: 1.0625rem;
  line-height: 1.62;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

main,
section,
.wrap,
.grid,
.feature,
.division-hero,
.section-head,
.contact-band__in { min-width: 0; }

h1, h2, h3, h4, h5,
.h-hero, .h1, .h2, .card__title, .world-card__line, .footer-tagline {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  text-wrap: balance;
}

p, li, dd, figcaption { text-wrap: pretty; }

.section {
  padding-block: clamp(5.5rem, 10vw, 10.5rem);
}

.wrap { padding-inline: var(--gutter); }

.h-hero {
  font-size: clamp(3.15rem, 8.7vw, 8.75rem);
  font-weight: 720;
  line-height: 0.84;
  letter-spacing: -0.066em;
}

.h1 {
  font-size: clamp(2.7rem, 5.8vw, 6rem);
  font-weight: 690;
  line-height: 0.89;
  letter-spacing: -0.058em;
}

.h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.25rem);
  font-weight: 680;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 56ch;
  font-size: clamp(1.125rem, 1.45vw, 1.35rem);
  line-height: 1.52;
  letter-spacing: -0.018em;
}

.logline {
  max-width: 48ch;
  font-size: clamp(1.3rem, 2.2vw, 1.875rem);
  line-height: 1.35;
  letter-spacing: -0.026em;
}

.muted, .card__text, .person p, .ep__line { color: var(--grey); }

.eyebrow,
h2.eyebrow {
  gap: 0.875rem;
  margin-bottom: 1.375rem;
  color: #c1c7d1;
  font-size: 0.6875rem;
  font-weight: 680;
  line-height: 1.35;
  letter-spacing: 0.19em;
}

.eyebrow::before {
  width: 2.75rem;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent), transparent 72%));
}

/* Clear, consistent keyboard treatment across every interactive surface. */
:focus-visible,
.card:focus-within,
.gallery figure:focus-visible,
.strip figure:focus-visible,
.ladder figure:focus-visible,
.mutation-grid figure:focus-visible {
  outline: 3px solid var(--lift);
  outline-offset: 4px;
}

a, button, summary { touch-action: manipulation; }

.btn {
  position: relative;
  min-height: 3.25rem;
  padding: 0.9375rem 1.625rem;
  border-color: var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(11, 12, 18, 0.82);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 720;
  letter-spacing: 0.17em;
  backdrop-filter: blur(12px) saturate(1.08);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.btn:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: none;
}
.btn--solid:hover { background: var(--white); color: var(--black); }

.btn--solid {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
  box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.22);
}

.btn--solid:hover {
  border-color: var(--lift);
  background: var(--lift);
  color: var(--black);
}

.btn--sm { min-height: 2.75rem; padding: 0.75rem 1rem; }
.btn-row { gap: 0.75rem; }

.tag {
  min-height: 1.75rem;
  padding: 0.375rem 0.625rem;
  border-color: var(--line);
  background: rgba(5, 5, 7, 0.34);
  letter-spacing: 0.145em;
}

.advisory {
  border: 0;
  border-inline-start: 2px solid var(--blood);
  border-radius: 0;
  background: rgba(17, 19, 28, 0.72);
  padding: 1.125rem 1.25rem;
  backdrop-filter: blur(10px);
}

/* Navigation: quiet material bar, decisive current state and contact action. */
.nav {
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.66), rgba(5, 5, 7, 0.18));
}

.nav.is-stuck {
  background: rgba(5, 5, 7, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(1.18);
  box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.18);
}

.nav__in { gap: clamp(1.5rem, 3vw, 3rem); }
.nav__logo img { width: clamp(8.75rem, 11vw, 10.5rem); }

.nav__links { gap: clamp(0.5rem, 1.2vw, 1.25rem); }

.nav__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding-inline: 0.625rem;
  color: #d2d6de;
  font-size: 0.65625rem;
  font-weight: 680;
  letter-spacing: 0.155em;
}

.nav__links a::after { inset-inline: 0.625rem; right: auto; width: 0; }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: calc(100% - 1.25rem); }

.nav__links a:last-child, .nav__links a.nav__cta {
  min-width: 6.75rem;
  margin-inline-start: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--r-sm);
  color: var(--white);
}

.nav__links a:last-child::after, .nav__links a.nav__cta::after { display: none; }
.nav__links a:last-child:hover,
.nav__links a.nav__cta:hover,
.nav__links a:last-child[aria-current="page"] { background: var(--white); color: var(--black); }

.nav__toggle {
  border-color: var(--line-strong);
  background: rgba(11, 12, 18, 0.86);
  font-weight: 680;
}

.progress { height: 3px; }

/* Heroes use the image as the primary surface and hold copy on a measured rail. */
.hero {
  min-height: min(100dvh, 67rem);
  background: var(--black);
}

.hero__media img {
  filter: brightness(0.62) saturate(0.84) contrast(1.08);
  animation-duration: 48s;
}

.hero__media::after {
  background: radial-gradient(110% 86% at 58% 38%, transparent 48%, rgba(5, 5, 7, 0.58) 100%);
}

.hero__scrim {
  background:
    linear-gradient(to top, #050507 0%, rgba(5, 5, 7, 0.67) 25%, rgba(5, 5, 7, 0.06) 64%, rgba(5, 5, 7, 0.42) 100%),
    linear-gradient(92deg, rgba(5, 5, 7, 0.97) 0%, rgba(5, 5, 7, 0.64) 39%, rgba(5, 5, 7, 0.04) 76%);
}

.hero__scrim::before {
  opacity: 0.1;
  animation-duration: 34s;
}

.hero__body {
  padding-block: clamp(8rem, 18vw, 14rem) clamp(6rem, 11vw, 9rem);
}

.page-home .hero__body { max-width: 72rem; }
.hero__body .h-hero { max-width: 9.6ch; }
.hero .lede { color: #e2e6ec; }

.hero__subtitle {
  max-width: 28ch;
  margin-top: 0.35em;
  font-weight: 520;
  letter-spacing: -0.012em;
}

.hero__meta {
  max-width: 52rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top-color: var(--line-strong);
}

.hero__scrollcue { bottom: 1.75rem; color: #bec4ce; }

.page-project .hero__media img { filter: brightness(0.7) saturate(0.88) contrast(1.08); }

.hero--flat {
  padding-block: calc(var(--nav-h) + clamp(7rem, 12vw, 12rem)) clamp(6rem, 10vw, 9rem);
  border-bottom: 0;
  background:
    radial-gradient(54rem 38rem at 92% 4%, rgba(0, 102, 255, 0.13), transparent 68%),
    linear-gradient(120deg, rgba(107, 0, 255, 0.055), transparent 42%),
    var(--black);
}

.page-slate .hero--flat,
.page-software .hero--flat,
.page-services .hero--flat {
  background:
    radial-gradient(58rem 38rem at 92% 4%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 68%),
    var(--black);
}

.division-hero {
  grid-template-columns: minmax(0, 0.78fr) minmax(30rem, 1.22fr);
  gap: clamp(3rem, 7vw, 8rem);
}

.division-hero__visual {
  min-height: clamp(28rem, 43vw, 39rem);
  margin-inline-end: calc(var(--gutter) * -0.34);
}

.division-hero__visual img:not(.division-hero__lockup) {
  border: 0;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
}

.division-hero__visual--single::after {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(5, 5, 7, 0.42), transparent 48%), linear-gradient(0deg, rgba(5, 5, 7, 0.48), transparent 56%);
}

/* Section rhythm is editorial: short rules, offset headings, generous air. */
.section--edge { border-top: 0; }

.section--edge::before {
  content: "";
  position: absolute;
  inset: 0 auto auto var(--gutter);
  width: min(34rem, 42vw);
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.section--tint {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.022), transparent 34%),
    var(--surface-2);
}

.section--worlds {
  background:
    radial-gradient(70rem 34rem at 10% 0%, rgba(107, 0, 255, 0.065), transparent 66%),
    var(--surface-2);
}

.section-head {
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.62fr);
  gap: clamp(2.5rem, 9vw, 9rem);
  margin-bottom: clamp(3.5rem, 7vw, 7rem);
}

.section-head > .btn { margin-bottom: 0.25rem; }

.section--bleed {
  min-height: min(82dvh, 58rem);
  background-attachment: scroll;
}

.section--bleed::before {
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.92), rgba(5, 5, 7, 0.28) 62%, rgba(5, 5, 7, 0.52)),
    linear-gradient(to top, rgba(5, 5, 7, 0.86), transparent 64%);
}

.bleed__in { max-width: 44rem; }

.contact-band {
  background:
    radial-gradient(46rem 22rem at 90% 20%, rgba(0, 229, 255, 0.055), transparent 70%),
    var(--surface-2);
}

.contact-band__in { grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.62fr) auto; }

/* Image-led work cards lose the generic bordered-box treatment. */
.card {
  border-color: transparent;
  border-radius: 0;
  background: rgba(11, 12, 18, 0.5);
  box-shadow: none;
}

.card:hover,
.card:focus-within { border-color: transparent; transform: none; }

.card:has(.card__media) {
  overflow: visible;
  border: 0;
  background: transparent;
}

.card__media {
  border-radius: var(--r-md);
  background: var(--ink2);
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.24);
}

.card__media img { filter: saturate(0.78) contrast(1.075); }

.card:has(.card__media) .card__body {
  padding-inline: 0;
  padding-bottom: 0.5rem;
}

.card:not(:has(.card__media)) {
  border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(17, 19, 28, 0.74), rgba(11, 12, 18, 0.48));
}

.card__body { padding: clamp(1.5rem, 2.6vw, 2.25rem); gap: 1.125rem; }

.card__title {
  font-size: clamp(1.25rem, 1.7vw, 1.625rem);
  font-weight: 670;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.card__text { font-size: 0.96875rem; line-height: 1.6; }
.card__foot { color: #b2b9c5; }

.feature {
  grid-template-columns: minmax(0, 1.42fr) minmax(22rem, 0.78fr);
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-material);
  box-shadow: var(--shadow-float);
}

.feature__media { min-height: clamp(32rem, 49vw, 46rem); }
.feature__body { padding: clamp(2rem, 5.5vw, 5.5rem); }

.world-grid { gap: clamp(0.875rem, 1.5vw, 1.5rem); }

.world-card {
  min-height: 32rem;
  border-color: transparent;
  border-radius: var(--r-md);
  background: var(--ink);
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.18);
}

.world-card > a { padding: clamp(2rem, 3.6vw, 3.5rem); }
.world-card__art, .world-card__art img { filter: brightness(0.42) saturate(0.84) contrast(1.06); }
.world-card:has(.world-card__art)::after { opacity: 0.12; }
.world-card:hover, .world-card:focus-within { transform: none; background: var(--ink2); }
.world-card__logo { width: min(88%, 17rem); }

.world-card__line {
  font-size: clamp(1.5rem, 2vw, 2.125rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.product-card {
  border-color: transparent;
  border-top: 1px solid color-mix(in srgb, var(--soft) 48%, transparent);
  border-radius: 0;
  background: linear-gradient(150deg, rgba(255, 90, 31, 0.07), transparent 45%), rgba(11, 12, 18, 0.7);
}

.person {
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  padding: 1.75rem 0;
}

.brand-proof__grid figure,
.gallery figure,
.strip > figure,
.ladder figure,
.mutation-grid figure,
.ep-preview {
  border-color: transparent;
  border-radius: var(--r-md);
  background: var(--ink2);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.16);
}

.brand-proof__grid figure { min-height: 36rem; }

.split {
  grid-template-columns: minmax(9rem, 0.38fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 8vw, 8rem);
}

.split > :last-child { max-width: 52rem; }

.field-block__intro {
  grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 1.58fr);
  column-gap: clamp(2.5rem, 8vw, 8rem);
}

.field-block__intro h3 {
  font-size: clamp(2.2rem, 4.7vw, 4.75rem);
  font-weight: 680;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.ep + .ep { border-top-color: var(--line); }
.ep__no { -webkit-text-stroke-color: rgba(140, 236, 255, 0.28); }

.gallery { gap: clamp(0.875rem, 1.6vw, 1.5rem); }
.gallery img, .strip img { filter: saturate(0.8) contrast(1.07); }

.gallery figcaption,
.strip figcaption,
.mutation-grid figcaption {
  border-top-color: var(--line);
  background: rgba(11, 12, 18, 0.82);
}

.lightbox {
  background: rgba(3, 3, 5, 0.975);
  backdrop-filter: blur(14px);
}

.lightbox img { border: 0; box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.58); }

.lightbox button {
  min-width: 3rem;
  min-height: 3rem;
  border-color: var(--line-strong);
  background: rgba(11, 12, 18, 0.9);
  backdrop-filter: blur(12px);
}

.stage3d {
  border-color: var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
}

.footer {
  border-top-color: var(--line);
  background:
    radial-gradient(64rem 28rem at 18% 110%, rgba(107, 0, 255, 0.07), transparent 70%),
    var(--surface-2);
  padding-block: clamp(5rem, 9vw, 8rem) 2.5rem;
}

.footer-wordmark { width: min(96%, 84rem); opacity: 0.12; }

.footer-tagline {
  margin-top: clamp(4rem, 8vw, 8rem);
  font-size: clamp(2rem, 4vw, 4.25rem);
  font-weight: 650;
  letter-spacing: -0.05em;
}

.footer__grid { gap: clamp(3rem, 7vw, 7rem); }
.footer a { min-height: 2.75rem; display: inline-flex; align-items: center; padding-block: 0.625rem; }
.footer li + li { margin-top: 0; }
.footer-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
}
.footer-social .social-link { gap: 0.55rem; justify-content: space-between; }
.footer-social .social-link > [aria-hidden="true"] { color: var(--grey); transition: color 180ms ease; }
.footer-social .social-link:hover > [aria-hidden="true"] { color: currentColor; }

/* Social directory: an editorial profile index instead of a generic row of
   logo badges. Visible handles make every destination unambiguous. */
.social-directory {
  background:
    radial-gradient(54rem 30rem at 82% 18%, rgba(107, 0, 255, 0.07), transparent 72%),
    var(--black);
}

.social-directory strong { color: var(--white); font-weight: 650; }

.social-directory__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: var(--line);
}

.social-directory__grid li { min-width: 0; background: var(--black); }

.social-directory__grid .social-link {
  min-height: 8.5rem;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border: 0;
  background: linear-gradient(145deg, rgba(17, 19, 28, 0.78), rgba(8, 9, 13, 0.96));
  color: var(--white);
  transition: background-color 180ms ease, color 180ms ease;
}

.social-directory__grid .social-link:hover {
  background: rgba(20, 23, 34, 0.98);
  color: var(--lift);
}

.social-link__platform {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.social-link__handle {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--grey);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.social-link__arrow { margin-inline-start: 0.6rem; color: var(--white); }

/* Cinematic asymmetry is reserved for wide canvases; project-specific gallery
   geometry remains untouched. */
@media (min-width: 73.75rem) {
  .page-home .world-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
  }

  .page-home .world-card--screen { grid-column: span 6; }
  .page-home .world-card--games,
  .page-home .world-card--software,
  .page-home .world-card--brands { grid-column: span 6; }

  .page-home .world-card--screen { min-height: 38rem; }
  .page-home .world-card--games,
  .page-home .world-card--software,
  .page-home .world-card--brands { min-height: 34rem; }

  .page-home .grid--3 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .grid--3 > .card:first-child { grid-column: span 6; }
  .page-home .grid--3 > .card:not(:first-child) { grid-column: span 3; }
  .page-home .grid--3 > .card:not(:first-child) .card__media { aspect-ratio: 4 / 5; }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .card:hover, .world-card:hover, .product-card:hover { transform: translateY(-3px); }
  .card:hover .card__media img,
  .world-card:hover .world-card__art,
  .world-card:hover .world-card__art img,
  .gallery figure:hover img,
  .strip figure:hover img,
  .mutation-grid figure:hover img { transform: scale(1.025); }
}

@media (max-width: 67.5rem) {
  .division-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(22.5rem, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .contact-band__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 56.25rem) {
  :root { --nav-h: 4.625rem; }

  .nav { background: rgba(5, 5, 7, 0.92); border-bottom-color: var(--line); backdrop-filter: blur(18px); }
  .nav__links {
    gap: 0;
    padding: 0.75rem var(--gutter) 2rem;
    background: rgba(8, 9, 13, 0.98);
    border-bottom-color: var(--line);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.4);
  }

  .nav__links a {
    justify-content: flex-start;
    min-height: 3.25rem;
    padding-inline: 0;
    border-bottom-color: var(--line);
    font-size: 0.75rem;
  }

  .nav__links a:last-child, .nav__links a.nav__cta {
    justify-content: center;
    margin: 1rem 0 0;
    padding-inline: 1rem;
  }

  .hero { min-height: min(86dvh, 47rem); }
  .hero__body { padding-block: 8.5rem 6rem; }
  .hero__scrim {
    background:
      linear-gradient(to top, #050507 0%, rgba(5, 5, 7, 0.7) 35%, rgba(5, 5, 7, 0.16) 70%, rgba(5, 5, 7, 0.5) 100%),
      linear-gradient(90deg, rgba(5, 5, 7, 0.9), rgba(5, 5, 7, 0.16));
  }

  .hero--flat { min-height: 0; }
  .division-hero { grid-template-columns: 1fr; }
  .division-hero__visual { min-height: clamp(20rem, 65vw, 31rem); margin-inline-end: 0; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 0; aspect-ratio: 16 / 10; }
  .contact-band__in { grid-template-columns: 1fr; }
  .social-directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 47.5rem) {
  :root { --gutter: clamp(1.25rem, 5.5vw, 2rem); }

  body { font-size: 1rem; line-height: 1.6; }
  .section { padding-block: clamp(4.75rem, 18vw, 7rem); }
  .section-head { grid-template-columns: 1fr; gap: 1.75rem; margin-bottom: 3rem; }
  .section-head > .btn { justify-self: start; }

  .h-hero { font-size: clamp(3.1rem, 16.5vw, 5.6rem); line-height: 0.86; }
  .h1 { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .hero { min-height: min(82dvh, 44rem); }
  .hero__body { padding-block: 7.75rem 5.5rem; }
  .hero__body .h-hero { max-width: 9ch; }
  .hero .lede { max-width: 32rem; }
  .hero__meta { gap: 1.25rem; }

  .hero--division { padding-block: calc(var(--nav-h) + 4.75rem) 4.75rem; }
  .division-hero { gap: 2.5rem; }
  .division-hero__visual { min-height: clamp(18rem, 78vw, 25rem); }

  .grid--2 { grid-template-columns: 1fr; }
  .split,
  .studio-statement .split,
  .field-block__intro { grid-template-columns: 1fr; gap: 1.75rem; }
  .field-block__intro .kicker,
  .field-block__intro h3,
  .field-block__intro > p:last-child { grid-column: 1; }

  .world-card { min-height: 27rem; }
  .world-card > a { padding: 1.75rem; }
  .world-card__logo { width: min(80%, 14rem); }
  .brand-proof__grid figure { min-height: 22rem; }
  .brand-proof__grid figure:not(:first-child) { min-height: 30rem; }

  .gallery { grid-template-columns: 1fr; }
  .strip { grid-auto-columns: minmax(17rem, 88%); }
  .section--edge::before { width: calc(100% - (2 * var(--gutter))); }

  .footer__grid,
  .footer__grid--slim { grid-template-columns: 1fr; gap: 2.75rem; }
  .social-directory__grid { grid-template-columns: 1fr; }
  .social-directory__grid .social-link { min-height: 7.25rem; }
  .footer-tagline { margin-top: 4rem; }
  .footer__base { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 25rem) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; width: 100%; }
  .hero__subtitle { font-size: 0.34em; }
  .card__body { padding-inline: 1.25rem; }
}

@media (pointer: coarse) {
  .nav__links a,
  .footer a,
  .lightbox button,
  .nav__toggle { min-height: 2.75rem; min-width: 2.75rem; }
}

@media (prefers-contrast: more) {
  :root {
    --grey: #d8dce3;
    --line: rgba(255, 255, 255, 0.5);
    --line-strong: rgba(255, 255, 255, 0.78);
  }

  html { scrollbar-color: var(--white) var(--black); }
  .card:not(:has(.card__media)), .person, .product-card { border-top-width: 2px; }
}

@media (forced-colors: active) {
  :root {
    --black: Canvas;
    --ink: Canvas;
    --ink2: Canvas;
    --surface-2: Canvas;
    --white: CanvasText;
    --grey: CanvasText;
    --line: CanvasText;
    --line-strong: CanvasText;
    --scarlet: LinkText;
    --lift: Highlight;
  }

  body::after, .hero__scrim::before, .footer-wordmark { display: none; }
  .btn, .nav__toggle, .lightbox button, .card, .world-card, .feature,
  .gallery figure, .strip > figure, .ladder figure, .mutation-grid figure {
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .btn--solid, .nav__links a:last-child[aria-current="page"] {
    background: Highlight;
    color: HighlightText;
  }

  :focus-visible,
  .card:focus-within { outline-color: Highlight; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media, .hero__media img { will-change: auto; }
  .card:hover, .world-card:hover, .product-card:hover, .btn:hover,
  .gallery figure:hover img, .strip figure:hover img,
  .mutation-grid figure:hover img { transform: none; }
}
