/* =========================================================
   Polypix Studios — landing page
   Design tokens: Huly-style reference (tokens.json / variables.css)
   ========================================================= */
:root {
  /* Colors */
  --color-obsidian-canvas: #303236;
  --color-void: #090a0c;
  --color-charcoal-card: #111111;
  --color-slate-edge: #4a4b50;
  --color-iron-veil: #6b6c6d;
  --color-smoke: #95979e;
  --color-ash: #a9a9aa;
  --color-frost: #d1d1d1;
  --color-linen: #e5e5e7;
  --color-snow: #ffffff;
  --color-electric-iris: #5683da;
  --color-ember-pulse: #ff8964;
  --color-molasses: #5a250a;
  --ink: #050506;

  /* Fonts — Esbuild is proprietary; Sora is the documented substitute */
  --font-inter: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-esbuild: 'Esbuild', 'Sora', ui-sans-serif, system-ui, sans-serif;

  /* Layout */
  --page-max-width: 1200px;
  --section-gap: 96px;
  --card-padding: 24px;
  --element-gap: 12px;

  /* Radii */
  --radius-md: 4px;
  --radius-xl: 12px;
  --radius-3xl: 30px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-md: rgba(0, 0, 0, 0.35) 0px 4px 16px 0px;
  --shadow-subtle: rgba(255, 255, 255, 0.4) 0px 0px 0px 6px;
  --shadow-sm: rgba(0, 0, 0, 0.15) 0px 4px 6px 0px;
  --shadow-xl: rgba(0, 0, 0, 0.5) 0px 6px 25px 0px;

  /* Surfaces */
  --surface-void: #090a0c;
  --surface-card: #111111;
  --surface-light: #ffffff;
  --surface-linen: #f6f6f6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--surface-void);
  color: var(--color-snow);
  font-family: var(--font-inter);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--shadow-subtle); border-radius: 6px; }

.container { width: 100%; max-width: var(--page-max-width); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; margin-top: 48px; }
.muted { color: var(--color-smoke); }

/* ---------- Type ---------- */
.display, .display-md, .display-sm { font-family: var(--font-esbuild); margin: 0; }
.display { font-size: clamp(52px, 8vw, 84px); font-weight: 600; line-height: 0.9; letter-spacing: -0.045em; }
.display-md { font-size: clamp(36px, 5vw, 56px); font-weight: 500; line-height: 1; letter-spacing: -0.035em; }
.display-sm { font-size: clamp(28px, 3vw, 32px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }

.kicker {
  display: inline-block; margin-bottom: 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-ember-pulse);
}
.kicker--dark { color: var(--color-electric-iris); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-full);
  background: rgba(255,255,255,.04); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 500; color: var(--color-frost);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-electric-iris); display: inline-block; box-shadow: 0 0 10px var(--color-electric-iris); }
