/* ============================================================
   Reboot · Shared form styles
   ============================================================ */

.form { display: flex; flex-direction: column; gap: 18px; }
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.form input,
.form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-light);
  padding: 10px 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 300;
  color: #0c0c0b;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 200ms ease;
}
.form textarea {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  min-height: 100px;
}
.form input::placeholder,
.form textarea::placeholder {
  color: rgba(12,12,11,0.32);
  font-style: italic;
}
.form input:focus,
.form textarea:focus {
  outline: 0;
  border-bottom-color: var(--gold);
}
.form .send {
  align-self: flex-start;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #0c0c0b;
  color: var(--text-dark);
  border: 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 220ms ease;
}
.form .send:hover { background: var(--gold); color: #0c0c0b; }
.form .send span { transition: transform 220ms ease; }
.form .send:hover span { transform: translateX(4px); }
.form .reply-hint {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

/* ============================================================
   Reboot · Shared site styles for sub-pages
   Variables, reset, typography, header, footer, page hero,
   prose, buttons. Page-specific styles live inline per page.
   ============================================================ */

/* ---------- Self-hosted webfonts (no external requests) ---------- */
/* Inter — UI sans */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter/inter-300.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter/inter-600.woff2") format("woff2");
}

/* Fraunces — editorial serif (variable font: opsz 9..144, wght 100..900) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces/fraunces-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces/fraunces-variable-italic.woff2") format("woff2");
}

/* JetBrains Mono — captions, eyebrows, technical labels */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono/jetbrains-mono-400.woff2") format("woff2");
}

:root {
  --bg-light: #f5f3ec;
  --bg-light-alt: #eeeae0;
  --bg-dark: #0c0c0b;
  --bg-dark-alt: #141411;
  --text-light: #111111;
  --text-light-muted: #6a6a64;
  --text-dark: #f1efe8;
  --text-dark-muted: #8a867c;
  --gold: #c9a961;
  --gold-muted: #8a7646;
  --rule-light: rgba(17,17,17,0.14);
  --rule-dark: rgba(241,239,232,0.14);
  --serif: "Fraunces", "GT Sectra Display", "PP Editorial New", Georgia, serif;
  --sans: "Inter", "Söhne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  background: var(--bg-light);
  color: var(--text-light);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
  font-optical-sizing: auto;
}
::selection { background: var(--gold); color: #0c0c0b; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  /* Force Fraunces optical-size axis to display (max) for all headlines.
     font-optical-sizing: auto is unreliable when the variable font is loaded
     as .ttf instead of .woff2 with proper fvar hinting. */
  font-variation-settings: "opsz" 144, "wght" 300;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
em { font-style: italic; font-weight: inherit; }
p { text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 760px) { .wrap { padding: 0 24px; } }

.rule { border: 0; height: 1px; background: var(--rule-light); margin: 0; }
.dark .rule { background: var(--rule-dark); }

.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}
.light {
  background: var(--bg-light);
  color: var(--text-light);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  font-weight: 400;
}
.dark .eyebrow { color: var(--text-dark-muted); }
.eyebrow .dot {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  margin-right: 10px;
  transform: translateY(-2px);
}

.section-mark {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 40px;
}
.section-mark .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.section-mark .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.dark .section-mark .label { color: var(--text-dark-muted); }

section {
  position: relative;
  padding: 88px 0;
}
section[id] { scroll-margin-top: 80px; }
@media (max-width: 760px) {
  section { padding: 64px 0; }
  section[id] { scroll-margin-top: 64px; }
}

