/* aeons home page. Also loaded by the generated Transmission pages, after
   their own base styles. Tokens live in tokens.css. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--lunar);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
::selection { background: var(--ion); color: var(--void); }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--haze);
}
a { color: var(--lunar); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--lunar); color: var(--void);
  padding: 10px 16px; z-index: 50;
  font-family: var(--font-mono); font-size: 12px;
}
.skip:focus { left: 12px; top: 12px; }

/* ══ living field ══ */
#field { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.field-depth {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 78% 16%, rgb(var(--ion-rgb) / 0.06), transparent 62%),
    radial-gradient(ellipse 80% 60% at 10% 88%, rgb(var(--atmosphere-rgb) / 0.045), transparent 60%);
}
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 120% 92% at 50% 40%, transparent 58%, rgb(var(--shadow-rgb) / 0.62) 100%);
}

/* ══ header ══ */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 20;
  background: linear-gradient(to bottom, var(--void) 64%, transparent);
}
.header-inner {
  width: var(--shell); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0 18px;
}
.header-mark svg { height: 19px; width: auto; display: block; }
.header-mark a { display: block; line-height: 0; }

.index { display: flex; gap: 4px; }
.index a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em;
  text-decoration: none; color: var(--mineral);
  padding: 8px 10px;
  transition: color 0.35s;
}
.index a::after {
  content: ""; position: absolute;
  left: 10px; right: 10px; bottom: 2px; height: 1px;
  background: var(--ion);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s ease;
}
.index a:hover { color: var(--lunar); }
.index a.active { color: var(--ion); }
.index a.active::after { transform: scaleX(1); }
.index a:focus-visible { outline: 1px solid var(--ion); outline-offset: 2px; color: var(--lunar); }

/* reading progress, drawn as an interval */
.progress-rail {
  position: relative;
  width: var(--shell); margin: 0 auto;
  height: 1px; background: var(--trace);
}
.progress-rail .fill {
  position: absolute; left: 0; top: 0; height: 1px; width: 0%;
  background: linear-gradient(90deg, var(--ion), var(--atmosphere));
  transition: width 0.15s linear;
}
.progress-rail .stop {
  position: absolute; top: -3px; width: 1px; height: 7px;
  background: var(--graphite);
}

main { position: relative; z-index: 1; }
.shell { width: var(--shell); margin: 0 auto; }
section { padding: 9vh 0; }
#premise, #pillars { scroll-margin-top: 96px; }
/* /#transmission lands on the section header, so the eyebrow, the heading and
   the whole register panel are all in frame at once */
#transmission { scroll-margin-top: 32px; }
/* deep link straight to the signup panel: /#subscribe */
#subscribe { scroll-margin-top: 96px; }

/* ══ hero: asymmetric editorial grid ══ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 6%;
  padding-top: 96px;
}
.hero-left { max-width: 620px; }
.hero .label { display: block; margin-bottom: 34px; }
/* the hero enters in sequence, after the wordmark unveils.
   These set --d, not transition-delay, because the .reveal
   shorthand later in this sheet would otherwise reset it. */
.js .hero-left > .label.reveal { --d: 0.05s; }
.js .hero-left > .interval.reveal { --d: 1.15s; }
.js .hero-left > .hero-claim.reveal { --d: 1.35s; }
.js .hero-left > .enter.reveal { --d: 1.6s; }
.js .hero-field.reveal { --d: 0.25s; }

h1.wordmark {
  width: min(560px, 100%);
  margin: 0 0 34px;
  padding: 0;
  font-size: 0;
  line-height: 0;
  font-weight: 400;
  position: relative;
}
.wordmark svg { width: 100%; height: auto; display: block; }
/* the unveiling: a wipe that pauses at an interval, then completes */
.js .wordmark.armed .veil {
  position: absolute; inset: 0;
  background: var(--void);
  transform-origin: right;
}
.js .wordmark.armed.lift .veil { animation: unveil 1.5s cubic-bezier(.24,.62,.32,1) forwards; }
@keyframes unveil {
  0%   { transform: scaleX(1); }
  38%  { transform: scaleX(0.44); }
  54%  { transform: scaleX(0.44); }
  100% { transform: scaleX(0); }
}
/* the rule that travels with the wipe */
.js .wordmark.armed .edge {
  position: absolute; top: -6%; bottom: -6%;
  width: 1px; right: 0;
  background: linear-gradient(180deg, transparent, var(--ion), transparent);
  opacity: 0;
}
.js .wordmark.armed.lift .edge { animation: edge 1.5s cubic-bezier(.24,.62,.32,1) forwards; }
@keyframes edge {
  0%   { right: 0; opacity: 0; }
  10%  { opacity: 0.9; }
  38%  { right: 44%; opacity: 0.9; }
  54%  { right: 44%; opacity: 0.35; }
  100% { right: 100%; opacity: 0; }
}

