/* Ten After Ten — site styles
   Art direction: an after-hours picture house. Near-black screening-room
   darks, warm projector amber, a cool electric-blue accent used sparingly,
   film-title serif display type and timecode-style labels. */

@import url("../fonts/fonts.css");

:root {
  --ink: #0a0b0e;
  --night: #0f1117;
  --slate: #151a23;
  --slate-2: #1e2633;
  --slate-3: #2a3445;
  --paper: #f3ece0;
  --paper-2: #d9d1c3;
  --muted: #a8a194;
  --dim: #8c867c;
  --line: rgba(243, 236, 224, 0.12);
  --line-strong: rgba(243, 236, 224, 0.24);
  --amber: #e9b45f;
  --amber-2: #d18f3a;
  --amber-glow: rgba(233, 180, 95, 0.16);
  --blue: #86b6e6;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1440px;
  --section: clamp(88px, 12vw, 176px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.7, 0.18, 1);
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(16px, 0.25vw + 15px, 18px);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain: a fixed, very quiet noise layer over everything. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%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% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 2%); } 100% { transform: translate(0, 0); }
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em, h3 em, .display em {
  font-style: italic;
  font-weight: 300;
  color: var(--amber);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.h-xl { font-size: clamp(2.9rem, 8.4vw, 8.6rem); line-height: 0.94; letter-spacing: -0.025em; }
.h-lg { font-size: clamp(2.4rem, 5.6vw, 5.6rem); line-height: 0.98; }
.h-md { font-size: clamp(1.9rem, 3.4vw, 3.3rem); line-height: 1.04; }
.h-sm { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.12; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.08rem, 0.6vw + 0.95rem, 1.32rem); line-height: 1.55; color: var(--paper-2); max-width: 40ch; }
.muted { color: var(--muted); }

/* Timecode / slate labels */
.slate {
  display: inline-flex; align-items: center; gap: 0.8em;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 1.6rem;
}
.slate::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.8; }
.slate .tc { color: var(--dim); letter-spacing: 0.08em; }
.mono { font-family: var(--mono); letter-spacing: 0.06em; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 52px; padding: 0 1.6em;
  border: 1px solid var(--b); border-radius: 999px;
  background: transparent; color: var(--paper);
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--amber { --b: var(--amber); background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--paper); border-color: var(--paper); }
.btn--quiet { border-color: var(--line-strong); }
.btn .icon { width: 1.05em; height: 1.05em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: 600; text-decoration: none; color: var(--paper);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow:hover { color: var(--amber); border-color: var(--amber); gap: 0.9em; }
.link-arrow::after { content: "→"; font-family: var(--sans); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--header-h);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(10, 11, 14, 0.94); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper);
  font-family: var(--display); font-size: 1.32rem; letter-spacing: -0.01em; white-space: nowrap;
}
.brand img { width: 30px; height: 30px; transition: transform 0.9s var(--ease); }
.brand:hover img { transform: rotate(-30deg); }
.brand em { font-style: italic; color: var(--amber); font-weight: 300; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  position: relative; text-decoration: none; font-size: 0.94rem; color: var(--paper-2);
  padding: 8px 0; transition: color 0.3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a[aria-current] { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav .nav-cta { border: 1px solid var(--amber); color: var(--amber); padding: 9px 18px; border-radius: 999px; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--amber); color: var(--ink); }
.menu-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; cursor: pointer; place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--paper); position: relative;
  transition: transform 0.35s var(--ease), background 0.2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: grid; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 96px var(--gutter) 48px;
    background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav a { font-family: var(--display); font-size: clamp(2.2rem, 10vw, 3.4rem); color: var(--paper); padding: 4px 0; }
  .nav a::after { display: none; }
  .nav .nav-cta { font-family: var(--sans); font-size: 1rem; margin-top: 26px; padding: 14px 24px; }
  .menu-open { overflow: hidden; }
}

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(40px, 7vh, 88px);
  overflow: hidden; isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroIn 2.4s var(--ease) both;
}
@keyframes heroIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 11, 14, 0.72) 0%, rgba(10, 11, 14, 0.05) 26%, rgba(10, 11, 14, 0.12) 52%, rgba(10, 11, 14, 0.94) 100%),
    linear-gradient(90deg, rgba(10, 11, 14, 0.78) 0%, rgba(10, 11, 14, 0.18) 58%, rgba(10, 11, 14, 0) 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.hero h1 { max-width: 11.5ch; margin-bottom: clamp(20px, 3vh, 34px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: block; animation: rise 1.4s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero .slate, .hero .lede { text-shadow: 0 1px 14px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6); }
.hero .slate .tc { color: var(--paper-2); }
.hero .lede { color: var(--paper); margin-bottom: 30px; animation: fadeUp 1.2s 0.5s var(--ease) both; }
.hero .btn-row { animation: fadeUp 1.2s 0.65s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.now-playing {
  justify-self: end; text-align: right; min-width: 230px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line-strong); padding-top: 14px;
  animation: fadeUp 1.2s 0.9s var(--ease) both;
}
.now-playing strong {
  display: block; font-family: var(--display); font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: 1.12rem; color: var(--paper); margin: 6px 0 2px; transition: opacity 0.4s;
}
.now-playing .rec { color: var(--amber); }
.now-playing .rec::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  margin-right: 8px; vertical-align: 1px; animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-toggle {
  margin-top: 12px; background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: inherit; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em;
}
.hero-toggle:hover { color: var(--paper); }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .now-playing { justify-self: start; text-align: left; }
  .hero::before { background: linear-gradient(180deg, rgba(10,11,14,.7) 0%, rgba(10,11,14,.1) 30%, rgba(10,11,14,.55) 55%, rgba(10,11,14,.97) 100%); }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); position: relative; }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head p { margin: 0; color: var(--muted); max-width: 44ch; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }
