/* ============================================================
   Sovereign Source AI — manifesto site
   Inspired by ndstudio.gov: black background, white text,
   ghost background text, architectural spacing, sans-only.
   ============================================================ */

:root {
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --text: #ffffff;
  --text-dim: #a3a3a3;
  --text-muted: #909090;
  --rule: #1a1a1a;
  --flag-red: #BF0D3E;
  --font: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --maxw: 1200px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  /* Type ramp (DESIGN.md typography). Every non-ghost size uses one of these. */
  --fs-label: 0.75rem;
  --fs-small: 0.85rem;
  --fs-ui: 0.95rem;
  --fs-body: 1rem;
  --fs-lead: 1.15rem;
  --fs-title: 1.2rem;
  --fs-prose: clamp(1rem, 1.6vw, 1.1rem);
  --fs-intro: clamp(1.1rem, 1.8vw, 1.3rem);
  --fs-statement: clamp(1.2rem, 2.5vw, 1.8rem);
  --fs-prose-h2: clamp(1.3rem, 2.2vw, 1.7rem);
  --fs-headline: clamp(1.6rem, 3vw, 2.6rem);
  --fs-prose-h1: clamp(2.2rem, 4vw, 3.6rem);
  --fs-display: clamp(2.4rem, 5.5vw, 4.8rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-color: #333 var(--bg); }

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

:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; border-radius: 2px; }

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

/* Ghost background text — the signature ndstudio move */
.ghost {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.ghost-line {
  font-family: var(--font);
  color: #1a1a1a;
  font-weight: 400;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0.18;
  font-size: clamp(4rem, 12vw, 14rem);
  transform: rotate(-6deg);
  line-height: 1.1;
}

.ghost-line:nth-child(1) { font-size: clamp(5rem, 14vw, 18rem); font-weight: 500; }
.ghost-line:nth-child(2) { font-size: clamp(2rem, 6vw, 7rem); font-weight: 400; margin-top: 0.5em; }
.ghost-line:nth-child(3),
.ghost-line:nth-child(4) { font-size: clamp(1.5rem, 4vw, 4.5rem); }
.ghost-line:nth-child(3) { transform: rotate(4deg); margin-top: 2em; }
.ghost-line:nth-child(5) { transform: rotate(-3deg); }
.ghost-line:nth-child(6),
.ghost-line:nth-child(7) { font-size: clamp(1rem, 3vw, 3rem); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.7; }

.logo-mark {
  width: 38px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.nav a { white-space: nowrap; }

/* Narrower headers keep the most useful links; the footer always lists them all. */
@media (max-width: 1240px) {
  .nav .nav-minor { display: none; }
}

@media (max-width: 960px) {
  .nav .nav-mid { display: none; }
}

.nav a {
  color: var(--text-dim);
  font-size: var(--fs-ui);
  font-weight: 450;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--text) !important;
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.1em;
}

.nav-cta:hover { opacity: 0.7; }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--gutter);
  width: 100%;
}


.hero-title {
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 2rem;
  max-width: 14ch;
}

.hero-sub {
  font-size: var(--fs-intro);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 10ch;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--gutter);
}

.section-heading {
  font-size: var(--fs-headline);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

/* Lead paragraph that opens a manifesto section */
.lede {
  max-width: 65ch;
  font-size: var(--fs-intro);
  line-height: 1.7;
  color: var(--text-dim);
}

.section-intro {
  font-size: var(--fs-lead);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: 2rem;
}




/* Questions */
.questions-section { border-top: none; }

.questions {
  list-style: none;
  counter-reset: q;
  margin-top: 2.5rem;
}

.questions li {
  counter-increment: q;
  position: relative;
  padding: 1rem 0 1rem 3rem;
  font-size: var(--fs-body);
  color: var(--text-dim);
  line-height: 1.6;
  border-top: 1px solid var(--rule);
}

.questions li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.questions li:first-child { border-top: none; }

.questions li:first-child { padding-top: 0; }
.questions li:last-child { padding-bottom: 0; }

.principle-callout {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.principle {
  font-size: var(--fs-lead);
  color: var(--text);
  line-height: 1.6;
  padding: 0.35rem 0;
}

.principle strong { font-weight: 500; }

/* Index grids: the architecture layers and the topics share one grid.
   Each item stacks number, title, description under a rule line. */
.layers,
.toc {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 4), minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
}

.toc { --grid-cols: 5; }
.tasks { --grid-cols: 4; }

.layers > li,
.toc-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--rule);
}

