/* noctly — shared styles
   bg: always #F7F7F7. red: only on the period.
*/

:root {
  --bg: #F7F7F7;
  --bg-warm: #F2F1EE;
  --text: #0A0A0A;
  --text-2: #6B6B6B;
  --text-3: #9A9A9A;
  --red: #E25C5C;
  --surface-dark: #0A0A0A;
  --surface-card: #FFFFFF;
  --hairline: #E3E2DF;
  --hairline-soft: #ECEBE7;

  --max: 1180px;
  --max-prose: 720px;
  --gutter: clamp(20px, 5vw, 40px);

  --serif: "Charter", "Iowan Old Style", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* user wants F7F7F7 always — keep it light even in dark mode */
    --bg: #F7F7F7;
    --bg-warm: #F2F1EE;
    --text: #0A0A0A;
    --text-2: #6B6B6B;
    --text-3: #9A9A9A;
    --surface-dark: #0A0A0A;
    --surface-card: #FFFFFF;
    --hairline: #E3E2DF;
    --hairline-soft: #ECEBE7;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
:target,
#how, #who, #download {
  scroll-margin-top: 80px;
}

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg { max-width: 100%; display: block; }

::selection { background: var(--text); color: var(--bg); }

/* the period */
.dot { color: var(--red); font-weight: inherit; display: inline-block; }

/* layout shells */
.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.shell-prose {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* wordmark */
.wordmark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
}
.wordmark .dot { margin-left: 1px; }

/* ============================================================ HEADER */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 22px 0;
  background: rgba(247, 247, 247, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
header.site.scrolled {
  border-bottom-color: var(--hairline-soft);
}
header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header.site nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header.site nav a {
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: -0.005em;
  transition: color 120ms ease;
}
header.site nav a:hover { color: var(--text); }
header.site .nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--text);
  transition: background 140ms ease, color 140ms ease;
}
header.site .nav-cta:hover { background: var(--text); color: var(--bg); }
@media (max-width: 540px) {
  header.site nav a:not(.nav-cta) { display: none; }
}

/* ============================================================ HERO */
.hero {
  position: relative;
  padding: clamp(60px, 12vw, 140px) 0 clamp(80px, 14vw, 160px);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  /* radial dotted halo behind owl, ultra subtle */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10,10,10,0.05) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 38%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 38%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 36px;
  padding: 7px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
}
.eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 999px; background: #9A9A9A;
  box-shadow: 0 0 0 0 rgba(154,154,154,0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(154,154,154,0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(154,154,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(154,154,154,0); }
}

.hero .owl {
  width: clamp(96px, 14vw, 140px);
  height: auto;
  margin: 0 auto 44px;
  display: block;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 auto 28px;
  max-width: 14ch;
  text-wrap: balance;
}

.hero .sub {
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.45;
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 48px;
  text-wrap: pretty;
}

/* primary cta — pill */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-dark);
  color: #fff;
  padding: 18px 28px 18px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 140ms ease, box-shadow 200ms ease;
  box-shadow: 0 12px 32px -16px rgba(10,10,10,0.5);
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -16px rgba(10,10,10,0.6); }
.cta[aria-disabled="true"] { opacity: 0.95; }
.cta .apple {
  width: 20px; height: 20px; display: inline-block; flex: none;
}
.cta .arrow {
  display: inline-block; font-weight: 400; opacity: 0.7;
  transition: transform 200ms ease;
}
.cta:hover .arrow { transform: translateX(2px); }

.cta-row,
.cta-stack {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
}
.cta-stack { width: min(440px, 92%); }
.cta.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.cta.is-disabled .arrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: 2px;
  transform: none !important;
}

/* notify form */
.notify {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.notify-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  align-self: center;
}
.notify-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.notify-row:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 4px rgba(10,10,10,0.06);
}
.notify input[type="email"] {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.005em;
  padding: 8px 0;
  min-width: 0;
}
.notify input::placeholder { color: var(--text-3); }
.notify input[aria-invalid="true"] { color: var(--red); }
.notify input[aria-invalid="true"] ~ .notify-btn { background: var(--red); }
.notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}
.notify-btn:hover { transform: translateY(-1px); }
.notify-btn:active { transform: translateY(0); }
.notify-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}
.notify-btn .arr { transition: transform 160ms ease; }
.notify-btn:hover .arr { transform: translateX(2px); }
.notify-note,
.notify-done {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
  text-align: center;
}
.notify-done { color: var(--text-2); font-weight: 600; }
.notify.sent .notify-row { opacity: 0.6; }

