/*
 * Freehold — consumer site prototype · design system
 *
 * A night scene with one light in it. Warm white text on blue-black ink and a single accent,
 * brass, kept for the primary action, the selected state and the few things that need attention.
 * One typeface, Inter (variable weight and optical size), at a short scale of sizes and weights:
 * hierarchy comes from size, weight, tone and space, not from boxes, rules, capitals or colour.
 *
 * Dark-only by design: the product's world is a night scene. Contrast targets WCAG 2.2 AA for all text.
 */


:root {
  color-scheme: dark;

  /* ink */
  --ink-0: #05090e;
  --ink: #070c12;
  --ink-1: #0b131b;
  --ink-2: #101b25;
  --ink-3: #172532;
  --line: rgba(236, 228, 212, 0.1);
  --line-strong: rgba(236, 228, 212, 0.2);

  /* paper */
  --paper: #f1eee8;
  --muted: #a9a69f;
  --faint: #93908a;

  /* accents */
  --brass: #c8a24a;
  --brass-hi: #e3c77e;
  --brass-lo: #8e7130;
  --verdigris: #46c2b9;
  --emerald: #3fd197;
  --ember: #e2735c;
  --amber: #f0b349;

  /* type: one family */
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* A short, quiet scale. Chapter headings sit between 30 and 38px, reading text between 15 and 17px,
     labels at 12 to 14px; only the opening headline is allowed to be dramatic. Sizes follow the window's
     height as well as its width, so a wide but short window gets the scale its height can hold. */
  --fs-display: clamp(2.6rem, min(1.4rem + 3.4vw, 0.4rem + 8.4vh), 4.5rem);
  --fs-h2: clamp(1.875rem, min(1.35rem + 0.95vw, 0.9rem + 2.9vh), 2.375rem);
  --fs-h3: clamp(1.125rem, min(1.02rem + 0.35vw, 0.8rem + 1.3vh), 1.375rem);
  --fs-lede: clamp(1rem, min(0.96rem + 0.18vw, 0.78rem + 0.9vh), 1.125rem);
  --fs-body: clamp(0.9375rem, min(0.9rem + 0.12vw, 0.8rem + 0.6vh), 1.0625rem);
  --fs-small: 0.875rem;
  --fs-label: 0.8125rem;
  --fs-micro: 0.75rem;

  /* rhythm */
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 5px;
  --radius-lg: 5px;
  /* quiet tonal surfaces stand in for outlines */
  --surface-1: rgba(236, 228, 212, 0.045);
  --surface-2: rgba(236, 228, 212, 0.075);
  --surface-3: rgba(236, 228, 212, 0.12);
  --nav-h: 54px;
  /* How much of the top edge the navigation currently covers: the full bar, or nothing once it
     has retracted. Fixed overlays and sticky elements sit below this, so a hidden bar leaves no gap. */
  --nav-vis: var(--nav-h);
  /* Vertical breathing room scales with the window's height. */
  --vpad: clamp(18px, 5.5vh, 104px);

  /* motion: slow, weighted, deliberate */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-vis) + 12px); }
html[data-nav='hidden'] { --nav-vis: 0px; }
html:not(.reduce-motion) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(200, 162, 74, 0.35); color: var(--paper); }


/* ---------------------------------------------------------------- focus */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brass-hi);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 500; text-decoration: none; transition: top var(--dur-2) var(--ease);
}
.skip-link:focus-visible { top: 12px; }
.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;
}