.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

/* ---------- Featured work ---------- */
.work { padding-top: clamp(72px, 9vw, 140px); padding-bottom: clamp(48px, 6vw, 96px); }
.feature {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--slate); color: var(--paper); isolation: isolate;
}
.feature-media { position: relative; overflow: hidden; height: 100%; }
.feature-media img, .feature-media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s var(--ease), opacity 0.7s var(--ease), filter 0.8s var(--ease);
}
.feature-media video { position: absolute; inset: 0; opacity: 0; }
.feature.is-previewing .feature-media video { opacity: 1; }
.feature:hover .feature-media img { transform: scale(1.035); }
.feature-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,14,0) 38%, rgba(10,11,14,0.86) 100%);
}
.feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3.4vw, 48px); z-index: 2; }
.feature-kicker { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; display: block; }
.feature h3 { margin-bottom: 12px; }
.feature p { color: var(--paper-2); max-width: 46ch; margin-bottom: 22px; }
.feature .btn-row .btn { min-height: 46px; font-size: 0.92rem; }

.feature--wide { aspect-ratio: 2.25 / 1; }
.feature-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(16px, 2vw, 28px); }
.feature--tall { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.feature--rex { grid-column: 6 / span 7; align-self: end; aspect-ratio: 16 / 11; }
.feature--rex .feature-media img { object-position: 50% 40%; }
.feature--tall .feature-media img { object-position: 52% 30%; }
.feature-index {
  position: absolute; top: clamp(18px, 2.4vw, 32px); left: clamp(22px, 3.4vw, 48px); z-index: 2;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--paper);
  background: rgba(10,11,14,.55); padding: 5px 10px; border-radius: 2px;
}
.work-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 56px); }
.work-foot p { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
  .feature--wide { aspect-ratio: 4 / 3.4; }
  .feature--tall, .feature--rex { grid-column: 1 / -1; aspect-ratio: 4 / 3.4; }
}

