/* Font files are declared once in tokens.css and shared by every route. */
body {
  --display: "PP Neue Montreal", Arial, sans-serif;
  --sans: "Khteka", Arial, sans-serif;
  --mono: "Khteka", Arial, sans-serif;
  font-family: var(--sans);
}
body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: var(--display);
  font-variation-settings: normal;
}
.display { font-weight: 500; line-height: 0.97; letter-spacing: -0.035em; font-variation-settings: normal; }
.mono { font-family: var(--sans); letter-spacing: 0.055em; }

/* Navigation keeps the identity left, the page links centred and the account
   control right. */
#nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: clamp(14px, 2vw, 36px);
}
#nav .brand { justify-self: start; }
#nav .brand .word { font-family: var(--display); font-weight: 700; font-variation-settings: normal; }
#nav .nav-links { margin-left: 0; justify-self: center; }
#nav .nav-links a {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(0.86rem, 1.05vw, 1rem);
  letter-spacing: -0.015em;
}
#nav > .cta { justify-self: end; font-family: var(--display); font-weight: 500; }

/* One clear hero route: headline, actions, evidence. */
.act-threshold .act-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 42% 27% at 70% 24%, rgb(47 93 77 / 0.28), transparent 78%),
    radial-gradient(ellipse 48% 20% at 73% 38%, rgb(180 148 104 / 0.12), transparent 84%);
  mix-blend-mode: screen;
}
.hero {
  position: relative;
  z-index: 1;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-content: stretch;
  row-gap: clamp(12px, 2vh, 22px);
  padding-top: clamp(96px, 12vh, 136px);
}
.hero .d1 {
  align-self: center;
  max-width: 100%;
  font-size: clamp(3.6rem, 7.2vw, 6.4rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.038em;
}
.hero .ln { padding-bottom: 0.085em; }
.hero .ln > i { opacity: 1; transform: none; white-space: nowrap; }
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.4em, 0);
  filter: blur(7px);
  animation: hero-word-arrive 920ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .ln:nth-child(1) .hero-word:nth-child(1) { animation-delay: 180ms; }
.hero .ln:nth-child(1) .hero-word:nth-child(2) { animation-delay: 600ms; }
.hero .ln:nth-child(2) .hero-word:nth-child(1) { animation-delay: 1020ms; }
.hero .ln:nth-child(2) .hero-word:nth-child(2) { animation-delay: 1440ms; }
.hero .ln:nth-child(3) .hero-word:nth-child(1) { animation-delay: 1860ms; }
.hero .ln:nth-child(3) .hero-word:nth-child(2) { animation-delay: 2280ms; }
@keyframes hero-word-arrive {
  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}
.hero-base {
  grid-row: 2;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(18px, 3vh, 28px);
}
.hero-foot { max-width: none; width: 100%; justify-self: center; }
.hero .cta-row { width: 100%; justify-content: center; gap: 12px 16px; }
.hero .cta-row > .cta {
  justify-content: center;
  min-height: 58px;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 500;
  padding: 0.9em 1.55em;
}
.hero .cta-row > .cta:first-child { min-width: 240px; min-height: 64px; padding-inline: 1.8em; }
.hero .cta-row > .cta.ghost {
  min-width: 178px;
  font-size: clamp(0.92rem, 1.06vw, 1.04rem);
  color: #fff;
  background: #0b0b10;
  border-color: rgb(255 255 255 / 0.62);
}
.hero .cta-row > .mono.tiny {
  flex-basis: 100%;
  text-align: center;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.3;
  letter-spacing: 0.015em;
  text-transform: none;
  text-shadow: 0 2px 8px #000;
  width: max-content;
  margin-inline: auto;
  padding: 0.3em 0.8em;
  background: #0b0b10;
  border-radius: 4px;
}
.hero .cta-row > .mono.tiny:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.hero .ticker {
  width: min(100%, 980px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 24px);
  padding: clamp(15px, 1.7vw, 22px);
  text-align: left;
  border: 1px solid rgb(255 255 255 / 0.38);
  border-radius: 14px;
  background: #08080c;
  box-shadow: 0 18px 42px rgb(0 0 0 / 0.34);
}
.hero .ticker li { justify-items: start; min-width: 0; }
.hero .ticker b {
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.25vw, 2.1rem);
  line-height: 1;
}
.hero .ticker span {
  color: #f2f0ea;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: none;
}
.hero-me { grid-row: 3; margin-top: 0; }

