/* ==========================================================================
   Ron Nero — personal site
   Concept: "the working file" — a document that shows its own craft.
   Registration marks, chapter rail, ghost numerals, grid on demand (press G).
   Type: Fraunces (display) · Source Serif 4 (body) · JetBrains Mono (labels)
   ========================================================================== */

:root {
  --ink: #101014;
  --ink-soft: #1b1b21;
  --paper: #faf9f6;
  --paper-dim: #f1efe9;
  --signal: #2450d8;
  --signal-deep: #1d3fae;
  --signal-bright: #7a9bff;
  --ok: #1b7f4b;
  --line: rgba(16, 16, 20, 0.14);
  --line-faint: rgba(16, 16, 20, 0.07);
  --line-inv: rgba(250, 249, 246, 0.16);
  --muted: rgba(16, 16, 20, 0.62);
  --muted-inv: rgba(250, 249, 246, 0.66);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;

  --type-hero: clamp(2.6rem, 7vw, 6.5rem);
  --type-h2: clamp(1.9rem, 4.2vw, 3.5rem);
  --type-h3: clamp(1.3rem, 2vw, 1.75rem);
  --type-body: 1.125rem;
  --type-label: 0.75rem;

  --gutter: clamp(1.5rem, 5vw, 5rem);
  --section: clamp(5rem, 11vw, 9rem);
  --container: 74rem;
  --frame: clamp(0.6rem, 1.2vw, 1.1rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

svg { display: block; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

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

.dark :focus-visible { outline-color: var(--signal-bright); }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 300;
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--type-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

/* ==========================================================================
   THE ARTIFACT LAYER — registration frame, grain, grid overlay
   ========================================================================== */

/* Corner registration ticks + coordinates. The page as a printed proof. */
.reg {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.reg::before,
.reg::after {
  content: "";
  position: absolute;
  background: var(--ink);
  opacity: 0.5;
}

.reg::before { width: 1px; height: 14px; }
.reg::after { width: 14px; height: 1px; }

.reg--tl { top: var(--frame); left: var(--frame); }
.reg--tl::before, .reg--tl::after { top: 0; left: 0; }

.reg--tr { top: var(--frame); right: var(--frame); }
.reg--tr::before { top: 0; right: 0; }
.reg--tr::after { top: 0; right: 0; }

.reg--bl { bottom: var(--frame); left: var(--frame); }
.reg--bl::before { bottom: 0; left: 0; }
.reg--bl::after { bottom: 0; left: 0; }

.reg--br { bottom: var(--frame); right: var(--frame); }
.reg--br::before { bottom: 0; right: 0; }
.reg--br::after { bottom: 0; right: 0; }

.reg--bl span {
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  white-space: nowrap;
  background: var(--paper);
  box-shadow: 0 0 0 5px var(--paper);
}

.reg--br span {
  position: absolute;
  bottom: 0;
  right: 1.5rem;
  white-space: nowrap;
  background: var(--paper);
  box-shadow: 0 0 0 5px var(--paper);
}

@media (max-width: 47.9rem) {
  .reg--bl span, .reg--br span { display: none; }
}

/* Paper grain — barely there */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The designer's grid — press G */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
  display: none;
  padding-inline: var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
}

body.show-grid .grid-overlay { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }

.grid-overlay i {
  background: rgba(36, 80, 216, 0.06);
  border-inline: 1px solid rgba(36, 80, 216, 0.14);
}

body.show-grid::after {
  content: "grid: on — press G to hide";
  position: fixed;
  bottom: calc(var(--frame) + 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 210;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal-deep);
  background: var(--paper);
  border: 1px solid var(--signal);
  padding: 0.45rem 0.9rem;
}

/* ==========================================================================
   CHROME — header + chapter rail
   ========================================================================== */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

.dark {
  background: var(--ink);
  color: var(--paper);
}

.label {
  font-family: var(--font-mono);
  font-size: var(--type-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem calc(var(--frame) + 1.25rem);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* A clock, because this site lives where I do. */
.clock {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 35rem) {
  .clock { display: none; }
}

/* Chapter rail — the site's own table of contents, always in the margin */
.rail {
  position: fixed;
  left: calc(var(--frame) + 0.4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: none;
}

@media (min-width: 78rem) {
  .rail { display: block; }
}

.rail ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rail a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  opacity: 0.55;
  transition: opacity 200ms ease, color 200ms ease;
  padding: 0.1rem 0;
}

.rail a .no { font-size: 0.58rem; }

.rail a .name {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 350ms var(--ease);
}

.rail a:hover .name,
.rail a.active .name { max-width: 12rem; }

.rail a:hover { opacity: 1; }

.rail a.active {
  opacity: 1;
  color: var(--signal-deep);
}

.rail a.active .no::after { content: " —"; }

/* Dark-section awareness */
body.rail-inverted .rail a { color: var(--muted-inv); }
body.rail-inverted .rail a.active { color: var(--signal-bright); }

/* ==========================================================================
   TYPE COMPONENTS
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--type-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--signal-deep);
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

.dark .eyebrow { color: var(--signal-bright); }

/* Chapter head: hairline rule, № left, running title right — like a folio */
.chapter {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
  font-family: var(--font-mono);
  font-size: var(--type-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chapter .no { color: var(--signal-deep); }
.chapter .running { color: var(--muted); }

.dark .chapter { border-top-color: var(--line-inv); }
.dark .chapter .no { color: var(--signal-bright); }
.dark .chapter .running { color: var(--muted-inv); }

/* Ghost numeral — cropped, outlined, behind the section head */
.has-ghost {
  position: relative;
}

.has-ghost::before {
  content: attr(data-no);
  position: absolute;
  top: -0.12em;
  right: -0.05em;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(9rem, 22vw, 19rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-faint);
  pointer-events: none;
  user-select: none;
}

.dark.has-ghost::before,
.dark .has-ghost::before {
  -webkit-text-stroke-color: rgba(250, 249, 246, 0.07);
}

.has-ghost > * { position: relative; z-index: 1; }

h2 {
  font-family: var(--font-display);
  font-size: var(--type-h2);
  font-weight: 620;
  font-variation-settings: "opsz" 90;
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 21ch;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.lede {
  max-width: 40rem;
  margin-top: 1.4rem;
  color: var(--muted);
}

.dark .lede { color: var(--muted-inv); }

/* Margin note — the author talking to you in the margin */
.margin-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--muted);
  max-width: 15rem;
}

.margin-note::before {
  content: "";
  display: block;
  width: 1.4rem;
  height: 1px;
  background: var(--signal);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-mono);
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  overflow: hidden;
  z-index: 1;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); }

.btn:hover,
.btn:focus-visible {
  color: var(--paper);
  border-color: var(--signal);
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.dark .btn { border-color: var(--paper); color: var(--paper); }
.dark .btn::before { background: var(--signal-bright); }
.dark .btn:hover,
.dark .btn:focus-visible { color: var(--ink); border-color: var(--signal-bright); }

.btn svg { width: 0.9rem; height: 0.9rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ==========================================================================
   §00 HERO
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100dvh;
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--type-hero);
  font-weight: 640;
  font-variation-settings: "opsz" 144;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 15ch;
}

.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

.hero h1 .word > span {
  display: inline-block;
  transform: translateY(115%);
  animation: rise 750ms var(--ease) forwards;
}

.hero h1 .accent {
  color: var(--signal-deep);
  font-style: italic;
}

@keyframes rise {
  to { transform: translateY(0); }
}

/* Sub + portrait sit as an editorial spread */
.hero-cols {
  display: grid;
  gap: 2rem;
  margin-top: 2.25rem;
  align-items: end;
}

@media (min-width: 64rem) {
  .hero-cols {
    grid-template-columns: minmax(0, 42rem) 1fr;
    gap: 4rem;
  }

  .hero-cols .hero-aside {
    justify-self: end;
  }
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}

/* The author, clipped into the file like a contact print */
.portrait .shot {
  position: relative;
  display: inline-block;
}

.portrait img {
  display: block;
  width: clamp(8.5rem, 14vw, 11.5rem);
  height: auto;
  border: 1px solid var(--line);
  filter: contrast(1.03) saturate(0.94);
}

.portrait .shot::before,
.portrait .shot::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  opacity: 0.55;
}

.portrait .shot::before {
  top: -7px;
  left: -7px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.portrait .shot::after {
  bottom: -7px;
  right: -7px;
  border-bottom: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

.portrait figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-sub {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--muted);
}

.hero .btn-row { margin-top: 2.4rem; }

.telemetry {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 1.2em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telemetry .caret {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 2px;
  background: var(--signal);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ==========================================================================
   §01 PROOF — asymmetric editorial spread, not a stat grid
   ========================================================================== */

.proof {
  border-block: 1px solid var(--line);
  background: var(--paper-dim);
}

.stats-spread {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .stats-spread {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "feat feat a"
      "feat feat b"
      "c    d    e";
  }

  .stat--feature { grid-area: feat; }
}

.stat {
  background: var(--paper);
  padding: 2rem 1.9rem 1.8rem;
  position: relative;
}

.stat .label { color: var(--signal-deep); }

.stat .num {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 100;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 30ch;
}

.stat--feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.4rem 2.2rem 2.2rem;
}

.stat--feature .num {
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-block: 1.5rem;
}

.stat--feature .num em {
  font-style: italic;
  color: var(--signal-deep);
}

.stat--feature p {
  font-size: 1.05rem;
  max-width: 34ch;
}

.stat .aside {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--signal-deep);
}

/* ==========================================================================
   §02 OPERATING SYSTEM
   ========================================================================== */

.principles {
  list-style: none;
  counter-reset: principle;
  max-width: 58rem;
}

.principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2.25rem;
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}

.principles li:last-child { border-bottom: 1px solid var(--line); }

/* each principle steps right — the eye walks down the page */
@media (min-width: 64rem) {
  .principles li:nth-child(2) { margin-left: 4rem; }
  .principles li:nth-child(3) { margin-left: 8rem; }
}

.principles .num {
  font-family: var(--font-mono);
  font-size: var(--type-label);
  letter-spacing: 0.18em;
  color: var(--signal-deep);
  padding-top: 0.65rem;
}

.principles h3 {
  font-family: var(--font-display);
  font-size: var(--type-h3);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}

.principles p {
  max-width: 56ch;
  color: var(--muted);
}

/* ==========================================================================
   §03 CAREER — meta column | content column, like an editor's spread
   ========================================================================== */

.timeline { list-style: none; }

.timeline > li {
  display: grid;
  gap: 0.75rem 3rem;
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.timeline > li:last-of-type { border-bottom: 1px solid var(--line); }

@media (min-width: 64rem) {
  .timeline > li {
    grid-template-columns: 15rem 1fr;
  }
}

.timeline .meta {
  font-family: var(--font-mono);
  font-size: var(--type-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-deep);
  line-height: 2;
}

.timeline .meta .loc {
  display: block;
  color: var(--muted);
}

.timeline .company {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 620;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.timeline .role {
  margin-top: 0.3rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
}

.timeline ul {
  list-style: none;
  margin-top: 1.1rem;
  max-width: 60ch;
}

.timeline ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-top: 0.55rem;
  font-size: 1.02rem;
  color: var(--muted);
}

.timeline ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.55rem;
  height: 1px;
  background: var(--signal);
}

.timeline ul li strong {
  color: var(--ink);
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--muted);
}

.timeline .side-quest .company {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--muted);
  font-style: italic;
}

.edu-row {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
}

.edu-row div { max-width: 20rem; }
.edu-row .label { color: var(--signal-deep); }

.edu-row p {
  margin-top: 0.4rem;
  font-size: 1rem;
  line-height: 1.5;
}

.edu-row p small {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   §04 WAR ROOM
   ========================================================================== */

.log {
  list-style: none;
  font-family: var(--font-mono);
  max-width: 54rem;
  border: 1px solid var(--line-inv);
}

.log li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.3rem 1.6rem;
  font-size: 0.92rem;
  line-height: 1.65;
  border-top: 1px solid var(--line-inv);
}

.log li:first-child { border-top: 0; }

.log .t {
  color: var(--signal-bright);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding-top: 0.2em;
  white-space: nowrap;
}

.log p { color: var(--muted-inv); }

.log p strong {
  color: var(--paper);
  font-weight: 500;
}

@media (max-width: 47.9rem) {
  .log li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

.warroom-close {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.warroom-close em {
  font-style: italic;
  color: var(--signal-bright);
}

/* ==========================================================================
   §05 CHANGELOG
   ========================================================================== */

.changelog-list {
  list-style: none;
  font-family: var(--font-mono);
  border-top: 1px solid var(--line);
  max-width: 56rem;
}

.changelog-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  padding: 1.05rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.changelog-list .ver {
  color: var(--signal-deep);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-top: 0.15em;
}

.changelog-list p {
  line-height: 1.55;
  color: var(--ink);
}

.changelog-list p small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.changelog details { max-width: 56rem; }

.changelog summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--type-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-deep);
  min-height: 44px;
}

.changelog summary::-webkit-details-marker { display: none; }

.changelog summary:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.changelog summary svg {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 220ms var(--ease);
}

.changelog details[open] summary svg { transform: rotate(45deg); }

.changelog details[open] summary .more-label::after {
  content: " (collapse)";
  text-transform: none;
  letter-spacing: 0.05em;
}

.compile-note {
  margin-top: 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ==========================================================================
   §06 BEYOND
   ========================================================================== */

.facets {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 64rem) {
  .facets { grid-template-columns: repeat(3, 1fr); }
}

.facet {
  background: var(--paper);
  padding: 2.5rem 2.25rem;
  transition: background 250ms ease;
}

.facet:hover { background: var(--paper-dim); }

.facet .label { color: var(--signal-deep); }

.facet h3 {
  font-family: var(--font-display);
  font-size: var(--type-h3);
  font-weight: 620;
  line-height: 1.12;
  margin-top: 0.9rem;
}

.facet p {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--muted);
}

.facet p + p { margin-top: 0.75rem; }

.facet a {
  color: var(--signal-deep);
  text-underline-offset: 3px;
}

/* ==========================================================================
   §07 QUOTES — asymmetric, two voices at two volumes
   ========================================================================== */

.quotes {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 64rem) {
  .quotes { grid-template-columns: 7fr 5fr; }

  .quotes blockquote:nth-child(2) {
    margin-top: 6rem;
  }
}

.quotes blockquote {
  border-top: 1px solid var(--line-inv);
  padding-top: 2rem;
}

.quotes blockquote:first-child p {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
}

.quotes blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.quotes cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: var(--type-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-inv);
}