/* ---------- Services ---------- */
.services { background: linear-gradient(180deg, var(--ink) 0%, var(--night) 100%); }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 0.9fr) 280px;
  gap: 24px 40px; align-items: center; padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line);
}
.service-num { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); letter-spacing: 0.1em; align-self: start; padding-top: 0.7em; }
.service h3 { transition: color 0.4s var(--ease), transform 0.5s var(--ease); }
.service p { margin: 0; color: var(--muted); }
.service-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.6) brightness(0.65); transform: scale(1.06); transition: filter 0.8s var(--ease), transform 1.2s var(--ease); }
.service:hover h3 { color: var(--amber); transform: translateX(8px); }
.service:hover .service-thumb img { filter: none; transform: scale(1); }
.service h3 em { color: inherit; }
@media (max-width: 1100px) { .service { grid-template-columns: 56px minmax(0, 1fr) 220px; } .service p { grid-column: 2; } .service-thumb { grid-column: 3; grid-row: 1 / span 2; } }
@media (max-width: 700px) {
  .service { grid-template-columns: 1fr; gap: 14px; }
  .service-num { padding-top: 0; }
  .service p, .service-thumb { grid-column: 1; grid-row: auto; }
  .service-thumb img { filter: none; transform: none; }
}
.services-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; margin-top: clamp(40px, 5vw, 72px); }
.agency-note { border-left: 2px solid var(--amber); padding: 4px 0 4px 22px; max-width: 58ch; }
.agency-note h3 { font-size: 1.3rem; margin-bottom: 8px; }
.agency-note p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .services-foot { grid-template-columns: 1fr; } }

/* ---------- Your Audio ---------- */
.audio-world { background: var(--slate); overflow: hidden; }
.audio-world::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 10%, rgba(134, 182, 230, 0.12), transparent 70%),
              radial-gradient(50% 60% at 10% 100%, var(--amber-glow), transparent 70%);
}
.audio-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.audio-intro .lede { max-width: 34ch; }
.source-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.source-tags li { font-size: 0.84rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; color: var(--paper-2); }
@media (max-width: 860px) { .audio-intro { grid-template-columns: 1fr; } }