.interval { width: min(430px, 100%); margin: 0 0 38px; }
.interval svg { width: 100%; height: auto; display: block; overflow: visible; }
/* the line resolves once and stays; it is a mark, not a loop */
.interval .seg {
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 0.9s var(--ease-signal) var(--sd, 0s);
}
.interval.in .seg { stroke-dashoffset: 0; }
.interval .s1 { --len: 480; --sd: 0.05s; }
.interval .s2 { --len: 429; --sd: 0.3s; }
.interval .s3 { --len: 230; --sd: 0.5s; }
.interval .s4 { --len: 215; --sd: 0.65s; }
.interval .tick { opacity: 0; transition: opacity 0.5s ease 0.85s; }
.interval.in .tick { opacity: 0.7; }

.hero-claim {
  font-size: clamp(21px, 2.1vw, 29px);
  font-weight: 400; line-height: 1.55;
  max-width: 580px;
  color: var(--lunar-headline);
}
.hero-claim em { font-style: italic; font-weight: 500; color: var(--ion-hi); }

a.enter {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 46px;
  color: var(--mineral);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; padding: 10px 0;
  transition: color 0.3s, gap 0.3s;
}
a.enter:hover { color: var(--lunar); gap: 18px; }
a.enter:focus-visible { outline: 1px solid var(--ion); outline-offset: 6px; color: var(--ion); }
.enter .rule { width: 34px; height: 1px; background: var(--graphite); transition: background 0.3s, width 0.3s; }
a.enter:hover .rule { background: var(--ion); width: 46px; }

/* hero right field */
.hero-field { position: relative; height: min(62vh, 560px); }
.hero-field .ligature {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 94%; opacity: 0.13;
}
.hero-field .ligature svg { width: 100%; height: auto; display: block; }
.hero-field .ligature .bar {
  stroke-dasharray: 140; stroke-dashoffset: 140;
  transition: stroke-dashoffset 1.3s ease 0.8s;
}
.hero-field.in .ligature .bar { stroke-dashoffset: 0; }
.hero-field .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgb(var(--graphite-rgb) / 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--graphite-rgb) / 0.4) 1px, transparent 1px);
  background-size: 25% 25%;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 22%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 22%, transparent 76%);
}
/* one measured rule across the field */
.hero-field .measure {
  position: absolute; top: 25%; left: 12%;
  width: 76%; height: 1px;
  background: linear-gradient(90deg, rgb(var(--ion-rgb) / 0.55), rgb(var(--atmosphere-rgb) / 0.2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.3s var(--ease-signal) 0.6s;
}
.hero-field.in .measure { transform: scaleX(1); }

/* ══ argument: left column, kickers in the margin ══ */
.argument-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 0 48px;
  max-width: 980px;
}
.movement { display: contents; }
.kicker {
  grid-column: 1;
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--haze);
  padding-top: 0.55em;
  border-top: 1px solid var(--graphite);
  margin-top: 2.2em;
}
.movement:first-child .kicker { margin-top: 0; }
.kicker .n { color: var(--ion-hi); }
.argument-grid p.body {
  grid-column: 2;
  font-size: 21px; line-height: 1.78;
  color: var(--lunar-soft);
  margin: 2.2em 0 0;
  padding-top: 0.55em;
  border-top: 1px solid var(--graphite);
}
.movement:first-child p.body { margin-top: 0; }
.argument-grid p.lede { font-size: 23px; font-weight: 400; line-height: 1.7; color: var(--lunar-headline); }
.argument-grid em.key { font-style: italic; font-weight: 500; color: var(--ion-hi); }

