/* hereph.app · site styles (2026-11-26)
   Two voices: Inter for the practical voice, Frank Ruhl Libre for Scripture and word studies. */

:root {
  --night: #0a1628;
  --deep: #0f2137;
  --deeper: #081220;
  --line: #24425f;
  --line-soft: #172f4b;
  --teal: #2dd4bf;
  --teal-soft: #5eead4;
  --gold: #d4a847;
  --gold-soft: #e8c96d;
  --mist: #e8eef5;
  --slate: #b3c0cf;
  --muted: #93a4b8;
  --ink: #14100a;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Frank Ruhl Libre", "Scripture Greek", "Noto Serif Hebrew", Georgia, serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--mist);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-soft); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--mist); }
p + p { margin-top: 1em; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal-soft); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 40rem; }
.serif { font-family: var(--serif); }
.he { font-family: var(--serif); direction: rtl; unicode-bidi: isolate; }
.gr { font-family: var(--serif); }
.gold { color: var(--gold); }
.slate { color: var(--slate); }
.small { font-size: 0.9375rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--mist); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-soft); color: var(--ink); }
.btn-quiet { border-color: var(--line); color: var(--mist); }
.btn-quiet:hover { border-color: var(--teal); color: var(--mist); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 22, 40, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--mist); text-decoration: none; font-weight: 300; font-size: 1.375rem; letter-spacing: 0.01em;
}
.brand:hover { color: var(--mist); }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand .he { color: var(--gold); font-size: 1.2rem; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 28px; }
.nav a:not(.btn) { color: var(--slate); text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding: 6px 0; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--mist); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 0.9375rem; font-weight: 600;
}
.nav-toggle .bars { width: 16px; height: 10px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--mist); border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle .bars::before { top: 1px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 819px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--night); border-bottom: 1px solid var(--line-soft);
  }
  .js .nav:not(.open) { display: none; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav a:not(.btn) { display: block; padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid var(--line-soft); }
  .js .nav a[aria-current="page"] { box-shadow: none; color: var(--gold); }
  .js .nav .btn { margin-top: 20px; }
  /* Without JS the links stay visible and wrap under the brand. */
  html:not(.js) .bar { height: auto; padding: 12px 0; flex-wrap: wrap; }
  html:not(.js) .nav, html:not(.js) .nav ul { flex-wrap: wrap; gap: 6px 18px; }
}

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 300; letter-spacing: -0.015em; line-height: 1.1; color: var(--mist); }
h1 { font-size: clamp(2.625rem, 6vw, 4.5rem); letter-spacing: -0.025em; line-height: 1.03; }
h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.005em; line-height: 1.3; }
.lead { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); color: var(--slate); line-height: 1.6; }
.section-head { max-width: 44rem; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head p { color: var(--slate); margin-top: 16px; font-size: 1.125rem; }
.kicker { color: var(--slate); font-size: 0.9375rem; margin-bottom: 12px; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; border-top: 1px solid var(--line-soft); }
.section-tint { background: var(--deep); border-top-color: var(--line-soft); }
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.page-head h1 { max-width: 16ch; }
.page-head .lead { max-width: 42rem; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px);
  background:
    radial-gradient(ellipse 60% 55% at 74% 18%, rgba(232, 201, 109, 0.07), transparent 70%),
    radial-gradient(ellipse 80% 60% at 70% 70%, rgba(45, 212, 191, 0.05), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: 24px; max-width: 34rem; }
.hero .fine { margin-top: 18px; font-size: 0.9375rem; color: var(--muted); max-width: 34rem; }

.word-stage { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.word {
  font-family: var(--serif); font-weight: 500; color: var(--gold);
  font-size: clamp(6.5rem, 16vw, 13rem); line-height: 1.05; direction: rtl; unicode-bidi: isolate;
}
.waterline {
  position: relative; width: min(100%, 460px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.55) 30%, rgba(45, 212, 191, 0.55) 70%, transparent);
}
.reflection-wrap { height: clamp(3.4rem, 8vw, 6.4rem); overflow: hidden; width: 100%; display: flex; justify-content: center; }
.reflection {
  font-family: var(--serif); font-weight: 500; color: var(--gold);
  font-size: clamp(6.5rem, 16vw, 13rem); line-height: 1.05; direction: rtl;
  transform: scaleY(-1); opacity: 0.2; filter: blur(1.2px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 55%);
  mask-image: linear-gradient(to top, #000 0%, transparent 55%);
}
.ripple {
  position: absolute; left: 50%; top: 0; width: 56px; height: 12px;
  border: 1px solid rgba(94, 234, 212, 0.7); border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2); opacity: 0;
  animation: ripple 3.4s cubic-bezier(.22, .61, .36, 1) 0.5s 1 forwards;
  pointer-events: none;
}
.ripple:nth-child(2) { animation-delay: 0.95s; }
.ripple:nth-child(3) { animation-delay: 1.4s; }
@keyframes ripple {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}
.gloss { text-align: center; max-width: 25rem; margin-top: 4px; }
.gloss .say { font-size: 1.0625rem; color: var(--mist); }
.gloss .say .serif { color: var(--gold); }
.gloss p { color: var(--slate); font-size: 0.9375rem; margin-top: 6px; }

/* ---------- Video ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(45, 212, 191, 0.1), transparent 70%),
    linear-gradient(180deg, #10243c 0%, var(--deeper) 100%);
}
.video img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px;
}
.video-poster .mark { width: 64px; height: 64px; opacity: 0.9; }
.video-poster p { color: var(--slate); max-width: 28rem; font-size: 1rem; }
.video-poster .when { color: var(--mist); font-size: 1.125rem; }
.video-play {
  position: absolute; inset: 0; width: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(8, 18, 32, 0) 40%, rgba(8, 18, 32, 0.55));
}
.video-play .disc {
  width: 84px; height: 84px; border-radius: 50%; background: var(--gold); display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); transition: transform .2s ease, background-color .2s ease;
}
.video-play:hover .disc, .video-play:focus-visible .disc { transform: scale(1.06); background: var(--gold-soft); }
.video-play .disc svg { width: 30px; height: 30px; margin-left: 4px; }
.video-play .label {
  position: absolute; left: 20px; bottom: 16px; font-size: 0.9375rem; font-weight: 600; color: var(--mist);
}
.video-note { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }
.welcome-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 64px); align-items: center; }

/* ---------- Doors ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: clamp(20px, 3vw, 40px); }
.door { border-top: 1px solid var(--line); padding-top: 20px; }
.door .n { font-size: 0.9375rem; color: var(--muted); margin-bottom: 10px; }
.door p { color: var(--muted); font-size: 1.125rem; }
.door.open { border-top: 2px solid var(--gold); }
.door.open .n { color: var(--gold); }
.door.open p { color: var(--mist); font-size: 1.25rem; line-height: 1.55; }

/* ---------- A day ---------- */
.day-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.steps { counter-reset: none; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.steps .letter { font-family: var(--serif); color: var(--gold); font-size: 2.25rem; line-height: 1; text-align: center; padding-top: 2px; }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--slate); }