.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); counter-reset: step; }
.stage { position: relative; display: flex; flex-direction: column; }
.stage-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
  background: var(--ink); border: 1px solid var(--line);
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.stage.is-active .stage-frame { border-color: var(--amber); }
.stage-frame img, .stage-frame video { width: 100%; height: 100%; object-fit: cover; }
.stage-label { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.stage-label b { font-family: var(--mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--amber); }
.stage-label span { font-family: var(--display); font-size: 1.45rem; }
.stage p { color: var(--muted); font-size: 0.95rem; margin: 6px 0 0; }
.stage:not(:last-child)::after {
  content: "→"; position: absolute; right: calc(clamp(12px, 1.6vw, 22px) / -2 - 0.5em); top: 38%;
  color: var(--amber); font-size: 1.1rem; z-index: 2;
}
.wave-stage { display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 50% 45%, #1b2230, var(--ink) 75%); }
.wave-stage canvas { width: 100%; height: 46%; }
.wave-caption { position: absolute; left: 16px; right: 16px; bottom: 14px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; }
.wave-caption .tc { color: var(--amber); }
.radio-badge { position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.char-stage img { object-fit: cover; object-position: 30% 50%; background: #efe6d6; }
.play-demo {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid rgba(243,236,224,.6); background: rgba(10, 11, 14, 0.5);
  display: grid; place-items: center; cursor: pointer; color: var(--paper);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), opacity 0.4s;
}
.play-demo:hover { transform: scale(1.06); background: var(--amber); color: var(--ink); border-color: var(--amber); }
.play-demo svg { width: 26px; height: 26px; margin-left: 4px; }
.is-playing .play-demo { opacity: 0; pointer-events: none; }
.demo-quote { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.demo-quote blockquote { margin: 0; font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.35; color: var(--paper-2); }
.demo-quote cite { display: block; margin-top: 10px; font-family: var(--mono); font-style: normal; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 980px) {
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .stage:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .pipeline { grid-template-columns: 1fr; }
  .stage::after { display: none; }
  .stage-frame { aspect-ratio: 16 / 11; }
  .demo-quote { grid-template-columns: 1fr; }
}

/* ---------- Behind the animation (A2A) ---------- */
.behind-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.composite { position: relative; padding: 0 0 18% 12%; }
.screen {
  position: relative; border-radius: 8px; overflow: hidden;
  background: #fff; border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 10px rgba(243,236,224,.03);
}
.screen::before {
  content: ""; display: block; height: 26px; background: #1d222c;
  background-image: radial-gradient(circle at 16px 13px, #e46b5b 4px, transparent 5px), radial-gradient(circle at 32px 13px, #e9b45f 4px, transparent 5px), radial-gradient(circle at 48px 13px, #6fbf73 4px, transparent 5px);
}
.composite .still {
  position: absolute; left: 0; bottom: 0; width: 46%; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
}
.composite .still figcaption, .figure-note { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.composite .still figcaption { position: absolute; left: 10px; bottom: 8px; color: var(--paper); text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.behind-copy .h-lg { margin-bottom: 28px; }
.behind-copy .lede { margin-bottom: 26px; }
.check-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--paper-2); }
.check-list li::before { content: ""; width: 10px; height: 10px; margin-top: 0.55em; border: 1px solid var(--amber); transform: rotate(45deg); }
@media (max-width: 900px) { .behind-grid { grid-template-columns: 1fr; } }

/* ---------- Studio ---------- */
.studio { background: var(--night); overflow: hidden; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.studio-copy p { color: var(--paper-2); max-width: 52ch; }
.studio-copy .h-lg { margin-bottom: 32px; }
.studio-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 26px; }
.studio-values b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.15rem; margin-bottom: 4px; }
.studio-values span { color: var(--muted); font-size: 0.9rem; line-height: 1.45; display: block; }
.workbench { position: relative; aspect-ratio: 1 / 0.8; }
.pin {
  position: absolute; margin: 0; background: #efe6d6; padding: 8px 8px 30px; border-radius: 2px;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.85);
  transition: transform 0.8s var(--ease);
}
.pin img { width: 100%; height: auto; }
.pin figcaption { position: absolute; left: 10px; right: 10px; bottom: 7px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: #5b554c; }
.pin--a { left: 0; top: 4%; width: 62%; transform: rotate(-3deg); z-index: 2; }
.pin--b { right: 0; top: 0; width: 46%; transform: rotate(4deg); z-index: 1; }
.pin--c { right: 4%; bottom: 0; width: 56%; transform: rotate(-1.5deg); z-index: 3; background: #1a1d24; }
.pin--c figcaption { color: var(--muted); }
.pin--d { left: 8%; bottom: 3%; width: 40%; transform: rotate(2.5deg); z-index: 4; }
.workbench:hover .pin--a { transform: rotate(-4.5deg) translateY(-6px); }
.workbench:hover .pin--b { transform: rotate(6deg) translateX(8px); }
.workbench:hover .pin--c { transform: rotate(-0.5deg) translateY(6px); }
@media (max-width: 900px) { .studio-grid { grid-template-columns: 1fr; } .workbench { max-width: 640px; } }
@media (max-width: 560px) { .studio-values { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: auto -10% -40% -10%; height: 80%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, var(--amber-glow), transparent 70%);
}
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); }
.contact-copy .h-lg { margin-bottom: 28px; }
.contact-direct { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.contact-direct a { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-direct a:hover { color: var(--amber); border-color: var(--amber); }
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field label .opt { color: var(--dim); text-transform: none; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(243, 236, 224, 0.035); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 14px 16px; font-size: 1rem; color: var(--paper); transition: border-color 0.3s, background 0.3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { background: var(--slate); color: var(--paper); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: rgba(243, 236, 224, 0.06); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #e46b5b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; margin: 0; font-size: 0.95rem; }
.form-status[data-state="ok"] { color: #9fd3a4; }
.form-status[data-state="error"] { color: #f0a090; }
.form-status a { color: var(--amber); }
.form-note { font-size: 0.82rem; color: var(--dim); margin: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 112px) 0 40px; background: var(--ink); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand .brand { font-size: 1.9rem; }
.footer-brand .brand img { width: 40px; height: 40px; }
.footer-brand p { color: var(--muted); max-width: 32ch; margin-top: 18px; }
.footer-col h2 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; font-weight: 400; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--paper-2); font-size: 0.95rem; }
.footer-col a:hover { color: var(--amber); }
.footer-col .sub { color: var(--dim); font-size: 0.85rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--dim); }
.footer-bottom .mono { font-size: 0.75rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Video dialog ---------- */
.player {
  width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px);
  padding: 0; border: 0; background: transparent; color: var(--paper); overflow: visible;
}
.player::backdrop { background: rgba(5, 6, 8, 0.92); }
.player[open] { animation: playerIn 0.5s var(--ease) both; }
@keyframes playerIn { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
.player-stage { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 50px 120px -30px #000; }
.player.is-vertical { width: min(440px, calc(100vw - 32px)); }
.player.is-vertical .player-stage { aspect-ratio: 9 / 16; max-height: calc(100vh - 160px); margin-inline: auto; }
.player-stage iframe, .player-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 16px; }
.player-meta h2 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
.player-meta p { color: var(--muted); margin: 6px 0 0; font-size: 0.92rem; max-width: 70ch; }
.player-meta .links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.9rem; white-space: nowrap; }
.player-meta .links a { color: var(--amber); text-decoration: none; }
.player-meta .links a:hover { text-decoration: underline; }
.player-close {
  position: absolute; right: 0; top: -54px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(10,11,14,.6); color: var(--paper); cursor: pointer; font-size: 1.4rem; line-height: 1;
}
.player-close:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 640px) { .player-meta { flex-direction: column; } .player-close { top: -52px; } }
.modal-open { overflow: hidden; }

/* ---------- Sub-page hero ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(64px, 10vw, 140px)) 0 clamp(48px, 6vw, 88px); position: relative; }
.page-hero .h-xl { max-width: 12ch; }
.page-hero .lede { margin-top: 24px; }

/* ---------- Watch page ---------- */
.marquee-feature { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.marquee-feature .feature { aspect-ratio: 16 / 9; }
.marquee-copy .h-md { margin-bottom: 16px; }
.marquee-copy p { color: var(--muted); }
@media (max-width: 900px) { .marquee-feature { grid-template-columns: 1fr; } }

.filters { position: sticky; top: var(--header-h); z-index: 50; background: rgba(10,11,14,.94); border-block: 1px solid var(--line); margin-top: clamp(64px, 8vw, 112px); }
.filters .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; scrollbar-width: none; }
.filters .wrap::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line-strong); background: transparent; border-radius: 999px;
  padding: 9px 18px; cursor: pointer; font-size: 0.9rem; color: var(--paper-2); transition: all 0.3s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--paper); color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.chip .count { font-family: var(--mono); font-size: 0.72rem; opacity: 0.7; margin-left: 6px; }

.shelf { padding-top: clamp(64px, 8vw, 112px); }
.shelf[hidden] { display: none; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3vw, 44px); flex-wrap: wrap; }
.shelf-head p { color: var(--muted); margin: 0; max-width: 52ch; }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.tile { grid-column: span 4; }
.tile--lg { grid-column: span 6; }
.tile--vert { grid-column: span 2; }
@media (max-width: 1100px) { .tile { grid-column: span 6; } .tile--vert { grid-column: span 4; } }
@media (max-width: 680px) { .tile, .tile--lg { grid-column: 1 / -1; } .tile--vert { grid-column: span 6; } }
.tile-link { display: block; text-decoration: none; color: var(--paper); }
.tile-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--slate); }
.tile--vert .tile-media { aspect-ratio: 9 / 16; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s var(--ease); filter: brightness(0.92); }
.tile-link:hover .tile-media img { transform: scale(1.045); filter: brightness(1); }
.tile-media .runtime { position: absolute; right: 10px; bottom: 10px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; background: rgba(10,11,14,.78); padding: 4px 8px; border-radius: 2px; }
.tile-play {
  position: absolute; left: 14px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10,11,14,.55); border: 1px solid rgba(243,236,224,.5);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), color 0.35s;
}
.tile-play svg { width: 16px; height: 16px; margin-left: 3px; }
.tile-link:hover .tile-play { background: var(--amber); color: var(--ink); border-color: var(--amber); transform: scale(1.08); }
.tile-meta { margin-top: 16px; }
.tile-meta .kicker { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.tile-meta h3 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); margin: 8px 0 8px; line-height: 1.12; transition: color 0.3s; }
.tile-link:hover h3 { color: var(--amber); }
.tile-meta p { color: var(--muted); margin: 0; font-size: 0.93rem; }
.tile--vert .tile-meta h3 { font-size: 1.08rem; }
.tile--vert .tile-meta p { display: none; }

