/* ============================================================
   GADFLY — a scroll story · night → morning → night
   ============================================================ */

:root {
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* night palette (default) */
  --bg: #0a0b10;
  --bg-soft: #101219;
  --ink: #f2efe8;
  --muted: #9a97a3;
  --line: rgba(242, 239, 232, 0.12);
  --card: rgba(242, 239, 232, 0.04);
  --accent: #4d6bff;
  --accent-soft: rgba(77, 107, 255, 0.16);
  --amber: #e8a33d;
  --red: #ff5e5e;
  --green: #57c29a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

body.day {
  --bg: #f4efe4;
  --bg-soft: #ece5d6;
  --ink: #131218;
  --muted: #6d6a76;
  --line: rgba(19, 18, 24, 0.14);
  --card: rgba(19, 18, 24, 0.035);
  --accent: #2e50e8;
  --accent-soft: rgba(46, 80, 232, 0.1);
  --amber: #b96f16;
  --red: #cf3b3b;
  --green: #1f8f66;
  --shadow: 0 30px 80px rgba(60, 45, 20, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 1.1s cubic-bezier(0.4, 0, 0.2, 1), color 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.wrap--narrow { max-width: 860px; }

em { font-style: italic; }
a { color: inherit; }

/* ---------- grain + cursor + progress ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05; animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

.cursor-glow {
  position: fixed; z-index: 55; width: 460px; height: 460px; pointer-events: none;
  left: 0; top: 0; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  opacity: 0; transition: opacity 0.6s;
}
body.has-mouse .cursor-glow { opacity: 0.85; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: transparent; }
.progress__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--amber)); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; gap: 28px;
  padding: 16px clamp(20px, 4vw, 48px);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background-color 1.1s, border-color 1.1s, transform 0.4s;
}
.nav.hidden { transform: translateY(-110%); }
.nav__brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.14em;
  text-decoration: none; font-size: 15px;
}
.nav__fly { width: 26px; height: 26px; display: grid; place-items: center; color: var(--accent); }
.nav__fly svg { width: 100%; height: 100%; }
.nav__links { display: flex; gap: 22px; margin-left: 10px; }
.nav__links a {
  text-decoration: none; font-size: 14px; color: var(--muted);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--ink); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__signin { text-decoration: none; font-size: 14px; color: var(--muted); }
.nav__signin:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; text-decoration: none;
  font-family: var(--font-sans); font-weight: 600;
  border: none; border-radius: 999px; cursor: pointer;
  padding: 12px 26px; font-size: 15px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, background 0.3s;
  will-change: transform;
}
.btn:hover { box-shadow: 0 10px 34px rgba(77, 107, 255, 0.45); }
.btn--small { padding: 9px 20px; font-size: 14px; }
.btn--big { padding: 17px 38px; font-size: 17px; }
.btn--glow { box-shadow: 0 0 60px rgba(77, 107, 255, 0.5); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(77, 107, 255, 0.35); }
  50% { box-shadow: 0 0 80px rgba(77, 107, 255, 0.65); }
}

.link-arrow {
  font-family: var(--font-mono); font-size: 14px; text-decoration: none;
  color: var(--muted); letter-spacing: 0.02em;
}
.link-arrow span { display: inline-block; transition: transform 0.3s; }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover span { transform: translateY(4px); }

/* ---------- type primitives ---------- */
.kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 26px;
}
.kicker--center { text-align: center; }

.h2 {
  font-family: var(--font-serif); font-weight: 560;
  font-size: clamp(38px, 6vw, 74px); line-height: 1.04;
  letter-spacing: -0.015em; margin-bottom: 26px;
}
.h2--center { text-align: center; }
.h2 em, .origin__quote em, .dawn__title em, .finale__title em { font-style: italic; color: var(--accent); }

/* line reveal */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__in { display: inline-block; transform: translateY(115%); transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1); }
.in .line__in { transform: translateY(0); }
.line:nth-child(2) .line__in { transition-delay: 0.1s; }
.line:nth-child(3) .line__in { transition-delay: 0.2s; }
.line:nth-child(4) .line__in { transition-delay: 0.3s; }

/* generic reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.19, 1, 0.22, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- sections base ---------- */
.act { position: relative; padding: clamp(90px, 13vh, 160px) 0; }

/* ============ HERO ============ */
.act--hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 140px;
}