/* ══ inscriptions: the one centred moment ══ */
.inscription { padding: 12vh 0; text-align: center; }
.inscription blockquote p {
  font-style: italic; font-weight: 400;
  font-size: clamp(29px, 4.4vw, 50px);
  line-height: 1.34; max-width: 860px; margin: 0 auto;
  color: var(--lunar-display);
}
.inscription .divider { display: block; width: 200px; margin: 26px auto 0; }
.inscription .divider svg { width: 100%; height: auto; display: block; }
.inscription .divider .dseg {
  stroke-dasharray: 140; stroke-dashoffset: 140;
  transition: stroke-dashoffset 1.3s ease 0.35s;
}
.in .divider .dseg { stroke-dashoffset: 0; }
.inscription .label { display: block; margin-top: 20px; color: var(--mineral); }

/* ══ pillars: alternating editorial rows ══ */
.pillars-head {
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  gap: 0 48px; max-width: 980px; margin-bottom: 6vh;
}
.pillars-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400; line-height: 1.34; max-width: 640px;
  color: var(--lunar-headline);
}

.pillar {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 6%;
  padding: 54px 0;
  border-top: 1px solid var(--trace);
  scroll-margin-top: 110px;
  transition: background 0.6s ease;
}
.pillar:last-of-type { border-bottom: 1px solid var(--trace); }
.pillar:nth-child(even) .pillar-media { order: 2; }
.pillar:hover { background: rgb(var(--raised-rgb) / 0.42); }

.pillar-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.pillar-mark {
  font-family: var(--font-serif);
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 400;
  line-height: 0.9;
  color: var(--mineral);
  letter-spacing: 0.02em;
  transition: color 0.6s ease;
  position: relative;
}
.pillar.in .pillar-mark { color: var(--ion-pale); }
.pillar:hover .pillar-mark, .pillar.active .pillar-mark { color: var(--ion-hi); }
.pillar-mark::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -14px;
  width: 30px; height: 1px;
  margin-left: -15px;
  background: var(--ion);
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-signal) 0.35s;
}
.pillar.in .pillar-mark::after { transform: scaleX(1); }
.pillar-glyph { width: 190px; max-width: 78%; }
.pillar-glyph svg { width: 100%; height: auto; display: block; overflow: visible; }
.pillar-glyph .gline {
  stroke-dasharray: 300; stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.25s ease 0.15s;
}
.pillar.in .pillar-glyph .gline { stroke-dashoffset: 0; }
.pillar-glyph .gnode { opacity: 0; transition: opacity 0.6s ease 0.85s; }
.pillar.in .pillar-glyph .gnode { opacity: 1; }

/* the index carries five principles, an interval, then the publication */
.index-gap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
}
.index-gap i {
  display: block;
  width: 3px; height: 1px;
  background: var(--graphite);
}
.index a.tx-link {
  letter-spacing: 0.16em;
  color: var(--mineral);
}
.index a.tx-link.active { color: var(--ion-hi); }

.pillar-letter {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; color: var(--mineral);
  display: block; margin-bottom: 14px;
}
.pillar-word {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 500; letter-spacing: 0.26em;
  text-transform: lowercase; color: var(--haze);
  margin-bottom: 20px;
  transition: color 0.5s;
}
.pillar:hover .pillar-word, .pillar.active .pillar-word { color: var(--ion-hi); }
.pillar-def { font-size: 21px; line-height: 1.76; max-width: 570px; color: var(--lunar-soft); }

/* ══ transmission: two columns ══ */
.transmission {
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgb(var(--ion-rgb) / 0.10), transparent 62%),
    linear-gradient(180deg, rgb(var(--void-rgb) / 0.96) 0%, rgb(var(--raised-rgb) / 0.94) 45%, rgb(var(--void-rgb) / 0.98) 100%);
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
  padding: 8.5vh 0 max(130px, 12vh);
}
/* horizon: the far edge of the field */
.tx-horizon {
  position: absolute; left: 0; right: 0; bottom: 90px;
  height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgb(var(--atmosphere-rgb) / 0.42) 22%, rgb(var(--ion-rgb) / 0.5) 52%, rgb(var(--atmosphere-rgb) / 0.42) 78%, transparent);
  transform: scaleX(0);
  transition: transform 1.8s var(--ease-signal) 0.25s;
}
.transmission.in .tx-horizon { transform: scaleX(1); }
.tx-horizon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 90px;
  background: linear-gradient(180deg, rgb(var(--ion-rgb) / 0.09), transparent);
}

