/* ==========================================================================
   Fratrum — style.css
   Design tokens → base → layout → components → sections → utilities
   Brand reference: docs/BRANDBOOK.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Ink — the ground */
  --ink-950: #0A0B0E;
  --ink-900: #0F1114;
  --ink-800: #15181D;
  --ink-700: #1F2329;
  --ink-600: #2C313A;
  --ink-500: #4C525D;
  --ink-400: #7C8391;

  /* Ivory — the voice */
  --ivory-50:  #FAF8F3;
  --ivory-100: #F4F0E8;
  --ivory-200: #E6E0D3;
  --ivory-400: #B8B1A2;
  --ivory-600: #8D8778;

  /* Brass — the signature */
  --brass-200: #EEDFB4;
  --brass-300: #E2CC8E;
  --brass-400: #D4B86C;
  --brass-500: #C6A55A;
  --brass-600: #A98A47;
  --brass-700: #7F6733;

  /* Portfolio accents — one hue per company */
  --c-allora:   #F08A6E;
  --c-navyav:   #5FB6CF;
  --c-rolepick: #9C8EF6;
  --c-next:     #C6A55A;

  /* Semantic */
  --bg:          var(--ink-950);
  --surface:     var(--ink-900);
  --surface-2:   var(--ink-800);
  --text:        var(--ivory-100);
  --text-2:      var(--ivory-400);
  --text-3:      var(--ink-400);
  --line:        rgba(244, 240, 232, 0.10);
  --line-strong: rgba(244, 240, 232, 0.20);
  --accent:      var(--brass-500);
  --accent-hi:   var(--brass-300);

  /* Type */
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --text-display-xl: clamp(3.25rem, 2.1rem + 6.4vw, 8.25rem);
  --text-display-lg: clamp(2.5rem, 1.8rem + 3.2vw, 4.75rem);
  --text-display-md: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --text-lede:       clamp(1.0625rem, 1rem + 0.45vw, 1.375rem);
  --text-body:       1.0625rem;
  --text-small:      0.9375rem;
  --text-label:      0.75rem;

  /* Layout */
  --container: 80rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);

  /* Shape */
  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.2s;
  --dur: 0.45s;
  --dur-slow: 0.9s;

  /* Header */
  --header-h: 4.5rem;
}

/* The brand is dark-first. Light-scheme devices get the same canvas. */
@media (prefers-color-scheme: light) {
  :root { color-scheme: dark; }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
}

/* Film grain — a static overlay that takes the flatness out of pure black */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

::selection { background: var(--brass-500); color: var(--ink-950); }

img, svg, video { display: block; max-width: 100%; height: auto; }
svg { height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ivory-50); }

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

h1, h2, h3, h4 { font-weight: 400; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
em { font-style: italic; }

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

@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;
  }
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  gap: 1.25rem;
  max-width: 58rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

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

.skip-link {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--ivory-100);
  color: var(--ink-950);
  border-radius: var(--radius-pill);
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform var(--dur-fast);
}
.skip-link:focus { transform: none; }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-400);
  flex-wrap: wrap;
  row-gap: 0.35rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.eyebrow--plain::before { display: none; }

.title {
  font-family: var(--font-display);
  font-size: var(--text-display-lg);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.title em { color: var(--brass-300); }

.lede {
  font-size: var(--text-lede);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 46ch;
  text-wrap: pretty;
}

.prose p { color: var(--text-2); max-width: 62ch; }
.prose p + p { margin-top: 1.25rem; }
.prose em { color: var(--ivory-100); font-family: var(--font-display); font-size: 1.12em; }
.prose h2 { font-family: var(--font-display); font-size: var(--text-display-md); margin: 3rem 0 1rem; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: none; color: var(--text-2); max-width: 62ch; }
.prose li { position: relative; padding-left: 1.5rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.5rem; height: 1px; background: var(--brass-500); }
.prose a { color: var(--ivory-100); border-bottom: 1px solid var(--line-strong); transition: border-color var(--dur-fast); }
.prose a:hover { border-color: var(--brass-400); }

.mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast),
    transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn__arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--ivory-100); color: var(--ink-950); }
.btn--primary:hover { background: var(--brass-300); color: var(--ink-950); }

