:root {
  color-scheme: dark;
  --bg: #0a0809;
  --bg-2: #120e10;
  --ink: #f4ede4;
  --muted: #a89e96;
  --dim: #6f6761;
  --line: rgba(244, 237, 228, 0.12);
  --line-2: rgba(244, 237, 228, 0.2);
  --ember: #ff6a3d;
  --rose: #ff3d77;
  --gold: #ffc27a;
  --grad: linear-gradient(100deg, var(--gold), var(--ember) 45%, var(--rose));
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: max(clamp(20px, 5vw, 72px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, ul, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
em { font-style: italic; }
::selection { background: var(--ember); color: #170a05; }
[hidden] { display: none !important; }

/* ---------- background layers ---------- */
#scene {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block; pointer-events: none;
}
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(140% 110% at 50% 40%, transparent 55%, rgba(10, 8, 9, 0.7) 100%),
    linear-gradient(to bottom, rgba(10, 8, 9, 0.35), transparent 22%);
}
.grain {
  position: fixed; inset: -50%; z-index: 3; pointer-events: none; opacity: 0.07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 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%, -2%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
main, .footer { position: relative; z-index: 1; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 8.4vw, 8.6rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.display-sm { font-size: clamp(2.8rem, 6.4vw, 6.4rem); }
.display em, .h2 em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}
.display .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.display .line > span { display: block; }
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 106, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0); } }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: var(--muted); max-width: 34em; line-height: 1.55; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 1rem var(--sans); color: #1a0b06;
  background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  transition: background-position 0.6s var(--ease), box-shadow 0.4s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 10px 40px -10px rgba(255, 106, 61, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  will-change: transform;
}
.btn:hover { background-position: 100% 0; box-shadow: 0 16px 50px -10px rgba(255, 61, 119, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-small { padding: 11px 20px; font-size: 0.9rem; }
.btn-ghost {
  background: rgba(244, 237, 228, 0.04); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(244, 237, 228, 0.1); box-shadow: inset 0 0 0 1px rgba(244, 237, 228, 0.4); }
.btn-full { width: 100%; padding: 19px 28px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) var(--pad) 20px;
  transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px;
  background: rgba(10, 8, 9, 0.6); backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; flex: none; align-self: center; display: block;
  filter: drop-shadow(0 0 10px rgba(255, 106, 61, 0.45));
}
.brand-name { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -0.01em; line-height: 1; padding-top: 2px; }
/* the tag beside the name: a thin divider, then small warm caps */
.brand-by {
  margin-left: 6px; padding: 3px 0 3px 14px; border-left: 1px solid var(--line-2);
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; line-height: 1; text-transform: uppercase;
  background: linear-gradient(100deg, var(--gold), var(--ember) 70%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 34px; font-size: 0.92rem; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px var(--pad) 150px;
}
.hero-inner { max-width: min(62vw, 980px); }
.hero .lede { margin-top: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-stats {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 38px;
  display: flex; gap: clamp(24px, 5vw, 80px);
  padding-top: 22px; border-top: 1px solid var(--line);
}
.hero-stats dt { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1; }
.hero-stats dd { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.scroll-hint {
  position: absolute; right: var(--pad); bottom: 44px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
}
.scroll-hint span { width: 1px; height: 38px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-hint span::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--ink);
  animation: drip 2s var(--ease) infinite;
}
@keyframes drip { to { top: 110%; } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 1; overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(10, 8, 9, 0.5); backdrop-filter: blur(14px);
  padding: 22px 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 46px; width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.4rem); white-space: nowrap;
}
.marquee-track i { font-style: normal; font-size: 0.6em; color: var(--ember); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- statement ---------- */
.statement { padding: clamp(110px, 20vh, 240px) var(--pad); }
.statement-text {
  font-family: var(--serif); font-size: clamp(1.9rem, 4.3vw, 4.3rem);
  line-height: 1.12; letter-spacing: -0.015em; max-width: 22em; margin-inline: auto; text-wrap: balance;
}
.statement-text .w { display: inline-block; opacity: 0.16; }

/* ---------- flow ---------- */
.flow { position: relative; min-height: 100svh; padding: 0 var(--pad); }
.flow-inner {
  height: 100svh; min-height: 680px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center; gap: clamp(30px, 6vw, 110px);
}
.flow .h2 { margin-bottom: 40px; }
.steps { display: grid; gap: 4px; max-width: 520px; }
.steps li {
  display: grid; grid-template-columns: 48px 1fr; gap: 10px;
  padding: 16px 0; border-top: 1px solid var(--line);
  opacity: 0.34; transition: opacity 0.5s var(--ease);
}
.steps li.is-active { opacity: 1; }
.step-n { font-size: 0.78rem; letter-spacing: 0.12em; color: var(--ember); padding-top: 7px; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
/* The active step's description opens smoothly (grid rows animate to the text's real height). */
.step-body { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows 0.7s var(--ease); }
.steps li.is-active .step-body { grid-template-rows: auto 1fr; }
.steps p {
  color: var(--muted); font-size: 0.98rem; max-width: 30em; min-height: 0; overflow: hidden;
  opacity: 0; transform: translateY(-4px); padding-top: 0;
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease), padding-top 0.7s var(--ease);
}
.steps li.is-active p { opacity: 1; transform: none; padding-top: 8px; transition-delay: 0.08s; }

.phone-wrap { display: grid; justify-items: center; gap: 16px; }
.phone {
  position: relative; width: min(340px, 78vw); height: min(660px, 72svh);
  border-radius: 48px; padding: 12px;
  background: linear-gradient(160deg, #3a3033, #141012 40%, #241c1f);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 60px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 140px -20px rgba(255, 106, 61, 0.35);
  display: flex; flex-direction: column;
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  will-change: transform;
}
.phone::before {
  content: ""; position: absolute; inset: 12px; border-radius: 37px; background: #0d0b0c; z-index: 0;
}
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3;
}
.phone-head {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 52px 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 37px 37px 0 0; background: rgba(20, 17, 18, 0.9);
}
.phone-head strong { display: block; font-size: 0.86rem; font-weight: 500; line-height: 1.2; }
.phone-head small { color: var(--dim); font-size: 0.72rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 600; color: #1a0b06; background: var(--grad);
}
/* The conversation is one column that slides up inside the screen as messages arrive.
   The top edge fades out under the header like a real messaging app. */
.thread {
  position: relative; z-index: 1; flex: 1; min-height: 0; overflow: hidden;
  border-radius: 0 0 37px 37px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
}
.thread-stack {
  display: flex; flex-direction: column; gap: 7px;
  padding: 16px 13px 20px; will-change: transform;
}
/* Without the scroll animation (reduced motion, or the libraries didn't load):
   show the whole finished conversation, newest at the bottom. */
.thread.is-static { overflow-y: auto; overscroll-behavior: contain; }
.msg {
  max-width: 82%; padding: 9px 13px; border-radius: 19px; font-size: 0.87rem; line-height: 1.35;
  flex-shrink: 0;
}
.msg.in { align-self: flex-start; background: #262023; border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: linear-gradient(120deg, var(--ember), var(--rose)); color: #fff; border-bottom-right-radius: 6px; }
.msg, .card-filed { transform-origin: bottom left; }
.msg.out { transform-origin: bottom right; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
.card-filed {
  flex-shrink: 0; margin-top: 6px; padding: 13px 14px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 194, 122, 0.16), rgba(255, 61, 119, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 194, 122, 0.35);
  font-size: 0.8rem;
}
.card-filed-top { display: flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 500; margin-bottom: 9px; }
.card-filed dl { display: grid; gap: 4px; }
.card-filed dl div { display: flex; justify-content: space-between; gap: 12px; }
.card-filed dt { color: var(--dim); }
.phone-note { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }

/* ---------- features ---------- */
.features { padding: clamp(110px, 16vh, 200px) var(--pad); }
.section-head { max-width: 900px; margin-bottom: clamp(44px, 7vh, 80px); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 1600px; }
.card {
  position: relative; overflow: hidden; border-radius: 28px;
  padding: 28px 28px 30px; min-height: 290px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(165deg, rgba(40, 32, 35, 0.72), rgba(16, 13, 14, 0.72));
  backdrop-filter: blur(22px) saturate(130%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow 0.4s;
}
.card:hover { box-shadow: inset 0 0 0 1px rgba(255, 194, 122, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 80px -30px rgba(255, 106, 61, 0.35); }
.card-wide { grid-column: span 2; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.55rem, 2vw, 1.95rem); line-height: 1.1; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; max-width: 38em; }
.card-glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 170, 120, 0.16), transparent 60%);
}
.card:hover .card-glare { opacity: 1; }
.card-visual { position: absolute; top: 28px; left: 28px; color: var(--gold); display: flex; align-items: center; gap: 10px; }

.typing { background: #262023; padding: 15px 18px; border-radius: 22px 22px 22px 6px; gap: 6px; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: typing 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: 0.16s; }
.typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

.langs b { font: 400 1.25rem var(--serif); padding: 8px 15px; border-radius: 18px 18px 18px 5px; background: #262023; color: var(--ink); }
.langs b:first-child { background: linear-gradient(120deg, var(--ember), var(--rose)); color: #fff; border-radius: 18px 18px 5px 18px; }

.rules { flex-direction: column; align-items: flex-start; gap: 8px; }
.rules i { display: block; height: 8px; border-radius: 8px; background: var(--line-2); position: relative; width: 120px; }
.rules i:nth-child(2) { width: 90px; } .rules i:nth-child(3) { width: 105px; }
.rules i::before { content: ""; position: absolute; left: -18px; top: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); }
.rules { padding-left: 18px; }

.switch em { font-style: normal; font-size: 0.9rem; color: var(--ink); }
.toggle { width: 58px; height: 32px; border-radius: 32px; background: var(--grad); padding: 3px; display: flex; justify-content: flex-end; box-shadow: 0 0 30px rgba(255, 106, 61, 0.5); }
.toggle span { width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.alert { color: var(--rose); }

/* ---------- proof ---------- */
.proof { padding: clamp(90px, 14vh, 180px) var(--pad); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(30px, 6vw, 100px); align-items: end; }
.proof-copy { display: grid; gap: 20px; color: var(--muted); font-size: 1.08rem; }
.proof-copy p:first-child { color: var(--ink); }
.numbers {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(60px, 10vh, 120px); border-top: 1px solid var(--line);
}
.numbers > div { padding: 34px 24px 10px 0; border-right: 1px solid var(--line); padding-left: 24px; }
.numbers > div:first-child { padding-left: 0; }
.numbers > div:last-child { border-right: 0; }
.numbers strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 7vw, 7rem); line-height: 0.95; letter-spacing: -0.03em; }
.numbers small { font-size: 0.28em; letter-spacing: 0; margin-left: 6px; color: var(--ember); }
.numbers span { display: block; margin-top: 14px; color: var(--muted); font-size: 0.95rem; max-width: 15em; }
.stack {
  margin-top: clamp(50px, 8vh, 90px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
  color: var(--dim); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.stack b {
  font: 400 1.25rem var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink);
  padding: 9px 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2);
  background: rgba(244, 237, 228, 0.03); backdrop-filter: blur(10px);
}

/* ---------- contact ---------- */
.contact { padding: clamp(90px, 14vh, 180px) var(--pad) clamp(90px, 12vh, 150px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.contact .lede { margin-top: 30px; }
.ticks { margin-top: 30px; display: grid; gap: 12px; color: var(--ink); }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: "✦"; color: var(--ember); font-size: 0.8em; }

.form {
  position: relative; border-radius: 32px; padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(165deg, rgba(40, 32, 35, 0.78), rgba(16, 13, 14, 0.82));
  backdrop-filter: blur(26px) saturate(130%);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 60px 140px -40px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(255, 106, 61, 0.4);
}
.form-body { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field > span, .field legend { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field legend { margin-bottom: 8px; }
.field i { font-style: normal; color: var(--dim); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 14px; border: 0;
  background: rgba(244, 237, 228, 0.05); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); font: 400 1rem var(--sans); resize: vertical;
  transition: box-shadow 0.3s, background 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: #5e5752; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.field input:focus, .field textarea:focus { outline: 0; background: rgba(244, 237, 228, 0.08); box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 5px rgba(255, 194, 122, 0.12); }
.field.is-bad input { box-shadow: inset 0 0 0 1.5px var(--rose); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label span {
  display: block; padding: 10px 17px; border-radius: 999px; font-size: 0.92rem;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); transition: all 0.3s var(--ease);
}
.chips label:hover span { color: var(--ink); }
.chips input:checked + span { background: var(--grad); color: #1a0b06; box-shadow: none; font-weight: 500; }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #ff9db8; font-size: 0.92rem; }
.form-fine { text-align: center; color: var(--dim); font-size: 0.8rem; }
.form-done { text-align: center; padding: clamp(40px, 8vh, 90px) 10px; }
.form-done h3 { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1.05; margin: 22px 0 12px; }
.form-done p { color: var(--muted); max-width: 26em; margin-inline: auto; }
.done-mark {
  width: 88px; height: 88px; margin-inline: auto; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #1a0b06; box-shadow: 0 0 80px rgba(255, 106, 61, 0.6);
  animation: pop 0.7s var(--ease) both;
}
.done-mark path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.7s 0.25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- footer ---------- */
.footer { padding: 40px var(--pad) 34px; border-top: 1px solid var(--line); background: rgba(10, 8, 9, 0.7); backdrop-filter: blur(14px); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 28px; color: var(--muted); font-size: 0.92rem; flex-wrap: wrap; }
.footer nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 30px; color: var(--dim); font-size: 0.82rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .brand-by { display: none; }
  .hero { padding-top: 120px; padding-bottom: 60px; justify-content: flex-end; }
  .hero-inner { max-width: 100%; }
  .hero-stats { position: static; margin-top: 46px; flex-wrap: wrap; gap: 20px 34px; }
  .scroll-hint { display: none; }

  .flow-inner { grid-template-columns: 1fr; align-content: center; gap: 18px; min-height: 0; padding-top: 74px; }
  .flow .eyebrow { margin-bottom: 10px; }
  .flow .h2 { font-size: 1.9rem; margin-bottom: 10px; }
  .flow .h2 br { display: none; }
  /* On phones one step shows at a time. All four share one grid cell, so the box is always as tall
     as the longest step and the text can never slide under the phone. */
  .steps { display: grid; max-width: none; gap: 0; }
  .steps li {
    grid-area: 1 / 1; opacity: 0; border: 0; padding: 0; grid-template-columns: 34px 1fr; pointer-events: none;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transform: translateY(8px);
  }
  .steps li.is-active { opacity: 1; transform: none; pointer-events: auto; }
  .steps .step-body { grid-template-rows: auto 1fr; }
  .steps h3 { font-size: 1.3rem; }
  .steps p { font-size: 0.88rem; padding-top: 4px; }
  .steps li.is-active p { padding-top: 4px; }
  .phone { height: min(520px, max(300px, calc(100svh - 300px))); width: min(300px, 76vw); transform: none; border-radius: 40px; }
  /* Without the scroll animation: list every step, and let the section take its natural height. */
  .flow.is-static .flow-inner { height: auto; padding-bottom: 48px; }
  .flow.is-static .steps { gap: 14px; }
  .flow.is-static .steps li { grid-area: auto; opacity: 1; transform: none; pointer-events: auto; }
  .phone::before { border-radius: 30px; }
  .phone-head { padding-top: 44px; border-radius: 30px 30px 0 0; }
  .phone-notch { top: 20px; height: 20px; width: 76px; }
  .phone-note { display: none; }

  .bento { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .card { min-height: 250px; }
  .proof-grid, .contact-grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers > div { padding: 26px 16px 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .numbers > div:nth-child(odd) { padding-left: 0; }
  .numbers > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .row { grid-template-columns: 1fr; }
  .btn-small { padding: 10px 16px; }
  .hero-cta .btn { flex: 1 1 auto; }
}
/* Short phones (older or small models): tighter spacing so the whole phone stays on screen. */
@media (max-width: 980px) and (max-height: 700px) and (orientation: portrait) {
  .flow-inner { padding-top: 62px; gap: 12px; }
  .flow .eyebrow { margin-bottom: 6px; }
  .flow .h2 { font-size: 1.55rem; margin-bottom: 6px; }
  .steps p { font-size: 0.82rem; }
  .phone { height: max(220px, calc(100svh - 330px)); }
}
/* A phone held sideways: words on the left, the phone on the right, sized to the short screen. */
@media (max-width: 980px) and (max-height: 520px) and (orientation: landscape) {
  .flow-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr); align-content: center; gap: 24px; padding-top: 58px; }
  .flow .h2 { font-size: 1.5rem; }
  .flow .h2 br { display: inline; }
  .phone { height: calc(100svh - 74px); width: min(260px, 36vw); border-radius: 32px; padding: 9px; }
  .phone::before { inset: 9px; border-radius: 24px; }
  .phone-head { padding-top: 34px; padding-bottom: 8px; border-radius: 24px 24px 0 0; }
  .phone-notch { top: 15px; height: 16px; width: 64px; }
  .thread { border-radius: 0 0 24px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .marquee-track, .pulse, .scroll-hint span::after, .typing span { animation: none; }
  .statement-text .w { opacity: 1; }
}
