/* =========================================================================
   Augmenta World — stylesheet
   Self-hosted fallback stacks only. No CDN, no external requests.
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; }

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
html:focus-within { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Design tokens ---------- */
:root {
  /* type families */
  --f-display: Newsreader, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --f-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* type scale — display sizes are measure-driven, see BRIEF §5.2 */
  --t-display: clamp(2.5rem, 4.6vw, 4rem);
  --t-thesis: clamp(1.5rem, 2.75vw, 2.375rem);
  --t-statement: clamp(1.625rem, 3vw, 2.625rem);
  --t-h2: clamp(1.75rem, 3.1vw, 2.625rem);
  --t-h3: 1.0625rem;
  --t-lead: clamp(1.125rem, 1.55vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-kicker: 0.75rem;
  --t-micro: 0.6875rem;
  --t-button: 0.9375rem;

  /* spacing (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 192px;
  --s-12: 256px;

  /* layout */
  --gutter: clamp(20px, 5vw, 72px);
  --col-gap: clamp(16px, 2vw, 32px);
  --measure: 1280px;

  /* structural fields (BRIEF §3.3) */
  --grid-minor: 12px;
  --grid-major: 96px;
  --field: color-mix(in srgb, var(--ink) 4%, transparent);
  --field-strong: color-mix(in srgb, var(--ink) 7%, transparent);

  /* radii */
  --r-sm: 2px;
  --r-md: 3px;
  --r-full: 999px;

  /* light palette (default) */
  --bg: #F5F2EC;
  --bg-band: #EBE6DC;
  --bg-invert: #131511;
  --ink: #131511;
  --ink-2: #4A4E44;
  --ink-3: #676B61;
  /* --ink-3 is 4.88:1 against --bg, but §01 sits on the darker --bg-band,
     where it falls to 4.38:1. This is the same muted role, retuned for it. */
  --ink-3-band: #5F6359;
  --line: #D8D2C6;
  --line-strong: #B9B2A2;
  --signal: #D4552E;
  --signal-text: #9C3A18;
  --signal-deep: #8A320F;
  /* Ember for text sitting on an inverted slab. On ink, --signal measures
     4.50:1 — AA with no margin at all — so the brighter ember is used there
     instead. It flips to the deep ember when the slab flips to bone. */
  --signal-on-invert: #F0663A;
  --moss: #2F5E4A;
  --on-invert: #EDE9E0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E100C;
    --bg-band: #151810;
    --bg-invert: #EDE9E0;
    --ink: #EDE9E0;
    --ink-2: #B7BAAF;
    --ink-3: #8E9287;
    --line: #2A2E26;
    --line-strong: #3E4339;
    --signal: #F0663A;
    --signal-text: #F0663A;
    --signal-deep: #FF8055;
    --signal-on-invert: #9C3A18;
    --moss: #6FA98A;
    --on-invert: #131511;
  }
}

:root[data-theme="dark"] {
  --bg: #0E100C;
  --bg-band: #151810;
  --bg-invert: #EDE9E0;
  --ink: #EDE9E0;
  --ink-2: #B7BAAF;
  --ink-3: #8E9287;
  --ink-3-band: #8E9287;
  --line: #2A2E26;
  --line-strong: #3E4339;
  --signal: #F0663A;
  --signal-text: #F0663A;
  --signal-deep: #FF8055;
  --signal-on-invert: #9C3A18;
  --moss: #6FA98A;
  --on-invert: #131511;
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 240ms ease-out, color 240ms ease-out;
}

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

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; color: var(--ink); }