.btn--ghost { border-color: var(--line-strong); color: var(--ivory-100); }
.btn--ghost:hover { border-color: var(--ivory-100); background: rgba(244, 240, 232, 0.05); }

.btn--sm { padding: 0.65rem 1.05rem; font-size: 0.875rem; }

/* Brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ivory-100);
  line-height: 1;
}
.brand__mark { width: 34px; height: 34px; flex: none; object-fit: contain; }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  transform: translateY(-1px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--dur), border-color var(--dur), height var(--dur), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header.is-scrolled {
  height: 3.75rem;
  background: rgba(10, 11, 14, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav a {
  position: relative;
  font-size: var(--text-small);
  color: var(--text-2);
  padding: 0.35rem 0;
  transition: color var(--dur-fast);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.site-nav a:hover { color: var(--ivory-100); }
.site-nav a:hover::after { transform: scaleX(1); }

.header__cta { display: inline-flex; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-100);
  padding: 0.5rem 0;
}
.nav-toggle__icon {
  position: relative;
  width: 22px; height: 12px;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon::after { top: 10px; }
.nav-open .nav-toggle__icon::before { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle__icon::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 47.99rem) {
  .header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 var(--gutter) 10vh;
    background: var(--ink-950);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .site-nav a {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 12vw, 4rem);
    line-height: 1.1;
    color: var(--ivory-100);
    letter-spacing: -0.02em;
  }
  .site-nav a::after { display: none; }
  .site-nav .site-nav__cta {
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: var(--text-label);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass-400);
  }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: var(--ink-950); }
  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s;
  }
}
@media (min-width: 48rem) {
  .site-nav__cta { display: none; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c, var(--brass-500));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--brass-500)) 22%, transparent);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 82% 18%, rgba(198, 165, 90, 0.16), transparent 62%),
    radial-gradient(45% 40% at 8% 92%, rgba(95, 182, 207, 0.07), transparent 62%),
    linear-gradient(180deg, var(--ink-950) 0%, var(--ink-950) 70%, var(--ink-900) 100%);
}
/* faint architectural grid */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(244, 240, 232, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 240, 232, 0.035) 1px, transparent 1px);
  background-size: 6rem 6rem;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: end;
}
@media (min-width: 64rem) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-display-xl);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 1.5rem 0 1.75rem;
  max-width: 11ch;
  text-wrap: balance;
}
.hero__title em { color: var(--brass-300); }

.hero__lede { margin-bottom: 2.25rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__emblem {
  position: relative;
  width: clamp(9rem, 24vw, 22rem);
  aspect-ratio: 1;
  justify-self: start;
  margin-top: 2.5rem;
  --px: 0px; --py: 0px;
  transform: translate(var(--px), var(--py));
  transition: transform 0.6s var(--ease-out), opacity var(--dur-slow) var(--ease-out);
}
@media (min-width: 64rem) {
  .hero__emblem { justify-self: end; margin-top: 0; }
}
.hero__emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: floaty 9s var(--ease-in-out) infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}
.hero__emblem::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(198, 165, 90, 0.20), transparent 70%);
  animation: breathe 7s var(--ease-in-out) infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(3rem, 8vh, 6rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.definition {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  color: var(--text-3);
  font-size: var(--text-small);
}
.definition__word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ivory-100);
  letter-spacing: 0.01em;
}
.definition__meaning { color: var(--ivory-200); }
.definition__meaning em { font-family: var(--font-display); font-size: 1.1em; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-cue::after {
  content: "";
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--brass-400), transparent);
  animation: cue 2.4s var(--ease-in-out) infinite;
  transform-origin: left;
}
@keyframes cue {
  0% { transform: scaleX(0); opacity: 0; }
  40% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* --------------------------------------------------------------------------
   7. Ticker
   -------------------------------------------------------------------------- */
.ticker {
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex;
  align-items: center;
  flex: none;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  color: var(--ivory-200);
  white-space: nowrap;
}
.ticker__item::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass-500);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   8. Portfolio — an index, not a grid of cards
   -------------------------------------------------------------------------- */
.products {
  list-style: none;
  border-top: 1px solid var(--line);
  counter-reset: product;
}