/* monumental ligature watermark */
.tx-monument {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  width: min(1500px, 116%); z-index: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 1.6s ease 0.3s;
}
.transmission.in .tx-monument { opacity: 0.05; }
.tx-monument svg { width: 100%; height: auto; display: block; }
.tx-monument .bar {
  stroke-dasharray: 140; stroke-dashoffset: 140;
  transition: stroke-dashoffset 1.6s ease 1s;
}
.transmission.in .tx-monument .bar { stroke-dashoffset: 0; }

/* full-bleed measured signal crossing the section */
.tx-signal {
  position: absolute; left: 0; right: 0; bottom: 20px;
  height: 60px; z-index: 0; pointer-events: none;
  opacity: 0.85;
}
.tx-signal canvas { width: 100%; height: 60px; display: block; }

/* the section header spans the full width so both columns start level */
.tx-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--trace);
}

.tx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 7%;
  align-items: start;
}
.tx-eyebrow {
  display: flex; align-items: center; gap: 18px;
  margin: 0;
  flex-shrink: 0;
}
.tx-eyebrow .rule {
  width: 46px; height: 1px; background: var(--graphite);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s ease 0.3s;
}
.transmission.in .tx-eyebrow .rule { transform: scaleX(1); }
/* the sixth movement: after the five letters, an interval, then this */
.tx-mark {
  display: flex; align-items: center; gap: 18px;
  margin: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.tx-mark .letters {
  font-family: var(--font-serif);
  font-size: 26px; letter-spacing: 0.34em;
  color: var(--graphite);
}
.tx-mark .gap {
  display: inline-flex; align-items: center; gap: 6px;
}
.tx-mark .gap i { display: block; width: 4px; height: 1px; background: var(--mineral); }
.tx-mark .now {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: lowercase; color: var(--ion-hi);
}
.transmission h2 {
  font-weight: 400; font-style: italic;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.06; margin: 0 0 20px;
  letter-spacing: -0.012em;
  color: var(--lunar-display);
}
.transmission .what { font-size: 20px; line-height: 1.7; margin-bottom: 13px; max-width: 570px; color: var(--lunar-soft); }

/* section deep field */
.transmission { position: relative; overflow: hidden; }
.tx-contour {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5;
}
.tx-contour svg { width: 100%; height: 100%; display: block; }
.tx-contour .pc {
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  transition: stroke-dashoffset 2.2s ease 0.2s;
}
.transmission.in .tx-contour .pc { stroke-dashoffset: 0; }
.tx-grid { position: relative; z-index: 1; }


/* register */
.register {
  border: 1px solid var(--graphite);
  background: var(--void);
  position: relative;
  z-index: 2;
  width: 100%;
}

/* archival metadata strip */
.register-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  border-bottom: 1px solid var(--trace);
}
.register-meta div {
  padding: 12px 14px;
  border-right: 1px solid var(--trace);
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mineral); line-height: 1.6;
}
.register-meta div:last-child { border-right: none; }
.register-meta b {
  display: block; font-weight: 400; color: var(--atmosphere);
  font-size: 10px; margin-top: 3px;
}

/* cadence timeline: fourteen marks, one interval */
.cadence-strip { padding: 18px 22px 0; }
.cadence-strip svg { width: 100%; height: auto; display: block; overflow: visible; }
.cadence-strip .past { stroke: var(--graphite); }
.cadence-strip .next { stroke: var(--ion); }
.cadence-strip .sweep {
  stroke-dasharray: 420; stroke-dashoffset: 420;
  transition: stroke-dashoffset 2.6s ease 0.9s;
}
.transmission.in .cadence-strip .sweep { stroke-dashoffset: 0; }
.cadence-strip .pip { opacity: 0; transition: opacity 0.9s ease 2.4s; }
.transmission.in .cadence-strip .pip { opacity: 1; }
.cadence-cap {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mineral);
}

