@font-face { font-family: 'InterLocal'; src: url('lib/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #050308;
  --ink: #f4f1fa;
  --muted: rgba(244, 241, 250, .62);
  --faint: rgba(244, 241, 250, .14);
  --violet: #7b3cff;
  --lilac: #c9b6ff;
  --glass: rgba(14, 9, 26, .58);
  --sans: 'Inter Tight', 'InterLocal', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 16px; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; place-items: center; transition: opacity .9s var(--ease), visibility .9s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; gap: 14px; justify-items: center; }
.loader-word { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--lilac); letter-spacing: .02em; opacity: .9; }
.loader-bar { width: 140px; height: 1px; background: var(--faint); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--lilac); transition: width .4s var(--ease); }

/* ---------- 3D layers ---------- */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
.world {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none;
  /* Flat on purpose: overflow:hidden would flatten preserve-3d anyway, and then
     cards paint in DOM order. Draw order comes from a depth-based z-index in main.js. */
  transform-style: flat;
  perspective-origin: 50% 50%;
  overflow: hidden;
}
.node {
  position: absolute; left: 50%; top: 50%;
  transform-origin: 0 0;
  visibility: hidden;
  backface-visibility: hidden;
}
.scroll-space { position: relative; width: 1px; pointer-events: none; }

/* ---------- Typography in space ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--lilac);
  font-weight: 500; margin-bottom: 22px;
}
.eyebrow .num { font-variant-numeric: tabular-nums; color: var(--ink); opacity: .55; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.panel { width: min(1080px, 88vw); text-align: center; }
.panel h2 {
  font-size: clamp(44px, 7.2vw, 128px); line-height: .92; letter-spacing: -.045em; font-weight: 700;
  text-wrap: balance;
}
.panel h2 em {
  font-size: 1.06em; letter-spacing: -.02em;
  background: linear-gradient(100deg, #fff 0%, var(--lilac) 45%, #9c6bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.lede { margin: 28px auto 0; max-width: 560px; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.lede.small { font-size: 15px; letter-spacing: .01em; }

.about { text-align: left; width: min(940px, 82vw); }
.about h2 { font-size: clamp(44px, 6.4vw, 112px); }
.about .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; max-width: 820px; }
.about .cols p { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.about .kit { margin-top: 32px; font-size: 13px; letter-spacing: .08em; color: var(--muted); border-top: 1px solid var(--faint); padding-top: 16px; max-width: 820px; }
.about .kit span { color: var(--lilac); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; margin-right: 10px; }

.ghost {
  font-size: clamp(120px, 24vw, 420px); font-weight: 800; letter-spacing: -.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 182, 255, .22);
  white-space: nowrap; user-select: none;
}

/* ---------- Cards ---------- */
.card {
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.service { width: clamp(240px, 24vw, 360px); padding: 28px 28px 30px; }
.service .svc-n { font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--lilac); line-height: 1; display: block; margin-bottom: 26px; }
.service h3 { font-size: 26px; letter-spacing: -.025em; font-weight: 600; margin-bottom: 10px; }
.service p { font-size: 15px; line-height: 1.5; color: var(--muted); }