/* ---------------------------------------------------------------- type */
.display, .h2, .h3 { font-weight: 500; font-optical-sizing: auto; text-wrap: balance; }
.display { font-size: var(--fs-display); line-height: 1.02; margin: 0; letter-spacing: -0.038em; }
.h2 { font-size: var(--fs-h2); line-height: 1.12; margin: 0 0 0.55em; letter-spacing: -0.024em; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; margin: 0 0 0.45em; letter-spacing: -0.014em; }
/* Two-tone headlines: the second phrase steps back in tone, never into italics or a second face. */
.display em, .h2 em, .h3 em { font-style: normal; font-weight: inherit; color: var(--muted); }
em, i { font-style: normal; }
.body em, .lede em { color: var(--paper); }
.lede { font-size: var(--fs-lede); line-height: 1.5; letter-spacing: -0.008em; color: var(--paper); margin: 0 0 1em; max-width: 34em; font-weight: 400; text-wrap: pretty; }
.body { color: var(--muted); max-width: 36em; text-wrap: pretty; }
.body p { margin: 0 0 1em; }
.body strong, .lede strong { color: var(--paper); font-weight: 500; }
p { margin: 0 0 1em; }
.small { font-size: var(--fs-small); color: var(--muted); }
/* A short line of context above a headline: natural case, set apart by weight and tone alone. */
.eyebrow { display: block; font-size: var(--fs-label); font-weight: 500; letter-spacing: 0; color: var(--muted); margin: 0 0 12px; }
.mono { font-variant-numeric: tabular-nums; }
a { color: var(--paper); text-decoration-color: rgba(200, 162, 74, 0.6); text-underline-offset: 0.22em; text-decoration-thickness: 1px; transition: text-decoration-color var(--dur-1), color var(--dur-1); }
a:hover { text-decoration-color: var(--brass-hi); color: #fff; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --b-bg: var(--surface-2); --b-fg: var(--paper); --b-line: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius);
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-line);
  font-family: var(--sans); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.btn:hover { --b-bg: var(--surface-3); color: #fff; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn .arrow { transition: transform var(--dur-2) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary { --b-bg: var(--brass); --b-fg: #120d03; --b-line: var(--brass); box-shadow: 0 0 0 0 rgba(200, 162, 74, 0); }
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 240, 200, 0.55) 45%, transparent 70%);
  transform: translateX(-120%); transition: transform 900ms var(--ease);
}
.btn--primary:hover { --b-bg: var(--brass-hi); color: #120d03; border-color: var(--brass-hi); box-shadow: 0 10px 40px -12px rgba(200, 162, 74, 0.7); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--quiet { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }
/* A secondary action drawn as a hairline, so it never reads as a second slab beside the primary one. */
.btn--line { --b-bg: transparent; box-shadow: inset 0 0 0 1px rgba(241, 238, 232, 0.22); }
.btn--line:hover { --b-bg: rgba(241, 238, 232, 0.06); box-shadow: inset 0 0 0 1px rgba(241, 238, 232, 0.4); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; }
.text-link {
  font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center;
  background: linear-gradient(var(--brass-hi), var(--brass-hi)) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size var(--dur-2) var(--ease);
}
.text-link:hover { background-size: 100% 1px; color: #fff; }

/* ---------------------------------------------------------------- quiet labels: plain words, no badge, dot or capitals */
.tag { display: inline-block; width: fit-content; font-size: var(--fs-label); font-weight: 500; line-height: 1.35; color: var(--faint); }

/* A deliberate local reading region: it scrolls on its own, says so with its edge, and hands the
   scroll back to the page at either end (no scroll trap). */
.scroll-region { overflow: auto; overscroll-behavior: auto; scrollbar-width: thin; scrollbar-color: rgba(236, 228, 212, 0.28) transparent; }
.scroll-region::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-region::-webkit-scrollbar-thumb { background: rgba(236, 228, 212, 0.22); border-radius: var(--radius); border: 2px solid transparent; background-clip: padding-box; }
.scroll-region::-webkit-scrollbar-thumb:hover { background-color: rgba(236, 228, 212, 0.4); }
.scroll-region:focus-visible { outline-offset: -2px; }

/* ---------------------------------------------------------------- glass
 * Kept for the few things you hold or use (a charter, a request, the app, a tool), never as the default
 * container for words: words sit in their own part of the frame, beside the world. A pane is a thin,
 * translucent sheet with 5px corners: a light blur, a faint tint, an outline you feel more than see
 * (a soft inner edge, a little brighter where light strikes the top), and a quiet sheen that drifts
 * with the pointer. One pane per object; never a pane inside a pane.
 * --glass-lx / --glass-ly (0–1) are the light's position, set by site.js from the pointer. */
:root { --glass-tint: rgba(12, 17, 24, 0.26); --glass-blur: 8px; --glass-radius: 5px; --glass-lx: 0.3; --glass-ly: 0; }
.glass {
  position: relative; isolation: isolate; border-radius: var(--glass-radius);
  padding: clamp(16px, 2.6vh, 24px) clamp(18px, 1.6vw, 24px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.014) 38%, rgba(255, 255, 255, 0) 100%),
    var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 48px -32px rgba(0, 0, 0, 0.55);
  text-shadow: 0 1px 1px rgba(3, 6, 10, 0.3);
  --muted: rgba(241, 238, 232, 0.8);
  --faint: rgba(241, 238, 232, 0.62);
}
/* The sheen: a soft reflection that follows the light. */
.glass::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 90% at calc(var(--glass-lx) * 100%) calc(var(--glass-ly) * 60% - 20%), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 62%);
}
.glass--deep { --glass-tint: rgba(12, 17, 24, 0.5); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { --glass-tint: rgba(10, 15, 22, 0.84); }
}
/* Reduced transparency (Windows "Transparency effects" off, macOS "Reduce transparency"): the same frosted
   pane, a notch firmer, so less of what is behind it shows through: a floor beneath each pane's own tint
   (about 0.48 for most, 0.65 at most). Never an opaque slab over the world. */