/* ---------- Header ---------- */
header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dark);
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
  border-bottom: 1px solid transparent;
}
header.site.scrolled {
  background: rgba(12,12,11,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(241,239,232,0.08);
  padding-top: 12px; padding-bottom: 12px;
}
header.site.on-light {
  color: var(--text-light);
  background: rgba(245,243,236,0.82);
  border-bottom-color: rgba(17,17,17,0.08);
}
@media (max-width: 760px) { header.site { padding: 14px 20px; } }

.brand {
  display: flex; align-items: center;
  height: 60px;
  flex-shrink: 0;
}
.brand img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 760px) {
  .brand { height: 36px; max-width: 140px; }
}
.brand .logo-light { display: block; }
.brand .logo-dark { display: none; }
header.site.on-light .brand .logo-light { display: none; }
header.site.on-light .brand .logo-dark { display: block; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 10px;
  margin: -10px;
  cursor: pointer;
  color: inherit;
  z-index: 60;
  position: relative;
}
.nav-toggle .bars {
  display: block;
  position: relative;
  width: 24px;
  height: 16px;
}
.nav-toggle .bars span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 260ms ease, top 260ms ease, opacity 200ms ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 7px; }
.nav-toggle .bars span:nth-child(3) { top: 14px; }
.nav-toggle.open .bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle.open .bars span:nth-child(2) { opacity: 0; }
.nav-toggle.open .bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  color: var(--text-dark);
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: 96px 32px 48px;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 280ms ease, transform 280ms ease;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-nav a {
  display: block;
  padding: 18px 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 36px;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(241,239,232,0.1);
}
.mobile-nav a:hover { color: var(--gold); }
body.nav-open { overflow: hidden; }

nav.primary {
  display: flex; align-items: center; gap: 36px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
nav.primary a {
  position: relative;
  padding: 6px 0;
  transition: color 180ms ease;
  cursor: pointer;
}
nav.primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transition: right 240ms ease;
}
nav.primary a:hover::after { right: 0; }
nav.primary a.is-active { color: var(--gold); }
nav.primary a.is-active::after { right: 0; }
@media (max-width: 900px) { nav.primary .hide-md { display: none; } }
@media (max-width: 620px) { nav.primary { gap: 18px; } nav.primary .hide-sm { display: none; } }
@media (max-width: 760px) {
  nav.primary { display: none; }
}

/* ---------- Buttons / CTAs ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  transition: letter-spacing 240ms ease, color 240ms ease;
}
.cta .arrow { transition: transform 320ms ease; display: inline-block; }
.cta:hover { color: var(--gold); letter-spacing: 0.18em; }
.cta:hover .arrow { transform: translateX(6px); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 14px;
  background: #0c0c0b;
  color: var(--text-dark);
  padding: 18px 28px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid #0c0c0b;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}
.btn-primary:hover { background: var(--gold); color: #0c0c0b; border-color: var(--gold); }
.btn-primary .arrow { transition: transform 280ms ease; }
.btn-primary:hover .arrow { transform: translateX(6px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 14px;
  color: #0c0c0b;
  padding: 18px 28px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(17,17,17,0.4);
  cursor: pointer;
  background: transparent;
  transition: border-color 220ms ease, color 220ms ease;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-muted); }
.btn-outline .arrow { transition: transform 280ms ease; }
.btn-outline:hover .arrow { transform: translateX(6px); }

.dark .btn-outline {
  color: var(--text-dark);
  border-color: rgba(241,239,232,0.3);
}
.dark .btn-outline:hover { color: var(--gold); border-color: var(--gold); }

.dark .btn-primary {
  background: var(--text-dark);
  color: #0c0c0b;
  border-color: var(--text-dark);
}
.dark .btn-primary:hover { background: var(--gold); color: #0c0c0b; border-color: var(--gold); }

/* ---------- Page hero (sub-page intro) ---------- */
.page-hero {
  position: relative;
  padding: 200px 0 96px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(201,169,97,0.16) 0%, rgba(201,169,97,0.04) 40%, rgba(12,12,11,0) 75%),
    linear-gradient(180deg, #0a0a09 0%, #141210 60%, #161310 100%);
  color: var(--text-dark);
  overflow: hidden;
}
.page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,12,11,0.45) 0%, rgba(12,12,11,0.15) 30%, rgba(12,12,11,0.0) 60%, rgba(12,12,11,0.4) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
  z-index: 1;
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,169,97,0.0) 10%, rgba(201,169,97,0.5) 50%, rgba(201,169,97,0.0) 90%, transparent 100%);
  filter: blur(0.4px);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { color: rgba(241,239,232,0.7); }
