:root {
  --bg: #0b0b0b;
  --bg-2: #121212;
  --surface: #171717;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f2f0ec;
  --muted: #8f8d89;
  --dim: #5f5d5a;
  --paper: #f2f0ec;
  --ink: #0b0b0b;
  --live: #7ee08a;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-bg: rgba(11, 11, 11, 0.72);
  --line-strong: rgba(255, 255, 255, 0.4);
  --paper-hover: #fff;
  --ink-hover: #222;
  /* text on the inverted (paper) surface, e.g. the featured price card */
  --inv-line: rgba(0, 0, 0, 0.1);
  --inv-body: #55534f;
  --inv-muted: #6a6864;
  --inv-dim: #9a9892;
  --grain-opacity: 0.05;
}

/* Light theme (toggle with the dev switch, bottom-left). --paper/--ink swap so
   inverted elements (buttons, featured card, cursor) flip automatically. */
:root[data-theme="light"] {
  --bg: #fafafa;
  --bg-2: #f2f2f2;
  --surface: #eaeaea;
  --line: rgba(0, 0, 0, 0.12);
  --text: #0b0b0b;
  --muted: #646464;
  --dim: #a3a3a3;
  --paper: #0b0b0b;
  --ink: #fafafa;
  --header-bg: rgba(250, 250, 250, 0.75);
  --line-strong: rgba(0, 0, 0, 0.4);
  --paper-hover: #262626;
  --ink-hover: #fff;
  --inv-line: rgba(255, 255, 255, 0.12);
  --inv-body: #a8a8a8;
  --inv-muted: #8e8e8e;
  --inv-dim: #5e5e5e;
  --grain-opacity: 0.035;
}
:root[data-theme="light"] .brand-mark { filter: invert(1); }
body { transition: background-color 0.4s ease, color 0.4s ease; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--paper); color: var(--ink); }

/* Film grain over everything */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* "View" cursor over work cards (mouse only) */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
  transition: transform 0.35s var(--ease);
}
.cursor.on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header: floating "liquid glass" pill ---------- */
:root {
  --glass-tint: rgba(20, 20, 20, 0.28);
  --glass-rim: rgba(255, 255, 255, 0.22);
  --glass-hi: rgba(255, 255, 255, 0.35);
  --glass-glow: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  --glass-hover: rgba(255, 255, 255, 0.1);
}
:root[data-theme="light"] {
  --glass-tint: rgba(255, 255, 255, 0.52);
  --glass-rim: rgba(255, 255, 255, 0.7);
  --glass-hi: rgba(255, 255, 255, 0.95);
  --glass-glow: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.6);
}
.site-header {
  position: fixed;
  top: 14px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 50;
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  isolation: isolate;
  background: var(--glass-tint);
  backdrop-filter: blur(24px) saturate(190%) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(190%) brightness(1.05);
  box-shadow:
    inset 0 1px 0.5px var(--glass-hi),          /* bright top rim */
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.08), /* faint bottom rim */
    inset 0 0 22px var(--glass-glow),            /* inner glow */
    var(--glass-shadow);                         /* float */
  transition: top 0.5s var(--ease), height 0.5s var(--ease), box-shadow 0.5s ease;
}
/* Gradient edge: brighter at the top-left, fading around the pill */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--glass-rim), transparent 40%, transparent 60%, var(--glass-rim));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Specular sheen across the upper half */
.site-header::after {
  content: "";
  position: absolute;
  inset: 1px 1px 50% 1px;
  z-index: -1;
  border-radius: 999px 999px 40px 40px / 999px 999px 20px 20px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.14), transparent);
  pointer-events: none;
}
.site-header.scrolled { top: 10px; height: 56px; }
.brand { flex: 1 1 0; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.header-actions { flex: 1 1 0; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.brand-mark { height: 26px; width: auto; }
.nav-links { display: flex; gap: 4px; font-size: 14px; font-weight: 500; color: var(--text); }
.nav-links a { opacity: 0.72; }
.nav-links a:hover { opacity: 1; }
.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--glass-hover);
  box-shadow: inset 0 1px 0.5px var(--glass-hi), inset 0 0 10px var(--glass-glow);
}
.site-header .btn-nav { height: 44px; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--paper-hover); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-hover); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-outline { border: 1px solid var(--line); color: var(--text); }
.btn-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-nav { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-xl { height: 58px; padding: 0 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Shared section bits ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(96px, 12vw, 180px) var(--gutter) 0; }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); align-items: start; }
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow.center { text-align: center; }
.section-head .eyebrow { padding-top: 0.9em; }
.section-title {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.section-title em { font-size: 1.08em; }
.body-lg { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--muted); max-width: 36ch; }
.arrow { display: inline-block; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(150px, 20vh, 220px) var(--gutter) clamp(48px, 6vw, 80px);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  animation: fade-up 0.9s var(--ease) 0.1s both;
}
.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--live);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { to { transform: scale(3); opacity: 0; } }