.email {
  max-width: 560px; margin-bottom: clamp(34px, 5vh, 56px);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(-0.6deg);
}
.email__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.email__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.email__dot:first-child { background: var(--red); opacity: 0.8; }
.email__from { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.email__body {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.75;
  padding: 18px 20px; color: var(--muted); white-space: pre-wrap; min-height: 148px;
}
.email__body .hl { color: var(--red); text-decoration: underline wavy; text-underline-offset: 4px; }
.email__caret { display: inline-block; width: 7px; height: 15px; background: var(--amber); vertical-align: -2px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__title {
  font-family: var(--font-serif); font-weight: 570;
  font-size: clamp(52px, 9.2vw, 124px); line-height: 1.0; letter-spacing: -0.02em;
  margin-bottom: 34px;
}
.hero__title em { color: var(--accent); }

.hero__sub { max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-bottom: 36px; }
.hero__sub strong { color: var(--ink); font-weight: 600; }

.hero__cta { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-bottom: 20px; }
.hero__fine { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

.hero__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 140px; opacity: 0.8; pointer-events: none; }

.hero__scrollcue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid var(--line); border-radius: 14px;
}
.hero__scrollcue span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 3px; background: var(--amber); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; }
.marquee__track { display: flex; white-space: nowrap; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.3em; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SILENCE ============ */
.silence__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin: 46px 0 0; }

.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.panel__bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.panel__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.panel__ok { font-family: var(--font-mono); font-size: 12px; color: var(--green); opacity: 0; transition: opacity 0.6s; }
.panel__ok.on { opacity: 1; }
.panel__rec { font-family: var(--font-mono); font-size: 12px; color: var(--red); display: flex; align-items: center; gap: 7px; }
.panel__rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.4s steps(1) infinite; }

.code { font-family: var(--font-mono); font-size: 13px; line-height: 1.8; padding: 18px 20px; min-height: 300px; color: var(--ink); white-space: pre; overflow-x: auto; }
.code .c-kw { color: var(--accent); } /* set via plain text; kept for future */

.flatline { width: 100%; height: 300px; display: block; }

.punch {
  font-family: var(--font-serif); font-size: clamp(30px, 4.6vw, 56px); line-height: 1.12;
  font-weight: 540; text-align: center; margin: clamp(64px, 10vh, 110px) auto;
  max-width: 760px; letter-spacing: -0.01em;
}
.punch em { color: var(--red); }

.silence__stat {
  display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 40px 0; margin-bottom: 50px;
}
.bignum { font-family: var(--font-serif); font-size: clamp(64px, 9vw, 120px); font-weight: 600; line-height: 0.9; letter-spacing: -0.03em; }
.bignum span { font-size: 0.36em; color: var(--muted); font-style: italic; }
.bignum__copy { max-width: 480px; color: var(--muted); font-size: 16px; }
.bignum__copy strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.bignum__copy .src { display: block; font-family: var(--font-mono); font-size: 12px; margin-top: 10px; opacity: 0.75; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quote {
  border-left: 3px solid var(--accent); background: var(--card);
  padding: 22px 24px; border-radius: 0 12px 12px 0;
  font-size: 16px; line-height: 1.6;
}
.quote b { color: var(--amber); font-weight: 600; }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ============ ORIGIN ============ */
.act--origin { text-align: center; padding-top: clamp(100px, 14vh, 160px); padding-bottom: clamp(100px, 14vh, 160px); overflow: hidden; }
/* the Delphic "know thyself" — a shadow behind the quote, like lettering on stone */
.origin__ghost {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-serif); font-weight: 640; font-style: italic;
  font-size: clamp(92px, 15vw, 220px); line-height: 0.94; letter-spacing: 0.04em;
  color: var(--ink); opacity: 0.027; white-space: nowrap;
}
.act--origin .wrap { position: relative; z-index: 1; }
.origin__quote {
  font-family: var(--font-serif); font-weight: 480;
  font-size: clamp(34px, 5.4vw, 66px); line-height: 1.14; letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.origin__body { max-width: 560px; margin: 0 auto 18px; color: var(--muted); font-size: 18px; }
.origin__body strong { color: var(--amber); font-weight: 600; }
.origin__body--turn { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--ink); margin-top: 34px; }