.film { padding: 10px; cursor: pointer; transition: border-color .4s var(--ease), background .4s var(--ease); }
.film.portrait { width: clamp(180px, 17vw, 280px); }
.film.landscape { width: clamp(280px, 31vw, 500px); }
.film.square { width: clamp(220px, 22vw, 360px); }
.film .frame { position: relative; overflow: hidden; border-radius: 11px; background: #0d0818; }
.film.portrait .frame { aspect-ratio: 9 / 16; }
.film.landscape .frame { aspect-ratio: 16 / 9; }
.film.square .frame { aspect-ratio: 1; }
.film video, .film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film .play {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(5, 3, 8, .55); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px); transition: transform .4s var(--ease), background .4s var(--ease);
}
.film .play::before { content: ''; margin-left: 3px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.film:hover { border-color: rgba(201, 182, 255, .55); background: rgba(40, 18, 80, .55); }
.film:hover .play { transform: scale(1.1); background: var(--violet); }
.film figcaption { padding: 14px 6px 6px; display: grid; gap: 4px; }
.film .f-client { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--lilac); }
.film .f-title { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.film .f-cat { font-size: 13px; color: var(--muted); }

.photo { padding: 8px; }
.photo img { display: block; width: clamp(220px, 24vw, 400px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.photo.tall img { width: clamp(180px, 17vw, 300px); aspect-ratio: 3 / 4; }
.photo figcaption { padding: 10px 6px 4px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--lilac); }

.name {
  font-size: clamp(20px, 2.4vw, 40px); font-weight: 600; letter-spacing: -.02em; white-space: nowrap;
  color: var(--ink);
}
.name:nth-child(3n) { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lilac); font-size: clamp(24px, 2.8vw, 46px); }
.name:nth-child(3n+1) { color: rgba(244, 241, 250, .55); }
.clients-head h2 { font-size: clamp(40px, 6vw, 104px); }

.contact { width: min(980px, 90vw); }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 18px 26px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  background: rgba(10, 6, 18, .5); backdrop-filter: blur(8px);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { border-color: var(--lilac); transform: translateY(-2px); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: var(--lilac); border-color: var(--lilac); }
.foot { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 56px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.link { color: var(--lilac); font-size: 13px; letter-spacing: .04em; }
.link:hover { color: var(--ink); }

/* ---------- HUD ---------- */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px clamp(16px, 3.4vw, 48px);
  opacity: 0;
}
/* Invisible hit areas for the chrome logo, which main.js draws on .logo-overlay */
.brand {
  display: block; width: clamp(132px, 12vw, 184px); aspect-ratio: 1.7;
  margin: -22px 0 -22px -14px; pointer-events: none;
}
.end-brand { position: fixed; z-index: 9; pointer-events: none; border-radius: 16px; }
.brand:focus-visible, .end-brand:focus-visible { outline: 1px solid var(--lilac); outline-offset: 2px; border-radius: 10px; }
.logo-overlay {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 8;
  pointer-events: none; opacity: 0;
}
.hud-top nav { display: flex; gap: clamp(14px, 2.4vw, 34px); align-items: center; font-size: 14px; letter-spacing: .02em; }
.hud-top nav button { color: var(--muted); transition: color .3s; }
.hud-top nav button:hover { color: var(--ink); }
.hud-top nav .nav-cta { color: var(--ink); border: 1px solid rgba(255, 255, 255, .25); padding: 9px 16px; border-radius: 999px; }
.hud-top nav .nav-cta:hover { background: var(--ink); color: var(--bg); }

.hero {
  position: fixed; z-index: 5; left: clamp(16px, 3.4vw, 48px); bottom: clamp(28px, 6vh, 64px);
  pointer-events: none;
}
.hero-line { font-size: clamp(30px, 4.6vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: .95; text-transform: uppercase; }
.hero-line span { display: inline-block; opacity: 0; transform: translateY(40%); }
.hero-sub { margin-top: 14px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); opacity: 0; }

.scroll-cue {
  position: fixed; z-index: 5; right: clamp(16px, 3.4vw, 48px); bottom: clamp(28px, 6vh, 64px);
  display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  opacity: 0; pointer-events: none;
}
.scroll-cue em { text-transform: none; font-size: 18px; color: var(--lilac); letter-spacing: 0; }
.cue-track { width: 1px; height: 46px; background: var(--faint); position: relative; overflow: hidden; }
.cue-track i { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--lilac); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.hud-bottom {
  position: fixed; z-index: 5; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 clamp(16px, 3.4vw, 48px) 24px; pointer-events: none; opacity: 0;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.hud-section { display: flex; gap: 14px; align-items: baseline; }
.hud-section #hudNum { font-family: var(--serif); font-style: italic; font-size: 26px; letter-spacing: 0; color: var(--lilac); text-transform: none; }
.hud-section #hudLabel { color: var(--ink); }
.hud-meter { display: grid; gap: 10px; justify-items: end; }
.hud-depth b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.hud-bar { width: clamp(120px, 16vw, 220px); height: 1px; background: var(--faint); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--violet), var(--lilac)); transform-origin: 0 50%; transform: scaleX(0); }

.now {
  position: fixed; z-index: 5; left: 50%; bottom: 26px; transform: translate(-50%, 10px);
  display: flex; gap: 10px; align-items: center; white-space: nowrap;
  font-size: 13px; color: var(--muted); padding: 10px 16px; border-radius: 999px;
  background: rgba(10, 6, 18, .6); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none;
}
.now.on { opacity: 1; transform: translate(-50%, 0); }
.now-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 10px #ff3b5c; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.now-k { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.now b { color: var(--ink); font-weight: 600; }

.dots {
  position: fixed; z-index: 6; right: clamp(14px, 2vw, 30px); top: 50%; transform: translateY(-50%);
  display: grid; gap: 4px; opacity: 0;
}
.dots button { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 6px 0; }
.dots .lbl { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; }
.dots .pip { width: 6px; height: 6px; border-radius: 50%; border: 1px solid rgba(244, 241, 250, .5); transition: all .35s var(--ease); }
.dots button:hover .lbl, .dots button[aria-current="true"] .lbl { opacity: 1; transform: none; }
.dots button[aria-current="true"] .pip { background: var(--lilac); border-color: var(--lilac); box-shadow: 0 0 10px var(--violet); height: 18px; border-radius: 4px; }

/* ---------- Lightbox ---------- */
.lightbox {
  margin: auto; width: min(1200px, 94vw); max-height: 92vh; border: 1px solid rgba(255, 255, 255, .12);
  background: #0a0612; color: var(--ink); border-radius: 20px; padding: 18px; overflow: hidden;
}
.lightbox::backdrop { background: rgba(3, 2, 6, .82); backdrop-filter: blur(10px); }
.lb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 6px 6px 16px; }
.lb-head .eyebrow { margin-bottom: 8px; }
.lb-head h2 { font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.03em; font-weight: 600; }
.lb-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); font-size: 24px; line-height: 1; flex: none; }
.lb-close:hover { background: var(--ink); color: var(--bg); }
.lb-media video { display: block; width: 100%; max-height: calc(92vh - 130px); border-radius: 12px; background: #000; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .hud-top { padding-top: 18px; }
  .brand { width: 100px; margin: -14px 0 -14px -8px; }
  .hud-top nav button:not(.nav-cta) { display: none; }
  .dots { display: none; }
  .about .cols { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .about .kit { display: none; }
  .hero { bottom: 96px; }
  .scroll-cue { left: 16px; right: auto; bottom: 36px; }
  .hud-depth { display: none; }
  .now { bottom: 64px; font-size: 12px; }
  .film.portrait { width: 40vw; }
  .film.landscape { width: 74vw; }
  .service { width: 64vw; padding: 22px; }
  .photo img { width: 58vw; }
  .photo.tall img { width: 44vw; }
  .contact { padding-top: 110px; }
  .contact .contact-actions { margin-top: 26px; }
  .foot { margin-top: 26px; gap: 10px 18px; font-size: 12px; }
  .btn { padding: 15px 22px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .cue-track i, .now-dot { animation: none; }
}
