/* VEYORA · weveyora.io
   Palette from the brand board: ink #0B0911, paper #F4F0E8, violet #8B5CF6, lavender #C9B6FF.
   Type: Unbounded (display), Space Grotesk (text), JetBrains Mono (labels and numbers). */

:root {
  --ink: #0B0911;
  --ink-1: #100D18;
  --ink-2: #17131F;
  --ink-3: #221C2E;
  --paper: #F4F0E8;
  --paper-1: #FBF9F4;
  --paper-2: #ECE6DA;
  --violet: #8B5CF6;
  --violet-ink: #6B3FE4;   /* violet dark enough for small text on paper (5.3:1) */
  --lavender: #C9B6FF;
  --dim: #B4ADBF;          /* secondary text on ink */
  --faint: #8C849E;        /* tertiary text on ink */
  --soft: #5A5368;         /* secondary text on paper */
  --line-d: rgba(244, 240, 232, .12);
  --line-p: rgba(11, 9, 17, .14);
  --f-display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --f-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --pad: clamp(88px, 11vw, 168px);
  --r-sheet: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { font-weight: inherit; }
::selection { background: var(--violet); color: var(--paper); }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible { outline-color: var(--violet-ink); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- shared bits ---------- */
.label {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font: 500 12px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft);
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; flex: none; }
.ink .label, .ink2 .label { color: var(--dim); }
.label-lav { color: var(--lavender) !important; }
.sep { font-style: normal; opacity: .5; }
.mono-sm { font: 500 11.5px/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.paper .mono-sm { color: var(--soft); }

.h2 {
  margin: 20px 0 0;
  font: 300 clamp(2.3rem, 5.4vw, 5rem)/1.02 var(--f-display);
  letter-spacing: -.05em;
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--violet-ink); }
.ink .h2 em, .ink2 .h2 em { color: var(--lavender); }

.sec-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 0;
  align-items: end; margin-bottom: clamp(44px, 6vw, 88px);
}
.sec-head .label { grid-column: 1 / -1; }
.sec-head .h2 { grid-column: 1 / span 8; }
.sec-head .sec-note { grid-column: 9 / span 4; }
.sec-note { margin: 0; max-width: 36ch; color: var(--soft); font-size: 1rem; }
.ink .sec-note, .ink2 .sec-note { color: var(--dim); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--f-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .3s;
}
.btn span { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--lavender); box-shadow: 0 0 0 6px rgba(201, 182, 255, .14), 0 18px 40px -16px rgba(139, 92, 246, .7); }
.btn-line { border-color: rgba(244, 240, 232, .3); color: var(--paper); background: transparent; }
.btn-line:hover { border-color: var(--lavender); color: var(--lavender); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--violet-ink); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { color: inherit; text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translate(2px, -2px); }
.ink .link-arrow, .ink2 .link-arrow { color: var(--lavender); }
.ink .link-arrow:hover { color: var(--paper); }

/* sheets: each section after the hero slides over the last one like a sheet of paper */
.sheet { position: relative; border-radius: var(--r-sheet) var(--r-sheet) 0 0; margin-top: calc(var(--r-sheet) * -1); }
.paper { background: var(--paper); color: var(--ink); }
.ink { background: var(--ink); color: var(--paper); }
.ink2 { background: var(--ink-1); color: var(--paper); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.site-header.is-solid {
  background: rgba(11, 9, 17, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-d);
}
.bar { display: flex; align-items: center; gap: 28px; height: 72px; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-word { width: 112px; height: 12px; flex: none; }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 14.5px; }
.nav a { color: var(--dim); text-decoration: none; transition: color .2s; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--lavender); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--paper); }
.nav a:hover::after { transform: scaleX(1); }
.menu-btn {
  display: none; align-items: center; gap: 10px; height: 40px; padding: 0 16px; margin-left: auto;
  border: 1px solid rgba(244, 240, 232, .28); border-radius: 999px; background: transparent; color: var(--paper);
  font: 500 14px var(--f-sans); cursor: pointer;
}
.menu-lines { width: 14px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: height .3s var(--ease); }
.menu-open .menu-lines { height: 1.5px; border-bottom: 0; }
.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--ink);
  display: flex; flex-direction: column; padding: 104px var(--gutter) 32px; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu > a {
  display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-d);
  color: var(--paper); text-decoration: none; font: 300 clamp(1.9rem, 8vw, 2.8rem)/1.1 var(--f-display); letter-spacing: -.045em;
}
.menu > a span { font: 500 12px var(--f-mono); letter-spacing: .1em; color: var(--lavender); }
.menu-foot { display: flex; gap: 24px; margin: auto 0 0; padding-top: 32px; }
.menu-foot a { color: var(--dim); text-decoration: none; }
.menu-open { overflow: hidden; }

