@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
/* Inter self-hosted (OFL, fonts/OFL-Inter.txt) instead of Google Fonts:
   no third-party request per visitor. Only the three weights used. */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0D0D0D;
  --bg2: #141414;
  --card: #1A1A1A;
  --line: #262626;
  --text: #FFFFFF;
  --muted: #A0A0A0;
  --dim: #666666;
  --purple: #12685A;
  --pink: #2AAE9C;
  --grad: linear-gradient(100deg, #12685A 0%, #2AAE9C 100%);
  --head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: #1f1f1f; padding: .1em .4em; border-radius: 6px; }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }

.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 50; opacity: .045;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--head); font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
.h1 {
  font-family: var(--head); font-weight: 700; letter-spacing: -.035em; line-height: .96;
  font-size: clamp(52px, 9.5vw, 128px); margin: 0 0 28px; max-width: 12ch;
}
.h1 .word { display: inline-block; margin-right: .22em; transform: translateY(110%); opacity: 0; }
.h2 {
  font-family: var(--head); font-weight: 700; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(36px, 5.6vw, 72px); margin: 0 0 20px; max-width: 16ch;
}
.hl {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub, .lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); max-width: 44ch; margin: 0 0 28px; }
.hero .sub { max-width: 40ch; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600;
  border-radius: 999px; padding: 15px 26px; font-size: 16px; transition: transform .16s var(--ease), background .16s, border-color .16s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 40px -10px rgba(42,174,156,.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(42,174,156,.6); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #444; transform: translateY(-2px); }
.btn-small { padding: 9px 16px; font-size: 14px; background: #fff; color: #0D0D0D; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4vw; transition: background .3s, backdrop-filter .3s;
}
.nav.solid { background: rgba(13,13,13,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.wordmark { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.nav nav { display: flex; gap: 26px; align-items: center; font-size: 14px; color: var(--muted); }
.nav nav a:not(.btn):hover { color: #fff; }
@media (max-width: 720px) { .nav nav a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 0 80px; overflow: hidden; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 2; width: min(1120px, 92vw); }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; width: 1px; height: 56px; background: #2a2a2a; overflow: hidden; }
.scroll-hint span { position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--grad); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { to { top: 100% } }

.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 32vh; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, transparent, #0D0D0D 85%);
}

/* ---------- wrapped strip ---------- */
.wrapped { padding: 140px 0 40px; }
.strip { margin-top: 44px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; cursor: grab; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip { perspective: 1200px; }
.strip-track { display: flex; gap: 22px; padding: 10px max(4vw, calc((100vw - 1120px) / 2)) 30px; width: max-content; }
.slide {
  flex: none; width: min(300px, 74vw); aspect-ratio: 9/16; border-radius: 26px; padding: 26px; scroll-snap-align: center;
  display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden;
  background: radial-gradient(130% 90% at 15% 0%, var(--c1) 0%, var(--c2) 55%, #0D0D0D 140%);
  box-shadow: 0 40px 70px -40px rgba(0,0,0,.9); user-select: none;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.slide.hover { transition: transform .12s ease-out; box-shadow: 0 50px 80px -30px rgba(42,174,156,.4); z-index: 2; }
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.2) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.slide.hover::after { transform: translateX(120%); }
.slide::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 80% 20%, rgba(255,255,255,.18), transparent 70%); }
.slide-k { font-size: 10px; letter-spacing: .22em; opacity: .8; margin: 0 0 auto; font-family: var(--head); }
.slide-big { font-family: var(--head); font-weight: 700; font-size: 96px; line-height: .9; letter-spacing: -.02em; margin: 0 0 8px; }
.slide-big small { font-size: 24px; letter-spacing: 0; margin-left: .12em; vertical-align: .4em; }
.slide-t { font-family: var(--head); font-weight: 700; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; }
.slide-q { font-size: 30px; }
.slide-arch { font-size: 44px; line-height: .95; letter-spacing: -.035em; margin-bottom: 14px; }
.slide-s { font-size: 13px; opacity: .85; margin: 0; }
.slide-final .slide-s { margin-top: 16px; font-family: var(--head); letter-spacing: .12em; font-size: 11px; }

/* ---------- how (pinned phone) ---------- */
.how { position: relative; }
.how-track { height: 400vh; }
.how-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  width: min(1120px, 92vw); margin: 0 auto; gap: 40px;
}
.how-copy { position: relative; min-height: 320px; }
.step { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); pointer-events: none; }
.step h2 { font-family: var(--head); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(30px, 3.6vw, 48px); margin: 0 0 18px; }
.step p { color: var(--muted); max-width: 38ch; margin: 0; }
.step-num { font-family: var(--head); color: var(--pink); font-size: 13px; letter-spacing: .2em; margin: 0 0 14px; }
.with-num .step-num { display: block; }

.phone-wrap { position: relative; display: grid; place-items: center; }
.phone-glow {
  position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,104,90,.35), rgba(42,174,156,.12) 45%, transparent 70%);
  filter: blur(30px); z-index: 0;
}
.phone {
  position: relative; z-index: 1; width: min(320px, 72vw); aspect-ratio: 9/19.2;
  background: #000; border-radius: 48px; padding: 12px;
  box-shadow: 0 0 0 2px #2b2b2b, 0 0 0 5px #0a0a0a, 0 40px 80px -30px rgba(0,0,0,.9), inset 0 0 0 1px #111;
}
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 34%; height: 26px; background: #000; border-radius: 20px; z-index: 3; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #0D0D0D; }
.app-screen { position: absolute; inset: 0; padding: 62px 20px 24px; opacity: 0; transform: scale(.96) translateY(10px); }
.app-h1 { font-family: var(--head); font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 10px; }
.app-h1.big { font-size: 34px; margin-bottom: 14px; }
.app-h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0 0 18px; }
.app-kicker { font-size: 10px; letter-spacing: .2em; color: var(--muted); margin: 0 0 8px; }
.app-caption { font-size: 10px; letter-spacing: .15em; color: var(--dim); text-align: center; margin-top: 18px; }
.src-card {
  display: flex; gap: 12px; align-items: flex-start; background: #161616; border: 1px solid #242424; border-radius: 16px;
  padding: 12px; margin-bottom: 10px; font-size: 12px;
}
.src-card.on { border-color: rgba(42,174,156,.7); }
.src-card b { display: block; font-size: 14px; font-family: var(--head); }
.src-card small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.src-card .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2AAE9C; margin-right: 6px; }
.src-card .link { color: #6FBFB4; }
.src-icon { width: 30px; height: 30px; border-radius: 9px; background: #151C19; color: #6FBFB4; display: grid; place-items: center; font-size: 14px; flex: none; }
.pulse-ring { position: relative; height: 130px; display: grid; place-items: center; margin: 6px 0 10px; }
.pulse-ring div { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid #12685A; opacity: 0; animation: ring 2.4s ease-out infinite; }
.pulse-ring div:nth-child(2) { animation-delay: .8s; border-color: #2AAE9C; }
.pulse-ring div:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { 0% { transform: scale(.4); opacity: .9 } 100% { transform: scale(2.2); opacity: 0 } }
.signal-list { list-style: none; padding: 0; margin: 0; }
.signal-list li { display: flex; justify-content: space-between; font-size: 12px; padding: 9px 0; border-bottom: 1px solid #1f1f1f; color: var(--muted); }
.signal-list b { color: #fff; font-family: var(--head); }
.trait { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; font-size: 12px; margin: 10px 0; color: var(--muted); }
.bar { height: 6px; border-radius: 6px; background: #222; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) .2s; }
.app-screen.active .bar i { transform: scaleX(1); }
.share-card {
  aspect-ratio: 9/14; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(120% 90% at 20% 0%, #12685A 0%, #2AAE9C 60%, #0D0D0D 130%);
  box-shadow: 0 20px 40px -20px rgba(42,174,156,.5); margin-bottom: 14px;
}
.share-kicker { font-size: 9px; letter-spacing: .2em; opacity: .8; margin: 0 0 auto; }
.share-title { font-family: var(--head); font-weight: 700; font-size: 30px; line-height: .98; letter-spacing: -.03em; margin: 0 0 8px; }
.share-line { font-size: 11px; opacity: .9; margin: 0 0 10px; }
.share-tags span, .acard-tags span { display: inline-block; font-size: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.16); margin-right: 5px; }
.share-btn { text-align: center; font-family: var(--head); font-weight: 600; font-size: 13px; padding: 12px; border-radius: 999px; background: var(--grad); margin-bottom: 8px; }
.share-btn.ghost { background: transparent; border: 1px solid #2a2a2a; color: var(--muted); }

@media (max-width: 860px) {
  /* padding clears the fixed nav — 64px clipped the step numbers. */
  .how-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; padding-top: 104px; }
  /* Steps are position:absolute — the box must fit the TALLEST step
     or the phone rides up into its text (step 03, device 2026-08-31). */
  .how-copy { min-height: 232px; }
  .phone { width: min(160px, 40vw); }
  .app-screen { padding: 44px 12px 12px; }
  .app-p { font-size: 11px; margin-bottom: 10px; }
  .src-card { padding: 8px; margin-bottom: 7px; font-size: 11px; }
  .src-card small { margin-bottom: 3px; }
  .src-icon { width: 24px; height: 24px; }
  .app-h1 { font-size: 20px; } .app-h1.big { font-size: 26px; }
  .src-card { padding: 9px; } .trait { margin: 6px 0; }
}

/* ---------- card wall ---------- */
.cards { padding: 160px 0 80px; }
.card-grid {
  width: min(1180px, 94vw); margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; perspective: 1200px;
}
.acard {
  position: relative; aspect-ratio: 9/14; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(120% 90% at 20% 0%, var(--c1) 0%, var(--c2) 60%, #0D0D0D 135%);
  transform: rotate(var(--tilt)); transform-style: preserve-3d;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  overflow: hidden;
}
.acard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.acard:hover::after { transform: translateX(120%); }
.acard:hover { box-shadow: 0 50px 80px -30px rgba(42,174,156,.35); }
.acard-kicker { font-size: 10px; letter-spacing: .2em; opacity: .75; margin: 0 0 auto; }
.acard h3 { font-family: var(--head); font-weight: 700; font-size: clamp(30px, 3vw, 40px); line-height: .98; letter-spacing: -.03em; margin: 0 0 10px; }
.acard p { font-size: 14px; opacity: .92; margin: 0 0 14px; max-width: 26ch; }

@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .card-grid { grid-template-columns: 1fr; } .acard { aspect-ratio: 9/12; } }

/* ---------- physics ---------- */
.physics { padding: 120px 0 0; }
.pit { position: relative; height: min(70vh, 640px); margin-top: 40px; border-top: 1px solid var(--line); overflow: hidden; cursor: grab; touch-action: pan-y; }
.pit:active { cursor: grabbing; }
.pit canvas { display: block; }

/* ---------- privacy ---------- */
.privacy { padding: 160px 0; background: var(--bg2); }
.plain { list-style: none; padding: 0; margin: 40px 0 0; max-width: 62ch; }
.plain li { padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 18px; }
.plain li:last-child { border-bottom: 1px solid var(--line); }
.plain b { color: #fff; font-family: var(--head); margin-right: 6px; }
.counter { font-family: var(--head); font-weight: 700; color: #fff; font-size: 28px; vertical-align: middle; }

/* ---------- cta / footer ---------- */
.cta { padding: 180px 0 140px; text-align: center; }
.cta .h2, .cta .lead { margin-left: auto; margin-right: auto; }
.cta .cta-row { justify-content: center; }
.foot { padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot nav { display: flex; gap: 18px; }
.foot a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint span, .pulse-ring div { animation: none; }
  .h1 .word, .reveal, .step, .app-screen { opacity: 1; transform: none; }
}

/* Watermark strength: the figure sits BEHIND the copy on phones. */
@media (max-width: 720px) { #particles { opacity: .38; } }
