:root {
  --bg: #050505;
  --ink: #f4f3ef;
  --ink-2: rgba(244, 243, 239, 0.62);
  --ink-3: rgba(244, 243, 239, 0.34);
  --line: rgba(244, 243, 239, 0.28);
  --glass: rgba(18, 18, 18, 0.55);
  --gutter: clamp(16px, 3.4vw, 56px);
  --radius: 18px;
  --mark-w: min(56vw, 1000px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.micro {
  font-size: 12px;
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin: 0;
}
.dim { color: var(--ink-3); }

/* ---------- header ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__logo { width: 34px; height: 34px; color: var(--ink); transition: transform .6s var(--ease); }
.nav__logo:hover { transform: rotate(45deg); }
.nav__logo svg { width: 100%; height: 100%; }
.nav__switch {
  position: relative;
  display: flex;
  padding: 3px;
  border-radius: 99px;
  background: rgba(40, 40, 40, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav__switch a {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .4s var(--ease);
}
.nav__switch a.is-active { color: #0a0a0a; }
.nav__pill {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  border-radius: 99px;
  background: var(--ink);
  transition: transform .55s var(--ease), width .55s var(--ease);
}
.nav__right {
  justify-self: end;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__right:hover { color: var(--ink-2); }

/* ---------- shared ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 14px;
  border-radius: 99px;
  background: var(--ink);
  color: #0a0a0a;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .4s var(--ease), background .3s;
}
.btn-pill:hover { transform: translateY(-2px); background: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: default;
  transition: background .3s, color .3s, border-color .3s;
}
.chip--icon { padding: 4px 9px; }

/* ---------- 01 · hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
}
.hero__labels {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  right: var(--gutter);
  top: 26vh;
  display: grid;
  grid-template-columns: 47fr 25fr 28fr;
}
.hero__cta-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 42px; }

.stream {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.stream__card {
  position: absolute;
  left: 0; top: 0;
  border-radius: var(--radius);
  overflow: hidden;
  will-change: transform, opacity;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  background: #111;
  opacity: 0;
}
.stream__card img { width: 100%; height: 100%; object-fit: cover; }

.hero__mark {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: 21vh;
  width: var(--mark-w);
  display: flex;
  align-items: flex-end;
}
.wordmark { width: 100%; height: auto; overflow: hidden; }
.wordmark path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 44;
  stroke-linejoin: miter;
  stroke-miterlimit: 4;
  stroke-linecap: butt;
}
.wm-reg {
  flex: none;
  margin: 0 0 0.2vw -0.4vw;
  font-size: clamp(18px, 2.5vw, 40px);
  line-height: 1;
  font-weight: 300;
}

.hero__copy {
  position: absolute;
  z-index: 5;
  left: calc(var(--gutter) + var(--mark-w) + 4.5vw);
  right: var(--gutter);
  bottom: 12vh;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  row-gap: clamp(28px, 7vh, 64px);
}
.hero__copy h1 {
  margin: 0;
  font-size: clamp(20px, 1.75vw, 30px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.hero__ver { align-self: end; color: var(--ink-2); }
.hero__crumb { grid-column: 1 / -1; display: flex; gap: 28px; color: var(--ink-2); }

.hero__chips {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  bottom: 5vh;
  max-width: 360px;
}

/* ---------- 02 · reveal ---------- */
.reveal { position: relative; }
.reveal__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
}
.reveal__link {
  position: absolute;
  z-index: 6;
  top: 17vh;
  left: calc(var(--gutter) + 18vw);
  display: flex;
  align-items: center;
  gap: 18px;
}
.circle-arrow {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 15px;
  transition: background .3s, color .3s, transform .5s var(--ease);
}
.reveal__link:hover .circle-arrow { background: var(--ink); color: #0a0a0a; transform: rotate(45deg); }

.reveal__title {
  position: absolute;
  z-index: 2;
  left: calc(var(--gutter) + 6vw);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: clamp(56px, 12.4vw, 230px);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.045em;
}
.reveal__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.reveal__title .line > span { display: block; will-change: transform; }
.reveal__title em { font-style: italic; font-weight: 300; letter-spacing: -0.05em; }

.deck {
  position: absolute;
  inset: 0;
  z-index: 3;
  perspective: 1400px;
  pointer-events: none;
}
.deck__card {
  position: absolute;
  left: 0; top: 0;
  width: var(--cw, 300px);
  aspect-ratio: 1 / 1.08;
  border-radius: 34px;
  overflow: hidden;
  background: #151515;
  will-change: transform, opacity;
  box-shadow: -30px 30px 60px -10px rgba(0, 0, 0, .7);
}
.deck__card img { width: 100%; height: 100%; object-fit: cover; }

.reveal__cap { position: absolute; z-index: 6; bottom: 7vh; }
.reveal__cap--l { left: var(--gutter); }
.reveal__cap--r { left: 66%; }

/* ---------- 03 · studio ---------- */
.studio {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
}
.wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  perspective: var(--p, 1000px);
  perspective-origin: 50% 36%;
  touch-action: pan-y;
  cursor: grab;
}
.wall.is-drag { cursor: grabbing; }
.wall__scene {
  position: absolute;
  left: 50%;
  top: 36%;
  width: 0; height: 0;
  transform-style: preserve-3d;
}
.tile {
  position: absolute;
  left: 0; top: 0;
  width: var(--tw);
  height: var(--th);
  margin: calc(var(--th) / -2) 0 0 calc(var(--tw) / -2);
  border-radius: calc(var(--tw) * .07);
  overflow: hidden;
  background: #121212;
  backface-visibility: hidden;
  will-change: transform;
}
.tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }

