/* Outward — website styles.
   Brand "hearth": warm near-black rooms, cream type, and an orange that marks anything earned.
   Colours match the app's Theme.Palette. */

:root {
  --bg: #161412;
  --bg-deep: #100e0d;
  --surface: #201d1a;
  --elevated: #27231f;
  --hairline: #34302b;
  --stroke: #4a443d;
  --text: #f2eadb;
  --text-2: #9c9385;
  --text-3: #5e5850;
  --accent: #ff6b1f;
  --accent-soft: rgba(255, 107, 31, 0.14);
  --accent-tint: #5a2a14;
  --brass: #d9a95b;
  --success: #6cbf68;
  --sage: #9db27f;
  --teal: #7fb0a8;
  --plum: #c08ba8;

  --display: "Archivo", "SF Pro Display", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

.h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 72;
  font-stretch: 72%;
  font-weight: 850;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.label--accent { color: var(--accent); }

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-2);
  max-width: 34em;
  margin: 0;
  text-wrap: pretty;
}

.hl { color: var(--accent); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(22, 20, 18, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(242, 234, 219, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(242, 234, 219, 0.08), 0 6px 20px rgba(0, 0, 0, 0.4);
}
.brand span {
  font-family: var(--display);
  font-variation-settings: "wdth" 66;
  font-stretch: 66%;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn--light { background: var(--text); color: #1a1714; }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(242, 234, 219, 0.15); }
.btn--ghost {
  background: rgba(242, 234, 219, 0.06);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(242, 234, 219, 0.12);
}
.btn--ghost:hover { background: rgba(242, 234, 219, 0.1); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* App Store badge, drawn to Apple's black badge proportions */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 24px 0 20px;
  border-radius: 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 18px 40px -12px rgba(255, 107, 31, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  isolation: isolate;
}
.store::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, rgba(255, 107, 31, 0.9) 82%, transparent 94%);
  z-index: -1;
  animation: spin 4.5s linear infinite;
  opacity: 0.85;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1.5px;
}
.store:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 24px 50px -12px rgba(255, 107, 31, 0.6); }
.store svg { width: 26px; height: 32px; flex: none; }
.store small {
  display: block;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.01em;
  font-weight: 500;
  opacity: 0.9;
}
.store strong {
  display: block;
  font-size: 23px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin { to { --spin: 360deg; } }

/* ---------- iPhone mockup ----------
   An iPhone 17 Pro: titanium edge, black glass, and the app's real screen inside.
   The screenshots already carry the Dynamic Island. */

.iphone {
  position: relative;
  width: var(--w, 300px);
  aspect-ratio: 1206 / 2622;
  padding: calc(var(--w, 300px) * 0.032);
  border-radius: calc(var(--w, 300px) * 0.165);
  background:
    linear-gradient(145deg, #7a7268 0%, #2a2622 22%, #4a443d 48%, #1e1b18 74%, #6b645b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 0 calc(var(--w, 300px) * 0.012) #0b0a09,
    0 2px 1px rgba(255, 255, 255, 0.05),
    0 50px 80px -30px rgba(0, 0, 0, 0.9),
    0 30px 120px -40px rgba(255, 107, 31, 0.25);
  flex: none;
  box-sizing: content-box;
}
.iphone::before, .iphone::after {
  /* side buttons */
  content: "";
  position: absolute;
  width: calc(var(--w, 300px) * 0.012);
  border-radius: 2px;
  background: linear-gradient(90deg, #5a534b, #2a2622);
}
.iphone::before { left: calc(var(--w, 300px) * -0.011); top: 19%; height: 7%; box-shadow: 0 calc(var(--w, 300px) * 0.24) 0 #3a352f; }
.iphone::after { right: calc(var(--w, 300px) * -0.011); top: 27%; height: 11%; background: linear-gradient(270deg, #5a534b, #2a2622); }
.iphone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--w, 300px) * 0.135);
  overflow: hidden;
  background: #0b0a09;
  isolation: isolate;
}
.iphone__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.iphone__screen::after {
  /* glass glare */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
  z-index: 3;
}
.iphone__screen img[data-active="false"] { opacity: 0; transform: scale(1.03); }
.iphone__screen img[data-active="true"] { opacity: 1; transform: scale(1); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  width: 900px;
  height: 900px;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(255, 107, 31, 0.26), rgba(255, 107, 31, 0.06) 55%, transparent 75%);
  filter: blur(10px);
  pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.8; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.08); }
}
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
  mix-blend-mode: overlay;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero__copy { position: relative; z-index: 2; }
.hero__copy .label { display: inline-flex; align-items: center; gap: 10px; }
.hero__copy .label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 107, 31, 0.6);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 31, 0.55); }
  80%, 100% { box-shadow: 0 0 0 12px rgba(255, 107, 31, 0); }
}
.hero h1 {
  font-size: clamp(56px, 7.6vw, 112px);
  margin: 22px 0 26px;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.04em; white-space: nowrap; }
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: 0.08s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.16s; }
@keyframes rise { to { transform: translateY(0); } }