p { color: var(--ink-2); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -48px; left: var(--s-4);
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: var(--t-small);
  transition: top 160ms ease-out;
}
.skip-link:focus { top: var(--s-4); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

/* Sections that sit on the inverted ground redeclare their field + line inks
   so hairlines, grids and column rules read against --on-invert. */
.thesis,
.ownership,
.contact,
.site-footer {
  --field: color-mix(in srgb, var(--on-invert) 4%, transparent);
  --field-strong: color-mix(in srgb, var(--on-invert) 7%, transparent);
  --hair: color-mix(in srgb, var(--on-invert) 18%, transparent);
}

.kicker {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: var(--t-kicker);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
}
.kicker .rule {
  display: inline-block;
  height: 1px;
  width: 120px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 80ms;
}
.kicker.is-visible .rule { transform: scaleX(1); }

.prose { max-width: 62ch; }
.prose p + p { margin-top: var(--s-5); }

/* ---------- Structural fields (BRIEF §3.3) ----------
   Hairline rulings only. No hue, ≤8% alpha, always masked so they never
   meet a section edge at full strength. Purely decorative layers:
   absolutely positioned, pointer-events off, aria-hidden in markup. */
.field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* 1 — Chart paper: polygraph ruling, minor square with every 8th promoted. */
.field-paper {
  background-image:
    linear-gradient(to right, var(--field-strong) 0 1px, transparent 1px),
    linear-gradient(to bottom, var(--field-strong) 0 1px, transparent 1px),
    linear-gradient(to right, var(--field) 0 1px, transparent 1px),
    linear-gradient(to bottom, var(--field) 0 1px, transparent 1px);
  background-size:
    var(--grid-major) var(--grid-major),
    var(--grid-major) var(--grid-major),
    var(--grid-minor) var(--grid-minor),
    var(--grid-minor) var(--grid-minor);
  background-position: center center;
}

/* The hero field clears a soft opening where the ring sits. */
.field-paper--hero {
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 72% 40%, #000 0%, rgba(0,0,0,0.5) 52%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 58% at 72% 40%, #000 0%, rgba(0,0,0,0.5) 52%, transparent 78%);
}

/* The horizon field concentrates around the timeline rule. */
.field-paper--horizon {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.85) 34%, rgba(0,0,0,0.85) 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.85) 34%, rgba(0,0,0,0.85) 72%, transparent 100%);
}

/* 2 — Column rules: aligned to the real 12-column starts.
   Pitch is (content + gap) / 12, not content / 12 — see BRIEF §3.3. */
.field-columns {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: calc(min(100%, var(--measure)) - 2 * var(--gutter));
  background-image:
    linear-gradient(to left, var(--field-strong) 0 1px, transparent 1px),
    linear-gradient(to right, var(--field-strong) 0 1px, transparent 1px);
  background-size:
    100% 100%,
    calc((100% + var(--col-gap)) / 12) 100%;
  background-repeat: no-repeat, repeat-x;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

/* Content always sits above its field. */
.container { position: relative; z-index: 1; }

@media (max-width: 767px) {
  /* Fields are a desktop refinement; on a phone they only add noise. */
  .field-columns { display: none; }
  .field-paper { --grid-major: 64px; --grid-minor: 16px; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-button);
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--bg);
  transition: background-color 160ms ease-out;
}
.btn:hover { background: var(--signal-deep); }
:root[data-theme="dark"] .btn:hover { background: var(--signal); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn:hover { background: var(--signal); }
}

.text-link {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-button);
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--signal);
  transition: border-bottom-width 140ms ease-out;
}
.text-link:hover { border-bottom-width: 2px; }

.mono-link {
  font-family: var(--f-mono);
  color: var(--signal-text);
}
.mono-link:hover { color: var(--signal-deep); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mono-link:hover { color: var(--signal-deep); }
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 240ms ease-out, backdrop-filter 240ms ease-out, border-color 240ms ease-out;
}
.site-nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-nav .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Scroll-progress hairline, flush with the nav's bottom edge.
   Driven by --progress, written from the existing passive scroll listener —
   it schedules no animation frame of its own. */
.nav-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 240ms ease-out;
}
.site-nav.is-scrolled .nav-progress { opacity: 1; }
.nav-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--signal);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--ink);
}

