/* Hazanowyth de Bregh — institutional black and white with one warm signal colour ("Alpenglühen").
   Type: a Garamond for the name's four centuries, a Futura revival for the engine's future. */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/cormorant-garamond-var.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('assets/fonts/jost-var.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --paper: #f2f2f2;
  --text: #262626;
  --muted: #636363;
  --line: #d6d6d6;
  --on-dark: #fff;
  --on-dark-muted: #a8a8a8;
  --on-dark-faint: #7c7c7c;
  --line-dark: #262626;
  --accent: #ff6a3d;
  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: Jost, Futura, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --header: 76px;
  --section: clamp(96px, 12vw, 168px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }
button, a, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(255, 106, 61, 0.25); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--black); }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * clamp(20px, 5vw, 72px), 1320px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 100; left: 16px; top: 12px; padding: 12px 16px; background: var(--white); color: var(--black); font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Shared type */
.serif-display, .hero-title, .section-head h2, .mission h2, .principles h2, .heritage h2, .faq h2, .docs h2 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 2px;
  font: 500 15px/1 var(--sans);
  letter-spacing: 0.04em;
  transition: background-color 0.2s, color 0.2s;
}
.button-light { background: var(--white); color: var(--black); }
.button-light:hover { background: #dcdcdc; }
.text-link {
  display: inline-block;
  padding: 6px 0;
  font: 400 16px/1.4 var(--sans);
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s;
}
.text-link:hover { border-color: currentColor; }
.text-link-dark { border-color: rgba(0, 0, 0, 0.35); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--on-dark);
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-open {
  background: var(--black);
  border-color: #1c1c1c;
}
.header-bar { height: var(--header); display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 25px; }
.brand-name { width: 168px; height: 27.3px; }
.navigation { display: flex; gap: 34px; margin-left: auto; font: 400 15px/1 var(--sans); letter-spacing: 0.03em; }
.navigation a { position: relative; padding: 10px 0; color: #d6d6d6; transition: color 0.2s; }
.navigation a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.navigation a:hover { color: var(--white); }
.navigation a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.languages { display: flex; gap: 2px; }
.languages button { min-width: 36px; min-height: 36px; padding: 0 6px; border: 0; background: none; font: 500 12px/1 var(--sans); letter-spacing: 0.1em; color: #8c8c8c; border-radius: 2px; }
.languages button[aria-pressed='true'] { color: var(--white); box-shadow: inset 0 -1px 0 var(--white); }
.languages button:hover { color: var(--white); }
.access-link { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 2px; font: 500 14px/1 var(--sans); letter-spacing: 0.06em; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.access-link:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: max(680px, 100svh);
  background: var(--black);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.hero-globe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; }
.hero-globe-base { pointer-events: none; }
.hero-globe.is-grabbable { cursor: grab; }
.hero-globe.is-dragging { cursor: grabbing; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0, rgba(0, 0, 0, 0) 150px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.74) 32%, rgba(0, 0, 0, 0.18) 52%, rgba(0, 0, 0, 0) 64%);
}
.hero-content { position: relative; z-index: 2; padding-top: calc(var(--header) + clamp(48px, 11vh, 140px)); pointer-events: none; }
.hero-content a, .hero-content p, .hero-content h1 { pointer-events: auto; }
.hero-title { font-size: clamp(56px, min(7.9vw, 13vh), 124px); line-height: 0.96; max-width: 12ch; }
.hero-title span { display: block; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: 52px; }
.hero-foot { position: relative; z-index: 2; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 0 28px; }
.hero-caption { font-size: 14px; letter-spacing: 0.02em; color: var(--on-dark-faint); }
.motion-control { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0; border: 0; background: none; font: 400 14px/1 var(--sans); letter-spacing: 0.02em; color: #9a9a9a; }
.motion-control:hover { color: var(--white); }
.motion-control:disabled { cursor: default; color: var(--on-dark-faint); }
.play-icon { display: none; }
.motion-control[aria-pressed='true'] .play-icon { display: block; }
.motion-control[aria-pressed='true'] .pause-icon { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-title span { animation: rise-in 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both; }
  .hero-title span + span { animation-delay: 0.55s; }
  .hero-actions { animation: rise-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.05s both; }
  .site-header, .hero-foot { animation: fade-in 1.2s ease 1.2s both; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Thesis and the three questions */
.thesis { background: var(--white); padding: var(--section) 0 clamp(88px, 10vw, 140px); }
.thesis-head { display: grid; gap: 40px; }
.statement {
  font: 300 clamp(60px, 8.6vw, 136px)/0.96 var(--serif);
  letter-spacing: -0.012em;
  color: var(--black);
}
.statement span { display: block; }
.markets { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 18px 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.markets p { max-width: 30rem; font-size: 20px; color: var(--muted); }
.market-list { display: flex; flex-wrap: wrap; gap: 12px clamp(20px, 2.6vw, 40px); font: 400 clamp(29px, 2.7vw, 40px)/1 var(--serif); color: var(--black); }
.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4.5vw, 72px); margin-top: clamp(72px, 9vw, 128px); }
.question { border-top: 1px solid var(--black); padding-top: 28px; }
.question-chart { margin-bottom: 30px; }
.question-chart svg { width: 100%; height: auto; overflow: visible; }
.question h3 { font: 500 clamp(28px, 2.5vw, 35px)/1.15 var(--serif); color: var(--black); }
.question p { margin-top: 14px; font-size: 17px; color: var(--muted); max-width: 26rem; }
.q-grid { stroke: #cfcfcf; stroke-width: 1; }
.q-line { fill: none; stroke: var(--black); stroke-width: 1.7; stroke-linejoin: round; }
.q-proj { fill: none; stroke: var(--black); stroke-width: 1.5; stroke-dasharray: 4 5; }
.q-mark { fill: var(--accent); }
.q-bracket { fill: none; stroke: #8f8f8f; }
.q-band { fill: rgba(0, 0, 0, 0.06); }
.q-band-inner { fill: rgba(0, 0, 0, 0.09); }
.q-path { fill: none; stroke: #8f8f8f; stroke-width: 1.2; }
.q-path-base { stroke: var(--black); stroke-width: 1.7; }
.q-tail { fill: var(--accent); }
.q-cut { stroke: var(--black); stroke-dasharray: 3 4; }

/* Mission: three scales, each marked by a rule that shows its size */
.mission { background: var(--paper); color: var(--text); padding: var(--section) 0; }
.mission-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
.mission h2 { font-size: clamp(48px, 6.3vw, 94px); line-height: 1; color: var(--black); }
.mission-head p { max-width: 31rem; font-size: 20px; color: #4d4d4d; }
.scales { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4.5vw, 72px); margin-top: clamp(64px, 8vw, 112px); }
.scale { padding-top: 34px; background-repeat: no-repeat; background-position: left top; }
.scale-large { background-image: linear-gradient(var(--black), var(--black)); background-size: 100% 6px; }
.scale-small { background-image: repeating-linear-gradient(180deg, var(--black) 0 1px, transparent 1px 3px); background-size: 100% 7px; }
.scale-human { background-image: radial-gradient(circle at 50% 50%, var(--black) 0 1.5px, transparent 2px); background-size: 9px 6px; background-repeat: repeat-x; }
.scale h3 { font: 500 clamp(28px, 2.5vw, 35px)/1.15 var(--serif); color: var(--black); }
.scale p { margin-top: 14px; max-width: 24rem; font-size: 17px; color: var(--muted); }
.mission-close { margin-top: clamp(64px, 8vw, 104px); font: 300 clamp(36px, 4vw, 60px)/1.1 var(--serif); color: var(--black); }

/* Technology */
.tech { background: var(--black); color: var(--on-dark); padding: var(--section) 0 clamp(80px, 9vw, 120px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
.section-head h2 { font-size: clamp(48px, 6.3vw, 94px); line-height: 1; }
.section-head p { max-width: 31rem; font-size: 20px; color: var(--on-dark-muted); }
.tech-story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); margin-top: clamp(56px, 7vw, 104px); align-items: start; }
.tech-visual { position: sticky; top: calc(var(--header) + 4vh); }
.tech-visual canvas { display: block; width: 100%; aspect-ratio: 1 / 1; max-height: calc(100svh - var(--header) - 12vh); }
.tech-visual figcaption { margin-top: 14px; font-size: 14px; color: var(--on-dark-faint); }
.tech-steps { counter-reset: step; }
.tech-step { counter-increment: step; padding: 34px 0 40px; border-top: 1px solid var(--line-dark); transition: opacity 0.45s; }
.tech-step::before { content: counter(step, decimal-leading-zero); font: 500 13px/1 var(--sans); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; color: var(--on-dark-faint); transition: color 0.45s; }
.tech-step h3 { margin: 16px 0 14px; font: 400 clamp(38px, 3.5vw, 52px)/1.05 var(--serif); }
.tech-step p { max-width: 30rem; font-size: 18px; color: #c4c4c4; }
.tech-step .tech-number { max-width: none; margin: 4px 0 14px; font: 300 clamp(76px, 8.2vw, 124px)/0.9 var(--serif); font-variant-numeric: lining-nums; letter-spacing: -0.01em; color: var(--white); }
/* The exponent is set in the sans: Garamond figures this small read as letters. */
.tech-number sup { margin-left: 0.04em; font: 400 0.3em/1 var(--sans); vertical-align: 1.9em; letter-spacing: 0.02em; color: var(--accent); }
.tech-close { margin-top: clamp(72px, 9vw, 120px); font: 300 clamp(36px, 4vw, 60px)/1.1 var(--serif); }
.is-scrolly .tech-step { min-height: 56vh; opacity: 0.3; }
.is-scrolly .tech-step.is-active { opacity: 1; }
.is-scrolly .tech-step.is-active::before { color: var(--accent); }

/* Preview terminal */
.preview { background: var(--black); color: var(--on-dark); padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.terminal { position: relative; margin-top: clamp(56px, 7vw, 96px); border: 1px solid #2a2a2a; border-radius: 10px; overflow: hidden; background: #0e0e0e; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.8); }
.terminal-screen { font: 400 14px/1.4 var(--sans); color: #9a9a9a; user-select: none; }
.terminal-bar { display: flex; align-items: center; gap: 32px; height: 50px; padding: 0 20px; border-bottom: 1px solid #222; background: #121212; }
.terminal-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: 0.04em; color: var(--white); }
.terminal-brand svg { width: 24px; height: 15px; color: var(--white); }
.terminal-tabs { display: flex; gap: 24px; }
.terminal-tabs span { padding: 15px 0; }
.terminal-tabs .is-active { color: var(--white); box-shadow: inset 0 -1px 0 var(--white); }
.terminal-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; }
.terminal-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 236px; min-height: 440px; }
.terminal-markets { padding: 20px 0; border-right: 1px solid #1f1f1f; }
.t-heading { display: block; padding: 0 20px 10px; font-size: 12px; color: #6f6f6f; }
.terminal-markets li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 6px 10px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #1a1a1a; }
.terminal-markets li > span { color: #d0d0d0; }
.terminal-markets li svg { width: 64px; height: 22px; grid-row: span 2; }
.terminal-markets li svg path { fill: none; stroke: #8a8a8a; stroke-width: 1.2; }
.terminal-markets li.is-active { background: #171717; box-shadow: inset 2px 0 0 var(--white); }
.terminal-main { padding: 20px 24px; min-width: 0; }
.t-main-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.t-title { font: 500 28px/1.1 var(--serif); color: var(--white); }
.t-horizon { display: flex; gap: 4px; }
.t-horizon span { padding: 6px 10px; border: 1px solid #2a2a2a; border-radius: 2px; font-size: 12px; }
.t-horizon .is-active { border-color: #8a8a8a; color: var(--white); }
.t-chart { position: relative; margin-top: 18px; padding-right: 64px; }
.t-chart svg { width: 100%; height: auto; }
.t-grid path { stroke: #1f1f1f; }
.t-band { fill: rgba(255, 255, 255, 0.07); }
.t-band-inner { fill: rgba(255, 255, 255, 0.1); }
.t-line { fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linejoin: round; }
.t-mid { fill: none; stroke: var(--white); stroke-width: 1.4; stroke-dasharray: 3 4; }
.t-now { stroke: #4a4a4a; stroke-dasharray: 2 4; }
.t-dot { fill: var(--accent); }
.t-axis { position: absolute; top: 4%; right: 0; bottom: 8%; display: flex; flex-direction: column; justify-content: space-between; }
.t-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #1f1f1f; }
.t-stats div { display: flex; flex-direction: column; gap: 10px; }
.terminal-side { padding: 20px 0; border-left: 1px solid #1f1f1f; display: flex; flex-direction: column; min-width: 0; }
.t-live { display: flex; align-items: center; gap: 8px; color: #d0d0d0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.6); animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.55); } 100% { box-shadow: 0 0 0 9px rgba(255, 106, 61, 0); } }
.t-feed li { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; padding: 12px 20px 14px; border-bottom: 1px solid #1a1a1a; }
.t-feed li > .redact { grid-column: 1 / -1; width: 100%; }
.t-feed li > .redact-short { width: 62%; }
.t-kind { color: #e2e2e2; font-weight: 500; }
.t-time { color: #6f6f6f; font-variant-numeric: tabular-nums; }
.t-feed li.is-new { animation: feed-in 0.7s ease both; box-shadow: inset 2px 0 0 var(--accent); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.redact {
  display: inline-block;
  width: 58px;
  height: 10px;
  border-radius: 2px;
  background: repeating-linear-gradient(135deg, #2e2e2e 0 4px, #262626 4px 8px);
}
.redact-lg { width: 96px; height: 20px; }
.terminal-markets .redact { width: 46px; height: 8px; }
.terminal-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  background: radial-gradient(ellipse 46% 52% at 50% 54%, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.72) 52%, rgba(0, 0, 0, 0.08) 100%);
}
.gate-seal { width: 64px; height: 64px; color: var(--accent); }
.gate-title { margin-top: 22px; font: 400 clamp(32px, 3.4vw, 46px)/1.1 var(--serif); color: var(--white); }
.terminal-gate .button { margin-top: 28px; }
.preview-caption { margin-top: 18px; font-size: 14px; color: var(--on-dark-faint); }

/* Principles */
.principles { background: var(--white); padding: var(--section) 0; }
.principles h2 { font-size: clamp(48px, 6.3vw, 94px); line-height: 1; color: var(--black); }
.principles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3.5vw, 56px); margin-top: clamp(56px, 7vw, 96px); }
.principle { border-top: 1px solid var(--black); padding-top: 26px; }
.principle h3 { font: 500 clamp(27px, 2.3vw, 33px)/1.14 var(--serif); color: var(--black); text-wrap: balance; }
.principle p { margin-top: 14px; font-size: 17px; color: var(--muted); }

/* Heritage */
.heritage { background: var(--paper); padding: var(--section) 0; color: var(--text); }
.heritage-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: end; }
.heritage-year { font: 300 clamp(150px, 23vw, 380px)/0.8 var(--serif); font-variant-numeric: oldstyle-nums; letter-spacing: -0.02em; color: var(--black); }
.heritage h2 { font-size: clamp(46px, 5.1vw, 76px); line-height: 1; color: var(--black); }
.heritage-copy p { margin-top: 22px; max-width: 34rem; color: #4d4d4d; }
.heritage-copy .heritage-purpose { font: 400 clamp(28px, 2.6vw, 38px)/1.2 var(--serif); color: var(--black); }
.heritage-copy .text-link { margin-top: 30px; }
.heritage-copy .source-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(72px, 8vw, 112px); border-top: 1px solid var(--black); }
.timeline li { position: relative; padding-top: 30px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: #4d4d4d; }
.timeline li::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--black); }
.timeline li:last-child::before { background: var(--accent); }
.timeline-year { font: 400 42px/1 var(--serif); font-variant-numeric: oldstyle-nums; color: var(--black); }

/* Founder, as the present-day chapter of the heritage story */
.founder-layout { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; margin-top: clamp(80px, 9vw, 128px); }
.founder-portrait { position: relative; max-width: 360px; border-radius: 3px; overflow: hidden; background: #e4e4e4; }
.portrait-image { position: relative; aspect-ratio: 1256 / 1569; }
.portrait-image img { width: 100%; height: 100%; object-fit: cover; }
.founder-label { font: 400 15px/1 var(--sans); letter-spacing: 0.04em; color: var(--muted); }
.founder-quote { margin-top: 28px; }
.founder-quote p { font: 400 clamp(37px, 4vw, 60px)/1.1 var(--serif); letter-spacing: -0.005em; color: var(--black); text-wrap: balance; }
.founder-sign { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; }
.founder-sign span:first-child { font: 500 32px/1 var(--serif); color: var(--black); }
.founder-sign span:last-child { font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { background: var(--white); padding: 0 0 var(--section); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(40px, 6vw, 104px); border-top: 1px solid var(--line); padding-top: clamp(72px, 8vw, 112px); }
.faq h2 { font-size: clamp(46px, 5.1vw, 76px); line-height: 1; color: var(--black); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--black); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; list-style: none; cursor: pointer; font: 500 25px/1.3 var(--serif); color: var(--black); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: #4d4d4d; }
.plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.plus::before, .plus::after { content: ''; position: absolute; background: currentColor; }
.plus::before { left: 0; top: 6.5px; width: 14px; height: 1px; }
.plus::after { left: 6.5px; top: 0; width: 1px; height: 14px; transition: transform 0.25s; }
details[open] .plus::after { transform: rotate(90deg); }
.answer { padding: 0 40px 26px 0; font-size: 17px; color: var(--muted); }
details[open] .answer { animation: answer-in 0.3s ease both; }
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Docs: the proof, published once it exists */
.docs { background: var(--black); color: var(--on-dark); padding: var(--section) 0; overflow: hidden; }
.docs-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.docs h2 { font-size: clamp(52px, 6.8vw, 104px); line-height: 1; max-width: 9em; }
.docs-copy p { max-width: 32rem; margin-top: 30px; font-size: 19px; color: var(--on-dark-muted); }
.docs-copy .docs-note { margin-top: 22px; font-size: 16px; color: var(--on-dark-faint); }
.dossier-stage { display: flex; justify-content: center; perspective: 1400px; }
.dossier {
  --rx: 6deg;
  --ry: -12deg;
  --mx: 30%;
  --my: 20%;
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1 / 1.32;
  padding: clamp(24px, 2.8vw, 36px);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #e9e9e9;
  background: linear-gradient(150deg, #1f1f1f 0%, #0b0b0b 52%, #151515 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 60px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dossier.is-tilting { transition: transform 0.12s linear; }
.dossier-sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 46%); mix-blend-mode: screen; }
.dossier-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dossier-seal { width: 52px; height: 52px; color: var(--accent); }
.dossier-stamp { padding: 8px 11px 7px; border: 1px solid var(--accent); border-radius: 2px; font: 500 12px/1 var(--sans); letter-spacing: 0.08em; color: var(--accent); transform: rotate(-4deg); }
.dossier-body { position: relative; display: flex; flex-direction: column; gap: 8px; }
.dossier-title { font: 300 clamp(64px, 6.4vw, 92px)/0.9 var(--serif); color: var(--white); }
.dossier-sub { font-size: 15px; color: #a8a8a8; }
.dossier-lines { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.dossier-lines .redact { width: 100%; height: 8px; }
.dossier-lines .redact-short { width: 58%; }
.dossier-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; letter-spacing: 0.06em; color: #9a9a9a; }
.dossier-name { width: min(170px, 58%); height: auto; aspect-ratio: 171.44 / 27.89; color: var(--white); }

/* Footer */
.footer { background: var(--black); color: var(--on-dark-muted); border-top: 1px solid #1a1a1a; padding: 64px 0 34px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; color: var(--white); }
.footer-nav { display: flex; gap: 28px; font-size: 15px; color: var(--on-dark-muted); }
.footer-nav a:hover, .footer-nav a[aria-current='page'] { color: var(--white); }
.footer-disclaimer { max-width: 58rem; margin-top: 40px; font-size: 14px; line-height: 1.7; color: var(--on-dark-faint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid #1a1a1a; font-size: 14px; color: var(--on-dark-faint); }

/* Legal pages */
.legal-page { background: var(--white); }
.legal-page .site-header { position: sticky; background: var(--black); }
.legal-main { padding: clamp(56px, 8vw, 112px) 0 clamp(80px, 10vw, 140px); color: var(--text); }
.legal-intro { max-width: 860px; margin-bottom: clamp(48px, 6vw, 80px); }
.legal-intro h1 { font: 300 clamp(60px, 8vw, 112px)/0.98 var(--serif); letter-spacing: -0.01em; color: var(--black); }
.legal-intro p { max-width: 640px; margin-top: 22px; color: var(--muted); }
.legal-intro p + p { margin-top: 8px; font-size: 14px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 780px); gap: clamp(40px, 6vw, 80px); }
.legal-index { position: sticky; top: calc(var(--header) + 24px); align-self: start; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.legal-index a { color: var(--muted); }
.legal-index a:hover { color: var(--black); text-decoration: underline; text-underline-offset: 4px; }
.legal-content section { padding-top: 28px; margin-bottom: 40px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 16px); }
.legal-content section:first-child { border-top-color: var(--black); }
.legal-content h2 { margin-bottom: 18px; font: 500 34px/1.15 var(--serif); color: var(--black); }
.legal-content p, .legal-content li { margin-bottom: 16px; font-size: 17px; color: #4d4d4d; }
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-content dl { margin: 0 0 22px; font-size: 15px; }
.legal-content dt { margin-top: 16px; color: var(--muted); }
.legal-content dd { margin: 4px 0 0; color: var(--black); }
.legal-content code { font-size: 0.92em; }
.legal-nav { display: flex; gap: 28px; margin-left: auto; font: 400 15px/1 var(--sans); letter-spacing: 0.03em; }
.legal-nav a { padding: 10px 0; color: #d6d6d6; }
.legal-nav a:hover { color: var(--white); }
.legal-page .footer { padding-top: 0; }
.legal-footer { margin-top: 0; border-top: 0; padding-top: 30px; }

/* Responsive */
@media (max-width: 1180px) {
  .navigation { gap: 26px; }
  .terminal-body { grid-template-columns: 190px minmax(0, 1fr) 210px; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --header: 68px; }
  .navigation, .header-actions .access-link { display: none; }
  .header-actions { margin-left: auto; gap: 8px; }
  .menu-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 0; background: none; }
  .menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: transform 0.25s; }
  .menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu { display: flex; flex-direction: column; height: calc(100svh - var(--header)); padding: 24px clamp(20px, 5vw, 72px) 40px; overflow-y: auto; overscroll-behavior: contain; }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid #1f1f1f; font: 400 40px/1.1 var(--serif); }
  .section-head { grid-template-columns: 1fr; }
  .tech-story { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tech-visual { top: var(--header); z-index: 2; margin: 0 calc(-1 * clamp(20px, 5vw, 72px)); padding: 10px clamp(20px, 5vw, 72px) 10px; background: var(--black); border-bottom: 1px solid var(--line-dark); }
  .tech-visual canvas { aspect-ratio: auto; height: 44svh; max-height: none; }
  .tech-visual figcaption { margin-top: 4px; font-size: 12px; }
  .is-scrolly .tech-step { min-height: 52vh; }
  .terminal-body { grid-template-columns: minmax(0, 1fr) 200px; }
  .terminal-markets { display: none; }
  .questions { grid-template-columns: 1fr; gap: 56px; }
  .question { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
  .question-chart { grid-row: span 2; margin: 0; }
  .heritage-layout, .founder-layout, .faq-layout, .docs-layout, .mission-head { grid-template-columns: 1fr; }
  .scales { grid-template-columns: 1fr; gap: 44px; }
  .founder-portrait { max-width: 320px; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; border-top: 0; }
  .timeline li { border-top: 1px solid var(--black); }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-index { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }
}

@media (max-width: 480px) {
  .legal-page .brand-name { display: none; }
  .legal-nav { gap: 20px; }
}


@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand-mark { width: 34px; height: 21px; }
  .brand-name { width: 134px; height: 21.8px; }
  .languages button { min-width: 34px; }
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0) 90px); }
  .hero-content { padding-top: calc(var(--header) + 48px); padding-bottom: calc(min(92vw, 440px) + 24px); }
  .hero-title { font-size: clamp(48px, 14vw, 68px); }
  .hero-actions { margin-top: 36px; gap: 16px 24px; }
  .hero-foot { padding: 0 0 18px; }
  .hero-caption { max-width: 14em; font-size: 12px; }
  .question { display: block; }
  .question-chart { margin-bottom: 22px; }
  .terminal-bar { gap: 16px; padding: 0 14px; }
  .terminal-tabs span:not(.is-active) { display: none; }
  .terminal-body { grid-template-columns: 1fr; min-height: 0; }
  .terminal-side { border-left: 0; border-top: 1px solid #1f1f1f; }
  .t-feed li:nth-child(n + 4) { display: none; }
  .terminal-main { padding: 16px; }
  .t-chart { padding-right: 44px; }
  .t-stats { display: none; }
  .redact-lg { width: 72px; height: 16px; }
  .terminal-body { min-height: 400px; }
  .terminal-gate { background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 42%); justify-content: flex-end; padding: 24px 20px 28px; }
  .gate-seal { display: none; }
  .tech-step p { font-size: 17px; }
  .principles-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; row-gap: 32px; }
  .faq-list summary { font-size: 22px; }
  .answer { padding-right: 8px; }
  .dossier { --rx: 4deg; --ry: -6deg; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* The smallest phones: logo, language switch and menu still fit on one line. */
@media (max-width: 360px) {
  .header-bar { gap: 10px; }
  .brand { gap: 10px; }
  .brand-name { width: 112px; height: 18.2px; }
  .languages button { min-width: 30px; padding: 0 4px; }
  .menu-toggle { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dossier { --rx: 0deg; --ry: 0deg; }
}