.day-card {
  background: linear-gradient(180deg, #132a45 0%, var(--deep) 100%);
  border: 1px solid var(--line); border-radius: 28px; padding: 28px 28px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.day-card .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; color: var(--slate); }
.day-card .big { font-family: var(--serif); color: var(--gold); font-size: 3.75rem; line-height: 1.15; margin: 18px 0 2px; direction: rtl; text-align: left; unicode-bidi: plaintext; }
.day-card .name { font-size: 1.375rem; font-weight: 500; }
.day-card .means { color: var(--slate); }
.day-card blockquote {
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.5; color: var(--mist);
  margin: 18px 0 0; padding-left: 14px; border-left: 2px solid var(--gold);
}
.day-card blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); margin-top: 6px; }
.day-card .part { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.day-card .part h4 { font-size: 0.875rem; font-weight: 600; color: var(--teal-soft); margin-bottom: 6px; }
.day-card .part p { font-size: 1rem; color: var(--mist); }
.day-card .foot { margin-top: 18px; font-size: 0.8125rem; color: var(--muted); }

.parallels { margin-top: clamp(48px, 6vw, 72px); }
.parallels h3 { margin-bottom: 8px; }
.parallels > p { color: var(--slate); max-width: 40rem; }
.parallel-list { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.parallel-list li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.parallel-list .sci { font-weight: 600; font-size: 1rem; }
.parallel-list .sci span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.parallel-list .scr { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.45; }
.parallel-list .scr span { display: block; font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }

/* ---------- Seasons ---------- */
.seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: 40px; }
.seasons a {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px;
  padding: 20px 0; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--mist);
}
.seasons .s-name { font-size: 1.3125rem; font-weight: 400; }
.seasons .s-count { color: var(--slate); font-size: 0.9375rem; white-space: nowrap; }
.seasons .s-desc { grid-column: 1 / -1; color: var(--slate); font-size: 0.9375rem; }
.seasons a:hover .s-name { color: var(--gold); }
.anyone { margin-top: 32px; color: var(--slate); max-width: 44rem; }