.nav-dot-wrap {
  display: inline-flex;
  width: 6px; height: 6px;
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.nav-dot-wrap.is-visible { opacity: 1; }
.nav-dot {
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--signal);
  opacity: 0.45;
}
@media (prefers-reduced-motion: reduce) {
  .nav-dot-wrap { opacity: 1 !important; }
  .nav-dot { opacity: 0.8 !important; transform: none !important; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease-out;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.theme-toggle {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}
.theme-toggle svg path,
.theme-toggle svg circle { stroke: var(--ink); }

@media (max-width: 1023px) {
  .nav-links { gap: var(--s-5); }
}
@media (max-width: 767px) {
  .nav-links a:not(.nav-contact) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 68px;
  overflow: hidden;
}
.hero-body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 0;
  min-width: 0;
  padding-top: var(--s-7);
  padding-bottom: var(--s-6);
  position: relative;
  z-index: 1;
}
.hero-body .container {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  align-items: center;
}
.hero-foot {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  padding-bottom: var(--s-7);
  position: relative;
  z-index: 1;
}

/* The ring precedes the copy in DOM order so it comes first on mobile.
   Both are pinned to row 1 explicitly — without this, auto-placement pushes
   the copy (which asks for earlier columns) onto a second row and the hero
   grows to roughly twice the viewport height. See BRIEF §5.2. */
.hero-copy {
  grid-column: 1 / 10;
  grid-row: 1;
  min-width: 0;
  z-index: 1;
  transform: translateY(clamp(-28px, -4vh, -6px));
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: var(--t-kicker);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-5);
}
.hero-title {
  font-size: var(--t-display);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-6);
  text-wrap: balance;
}
.hero-lead {
  font-family: var(--f-body);
  font-size: var(--t-lead);
  line-height: 1.55;
  letter-spacing: -0.004em;
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: var(--s-7);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.hero-visual {
  grid-column: 8 / 13;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transform: translateY(-40px);
}
.ring-wrap {
  width: clamp(280px, 34vw, 520px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  will-change: opacity, transform;
}
.ring-wrap canvas { width: 100%; height: 100%; }

.hero-footnote {
  max-width: 34ch;
}
.hero-footnote .rule {
  width: 72px;
  height: 1px;
  background: var(--line-strong);
  margin-bottom: var(--s-4);
}
.hero-footnote p {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--ink-3);
}

.scroll-cue {
  flex: 0 0 auto;
  position: relative;
  width: 1px; height: 48px;
  background: var(--line);
}
.scroll-cue .fill {
  width: 100%;
  background: var(--signal);
  height: 0%;
  position: absolute;
  bottom: 0; left: 0;
}

@media (max-width: 1023px) {
  .hero-copy { grid-column: 1 / 9; }
  .hero-visual { grid-column: 8 / 13; }
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    height: auto;
    padding-top: calc(68px + var(--s-9));
  }
  .hero-body { padding-block: 0; }
  .hero-body .container { display: block; }
  .hero-visual {
    transform: none;
    margin-bottom: var(--s-8);
  }
  .ring-wrap { width: 300px; max-width: 100%; margin-inline: auto; }
  .hero-copy { transform: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: var(--s-6); padding-top: var(--s-8); padding-bottom: var(--s-9); }
  .scroll-cue { display: none; }
}

/* ---------- Section rhythm ---------- */
.section {
  padding-block: clamp(var(--s-9), 13vh, var(--s-11));
}

/* ---------- §00 The thesis — full-bleed ink, one sentence ---------- */
.thesis {
  background: var(--bg-invert);
  color: var(--on-invert);
  padding-block: var(--s-10);
  overflow: hidden;
}
.thesis .kicker { color: color-mix(in srgb, var(--on-invert) 65%, transparent); }
.thesis .kicker .rule { background: color-mix(in srgb, var(--on-invert) 40%, transparent); }