.cta-note {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

/* hero floating phone preview (mini, peeking up from below the fold) */
.hero-preview {
  margin-top: clamp(60px, 8vw, 100px);
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.hero-preview .phone {
  transform: rotateX(8deg);
  transform-origin: 50% 100%;
}

/* ============================================================ PHONE FRAME */
.phone {
  --w: 280px;
  width: var(--w);
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #0A0A0A;
  padding: 7px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 0 0 1px #1A1A1A,
    0 40px 80px -28px rgba(10,10,10,0.32),
    0 16px 32px -14px rgba(10,10,10,0.18);
  position: relative;
}
.phone::before {
  /* Dynamic-island-ish pill */
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
}
.phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
@media (min-width: 700px)  { .phone { --w: 300px; } }
@media (min-width: 1024px) { .phone { --w: 320px; } }

/* ============================================================ FEATURES — split layout */
.features {
  padding: clamp(40px, 8vw, 80px) 0 0;
}
.feature {
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--hairline-soft);
}
.features .feature:first-of-type { border-top: none; padding-top: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 8vw, 96px);
  align-items: center;
}
@media (min-width: 880px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature.flip .feature-grid > .feature-copy { order: 2; }
  .feature.flip .feature-grid > .feature-art  { order: 1; }
}

.feature-copy {
  max-width: 480px;
}
.feature-copy .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin: 0 0 22px;
  display: inline-flex; align-items: baseline; gap: 10px;
}
.feature-copy .num::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--text-3);
  transform: translateY(-5px);
}
.feature-copy h2 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 22px;
  text-wrap: balance;
}
.feature-copy p {
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.feature-copy ul.bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.feature-copy ul.bullets li {
  font-size: 15px;
  color: var(--text);
  display: flex; gap: 12px; align-items: baseline;
}
.feature-copy ul.bullets li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--text);
  flex: none;
  transform: translateY(-2px);
}

.feature-art {
  display: flex;
  justify-content: center;
  position: relative;
}
.feature-art .phone-wrap {
  position: relative;
  isolation: isolate;
}
.feature-art .phone-wrap::after {
  /* subtle ground shadow */
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: -22px;
  height: 30px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(10,10,10,0.18), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}

/* ============================================================ PULL QUOTE */
.pullquote {
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--hairline-soft);
  text-align: center;
}
.pullquote blockquote {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
.pullquote cite {
  display: block;
  margin-top: 36px;
  font-style: normal;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* ============================================================ ROLES — staggered fade */
.roles {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  text-align: center;
  background: var(--bg-warm);
}
.roles .label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 28px;
}
.roles-list {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 5vw, 64px);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.roles-list li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.roles.in .roles-list li {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .roles-list li { opacity: 1; transform: none; transition: none; }
}
  border-bottom: 1px solid var(--hairline-soft);
  text-align: center;
  background: var(--bg-warm);
}
.roles .label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 28px;
}

/* ============================================================ MANIFESTO */
.manifesto {
  padding: clamp(100px, 14vw, 160px) 0;
  text-align: center;
}
.manifesto .meta-top {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 32px;
}
.manifesto p.body {
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 500;
  max-width: 22ch;
  margin: 0 auto;
  text-wrap: balance;
}
.manifesto p.body em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-2);
}

/* ============================================================ FOOTER */
footer.site {
  padding: 64px 0 80px;
  border-top: 1px solid var(--hairline-soft);
  color: var(--text-3);
  font-size: 14px;
}
footer.site .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 700px) {
  footer.site .grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
footer.site .col h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
  font-weight: 600;
}
footer.site ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
footer.site a {
  color: var(--text-2);
  transition: color 120ms ease;
}
footer.site a:hover { color: var(--text); }
footer.site .tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.5;
  margin: 18px 0 0;
  max-width: 320px;
}
footer.site .legal {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-3);
  font-size: 13px;
  border-top: 1px solid var(--hairline-soft);
  padding-top: 24px;
}

/* ============================================================ DOC PAGES */
.doc {
  padding: clamp(60px, 10vw, 96px) 0 96px;
}
.doc .back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 56px;
  letter-spacing: 0.01em;
}
.doc .back:hover { color: var(--text); }
.doc h1 {
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 16px;
}
.doc .updated {
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 56px;
}
.doc h2 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 56px 0 14px;
}
.doc p, .doc ul {
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 18px;
}
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 10px; }
.doc li::marker { color: var(--text-3); }
.doc strong { font-weight: 600; }
.doc a {
  color: var(--text);
  border-bottom: 1px solid var(--text-3);
  transition: border-color 120ms ease;
}
.doc a:hover { border-bottom-color: var(--text); }

/* ============================================================ ANIMATIONS */