.dot--ember { background: var(--color-ember-pulse); box-shadow: 0 0 10px var(--color-ember-pulse); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-full); border: 1px solid transparent;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 9px 18px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--color-electric-iris); color: #fff; }
.btn--primary:hover { box-shadow: 0 0 0 4px rgba(86,131,218,.25), 0 8px 30px rgba(86,131,218,.45); }
.btn--white { background: #fff; color: var(--color-void); text-transform: uppercase; font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.btn--white:hover { box-shadow: 0 8px 40px rgba(255,137,100,.35); }
.btn--ghost { border-color: var(--color-slate-edge); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--color-charcoal-card); }
.btn--dark { background: var(--color-charcoal-card); color: #fff; }
.btn--dark:hover { box-shadow: var(--shadow-xl); }

/* ---------- Tags / chips ---------- */
.tag {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: var(--radius-full); font-size: 11px; font-weight: 500; line-height: 1.38;
}
.tag--iris { color: #7fa3ea; background: rgba(86,131,218,.14); }
.tag--ember { color: var(--color-ember-pulse); background: rgba(255,137,100,.12); }
.tag--ash { color: var(--color-ash); background: rgba(169,169,170,.12); }

.chip {
  padding: 8px 16px; border-radius: var(--radius-full);
  border: 1px solid var(--color-frost); background: transparent;
  font-size: 13px; font-weight: 500; color: var(--color-obsidian-canvas);
  transition: all .2s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(9,10,12,.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255,255,255,.06);
}
.nav__inner { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.nav__brand em { font-style: normal; font-weight: 300; color: var(--color-smoke); margin-left: 4px; }
.nav__logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; mix-blend-mode: screen; }
.nav__links { display: flex; gap: 28px; margin: 0 auto; }
.nav__links a { font-size: 14px; color: var(--color-frost); transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__star { font-size: 14px; color: var(--color-frost); }
.nav__star:hover { color: #fff; }
.nav__toggle { display: none; width: 40px; height: 40px; background: none; border: 1px solid var(--color-slate-edge); border-radius: 50%; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .25s; }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 22px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 140px 0 80px; overflow: hidden; isolation: isolate;
  background: var(--surface-void);
}
.hero__aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.beam {
  position: absolute; top: -20%; right: 18%; width: 22vw; height: 120%;
  background: linear-gradient(180deg,
    rgba(86,131,218,0) 0%, rgba(86,131,218,.55) 25%,
    rgba(255,137,100,.85) 62%, rgba(255,230,210,.95) 88%, #fff 100%);
  filter: blur(60px); transform: rotate(14deg); transform-origin: top center;
  opacity: .8; animation: beamSway 12s ease-in-out infinite alternate;
}
.beam--thin {
  width: 3px; right: 29%; filter: blur(1.5px); opacity: .9;
  background: linear-gradient(180deg, transparent 0%, rgba(160,190,255,.9) 35%, #fff 80%, transparent 100%);
  animation-duration: 9s;
}
.sunburst {
  position: absolute; bottom: -35%; right: 8%; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(circle, rgba(255,218,159,.45) 0%, rgba(255,170,129,.28) 22%, rgba(255,137,100,.1) 42%, transparent 65%);
  filter: blur(10px);
}
.stars {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 68%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 78%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%);
}
@keyframes beamSway { from { transform: rotate(12deg) translateX(0); } to { transform: rotate(17deg) translateX(-3vw); } }

/* WebGL beam (hero-beam.js); CSS beam is the fallback */
.beam-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero.has-webgl .beam, .hero.has-webgl .sunburst { display: none; }
.hero.has-webgl .stars { opacity: .35; }
.hero.no-webgl .beam-canvas { display: none; }

.hero__inner { display: grid; grid-template-columns: 1fr; gap: 64px; position: relative; }
.hero__copy { max-width: 640px; }
.hero__copy .display { margin-bottom: 28px; }
.hero__lede { font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; color: var(--color-frost); max-width: 520px; margin: 0 0 36px; font-weight: 300; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__frame {
  position: relative; margin: 0; width: 100%;
  border-radius: var(--radius-xl); background: #0e0f12;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -1px 0 rgba(255,210,185,.45), var(--shadow-xl), 0 40px 120px rgba(0,0,0,.7);
}
.hero__frame img { width: 100%; height: auto; aspect-ratio: 16/8; object-fit: cover; border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
/* Rim light where the beam strikes the frame (beam lands at 62%) */
.hero__frame::before, .hero__frame::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent 8%, rgba(255,137,100,.55) 38%, #fff 62%, rgba(255,137,100,.55) 86%, transparent 100%);
}
.hero__frame::after { top: -8px; height: 16px; filter: blur(10px); opacity: .9; }
.hero.no-webgl .hero__frame::before, .hero.no-webgl .hero__frame::after { opacity: .5; }
/* ---------- Hero environment carousel ---------- */
.showcase {
  position: relative; aspect-ratio: 16/8; overflow: hidden; outline: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl); background: #0b0c0e;
}
.showcase__slides, .showcase__slide { position: absolute; inset: 0; margin: 0; }
.showcase__slide { opacity: 0; transition: opacity .9s ease; }
.showcase__slide.is-active { opacity: 1; z-index: 1; }
.hero__frame .showcase__slide img {
  width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0;
  transform: scale(1.06); transition: transform 6s ease-out;
}
.showcase__slide.is-active img { transform: scale(1); }
.showcase::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(9,10,12,.75));
}
.showcase__nav {
  position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(17,17,17,.6); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14);
  opacity: 0; transition: opacity .25s, background .2s, transform .2s;
}
.showcase__nav svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.showcase__nav--prev { left: 16px; }
.showcase__nav--next { right: 16px; }
.showcase:hover .showcase__nav, .showcase:focus-within .showcase__nav { opacity: 1; }
.showcase__nav:hover { background: rgba(255,255,255,.95); transform: scale(1.06); }
.showcase__nav:hover svg { stroke: var(--color-void); }
.showcase__bar {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.showcase__title { font-family: var(--font-esbuild); font-size: clamp(18px, 2.2vw, 26px); font-weight: 500; letter-spacing: -0.03em; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.showcase__dots { display: flex; gap: 6px; }
.showcase__dots button {
  position: relative; width: 22px; height: 4px; padding: 0; border: 0; border-radius: var(--radius-full);
  background: rgba(255,255,255,.28); overflow: hidden; transition: width .3s ease;
}
.showcase__dots button.is-active { width: 44px; }
.showcase__dots button.is-active::after {
  content: ""; position: absolute; inset: 0; transform-origin: left; border-radius: inherit;
  background: linear-gradient(90deg, var(--color-electric-iris), var(--color-ember-pulse));
  animation: dotFill 5s linear forwards;
}
.showcase:hover .showcase__dots button.is-active::after { animation-play-state: paused; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.frame__chip { z-index: 4; }

.frame__bar { background: radial-gradient(55% 260% at 62% 0%, rgba(255,160,120,.22), transparent 70%); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.frame__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 12px; color: var(--color-smoke); }
.frame__dots { display: flex; gap: 6px; }
.frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-slate-edge); }
.frame__path { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame__path b { color: #fff; font-weight: 500; }
.frame__chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-full);
  background: rgba(17,17,17,.82); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-md);
  font-size: 12px; font-weight: 500;
  animation: float 6s ease-in-out infinite;
}
.frame__chip--a { left: -28px; bottom: 22%; }
.frame__chip--b { right: -18px; top: 26%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.hero { padding-bottom: 72px; }

/* Glowing hero CTA — ember light bleeding off the right edge */
.btn--white { position: relative; background: linear-gradient(90deg, #f3f3f5 0%, #ffffff 60%, #ffe3d6 100%); }
.btn--white::after {
  content: ""; position: absolute; right: -6px; top: 50%; width: 46px; height: 46px; transform: translateY(-50%);
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(255,137,100,.95), rgba(255,137,100,0) 70%);
  filter: blur(6px);
}
.hero__ctas .btn--white { isolation: isolate; box-shadow: 0 0 24px rgba(255,137,100,.35); }

/* ---------- Clients marquee ---------- */
.clients { background: var(--surface-void); padding: 40px 0 44px; border-top: 1px solid rgba(255,255,255,.06); }
.clients__label { text-align: center; margin: 0 0 22px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-iron-veil); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__dup { display: flex; }
.client {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-width: 200px; padding: 0 36px; height: 64px; color: var(--color-smoke);
  border-right: 1px solid rgba(255,255,255,.06); transition: color .2s;
}
.client:hover { color: #fff; }
.client b { font-family: var(--font-esbuild); font-size: 22px; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.client small { font-size: 11px; color: var(--color-iron-veil); margin-top: 2px; }
.client img { max-height: 52px; max-width: 150px; width: auto; filter: brightness(0) invert(.6); transition: filter .2s; }
.client:hover img { filter: brightness(0) invert(.8); }
.client img.is-square { max-height: 64px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Production credit (Giganto Club) ---------- */
.credit {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin-bottom: 20px;
  background: #0e0e10; color: #fff; border-radius: var(--radius-3xl); overflow: hidden;
  position: relative; isolation: isolate; box-shadow: var(--shadow-xl);
  transition: transform .3s ease;
}
.credit:hover { transform: translateY(-3px); }
.credit::before {
  content: ""; position: absolute; z-index: -1; left: -120px; bottom: -200px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,170,129,.35), rgba(255,218,159,.12) 40%, transparent 70%);
}
.credit__body { padding: 40px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.credit__body p { margin: 0; color: var(--color-ash); font-size: 15px; font-weight: 300; max-width: 480px; }
.credit__body p b { color: #fff; font-weight: 600; }
.credit__meta { display: flex; gap: 28px; flex-wrap: wrap; }
.credit__meta span { display: flex; flex-direction: column; font-size: 12px; color: var(--color-smoke); }
.credit__meta b { font-family: var(--font-esbuild); font-size: 24px; font-weight: 500; color: #fff; letter-spacing: -0.03em; }
.credit__art { position: relative; padding: 28px; display: grid; background: radial-gradient(120% 90% at 70% 20%, rgba(86,131,218,.35), transparent 60%); }
.credit__screen {
  position: relative; border-radius: var(--radius-xl); border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(160deg, #1a2440 0%, #13141a 55%, #2a1610 100%);
  min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; overflow: hidden;
}
.credit__screen::before {
  content: ""; position: absolute; right: 20%; top: -30%; width: 6px; height: 140%; transform: rotate(18deg);
  background: linear-gradient(180deg, transparent, rgba(160,190,255,.9), rgba(255,200,170,.9), transparent); filter: blur(3px);
}
.credit__rec { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--color-frost); }
.credit__rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a4f; box-shadow: 0 0 10px #ff5a4f; animation: blink 1.6s ease-in-out infinite; }
.credit__title { font-family: var(--font-esbuild); font-size: clamp(36px, 4vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: .9; position: relative; }
.credit__wave { display: flex; align-items: flex-end; gap: 4px; height: 36px; margin-top: 16px; position: relative; }
.credit__wave i { flex: 1; border-radius: 2px; background: linear-gradient(180deg, var(--color-ember-pulse), var(--color-electric-iris)); animation: eq 1.2s ease-in-out infinite alternate; }
.credit__wave i:nth-child(odd) { animation-duration: .9s; }
.credit__wave i:nth-child(3n) { animation-duration: 1.5s; }
.credit__wave i:nth-child(4n) { animation-delay: -.4s; }
@keyframes eq { from { height: 15%; } to { height: 100%; } }

/* YouTube click-to-play */
.credit__art { align-content: center; }
.yt, .yt__frame {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-xl); border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-xl); display: block; background: #000;
}
.yt { position: relative; overflow: hidden; padding: 0; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s; filter: saturate(1.05) brightness(.85); }
.yt:hover img { transform: scale(1.04); filter: brightness(1); }
.yt__play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.95); box-shadow: 0 0 0 10px rgba(255,255,255,.15), 0 0 40px rgba(255,137,100,.6);
  transition: transform .25s ease;
}
.yt:hover .yt__play { transform: translate(-50%, -50%) scale(1.08); }
.yt__play svg { width: 28px; height: 28px; fill: var(--color-void); margin-left: 4px; }
.yt__label {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: var(--radius-full);
  background: rgba(9,10,12,.75); backdrop-filter: blur(8px); font-size: 12px; font-weight: 500; color: #fff;
}
@keyframes blink { 50% { opacity: .3; } }

/* =========================================================
   STATS STRIP
   ========================================================= */
.strip { background: var(--surface-void); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 24px; border-left: 1px solid rgba(255,255,255,.06); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--font-esbuild); font-size: 32px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--color-smoke); font-size: 13px; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: var(--section-gap) 0; position: relative; }
.section--dark { background: var(--surface-void); }
.section--light { background: var(--surface-light); color: var(--ink); }
.section--linen { background: linear-gradient(180deg, var(--surface-light) 0%, #eef0fb 100%); color: var(--ink); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__lede { font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; color: var(--color-ash); margin: 20px 0 0; font-weight: 300; max-width: 560px; }
.section__head--center .section__lede { margin-inline: auto; }
.section__lede--dark { color: var(--color-obsidian-canvas); }
.section--light .muted, .section--linen .muted { color: var(--color-iron-veil); }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--element-gap); }
.card {
  position: relative; overflow: hidden;
  background: var(--surface-card); border: 1px solid #1e1f23; border-radius: var(--radius-xl);
  padding: var(--card-padding); min-height: 240px;
  display: flex; flex-direction: column;
  transition: border-color .3s;
}
.card:hover { border-color: var(--color-slate-edge); }
.card h3 { font-family: var(--font-esbuild); font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin: auto 0 12px; }
.card p { margin: 0; color: var(--color-ash); }
.card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); margin-bottom: 40px; }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--color-frost); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* cursor-following glow */
.card--glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255,137,100,.16), rgba(86,131,218,.08) 40%, transparent 70%);
}
.card--glow:hover::before { opacity: 1; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px;
  grid-auto-flow: dense; gap: var(--element-gap);
}
.shot {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: var(--color-linen); cursor: zoom-in; border: 0; padding: 0; text-align: left;
  box-shadow: var(--shadow-sm);
}
.shot--wide { grid-column: span 2; }
.shot--big { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.05); }
.shot__meta {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(5,5,6,.85));
  color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px;
  opacity: 0; transform: translateY(8px); transition: all .3s ease;
}
.shot:hover .shot__meta, .shot:focus-visible .shot__meta { opacity: 1; transform: none; }
.shot__meta b { font-weight: 500; font-size: 14px; }
.shot__meta .tag { background: rgba(255,255,255,.14); color: #fff; }
.shot.is-hidden { display: none; }

/* ---------- Founders ---------- */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.founder {
  background: var(--surface-card); border: 1px solid #1e1f23; border-radius: var(--radius-3xl);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
}
.founder::before {
  content: ""; position: absolute; inset: auto -30% -40% auto; width: 420px; height: 420px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,170,129,.14), transparent 65%);
}
.founder:nth-child(2)::before { background: radial-gradient(circle, rgba(86,131,218,.18), transparent 65%); }
.founder__photo {
  width: 148px; aspect-ratio: 1; margin: 28px 28px 0; overflow: hidden; background: #000;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-md);
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(1) contrast(1.05); transition: filter .5s, transform .8s; }
.founder:hover .founder__photo img { filter: grayscale(0); transform: scale(1.03); }
.founder__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.founder__body .tag { align-self: flex-start; }
.founder__body > p { margin: 0; color: var(--color-ash); font-size: 15px; font-weight: 300; line-height: 1.55; }
.founder__list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.founder__list li { padding-left: 20px; position: relative; color: var(--color-frost); }
.founder__list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-ember-pulse); }
.founder__list b { color: #fff; font-weight: 600; }
.founder__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.founder__links a { padding: 8px 14px; border-radius: var(--radius-full); border: 1px solid var(--color-slate-edge); font-size: 13px; font-weight: 500; transition: all .2s; }
.founder__links a:hover { background: #fff; color: var(--color-charcoal-card); border-color: #fff; }

/* ---------- Ventures ---------- */
.ventures {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(220px, auto); gap: var(--element-gap);
}
.venture {
  position: relative; overflow: hidden; isolation: isolate;
  background: #0e0e10; color: #fff; border-radius: var(--radius-xl);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-md); transition: transform .3s ease, box-shadow .3s ease;
}
.venture:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.venture::before {
  content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -140px; top: -140px; opacity: .55; transition: opacity .3s;
}
.venture:hover::before { opacity: .9; }
.venture--iris::before { background: radial-gradient(circle, rgba(86,131,218,.75), transparent 65%); }
.venture--ember::before { background: radial-gradient(circle, #ffaa81 0%, rgba(255,218,159,.35) 35%, transparent 65%); }
.venture p { margin: 0; color: var(--color-ash); max-width: 440px; }
.venture__who { font-size: 12px; font-weight: 600; color: var(--color-smoke); text-transform: uppercase; letter-spacing: .06em; }
.venture .display-sm { margin-top: auto; }
.venture__link { font-size: 13px; font-weight: 500; color: var(--color-frost); margin-top: 6px; }
.venture--xl { grid-column: span 2; grid-row: span 2; }
.venture--xl .display-sm { font-size: clamp(40px, 5vw, 64px); margin-top: 0; }
.venture--xl p { font-size: 16px; }
.venture--xl-h { grid-column: span 2; }
/* Venture imagery */
.venture__media {
  margin: -24px -24px 8px; height: 170px; overflow: hidden; position: relative;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.venture__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.venture:hover .venture__media img { transform: scale(1.05); }
.venture--xl-h .venture__media { height: 200px; }
.venture__media--fill {
  flex: 1; min-height: 260px; margin: 16px -24px -24px; height: auto;
  border-bottom: 0; border-top: 1px solid rgba(255,255,255,.06);
}
.venture__media--fill img { position: absolute; inset: 0; }
.venture__media figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: var(--radius-full);
  background: rgba(9,10,12,.72); backdrop-filter: blur(8px); font-size: 12px; font-weight: 500; color: #fff;
}
.venture .display-sm { margin-top: 0; }
.venture__link { margin-top: auto; padding-top: 6px; }

/* ---------- Press ---------- */
.press { border-top: 1px solid rgba(255,255,255,.06); }
.press .section__head--row .section__lede { margin: 0; max-width: 420px; }
.press__videos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 20px; margin-bottom: 20px; }
.press__video {
  background: var(--surface-card); border: 1px solid #1e1f23; border-radius: var(--radius-xl);
  overflow: hidden; display: flex; flex-direction: column;
}
.press__video--lead { grid-row: span 2; }
.press__video .yt, .press__video .yt__frame { border: 0; border-radius: 0; box-shadow: none; }
.press__meta { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.press__meta h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.press__video--lead .press__meta h3 { font-family: var(--font-esbuild); font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.press__meta p { margin: 0; color: var(--color-ash); }
.press__outlet { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--color-ember-pulse); }
.press__outlet time { color: var(--color-iron-veil); font-weight: 600; }
.press__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.press__thumb--brand {
  display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px;
  background: radial-gradient(120% 120% at 80% 0%, rgba(86,131,218,.35), transparent 60%), linear-gradient(160deg, #15171d, #0e0e10);
}
.press__thumb--brand img { width: auto !important; height: auto !important; max-width: 38%; max-height: 44px; filter: brightness(0) invert(1); }
.press__thumb--brand span { color: var(--color-smoke); font-size: 20px; }
.press__thumb img.is-portrait { object-position: center 25%; filter: grayscale(1); }
.press__card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: var(--radius-xl); background: var(--surface-card); border: 1px solid #1e1f23;
  transition: border-color .25s, transform .25s;
}
.press__card:hover { border-color: var(--color-slate-edge); transform: translateY(-3px); }
.press__thumb { margin: 0; aspect-ratio: 40/21; overflow: hidden; background: #1a1b1f; border-bottom: 1px solid #1e1f23; }
.press__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.press__card:hover .press__thumb img { transform: scale(1.04); }
.press__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.press__card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.press__card p { margin: 0; color: var(--color-ash); }
.press__read { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 500; color: var(--color-frost); }
@media (max-width: 1024px) {
  .press__videos { grid-template-columns: 1fr 1fr; }
  .press__video--lead { grid-column: span 2; grid-row: auto; }
  .press__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .press__videos, .press__grid { grid-template-columns: 1fr; }
  .press__video--lead { grid-column: auto; }
}

/* ---------- Contact ---------- */
.contact { overflow: hidden; padding-bottom: 120px; }
.contact__glow {
  position: absolute; left: 50%; bottom: -520px; width: 1100px; height: 900px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,218,159,.35) 0%, rgba(255,137,100,.22) 25%, rgba(86,131,218,.14) 50%, transparent 70%);
}
.contact__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; position: relative; }
.contact__copy .display { margin-bottom: 8px; }
.contact__info { margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.contact__info dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-smoke); margin-bottom: 6px; }
.contact__info dd { margin: 0; color: var(--color-frost); font-size: 15px; overflow-wrap: anywhere; }
.contact__info a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 6px 14px; }