/* The five questions now move around the scene instead of replacing each other
   at the same coordinate. Longer scroll and wider ramps let each thought settle. */
.act-sunday { height: 1000vh; }
.sunday {
  --o1: clamp(0, calc((0.111 - var(--t)) / 0.030), 1);
  --i2: clamp(0, calc((var(--t) - 0.119) / 0.030), 1);
  --o2: clamp(0, calc((0.251 - var(--t)) / 0.030), 1);
  --i3: clamp(0, calc((var(--t) - 0.259) / 0.030), 1);
  --o3: clamp(0, calc((0.386 - var(--t)) / 0.030), 1);
  --i4: clamp(0, calc((var(--t) - 0.394) / 0.030), 1);
  --o4: clamp(0, calc((0.516 - var(--t)) / 0.030), 1);
  --i5: clamp(0, calc((var(--t) - 0.524) / 0.030), 1);
  --o5: clamp(0, calc((0.656 - var(--t)) / 0.030), 1);
}
.sun-beats {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  justify-items: stretch;
}
.sun-beats .sb {
  position: relative;
  isolation: isolate;
  max-width: min(39ch, 44vw);
  gap: clamp(10px, 1.7vh, 18px);
  transform: translate3d(0,
    calc((1 - var(--kin)) * 24px - (1 - var(--kout)) * 18px), 0);
}
.sun-beats .sb::before {
  content: '';
  position: absolute;
  inset: -16px -22px;
  z-index: -1;
  border-radius: 12px;
  background: linear-gradient(100deg, rgb(4 4 8 / 0.93), rgb(4 4 8 / 0.78));
  box-shadow: 0 18px 38px rgb(0 0 0 / 0.24);
}
.sun-beats .sb1 { align-self: start; justify-self: start; margin-top: 8vh; }
.sun-beats .sb2 { align-self: start; justify-self: end; margin-top: 14vh; }
.sun-beats .sb3 { align-self: center; justify-self: start; margin-left: 7vw; }
.sun-beats .sb4 { align-self: end; justify-self: end; margin-bottom: 10vh; }
.sun-beats .sb5 { align-self: center; justify-self: center; margin-top: 8vh; }
.sun-beats .sb-h { font-weight: 700; font-size: clamp(2.3rem, 4.2vw, 4.1rem); line-height: 0.98; }
.sun-beats .sb-l { font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.45; color: #f2f0ea; }
.sun-rail { opacity: var(--pay); }

/* A compact conclusion plate and shorter lists preserve the section hierarchy. */
.cv-one, .cv-one::before { border-radius: 16px; }
.cv-one { overflow: hidden; }
.cv-one::after { left: 0; top: 16px; bottom: 16px; border-radius: 0 3px 3px 0; }
.stage-panel {
  width: 100%;
  max-width: 100%;
  gap: clamp(10px, 1.6vh, 18px);
  border-radius: 16px;
  border-left-width: 1px;
  border-color: rgb(255 255 255 / 0.3);
  background: #09090e;
  box-shadow: 0 18px 46px rgb(0 0 0 / 0.34);
  padding: clamp(20px, 2vw, 30px);
}
.stage-panel:not(.on) { visibility: hidden; transition: none; }
.stage-panel.on {
  visibility: visible;
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stages-head {
  width: min(100%, 42ch);
  padding: clamp(16px, 1.6vw, 24px);
  border-radius: 12px;
  background: #09090e;
}
.stages-head .stage-line { color: #fff; }
.stages-head .stage-sub, .stages-head .kicker { color: #f2f0ea; }
.sp-piece { margin: 0; color: var(--sc); font-size: 0.94rem; letter-spacing: 0.02em; }
.sp-summary {
  margin: 0;
  color: var(--fg);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.sp-meta { margin: 0; color: var(--fg-dim); font-size: 0.95rem; }
.sp-link {
  justify-self: start;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--sc);
  padding-bottom: 0.18em;
}
.sp-link:hover { color: var(--sc); }
.ses-copy { grid-template-rows: auto auto auto auto minmax(0, 1fr); }
.ses-feat { align-content: start; gap: clamp(8px, 1.4vh, 14px); }
.ses-f { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.ses-f .ses-ic { grid-row: auto; width: clamp(30px, 2.8vw, 40px); }
.ses-ft {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.08rem, 1.35vw, 1.34rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.ses-more { align-self: end; }

@media (max-width: 900px) {
  #nav { grid-template-columns: minmax(0, 1fr) auto; }
  .hero { padding-top: clamp(80px, 11vh, 108px); }
  .hero .d1 { font-size: clamp(3rem, 9.8vw, 5rem); }
  .hero .ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sun-beats .sb { max-width: min(100%, 34ch); margin: 0; align-self: center; }
  .sun-beats .sb1, .sun-beats .sb3 { justify-self: start; }
  .sun-beats .sb2, .sun-beats .sb4 { justify-self: end; }
  .sun-beats .sb5 { justify-self: center; }
  .sun-beats .sb-h { font-size: clamp(1.8rem, 6vw, 3.1rem); }
  .stage-panels { width: min(46ch, 80vw); }
}
@media (max-width: 600px) {
  .hero { row-gap: clamp(10px, 1.6vh, 16px); }
  .hero .d1 { font-size: clamp(2.65rem, 10.8vw, 3.7rem); }
  .hero .cta-row { flex-direction: column; gap: 9px; }
  .hero .cta-row > .cta { width: min(100%, 330px); min-width: 0; min-height: 52px; }
  .hero .cta-row > .cta:first-child { min-height: 58px; }
  .hero .cta-row > .mono.tiny { flex-basis: auto; }
  .hero .ticker { padding: 12px 14px; gap: 12px; }
  .hero .ticker b { font-size: 1.5rem; }
  .hero-me { justify-self: center; }
  .sun-beats .sb { max-width: min(100%, 30ch); }
  .sun-beats .sb-h { font-size: clamp(1.7rem, 7.2vw, 2.45rem); }
  .sun-beats .sb-l { font-size: 0.98rem; }
  .stage-panels { width: min(100%, 86vw); }
  .sp-summary { font-size: clamp(1.55rem, 7vw, 2.2rem); }
}
@media (max-height: 740px) and (min-width: 901px) {
  .hero .d1 { font-size: clamp(3.1rem, 7.1vw, 5.35rem); }
  .hero { padding-top: clamp(68px, 10vh, 96px); row-gap: 9px; }
  .hero .ticker { padding: 10px 15px; }
  .hero .cta-row > .cta { min-height: 48px; }
  .hero .cta-row > .cta:first-child { min-height: 54px; }
}
body.gl-failed .sun-beats { grid-template-rows: none; }
body.gl-failed .sun-beats .sb { max-width: 52ch; margin: 0; justify-self: stretch; }
body.gl-failed .sun-beats .sb::before { inset: -8px -12px; }
body.gl-failed .sun-rail { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-word { animation: none; opacity: 1; transform: none; filter: none; }
  .sun-beats .sb { transform: none; }
}

/* The session is one product view, with the explanation outside the instrument.
   The room remains visible at the edges, but its chessboard no longer competes
   with the much smaller board inside the console. */
.act-session .act-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 42% at 80% 50%, rgb(88 63 132 / 0.17), transparent 82%),
    linear-gradient(180deg, rgb(6 6 10 / 0.96), rgb(6 6 10 / 0.88) 52%, rgb(6 6 10 / 0.96));
}
.session {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: clamp(12px, 2.2vh, 24px);
  padding-top: clamp(82px, 9.5vh, 112px);
  padding-bottom: clamp(22px, 3vh, 34px);
}
.ses-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
  gap: clamp(24px, 5vw, 90px);
  align-items: end;
  opacity: calc(var(--in2) * (1 - var(--out)));
}
.session .kicker { margin: 0 0 clamp(10px, 1.5vh, 18px); color: var(--bishop-hi); }
.session .kicker .dot { background: var(--bishop); box-shadow: none; }
.session .ses-h {
  font-family: var(--display);
  font-size: clamp(2.65rem, 4.7vw, 5.2rem);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.038em;
  color: var(--ivory);
}
.ses-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.ses-line > span {
  display: block;
  opacity: var(--in);
  transform: translateY(calc((1 - var(--in)) * 0.85em));
  filter: blur(calc((1 - var(--in)) * 7px));
}
.ses-line:nth-child(2) > span {
  opacity: var(--in2);
  transform: translateY(calc((1 - var(--in2)) * 0.85em));
  filter: blur(calc((1 - var(--in2)) * 7px));
}
.ses-intro-side { display: grid; justify-items: start; gap: clamp(12px, 2vh, 20px); padding-bottom: 0.3em; }
.session .ses-lead { color: var(--on-dark-dim); font-size: clamp(1rem, 1.24vw, 1.2rem); line-height: 1.4; max-width: 32ch; }
.ses-open {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4em;
  min-height: 48px;
  padding: 0.7em 1em;
  border-radius: 6px;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.94rem, 1.05vw, 1.05rem);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.ses-open:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / 0.28); }
.ses-open span { font-size: 1.2em; line-height: 1; }
.session .ses-fig {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: min(100%, 1460px);
  justify-self: center;
  min-height: 0;
  filter: drop-shadow(0 18px 36px rgb(0 0 0 / 0.38));
}
.session .console { grid-row: 1; height: 100%; }
.session .console {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  grid-template-rows: auto minmax(0, 1fr);
}
.session .pane-plan, .session .panel-focus, .session .panel-clock,
.session .con-seg, .session .con-pick, .session .con-views,
.session .b-hint { display: none; }
.session .pane-board { grid-column: 1; grid-row: 2; }
.session .pane-ctl {
  grid-column: 2;
  grid-row: 2;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 12px;
}
.session .pane-ctl.open { grid-template-rows: auto auto; align-content: center; }
.session .panel-answer, .session .panel-answer.locked {
  grid-row: 1;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 12px;
}
.session .sol-body { max-height: 12lh; }
.session .panel-step { grid-row: 2; }
.session .con-top { padding: clamp(9px, 0.9vw, 15px) clamp(14px, 1.2vw, 22px); }
.session .pane-board {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  column-gap: clamp(18px, 2.4vw, 44px);
  padding: clamp(14px, 1.6vw, 26px);
  gap: clamp(9px, 1vh, 14px);
}
.session .b-head { grid-column: 1; grid-row: 1; }
.session .b-prompt { grid-column: 1; grid-row: 2; align-self: start; max-height: 7lh; font-size: clamp(0.9rem, 1.05vw, 1.06rem); }
.session .con-beats { grid-column: 1; grid-row: 3; }
.session .b-cap { grid-column: 1; grid-row: 4; }
.session .b-slot { grid-column: 2; grid-row: 1 / 5; }
.session .b-cap { font-size: 0.94rem; }
.ses-points {
  width: min(100%, 1460px);
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: calc(var(--in2) * (1 - var(--out)));
}
.ses-points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  align-content: center;
  min-height: clamp(70px, 9vh, 100px);
  padding: 12px clamp(14px, 1.4vw, 24px);
  border-top: 2px solid var(--bishop);
  border-radius: 0 0 8px 8px;
  background: var(--ebony-2);
  color: var(--ivory);
}
.ses-points li > span { grid-row: 1 / 3; color: var(--bishop-hi); font-size: 0.75rem; letter-spacing: 0.1em; }
.ses-points strong { font-family: var(--display); font-size: clamp(1rem, 1.2vw, 1.24rem); line-height: 1.15; }
.ses-points p { margin: 0; color: var(--on-dark-dim); font-size: clamp(0.78rem, 0.9vw, 0.95rem); line-height: 1.25; }
@media (max-height: 740px) and (min-width: 901px) {
  .session { padding-top: 72px; gap: 12px; }
  .session .ses-h { font-size: clamp(2.2rem, 4vw, 3.7rem); }
  .ses-points li { min-height: 62px; padding-block: 8px; }
  .ses-points p { display: none; }
}
@media (max-width: 900px) {
  .session { grid-template-rows: auto minmax(0, 1fr) auto; padding-top: 82px; }
  .ses-intro { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .session .ses-h { font-size: clamp(2.2rem, 6.2vw, 3.7rem); }
  .ses-intro-side { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .session .ses-lead { font-size: 0.92rem; }
  .ses-open { flex: none; min-height: 42px; gap: 1em; font-size: 0.87rem; }
  .ses-points p { display: none; }
  .ses-points li { min-height: 62px; }
  .session .console { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .session .pane-board { grid-column: 1; grid-row: 2; }
  .session .pane-board { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
  .session .b-head { grid-column: 1; grid-row: 1; }
  .session .b-prompt { grid-column: 1; grid-row: 2; max-height: 3lh; }
  .session .con-beats { grid-column: 1; grid-row: 3; }
  .session .b-slot { grid-column: 1; grid-row: 4; }
  .session .b-cap { grid-column: 1; grid-row: 5; }
  .session .pane-ctl { display: none; }
}
@media (max-width: 600px) {
  .session { grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding-block: 84px 24px; }
  .session .ses-h { font-size: clamp(2.15rem, 9vw, 3rem); }
  .ses-intro-side { justify-content: start; }
  .session .ses-lead, .ses-points { display: none; }
  .session .ses-fig { filter: none; }
}
body.gl-failed .session { grid-template-rows: auto auto auto; gap: 24px; }
body.gl-failed .session .ses-fig { min-height: 560px; }
body.gl-failed .ses-intro, body.gl-failed .ses-points,
body.gl-failed .ses-line > span { opacity: 1; transform: none; filter: none; }
@media (max-width: 600px) {
  body.gl-failed .session .ses-fig { min-height: 540px; }
}
@media (prefers-reduced-motion: reduce) {
  .ses-line > span { opacity: 1; transform: none; filter: none; }
  .ses-open { transition: none; }
}

/* A floating, adaptive page bar ties the dark and paper chapters together. */
#nav {
  inset: clamp(10px, 1.8vh, 20px) var(--gut) auto;
  padding: clamp(9px, 1.2vh, 13px) clamp(14px, 1.5vw, 26px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.16);
  backdrop-filter: blur(12px);
}
#nav::before { display: none; }

/* The syllabus chapter now reads as one promise, three proofs, one live example. */
.act-spine .act-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(6 6 10 / 0.90), rgb(6 6 10 / 0.52) 62%, rgb(6 6 10 / 0.32));
}
.spine { position: relative; z-index: 1; gap: clamp(26px, 5vw, 96px); }
.spine .col-left { gap: clamp(12px, 2vh, 24px); }
.spine .d2 { font-size: clamp(2.7rem, 5.5vw, 5.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.038em; }
.spine .lead { max-width: 32ch; font-size: clamp(1rem, 1.25vw, 1.2rem); }
.spine .levels.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.spine .levels.sr::before { display: none; }
.spine-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 16px);
  width: min(100%, 650px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.spine-points li {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 92px;
  padding: 13px clamp(12px, 1.2vw, 20px);
  border-top: 2px solid var(--pawn);
  border-radius: 0 0 8px 8px;
  background: var(--ebony-2);
}
.spine-points b { font-family: var(--display); font-size: clamp(1.7rem, 2.4vw, 2.6rem); line-height: 1; color: var(--ivory); }
.spine-points span { font-size: clamp(0.77rem, 0.92vw, 0.94rem); line-height: 1.25; color: var(--on-dark-dim); }
.spine-more, .system-intro a, .terms-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  width: max-content;
  max-width: 100%;
  padding-bottom: 0.25em;
  border-bottom: 1px solid currentColor;
  font-family: var(--display);
  font-size: clamp(0.92rem, 1.05vw, 1.1rem);
  font-weight: 700;
  text-decoration: none;
}
.spine-more { color: var(--pawn); }
.spine-more:hover, .system-intro a:hover, .terms-more:hover { opacity: 0.72; }
.spine .scrub {
  width: min(100%, 620px);
  min-height: clamp(250px, 35vh, 390px);
  align-content: end;
  gap: 10px;
  padding: clamp(24px, 3vw, 52px);
  border: 1px solid rgb(242 236 224 / 0.22);
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(32 48 41 / 0.96), rgb(13 13 18 / 0.98) 65%);
  box-shadow: 0 20px 55px rgb(0 0 0 / 0.25);
}
.spine .scrub-label { color: var(--on-dark-dim); font-size: 0.7rem; }
.spine .scrub-title { color: var(--ivory); font-family: var(--display); font-size: clamp(2.1rem, 3.2vw, 3.5rem); font-weight: 700; line-height: 1.03; }
.spine .scrub-meta { color: var(--on-dark-dim); font-size: 0.7rem; }

