:root {
  --bg: #000;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --rule: #1d1d1f;
  --mint: #40e69e;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 17px; }
.brand img { border-radius: 7px; }
.brand b { color: var(--mint); font-weight: inherit; }
nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--ink); }

/* hero */
.hero { min-height: min(100svh, 940px); display: flex; align-items: center; padding: 104px 0 72px; }
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
h1 {
  font-size: clamp(44px, 4.8vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.038em;
  font-weight: 650;
  max-width: 9.4em;
}
.lede { color: var(--ink-2); font-size: clamp(19px, 1.6vw, 21px); line-height: 1.42; max-width: 20em; margin: 24px 0 36px; letter-spacing: -0.012em; text-wrap: pretty; }
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { height: 48px; width: auto; }
.fine { color: var(--ink-3); font-size: 14px; margin-top: 14px; }
.fine a { color: var(--ink-2); text-decoration: none; }
.fine a:hover { color: var(--ink); }

.clip { position: relative; margin: 0; }
.clip-frame {
  position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden;
  background: #0b0b0c; isolation: isolate;
}
.clip-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip .overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity 0.2s ease-out; }
.clip .overlay.clear { opacity: 0; }
.clip figcaption { color: var(--ink-3); font-size: 13px; margin-top: 14px; }

.ov-trail { fill: none; stroke: var(--mint); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.ov-box { fill: none; opacity: 0; transition: opacity 0.12s linear; }
.ov-box.on { opacity: 1; }
.ov-box path { fill: none; stroke-linecap: square; }
.ov-box-sh { stroke: rgba(0,0,0,0.4); stroke-width: 5; }
.ov-box-ln { stroke: var(--mint); stroke-width: 2.5; }
.ov-tag { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease-out, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ov-tag.on { opacity: 1; transform: none; }
.ov-tag circle { fill: #000; stroke: var(--mint); stroke-width: 3.5; }
.ov-tag line { stroke: rgba(255,255,255,0.75); stroke-width: 2.5; }
.ov-tag text { font-family: var(--sans); fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,0.42); stroke-width: 6px; stroke-linejoin: round; }
.ov-val { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; }
.ov-unit { font-size: 26px; font-weight: 500; fill: rgba(255,255,255,0.8); }
.ov-lab { font-size: 23px; font-weight: 500; fill: rgba(255,255,255,0.82); letter-spacing: 0; }
.replay {
  position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; z-index: 1;
  display: grid; place-items: center; color: #fff; cursor: pointer;
  background: rgba(0,0,0,0.5); border: 0; border-radius: 50%;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.4s ease-out both;
}
.replay[hidden] { display: none; }
.replay:hover { background: rgba(0,0,0,0.72); }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 860px) {
  .hero { min-height: 0; padding: 96px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .clip { width: 100%; max-width: 440px; }
  .lede { margin: 18px 0 28px; }
}

/* sections */
.steps-sec { padding: clamp(80px, 10vw, 136px) 0 clamp(96px, 12vw, 160px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.4vw, 18px); }
.steps li {
  display: grid; grid-template-columns: 1.15em minmax(0, 1fr); align-items: baseline;
  font-size: clamp(30px, 4.4vw, 58px); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em;
  color: var(--ink-3);
}
.steps .n { color: var(--mint); font-size: 0.5em; letter-spacing: 0; font-weight: 600; }
.steps li:last-child { color: var(--ink); }

.screens { padding: 0 0 clamp(112px, 15vw, 200px); }
.shots {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px);
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
}
.shots figure { margin: 0; }
.shots img {
  width: 100%; height: auto; border-radius: clamp(18px, 2.4vw, 30px); background: #0b0b0c;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.09);
}
.shots figcaption { color: var(--ink-3); font-size: 13px; margin-top: 16px; text-align: center; }
@media (max-width: 860px) {
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px); gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    max-width: none; scroll-padding: 0 var(--gutter);
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots figure { scroll-snap-align: start; }
  .shots::after { content: ""; width: 1px; }
}

.statement { padding: 0 0 clamp(104px, 13vw, 176px); }
.statement .says { font-size: clamp(30px, 4.4vw, 58px); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; max-width: 17em; }
.says span { display: block; }
.says span + span { color: var(--ink-3); }
.closing { margin-top: clamp(48px, 6vw, 72px); }

/* scroll reveals (only armed by site.js when motion is allowed) */
.reveal [data-reveal] {
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.reveal [data-reveal]:not(.in) { opacity: 0; transform: translateY(22px); }
.reveal .steps [data-reveal]:not(.in) { transform: translateY(14px); }

/* footer */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 40px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--ink); }
.legal { color: var(--ink-3); font-size: 12px; line-height: 1.5; max-width: 40em; }

/* text pages */
.doc { padding: 136px 0 112px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .meta { color: var(--ink-3); font-size: 14px; margin-top: 12px; }
.prose { margin-top: 48px; }
.prose h2 { font-size: 19px; letter-spacing: -0.015em; margin: 40px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose a { text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--mint); }
.prose strong { color: var(--ink); font-weight: 600; }
.contact { display: inline-block; margin-top: 20px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.contact:hover { color: var(--mint); }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.downloads { list-style: none; padding: 0; margin: 0; }
.downloads li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; }
.downloads span { color: var(--ink-3); font-size: 14px; }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; gap: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