.thesis-statement {
  color: var(--on-invert);
  font-size: var(--t-thesis);
  line-height: 1.24;
  letter-spacing: -0.02em;
  margin-top: var(--s-7);
  max-width: 30ch;
}
.thesis-statement br { display: none; }

.thesis-foot {
  margin-top: var(--s-9);
}
.thesis-foot .rule {
  height: 1px;
  background: var(--hair);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}
.thesis.is-visible .thesis-foot .rule { transform: scaleX(1); }
.thesis-subline {
  margin-top: var(--s-5);
  text-align: right;
  font-family: var(--f-mono);
  font-size: var(--t-kicker);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-on-invert);
}

@media (min-width: 900px) {
  /* At this width the marked break carries the second sentence on its own
     line, which is the whole point of the layout. */
  .thesis-statement { max-width: none; }
  .thesis-statement br { display: inline; }
}

@media (max-width: 767px) {
  .thesis { padding-block: var(--s-9); }
  .thesis-statement { margin-top: var(--s-6); }
  .thesis-foot { margin-top: var(--s-8); }
  .thesis-subline { text-align: left; }
}

/* ---------- §01 The standard ---------- */
.standard {
  background: var(--bg-band);
  --ink-3: var(--ink-3-band);
}
.standard .container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
}
.standard-kicker { grid-column: 1 / 13; grid-row: 1; margin-bottom: var(--s-9); }
.standard-statement {
  grid-column: 1 / 8;
  grid-row: 2;
  font-family: var(--f-display);
  font-size: var(--t-statement);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 24ch;
  text-indent: -0.42em;
}
.standard-attribution {
  grid-column: 1 / 8;
  grid-row: 3;
  align-self: start;
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-top: var(--s-5);
}
/* Shares the statement's row so it sits beside the quote, not under it, and
   is dropped to the statement's third-line baseline — two line-heights of the
   statement's own type, so the offset survives a change to the type scale. */
.standard-support {
  grid-column: 8 / 13;
  grid-row: 2;
  align-self: start;
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 40ch;
  margin-top: calc(2 * 1.18 * var(--t-statement));
}

@media (max-width: 767px) {
  .standard-statement, .standard-attribution, .standard-support {
    grid-column: 1 / 13;
    grid-row: auto;
    max-width: none;
  }
  .standard-support { margin-top: var(--s-7); }
  .standard-attribution + .standard-support { margin-top: var(--s-7); }
}

/* ---------- §02 Origin ---------- */
.origin .container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
}
.origin-sticky {
  grid-column: 1 / 7;
  grid-row: 1;
  position: sticky;
  top: 120px;
  align-self: start;
}
.origin-sticky h2 {
  font-size: var(--t-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: var(--s-5);
  margin-bottom: var(--s-6);
}
.origin-sticky .kicker { margin-bottom: 0; }
.origin-sticky p {
  font-size: var(--t-body);
  max-width: 40ch;
}

.origin-list { grid-column: 8 / 13; grid-row: 1; }
.origin-item {
  position: relative;
  padding-top: var(--s-8);
  padding-bottom: var(--s-8);
}
.origin-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 140ms;
}
.origin-item.is-visible::after { transform: scaleX(1); }
.origin-item:first-child { padding-top: 0; }
.origin-item .marker {
  position: absolute;
  left: calc(-1 * var(--s-4));
  top: calc(var(--s-8) + 6px);
  width: 6px; height: 6px;
  background: var(--moss);
}
.origin-item:first-child .marker { top: 6px; }
.origin-item h3 {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-h3);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin-bottom: var(--s-3);
}
.origin-item p {
  font-size: var(--t-body);
  color: var(--ink-2);
  max-width: 44ch;
}

.origin-close {
  grid-column: 1 / 13;
  grid-row: 2;
  margin-top: var(--s-9);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  text-align: right;
  font-family: var(--f-mono);
  font-size: var(--t-small);
  color: var(--ink-2);
}