/* ---------- hero: the door ---------- */
.hero { position: relative; height: 100vh; height: 100svh; background: var(--ink); }
.js .hero { height: 185vh; z-index: 2; background: transparent; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(48% 58% at 73% 50%, rgba(139, 92, 246, .26), transparent 70%),
    radial-gradient(26% 30% at 73% 50%, rgba(201, 182, 255, .12), transparent 72%),
    radial-gradient(40% 40% at 10% 110%, rgba(201, 182, 255, .07), transparent 70%),
    linear-gradient(180deg, #0B0911 0%, #0D0A15 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.door {
  --door-x: 73%; --door-y: 50%; --door-w: min(40vw, 72vh);
  position: absolute; left: var(--door-x); top: var(--door-y); width: var(--door-w); aspect-ratio: 1; z-index: -1;
  transform: translate(-50%, -50%) translate3d(var(--dx, 0px), var(--dy, 0px), 0) scale(var(--ds, 1));
  perspective: 1400px; will-change: transform;
}
.door-tilt {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .9s var(--ease);
}
.door-halo {
  position: absolute; inset: -32%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .42), rgba(139, 92, 246, .12) 55%, transparent 76%);
  filter: blur(18px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .78; transform: scale(.96); } }
.door-light { position: absolute; inset: 0; width: 100%; height: 100%; }
.door-seam {
  position: absolute; left: 39.5%; top: 40%; width: 16.5%; height: 52%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(244, 240, 232, .55) 45%, rgba(201, 182, 255, 0));
  filter: blur(6px); opacity: .9;
  animation: seam 5.5s ease-in-out infinite;
}
@keyframes seam { 50% { opacity: .65; transform: scaleX(.82); } }
/* light that spills over the inner edges of the wings */
.door-spill {
  position: absolute; left: 30%; top: 30%; width: 36%; height: 68%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 252, 245, .55), rgba(201, 182, 255, .22) 45%, rgba(201, 182, 255, 0) 75%);
  mix-blend-mode: screen; filter: blur(4px);
  animation: seam 5.5s ease-in-out infinite;
}
.door-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wing {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  backface-visibility: visible; will-change: transform;
}
.wing-l { transform-origin: 9% 50%; transform: rotateY(calc(var(--open, 0) * 1deg)); }
.wing-r { transform-origin: 91% 50%; transform: rotateY(calc(var(--open, 0) * -1deg)); }
.door-floor {
  position: absolute; left: 6%; right: 6%; top: 84%; height: 26%;
  background: radial-gradient(closest-side, rgba(201, 182, 255, .34), rgba(139, 92, 246, .1) 60%, transparent);
  filter: blur(12px); transform: scaleY(.45); pointer-events: none;
}