/* One artefact and three readable figures replace the six surrounding callouts. */
.act-system .act-stage::before, .act-terms .act-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgb(242 236 224 / 0.90);
}
.act-system .pad.system, .act-terms .pad.terms { position: relative; z-index: 1; }
.act-system .pad.system { row-gap: clamp(14px, 2.1vh, 25px); }
.system-head { align-items: end; }
.system-head .d3, .terms-head .d3 { font-size: clamp(2.3rem, 4.1vw, 4.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.038em; }
.system-intro { display: grid; justify-items: start; gap: clamp(12px, 2vh, 20px); }
.system-intro a { color: var(--ink); }
.act-system .sy-wrap { grid-template-rows: auto auto; align-content: center; gap: clamp(10px, 1.5vh, 18px); }
.act-system .sy-field { grid-template-columns: minmax(0, 1fr); max-width: 1120px; }
.act-system .sy-side { display: none; }
.act-system .sy-corewrap { width: 100%; }
.act-system .sy-core { width: 100%; }
.sy-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 16px);
  width: min(100%, 1120px);
  justify-self: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sy-proof li {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: clamp(66px, 9vh, 96px);
  padding: 10px clamp(14px, 1.4vw, 24px);
  border-top: 2px solid var(--queen);
  border-radius: 0 0 8px 8px;
  background: var(--plate, #fdfbf6);
  color: var(--ink);
}
.sy-proof b { font-family: var(--display); font-size: clamp(1.7rem, 2.4vw, 2.7rem); line-height: 1; }
.sy-proof span { font-size: clamp(0.78rem, 0.94vw, 0.96rem); }
.sy-payoff { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.5rem); }