.contact__form {
  background: rgba(17,17,17,.8); backdrop-filter: blur(12px);
  border: 1px solid #222328; border-radius: var(--radius-3xl);
  padding: 32px; display: grid; gap: 16px; box-shadow: var(--shadow-xl);
}
.contact__form label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: var(--color-frost); }
.contact__form input, .contact__form select, .contact__form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: #0b0c0e; border: 1px solid var(--color-slate-edge); color: #fff;
  font: 400 14px/1.4 var(--font-inter); transition: border-color .2s, box-shadow .2s;
}
.contact__form textarea { resize: vertical; }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--color-electric-iris); box-shadow: 0 0 0 3px rgba(86,131,218,.25);
}
.form__note { margin: 0; text-align: center; font-size: 12px; color: var(--color-iron-veil); }

/* ---------- Footer ---------- */
.footer { background: var(--surface-void); border-top: 1px solid rgba(255,255,255,.06); padding: 32px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand b { display: block; font-weight: 600; }
.footer__brand span { font-size: 12px; color: var(--color-smoke); }
.footer__links { display: flex; gap: 24px; }
.footer__links a, .footer__copy { font-size: 13px; color: var(--color-smoke); }
.footer__links a:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(9,10,12,.92); backdrop-filter: blur(8px);
  animation: fadeIn .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-weight: 500; }