.wordmark { margin: 56px auto 18px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.wordmark__fly { width: clamp(44px, 6vw, 72px); height: clamp(44px, 6vw, 72px); color: var(--accent); animation: hover-fly 3.4s ease-in-out infinite; }
.wordmark__fly svg { width: 100%; height: 100%; }
@keyframes hover-fly { 0%, 100% { transform: translate(0, 0) rotate(-3deg); } 30% { transform: translate(3px, -7px) rotate(4deg); } 60% { transform: translate(-4px, -3px) rotate(-2deg); } }
.wordmark__text { font-family: var(--font-mono); font-weight: 800; font-size: clamp(46px, 8vw, 104px); letter-spacing: 0.1em; line-height: 1; }
.wordmark__text i { font-style: normal; display: inline-block; transform: translateY(0.6em); opacity: 0; transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s; }
.wordmark.in .wordmark__text i { transform: translateY(0); opacity: 1; }
.wordmark.in .wordmark__text i:nth-child(1) { transition-delay: 0.05s; }
.wordmark.in .wordmark__text i:nth-child(2) { transition-delay: 0.12s; }
.wordmark.in .wordmark__text i:nth-child(3) { transition-delay: 0.19s; }
.wordmark.in .wordmark__text i:nth-child(4) { transition-delay: 0.26s; }
.wordmark.in .wordmark__text i:nth-child(5) { transition-delay: 0.33s; }
.wordmark.in .wordmark__text i:nth-child(6) { transition-delay: 0.4s; }
.wordmark__def { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); }

/* ============ SESSION (pinned) ============ */
.session__track { height: 260vh; }
.session__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.session__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; width: 100%; }
.session__copy .h2 { margin-bottom: 20px; }
.session__body { color: var(--muted); max-width: 440px; margin-bottom: 26px; }
.session__hint { font-family: var(--font-mono); font-size: 12.5px; color: var(--amber); opacity: 0.9; transition: opacity 0.5s; }
.session__hint.off { opacity: 0; }

.chat {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
  max-width: 560px; width: 100%; justify-self: end;
}
.chat__bar { display: flex; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat__avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.chat__title { font-weight: 600; font-size: 14.5px; }
.chat__live { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--green); display: flex; align-items: center; gap: 6px; }
.chat__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.6s steps(1) infinite; }

.chat__body { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 380px; }
.msg {
  max-width: 88%; padding: 12px 15px; border-radius: 14px; font-size: 14.5px; line-height: 1.55;
  opacity: 0; transform: translateY(18px) scale(0.97);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}
.msg.shown { opacity: 1; transform: translateY(0) scale(1); }
.msg--tutor { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg--you { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg--you b, .msg--tutor b { font-weight: 700; }
.msg--tutor b { color: var(--amber); }

.msg--typing { display: none; align-self: flex-start; background: var(--card); border: 1px solid var(--line); padding: 14px 18px; }
.msg--typing.shown { display: flex; gap: 5px; opacity: 1; transform: none; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s ease-in-out infinite; }
.msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-5px); opacity: 1; } }