/* The homepage gives plan selection room; the detailed schedule lives on /paywall. */
.act-terms .pad.terms { grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(10px, 1.6vh, 20px); }
.terms-head { gap: clamp(8px, 1.2vh, 14px); }
.terms-head .lead { max-width: 62ch; font-size: clamp(0.95rem, 1.15vw, 1.14rem); }
.rate { gap: clamp(9px, 1.4vh, 16px); margin-top: 0; }
.rate-inv-more, .rate-pilot, .rate-led, .rate-cta,
.rate-band .ra-l li.is-planned, .rate-band .rate-aside { display: none; }
.rate-inv { max-width: 58ch; }
.rate-band { gap: clamp(16px, 2.4vh, 30px); padding: clamp(18px, 2vw, 30px); }
.rate-name { font-family: var(--display); font-size: clamp(1.18rem, 1.55vw, 1.58rem); font-weight: 700; }
.rate-band .rate-fit { font-size: clamp(0.7rem, 0.85vw, 0.86rem); letter-spacing: 0.03em; }
.rate-band .rate-adds { font-size: clamp(0.8rem, 0.94vw, 0.94rem); line-height: 1.38; }
.rate-band .ra-l { gap: 7px; }
.terms-more { justify-self: center; color: var(--ink); opacity: calc(var(--in2) * (1 - var(--out))); }