.hero-copy {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 72px; padding-bottom: 88px;
  will-change: opacity, transform;
}
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 30px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
.kicker i { font-style: normal; color: var(--faint); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lavender); animation: pulse 2.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 182, 255, .55); }
  70% { box-shadow: 0 0 0 10px rgba(201, 182, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 182, 255, 0); }
}
.hero-title {
  margin: 0; max-width: 10.5ch;
  font: 200 clamp(3rem, 8.2vw, 8.4rem)/.96 var(--f-display);
  letter-spacing: -.06em; color: var(--paper);
}
.unseen { position: relative; display: inline-block; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(201, 182, 255, .55); }
.unseen::after {
  content: attr(data-text); position: absolute; left: 0; top: 0;
  -webkit-text-stroke: 0; color: transparent;
  background: linear-gradient(90deg, var(--lavender) 0 42%, #fff 50%, rgba(201, 182, 255, 0) 58% 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 22px rgba(139, 92, 246, .45));
  animation: materialize 2.6s var(--ease) .8s forwards;
}
.unseen:hover::after { animation: rematerialize 1.8s var(--ease) forwards; }
@keyframes materialize { to { background-position: 0 0; } }
@keyframes rematerialize { from { background-position: 100% 0; } to { background-position: 0 0; } }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .unseen { color: var(--lavender); -webkit-text-stroke: 0; }
  .unseen::after { display: none; }
}
.hero-sub { margin: 30px 0 0; max-width: 35ch; color: var(--dim); font-size: clamp(1.05rem, 1.3vw, 1.22rem); line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 26px;
  font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.scroll-cue { display: flex; align-items: center; gap: 12px; }
.scroll-cue i { position: relative; width: 1px; height: 34px; overflow: hidden; background: rgba(244, 240, 232, .16); }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--lavender); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
.hero-index b { margin-left: 16px; color: var(--lavender); font-weight: 500; }
.hero-index b:first-child { margin-left: 0; }
/* the light from the door: a soft bloom that grows from the slit until the whole screen is paper */
.bloom {
  position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none;
  width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax; border-radius: 50%;
  background: radial-gradient(closest-side, var(--paper) 0, var(--paper) 50%, rgba(244, 240, 232, .8) 58%, rgba(232, 222, 255, .35) 66%, rgba(201, 182, 255, 0) 74%);
  transform: translate3d(var(--bx, 50vw), var(--by, 50vh), 0) scale(var(--bsx, 0), var(--bsy, 0));
  opacity: var(--bo, 0); will-change: transform, opacity;
}

/* ---------- the other side ---------- */
.about { position: relative; z-index: 1; padding: clamp(110px, 13vw, 190px) 0 clamp(70px, 8vw, 120px); background: var(--paper); }
.js .about { margin-top: -100vh; margin-top: -100svh; }
.js .about::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 120vh; background: var(--paper); }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.about-grid .label { grid-column: 1 / -1; }
.statement {
  grid-column: 1 / span 11; margin: 30px 0 0;
  font: 300 clamp(1.55rem, 3.15vw, 3rem)/1.2 var(--f-display); letter-spacing: -.04em; text-wrap: pretty;
}
.statement .w { transition: opacity .25s linear; }
.js .statement .w { opacity: var(--o, .14); }
.about-aside { grid-column: 8 / span 5; margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--line-p); color: var(--soft); }
.about-aside p { margin: 0 0 10px; }
.about-aside b { color: var(--ink); font-weight: 600; }

/* ---------- what we make ---------- */
.work { padding: 0 0 calc(var(--pad) + var(--r-sheet)); }
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-p); }
.work-row {
  position: relative; display: grid;
  grid-template-columns: 56px minmax(0, 4.1fr) minmax(0, 4.4fr) minmax(0, 3.5fr);
  column-gap: 28px; align-items: start; padding: 38px 0; border-bottom: 1px solid var(--line-p);
}
.work-row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: 0; opacity: 0;
  background: linear-gradient(90deg, rgba(201, 182, 255, .3), rgba(201, 182, 255, 0) 70%);
  transition: opacity .45s;
}
.work-row:hover::before { opacity: 1; }
.work-row > * { position: relative; z-index: 1; }
.work-n { padding-top: 14px; font: 500 13px/1 var(--f-mono); color: var(--violet-ink); }
.work-t { margin: 0; font: 300 clamp(1.7rem, 2.8vw, 2.6rem)/1.06 var(--f-display); letter-spacing: -.045em; transition: transform .55s var(--ease); }
.work-row:hover .work-t { transform: translateX(8px); }
.work-d p { margin: 0 0 12px; max-width: 46ch; }
.work-d .work-eg { margin: 0; font: 500 12px/1.65 var(--f-mono); color: var(--soft); }