.hero-title {
  margin: 36px 0 0;
  font-size: clamp(48px, 8.4vw, 136px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.hero-title > span { display: block; }
.hero-title .line-2 { color: var(--dim); }
.hero-title em { color: var(--text); letter-spacing: -0.02em; }
.hero-title .line-2 em { padding-right: 0.04em; }

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: clamp(40px, 5vw, 72px);
  animation: fade-up 1s var(--ease) 1.2s both;
}
.hero-sub { margin: 0; max-width: 30ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--muted); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Headline sharpens from blurry, sweeping left to right (letters split in script.js) */
.js .hero-title:not(.split) { visibility: hidden; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .ch {
  display: inline-block;
  animation: blur-in 0.9s ease-out both;
  animation-delay: var(--d, 0s);
}
@keyframes blur-in {
  from { opacity: 0; filter: blur(12px); }
  to { opacity: 1; filter: blur(0); }
}

/* ---------- Showreel ---------- */
.showreel { padding: 0 var(--gutter); }
.showreel-frame {
  max-width: var(--maxw);
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  transform: scale(var(--s, 0.94));
  transform-origin: center top;
  will-change: transform;
}
.showreel-frame { position: relative; }
.showreel video,
.video-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 804;
  object-fit: cover;
  background: #050505;
}
.video-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #f2f0ec;
  background:
    radial-gradient(ellipse 60% 70% at 50% 45%, rgba(126, 102, 180, 0.22), transparent 70%),
    radial-gradient(ellipse at 50% 120%, #1a1a1a, #050505 70%);
}
.play {
  display: grid;
  place-items: center;
  width: clamp(64px, 7vw, 96px);
  height: clamp(64px, 7vw, 96px);
  border-radius: 50%;
  background: #f2f0ec;
  color: #0b0b0b;
  transition: transform 0.4s var(--ease);
}
.yt-cover .play { width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); }
.play svg { width: 38%; height: 38%; margin-left: 6%; }
.video-placeholder:hover .play { transform: scale(1.08); }
.video-label { font-size: clamp(18px, 2vw, 26px); letter-spacing: -0.02em; }