@media (max-width: 900px) {
  #nav { inset-inline: var(--gut); }
  .spine { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 20px; }
  .spine .d2 { font-size: clamp(2.2rem, 6.6vw, 4rem); }
  .spine .scrub { min-height: 180px; }
  .act-system .sy-wrap { gap: 10px; }
  .system-head .d3, .terms-head .d3 { font-size: clamp(2rem, 5vw, 3.2rem); }
  .sy-proof li { min-height: 60px; }
  .act-terms .pad.terms { padding-top: 88px; }
}
@media (max-width: 600px) {
  #nav { inset-inline: 14px; padding-inline: 12px; }
  .spine { gap: 14px; }
  .spine .d2 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .spine .lead { font-size: 0.94rem; }
  .spine-points { gap: 5px; }
  .spine-points li { min-height: 70px; padding: 9px; }
  .spine-points b { font-size: 1.55rem; }
  .spine-points span { font-size: 0.7rem; }
  .spine .scrub { min-height: 150px; padding: 18px; }
  .spine .scrub-title { font-size: clamp(1.65rem, 7vw, 2.3rem); }
  .act-system .pad.system { grid-template-rows: auto minmax(0, 1fr); }
  .system-head { grid-template-columns: minmax(0, 1fr); }
  .system-intro .lead { display: none; }
  .sy-proof { gap: 5px; }
  .sy-proof li { min-height: 58px; padding: 8px; }
  .sy-proof b { font-size: 1.45rem; }
  .sy-proof span { font-size: 0.68rem; line-height: 1.2; }
  .act-system .sy-hour, .act-system .sy-ways { display: none; }
  .act-system .sy-core { align-content: center; }
  .sy-close { display: none; }
  .terms-head .lead { font-size: 0.88rem; }
  .rate-inv { display: none; }
  .rate-band .rate-adds { font-size: 0.82rem; }
}
@media (max-width: 360px) and (max-height: 700px) {
  .terms-head .d3 { font-size: 1.8rem; }
  .rate-band { padding: 12px; gap: 8px; }
  .terms-more { font-size: 0.8rem; }
}
body.gl-failed .spine > *, body.gl-failed .sy-proof,
body.gl-failed .terms-more { opacity: 1; transform: none; }

