/* ============================================================
   augur llc — company site
   "the ephemeris": an engraved star almanac. ruled typographic
   grid, one precise instrument, no ornament that isn't information.
   type: Gabarito (display) + Hanken Grotesk (body + italic notes)
   ============================================================ */

/* self-hosted variable fonts (SIL OFL) — no third-party requests */
@font-face {
  font-family: "Gabarito";
  src: url("../assets/fonts/gabarito-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-italic-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* one ground, one ink, one accent. that is the whole palette. */
  --ground: #07090F;
  --ink: #FDF3DF;
  --ink-70: rgba(253, 243, 223, 0.70);
  --ink-50: rgba(253, 243, 223, 0.50);
  --ink-35: rgba(253, 243, 223, 0.35);
  --rule: rgba(253, 243, 223, 0.20);
  --rule-soft: rgba(253, 243, 223, 0.10);
  --amber: #FFC968;                       /* glim's heart colour — used sparingly, on purpose */

  --font-display: "Gabarito", sans-serif;
  --font-body: "Hanken Grotesk", sans-serif;

  --pad: clamp(1.15rem, 4.5vw, 3.25rem);
  --maxw: 84rem;
  --head-h: 3.25rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: clamp(14.5px, 13px + 0.25vw, 17.5px);
  scroll-padding-top: 5rem;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* the only atmosphere: a whisper of sky at the top edge, and paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 70vh;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(95, 130, 196, 0.09), transparent 72%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  /* promote to its own layer so it never repaints while scrolling */
  will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--amber); color: var(--ground); }
:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -200%);
  z-index: 100;
  background: var(--ink);
  color: var(--ground);
  padding: 0.55rem 1.1rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- shared type ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* the micro line: running heads, folios, captions, spec keys */
.micro {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.note { font-style: italic; color: var(--ink-50); font-size: 0.86rem; line-height: 1.5; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p a:not([class]) {
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
p a:not([class]):hover { color: var(--amber); border-color: var(--amber); }

/* ---------- running head ---------- */

.runhead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--head-h);
  display: flex;
  align-items: center;
  /* opaque, not frosted — a printed running head, and no per-frame filter */
  border-bottom: 1px solid var(--rule-soft);
  background: var(--ground);
  transition: border-color 0.4s var(--ease);
}
.runhead.stuck { border-bottom-color: var(--rule); }
.runhead .wrap { display: flex; align-items: center; gap: 1rem; }

.rh-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.rh-mark svg { width: 1.05rem; height: 1.05rem; }
.rh-mark svg path { stroke: var(--ink-35); stroke-width: 1.4; fill: none; }
.rh-mark svg circle { fill: var(--amber); }

.rh-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}
.rh-nav a {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-50);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.rh-nav a:hover { color: var(--ink); border-bottom-color: var(--amber); }
@media (max-width: 560px) { .rh-nav .nav-hide { display: none; } }

/* ---------- title page ---------- */

.titlepage {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--head-h) + 1.25rem);
  padding-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.titlepage > .wrap { position: relative; z-index: 2; width: 100%; }
.tp-body { margin-top: auto; }

/* upper micro line, ruled */
.tp-top {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--ink-50);
}
.tp-top .r { flex: 1; height: 1px; background: var(--rule-soft); }

/* the dictionary epigraph — gives the upper field something to hold */
.tp-epigraph {
  margin-top: clamp(1.6rem, 5vh, 3rem);
  max-width: 30ch;
  color: var(--ink-35);
  font-size: 0.9rem;
  line-height: 1.6;
  animation: rise 1.1s var(--ease) 0.25s both;
}
.tp-epigraph b { color: var(--ink-50); font-style: italic; font-weight: 600; }
.tp-epigraph i { font-style: italic; }
@media (max-width: 760px), (max-height: 720px) { .tp-epigraph { display: none; } }

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4.2rem, 20vw, 16rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-block: clamp(1.5rem, 5vh, 3rem) 0;
}
.wordmark span {
  display: inline-block;
  animation: rise 1s var(--ease) both;
  animation-delay: calc(var(--i) * 0.06s);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(0.24em); }
  to   { opacity: 1; transform: none; }
}