/* channel status responds to the reader */
.chan-state { color: var(--mineral); transition: color 0.4s; }
.register.ready .chan-state { color: var(--ion); }
.register-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap;
  padding: 15px 22px; border-bottom: 1px solid var(--trace);
}
.register-head .label { color: var(--mineral); }
.register-head .right { color: var(--atmosphere); }
.register-body { padding: 30px 22px 26px; }

.cadence { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-left: 6px; }
.cadence i {
  display: block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ion); opacity: 0.3;
  animation: cadence 5.5s ease-in-out infinite;
}
.cadence i:nth-child(2) { animation-delay: 0.45s; }
.cadence i:nth-child(3) { animation-delay: 0.9s; }
@keyframes cadence { 0%, 70%, 100% { opacity: 0.28; } 12% { opacity: 1; } }

/* the address field: an obvious, measured input */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* a line written by a person, not a form label */
.field-line {
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  color: var(--lunar-dim);
  margin-bottom: 18px;
}
.field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 0 18px;
  min-height: 60px;
  background: var(--well);
  border: 1px solid var(--graphite);
  transition: border-color 0.35s ease, background 0.35s ease;
}
/* registration corners, drawn rather than defaulted */
.field .corner {
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--mineral);
  opacity: 0.55;
  transition: opacity 0.35s ease, border-color 0.35s ease;
  pointer-events: none;
}
.field .c1 { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.field .c2 { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.field .c3 { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.field .c4 { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.field:hover .corner { opacity: 0.8; }
.field:focus-within .corner { opacity: 1; border-color: var(--ion); }
.field:hover { border-color: var(--graphite-hi); }
.field:focus-within {
  border-color: var(--graphite-focus);
  background: var(--well-focus);
}
.field::after {
  content: "";
  position: absolute; left: -1px; bottom: -1px;
  height: 2px; width: calc(100% + 2px);
  background: linear-gradient(90deg, var(--ion), var(--atmosphere));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-signal);
}
.field:focus-within::after { transform: scaleX(1); }
.field .prompt {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--mineral);
  user-select: none;
  flex-shrink: 0;
  transition: color 0.35s;
}
.field:focus-within .prompt { color: var(--ion); }

input[type="email"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 34px;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 34px;
  color: var(--lunar);
  caret-color: var(--ion);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
input[type="email"]::placeholder { color: var(--placeholder); font-style: normal; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--lunar);
  -webkit-box-shadow: 0 0 0 1000px var(--void) inset;
  transition: background-color 999999s ease-in-out 0s;
}

.register-actions { margin-top: 28px; }
button {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: transparent;
  color: var(--lunar);
  border: 1px solid var(--graphite-hi);
  padding: 17px 26px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: lowercase;
  cursor: pointer; border-radius: 0;
  overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease, letter-spacing 0.4s ease;
}
/* the fill arrives the way a signal does */
button::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ion), var(--ion-deep));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease-signal);
  z-index: 0;
}
button > span { position: relative; z-index: 1; }
button .btn-rule {
  display: block; width: 22px; height: 1px;
  background: currentColor; opacity: 0.5;
  transition: width 0.4s ease, opacity 0.3s ease;
}
button:hover:not(:disabled) {
  color: var(--void); border-color: var(--ion); letter-spacing: 0.26em;
}
button:hover:not(:disabled)::before { transform: scaleX(1); }
button:hover:not(:disabled) .btn-rule { width: 34px; opacity: 1; }
button:focus-visible { outline: 1px solid var(--ion); outline-offset: 3px; }
button:disabled { opacity: 0.4; cursor: default; }
button:disabled::before { transform: scaleX(0); }

