/* ============================================================
   OTENRA — Design System
   Build beyond the known.
   ------------------------------------------------------------
   Single-theme (near-black), token-driven, dependency-free.
   ============================================================ */

/* ---------- Font ---------- */

@font-face {
  font-family: "Inter Var";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* Color — Obsidian / Ivory / Stone / Champagne Gold / Graphite */
  --bg: #0b0b0d;
  --bg-raised: #131417;
  --bg-panel: rgba(243, 241, 235, 0.028);
  --bg-panel-strong: rgba(243, 241, 235, 0.05);
  --ink: #f3f1eb;
  --ink-secondary: #c9c5bb;
  --muted: #a69f92;
  --faint: #6f6b63;            /* decorative only — not for meaningful text */
  --line: rgba(243, 241, 235, 0.12);
  --line-soft: rgba(243, 241, 235, 0.065);
  --accent: #c8a774;
  --accent-dim: rgba(200, 167, 116, 0.55);
  --accent-soft: rgba(200, 167, 116, 0.1);

  /* Type */
  --font-sans: "Inter Var", Inter, ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  --text-hero: clamp(3.3rem, 9vw, 7.8rem);
  --text-h2: clamp(2.1rem, 4.8vw, 4.1rem);
  --text-h3: clamp(1.25rem, 2vw, 1.5rem);
  --text-lede: clamp(1.08rem, 1.8vw, 1.32rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-label: 0.72rem;

  /* Layout */
  --max: 1240px;
  --max-narrow: 860px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(96px, 14vw, 176px);
  --radius: 20px;
  --radius-sm: 12px;

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

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0 0 1.2em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

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

/* ---------- Utility ---------- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2 * var(--gutter), var(--max-narrow));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--text-small);
  font-weight: 500;
  transform: translateY(-260%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Ambient background ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-light {
  position: absolute;
  top: -38vh;
  left: 50%;
  width: 130vmax;
  height: 90vh;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 50% 60% at 50% 0%,
    rgba(200, 167, 116, 0.075),
    transparent 70%
  );
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 60%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    transparent 60%
  );
}

/* Film grain — keeps large dark surfaces from banding */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.028;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 11, 13, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.brand-mark {
  width: 27px;
  height: 27px;
  color: var(--accent);
  flex: none;
}

.brand-wordmark {
  height: 13px;
  width: auto;
  color: var(--ink);
  flex: none;
}

.brand-wordmark .wm-dot {
  fill: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.88rem;
}

.site-nav a:not(.nav-cta) {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:not(.nav-cta):hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  border-color: rgba(243, 241, 235, 0.32);
  background: var(--bg-panel-strong);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle-bars {
  position: relative;
  width: 16px;
  height: 10px;
  flex: none;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle-bars::before {
  top: 0;
}

.nav-toggle-bars::after {
  top: 8.5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* ---------- Labels / eyebrows ---------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-dim);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(96px, 15vh, 170px) 0 clamp(72px, 10vh, 130px);
}

.hero-inner {
  position: relative;
}

.hero h1 {
  margin: 30px 0 34px;
  max-width: 12ch;
  font-size: var(--text-hero);
  font-weight: 480;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero h1 .dim {
  color: var(--muted);
}

.hero-copy {
  max-width: 56ch;
  color: var(--ink-secondary);
  font-size: var(--text-lede);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.hero-figure {
  position: absolute;
  top: 50%;
  right: -40px;
  width: clamp(280px, 30vw, 430px);
  transform: translateY(-52%);
  color: var(--accent);
  opacity: 0.85;
  pointer-events: none;
}

.hero-figure .figure-ring,
.hero-figure .figure-axis {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2.4s var(--ease) 0.35s forwards;
}

.hero-figure .figure-axis {
  animation-delay: 1s;
  animation-duration: 1.6s;
}

.hero-figure .figure-origin {
  opacity: 0;
  animation: appear 0.9s ease 2.1s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes appear {
  to {
    opacity: 1;
  }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  margin-top: clamp(64px, 9vh, 110px);
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.button:active {
  transform: scale(0.98);
}

.button--primary {
  background: var(--ink);
  color: var(--bg);
}

.button--primary:hover {
  background: #ffffff;
}

.button--ghost {
  border: 1px solid var(--line);
  color: var(--ink-secondary);
}

.button--ghost:hover {
  border-color: rgba(243, 241, 235, 0.34);
  color: var(--ink);
}

.button .arrow {
  transition: transform 0.25s var(--ease);
}

.button:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Sections ---------- */

.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 40px 64px;
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-heading h2 {
  font-size: var(--text-h2);
  letter-spacing: -0.04em;
  line-height: 1.04;
  max-width: 20ch;
}

/* Statement */

.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.65fr);
  gap: 48px 88px;
  align-items: start;
  margin-top: 38px;
}

.statement-grid h2 {
  font-size: var(--text-h2);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 21ch;
}

.statement-copy {
  color: var(--muted);
  font-size: 1.05rem;
  padding-top: 0.6em;
}

.statement-copy p + p {
  margin-top: 1.1em;
}

/* Focus areas */

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}

.area {
  background: var(--bg);
  padding: 40px 34px 48px 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.area + .area {
  padding-left: 34px;
}

.area-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: auto;
}

.area h3 {
  font-size: var(--text-h3);
  margin: 64px 0 14px;
}

.area p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34ch;
}

/* Product status card */

.status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    150deg,
    var(--bg-panel-strong),
    rgba(243, 241, 235, 0.012)
  );
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.status-card:hover {
  border-color: rgba(243, 241, 235, 0.22);
}

.status-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 30px;
  border-bottom: 1px solid var(--line-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid rgba(200, 167, 116, 0.3);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.status-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.status-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.52fr);
  gap: 48px;
  align-items: end;
  padding: clamp(44px, 6vw, 72px) 30px;
}

.status-body h2,
.status-body h3 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin-bottom: 22px;
}