@media (prefers-reduced-transparency: reduce) {
  .glass {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.014) 38%, rgba(255, 255, 255, 0) 100%),
      linear-gradient(var(--glass-tint), var(--glass-tint)),
      rgba(12, 17, 24, 0.3);
  }
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: transform 460ms var(--ease), border-color var(--dur-2) var(--ease);
  border-bottom: 1px solid transparent;
  will-change: transform;
}
/* The bar is glass: the world runs up behind it. The glass is its own layer that fades in whole; its blur
   never animates, because an animating blur radius makes the GPU rebuild its blur shaders frame by frame. */
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)), rgba(8, 14, 22, 0.4);
  backdrop-filter: blur(16px) saturate(165%) brightness(0.88); -webkit-backdrop-filter: blur(16px) saturate(165%) brightness(0.88);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  opacity: 0; transition: opacity var(--dur-2) var(--ease);
}
.nav.is-solid { border-color: rgba(255, 255, 255, 0.08); }
.nav.is-solid::before { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav::before { background: rgba(8, 14, 22, 0.86); } }
@media (prefers-reduced-transparency: reduce) { .nav::before { background: rgba(8, 14, 22, 0.9); } }
/* While you read downward the bar steps out of the way; scrolling back up, reaching the top,
   pointing at the top edge or tabbing into it brings it straight back. */
html[data-nav='hidden'] .nav { transform: translateY(calc(-100% - 2px)); }
.reduce-motion .nav { transition: border-color var(--dur-2) var(--ease); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.brand svg { width: 24px; height: 24px; flex: none; }
.brand__word { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 0.875rem; position: relative; padding: 6px 0; }
.nav__links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass-hi); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease); }
.nav__links a:not(.btn):hover, .nav__links a[aria-current='page'] { color: var(--paper); }
.nav__links a:not(.btn):hover::after, .nav__links a[aria-current='page']::after { transform: scaleX(1); }
.nav__cta { min-height: 34px; padding: 0 14px; font-size: 0.875rem; }
.nav__toggle { display: none; }

@media (max-width: 880px) {
  :root { --nav-h: 52px; }
  .nav__links { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    background: rgba(236, 228, 212, 0.08); border: 0; border-radius: var(--radius); cursor: pointer; font-size: var(--fs-label);
   font-weight: 500;}
  .nav__toggle-bars { width: 16px; height: 10px; position: relative; }
  .nav__toggle-bars::before, .nav__toggle-bars::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--paper); transition: transform var(--dur-2) var(--ease), top var(--dur-2) var(--ease); }
  .nav__toggle-bars::before { top: 1px; }
  .nav__toggle-bars::after { top: 7px; }
  .nav.is-open .nav__toggle-bars::before { top: 4px; transform: rotate(45deg); }
  .nav.is-open .nav__toggle-bars::after { top: 4px; transform: rotate(-45deg); }
}