.chat__foot { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.chat__input { flex: 1 1 150px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; }
.chat__chip { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; color: var(--muted); white-space: nowrap; }
.chat__chip b { font-weight: 500; opacity: 0.7; }
.chat__chip--answer { border-color: var(--amber); color: var(--amber); }

/* ============ REFUSAL ============ */
.act--refusal { text-align: center; }
.refusal__lead { font-family: var(--font-serif); font-style: italic; font-size: 21px; color: var(--muted); margin: 8px 0 44px; }

.refusal__card {
  max-width: 640px; margin: 0 auto; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: clamp(30px, 5vw, 52px);
}
.refusal__card.shake { animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); }
}
.btn--answer { background: var(--amber); color: #14100a; font-size: 16px; padding: 15px 34px; }
.btn--answer:hover { box-shadow: 0 10px 34px rgba(232, 163, 61, 0.4); }

.refusal__reply {
  font-family: var(--font-serif); font-size: clamp(19px, 2.4vw, 25px); line-height: 1.4;
  margin: 30px auto 26px; max-width: 480px; min-height: 3.4em;
  transition: opacity 0.3s;
}
.refusal__reply.swap { opacity: 0; }
.refusal__score { font-family: var(--font-mono); font-size: 13px; color: var(--muted); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.refusal__score b { color: var(--amber); }
.refusal__sep { opacity: 0.5; }
.refusal__note { margin-top: 36px; color: var(--muted); font-size: 15.5px; }

/* ============ MEMORY ============ */
.memory__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.memory__body { color: var(--muted); max-width: 470px; margin-bottom: 34px; }
.memory__body strong { color: var(--ink); }

.memory__schedlabel { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber); margin-bottom: 13px; }
.memory__schedule { margin-bottom: 30px; }
.memory__days { display: flex; gap: 10px; flex-wrap: wrap; }
.dchip {
  font-family: var(--font-mono); font-size: 13px; padding: 8px 15px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  position: relative;
}
.dchip::before { content: ""; position: absolute; left: -10px; top: 50%; width: 10px; height: 1px; background: var(--line); }
.dchip:first-child::before { display: none; }
.memory__spaced { font-size: 13.5px; color: var(--muted); margin-top: 11px; }

.runs { display: flex; gap: 10px; flex-wrap: wrap; }
.run {
  font-family: var(--font-mono); font-size: 13px; padding: 8px 15px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: all 0.4s;
}
.run.done { border-color: var(--green); color: var(--green); }
.run.done::before { content: "✓ "; }

.slipcard {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 14px; box-shadow: var(--shadow); padding: clamp(24px, 3.4vw, 40px);
  transform: rotate(0.7deg);
}
.slipcard__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; color: var(--muted); margin-bottom: 10px; }
.slipcard__title { font-family: var(--font-serif); font-size: 27px; font-weight: 600; margin-bottom: 8px; }
.slipcard__badge { display: inline-block; font-family: var(--font-mono); font-size: 12.5px; color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 45%, transparent); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
.slipcard__body { font-size: 16.5px; margin-bottom: 18px; }
.slipcard__quote { font-family: var(--font-mono); font-size: 13px; color: var(--muted); background: var(--card); border-radius: 9px; padding: 12px 15px; margin-bottom: 18px; }
.slipcard__next { font-size: 15px; color: var(--muted); }
.slipcard__next b { color: var(--green); }
.slipcard__foot { margin-top: 20px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); opacity: 0.7; }

/* ============ DAWN ============ */
.act--dawn { min-height: 72vh; display: flex; align-items: center; text-align: center; overflow: hidden; }
.dawn__sun {
  position: absolute; left: 50%; bottom: -32vh; transform: translateX(-50%);
  width: 90vmin; height: 90vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.34) 0%, rgba(232, 163, 61, 0.1) 45%, transparent 70%);
  pointer-events: none;
}
.dawn__title { font-family: var(--font-serif); font-weight: 540; font-size: clamp(44px, 7.4vw, 96px); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 30px; }
.dawn__body { max-width: 600px; margin: 0 auto; color: var(--muted); font-size: 18.5px; }

/* ============ ROUNDS ============ */
.rounds__sub { color: var(--muted); font-size: 18px; margin-bottom: 54px; }
.rounds__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.round {
  background: color-mix(in srgb, var(--bg) 30%, #fff 60%);
  border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.35s;
}
body.night .round { background: var(--bg-soft); }
.round:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.round__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; color: var(--amber); margin-bottom: 16px; }
.round__title { font-family: var(--font-serif); font-size: 24px; line-height: 1.2; font-weight: 600; margin-bottom: 13px; }
.round__body { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.round__instead { border-top: 1px solid var(--line); padding-top: 17px; font-size: 14.5px; line-height: 1.6; }
.round__instead span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.26em; color: var(--green); margin-bottom: 8px; }

/* ============ WEEKS ============ */
.weeks__line { height: 2px; background: var(--line); margin: 60px 0 0; border-radius: 2px; overflow: hidden; }
.weeks__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--amber)); transition: width 0.2s linear; }
.weeks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-top: 34px; }
.week { position: relative; }
.week__dot { position: absolute; top: -40px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.week__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; color: var(--amber); margin-bottom: 12px; }
.week h3 { font-family: var(--font-serif); font-size: 20.5px; font-weight: 600; line-height: 1.25; margin-bottom: 10px; }
.week p { font-size: 14.5px; color: var(--muted); }
.weeks__note { margin-top: 50px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ============ COST ============ */
.cost__duel {
  display: flex; align-items: center; justify-content: center; gap: clamp(24px, 6vw, 80px);
  margin: 64px 0; flex-wrap: wrap; text-align: center;
}
.cost__side { display: flex; flex-direction: column; gap: 10px; max-width: 260px; }
.cost__num { font-family: var(--font-serif); font-weight: 600; font-size: clamp(56px, 8vw, 108px); line-height: 1; letter-spacing: -0.02em; }
.cost__num--accent { color: var(--accent); }
.cost__label { font-size: 14px; color: var(--muted); }
.cost__vs { font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--muted); }