.status-body p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.02rem;
}

.status-symbol {
  justify-self: end;
  width: min(100%, 230px);
  color: var(--accent);
  opacity: 0.9;
}

.status-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 20px 30px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Principles */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}

.principle {
  background: var(--bg);
  min-height: 300px;
  padding: 36px 34px 44px 0;
  display: flex;
  flex-direction: column;
}

.principle + .principle {
  padding-left: 34px;
}

.principle-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: auto;
}

.principle h3 {
  font-size: 1.45rem;
  margin: 80px 0 14px;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36ch;
}

/* Contact band */

.contact-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    150deg,
    var(--bg-panel-strong),
    rgba(243, 241, 235, 0.015)
  );
  padding: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px 64px;
  align-items: center;
}

.contact-band h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin-top: 22px;
}

.contact-band .band-copy {
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- Page (interior) layout ---------- */

.page-head {
  padding: clamp(80px, 11vh, 140px) 0 clamp(40px, 6vh, 72px);
}

.page-head h1 {
  margin: 28px 0 26px;
  font-size: clamp(2.3rem, 6.5vw + 0.6rem, 5.4rem);
  font-weight: 480;
  letter-spacing: -0.045em;
  line-height: 1;
}

.page-head .lede {
  max-width: 58ch;
  color: var(--ink-secondary);
  font-size: var(--text-lede);
  line-height: 1.55;
  margin: 0;
}

.page-body {
  padding-bottom: var(--section-y);
}

/* Prose (legal & long-form) */

.prose {
  color: var(--ink-secondary);
}

.prose h2 {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 2.6em 0 0.8em;
  color: var(--ink);
}

.prose h3 {
  font-size: 1.15rem;
  margin: 2em 0 0.7em;
  color: var(--ink);
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.prose ul {
  padding-left: 1.2em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-dim);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.prose strong {
  color: var(--ink-secondary);
  font-weight: 600;
}

.prose--spaced {
  margin-top: 48px;
}

.doc-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 3em;
}

/* Contact channels */

.channel-list {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
  margin-top: 24px;
}

.channel {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr) auto;
  gap: 20px 40px;
  align-items: center;
  background: var(--bg);
  padding: 30px 0;
  transition: background 0.25s ease;
}

.channel:hover {
  background: var(--bg-raised);
}

.channel-name {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.channel-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.channel-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.channel-link:hover {
  color: var(--ink);
}

/* Info rows (support page) */

.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: clamp(32px, 4.5vw, 52px);
  margin: 40px 0;
}

.info-panel h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.info-panel p {
  color: var(--muted);
}

.info-panel .button {
  margin-top: 10px;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 26px;
}

.error-page h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 480;
  letter-spacing: -0.045em;
  max-width: 16ch;
  margin: 0 0 24px;
}

.error-page p {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 38px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: clamp(56px, 8vw, 96px) 0 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.55fr));
  gap: 48px 40px;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .brand {
  align-self: flex-start;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 30ch;
  margin: 0;
}

.footer-col h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--ink-secondary);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-bottom .wordmark-line {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Entrance animation (above the fold — pure CSS, no JS needed) ---------- */

.enter {
  animation: enter-up 0.9s var(--ease) both;
}

.enter-1 {
  animation-delay: 0.08s;
}

.enter-2 {
  animation-delay: 0.16s;
}

.enter-3 {
  animation-delay: 0.24s;
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Reveal animation (below the fold — IntersectionObserver) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

/* No-JS: never hide content */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-figure {
    display: none;
  }

  .section-heading,
  .statement-grid {
    grid-template-columns: 1fr;
  }

  .status-body {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .status-symbol {
    justify-self: start;
    width: 170px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 780px) {
  .site-nav {
    position: fixed;
    inset: 84px 0 auto 0;
    z-index: 90;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px var(--gutter) 30px;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    background: rgba(11, 11, 13, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0.3s;
  }

  /* Without JS the toggle can't work — show the nav inline instead */
  .no-js .header-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 20px 0 6px;
  }

  .no-js .site-nav {
    position: static;
    width: 100%;
    max-height: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    align-items: stretch;
    padding: 8px 0 10px;
    background: transparent;
    border-bottom: 0;
  }

  .no-js .nav-toggle {
    display: none;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    width: 100%;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    border: 0;
    border-radius: 0;
    padding: 14px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .area-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .area,
  .area + .area,
  .principle,
  .principle + .principle {
    padding: 30px 0 38px;
    min-height: 0;
  }

  .area h3,
  .principle h3 {
    margin-top: 40px;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }

  .channel {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Reduced motion ---------- */

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

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

  .hero-figure .figure-ring,
  .hero-figure .figure-axis {
    stroke-dashoffset: 0;
  }

  .hero-figure .figure-origin {
    opacity: 1;
  }
}

/* ---------- Print ---------- */

@media print {
  body {
    background: #ffffff;
    color: #111111;
  }

  body::after,
  .ambient,
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  .prose h2,
  .prose h3,
  .prose p,
  .prose li,
  .page-head .lede,
  .doc-meta {
    color: #111111;
  }

  .prose a {
    color: #111111;
    text-decoration: underline;
  }
}