/* The early story stays one beat at a time; each thought gets a stable reading ground. */
.sun-beats .sb {
  width: min(100%, 560px);
  max-width: none;
  padding: clamp(20px, 2.2vw, 36px);
  border-top: 2px solid var(--pawn);
  border-radius: 0 0 12px 12px;
  background: rgb(9 9 14 / 0.91);
  box-shadow: 0 18px 46px rgb(0 0 0 / 0.18);
}
.sun-beats .sb-h { font-weight: 700; line-height: 1.03; letter-spacing: -0.034em; }
.sun-beats .sb-l { color: var(--on-dark-dim); }
.sun-pay .sun-final { font-weight: 700; line-height: 1.04; letter-spacing: -0.036em; }

/* The three coach cards keep their different boards, with a quieter room behind. */
.act-chaos .act-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgb(6 6 10 / 0.40);
}
.chaos { position: relative; z-index: 1; }
.chaos .d2 { font-weight: 700; line-height: 1.04; letter-spacing: -0.036em; }
.cv-col {
  border-radius: 12px;
  background: rgb(13 12 17 / 0.94);
  box-shadow: 0 18px 42px rgb(0 0 0 / 0.18);
}
.stages-head { border-top: 2px solid var(--bishop); border-radius: 0 0 12px 12px; padding: clamp(20px, 2vw, 34px); }
.stages-head .stage-line { font-weight: 700; letter-spacing: -0.034em; line-height: 1.04; }
.stage-panel { border-radius: 14px; }