.empty-shelf { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.empty-shelf p { margin: 0; color: var(--muted); max-width: 56ch; }
@media (max-width: 700px) { .empty-shelf { grid-template-columns: 1fr; } }

.cta-band { margin-top: var(--section); padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); background: radial-gradient(60% 80% at 50% 120%, var(--amber-glow), transparent 70%); text-align: center; }
.cta-band .h-lg { max-width: 16ch; margin: 0 auto 32px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- A2A page ---------- */
.status-chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 16px; font-size: 0.85rem; color: var(--paper-2); margin-bottom: 28px; }
.status-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(134,182,230,.18); }
.a2a-hero .h-xl { max-width: 14ch; }
.a2a-hero .tagline { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2.3rem); color: var(--amber); margin: 22px 0 0; line-height: 1.2; }
.a2a-shot { margin-top: clamp(48px, 6vw, 88px); }
.a2a-shot .screen img { width: 100%; }
.figure-note { margin-top: 14px; display: block; }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.gallery figure { margin: 0; }
.gallery .g1 { grid-column: 1 / span 7; }
.gallery .g2 { grid-column: 8 / span 5; align-self: end; }
.gallery figcaption { margin-top: 16px; }
.gallery figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin-bottom: 4px; }
.gallery figcaption span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .gallery .g1, .gallery .g2 { grid-column: 1 / -1; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { padding: 34px 32px 36px 0; border-bottom: 1px solid var(--line); }
.steps li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.steps li:not(:nth-child(3n + 1)) { padding-left: 32px; }
.steps .n { font-family: var(--mono); font-size: 0.75rem; color: var(--amber); letter-spacing: 0.14em; }
.steps h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); margin: 14px 0 10px; }
.steps p { color: var(--muted); margin: 0; font-size: 0.97rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { padding: 28px 20px 30px 0 !important; border-right: 0 !important; }
  .steps li:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .steps li:nth-child(even) { padding-left: 20px !important; }
}
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .steps li { border-right: 0 !important; padding-left: 0 !important; } }