.tp-rule {
  height: 1px;
  background: var(--rule);
  margin-top: clamp(1.1rem, 3vh, 1.9rem);
  transform-origin: left;
  animation: sweep 1.1s var(--ease) 0.45s both;
}
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.tp-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-top: clamp(1.1rem, 3vh, 1.8rem);
}
.tp-lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.1vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
  animation: rise 1s var(--ease) 0.5s both;
}
.tp-sub { color: var(--ink-70); max-width: 44ch; animation: rise 1s var(--ease) 0.6s both; }
.tp-sub strong { color: var(--ink); font-weight: 600; }
.tp-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; animation: rise 1s var(--ease) 0.7s both; }
@media (max-width: 760px) { .tp-cols { grid-template-columns: 1fr; gap: 1.35rem; } }

.tp-foot {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: clamp(1.6rem, 5vh, 3rem);
  color: var(--ink-35);
  animation: rise 1s var(--ease) 0.9s both;
}
.tp-foot .r { flex: 1; height: 1px; background: var(--rule-soft); }
@media (max-width: 620px) { .tp-foot .hide-sm { display: none; } }

/* ---------- buttons: squared, printed, not pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 1.35rem;
  border-radius: 2px;
  border: 1px solid var(--rule);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-fill { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn-fill:hover { background: var(--amber); border-color: var(--amber); }
.btn-line { color: var(--ink-70); }
.btn-line:hover { color: var(--ink); border-color: var(--ink-50); }

/* ---------- the celestial chart: the one ornament ---------- */

/* the chart is anchored to the text column, not the viewport, so it stays
   in conversation with the wordmark on a 2560px display */
.chart-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  pointer-events: none;
}

.chart {
  position: absolute;
  z-index: 1;
  top: 43%;
  right: clamp(-9rem, -3.5vw, -1rem);
  transform: translateY(-50%);
  width: min(47rem, 58vw);
  pointer-events: none;
}
.chart svg { width: 100%; height: auto; overflow: visible; }

.chart .ring,
.chart .tick,
.chart .cross { fill: none; stroke: var(--ink); vector-effect: non-scaling-stroke; }
.chart .ring { stroke-width: 1; stroke-opacity: 0.22; }
.chart .ring.faint { stroke-opacity: 0.10; }
.chart .tick { stroke-width: 1; stroke-opacity: 0.28; }
.chart .tick.minor { stroke-opacity: 0.13; }
.chart .cross { stroke-width: 1; stroke-opacity: 0.09; }

.chart .link { fill: none; stroke: var(--ink); stroke-opacity: 0.38; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .sd { fill: var(--ink); }
.chart .sd.prime { fill: var(--amber); }
.chart .flare { stroke: var(--amber); stroke-width: 1; stroke-opacity: 0.55; vector-effect: non-scaling-stroke; }
.chart .glyph {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  fill: var(--ink);
  fill-opacity: 0.42;
}
.chart .glyph.hot { fill: var(--amber); fill-opacity: 0.85; }

/* the instrument assembles itself once: rings, then lines, then stars.
   nothing loops — a chart that keeps moving is a screensaver, not an instrument. */

.chart .ring, .chart .cross {
  stroke-dasharray: var(--len, 1600);
  stroke-dashoffset: var(--len, 1600);
  animation: draw 2.2s var(--ease) forwards;
  animation-delay: calc(0.15s + var(--i, 0) * 0.12s);
}
.chart .link {
  stroke-dasharray: var(--len, 200);
  stroke-dashoffset: var(--len, 200);
  animation: draw 1.4s var(--ease) forwards;
  animation-delay: calc(0.9s + var(--i, 0) * 0.11s);
}
.chart .sd, .chart .flare, .chart .glyph {
  opacity: 0;
  animation: fade 1s var(--ease) forwards;
  animation-delay: calc(1.5s + var(--i, 0) * 0.09s);
}
.chart .tick { opacity: 0; animation: fade 1.6s var(--ease) 0.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

@media (max-width: 900px) {
  .chart { width: 128vw; right: -46vw; top: 34%; opacity: 0.4; }
}

/* ---------- ruled section heads ---------- */

.entry { padding-block: clamp(3.5rem, 9vh, 6.5rem); }

.entry-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
}
.entry-head .no { color: var(--amber); }
.entry-head .ttl { color: var(--ink); }
.entry-head .r { flex: 1; height: 1px; background: var(--rule-soft); align-self: center; }
/* the marginal note is a note, not a label — undo the .micro casing */
.entry-head .note {
  flex: 0 1 auto;
  text-align: right;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
@media (max-width: 720px) {
  .entry-head { flex-wrap: wrap; gap: 0.5rem 0.9rem; }
  .entry-head .r { display: none; }
  .entry-head .note { flex-basis: 100%; text-align: left; }
}

/* ---------- thesis ---------- */

.thesis {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 6vw, 5rem);
  align-items: start;
}
.thesis h2 { font-size: clamp(1.9rem, 4.3vw, 3.15rem); }
.thesis .drop { color: var(--ink-70); }
.thesis .drop p + p { margin-top: 1.05rem; }
.thesis .drop strong { color: var(--ink); font-weight: 600; }
.thesis .drop em { color: var(--amber); font-style: italic; }
.thesis .drop p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.1em;
  line-height: 0.82;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--ink);
}
/* the statement sits under the heading, ruled off, holding the left field */
.creed {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  max-width: 26ch;
}
.creed .micro { color: var(--ink-35); }
.creed-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 0.7rem;
}
.creed .note { margin-top: 0.7rem; }
@media (max-width: 820px) { .thesis { grid-template-columns: 1fr; gap: 1.5rem; } .creed { max-width: none; } }