.product {
  --c: var(--brass-500);
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.product::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.6);
  z-index: -1;
  border-radius: var(--radius);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 12%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity var(--dur);
}
.product:hover::before,
.product:focus-within::before { opacity: 1; }

.product__index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-3);
  padding-top: 0.55rem;
}

.product__name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ivory-100);
  transition: transform var(--dur) var(--ease-out), color var(--dur);
}
.product:hover .product__name { transform: translateX(0.3rem); }
.product__name em { color: var(--text-2); }

.product__tag {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c);
}

.product__desc {
  grid-column: 2;
  color: var(--text-2);
  max-width: 44ch;
  text-wrap: pretty;
}

.product__cta {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.product__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--ivory-100);
}
/* Whole row is the link target */
.product__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product__link .btn__arrow { color: var(--c); }
.product__link:hover .btn__arrow { transform: translate(2px, -2px); }

.product--next .product__name { color: var(--text-2); }
.product--next .product__name em { color: var(--brass-300); }

@media (min-width: 48rem) {
  .product {
    grid-template-columns: 3rem minmax(0, 1.05fr) minmax(0, 1.25fr) auto;
    gap: 1rem 2rem;
    align-items: start;
    padding: 2.25rem 0;
  }
  .product__index { padding-top: 0.9rem; }
  .product__desc { grid-column: auto; padding-top: 0.75rem; }
  .product__cta { grid-column: auto; justify-self: end; align-self: center; }
}

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}
@media (min-width: 64rem) {
  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem 6rem; }
  .about__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.about__aside .title { margin-top: 1.25rem; }

.principles {
  list-style: none;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.principle {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.principle__n {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--brass-400);
  padding-top: 0.45rem;
}
.principle h3 {
  font-family: var(--font-display);
  font-size: var(--text-display-md);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.principle p { color: var(--text-2); max-width: 52ch; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.5rem 2rem;
  margin: 3rem 0 0;
}
.fact { display: grid; gap: 0.5rem; }
.fact dt {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   10. Contact
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 64rem) {
  .contact__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem 6rem; align-items: end; }
}
.contact__email {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 4.2vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ivory-100);
  background-image: linear-gradient(var(--brass-400), var(--brass-400));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size var(--dur-slow) var(--ease-out), color var(--dur);
  overflow-wrap: anywhere;
}
.contact__email:hover { background-size: 100% 2px; color: var(--ivory-50); }

.contact__aside p { color: var(--text-2); }
.contact__list {
  list-style: none;
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.contact__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.contact__list .name { font-family: var(--font-display); font-size: 1.35rem; }
.contact__list a.name { transition: color var(--dur-fast); }
.contact__list a.name:hover { color: var(--brass-300); }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 4rem;
  font-size: var(--text-small);
  color: var(--text-3);
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; }
}
.footer__tagline { margin-top: 1rem; max-width: 30ch; }
.footer__heading {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; display: grid; gap: 0.5rem; }
.footer__col a { color: var(--ivory-200); transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--brass-300); }
.footer__col .muted { color: var(--text-3); }

.footer__legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.6;
}
@media (min-width: 48rem) {
  .footer__legal { grid-template-columns: auto minmax(0, 1fr); gap: 1rem 3rem; }
}
.footer__legal a { color: var(--ivory-200); }
.footer__legal a:hover { color: var(--brass-300); }

.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 19rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
  color: var(--ink-800);
  text-align: center;
  margin-top: 2.5rem;
  transform: translateY(0.12em);
  user-select: none;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   12. Simple pages (privacy, 404)
   -------------------------------------------------------------------------- */
.page {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 6rem));
  padding-bottom: var(--section-y);
}
.page__head { margin-bottom: clamp(2rem, 5vw, 4rem); max-width: 58rem; display: grid; gap: 1.25rem; }
.page__meta { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

.error {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-top: var(--header-h);
  padding-bottom: 4rem;
  text-align: left;
}
.error__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 25vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink-700);
}
.error .title { margin-top: 1rem; }
.error .lede { margin-top: 1.25rem; }
.error__actions { margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   13. Print
   -------------------------------------------------------------------------- */
@media print {
  body::after, .site-header, .ticker, .scroll-cue, .footer__wordmark { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