.layer-num,
.toc-num {
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.layer-title,
.toc-title {
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

.layer-desc,
.toc-desc {
  font-size: var(--fs-ui);
  line-height: 1.6;
  color: var(--text-dim);
}

.toc-item {
  color: inherit;
  text-decoration: none;
}

.toc-item:hover .toc-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

@media (max-width: 1100px) {
  .layers, .toc { --grid-cols: 2; }
}

/* Formulations */
.formulations {
  position: relative;
  z-index: 1;
  background: var(--bg-elev);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.formulations-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.formulation {
  border: none;
  padding: 0;
  background: none;
}

.formulation p {
  font-size: var(--fs-statement);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-dim);
  line-height: 1.4;
  font-style: normal;
}

/* Claim */
.claim-section { border-top: none; }

.claim-text {
  font-size: var(--fs-statement);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.5;
  max-width: 70ch;
  margin-bottom: 1.5rem;
}

.claim-close {
  font-size: var(--fs-body);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 60ch;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--rule);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-logo-text {
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: 450;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--text); }
.footer-nav a[aria-current="page"] { color: var(--text); }

/* Skip link: hidden until keyboard focus. */
.skip-link { position: absolute; left: var(--gutter); top: 0.75rem; z-index: 100; background: var(--text); color: var(--bg); padding: 0.5rem 0.85rem; border-radius: 2px; font-size: var(--fs-ui); text-decoration: none; }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; }

/* Small links keep their look but get a 44px tap area, on every page. */
.nav a,
.logo,
.btn-quiet,
.back-link,
.footer-nav a,
.lp-menu a { position: relative; }
.nav a::after,
.logo::after,
.btn-quiet::after,
.back-link::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  inset: -12px -6px;
}

.footer-note {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 70ch;
  margin-top: 0.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav { display: none; }
  .hero { min-height: auto; padding: 3rem 0 2.5rem; }
  .hero-title { max-width: 100%; }
  .layers, .toc { --grid-cols: 1; }
  .ghost-line { white-space: normal; text-align: center; transform: none !important; }
  .ghost { align-items: center; }
  /* Ad landing pages carry a single nav link, the booking action, so it stays. */
  .lp .nav { display: flex; }
}

/* Topic pages: long-form prose */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  position: relative;
  z-index: 1;
}

.prose h1 { font-size: var(--fs-prose-h1); font-weight: 400; letter-spacing: -0.025em; color: var(--text); line-height: 1.1; margin-bottom: 1.5rem; text-wrap: balance; }
.prose h2 { font-size: var(--fs-prose-h2); font-weight: 500; letter-spacing: -0.02em; color: var(--text); margin: 3rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); text-wrap: balance; }
.prose p, .prose li { font-size: var(--fs-prose); line-height: 1.75; color: var(--text-dim); }
.prose p { margin-bottom: 1.25rem; }
.prose .topic-summary { font-size: var(--fs-intro); color: var(--text); line-height: 1.6; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--text); font-weight: 500; }
.prose em { color: var(--text); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; color: var(--text-muted); }
.prose cite { font-style: normal; font-size: 0.85em; color: var(--text-muted); white-space: nowrap; }
.prose cite::before { content: "\2014\00a0"; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-muted); text-underline-offset: 0.2em; }
.prose a:hover { text-decoration-color: var(--text); }

.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-top: 1px solid var(--rule); color: var(--text-dim); line-height: 1.6; }
.prose th { color: var(--text); font-weight: 500; border-top: none; }
.prose td:first-child { color: var(--text); white-space: nowrap; }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.prose .pager a { display: flex; flex-direction: column; gap: 0.25rem; text-decoration: none; color: var(--text); }
.prose .pager a:hover { opacity: 0.7; }
.pager-next { text-align: right; align-items: flex-end; }
.pager-label { font-size: var(--fs-label); color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }

.prose .back-link { display: inline-block; margin-top: 2rem; color: var(--text-dim); font-size: var(--fs-ui); text-decoration: none; border-bottom: 1px solid var(--text-muted); }
.prose .back-link:hover { color: var(--text); }