.hero .lede { opacity: 0; animation: fadeUp 1s 0.35s var(--ease) forwards; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp 1s 0.5s var(--ease) forwards;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-2);
  opacity: 0;
  animation: fadeUp 1s 0.65s var(--ease) forwards;
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--accent); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__stage {
  position: relative;
  height: min(720px, 82svh);
  min-height: 560px;
  perspective: 1600px;
}
.hero__arch {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  aspect-ratio: 0.72;
  transform: translate(-50%, -48%);
  border: 2px solid rgba(242, 234, 219, 0.1);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.hero__arch::after {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(242, 234, 219, 0.14), transparent);
}
.hero__sun {
  position: absolute;
  width: 120px;
  height: 120px;
  right: 6%;
  top: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff9a5c, var(--accent) 55%, #d4501a);
  box-shadow: 0 0 80px 20px rgba(255, 107, 31, 0.35);
  animation: sun 9s ease-in-out infinite;
}
@keyframes sun {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.hero__phones {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.hero__phone {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
}
.hero__phone--center {
  --w: clamp(220px, 19vw, 272px);
  transform: translate(-50%, -50%);
  z-index: 3;
  animation: phoneIn 1.3s 0.25s var(--ease) forwards, float 7s 1.6s ease-in-out infinite;
}
.hero__phone--left {
  --w: clamp(170px, 14.5vw, 210px);
  transform: translate(-102%, -44%) rotate(-8deg);
  z-index: 2;
  animation: phoneInLeft 1.3s 0.45s var(--ease) forwards, floatLeft 8s 1.8s ease-in-out infinite;
}
.hero__phone--right {
  --w: clamp(170px, 14.5vw, 210px);
  transform: translate(2%, -56%) rotate(8deg);
  z-index: 1;
  animation: phoneInRight 1.3s 0.6s var(--ease) forwards, floatRight 9s 1.9s ease-in-out infinite;
}
.hero__phone--left .iphone, .hero__phone--right .iphone { filter: brightness(0.72) saturate(0.9); }
@keyframes phoneIn { from { opacity: 0; transform: translate(-50%, -38%) scale(0.94); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes phoneInLeft { from { opacity: 0; transform: translate(-70%, -36%) rotate(0deg); } to { opacity: 1; transform: translate(-102%, -44%) rotate(-8deg); } }
@keyframes phoneInRight { from { opacity: 0; transform: translate(-30%, -46%) rotate(0deg); } to { opacity: 1; transform: translate(2%, -56%) rotate(8deg); } }
@keyframes float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -52.5%); } }
@keyframes floatLeft { 0%, 100% { transform: translate(-102%, -44%) rotate(-8deg); opacity: 1; } 50% { transform: translate(-102%, -41%) rotate(-7deg); opacity: 1; } }
@keyframes floatRight { 0%, 100% { transform: translate(2%, -56%) rotate(8deg); opacity: 1; } 50% { transform: translate(2%, -59%) rotate(9deg); opacity: 1; } }

.chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: rgba(32, 29, 26, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(242, 234, 219, 0.1), 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  animation: chipIn 0.9s var(--ease) forwards, bob 6s ease-in-out infinite;
}
.chip i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-style: normal;
  font-size: 15px;
}
.chip small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); font-weight: 500; }
.chip--a { left: -2%; bottom: 9%; animation-delay: 1.2s, 2.1s; }
.chip--b { right: -2%; top: 9%; animation-delay: 1.4s, 2.4s; }
.chip--a i { background: rgba(108, 191, 104, 0.16); color: var(--success); }
.chip--b i { background: var(--accent-soft); color: var(--accent); }
@keyframes chipIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  padding: 72px 0 40px;
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}
.marquee__row {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 48s linear infinite;
}
.marquee__row--rev { animation-direction: reverse; animation-duration: 56s; margin-top: 10px; }
.marquee__row span {
  font-family: var(--display);
  font-variation-settings: "wdth" 70;
  font-stretch: 70%;
  font-weight: 850;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.15;
  padding: 0 0.45em;
  color: var(--text-3);
  white-space: nowrap;
}
.marquee__row span:nth-child(3n + 2) { color: var(--text); }
.marquee__row span::after { content: "·"; margin-left: 0.9em; color: var(--accent); }
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14vw;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
@keyframes marquee { to { transform: translateX(-50%); } }