@media (max-width: 767px) {
  .origin-sticky { position: static; grid-column: 1 / 13; grid-row: auto; margin-bottom: var(--s-8); }
  .origin-list { grid-column: 1 / 13; grid-row: auto; }
  .origin-close { grid-row: auto; }
  .origin-item .marker { left: 0; }
  .origin-item { padding-left: var(--s-5); }
  .origin-close { text-align: left; }
}

/* ---------- §03 Work ---------- */
.work { text-align: center; }
.work .kicker { justify-content: center; }
.work .kicker .rule { display: none; }
.work h2 {
  font-size: var(--t-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 30ch;
  margin-inline: auto;
  margin-top: var(--s-5);
}
.work-stairs {
  max-width: 58ch;
  margin-inline: auto;
  margin-top: var(--s-9);
  position: relative;
  padding-left: var(--s-5);
  text-align: left;
}
.work-stairs .rule {
  position: absolute;
  left: 0; top: 0.5em; bottom: 0;
  width: 1px;
  background: var(--line);
}
.work-stairs p {
  font-size: var(--t-body);
  color: var(--ink-2);
  max-width: 50ch;
}
.work-stairs p + p { margin-top: var(--s-6); }
.work-stairs p:nth-of-type(1) { padding-left: 0; }
.work-stairs p:nth-of-type(2) { padding-left: 4ch; }
.work-stairs p:nth-of-type(3) { padding-left: 8ch; }

@media (max-width: 767px) {
  .work-stairs p:nth-of-type(1) { padding-left: 0; }
  .work-stairs p:nth-of-type(2) { padding-left: 2ch; }
  .work-stairs p:nth-of-type(3) { padding-left: 4ch; }
}

/* ---------- §04 Ownership — the tonal flip ---------- */
.ownership {
  background: var(--bg-invert);
  color: var(--on-invert);
  padding-block: var(--s-11);
}
.ownership .container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
}
.ownership-head { grid-column: 1 / 7; grid-row: 1; }
.ownership-head .kicker { color: color-mix(in srgb, var(--on-invert) 65%, transparent); }
.ownership-head .kicker .rule { background: color-mix(in srgb, var(--on-invert) 40%, transparent); }
.ownership-head h2 {
  color: var(--on-invert);
  font-size: var(--t-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: var(--s-5);
}
.ownership-body { grid-column: 8 / 13; grid-row: 1; }
.ownership-body p { color: color-mix(in srgb, var(--on-invert) 82%, transparent); }
.ownership-body p:first-child { font-size: var(--t-lead); }
.ownership-body p:not(:first-child) { font-size: var(--t-body); margin-top: var(--s-5); }

.ownership-row {
  grid-column: 1 / 13;
  grid-row: 2;
  margin-top: var(--s-10);
  padding-top: var(--s-6);
  border-top: 1px solid var(--hair);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
}
.ownership-row span {
  font-family: var(--f-mono);
  font-size: var(--t-kicker);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-on-invert);
}
.ownership-row span:nth-child(1) { grid-column: 1 / 4; }
.ownership-row span:nth-child(2) { grid-column: 5 / 8; }
.ownership-row span:nth-child(3) { grid-column: 9 / 12; }

@media (max-width: 767px) {
  .ownership { padding-block: var(--s-10); }
  .ownership-head, .ownership-body { grid-column: 1 / 13; grid-row: auto; }
  .ownership-body { margin-top: var(--s-7); }
  .ownership-row { display: flex; justify-content: space-between; grid-row: auto; }
  .ownership-row span { grid-column: auto; }
}