@media (max-width: 768px) {
  .prose td:first-child { white-space: normal; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; align-items: flex-start; }
}

/* ============================================================
   Small-business page (business/index.html)
   ============================================================ */
.biz .hero {
  min-height: auto;
  padding: clamp(3rem, 9vh, 6rem) 0 clamp(1.5rem, 4vh, 3rem);
}

.biz .hero-title { max-width: 16ch; text-wrap: balance; }
.biz .hero-sub { max-width: 58ch; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  background: var(--text);
  color: var(--bg);
  font-size: var(--fs-body);
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn-quiet {
  color: var(--text);
  font-size: var(--fs-body);
  text-decoration: none;
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 0.1em;
  transition: border-color 0.2s;
}

.btn-quiet:hover { border-color: var(--text); }

/* Tools -> warehouse -> agents -> you */
/* One continuous rule with a drawn marker per step, read left to right. */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
  border-top: 1px solid var(--text-muted);
}

.flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.25rem;
}

.flow li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
}

.flow-label {
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

.flow-desc {
  font-size: var(--fs-ui);
  line-height: 1.6;
  color: var(--text-dim);
}

.offer { --grid-cols: 3; }

.agent-list {
  list-style: none;
  margin-top: 0.5rem;
}

.agent-list li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-ui);
  line-height: 1.55;
  color: var(--text-dim);
}

.verticals > li {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding-bottom: 1.5rem;
}

/* Guarantees */
.guarantees > div {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.guarantees > div:last-child { border-bottom: 1px solid var(--rule); }

.guarantees dt {
  font-size: var(--fs-title);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.guarantees dd {
  max-width: 60ch;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-dim);
}

@media (max-width: 1100px) {
  .offer, .verticals, .steps { --grid-cols: 2; }
  .flow {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.5rem;
    margin-left: 3px;
    padding-left: 1.5rem;
    border-top: 0;
    border-left: 1px solid var(--text-muted);
  }
  .flow li { padding-top: 0; }
  .flow li::before { top: 0.45rem; left: calc(-1.5rem - 4px); }
}

@media (max-width: 768px) {
  .offer, .verticals, .steps { --grid-cols: 1; }
  .guarantees > div { grid-template-columns: 1fr; row-gap: 0.4rem; }
}

/* ============================================================
   Homepage: small-business lead and "A Monday, twice"
   ============================================================ */
.hero-home {
  min-height: auto;
  padding: clamp(2rem, 4vh, 4rem) 0 0.5rem;
}

.hero-home .hero-title { font-size: var(--fs-display); }
.hero-home .cta-row { margin-top: 1.75rem; }

.monday-section .section-inner { padding-top: 0.5rem; }

.monday-section { padding-top: 0; }
.monday-section .section-heading { margin-bottom: 0.75rem; }
.monday-section .monday-intro { margin-bottom: 0; }

.hero-home .hero-title { max-width: 16ch; margin-bottom: 1.75rem; text-wrap: balance; }

.hero-def {
  max-width: 46ch;
  font-size: var(--fs-intro);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* One quiet line under a CTA row: what the first step costs and who you meet. */
.cta-note {
  margin-top: 1rem;
  font-size: var(--fs-ui);
  line-height: 1.6;
  color: var(--text-dim);
}

.monday-cta { margin-top: 2.5rem; }

.inline-link {
  color: var(--text);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--text-muted);
  text-underline-offset: 0.2em;
}

.inline-link:hover { text-decoration-color: var(--text); }

/* Shared 8:00-11:30 time axis in 15-minute slots; entries sit at their real times. */
.monday {
  --slot: 3.5rem;
  --head: 2.5rem;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 1.25rem;
}

.monday-axis,
.monday-track {
  list-style: none;
  display: grid;
  grid-template-rows: repeat(14, minmax(var(--slot), auto));
}

.monday-axis { padding-top: var(--head); grid-template-rows: repeat(14, minmax(var(--slot), auto)) auto; }

/* Hour hairlines at 8:00, 9:00, 10:00, 11:00 and a rule at 11:30, across both tracks. */
.monday-track {
  background-image: repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px calc(var(--slot) * 4));
  border-bottom: 1px solid var(--rule);
}

.monday-yours .monday-track { border-left: 1px solid var(--rule); }