.turn {
  padding: 40px 0 120px;
  text-align: center;
}
.turn p {
  font-family: var(--display);
  font-variation-settings: "wdth" 72;
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.05;
  margin: 0 auto;
  max-width: 18em;
  text-wrap: balance;
}
.turn .word { display: inline-block; opacity: 0.16; transition: opacity 0.5s var(--ease); }
.turn .word.is-lit { opacity: 1; }

/* ---------- Sections ---------- */

.section { padding: 120px 0; position: relative; }
.section--tight { padding: 90px 0; }
.section__head { display: grid; gap: 20px; margin-bottom: 64px; max-width: 760px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; max-width: 960px; }

/* How it works — sticky phone story */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 60px;
  align-items: start;
}
.how__steps { display: grid; gap: 0; }
.step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  opacity: 0.28;
  transition: opacity 0.6s var(--ease);
}
.step.is-active { opacity: 1; }
.step__num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 14px;
}
.step__num::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, var(--accent), transparent); }
.step h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 72;
  font-stretch: 72%;
  font-weight: 850;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 0.98;
  margin: 18px 0 18px;
}
.step p { color: var(--text-2); margin: 0 0 22px; max-width: 30em; font-size: 18px; }
.step ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.step li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23ff6b1f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 20px no-repeat;
}
.step__phone { display: none; }
.how__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-top: 80px;
  display: grid;
  place-items: center;
}
.how__sticky .iphone { --w: min(clamp(240px, 24vw, 320px), calc((100vh - 150px) / 2.32)); }
.how__halo {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 31, 0.2), transparent 70%);
  transition: background 0.8s var(--ease);
}
.how__dots {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
}
.how__dots span {
  width: 6px;
  height: 22px;
  border-radius: 6px;
  background: var(--stroke);
  transition: background 0.4s, height 0.4s var(--ease);
}
.how__dots span.is-active { background: var(--accent); height: 40px; }