/* ---------- §05 Horizon ---------- */
.horizon-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
}
.horizon-head-inner { grid-column: 1 / 8; }
.horizon-head-inner h2 {
  font-size: var(--t-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: var(--s-5);
}

.horizon-line {
  position: relative;
  height: 1px;
  background: var(--line);
  margin-top: var(--s-9);
}
/* The dots belong to the rule, not to the nodes. Positioned inside a node,
   18%/82% resolve against that node's own third-width column and top:50%
   against its text height — which is how they ended up floating ~90px below
   the timeline. See BRIEF §5.7. */
.horizon-dot {
  position: absolute;
  top: 50%;
  width: 10px; height: 10px;
  border-radius: var(--r-full);
  background: var(--signal);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 900ms cubic-bezier(0.33, 1.5, 0.6, 1);
}
.horizon-dot-1 { left: 18%; }
.horizon-dot-2 { left: 50%; transition-delay: 90ms; }
.horizon-dot-3 { left: 82%; transition-delay: 180ms; }
.is-visible .horizon-dot { transform: translate(-50%, -50%) scale(1); }

.horizon-nodes {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: var(--col-gap);
}
.horizon-node { position: relative; }
.horizon-node-1 { padding-top: var(--s-6); }
.horizon-node-2 { padding-top: var(--s-9); }
.horizon-node-3 { padding-top: var(--s-6); }
/* Hangs down from the rule to node 2's label — it does not rise above it. */
.horizon-node-2 .tick {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: calc(var(--s-9) - var(--s-4));
  background: var(--line);
}
.horizon-node .label {
  display: block;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: var(--t-small);
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: var(--s-3);
  text-align: center;
}
.horizon-node p {
  font-size: var(--t-body);
  color: var(--ink-2);
  max-width: 26ch;
  margin-inline: auto;
  text-align: center;
}

.horizon-close {
  margin-top: var(--s-10);
  text-align: right;
  font-size: var(--t-lead);
  color: var(--ink-2);
  font-family: var(--f-body);
}

@media (max-width: 767px) {
  .horizon-head-inner { grid-column: 1 / 13; }
  .horizon-line {
    position: absolute;
    left: 10px; top: 0; bottom: 0;
    width: 1px; height: auto;
    background: var(--line);
    margin-top: 0;
  }
  .horizon-nodes {
    display: block;
    position: relative;
    padding-left: var(--s-6);
    margin-top: var(--s-9);
  }
  .horizon-node { padding-top: 0 !important; margin-bottom: var(--s-8); }
  .horizon-node:last-child { margin-bottom: 0; }
  .horizon-dot { left: 50% !important; }
  .horizon-dot-1 { top: 4%; }
  .horizon-dot-2 { top: 44%; }
  .horizon-dot-3 { top: 84%; }
  .horizon-node-2 .tick { display: none; }
  .horizon-node .label, .horizon-node p { text-align: left; margin-inline: 0; }
  .horizon-close { text-align: left; margin-top: var(--s-8); }
}

/* ---------- §06 Culture — the empty one ---------- */
.culture {
  padding-block: var(--s-12);
  text-align: center;
}
.culture .kicker { justify-content: center; margin-bottom: var(--s-9); }
.culture .kicker .rule { display: none; }
.culture-stanza {
  max-width: 34ch;
  margin-inline: auto;
  font-family: var(--f-display);
  font-size: var(--t-lead);
  line-height: 1.75;
  color: var(--ink-2);
}
.culture-stanza p { color: var(--ink-2); }
.culture-stanza p + p { margin-top: var(--s-6); }
.culture-stanza .final { color: var(--ink); }

@media (max-width: 767px) {
  .culture { padding-block: var(--s-10); }
}

/* ---------- §07 Contact — closes on ink ---------- */
.contact {
  background: var(--bg-invert);
  color: var(--on-invert);
  overflow: hidden;
  padding-bottom: var(--s-12);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  position: relative;
  z-index: 1;
}
.contact .kicker { color: color-mix(in srgb, var(--on-invert) 65%, transparent); }
.contact .kicker .rule { background: color-mix(in srgb, var(--on-invert) 40%, transparent); }
.contact-main { grid-column: 1 / 8; }
.contact-main h2 {
  color: var(--on-invert);
  font-size: var(--t-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: var(--s-5);
  margin-bottom: var(--s-5);
}
.contact-main p {
  font-size: var(--t-body);
  max-width: 52ch;
  color: color-mix(in srgb, var(--on-invert) 82%, transparent);
}
.contact-main p + p { margin-top: var(--s-5); }
.contact-main .btn {
  margin-top: var(--s-7);
  background: var(--on-invert);
  color: var(--bg-invert);
}
.contact-main .btn:hover { background: var(--signal-deep); color: var(--on-invert); }
.contact-email {
  display: block;
  margin-top: var(--s-4);
  font-size: var(--t-small);
  color: var(--signal-on-invert);
}
.contact-email:hover { color: var(--on-invert); }
/* Needs the extra class to outrank `.contact-main p`, which would otherwise
   win on specificity and leave this line un-muted. */
.contact-main .contact-note {
  margin-top: var(--s-3);
  font-size: var(--t-small);
  color: color-mix(in srgb, var(--on-invert) 64%, transparent);
  max-width: 44ch;
}

.ledger { grid-column: 9 / 13; }
.ledger-row {
  position: relative;
  padding-bottom: var(--s-5);
  padding-top: var(--s-5);
}
.ledger-row::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--hair);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 140ms;
}
.ledger-row.is-visible::after { transform: scaleX(1); }
.ledger-row:first-child { padding-top: 0; }
.ledger-row h3 {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-h3);
  margin-bottom: var(--s-2);
  color: var(--on-invert);
}
.ledger-row p {
  font-size: var(--t-small);
  color: color-mix(in srgb, var(--on-invert) 62%, transparent);
}