.spec {
  min-height: 160px; padding: 14px 16px; border-radius: 16px; overflow: hidden;
  background: var(--ink); color: var(--paper); font: 400 12px/1.55 var(--f-mono);
  box-shadow: 0 30px 50px -32px rgba(11, 9, 17, .6);
}
.spec-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--faint); }
.spec-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--lavender); animation: pulse 2s infinite; }
.sl { margin: 0; }
.js .spec .sl { opacity: 0; transform: translateY(4px); }
.sl b { display: inline-block; width: 52px; color: var(--lavender); font-weight: 500; }
.sl-wait { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: var(--paper); }
.sl-wait em { font-style: normal; font-weight: 500; color: var(--ink); background: var(--lavender); border-radius: 999px; padding: 2px 10px; }
.js .spec.play .sl { animation: line-in 8s var(--ease) infinite both; }
.js .spec.play .sl:nth-of-type(2) { animation-delay: .5s; }
.js .spec.play .sl:nth-of-type(3) { animation-delay: 1s; }
.js .spec.play .sl:nth-of-type(4) { animation-delay: 1.5s; }
.js .spec.play .sl:nth-of-type(5) { animation-delay: 2.1s; }
@keyframes line-in { 0% { opacity: 0; transform: translateY(4px); } 6%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }

.spec-flow { display: flex; align-items: center; }
.spec-flow svg { width: 100%; height: auto; overflow: visible; }
.flow-path { fill: none; stroke: rgba(201, 182, 255, .45); stroke-width: 1.5; stroke-dasharray: 4 5; }
.flow-node circle { fill: var(--ink-2); stroke: rgba(244, 240, 232, .32); }
.flow-node text { fill: var(--dim); font: 500 11px var(--f-mono); text-anchor: middle; }
.flow-dot {
  fill: var(--lavender); offset-path: path("M30 60 C 80 10, 110 110, 130 60 S 190 10, 230 60"); offset-rotate: 0deg;
  filter: drop-shadow(0 0 6px rgba(201, 182, 255, .9));
}
.spec.play .flow-dot { animation: flow 3.4s var(--ease-io) infinite; }
@keyframes flow { from { offset-distance: 0%; } to { offset-distance: 100%; } }

.spec-files { position: relative; padding: 0; background: transparent; box-shadow: none; overflow: visible; }
.file {
  position: absolute; left: 6%; width: 66%; height: 44px; padding: 0 14px; border-radius: 10px;
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper);
  font: 500 12px var(--f-mono); box-shadow: 0 18px 30px -18px rgba(11, 9, 17, .7);
  transition: transform .7s var(--ease);
}
.file i { width: 34px; font-style: normal; color: var(--lavender); }
.f1 { top: 4px; transform: rotate(-3deg); }
.f2 { top: 38px; transform: translateX(14px) rotate(-1deg); }
.f3 { top: 72px; transform: translateX(28px) rotate(1.5deg); }
.f4 { top: 106px; transform: translateX(42px) rotate(3deg); background: var(--violet-ink); }
.f4 i { color: var(--paper); }
.work-row:hover .f1 { transform: translate(-8px, -4px) rotate(-6deg); }
.work-row:hover .f2 { transform: translateX(10px) rotate(-2deg); }
.work-row:hover .f3 { transform: translateX(34px) rotate(3deg); }
.work-row:hover .f4 { transform: translate(58px, 6px) rotate(6deg); }