.page-hero .crumbs {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241,239,232,0.45);
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.page-hero .crumbs a:hover { color: var(--gold); }
.page-hero .crumbs .sep { opacity: 0.5; }
.page-hero h1 {
  font-size: clamp(48px, 7.2vw, 120px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin-top: 22px;
  max-width: 16ch;
}
.page-hero h1 em { color: var(--gold); font-style: italic; font-weight: 300; }
.page-hero .sub {
  margin-top: 36px;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(241,239,232,0.82);
  font-weight: 300;
}
.page-hero .hero-actions {
  display: flex; align-items: center; gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.page-hero .footerline {
  margin-top: 80px;
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241,239,232,0.4);
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .page-hero { padding: 140px 0 64px; }
}

/* ---------- Prose (legal pages etc) ---------- */
.prose {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.8;
  color: #2a2a27;
}
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "wght" 300;
  letter-spacing: -0.015em;
  margin: 56px 0 18px;
}
.prose h2:first-child { margin-top: 0; }
.prose h2 em { font-style: italic; color: var(--gold-muted); }
.prose h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "wght" 300;
  font-style: italic;
  letter-spacing: -0.005em;
  margin: 36px 0 12px;
  color: #1a1a17;
}
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 200ms ease;
}
.prose a:hover { color: var(--gold-muted); }
.prose .placeholder {
  margin: 32px 0;
  padding: 28px 32px;
  border-left: 2px solid var(--gold);
  background: var(--bg-light-alt);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--text-light-muted);
}
.prose .placeholder strong {
  display: block;
  color: var(--gold-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
  margin-bottom: 8px;
  font-weight: 400;
}

/* lede paragraph under a section h2 */
.prose .lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "wght" 300;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  color: var(--text-light);
  margin: -8px 0 28px;
  max-width: 56ch;
}

/* small meta footnote at end of a prose block */
.prose .meta-note {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-light);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--text-light-muted);
}
.prose .meta-note a { border-bottom-color: var(--rule-light); }
.prose .meta-note a:hover { color: var(--gold-muted); border-bottom-color: var(--gold); }

/* definition-list grid for legal / fact blocks */
.prose .facts {
  margin: 16px 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  border-top: 1px solid var(--rule-light);
  padding-top: 28px;
}
.prose .facts > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prose .facts dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  font-weight: 400;
}
.prose .facts dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #1a1a17;
}
.prose .facts dd a { border-bottom-color: var(--rule-light); }
.prose .facts dd a:hover { color: var(--gold-muted); border-bottom-color: var(--gold); }
.prose .facts dd .muted {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-light-muted);
}
@media (max-width: 620px) {
  .prose .facts { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Footer ---------- */
footer.site {
  background: #0c0c0b;
  color: var(--text-dark);
  padding: 80px 0 36px;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule-dark);
}
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; gap: 40px; } }
.foot-brand {
  display: flex; flex-direction: column; gap: 20px;
}
.foot-brand .claim {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  max-width: 22ch;
  color: rgba(241,239,232,0.8);
}
.foot-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--gold);
  margin: 0 0 18px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col li { font-size: 13px; color: rgba(241,239,232,0.72); }
.foot-col li a { transition: color 180ms ease; cursor: pointer; }
.foot-col li a:hover { color: var(--gold); }
.foot-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241,239,232,0.4);
  flex-wrap: wrap;
  gap: 16px;
}
.foot-bottom .legal-mini { display: flex; gap: 18px; }
.foot-bottom .legal-mini a:hover { color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 800ms ease, transform 800ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