.cost__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 64px; }
.ccard { background: color-mix(in srgb, var(--bg) 30%, #fff 60%); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.35s; }
body.night .ccard { background: var(--bg-soft); }
.ccard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ccard h4 { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.04em; margin-bottom: 12px; color: var(--accent); }
.ccard p { font-size: 14.5px; color: var(--muted); }

.cost__zero {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 44px);
  border-top: 1px solid var(--line); padding-top: 44px; flex-wrap: wrap;
}
.cost__zeronum { font-family: var(--font-mono); font-weight: 800; font-size: clamp(64px, 10vw, 130px); line-height: 0.9; letter-spacing: -0.04em; color: var(--accent); }
.cost__zerolabel { max-width: 420px; font-size: 16px; color: var(--muted); }

/* ============ FINALE ============ */
.act--finale { min-height: 96vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.finale__title { font-family: var(--font-serif); font-weight: 540; font-size: clamp(40px, 6.6vw, 84px); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 30px; }
.finale__sub { font-size: 20px; color: var(--muted); margin-bottom: 40px; }
.finale__cta { margin-bottom: 22px; }
.finale__fine { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.finale__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; opacity: 0.5; pointer-events: none; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 34px 0 26px; font-size: 14px; color: var(--muted); }
.footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__row b { color: var(--ink); }
.footer__links { display: flex; gap: 22px; }
.footer__links a { text-decoration: none; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__note { margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; opacity: 0.65; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .session__grid { grid-template-columns: 1fr; gap: 26px; align-content: center; }
  .session__copy .h2 { font-size: clamp(30px, 5vw, 44px); }
  .session__body { display: none; }
  .chat { justify-self: stretch; max-width: 640px; margin: 0 auto; }
  .chat__body { min-height: 300px; }
  .rounds__grid, .cost__cards { grid-template-columns: 1fr; max-width: 560px; }
  .weeks__grid { grid-template-columns: 1fr 1fr; }
  .weeks__line { display: none; }
  .week__dot { display: none; }
  .memory__grid, .silence__grid, .quotes { grid-template-columns: 1fr; }
  .silence__stat { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .nav__links, .nav__signin { display: none; }
  .weeks__grid { grid-template-columns: 1fr; }
  .cost__duel { flex-direction: column; }
  .email { transform: none; }
  .slipcard { transform: none; }
  .act--memory .shot__win { transform: none; }
  .shot__proof { display: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important; /* infinite 1ms loops would strobe */
    transition-duration: 0.001s !important;
  }
  .reveal, .line__in, .wordmark__text i, .msg { opacity: 1 !important; transform: none !important; }
}


/* ── Real screenshots from the app: they carry the trust ──────────────── */
.shot { margin: clamp(44px, 7vh, 72px) auto 0; max-width: 860px; }
.shot--tight { max-width: 640px; }
/* never stretch a capture past its pixels: blur costs more than size */
.shot--due { max-width: 583px; }
.shot--score { max-width: 824px; }
.shot--side { margin: 0; max-width: none; align-self: center; }
.shot__win {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}
/* a slight tilt — the same gesture as the email window in the hero */
.act--memory .shot__win { transform: rotate(0.8deg); }
[data-theme="day"] .shot__win { box-shadow: 0 22px 60px rgba(20, 24, 40, 0.16); }
.shot__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.shot__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot__dot:nth-child(1) { background: var(--red); opacity: 0.55; }
.shot__dot:nth-child(2) { background: var(--amber); opacity: 0.5; }
.shot__dot:nth-child(3) { background: var(--green); opacity: 0.5; }
.shot__proof {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--green);
}
.shot__proof i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.6s steps(1) infinite; }
.shot__url { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.shot img {
  width: 100%; height: auto; display: block;
  /* gentle dimming: content untouched, but a white window must not glare on a dark stage */
  filter: brightness(0.97) saturate(0.96);
}
.shot figcaption {
  margin-top: 14px; font-family: var(--font-mono); font-size: 12.5px;
  line-height: 1.6; color: var(--muted); text-align: center;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.rounds__proof {
  margin: clamp(36px, 5vh, 56px) auto 0; text-align: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted); max-width: 620px;
}
.rounds__proof b { color: var(--ink); font-weight: 600; }