/* ---------- product: a catalogue record, not a card ---------- */

.record-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.re-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
}
.re-kicker {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--amber);
  margin-top: 0.85rem;
  letter-spacing: -0.01em;
}
.re-body { color: var(--ink-70); margin-top: 1.1rem; max-width: 52ch; }
.re-body + .re-body { margin-top: 0.9rem; }

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.link-arrow .arr { transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--amber); border-color: var(--amber); }
.link-arrow:hover .arr { transform: translate(3px, -3px); }

.re-side { position: relative; }
.re-plate {
  position: relative;
  border: 1px solid var(--rule-soft);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  display: grid;
  place-items: center;
  min-height: 15rem;
}
/* corner registration marks — a plate, not a glass card */
.re-plate::before,
.re-plate::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--rule);
}
.re-plate::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.re-plate::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.re-plate img { max-height: 17rem; width: auto; }

.re-caption { margin-top: 0.7rem; color: var(--ink-35); }

.spec { margin-top: 1.4rem; border-top: 1px solid var(--rule); }
.spec .row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.spec dt { color: var(--ink-35); }
/* keys stay uppercase; values are prose */
.spec dd { color: var(--ink-70); font-size: 0.9rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
.spec dd.on { color: var(--ink); display: inline-flex; align-items: center; gap: 0.5rem; }
.spec dd.on::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--amber);
  border-radius: 50%;
  flex: none;
}
@media (max-width: 820px) {
  .record-entry { grid-template-columns: 1fr; }
  .re-side { order: -1; }
  .re-plate img { max-height: 13rem; }
}

/* ---------- principles: ruled rows, not boxes ---------- */

.principles { list-style: none; border-top: 1px solid var(--rule); }
.principles li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1rem, 2.6vh, 1.6rem);
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
  transition: background 0.3s var(--ease);
}
.principles li:hover { background: rgba(253, 243, 223, 0.022); }
.principles .n { color: var(--amber); }
.principles h3 { font-size: clamp(1.1rem, 2.1vw, 1.4rem); }
.principles p { color: var(--ink-50); max-width: 58ch; }
@media (max-width: 820px) {
  .principles li { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.35rem 1rem; }
  .principles p { grid-column: 2; }
}

/* ---------- the record ---------- */

.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.ledger-table { border-top: 1px solid var(--rule); }
.ledger-table .row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem clamp(1rem, 3vw, 2.5rem);
  padding-block: 0.78rem;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.ledger-table dt { color: var(--ink-35); }
.ledger-table dd {
  color: var(--ink-70);
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 0.94rem;
}
.ledger-table dd strong { color: var(--ink); font-weight: 600; }
.ledger-table dd a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ledger-table dd a:hover { color: var(--amber); border-color: var(--amber); }