.menu {
  position: fixed; inset: 0; z-index: 79; display: none;
  background: rgba(5, 9, 14, 0.97); backdrop-filter: blur(10px);
  padding: calc(var(--nav-h) + 28px) var(--gutter) 40px;
  flex-direction: column; gap: 6px;
}
.menu.is-open { display: flex; animation: menu-in var(--dur-2) var(--ease); }
.menu a { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.3; text-decoration: none; color: var(--paper); padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.menu .btn { margin-top: 26px; font-family: var(--sans); font-size: 1rem; border-bottom: 0; align-self: flex-start; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.rule { border: 0; height: 1px; background: var(--line); margin: 0; }


/* ---------------------------------------------------------------- reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1000ms var(--ease), transform 1200ms var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.reduce-motion [data-reveal] { transform: none; transition: opacity 300ms linear; }
.no-js [data-reveal] { opacity: 1; transform: none; }


/* ---------------------------------------------------------------- footer */
.footer { position: relative; z-index: 5; background: var(--ink-0); border-top: 1px solid var(--line); padding: 72px 0 96px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h2 { font-size: var(--fs-small); color: var(--paper); font-weight: 600; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--muted); text-decoration: none; font-size: 0.94rem; }
.footer a:hover { color: var(--paper); }
.footer__legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--faint); font-size: 0.84rem; }
.footer__legal p { margin: 0; max-width: 62em; }
.footer__brand p { color: var(--muted); font-size: 0.95rem; max-width: 26em; margin-top: 16px; }
.motion-toggle { background: transparent; border: 0; padding: 0; color: var(--muted); font-size: 0.94rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.22em; }
.motion-toggle:hover { color: var(--paper); }
@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- shared content components */

/* Record entries: the "proof voice" — what happened, when. */
.record { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.record > li { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }







/* Status pill for doors. */
.door-state { font-size: var(--fs-label); font-weight: 500; color: var(--muted); }
.door-state--open { color: var(--paper); }
.door-state--requested { color: var(--brass-hi); }

/* Accordion (FAQ) */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 20px 0; font-size: clamp(1.05rem, 0.96rem + 0.35vw, 1.28rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; color: var(--muted); font-size: 1.25rem; font-weight: 300; transition: transform var(--dur-2) var(--ease); flex: none; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: #fff; }
.qa .qa__a { padding: 0 0 26px; color: var(--muted); max-width: 46em; }
.qa .qa__a p:last-child { margin-bottom: 0; }

/* Forms */
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field .label { font-size: 0.86rem; color: var(--paper); font-weight: 500; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.field .hint { font-size: var(--fs-label); color: var(--faint); font-weight: 400; }
.input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--radius);
  background: rgba(236, 228, 212, 0.06); border: 1px solid transparent; color: var(--paper);
  transition: border-color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-1);
}
.input::placeholder { color: var(--faint); }
.input:hover { background: rgba(236, 228, 212, 0.085); }
.input:focus-visible { outline: none; border-color: var(--brass-hi); box-shadow: 0 0 0 3px rgba(227, 199, 126, 0.18); }
textarea.input { min-height: 74px; resize: vertical; line-height: 1.45; }
.input[aria-invalid='true'] { border-color: var(--ember); }
.field__msg { font-size: 0.84rem; color: var(--ember); min-height: 0; }
.field__msg:empty { display: none; }
.count { font-size: var(--fs-micro); color: var(--faint); font-variant-numeric: tabular-nums; }
.count.is-over { color: var(--ember); }

/* Range sliders (steward desk, charter treasury, market example) */
.range { -webkit-appearance: none; appearance: none; width: 100%; max-width: 18rem; height: 28px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--brass) var(--fill, 25%), var(--line-strong) var(--fill, 25%)); border-radius: 2px; }
.range::-moz-range-track { height: 2px; background: var(--line-strong); }
.range::-moz-range-progress { height: 2px; background: var(--brass); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); box-shadow: 0 0 0 1px var(--brass); transition: transform var(--dur-1); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 0 0 1px var(--brass); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 4px; }

/* A short settle when something changes in answer to you */
.reveal-pop { animation: pop-in 600ms var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px); } }
.reduce-motion .reveal-pop { animation: none; }

/* Page-level hero for secondary pages */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(28px, 9vh, 140px)) 0 clamp(32px, 7vh, 110px); overflow: hidden; }
.page-hero .display { max-width: 12ch; }
.page-hero .lede { margin-top: 28px; }
.page-hero__contours { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }
.page-hero__contours svg { position: absolute; right: -10%; top: 50%; transform: translateY(-50%); width: min(1100px, 110vw); height: auto; }