.register-error {
  margin-top: 18px; font-size: 17px; font-style: italic; line-height: 1.6;
  border-left: 2px solid var(--ion); padding-left: 14px;
}
.register-error[hidden] { display: none; }
.register-notice {
  margin-top: 18px; font-size: 17px; font-style: italic; line-height: 1.6;
  border-left: 2px solid var(--ion); padding-left: 14px; color: var(--ion);
}
.register-notice[data-state="error"] { color: var(--error); }
.register-notice[hidden] { display: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.fine { margin-top: 22px; font-size: 16px; font-style: italic; color: var(--mineral); }

/* the dispatch scope: the signal leaving, and the next arrival */
.scope {
  display: block;
  width: 100%;
  margin: 4px 0 22px;
  overflow: visible;
}
.scope .axis {
  stroke-dasharray: 440; stroke-dashoffset: 440;
  transition: stroke-dashoffset 0.75s var(--ease-signal) 0.05s;
}
.sent .scope .axis { stroke-dashoffset: 0; }

.scope .notch { opacity: 0; transition: opacity 0.5s ease; }
.sent .scope .notch { opacity: 0.75; }
.sent .scope .n1 { transition-delay: 0.45s; }
.sent .scope .n2 { transition-delay: 0.55s; }
.sent .scope .n3 { transition-delay: 0.65s; }
.sent .scope .n4 { transition-delay: 0.75s; }

.scope .arc {
  stroke-dasharray: 470; stroke-dashoffset: 470;
  transition: stroke-dashoffset 1.5s cubic-bezier(.3,.5,.3,1) 0.6s;
}
.sent .scope .arc { stroke-dashoffset: 0; }

.scope .origin { opacity: 0; transform-origin: 34px 76px; transition: opacity 0.35s ease 0.3s; }
.sent .scope .origin { opacity: 1; }
.scope .origin-ring {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.sent .scope .origin-ring { animation: depart 1.1s ease-out 0.5s 1 forwards; }
@keyframes depart {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(4.2); }
}

.scope .courier {
  opacity: 0;
  offset-rotate: 0deg;
}
.sent .scope .courier { animation: courier 1.5s cubic-bezier(.3,.5,.3,1) 0.6s 1 forwards; }
@keyframes courier {
  0%   { opacity: 0; transform: translate(0, 0); }
  8%   { opacity: 1; }
  25%  { transform: translate(105px, -22px); }
  50%  { transform: translate(210px, -30px); }
  75%  { transform: translate(315px, -22px); }
  92%  { opacity: 1; }
  100% { opacity: 0; transform: translate(420px, 0); }
}

.scope .arrival { opacity: 0; transition: opacity 0.6s ease; }
.sent .scope .arrival { opacity: 1; transition-delay: 2.0s; }
.scope .arrival-ring {
  transform-box: fill-box; transform-origin: center;
  opacity: 0;
}
.sent .scope .arrival-ring { animation: land 1s ease-out 2.1s 1 forwards; }
@keyframes land {
  0%   { opacity: 0; transform: scale(3.4); }
  45%  { opacity: 0.9; }
  100% { opacity: 0; transform: scale(1); }
}

.scope .cap { opacity: 0; transition: opacity 0.6s ease; }
.sent .scope .cap { opacity: 1; }
.sent .scope .cap-a { transition-delay: 0.35s; }
.sent .scope .cap-b { transition-delay: 2.2s; }
/* the dispatch handshake */
.dispatch { list-style: none; margin: 0 0 22px; padding: 0; }
.dispatch li {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mineral);
  padding: 7px 0;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  transition: opacity 0.32s ease, clip-path 0.5s var(--ease-signal), -webkit-clip-path 0.5s var(--ease-signal);
}
.dispatch li.on {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}
.dispatch li .tick {
  width: 16px; height: 1px; background: var(--graphite); flex-shrink: 0;
  transition: background 0.5s;
}
.dispatch li.on .tick { background: var(--ion); }
.dispatch li.final { color: var(--ion-hi); }
.confirmed-line { margin-top: 14px; font-style: italic; font-size: 22px; line-height: 1.5; }
#tx-done:focus { outline: none; }
#tx-done:focus-visible { outline: 1px solid var(--ion); outline-offset: 4px; }