/* Anchored to the section's bottom edge and sized to the container, so the
   letterforms are cut only by the footer hairline — never sliced horizontally
   through their middle and never clipped at the right. See BRIEF §5.9. */
.contact-wordmark {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 0;
}
/* line-height 1 keeps the cap tops at the box top; the negative margin pulls
   the wrapper's bottom edge up into the letterforms, so the crop happens only
   at the bottom — never as a horizontal slice through their middle. */
.contact-wordmark span {
  display: block;
  font-family: var(--f-display);
  font-size: min(15.2vw, 11.6rem);
  line-height: 1;
  margin-bottom: -0.34em;
  letter-spacing: -0.04em;
  color: var(--on-invert);
  opacity: 0.08;
  white-space: nowrap;
  text-align: center;
  padding-inline: var(--gutter);
}

@media (max-width: 767px) {
  .contact { padding-bottom: var(--s-10); }
  .contact-main, .ledger { grid-column: 1 / 13; }
  .ledger { margin-top: var(--s-9); }
  .contact-wordmark span { font-size: 21vw; }
}

/* ---------- Footer — continuous with the contact slab ---------- */
.site-footer {
  background: var(--bg-invert);
  color: var(--on-invert);
  border-top: 1px solid var(--hair);
  padding-block: var(--s-6);
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}
/* 64%, not 58% — at 58% this lands on 4.23:1 against the bone slab the
   footer flips to in dark mode, just under AA. */
.footer-top, .footer-bottom {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--on-invert) 64%, transparent);
}
.footer-top p { color: inherit; }
.footer-top a:hover { color: var(--signal); }
.footer-bottom { margin-top: var(--s-4); }

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-blur {
  opacity: 0;
  transform: none;
  filter: blur(6px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-blur.is-visible {
  opacity: 1;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-blur {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .kicker .rule,
  .thesis-foot .rule { transform: scaleX(1) !important; transition: none !important; }
  .origin-item::after,
  .ledger-row::after { transform: scaleX(1) !important; transition: none !important; }
  .horizon-dot { transform: translate(-50%, -50%) scale(1) !important; transition: none !important; }
  .nav-progress { display: none; }
}

/* ---------- Responsive grid collapse (generic safety) ---------- */
@media (max-width: 767px) {
  .section { padding-block: var(--s-10); }
}