/* Path — four phases */
.path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}
.path__track {
  grid-column: 1 / -1;
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: var(--hairline);
  margin-bottom: 26px;
  overflow: hidden;
}
.path__track i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--brass));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 2.2s var(--ease) 0.2s;
}
.path.is-in .path__track i { transform: scaleX(1); }
.phase {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(242, 234, 219, 0.07);
  isolation: isolate;
  transition: transform 0.5s var(--ease);
}
.phase:hover { transform: translateY(-6px); }
.phase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.2s var(--ease);
}
.phase:hover img { transform: scale(1.06); }
.phase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 20, 18, 0.05) 0%, rgba(22, 20, 18, 0.15) 30%, rgba(22, 20, 18, 0.78) 62%, rgba(22, 20, 18, 0.96) 100%);
}
.phase__days { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.phase h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 70;
  font-stretch: 70%;
  font-weight: 850;
  font-size: 34px;
  line-height: 0.98;
  margin: 10px 0 10px;
}
.phase p { margin: 0; color: rgba(242, 234, 219, 0.78); font-size: 15px; line-height: 1.5; }
.phase__n {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: var(--display);
  font-variation-settings: "wdth" 66;
  font-stretch: 66%;
  font-weight: 900;
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 20, 18, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(242, 234, 219, 0.16);
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat { padding: 40px 24px; border-left: 1px solid var(--hairline); }
.stat:first-child { border-left: 0; }
.stat b {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 66;
  font-stretch: 66%;
  font-weight: 900;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stat b em { font-style: normal; color: var(--accent); }
.stat > span { display: block; margin-top: 12px; color: var(--text-2); font-size: 15px; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.shot { display: grid; justify-items: center; gap: 22px; text-align: center; margin: 0; min-width: 0; }
.shot .iphone { --w: clamp(190px, 18vw, 236px); transition: transform 0.6s var(--ease); }
.shot:hover .iphone { transform: translateY(-10px) rotate(-1deg); }
.shot:nth-child(even) { margin-top: 70px; }
.shot h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.shot p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; max-width: 18em; }

/* Science */
.science {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(242, 234, 219, 0.035), rgba(242, 234, 219, 0.01)), var(--surface);
  box-shadow: inset 0 0 0 1px rgba(242, 234, 219, 0.07);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  /* cursor-following glow */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 107, 31, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.card cite { display: block; margin-top: 18px; font-family: var(--mono); font-style: normal; font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-3); }

.note {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: rgba(127, 176, 168, 0.07);
  box-shadow: inset 0 0 0 1px rgba(127, 176, 168, 0.2);
}
.note svg { flex: none; width: 24px; height: 24px; color: var(--teal); margin-top: 2px; }
.note p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.note strong { color: var(--text); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: relative;
  background: rgba(242, 234, 219, 0.06);
  transition: background 0.3s, transform 0.4s var(--ease);
}
.faq summary i::before, .faq summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease);
}
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--accent); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq__body { overflow: hidden; }
.faq__body p { margin: 0 0 24px; color: var(--text-2); max-width: 44em; }
.faq__body a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Final CTA */
.final {
  position: relative;
  padding: 140px 0 150px;
  text-align: center;
  overflow: hidden;
}
.final__door {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(560px, 80vw);
  aspect-ratio: 0.78;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: radial-gradient(120% 80% at 50% 100%, rgba(255, 107, 31, 0.28), rgba(255, 107, 31, 0.04) 60%, transparent 80%);
  box-shadow: inset 0 0 0 2px rgba(242, 234, 219, 0.08);
  pointer-events: none;
}
.final h2 { font-size: clamp(54px, 9vw, 120px); }
.final .lede { margin: 26px auto 40px; text-align: center; }

/* Footer */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 44px;
  font-size: 14.5px;
  color: var(--text-2);
  background: var(--bg-deep);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color 0.2s; }
.footer .brand { color: var(--text); }
.footer a:hover { color: var(--text); }
.footer__blurb { max-width: 22em; margin: 16px 0 0; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Legal + support pages ---------- */

.page-hero {
  position: relative;
  padding: 150px 0 56px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  right: -200px;
  top: -320px;
  background: radial-gradient(closest-side, rgba(255, 107, 31, 0.18), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(56px, 8vw, 104px); margin: 18px 0 18px; }
.page-hero .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(242, 234, 219, 0.05);
  box-shadow: inset 0 0 0 1px rgba(242, 234, 219, 0.1);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.pill b { color: var(--text); font-weight: 600; }

.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  padding-top: 24px;
  padding-bottom: 120px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 100px;
  font-size: 14px;
}
.toc h2 { margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.35;
  transition: background 0.2s, color 0.2s;
}
.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  padding-top: 2px;
}
.toc a:hover { color: var(--text); background: rgba(242, 234, 219, 0.04); }
.toc a.is-active { color: var(--text); background: var(--accent-soft); }
.toc a.is-active::before { color: var(--accent); }