.studio__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 22% at 50% 38%, rgba(5,5,5,.72), rgba(5,5,5,0) 100%),
    linear-gradient(180deg, rgba(5,5,5,.35) 0%, rgba(5,5,5,.18) 30%, rgba(5,5,5,.62) 52%, #050505 74%);
}

.rail {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  top: 36%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rail__item { display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--ink-2); }
.rail__item:hover, .rail__item.is-active { color: var(--ink); }
.rail__btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #0a0a0a;
  transition: transform .5s var(--ease);
}
.rail__item:hover .rail__btn { transform: scale(1.08); }
.rail__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }

.studio__center {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 2 * var(--gutter)));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.studio__title {
  margin: 0;
  font-size: clamp(32px, 3.3vw, 54px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.studio__sub { margin: 14px 0 0; font-size: 13px; color: var(--ink); opacity: .82; }

.prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: clamp(34px, 7vh, 64px);
  padding: 8px 8px 8px 22px;
  border-radius: 99px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 50px -20px rgba(0,0,0,.9);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  transition: border-color .3s;
}
.prompt:focus-within { border-color: rgba(255,255,255,.4); }
.prompt input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}
.prompt input::placeholder { color: var(--ink-2); }
.prompt__go {
  flex: none;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  height: 34px;
  padding: 0 14px 0 16px;
  border: 0;
  border-radius: 99px;
  background: var(--ink);
  color: #0a0a0a;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .4s var(--ease);
}
.prompt__go:hover { transform: translateX(2px); }
.prompt.is-busy .prompt__go { opacity: .6; pointer-events: none; }

.studio__chips { justify-content: center; margin-top: 16px; }
.studio__chips .chip { cursor: pointer; }
.studio__chips .chip:hover { border-color: rgba(255,255,255,.6); }
.studio__chips .chip.is-on { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }
.chip--solid { width: 26px; padding: 0; background: var(--ink); color: #0a0a0a; border-color: var(--ink); }
.chip--solid svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.renders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 28px;
}
.renders:empty { display: none; }
.render {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(110deg, #141414 30%, #2a2a2a 50%, #141414 70%) 0 0 / 300% 100%;
  animation: shimmer 1.2s linear infinite;
}
.render img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease), filter 1.2s var(--ease); filter: blur(14px); }
.render.is-done { animation: none; }
.render.is-done img { opacity: 1; filter: none; }
.render__meta { grid-column: 1 / -1; font-size: 11px; color: var(--ink-2); letter-spacing: .03em; text-transform: uppercase; }
@keyframes shimmer { to { background-position: -150% 0; } }

.foot {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-3);
  font-size: 11px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__labels { grid-template-columns: 1fr 1fr; top: 15vh; }
  .hero__mid { display: none; }
  .hero__cta-wrap { gap: 24px; }
  .hero__mark { width: calc(100% - 2 * var(--gutter) - 20px); bottom: 32vh; }
  .hero__copy { left: var(--gutter); right: var(--gutter); width: auto; bottom: 14vh; row-gap: 18px; }
  .hero__copy h1 { font-size: clamp(20px, 5.4vw, 28px); }
  .hero__chips { bottom: 3.5vh; }

  .reveal__link { left: var(--gutter); top: 14vh; }
  .reveal__title { left: var(--gutter); font-size: clamp(48px, 14.5vw, 130px); }
  .reveal__cap--r { left: auto; right: var(--gutter); text-align: right; }

  .rail { top: auto; bottom: 64px; left: 50%; transform: translateX(-50%); flex-direction: row; gap: 14px; }
  .rail__item > span:last-child { display: none; }
  .studio__center { top: 20%; }
  .renders { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .foot span:nth-child(2) { display: none; }
}
@media (max-width: 520px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav__switch { justify-self: end; }
  .nav__right { display: none; }
  .nav__switch a { padding: 6px 10px; font-size: 10px; }
  .hero__labels .micro { font-size: 11px; }
  .reveal__cap--l { display: none; }
  .reveal__title { top: 36%; }
  .reveal__link { top: 12vh; }
  .reveal__cap--r { left: var(--gutter); right: auto; text-align: left; }
  .studio__center { top: 17%; }
  .studio__chips .chip { padding: 4px 9px; }
}