/* ══ footer ══ */
footer { padding: 48px 0 54px; border-top: 1px solid var(--trace); margin-top: 4vh; }
.foot-grid {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 30px; flex-wrap: wrap;
}
.foot-mark { width: 92px; }
.foot-mark svg { width: 100%; height: auto; display: block; }
.foot-mark .bar {
  stroke-dasharray: 140; stroke-dashoffset: 140;
  transition: stroke-dashoffset 1.1s ease 0.2s;
}
.foot-mark.in .bar { stroke-dashoffset: 0; }
.foot-right { position: relative; top: -38px; text-align: right; }
.foot-motto { font-style: italic; font-size: 17px; color: var(--mineral); display: block; margin-bottom: 14px; }
.foot-legal {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; color: var(--mineral);
}
.foot-legal a {
  color: var(--mineral); text-decoration: none;
  border-bottom: 1px solid var(--graphite);
  transition: color 0.3s, border-color 0.3s;
}
.foot-legal a:hover { color: var(--lunar); border-color: var(--mineral); }
.foot-legal a:focus-visible { outline: 1px solid var(--ion); outline-offset: 3px; }
.foot-linkedin {
  position: absolute; right: 0; top: calc(100% + 8px);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; color: var(--ion);
  border: 1px solid var(--ion); border-radius: 2px;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}
.foot-linkedin svg { width: 16px; height: 16px; fill: currentColor; }
.foot-linkedin:hover { color: var(--void); background: var(--ion); border-color: var(--ion); }
.foot-linkedin:focus-visible { outline: 1px solid var(--ion); outline-offset: 3px; }

/* ══ reveal: content resolves rather than slides ══ */
.js .reveal.armed {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  transform: translateX(-10px);
  transition:
    opacity 0.6s ease var(--d, 0s),
    clip-path 0.95s var(--ease-signal) var(--d, 0s),
    -webkit-clip-path 0.95s var(--ease-signal) var(--d, 0s),
    transform 0.8s var(--ease-signal) var(--d, 0s);
}
.js .reveal.armed.in {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
  transform: none;
}

/* resolves from the right, for right-hand columns */
.js .reveal.armed.from-right {
  clip-path: inset(0 0 0 100%);
  -webkit-clip-path: inset(0 0 0 100%);
  transform: translateX(10px);
}
/* the subscription panel is never hidden by the reveal system,
   so the address field is always present regardless of scripting */
.tx-panel { opacity: 1; padding-top: 6px; }

/* opens from the centre outward, for the inscriptions */
.js .reveal.armed.from-centre {
  clip-path: inset(0 50% 0 50%);
  -webkit-clip-path: inset(0 50% 0 50%);
  transform: none;
  transition:
    opacity 0.8s ease var(--d, 0s),
    clip-path 1.5s var(--ease-signal) var(--d, 0s),
    -webkit-clip-path 1.5s var(--ease-signal) var(--d, 0s);
}

/* a resolving edge that travels with the wipe on major elements */
/* these must come after the directional rules above, or equal
   specificity leaves them clipped forever */
.js .reveal.armed.from-right.in,
.js .reveal.armed.from-centre.in {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
  transform: none;
}

.js .reveal.edged { position: relative; }
.js .reveal.edged::after {
  content: "";
  position: absolute; top: -4%; bottom: -4%;
  width: 1px; left: 0;
  background: linear-gradient(180deg, transparent, var(--ion), transparent);
  opacity: 0;
  pointer-events: none;
}
.js .reveal.edged.in::after {
  animation: resolveEdge 0.8s var(--ease-signal) var(--d, 0s) forwards;
}
@keyframes resolveEdge {
  0%   { left: 0; opacity: 0; }
  12%  { opacity: 0.85; }
  88%  { left: 100%; opacity: 0.5; }
  100% { left: 100%; opacity: 0; }
}

/* movements use display:contents for the grid, so the parts resolve
   individually. Never observe a display:contents element, it has no box. */