/* ——— honor reduced-motion globally ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* hero: rotating clock-face background */
.hero-clock {
  position: absolute;
  left: 50%; top: 50%;
  width: min(90vw, 720px);
  aspect-ratio: 1;
  transform: translate(-50%, -52%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: clock-fadein 1400ms ease 900ms forwards;
}
@keyframes clock-fadein {
  to { opacity: 0.55; }
}
.hero-clock .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(10,10,10,0.10);
}
.hero-clock .ring.r2 { inset: 8%;  border-style: solid; border-color: rgba(10,10,10,0.05); }
.hero-clock .ring.r3 { inset: 18%; border-style: dashed; border-color: rgba(10,10,10,0.08); }
.hero-clock .tick {
  position: absolute;
  left: 50%; top: 0;
  width: 1px; height: 12px;
  background: rgba(10,10,10,0.16);
  transform-origin: 0 360px;
}
.hero > .shell { position: relative; z-index: 2; }

/* hero owl float — only while in viewport */
.hero .owl-mark {
  width: clamp(96px, 14vw, 140px);
  height: auto;
  margin: 0 auto 44px;
  display: block;
  animation: owl-float 6s ease-in-out infinite;
  animation-play-state: running;
  will-change: transform;
  background: transparent;
  /* video sometimes ships with a tiny edge — clip it */
  border-radius: 8px;
  object-fit: contain;
}
body.scrolled-past-hero .hero .owl-mark { animation-play-state: paused; }

.owl-svg { display: block; width: 100%; height: auto; }
.owl-svg .head {
  transform-origin: 50% 38%;
  transform-box: view-box;
  animation: head-turn 11s ease-in-out 3.6s infinite;
}
.owl-svg .eye {
  transform-origin: center;
  transform-box: fill-box;
  animation: blink 6.4s ease-in-out 1.8s infinite;
}
.owl-svg .eye-r { animation-delay: 1.85s; }
@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93%, 95%      { transform: scaleY(0.08); }
}
@keyframes head-turn {
  0%, 38%, 62%, 100% { transform: rotate(0deg); }
  46%, 54%           { transform: rotate(-7deg); }
}
@keyframes owl-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .owl-mark,
  .owl-svg .head,
  .owl-svg .eye { animation: none; }
}

/* hero entrance — staggered cascade */
.hero .eyebrow,
.hero .owl,
.hero h1 .word,
.hero .sub,
.hero .cta-row,
.hero .cta-stack {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeup 900ms cubic-bezier(.2,.7,.2,1) forwards;
}
.hero .eyebrow { animation-delay: 60ms; }
.hero .owl    { animation-delay: 160ms; animation-duration: 1100ms; }
/* h1 words handled per-word below */
.hero .sub     { animation-delay: 800ms; }
.hero .cta-row,
.hero .cta-stack { animation-delay: 980ms; }

@keyframes fadeup {
  to { opacity: 1; transform: translateY(0); }
}

/* per-word headline reveal */
.hero h1 { overflow: visible; }
.hero h1 .word {
  display: inline-block;
  animation-duration: 900ms;
  animation-delay: calc(360ms + var(--i, 0) * 90ms);
  margin-right: 0.22em;
}
.hero h1 .word:last-child { margin-right: 0; }

/* dot pulse on hero h1 (after the entrance settles) */
.hero h1 .dot {
  animation: fadeup 900ms cubic-bezier(.2,.7,.2,1) forwards,
             dot-glow 3.6s ease-in-out 1.6s infinite;
  opacity: 0;
  transform: translateY(14px);
  animation-delay: calc(360ms + 4 * 90ms), 1.6s;
}
@keyframes dot-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(226,92,92,0); }
  50%      { text-shadow: 0 0 16px rgba(226,92,92,0.55); }
}

/* generic scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1),
              transform 900ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }

/* feature copy: stagger inside the column */
.feature.in .feature-copy .num   { animation: fadeup 700ms cubic-bezier(.2,.7,.2,1) both; }
.feature.in .feature-copy h2     { animation: fadeup 800ms cubic-bezier(.2,.7,.2,1) 80ms both; }
.feature.in .feature-copy p      { animation: fadeup 800ms cubic-bezier(.2,.7,.2,1) 160ms both; }
.feature.in .feature-copy ul.bullets li {
  animation: fadeup 700ms cubic-bezier(.2,.7,.2,1) both;
}
.feature.in .feature-copy ul.bullets li:nth-child(1) { animation-delay: 240ms; }
.feature.in .feature-copy ul.bullets li:nth-child(2) { animation-delay: 320ms; }
.feature.in .feature-copy ul.bullets li:nth-child(3) { animation-delay: 400ms; }