/* ---------- Inside ---------- */
.inside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.inside > div { padding: 24px 0; border-top: 1px solid var(--line-soft); }
.inside dt { font-size: 1.25rem; font-weight: 500; }
.inside dt .serif { color: var(--gold); font-weight: 400; margin-left: 6px; }
.inside dd { color: var(--slate); margin-top: 6px; }
.inside dd a { white-space: nowrap; }

/* ---------- Groups teaser ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.study-mini { display: grid; gap: 16px; }
.study-mini a {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--mist);
  background: rgba(10, 22, 40, 0.4); transition: border-color .2s ease;
}
.study-mini a:hover { border-color: var(--gold); }
.study-mini img { width: 72px; height: auto; border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.study-mini strong { display: block; font-weight: 500; font-size: 1.125rem; }
.study-mini span { color: var(--slate); font-size: 0.9375rem; }

/* ---------- Support ---------- */
.support { max-width: 46rem; }
.support p { color: var(--slate); }
.support .price { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.support .price dt { color: var(--mist); font-weight: 600; }
.support .price dd { color: var(--slate); }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.trust > div { border-top: 1px solid var(--line); padding-top: 20px; }
.trust h3 { margin-bottom: 10px; }
.trust p { color: var(--slate); font-size: 1rem; }
.trust .lines { display: grid; gap: 8px; margin-top: 4px; }
.trust .lines a, .trust .lines span { color: var(--mist); font-size: 1rem; text-decoration: none; }
.trust .lines b { color: var(--teal-soft); font-weight: 600; }
.trust .crisis { border-top-color: var(--teal); }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; }
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 1.125rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .answer { padding: 0 0 22px; color: var(--slate); max-width: 42rem; }
.faq .answer a { color: var(--teal-soft); }