.section { position: relative; padding: clamp(44px, 9vh, 140px) 0; }


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

/* Very large windows (1440p and up at 1:1): type, panels and spacing grow together, so the copy keeps
   its proportion to the scene instead of shrinking to a strip. */
@media (min-width: 2400px) and (min-height: 1300px) { html { font-size: 112.5%; } }
@media (min-width: 3200px) and (min-height: 1300px) { html { font-size: 125%; } }

/* ---------------------------------------------------------------- workspaces
   Where you go to use something in depth (see site.js). The full workspace is an explorer over a dimmed
   Estate; the sheet slides in at the side so the Estate stays in view and you can watch what changes. */
:root { --ws-bg: rgba(10, 16, 23, 0.94); }
.workspace { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: clamp(10px, 3vh, 36px) clamp(10px, 3vw, 48px); }
.workspace[hidden] { display: none; }
.workspace__scrim { position: absolute; inset: 0; background: rgba(4, 7, 11, 0.36); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity 360ms var(--ease); }
.workspace.is-open .workspace__scrim { opacity: 1; }
.workspace__panel {
  position: relative; width: min(84rem, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain;
  /* a deep pane of the same glass: a tool needs more tint than a sentence, but the Estate still shows */
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 30%), rgba(9, 15, 23, 0.66);
  -webkit-backdrop-filter: blur(22px) saturate(160%) brightness(0.85); backdrop-filter: blur(22px) saturate(160%) brightness(0.85);
  border-radius: var(--glass-radius); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 50px 120px -40px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(16px) scale(0.99); transition: opacity 360ms var(--ease), transform 480ms var(--ease);
  scrollbar-width: thin; scrollbar-color: rgba(236, 228, 212, 0.28) transparent;
}
.workspace.is-open .workspace__panel { opacity: 1; transform: none; }
.workspace__panel:focus { outline: none; }
.workspace__close {
  flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 0; border-radius: var(--radius);
  background: rgba(236, 230, 217, 0.08); color: var(--paper); font-size: var(--fs-small); font-weight: 500; cursor: pointer; transition: background-color var(--dur-1);
}
.workspace__close:hover { background: rgba(236, 230, 217, 0.15); }
html.ws-open { overflow: hidden; }
html.ws-open .nav, html.ws-open .rail, html.ws-open .progress { visibility: hidden; }
/* the sheet: beside the Estate, not over it */
.workspace--sheet { justify-content: flex-end; align-items: stretch; padding: 0; }
.workspace--sheet .workspace__scrim { background: linear-gradient(90deg, rgba(4, 7, 11, 0) 40%, rgba(4, 7, 11, 0.22)); backdrop-filter: none; -webkit-backdrop-filter: none; }
.workspace--sheet .workspace__panel { width: min(28rem, calc(100% - 24px)); max-height: none; height: calc(100% - 24px); margin: 12px; border-radius: var(--glass-radius); transform: translateX(28px); background: linear-gradient(168deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 30%), rgba(9, 15, 23, 0.56); }
.workspace--sheet.is-open .workspace__panel { transform: none; }
.reduce-motion .workspace__panel, .reduce-motion .workspace--sheet .workspace__panel { transform: none; transition: opacity 200ms linear; }
@media (max-width: 880px) {
  .workspace { padding: 0; }
  .workspace__panel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
}
.workspace--left { justify-content: flex-start; }
.workspace--left .workspace__scrim { background: linear-gradient(270deg, rgba(4, 7, 11, 0) 40%, rgba(4, 7, 11, 0.22)); }
.workspace--left .workspace__panel { transform: translateX(-28px); }
.workspace--left.is-open .workspace__panel { transform: none; }

/* ---------------------------------------------------------------- more: depth on request
   The page leads with the idea; the detail is one click away, in place. */
.more { margin-top: 16px; }
.more > summary {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  font-size: 0.97rem; font-weight: 500; color: var(--paper); padding: 8px 0; transition: color var(--dur-1);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after {
  content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-2) var(--ease);
}
.more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.more > summary:hover { color: #fff; }
.more[open] > :not(summary) { animation: more-in 420ms var(--ease); }
@keyframes more-in { from { opacity: 0; transform: translateY(-4px); } }
.reduce-motion .more[open] > :not(summary) { animation: none; }