.feature .feature-copy .num,
.feature .feature-copy h2,
.feature .feature-copy p,
.feature .feature-copy ul.bullets li {
  opacity: 0;
}
.feature.in .feature-copy .num,
.feature.in .feature-copy h2,
.feature.in .feature-copy p,
.feature.in .feature-copy ul.bullets li { opacity: 1; }

/* phone tilt-in on enter */
.feature .phone-wrap {
  opacity: 0;
  transform: translateY(40px) rotateX(10deg) rotateY(-4deg);
  transform-origin: 50% 80%;
  transition: opacity 1100ms cubic-bezier(.2,.7,.2,1),
              transform 1100ms cubic-bezier(.2,.7,.2,1);
}
.feature.in .phone-wrap {
  opacity: 1;
  transform: translateY(0) rotateX(0) rotateY(0);
}

/* phone idle float once revealed */
.feature.in .phone-wrap {
  animation: phone-float 7s ease-in-out 1.2s infinite;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* parallax removed — single fade-up via .reveal/.feature.in handles entrance */
.feature .phone-wrap > .phone {
  /* no parallax transform */
}

/* ============================================================ TIMELINE RAIL */
.feature-copy { position: relative; }
@media (min-width: 880px) {
  .feature-copy::before {
    content: "";
    position: absolute;
    left: -28px; top: 6px; bottom: 6px;
    width: 1px;
    background: linear-gradient(to bottom,
      transparent 0,
      var(--hairline) 12%,
      var(--hairline) 88%,
      transparent 100%);
  }
  .feature-copy::after {
    content: "";
    position: absolute;
    left: -32px; top: 14px;
    width: 9px; height: 9px;
    border-radius: 999px;
    background: var(--bg);
    border: 1.5px solid var(--text-3);
    transition: background 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
  }
  .feature.in .feature-copy::after {
    background: var(--text);
    border-color: var(--text);
    box-shadow: 0 0 0 4px rgba(10,10,10,0.06);
  }
}

/* hero spotlight removed */

/* ============================================================ MASK REVEAL HEADLINES */
.feature .feature-copy h2 {
  overflow: hidden;
  display: block;
}
.feature .feature-copy h2 .line {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 900ms cubic-bezier(.2,.7,.2,1);
  transition-delay: 120ms;
}
.feature.in .feature-copy h2 .line { transform: translateY(0); }

/* ============================================================ SCORE OVERLAY */
.score-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--sans);
  color: #fff;
}
.score-overlay .card {
  position: absolute;
  left: 7%; right: 7%;
  top: 28%;
  background: #0E0E0E;
  border-radius: 22px;
  padding: 7% 7% 7%;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,0.4);
}
.score-overlay .row1 {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.score-overlay .pill {
  background: rgba(255,255,255,0.10);
  color: #fff;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.score-overlay .num {
  margin-top: 12px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 4px;
}
.score-overlay .num .of {
  color: rgba(255,255,255,0.4);
  font-size: 18px;
  font-weight: 700;
}
.score-overlay .bars {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.score-overlay .barRow {
  display: flex; align-items: center; gap: 10px;
}
.score-overlay .barRow .ico {
  width: 14px; height: 14px;
  flex: none;
  color: rgba(255,255,255,0.55);
}
.score-overlay .bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.score-overlay .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  background: #fff;
  border-radius: inherit;
  transition: width 1400ms cubic-bezier(.2,.7,.2,1);
}
.feature.in .score-overlay .bar.b1::after { width: 92%; transition-delay: 700ms; }
.feature.in .score-overlay .bar.b2::after { width: 78%; transition-delay: 900ms; }
.feature.in .score-overlay .bar.b3::after { width: 64%; transition-delay: 1100ms; }
.feature.in .score-overlay .bar.b4::after { width: 88%; transition-delay: 1300ms; }

/* hide static screenshot under overlay */
.has-overlay .phone-screen > img { opacity: 0; }
.has-overlay .phone-screen { background: #F7F7F7; }

/* ============================================================ CAFFEINE OVERLAY */
.coffee-overlay {
  position: absolute;
  inset: 6%;
  pointer-events: none;
  color: #fff;
  font-family: var(--sans);
}
.coffee-overlay .label-top {
  position: absolute; left: 7%; top: 8%;
  font-size: 11%; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.coffee-overlay .last-coffee {
  position: absolute; left: 7%; top: 14%;
  font-size: 22%; font-weight: 800; letter-spacing: -0.03em;
}
.coffee-overlay .cutoff-pill {
  position: absolute; right: 6%; top: 14%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(226,92,92,0.4);
  border-radius: 999px;
  padding: 4% 6%;
  font-size: 8%;
  text-align: right;
  line-height: 1.2;
}
.coffee-overlay .cutoff-pill .lab { color: rgba(255,255,255,0.55); display: block; font-size: 0.78em; letter-spacing: 0.18em; text-transform: uppercase; }
.coffee-overlay .cutoff-pill .val { color: var(--red); font-weight: 700; }
.coffee-overlay svg.curve {
  position: absolute;
  left: 4%; right: 4%;
  top: 38%; bottom: 12%;
  width: 92%;
  height: 50%;
  overflow: visible;
}
.coffee-overlay svg.curve .grid {
  stroke: rgba(255,255,255,0.06);
  stroke-width: 1;
  fill: none;
}
.coffee-overlay svg.curve .threshold {
  stroke: rgba(255,255,255,0.25);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  fill: none;
}
.coffee-overlay svg.curve .area {
  fill: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 900ms ease 1500ms;
}
.coffee-overlay svg.curve .line {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  transition: stroke-dashoffset 1800ms cubic-bezier(.2,.7,.2,1) 400ms;
}
.coffee-overlay svg.curve .cutoff-line {
  stroke: var(--red);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0;
  transition: opacity 600ms ease 1700ms;
}
.coffee-overlay svg.curve .now-dot {
  fill: #fff;
  opacity: 0;
  transition: opacity 400ms ease 2000ms;
}
.feature.in .coffee-overlay svg.curve .line { stroke-dashoffset: 0; }
.feature.in .coffee-overlay svg.curve .area { opacity: 1; }
.feature.in .coffee-overlay svg.curve .cutoff-line { opacity: 1; }
.feature.in .coffee-overlay svg.curve .now-dot { opacity: 1; }

/* ============================================================ HALF-LIFE STEPS */
.halflife {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.halflife-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.halflife-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.halflife-step .t {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.halflife-step .v {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.halflife-step .v em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  margin-left: 2px;
}
.halflife-step .bar {
  height: 4px;
  border-radius: 999px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}
.halflife-step .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--text);
  border-radius: inherit;
  transition: width 1200ms cubic-bezier(.2,.7,.2,1);
}
.feature.in .halflife-step:nth-child(1) .bar::after { width: var(--w, 100%); transition-delay: 700ms; }
.feature.in .halflife-step:nth-child(2) .bar::after { width: var(--w, 50%);  transition-delay: 850ms; }
.feature.in .halflife-step:nth-child(3) .bar::after { width: var(--w, 25%);  transition-delay: 1000ms; }
.feature.in .halflife-step:nth-child(4) .bar::after { width: var(--w, 12.5%);transition-delay: 1150ms; }
.feature .halflife-step .bar { width: 100%; }
.halflife-step:nth-child(1) .bar::after { width: 0; }
.halflife-step .bar { --w: 100%; }
.halflife-cap {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}
footer.site .legal .dot { animation: cursor-blink 1.6s steps(2) infinite; }
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ——— pull quote: word fade ——— */
.pullquote blockquote .word {
  display: inline-block;
  margin-right: 0.22em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.pullquote.in blockquote .word {
  opacity: 1; transform: translateY(0);
}
.pullquote.in blockquote .word:nth-child(1) { transition-delay: 0ms; }
.pullquote.in blockquote .word:nth-child(2) { transition-delay: 90ms; }
.pullquote.in blockquote .word:nth-child(3) { transition-delay: 180ms; }
.pullquote.in blockquote .word:nth-child(4) { transition-delay: 270ms; }
.pullquote.in blockquote .word:nth-child(5) { transition-delay: 360ms; }
.pullquote.in blockquote .word:nth-child(6) { transition-delay: 450ms; }
.pullquote.in blockquote .word:nth-child(7) { transition-delay: 540ms; }
.pullquote.in blockquote .word:nth-child(8) { transition-delay: 630ms; }

/* ——— magnetic CTA ——— */
.cta {
  --mx: 0px;
  --my: 0px;
  transform: translate(var(--mx), var(--my));
  transition: transform 200ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms ease;
}
.cta:hover { transform: translate(var(--mx), calc(var(--my) - 1px)); }

/* softened parallax via JS too */

/* nav-cta hover pop */
header.site .nav-cta {
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
header.site .nav-cta:hover { transform: translateY(-1px); }

/* roles marquee already animates */

/* closing removed */

/* ============================================================ TINY HELPERS */
.kbd {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  padding: 2px 6px;
  background: var(--bg-warm);
  border: 1px solid var(--hairline);
  border-radius: 4px;
}