/* The close gives the decision and actions a full screen; page links settle below. */
.promo .promo-pathways, .promo .proof { display: none !important; }
.promo { max-width: none; align-content: center; }
.promo .d1 { max-width: 16ch; font-weight: 700; line-height: 1.01; letter-spacing: -0.04em; }
.promo .promo-lead { font-size: clamp(1rem, 1.3vw, 1.24rem); max-width: 39ch; }
.promo .promo-cta { margin-top: clamp(24px, 4vh, 48px); }
.promo .promo-cta .cta { min-height: 54px; padding-inline: clamp(18px, 2vw, 32px); }
.promo .foot {
  position: absolute;
  left: var(--gut);
  right: var(--gut);
  bottom: clamp(18px, 2.8vh, 32px);
  margin: 0;
  padding: clamp(12px, 1.4vw, 22px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(9 9 14 / 0.92);
}
@media (max-width: 900px) {
  .sun-beats .sb { width: min(100%, 500px); }
  .promo .d1 { font-size: clamp(3rem, 8vw, 5rem); }
  .promo .foot { left: var(--gut); right: var(--gut); padding: 12px; }
}
@media (max-width: 600px) {
  .sun-beats .sb { padding: 18px; }
  .stages-head { padding: 18px; }
  .promo .d1 { font-size: clamp(2.8rem, 10vw, 4rem); }
  .promo .foot { position: static; margin-top: clamp(25px, 4vh, 40px); }
}