.monday-axis li {
  grid-row: calc(var(--at) + 1);
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.monday-axis .monday-axis-mark { color: var(--text); }

.monday-head {
  height: var(--head);
  font-size: var(--fs-title);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.monday-track > li { grid-row: calc(var(--at) + 1) / span var(--span); }

.monday time {
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.monday-today .monday-track > li {
  margin-bottom: 0.35rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-top: 1px solid var(--text-muted);
  border-left: 1px solid #333;
  font-size: var(--fs-ui);
  line-height: 1.5;
  color: var(--text-dim);
}

.monday-today time { display: block; margin-bottom: 0.25rem; }

.monday-burst {
  padding: 0.45rem 1rem;
  border-top: 1px solid var(--text-muted);
}

.monday-burst ol { list-style: none; }

.monday-burst li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  padding: 0.1rem 0;
  font-size: var(--fs-ui);
  line-height: 1.4;
  color: var(--text);
}

.monday-burst time { padding-top: 0.1rem; }

.monday-free {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.5rem;
  border-top: 1px solid var(--flag-red);
}

.monday-free-end { margin-top: auto; }

.monday-free time { color: var(--text); }

.monday-free-note {
  font-size: var(--fs-ui);
  color: var(--text-dim);
}

.monday-free-line {
  max-width: 14ch;
  margin-top: 0.75rem;
  padding: 0.15em 0;
  background: var(--bg);
  font-size: var(--fs-statement);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

/* One authored moment: the warehouse morning settles in, in time order. */
@keyframes monday-settle {
  from { opacity: 0.2; transform: translateY(0.5rem); }
}

.monday-yours.is-in .monday-burst li,
.monday-yours.is-in .monday-free {
  animation: monday-settle 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.monday-yours.is-in .monday-burst li:nth-child(2) { animation-delay: 0.12s; }
.monday-yours.is-in .monday-burst li:nth-child(3) { animation-delay: 0.24s; }
.monday-yours.is-in .monday-burst li:nth-child(4) { animation-delay: 0.36s; }
.monday-yours.is-in .monday-free { animation-delay: 0.55s; }

@media (max-width: 960px) {
  .monday { --slot: 1.6rem; grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
  .monday-axis { display: none; }
  .monday-head { height: auto; margin-bottom: 1rem; }
  .monday-track { background-image: none; }
  .monday-today .monday-track { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .monday-yours.is-in .monday-burst li,
  .monday-yours.is-in .monday-free { animation: none; }
}

/* ============================================================
   News page (news/index.html, built by _tools/build_news.py).
   Same reading column as a topic page: .prose supplies the
   column, h1, summary, h2 rules, and back link.
   ============================================================ */
.prose .news-week-meta {
  margin: -0.25rem 0 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.prose .news-theme {
  margin: 2.25rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.prose .news-list {
  list-style: none;
  margin: 0;
}

.prose .news-list li { margin: 0; padding: 1.5rem 0 0; }
.prose .news-list li:first-child { padding-top: 1rem; }

.prose .news-title {
  display: inline;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  text-wrap: balance;
}

.prose .news-title:hover {
  text-decoration: underline;
  text-decoration-color: var(--text);
  text-decoration-thickness: 1px;
}

.prose .news-meta {
  margin: 0.35rem 0 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-muted);
}

.prose .news-meta time { font-variant-numeric: tabular-nums; }

.prose .news-summary {
  margin: 0.5rem 0 0;
  font-size: var(--fs-body);
  line-height: 1.7;
}

/* ============================================================
   sovsrc.llm landing page (llm/index.html, built by
   _tools/build_llm_updates.py). Reuses the hero, flow, index
   grids, and guarantees band; only the rewards pool is new.
   ============================================================ */
/* A shorter hero, so the permission flow rule starts in the first viewport. */
.llm .hero { padding: clamp(2rem, 5vh, 3.5rem) 0 0.5rem; }
.llm .hero .cta-row { margin-top: 2rem; }
.llm .hero + .section { padding-top: 0; }
.llm .hero + .section .flow { margin-top: 1.5rem; }
.llm .subjects { --grid-cols: 5; }
.llm .updates { --grid-cols: 3; }
.llm .toc-num { letter-spacing: 0.05em; }
.llm .section-note {
  margin-top: 2rem;
  max-width: 60ch;
  font-size: var(--fs-ui);
  line-height: 1.6;
  color: var(--text-dim);
}

/* The proposed rewards pool, drawn to scale: one rule is all eligible revenue,
   its first fifth is the pool, and two hairlines open that fifth into a second
   rule divided by track. The first rule's labels sit above it so the hairlines
   join the two rules directly. Marker dots match the .flow rule. */
.pool { margin-top: 3rem; }

.pool-bar { display: flex; }

.pool-bar span {
  position: relative;
  flex: var(--share) 0 0;
  height: 1px;
  background: var(--text);
}

.pool-bar .pool-rest { background: var(--text-muted); }

.pool-bar span::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
}

.pool-bar .pool-rest::before { background: var(--text-muted); }

.pool-labels {
  list-style: none;
  display: grid;
  grid-template-columns: var(--cols);
}

.pool-labels li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem 0 0;
}

.pool-top li { padding: 0 1.5rem 1.25rem 0; }

.pool-num {
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.pool-zoom {
  display: block;
  width: 100%;
  height: clamp(3rem, 7vw, 5rem);
  overflow: visible;
}

.pool-zoom line { stroke: var(--text-muted); stroke-width: 1; vector-effect: non-scaling-stroke; }

@keyframes pool-open {
  from { clip-path: inset(-4px 80% -4px 0); }
  to { clip-path: inset(-4px 0 -4px 0); }
}

.pool-tracks-bar.is-in { animation: pool-open 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .pool-tracks-bar.is-in { animation: none; }
}

@media (max-width: 1100px) {
  .llm .subjects, .llm .updates { --grid-cols: 2; }
  /* Labels no longer fit under their own lengths; the rules stay to scale and the labels stack. */
  .pool-labels { grid-template-columns: minmax(0, 1fr); }
  .pool-labels li { padding: 0 0 1.5rem; }
  /* More space than the opening above, so the first label rule reads as outside the drawing. */
  .pool-labels:not(.pool-top) li:first-child { padding-top: calc(clamp(3rem, 7vw, 5rem) + 1rem); }
  /* Each stacked label keeps its own length: a rule as wide as its share. */
  .pool-labels li::before {
    content: "";
    width: calc(var(--share) * 1%);
    height: 1px;
    margin-bottom: 0.5rem;
    background: var(--text);
  }
  .pool-labels li:nth-child(2):last-child::before { background: var(--text-muted); }
}

@media (max-width: 768px) {
  .llm .subjects, .llm .updates { --grid-cols: 1; }
  /* The header keeps the email action on a long page. */
  .llm .nav { display: flex; }
  .llm .nav a:not(.nav-cta) { display: none; }
}

/* Ad landing pages (lp/, generated by _tools/build_landing.py) */


.lp .lp-inline-cta { margin-top: 0.5rem; }

/* The guarantees band sits lower on these pages, so it carries less padding. */
.lp .formulations { padding: clamp(2.5rem, 6vw, 5rem) 0; }

/* The ending is the promise, not the disclaimer: body size in Body Gray. */
.lp .claim-text { font-size: var(--fs-intro); color: var(--text-dim); max-width: 60ch; }

/* Landing footer: brand and site links on the left, the landing menu on the right. */
.lp .footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.lp .footer-side { display: flex; flex-direction: column; gap: 1.5rem; }
.lp .footer-nav { flex-direction: column; gap: 0.75rem; }

.lp-menu-heading {
  font-size: var(--fs-title);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}
/* Two columns that read top to bottom, five rows each. */
.lp-menu-list {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
}
.lp-menu-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
  color: var(--text-dim);
  font-size: var(--fs-ui);
  text-decoration: none;
  transition: color 0.2s;
}
.lp-menu-list a:hover,
.lp-menu-list a[aria-current="page"] { color: var(--text); }

@media (max-width: 768px) {
  .lp .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .lp .lp-menu { order: -1; }
}

@media (max-width: 768px) {
  /* On phones the background lines sat behind the hero copy and the button. */
  .lp .ghost { display: none; }
  .lp .hero { padding-top: 1.5rem; }
}

@media (max-width: 480px) {
  .lp-menu-list { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
}

/* One line of founder-confirmed reassurance under the hero and closing buttons. */
.lp-assure {
  margin-top: 1rem;
  max-width: 52ch;
  font-size: var(--fs-ui);
  line-height: 1.5;
  color: var(--text-muted);
}