/* ---------- Final ---------- */
.final { text-align: center; padding: clamp(88px, 12vw, 150px) 0; border-top: 1px solid var(--line-soft); }
.final blockquote { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.2; max-width: 20ch; margin: 0 auto; }
.final cite { display: block; font-style: normal; color: var(--muted); font-size: 0.9375rem; margin-top: 16px; }
.final .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 48px; background: var(--deeper); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font-size: 0.9375rem; font-weight: 600; color: var(--mist); letter-spacing: 0; margin-bottom: 12px; }
.foot-grid li + li { margin-top: 8px; }
.foot-grid a { color: var(--slate); text-decoration: none; font-size: 0.9375rem; }
.foot-grid a:hover { color: var(--mist); text-decoration: underline; }
.foot-brand p { color: var(--muted); font-size: 0.9375rem; margin-top: 10px; max-width: 22rem; }
.fine-print { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.fine-print p { font-size: 0.8125rem; color: var(--muted); line-height: 1.7; max-width: 70rem; }
.fine-print p + p { margin-top: 8px; }
.fine-print a { color: var(--slate); }

/* ---------- Paths library ---------- */
.filter-bar { position: sticky; top: 64px; z-index: 20; background: rgba(10, 22, 40, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
.filter-label { font-size: 0.9375rem; color: var(--slate); margin-bottom: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--mist); font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--mist); color: var(--night); border-color: var(--mist); }
.filter-status { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
.path-list { display: flex; flex-direction: column; }
.path { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding: 36px 0; border-top: 1px solid var(--line-soft); }
.path-list.filtered .path.last-in-lane { order: 99; }
.path .glyph { text-align: right; }
.path .glyph .w { font-family: var(--serif); color: var(--gold); font-size: 2.5rem; line-height: 1.15; display: block; }
.path .glyph .t { display: block; color: var(--slate); font-size: 0.875rem; margin-top: 6px; }
.path h2 { font-size: 1.625rem; font-weight: 400; letter-spacing: -0.01em; }
.path .code { color: var(--slate); margin-top: 2px; }
.path .desc { margin-top: 12px; max-width: 46rem; color: var(--mist); font-size: 1rem; }
.path .facts { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.875rem; color: var(--slate); }
.path .facts dt { display: inline; color: var(--muted); }
.path .facts dd { display: inline; margin-left: 4px; color: var(--mist); }
.path .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.875rem; }
.path .tags .free { color: var(--teal-soft); }
.path .tags a { color: var(--gold); }
.path .tags .cont { color: var(--slate); }
.no-results { padding: 48px 0; color: var(--slate); }

/* ---------- Groups ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.flow li { border-top: 2px solid var(--line); padding-top: 18px; }
.flow li:first-child { border-top-color: var(--gold); }
.flow .n { font-size: 0.9375rem; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.flow p { color: var(--slate); font-size: 1rem; margin-top: 6px; }

.study { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); padding: 40px 0; border-top: 1px solid var(--line-soft); }
.study:first-of-type { border-top: 0; padding-top: 8px; }
.covers { position: relative; }
.covers img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.study h3 { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.01em; }
.study h3 .serif { color: var(--gold); margin-left: 8px; font-size: 1.5rem; }
.study .who { color: var(--slate); margin-top: 6px; }
.study .weeks { margin-top: 18px; display: grid; gap: 6px; }
.study .weeks li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px; font-size: 1rem; }
.study .weeks .wk { color: var(--muted); }
.downloads { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.downloads .size { font-weight: 400; opacity: 0.75; margin-left: 4px; }
.study .note { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }

.timeline { margin-top: 8px; }
.timeline .bar-row { display: flex; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.timeline .seg { padding: 14px 14px 12px; min-width: 0; border-left: 1px solid var(--line); background: var(--deep); }
.timeline .seg:first-child { border-left: 0; }
.timeline .seg.main { background: #15314f; }
.timeline .seg b { display: block; font-weight: 600; font-size: 0.9375rem; }
.timeline .seg span { display: block; font-size: 0.8125rem; color: var(--slate); }
.timeline-notes { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; }
.timeline-notes p { color: var(--slate); font-size: 1rem; }
.timeline-notes strong { color: var(--mist); font-weight: 600; }

.agreements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-bottom: 40px; }
.agreements li { font-family: var(--serif); font-size: 1.375rem; line-height: 1.4; border-top: 2px solid var(--gold); padding-top: 16px; }
.role { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.role p { color: var(--slate); }
.role h3 { margin-bottom: 8px; }

.costs { display: grid; gap: 0; max-width: 52rem; }
.costs > div { display: grid; grid-template-columns: 15rem 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.costs dt { font-weight: 600; }
.costs dd { color: var(--slate); }

.vote { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vote a {
  display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; color: var(--mist); transition: border-color .2s ease;
}
.vote a:hover { border-color: var(--gold); }
.vote .serif { color: var(--gold); font-size: 1.375rem; display: block; line-height: 1.2; }
.vote strong { display: block; font-weight: 500; font-size: 1.125rem; margin-top: 8px; }
.vote span.for { display: block; color: var(--slate); font-size: 0.9375rem; margin-top: 4px; }
.vote .act { display: block; margin-top: 12px; font-size: 0.875rem; color: var(--teal-soft); font-weight: 600; }

/* ---------- Start ---------- */
.start-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.start-steps li { border-top: 2px solid var(--line); padding-top: 18px; }
.start-steps .n { font-size: 2rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.start-steps p { color: var(--slate); font-size: 1rem; margin-top: 6px; }
.install { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.install > div { border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.install h3 { margin-bottom: 16px; }
.install ol { counter-reset: s; display: grid; gap: 12px; }
.install li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--slate); }
.install li::before {
  content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 0.8125rem; font-weight: 600; color: var(--mist);
}
.install strong { color: var(--mist); font-weight: 600; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.two-col h3 { margin-bottom: 8px; }
.two-col p { color: var(--slate); }

/* ---------- 404 ---------- */
.lost { padding: clamp(80px, 14vw, 160px) 0; }
.lost .he { font-size: clamp(4rem, 12vw, 7rem); color: var(--gold); line-height: 1.1; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .flow, .start-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .word-stage { order: -1; }
  .hero h1 { max-width: 13ch; }
  .welcome-grid, .day-grid, .split, .role, .two-col, .timeline-notes { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr; }
  .trust, .agreements { grid-template-columns: 1fr; }
  .parallel-list, .inside, .vote, .install { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .path .glyph { text-align: left; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .path .glyph .w { font-size: 2.125rem; }
  .path .glyph .t { margin-top: 0; }
  .study { grid-template-columns: 1fr; }
  .covers { max-width: 220px; }
  .costs > div { grid-template-columns: 1fr; gap: 4px; }
  .timeline .seg span { display: none; }
}
@media (max-width: 559px) {
  .flow, .start-steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .parallel-list li { grid-template-columns: 1fr; gap: 6px; }
  .day-card { padding: 22px 20px 20px; border-radius: 22px; }
  .timeline .seg { padding: 12px 8px; }
  .timeline .seg b { font-size: 0.8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .ripple { display: none; }
}

/* ---------- Additions: timeline widths, cover stack ---------- */
.timeline .seg.f5 { flex: 5 1 0; }
.timeline .seg.f30 { flex: 30 1 0; }
.covers { padding: 0 18px 18px 0; }
.covers img.front { position: relative; z-index: 1; }
.covers img.back { position: absolute; top: 18px; left: 18px; width: calc(100% - 18px); opacity: 0.9; }

/* ---------- Pass 2 refinements ---------- */
:root { --section: clamp(64px, 8vw, 104px); }
h1, h2, .final blockquote { text-wrap: balance; }
h2 + .lead, h2 + p { margin-top: 16px; }
.brand .tm { font-size: 0.45em; vertical-align: super; margin-left: 1px; opacity: 0.75; letter-spacing: 0; }
.word { padding-bottom: 0.14em; }
.reflection { padding-bottom: 0.14em; }
.seasons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .seasons { grid-template-columns: 1fr; } }
.study-mini .mini-mark {
  width: 72px; height: 72px; border-radius: 14px; display: grid; place-items: center;
  background: var(--night); border: 1px solid var(--line); color: var(--gold); font-size: 1.75rem; direction: rtl;
}
.final cite { font-family: var(--sans); }
.trust .lines + p { margin-top: 12px; }
.welcome-grid { align-items: start; }
@media (max-width: 599px) { .gloss p:not(.say) { display: none; } .hero { padding-top: 24px; } }
.timeline-notes p { margin: 0; }
.study h3 .serif { white-space: nowrap; }