.js .movement { display: contents; }
.js .kicker.reveal { --d: 0s; }
.js p.body.reveal { --d: 0.22s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.from-right,
  .js .reveal.from-centre,
  .js .movement .kicker,
  .js .movement p.body {
    opacity: 1;
    clip-path: none;
    -webkit-clip-path: none;
    transform: none;
    transition: none;
  }
  .js .reveal.edged.in::after { animation: none; opacity: 0; }
  .pillar-mark::after { transform: scaleX(1); transition: none; }
  .dispatch li { opacity: 1; clip-path: none; -webkit-clip-path: none; transition: none; }
  .field::after { transform: scaleX(1); transition: none; }
  .scope .axis, .scope .arc { stroke-dashoffset: 0; transition: none; }
  .scope .notch, .scope .origin, .scope .arrival, .scope .cap { opacity: 1; transition: none; }
  .scope .courier, .scope .origin-ring, .scope .arrival-ring { animation: none; opacity: 0; }
  button::before { transition: none; }
  .interval .seg { animation: none; stroke-dashoffset: 0; }
  .interval .tick { animation: none; opacity: 0.7; }
  .cadence i { animation: none; opacity: 1; }
  .pillar-glyph .gline, .divider .dseg, .foot-mark .bar, .hero-field .ligature .bar { stroke-dashoffset: 0; transition: none; }
  .pillar-glyph .gnode, .hero-field .marker { opacity: 1; transition: none; }
  .progress-rail .fill { transition: none; }
  .tx-contour .pc, .cadence-strip .sweep { stroke-dashoffset: 0; transition: none; }
  .cadence-strip .pip { opacity: 1; transition: none; }
  .tx-horizon { transform: scaleX(1); transition: none; }
  .tx-monument { opacity: 0.05; transition: none; }
  .tx-monument .bar { stroke-dashoffset: 0; transition: none; }
  .tx-eyebrow .rule { transform: scaleX(1); transition: none; }
  .hero-field .measure { transform: scaleX(1); transition: none; }
  .interval .seg { stroke-dashoffset: 0; transition: none; }
  .interval .tick { opacity: 0.7; transition: none; }

  .js .wordmark .veil, .js .wordmark .edge { display: none; }
  .js .hero-left > .reveal, .js .hero-field.reveal { transition-delay: 0s; }
  html { scroll-behavior: auto; }
}

/* ══ responsive ══ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 6vh; padding-top: 120px; min-height: auto; padding-bottom: 10vh; }
  .hero-field { height: 300px; order: 2; }
  .argument-grid, .pillars-head { grid-template-columns: 1fr; gap: 0; }
  .kicker { grid-column: 1; margin-top: 3em; }
  .argument-grid p.body { grid-column: 1; margin-top: 0.8em; border-top: none; padding-top: 0; }
  .movement:first-child p.body { margin-top: 0.8em; }
  .pillar { grid-template-columns: 1fr; gap: 26px; }
  .pillar:nth-child(even) .pillar-media { order: 0; }
  .pillar-media { flex-direction: row; justify-content: center; gap: 26px; }
  .pillar-mark { font-size: 58px; }
  .pillar-glyph { width: 150px; }
  .index a.tx-link { display: none; }
  .index-gap { display: none; }
  .tx-grid { grid-template-columns: 1fr; gap: 6vh; }
  .tx-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .tx-panel { padding-top: 0; }
  .tx-mark { white-space: normal; flex-wrap: wrap; }
  .register { position: static; }
  .tx-contour { opacity: 0.3; }
  /* stacked layout: no panel to frame, so clear the header normally */
  #transmission { scroll-margin-top: 96px; }
  .transmission { padding: 9vh 0 max(160px, 13vh); }
  .tx-monument { width: 150%; top: 40%; }
  .tx-horizon { bottom: 96px; }
  .tx-signal { bottom: 22px; }
  .foot-grid { justify-content: center; text-align: center; }
  .foot-right { text-align: center; }
}
@media (max-width: 600px) {
  body { font-size: 19px; }
  .argument-grid p.body { font-size: 19px; }
  .argument-grid p.lede { font-size: 20px; }
  .pillar { padding: 52px 0; }
  .header-inner { padding: 16px 0 14px; }
  .header-mark svg { height: 16px; }
  .index a { padding: 8px 6px; }
  .pillar-def { font-size: 19px; }
  .pillar-word { font-size: 14px; letter-spacing: 0.22em; }
  .transmission .what { font-size: 19px; }
  .label { font-size: 11px; }
}