.prose { max-width: 720px; }
.prose section { padding-top: 8px; margin-bottom: 52px; }
.prose h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 74;
  font-stretch: 74%;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.prose h2 .n { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: #c9c0b1; font-size: 16.5px; line-height: 1.75; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose .caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: 0.01em; }

.summary {
  display: flex;
  gap: 18px;
  padding: 26px 28px;
  margin-bottom: 56px;
  border-radius: var(--radius);
  background: rgba(157, 178, 127, 0.07);
  box-shadow: inset 0 0 0 1px rgba(157, 178, 127, 0.22);
}
.summary svg { flex: none; width: 26px; height: 26px; color: var(--sage); margin-top: 3px; }
.summary .label { color: var(--sage); }
.summary p { margin: 8px 0 0; color: var(--text); font-size: 17px; line-height: 1.6; font-weight: 500; }

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 15px;
}
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hairline); }
.table th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.table td { color: #c9c0b1; line-height: 1.55; }
.table td:first-child { color: var(--text); font-weight: 600; width: 30%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Support */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 90px;
}
.support-grid .card { display: flex; flex-direction: column; }
.support-grid .card p { flex: 1; }
.support-grid .card .btn { margin-top: 22px; align-self: flex-start; }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 28px;
  background:
    radial-gradient(600px circle at 100% 0%, rgba(255, 107, 31, 0.18), transparent 60%),
    var(--surface);
  box-shadow: inset 0 0 0 1px rgba(242, 234, 219, 0.08);
  margin-bottom: 90px;
}
.contact h2 { font-size: clamp(34px, 4vw, 48px); }
.contact p { margin: 10px 0 0; color: var(--text-2); }
.copy-email { font-family: var(--mono); font-size: 13px; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero { min-height: auto; padding-top: 112px; }
  .hero__grid { grid-template-columns: 1fr; gap: 10px; }
  .hero__copy { text-align: center; display: grid; justify-items: center; }
  .hero .lede { margin: 0 auto; }
  .hero__cta, .hero__meta { justify-content: center; }
  .hero__stage { height: 600px; min-height: 0; }
  .hero__phone--center { --w: 250px; }
  .hero__phone--left, .hero__phone--right { --w: 200px; }
  .how { grid-template-columns: 1fr; }
  .how__sticky { display: none; }
  .step { min-height: 0; opacity: 1; padding: 30px 0 60px; }
  .step__phone { display: flex; justify-content: center; margin-top: 40px; }
  .step__phone .iphone { --w: 250px; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase { min-height: 380px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .shot:nth-child(even) { margin-top: 0; }
  .shot .iphone { --w: clamp(170px, 34vw, 240px); }
  .science { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px rgba(242, 234, 219, 0.07); }
  .support-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav .btn--sm { height: 38px; padding: 0 16px; }
  .hero h1 { font-size: clamp(54px, 16vw, 84px); }
  .hero__stage { height: 480px; margin: 0 -16px; }
  .hero__phone--center { --w: 200px; }
  .hero__phone--left, .hero__phone--right { --w: 156px; }
  .hero__sun { width: 80px; height: 80px; }
  .chip { font-size: 12px; padding: 8px 12px 8px 8px; }
  .chip i { width: 26px; height: 26px; }
  .chip--a { left: 4px; bottom: 6%; }
  .chip--b { right: 4px; top: 4%; }
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 44px; }
  .path { grid-template-columns: 1fr; }
  .phase { min-height: 340px; }
  .gallery { gap: 18px; row-gap: 44px; }
  .shot .iphone { --w: min(38vw, 220px); }
  .shot p { font-size: 14px; }
  .stat { padding: 28px 16px; }
  .turn { padding-bottom: 80px; }
  .contact { grid-template-columns: 1fr; padding: 28px 24px; }
  .prose h2 { font-size: 29px; }
  .toc { display: none; }
  .summary { padding: 22px 20px; }
  .final { padding: 100px 0 120px; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__row { animation: none; }
  .turn .word { opacity: 1; }
}