.ledger-aside { border-left: 1px solid var(--rule-soft); padding-left: clamp(1rem, 2.5vw, 1.75rem); }
.ledger-aside p { color: var(--ink-50); font-size: 0.92rem; }
.ledger-aside p + p { margin-top: 0.85rem; }
.ledger-aside strong { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) {
  .ledger { grid-template-columns: 1fr; gap: 1.6rem; }
  .ledger-aside { border-left: 0; border-top: 1px solid var(--rule-soft); padding-left: 0; padding-top: 1.2rem; }
  .ledger-table .row { grid-template-columns: 1fr; gap: 0.2rem; padding-block: 0.7rem; }
}

/* ---------- contact ---------- */

.hail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.hail h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
.hail p { color: var(--ink-70); max-width: 42ch; }
.mail-line {
  display: block;
  margin-top: clamp(1.75rem, 5vh, 3rem);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 5.2vw, 3.4rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  word-break: break-word;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.mail-line:hover { color: var(--amber); border-top-color: var(--amber); }
@media (max-width: 760px) { .hail { grid-template-columns: 1fr; align-items: start; gap: 1.1rem; } }

/* ---------- colophon ---------- */

.colophon { border-top: 1px solid var(--rule); padding-block: 2.25rem 2.75rem; margin-top: clamp(2rem, 6vh, 4rem); }
.col-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}
.col-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.col-grid h4 { color: var(--ink-35); margin-bottom: 0.8rem; font-weight: 700; }
.col-grid nav { display: flex; flex-direction: column; gap: 0.42rem; }
.col-grid nav a { color: var(--ink-50); font-size: 0.88rem; transition: color 0.2s var(--ease); }
.col-grid nav a:hover { color: var(--amber); }
.col-note { color: var(--ink-35); font-size: 0.8rem; line-height: 1.6; margin-top: 0.9rem; max-width: 40ch; }
.col-fine {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-soft);
  color: rgba(253, 243, 223, 0.26);
  font-size: 0.74rem;
  line-height: 1.65;
  max-width: 78ch;
}
@media (max-width: 720px) { .col-grid { grid-template-columns: 1fr 1fr; } .col-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(0.7rem); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
.rule-in { transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease); }
.rule-in.in { transform: scaleX(1); }

/* ---------- legal pages ---------- */

.legal-head { padding-block: clamp(6rem, 15vh, 9rem) clamp(1.5rem, 4vh, 2.5rem); }
.legal-head h1 { font-size: clamp(2.4rem, 7vw, 5rem); margin-top: 0.9rem; }
.legal-head .meta {
  margin-top: 1.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 1.1rem;
  align-items: center;
  color: var(--ink-35);
}
.legal-head .meta .r { flex: 1; height: 1px; background: var(--rule-soft); }

.legal { padding-bottom: clamp(3.5rem, 9vh, 6rem); }
.legal .wrap > * { max-width: 68ch; }
.legal .standfirst {
  border-left: 1px solid var(--amber);
  padding: 0.1rem 0 0.1rem 1.15rem;
  color: var(--ink-70);
}
.legal .standfirst strong { color: var(--ink); font-weight: 600; }
.legal h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  margin-top: 2.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  max-width: none;
}
.legal h2 .num { font-size: 0.625rem; letter-spacing: 0.2em; color: var(--amber); font-variant-numeric: tabular-nums; font-family: var(--font-body); font-weight: 700; }
.legal h3 { font-size: 1rem; margin-top: 1.5rem; color: var(--ink); }
.legal p, .legal li { color: var(--ink-70); }
.legal p { margin-top: 0.85rem; }
.legal ul { margin-top: 0.85rem; padding-left: 1.05rem; }
.legal li { margin-top: 0.45rem; }
.legal li::marker { color: var(--amber); }
.legal a { color: var(--ink); border-bottom: 1px solid var(--rule); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.legal a:hover { color: var(--amber); border-color: var(--amber); }

/* ---------- motion opt-out ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rule-in { transform: none; }
  .chart .ring, .chart .cross, .chart .link { stroke-dashoffset: 0; }
  .chart .sd, .chart .flare, .chart .glyph, .chart .tick { opacity: 1; }
}