@property --tc { syntax: "<integer>"; inherits: false; initial-value: 30; }
.spec-film { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.strip { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; height: 70px; }
.strip i { border-radius: 4px; background: linear-gradient(140deg, #2b1f52, #141020); }
.strip i:nth-child(2) { background: linear-gradient(140deg, #f4f0e8, #c9b6ff); }
.strip i:nth-child(3) { background: linear-gradient(140deg, #8b5cf6, #2b1f52); }
.strip i:nth-child(4) { background: radial-gradient(circle at 50% 60%, #c9b6ff, #1b1530 60%); }
.strip i:nth-child(5) { background: linear-gradient(140deg, #17131f, #6b3fe4); }
.strip i:nth-child(6) { background: linear-gradient(140deg, #f4f0e8, #ece6da); }
.strip::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; background: var(--lavender); box-shadow: 0 0 10px var(--lavender); }
.spec.play .strip::after { animation: playhead 6s linear infinite; }
@keyframes playhead { from { left: 0; } to { left: 100%; } }
.spec-film .head { display: flex; justify-content: space-between; color: var(--dim); }
.tc { counter-reset: tc var(--tc); }
.tc::after { content: "00:" counter(tc, decimal-leading-zero); }
.tc { font-size: 0; }
.tc::after { font-size: 12px; }
.spec.play .tc { animation: timecode 6s linear infinite; }
@keyframes timecode { from { --tc: 0; } to { --tc: 30; } }
.ph { display: none; }

/* ---------- build base ---------- */
.bb { padding: var(--pad) 0 calc(var(--pad) + var(--r-sheet)); overflow: hidden; }
.bb::before {
  content: ""; position: absolute; right: -12%; top: 6%; width: 62%; height: 86%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .22), transparent); filter: blur(30px);
}
.bb-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.bb-title { font-size: clamp(3rem, 7.2vw, 6.8rem); line-height: .95; margin-top: 22px; }
.bb-tag { margin: 16px 0 26px; font: 300 clamp(1.25rem, 1.9vw, 1.7rem)/1.2 var(--f-display); letter-spacing: -.035em; color: var(--lavender); }
.bb-lead { margin: 0 0 30px; max-width: 44ch; color: var(--dim); font-size: 1.06rem; }
.bb-inside { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line-d); }
.bb-inside li { display: flex; gap: 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line-d); font-size: 1.04rem; }
.bb-inside span { font: 500 12px var(--f-mono); color: var(--lavender); }
.bb-note {
  margin: 0 0 32px; max-width: 52ch; padding: 16px 18px; border: 1px dashed rgba(201, 182, 255, .32); border-radius: 12px;
  color: var(--dim); font-size: .93rem;
}
.bb-note b { display: block; margin-bottom: 6px; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); }
.bb-cta { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.bb-visual { margin: 0; }
.bb-svg { width: 100%; height: auto; filter: drop-shadow(0 40px 80px rgba(139, 92, 246, .2)); }
.bb-visual figcaption { margin-top: 14px; text-align: right; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.bb-frame { fill: #100D18; stroke: rgba(201, 182, 255, .22); }
.bb-dot { fill: #2E2740; }
.bb-rule { stroke: rgba(244, 240, 232, .08); }
.bb-room { fill: #15111E; stroke: rgba(244, 240, 232, .07); }
.bb-mono { font: 500 11px var(--f-mono); fill: var(--dim); letter-spacing: .06em; }
.bb-label { font: 500 10.5px var(--f-mono); letter-spacing: .14em; fill: var(--lavender); }
.bb-txt { font: 500 12.5px var(--f-sans); fill: var(--paper); }
.bb-txt.dim, .bb-mono.dim { fill: var(--faint); }
.bb-pill-t { font: 500 10.5px var(--f-mono); fill: var(--dim); }
.bb-col { font: 500 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; fill: var(--faint); }
.bb-sq.a { fill: var(--lavender); }
.bb-sq.b { fill: var(--violet); }
.bb-sq.c { fill: #5b4a8a; }
.bb-sq.d { fill: #3a3150; }
.bb-card { fill: #211B2E; stroke: rgba(244, 240, 232, .07); }
.bb-card.done { fill: #2b2242; }
.bb-card.hot { fill: var(--violet); stroke: var(--lavender); }
.bb-line { fill: #2a2338; }
.bb-on { fill: #3a3150; animation: agent 6s infinite; }
.bb-on.b { animation-delay: 2s; }
.bb-on.r { animation-delay: 4s; }
@keyframes agent { 0%, 30% { fill: var(--lavender); } 36%, 100% { fill: #3a3150; } }
.bb-approve { fill: #1A1526; stroke: rgba(201, 182, 255, .3); }
.bb-ok { fill: var(--lavender); }
.bb-btn { fill: var(--paper); }
.bb-btn-t { font: 600 12px var(--f-sans); fill: var(--ink); }
.bb-ring { fill: none; stroke: var(--lavender); transform-origin: 478px 456px; animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(.7); stroke-opacity: .7; } 100% { transform: scale(1.9); stroke-opacity: 0; } }

/* ---------- lab notes ---------- */
.lab {
  padding: var(--pad) 0 calc(var(--pad) + var(--r-sheet));
  background-color: var(--paper);
  background-image: linear-gradient(rgba(11, 9, 17, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 9, 17, .045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 36px); }
.note {
  position: relative; padding: clamp(24px, 2.6vw, 36px);
  background: var(--paper-1); border: 1px solid var(--line-p); border-radius: 6px 6px 16px 6px;
  box-shadow: 0 1px 0 rgba(11, 9, 17, .04), 0 26px 44px -34px rgba(11, 9, 17, .4);
  transition: transform .55s var(--ease), box-shadow .55s;
}
.note::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; margin-left: -32px;
  background: rgba(201, 182, 255, .6); border-radius: 2px; transform: rotate(-2deg);
}
.note:nth-child(1) { transform: rotate(-.6deg); }
.note:nth-child(2) { transform: rotate(.5deg); }
.note:nth-child(3) { transform: rotate(.35deg); }
.note:nth-child(4) { transform: rotate(-.45deg); }
.note:nth-child(2)::before { transform: rotate(3deg); }
.note:nth-child(3)::before { transform: rotate(-4deg); left: 30%; }
.note:nth-child(4)::before { left: 66%; }
.note:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 1px 0 rgba(11, 9, 17, .04), 0 36px 54px -34px rgba(11, 9, 17, .45); }
.note-top {
  display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px dashed var(--line-p);
  font: 500 11.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft);
}
.note h3 { margin: 22px 0 18px; font: 400 clamp(1.3rem, 1.9vw, 1.7rem)/1.14 var(--f-display); letter-spacing: -.04em; }
.readout {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 20px;
  background: var(--line-p); border: 1px solid var(--line-p); border-radius: 10px; overflow: hidden;
}
.readout div { background: var(--paper); padding: 12px 12px 11px; min-width: 0; }
.readout dt { font: 500 9.5px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.readout dd { margin: 7px 0 0; font: 500 clamp(1.1rem, 1.75vw, 1.5rem)/1 var(--f-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.note p { margin: 0 0 14px; font-size: .98rem; color: #2b2635; }
.note .note-miss { padding-left: 14px; border-left: 2px solid var(--violet); color: var(--soft); font-size: .92rem; }
.note-miss b { margin-right: 8px; font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--violet-ink); }
.note .note-lesson { display: flex; gap: 10px; margin: 22px 0 0; font: 400 1.04rem/1.35 var(--f-display); letter-spacing: -.025em; color: var(--ink); }
.note-lesson::before { content: "→"; color: var(--violet-ink); font-family: var(--f-sans); }
.lab-foot { margin: 40px 0 0; max-width: 80ch; }

/* ---------- process ---------- */
.process { padding: var(--pad) 0 calc(var(--pad) + var(--r-sheet)); }
.process-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 128px); }
.process-side { position: sticky; top: 112px; align-self: start; }
.process-note { margin: 26px 0 0; max-width: 36ch; color: var(--dim); }
.rail { position: relative; width: 2px; height: 160px; margin-top: 44px; border-radius: 2px; background: var(--line-d); }
.rail i { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(var(--lavender), var(--violet)); box-shadow: 0 0 14px var(--violet); transform: scaleY(var(--rail, 0)); transform-origin: top; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 40px 0 46px; border-top: 1px solid var(--line-d); transition: opacity .5s; }
.js .step { opacity: .38; }
.js .step.is-on { opacity: 1; }
.step-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.step-n { font: 500 13px var(--f-mono); color: var(--lavender); }
.step code { padding: 4px 11px; border: 1px solid var(--line-d); border-radius: 999px; background: var(--ink-2); color: var(--paper); font: 500 12px var(--f-mono); }
.step h3 { margin: 0 0 16px; font: 300 clamp(2.4rem, 5vw, 4.3rem)/1 var(--f-display); letter-spacing: -.055em; }
.step p { margin: 0; max-width: 44ch; color: var(--dim); font-size: 1.06rem; }

/* ---------- beliefs + film ---------- */
.belief { padding: var(--pad) 0 calc(var(--pad) + var(--r-sheet)); }
.belief-title { margin: 0 0 clamp(56px, 7vw, 110px); max-width: 15ch; font: 200 clamp(2.7rem, 7.8vw, 7.8rem)/.98 var(--f-display); letter-spacing: -.065em; }
.belief-title span { display: block; color: var(--lavender); }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.pr { padding: 30px 26px 36px; border-left: 1px solid var(--line-d); }
.pr:first-child { border-left: 0; padding-left: 0; }
.pr-n { display: block; margin-bottom: 30px; font: 200 2.4rem/1 var(--f-display); letter-spacing: -.05em; color: var(--lavender); }
.pr h3 { margin: 0 0 12px; font: 400 1.22rem/1.22 var(--f-display); letter-spacing: -.035em; }
.pr p { margin: 0; color: var(--dim); font-size: .98rem; }

.film { margin-top: clamp(84px, 10vw, 150px); }
.film-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.film-sub { margin: 0; color: var(--dim); }
.film-body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.film-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-d); background: #000; box-shadow: 0 50px 100px -44px rgba(139, 92, 246, .5); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 24px 0 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 500 15px var(--f-sans);
  box-shadow: 0 14px 34px -10px rgba(11, 9, 17, .55); transition: transform .3s var(--ease), background-color .3s, opacity .3s;
}
.film-play:hover { transform: translateY(-2px); background: var(--violet-ink); }
.tri { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--lavender); }
.tri::after { content: ""; position: absolute; left: 15px; top: 12px; border-left: 12px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.film.is-playing .film-play { opacity: 0; pointer-events: none; }
.film-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-d); }
.film-lines li { border-bottom: 1px solid var(--line-d); }
.film-lines button {
  display: grid; grid-template-columns: 42px 1fr; gap: 10px; width: 100%; padding: 11px 4px;
  border: 0; background: none; text-align: left; cursor: pointer;
  color: var(--faint); font-size: .98rem; line-height: 1.35; transition: color .3s;
}
.film-lines time { font: 500 11px/1.9 var(--f-mono); color: var(--faint); transition: color .3s; }
.film-lines button:hover { color: var(--dim); }
.film-lines li.is-on button { color: var(--paper); }
.film-lines li.is-on time { color: var(--lavender); }
.film-lines .montage button { font: 400 .82rem/1.5 var(--f-mono); letter-spacing: .01em; }
.film-lines button:focus-visible { outline-offset: -2px; border-radius: 6px; }

/* ---------- studio ---------- */
.studio { padding: var(--pad) 0 calc(var(--pad) + var(--r-sheet)); }
.studio-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px; align-items: end; margin-bottom: 48px; }
.reels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.reel { display: block; color: var(--paper); text-decoration: none; }
.reel img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; border: 1px solid var(--line-d); background: var(--ink-2); transition: transform .6s var(--ease), box-shadow .6s; }
.reel:hover img { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(139, 92, 246, .65); }
.reel-t { display: block; margin-top: 14px; font-weight: 500; line-height: 1.3; }
.reel-m { display: block; margin-top: 5px; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.studio-cta { margin: 40px 0 0; }

/* ---------- contact ---------- */
.contact { padding: var(--pad) 0 calc(var(--pad) + var(--r-sheet)); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); }
.contact .h2 { font-size: clamp(2.2rem, 4.8vw, 4.4rem); }
.contact-lead { margin: 28px 0 0; max-width: 42ch; color: var(--soft); font-size: 1.06rem; }
.contact-alt { margin: 18px 0 0; color: var(--soft); }
.contact-alt a { color: var(--violet-ink); font-weight: 500; }
.form { display: flex; flex-direction: column; gap: 26px; padding-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.field input, .field textarea {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(11, 9, 17, .3); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 1.15rem/1.4 var(--f-sans); outline: none; resize: vertical;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--violet-ink); box-shadow: 0 1px 0 var(--violet-ink); }
.field [aria-invalid="true"] { border-bottom-color: #b42318; }
.err { margin: 0; color: #b42318; font-size: .86rem; }
.err:empty { display: none; }
.chips { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 10px; }
.chips > label { position: relative; cursor: pointer; font: 400 1rem/1 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border: 1px solid rgba(11, 9, 17, .22); border-radius: 999px; font-size: .93rem; transition: background-color .2s, color .2s, border-color .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--violet-ink); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-hint { margin: 0; color: var(--soft); font-size: .9rem; }
.form-status { margin: 0; font-size: .98rem; }
.form-status:empty { display: none; }
.form-status.ok { padding: 14px 16px; border-radius: 12px; background: rgba(201, 182, 255, .38); border: 1px solid rgba(107, 63, 228, .35); }
.form-status.bad { padding: 14px 16px; border-radius: 12px; background: rgba(180, 35, 24, .07); border: 1px solid rgba(180, 35, 24, .3); }
.form-status a { color: var(--violet-ink); font-weight: 500; }

/* ---------- footer ---------- */
.footer { position: relative; margin-top: calc(var(--r-sheet) * -1); padding: clamp(84px, 10vw, 140px) 0 28px; border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--ink); color: var(--paper); }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px; }
.foot-tag { margin: 0; max-width: 12ch; font: 200 clamp(2rem, 4.4vw, 3.8rem)/1.04 var(--f-display); letter-spacing: -.055em; }
.foot-nav { display: flex; gap: clamp(40px, 8vw, 120px); }
.foot-nav div { display: flex; flex-direction: column; gap: 10px; }
.foot-nav .label { margin-bottom: 8px; }
.foot-nav a { color: var(--dim); text-decoration: none; transition: color .2s; }
.foot-nav a:hover { color: var(--paper); }
.foot-word { width: 100%; height: auto; margin: clamp(64px, 9vw, 120px) 0 26px; color: var(--paper); }
.foot-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-d);
  font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.foot-base a { color: var(--faint); text-decoration: none; }
.foot-base a:hover { color: var(--lavender); }

/* ---------- scroll reveals ---------- */
.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .work-row { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); row-gap: 18px; }
  .work-row .spec { grid-column: 3; max-width: 380px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr:nth-child(3) { border-left: 0; padding-left: 0; }
  .pr:nth-child(n + 3) { border-top: 1px solid var(--line-d); }
}
@media (max-width: 900px) {
  .sec-head .h2, .sec-head .sec-note { grid-column: 1 / -1; }
  .sec-note { margin-top: 18px; }
  .bb-grid, .contact-grid, .film-body { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .process-side { position: static; }
  .rail { display: none; }
  .js .step { opacity: 1; }
  .film-head { flex-direction: column; align-items: flex-start; }
  .studio-head { grid-template-columns: 1fr; }
  .statement { grid-column: 1 / -1; }
  .about-aside { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .door { --door-x: 50%; --door-y: 31%; --door-w: min(78vw, 46svh); }
  .hero-bg {
    background:
      radial-gradient(80% 46% at 50% 30%, rgba(139, 92, 246, .28), transparent 70%),
      radial-gradient(40% 24% at 50% 30%, rgba(201, 182, 255, .12), transparent 72%),
      linear-gradient(180deg, #0B0911 0%, #0D0A15 100%);
  }
  .hero-copy { justify-content: flex-end; padding-bottom: 92px; }
  .hero-title { font-size: clamp(2.7rem, 12.5vw, 4.6rem); }
  .hero-sub { margin-top: 20px; }
  .hero-cta { margin-top: 26px; }
  .kicker { margin-bottom: 18px; }
  .hero-index { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .work-row { grid-template-columns: 1fr; padding: 30px 0; }
  .work-n { padding-top: 0; }
  .work-row .spec { grid-column: 1; max-width: none; }
  .spec-files { min-height: 156px; }
  .notes { grid-template-columns: 1fr; }
  .note, .note:nth-child(n) { transform: none; }
  .readout dd { font-size: 1.15rem; }
  .principles { grid-template-columns: 1fr; }
  .pr, .pr:nth-child(n) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-d); }
  .pr:first-child { border-top: 0; }
  .reels { display: flex; overflow-x: auto; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .reels::-webkit-scrollbar { display: none; }
  .reels li { flex: 0 0 64%; scroll-snap-align: start; }
  .foot-nav { gap: 48px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .film-play { left: 12px; bottom: 12px; height: 46px; padding-right: 18px; font-size: 14px; }
  .tri { width: 32px; height: 32px; }
  .tri::after { left: 12px; top: 9px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
}
@media (max-width: 380px) {
  .hero-title { font-size: 2.45rem; }
  .readout dt { font-size: 8.5px; }
}
@media (max-height: 640px) and (min-width: 861px) {
  .hero-title { font-size: clamp(2.6rem, 6.6vw, 6rem); }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero { height: 100vh; height: 100svh; }
  .js .about { margin-top: 0; }
  .js .about::before { display: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .unseen::after { animation: none !important; background-position: 0 0; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .js .statement .w { opacity: 1; }
  .js .spec .sl { opacity: 1 !important; transform: none !important; }
  .bloom { display: none; }
}