/* Sound toggle on the showreel (it autoplays muted) */
.sound-btn {
  position: absolute;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f2f0ec;
  font: 500 13px/1 var(--font);
  cursor: pointer;
  transition: background 0.3s ease;
}
.sound-btn:hover { background: rgba(11, 11, 11, 0.75); }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height 0.2s ease; }
.sound-btn[aria-pressed="true"] .sound-bars i { animation: eq 0.9s ease-in-out infinite; }
.sound-btn[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -0.3s; }
.sound-btn[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -0.6s; }
.sound-btn[aria-pressed="true"] .sound-bars i:nth-child(4) { animation-delay: -0.45s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding: 26px 0;
  animation: marquee 40s linear infinite;
  font-size: clamp(22px, 2.6vw, 36px);
  letter-spacing: -0.03em;
}
.marquee-track i { font-style: normal; font-size: 0.5em; color: var(--dim); }
.marquee-track span:nth-of-type(even) { font-family: var(--serif); font-style: italic; letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 28px);
}
.work-card { display: block; cursor: none; }
.work-media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--surface);
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter 0.6s ease;
}
.work-card:hover .work-media img { transform: scale(1.07); }
.work-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 2px 0;
}
.work-num { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.work-name { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.02em; }
.work-tag { font-size: 14px; color: var(--muted); }
@media (hover: none), (pointer: coarse) { .work-card { cursor: pointer; } }

/* ---------- Studio Archive (horizontal filmstrip + lightbox) ---------- */
.archive { --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
.archive-head .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.archive-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.archive-nav { display: flex; gap: 8px; flex-shrink: 0; }
.round-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font: 400 18px/1 var(--font);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
.round-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.round-btn:disabled { opacity: 0.3; pointer-events: none; }
.archive-track {
  list-style: none;
  margin: 0;
  padding: 0 var(--edge);
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  cursor: grab;
  outline: none;
}
.archive-track::-webkit-scrollbar { display: none; }
.archive-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.archive-track.dragging .archive-open { pointer-events: none; }
.archive-item { flex: 0 0 clamp(240px, 26vw, 400px); scroll-snap-align: start; }
.archive-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  cursor: inherit;
}
.archive-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  transition: transform 1s var(--ease);
}
.archive-open:hover img { transform: scale(1.04); }
.archive-open:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.archive-cap { display: flex; justify-content: space-between; gap: 12px; margin: 14px 2px 0; font-size: 15px; }
.archive-cap span:last-child { color: var(--muted); }
.archive-progress {
  position: relative;
  height: 1px;
  margin: 32px var(--edge) 0;
  background: var(--line);
}
.archive-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 20%);
  left: var(--l, 0%);
  background: var(--text);
  transition: left 0.15s linear;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 8, 8, 0.94);
  color: #f2f0ec;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: lb-in 0.35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: min(88vw, 900px);
  max-height: 82dvh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-cap { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; text-align: center; font-size: 14px; color: #8f8d89; }
.lightbox-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.6);
  color: #f2f0ec;
  font: 400 18px/1 var(--font);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.lightbox-btn:hover { background: #f2f0ec; color: #0b0b0b; }
.lightbox-close { top: 20px; right: 20px; font-size: 15px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Concept to render ---------- */
.ideas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.ideas-copy .section-title { margin: 24px 0 24px; }
.hint { margin: 32px 0 0; font-size: 14px; color: var(--muted); }
.compare {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .compare-after { clip-path: inset(0 0 0 50%); }
.compare-handle {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #f2f0ec;
}
.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #f2f0ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.compare-handle:focus-visible::after { outline: 2px solid var(--live); outline-offset: 3px; }
.compare-tag {
  position: absolute;
  z-index: 3;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(11, 11, 11, 0.6);
  backdrop-filter: blur(8px);
  color: #f2f0ec;
}
.compare-tag.left { left: 16px; }
.compare-tag.right { right: 16px; }

/* ---------- Hands-on 360° spin ---------- */
.spin {
  position: relative;
  aspect-ratio: var(--spin-ratio, 16 / 9);
  max-height: 80vh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  cursor: grab;
  touch-action: pan-y; /* vertical swipes still scroll the page */
  user-select: none;
  outline: none;
}
.spin.dragging { cursor: grabbing; }
.spin:focus-visible { box-shadow: 0 0 0 2px var(--text); }
.spin canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.spin-loading {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  background: var(--line);
  transition: opacity 0.5s ease;
}
.spin-loading span { display: block; height: 100%; width: var(--p, 0%); background: var(--text); transition: width 0.2s linear; }
.spin.ready .spin-loading { opacity: 0; }
.spin-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--glass-tint);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0.5px var(--glass-hi), inset 0 0 14px var(--glass-glow), var(--glass-shadow);
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.spin.touched .spin-hint { opacity: 0; }
.spin-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

/* ---------- Process ---------- */
.steps-wrap { position: relative; }
.steps-wrap .steps { position: relative; z-index: 1; }
.steps-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.steps-line path { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps-draw { visibility: hidden; }
.steps-line.ready .steps-draw { visibility: visible; }
.steps-arrow { opacity: 0; transition: opacity 0.2s ease; }
.steps-line.drawing .steps-arrow,
.steps-line.done .steps-arrow { opacity: 1; }
.steps-node {
  fill: var(--bg);
  stroke: var(--dim);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 0.4s ease, stroke 0.4s ease;
}
.steps-node.on { fill: var(--text); stroke: var(--text); animation: node-pop 0.6s var(--ease); }
@keyframes node-pop { 40% { transform: scale(1.9); } }
.step-num { transition: color 0.6s ease; }
.step.lit .step-num { color: var(--text); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.step {
  padding: 32px clamp(20px, 3vw, 44px) 40px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step + .step { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 7vw, 110px);
  line-height: 0.9;
  color: var(--dim);
  margin-bottom: clamp(24px, 4vw, 64px);
}
.step h3 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--muted); font-size: 17px; max-width: 30ch; }

/* ---------- Founder ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.founder-photo figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 15px; }
.founder-photo figcaption span:last-child { color: var(--muted); }
.founder-copy .section-title { margin: 24px 0 28px; }
.founder-copy .body-lg { margin: 0 0 18px; max-width: 44ch; }
.founder-copy .btn + .btn { margin-left: 8px; }
.founder-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.founder-stats dt { font-size: clamp(40px, 4.4vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -0.05em; }
.founder-stats dd { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Testimonial ---------- */
.testimonial { max-width: 1100px; margin: 40px auto 0; text-align: center; }
.testimonial blockquote {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.testimonial blockquote em { font-size: 1.06em; }
.testimonial figcaption {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  font-size: 15px;
  color: var(--muted);
}
.testimonial-logo { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; }

/* ---------- In the wild ---------- */
.wild-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(12px, 1.4vw, 20px);
}
.wild-grid figure { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.wild-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.wild-grid figure:hover img { transform: scale(1.03); }
.wild-a, .wild-b { aspect-ratio: auto; height: clamp(240px, 32vw, 480px); }
.wild-c { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.4vw, 20px);
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-2);
}
.price-card.featured-plan { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.plan-top { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.featured-plan .plan-top { border-color: var(--inv-line); }
.plan-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.plan-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.plan-desc { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.featured-plan .plan-desc { color: var(--inv-muted); }
.price {
  margin: 28px 0 24px;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}
.price small { font-size: 0.4em; letter-spacing: -0.02em; color: var(--muted); }
.featured-plan .price small { color: var(--inv-muted); }
.price s { margin-left: 8px; font-size: 0.3em; font-weight: 400; letter-spacing: -0.01em; color: var(--dim); }
.featured-plan .price s { color: var(--inv-dim); }
.features { list-style: none; margin: 0 0 40px; padding: 0; flex: 1; }
.features li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}
.featured-plan .features li { border-color: var(--inv-line); color: var(--inv-body); }
.features li b { color: var(--text); font-weight: 500; }
.featured-plan .features li b { color: var(--ink); }
.features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.quote-line { margin: 32px 0 0; text-align: center; color: var(--muted); }
.quote-line a { color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 0.3s ease; }
.quote-line a:hover { border-color: var(--text); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-head .section-title { margin: 24px 0 24px; }
.text-link { color: var(--text); border-bottom: 1px solid var(--line); transition: border-color 0.3s ease; }
.text-link:hover { border-color: var(--text); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 4px; }
.faq-icon { position: relative; flex: 0 0 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.4s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item summary:hover .faq-icon { border-color: var(--text); }
.faq-item[open] .faq-icon { background: var(--text); color: var(--bg); border-color: var(--text); transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer p { margin: 0; padding: 0 56px 28px 0; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 62ch; }
.faq-item[open] .faq-answer { animation: faq-in 0.45s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- CTA ---------- */
.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(120px, 16vw, 240px) var(--gutter) clamp(100px, 12vw, 180px);
  text-align: center;
}
.cta-title {
  max-width: 14ch;
  margin: 28px auto 48px;
  font-size: clamp(44px, 7vw, 112px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--gutter) 28px;
  border-top: 1px solid var(--line);
}
.footer-top { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-col a { color: var(--muted); transition: color 0.25s ease; width: fit-content; }
.footer-col a:hover { color: var(--text); }
.footer-label { margin: 0 0 6px; font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; }
.footer-wordmark {
  margin: clamp(48px, 8vw, 120px) 0 0;
  font-size: clamp(56px, 18.4vw, 284px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.065em;
  white-space: nowrap;
  color: var(--text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}
.to-top:hover { color: var(--text); }

/* ---------- Brand work pages ---------- */
.project-hero { max-width: var(--maxw); margin: 0 auto; padding: 150px var(--gutter) 56px; }
.back { display: inline-flex; gap: 8px; font-size: 14px; color: var(--muted); transition: color 0.25s ease; }
.back:hover { color: var(--text); }
.project-title {
  margin: 36px 0 0;
  font-size: clamp(56px, 10vw, 160px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
}
.project-info {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.project-info p { margin: 0; }
.project-info .body-lg { color: var(--text); }
.info-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; }
.gallery {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}
.gallery > * { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 5; background: var(--surface); }
.gallery > .wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
/* YouTube embed: fills the tile and ignores the pointer so YouTube's hover UI never shows.
   .yt-cover hides YouTube's start screen until the video is actually playing. */
.video-embed { position: relative; overflow: hidden; background: #000; }
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  transform: scale(1.02);
}
.yt-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.yt-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-cover .play { position: relative; opacity: 0; transform: scale(0.9); transition: opacity 0.3s ease, transform 0.3s var(--ease); }
.video-embed.needs-tap .yt-cover .play { opacity: 1; transform: none; }
.video-embed.playing .yt-cover { opacity: 0; visibility: hidden; }
/* The Pocket film is 2.35:1, so YouTube letterboxes it inside its 16:9 player (title bar and
   logo sit in those black bars). Crop the box to 2.35:1 and oversize the iframe to hide them. */
.gallery > .video-embed.cinema { aspect-ratio: 2.35 / 1; }
.video-embed.cinema iframe {
  top: 50%;
  height: 134%;
  transform: translateY(-50%) scale(1.01);
}
.placeholder-tile { display: grid; place-items: center; color: var(--dim); font-size: 15px; border: 1px dashed var(--line); }
.next-project {
  display: block;
  max-width: var(--maxw);
  margin: clamp(96px, 12vw, 180px) auto 0;
  padding: 48px var(--gutter);
  border-top: 1px solid var(--line);
}
.next-project .eyebrow { margin-bottom: 12px; }
.next-name {
  font-size: clamp(48px, 8vw, 128px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  transition: color 0.3s ease;
}
.next-name .arrow { transition: transform 0.4s var(--ease); }
.next-project:hover .next-name .arrow { transform: translateX(16px); }
.next-project:hover .next-name { color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title .ch, .status, .hero-foot { animation: none; }
  .marquee-track, .grain, .status-dot::after { animation: none; }
  .showreel-frame { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head .eyebrow { padding-top: 0; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .ideas-grid { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .steps { grid-template-columns: 1fr; }
  .steps-line { display: none; }
  .step, .step + .step { padding: 28px 0 32px; border-left: 0; border-bottom: 1px solid var(--line); }
  .step-num { margin-bottom: 12px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .project-info { grid-template-columns: 1fr 1fr; }
  .project-info > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .archive-nav { display: none; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 56px; transform: none; }
  .site-header { height: 56px; top: 10px; padding-left: 16px; }
  .brand span { display: none; }
  .work-grid, .gallery { grid-template-columns: 1fr; }
  .wild-grid { grid-template-columns: 1fr; }
  .wild-a, .wild-b { height: auto; aspect-ratio: 4 / 3; }
  .wild-c { grid-column: auto; aspect-ratio: 4 / 3; }
  .hero-ctas, .cta-actions { width: 100%; }
  .hero-ctas .btn, .cta-actions .btn { flex: 1 1 100%; }
  .btn-xl { height: 54px; font-size: 16px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .work-meta { grid-template-columns: auto 1fr; }
  .work-tag { grid-column: 2; margin-top: -10px; }
}

/* Brand pages use a slim footer with just the bottom row */
.site-footer > .footer-bottom:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Theme toggle (in the header) ---------- */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.theme-toggle:hover { background: var(--glass-hover); box-shadow: inset 0 1px 0.5px var(--glass-hi), inset 0 0 10px var(--glass-glow); }
.theme-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.theme-toggle svg {
  grid-area: 1 / 1;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
}
/* Dark mode shows the sun (tap for light); light mode shows the moon. */
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
:root[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(60deg) scale(0.6); }
:root[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: none; }

/* ---------- "Concept" tag for self-initiated / spec work ---------- */
.work-media, .archive-open, .gallery-item { position: relative; }
.concept-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: #f2f0ec;
  background: rgba(11, 11, 11, 0.45);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.gallery-item { margin: 0; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-note { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