.made-with { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.made-card { background: var(--slate); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.made-card .media { aspect-ratio: 16 / 9; overflow: hidden; }
.made-card .media img { width: 100%; height: 100%; object-fit: cover; }
.made-card .body { padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.made-card .body p { color: var(--muted); margin: 0; }
.made-card .body .link-arrow { align-self: flex-start; margin-top: auto; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 4px 0 6px; list-style: none; }
.stats li { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--paper-2); }
.stats li b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--amber); letter-spacing: 0; }
@media (max-width: 800px) { .made-with { grid-template-columns: 1fr; } }

.status-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.status-col { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 32px); }
.status-col h3 { font-size: 1.5rem; margin-bottom: 6px; }
.status-col .tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.status-col--now .tag { color: #9fd3a4; }
.status-col--exp .tag { color: var(--amber); }
.status-col--next .tag { color: var(--blue); }
.status-col ul { margin: 20px 0 0; padding: 0 0 0 1.1em; display: grid; gap: 10px; color: var(--paper-2); font-size: 0.95rem; }
.status-col li::marker { color: var(--dim); }
@media (max-width: 900px) { .status-cols { grid-template-columns: 1fr; } }

.other-software { background: var(--night); border-top: 1px solid var(--line); padding-block: clamp(64px, 8vw, 112px); }
.other-software .slate { color: var(--muted); }
.other-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.other-list li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; }
.other-list h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; }
.other-list p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.92rem; }
.other-list a { font-size: 0.88rem; color: var(--paper-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.other-list a:hover { color: var(--amber); border-color: var(--amber); }
@media (max-width: 760px) { .other-list { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  body::after { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Small-screen refinements ---------- */
.slate { flex-wrap: wrap; row-gap: 0.4em; }
@media (max-width: 700px) {
  .hero .slate .tc { display: none; }
  .feature, .feature--wide, .feature--tall, .feature--rex { aspect-ratio: auto; display: flex; flex-direction: column; }
  .feature-media { aspect-ratio: 4 / 3; height: auto; }
  .feature-media::after { background: linear-gradient(180deg, rgba(10,11,14,0) 60%, rgba(10,11,14,0.55) 100%); }
  .feature-body { position: static; padding: 22px 20px 26px; }
  .feature-index { top: 14px; left: 16px; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
  .feature .h-lg { font-size: clamp(2.1rem, 9vw, 2.6rem); }
}
@media (max-width: 560px) {
  .pin--d { display: none; }
  .workbench { aspect-ratio: 1 / 0.72; }
  .h-xl { font-size: clamp(3.1rem, 13vw, 4rem); }
}