.lightbox figcaption a { color: var(--color-ember-pulse); }
.lightbox__close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 24px; line-height: 1; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .ventures { grid-template-columns: repeat(2, 1fr); }
  .venture--xl-h { grid-column: auto; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .credit { grid-template-columns: 1fr; }
  .credit__art { padding: 0 28px 28px; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 64px 16px auto 16px; flex-direction: column; gap: 0; margin: 0;
    background: rgba(17,17,17,.96); backdrop-filter: blur(14px);
    border: 1px solid #222328; border-radius: 20px; padding: 8px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: all .25s ease;
  }
  .nav__links a { padding: 14px 16px; border-radius: 12px; font-size: 16px; }
  .nav__links a:hover { background: rgba(255,255,255,.05); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgba(9,10,12,.9); }
  .nav__toggle { display: block; }
  .nav__star { display: none; }
  .nav__actions { margin-left: auto; }

  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.06); }
  .founders { grid-template-columns: 1fr; }
  .frame__chip { display: none; }
  .showcase { aspect-ratio: 4/3; }
  .showcase__nav { opacity: 1; width: 36px; height: 36px; margin-top: -18px; }
  .showcase__bar { flex-direction: column; align-items: flex-start; gap: 10px; left: 14px; right: 14px; bottom: 14px; }
}

@media (max-width: 600px) {
  :root { --section-gap: 72px; }
  .container { padding: 0 16px; }
  .nav__inner { padding: 12px 16px; gap: 12px; }
  .nav__brand em { display: none; }
  .nav__actions .btn { display: none; }
  .hero { padding-top: 112px; }
  .hero__lede, .section__lede { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__icon { margin-bottom: 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .shot__meta { opacity: 1; transform: none; padding: 28px 10px 10px; }
  .shot__meta .tag { display: none; }
  .ventures { grid-template-columns: 1fr; }
  .venture--xl, .venture--xl-h { grid-column: auto; grid-row: auto; }
  .contact__info { grid-template-columns: 1fr; }
  .contact__form { padding: 20px; border-radius: 20px; }
  .credit__body { padding: 24px; }
  .credit__art { padding: 0 16px 16px; }
  .credit__screen { min-height: 200px; }
  .client { min-width: 170px; padding: 0 24px; }
  .client b { font-size: 18px; }
  .founder__body { padding: 20px; }
  .founder__photo { width: 112px; margin: 20px 20px 0; border-radius: 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