/* ==========================================================================
   §08 CONTACT
   ========================================================================== */

.contact h2 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 640;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
}

.contact .lede { max-width: 38rem; }

.contact-rows {
  list-style: none;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  max-width: 56rem;
}

.contact-rows li { border-bottom: 1px solid var(--line); }

.contact-rows a,
.contact-rows .row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2.5rem;
  padding: 1.35rem 0.25rem;
  text-decoration: none;
  transition: background 200ms ease, padding-left 250ms var(--ease);
}

.contact-rows a:hover {
  background: var(--paper-dim);
  padding-left: 1rem;
}

.contact-rows .label {
  width: 7.5rem;
  color: var(--signal-deep);
  flex-shrink: 0;
}

.contact-rows .val {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 560;
  letter-spacing: -0.01em;
}

.contact-rows a .val {
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: background-size 250ms var(--ease);
}

.contact-rows a:hover .val { background-size: 100% 1px; }

.contact-rows svg {
  width: 0.95rem;
  height: 0.95rem;
  margin-left: auto;
  align-self: center;
  color: var(--muted);
}

/* ==========================================================================
   COLOPHON — a designer signs their work
   ========================================================================== */

.colophon {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem calc(var(--frame) + 2.25rem);
}

.colophon .fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   MOTION
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero h1 .word > span {
    transform: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .status-dot,
  .telemetry .caret {
    animation: none;
  }
}
