/* Self-hosted variable fonts, latin subset */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Drawing sheet: a faint blueprint grid and a copper glow, fading towards the bottom */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--glow), transparent 70%),
    linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 240px 240px,
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 240px 240px,
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 100%);
  mask-image: linear-gradient(#000 40%, transparent 100%);
}

a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3 { font-weight: 300; line-height: 1.1; margin: 0; }
h2 { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 400; line-height: 1.08; }

/* Masked line: the wrapper clips, the inner line rises (motion.css). Padding keeps Cormorant swashes unclipped. */
.line { display: block; overflow: hidden; padding-block: .14em; margin-block: -.14em; }
.line-in { display: block; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--space); top: var(--space); z-index: 10; padding: .6rem 1rem; background: var(--bg); color: var(--fg); outline-offset: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  min-height: var(--header-h);
  padding: .5rem max(var(--space), calc((100% - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  background: var(--bg);
}
html.is-scrolled .site-header {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--header-line);
}
/* Page progress along the header's bottom edge (its scaleX is written by JS) */
.site-header .progress {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}
.brand { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; color: var(--fg); text-decoration: none; }
.brand:hover { color: var(--fg); }
.brand-logo { height: 2.25rem; width: auto; display: block; }
.brand-mark {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; letter-spacing: .02em;
}
.brand:hover .brand-mark { border-color: var(--accent-soft); color: var(--accent-soft); }
.brand-word { letter-spacing: .32em; font-size: .8rem; font-weight: 600; }
.site-nav { display: flex; gap: clamp(.5rem, 2vw, 1.75rem); }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .75rem .35rem;
  color: var(--muted); text-decoration: none;
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.site-nav a:hover { color: var(--fg); }
/* Active section: a 6 px copper square under the label */
.site-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: .15rem; width: 6px; height: 6px; margin-left: -3px;
  background: var(--accent); transform: scale(0);
}
.site-nav a[aria-current] { color: var(--fg); }
.site-nav a[aria-current]::after { transform: scale(1); }
@media (max-width: 34rem) {
  .brand-word { display: none; }
  .brand { padding-inline: .25rem; margin-inline-start: -.25rem; }
  .site-nav a { letter-spacing: .08em; font-size: .68rem; padding: .8rem .25rem; }
}
@media (max-width: 22rem) {
  .site-nav { gap: .15rem; }
  .site-nav a { letter-spacing: .04em; padding-inline: .2rem; }
}

main { flex: 1; }
/* Anchor jumps and focus scrolling stop under the sticky header (and under the stuck stage on one column, below) */
html { scroll-padding-top: var(--header-h); }

/* ---------- Page: stage + content ---------- */
.page { max-width: var(--max); margin: 0 auto; padding-inline: var(--space); }

.eyebrow, .kicker {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: .75rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
}
/* Kicker as a dimension line: label between two copper lines with end ticks */
.kicker { display: flex; align-items: center; gap: .9rem; }
.kicker > span { flex: none; }
.kicker::before, .kicker::after {
  content: ""; height: 7px; flex: none;
  background: linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat;
}
.kicker::before { width: 2.5rem; border-left: 1px solid var(--accent); transform-origin: right; }
.kicker::after { flex: 1; max-width: 9rem; border-right: 1px solid var(--accent); transform-origin: left; }

/* ---------- The stage: the sketch on its sheet of paper, the phase readout, the build hint ---------- */
.stage { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
/* The sheet: cream paper with a faint laid grain and a light vignette, rounded, lifted off the dark page by a shadow */
.scene {
  position: relative;
  min-height: 0;
  overflow: hidden;
  perspective: 1200px;
  border-radius: 5px;
  background:
    repeating-linear-gradient(98deg, rgba(110, 90, 60, .028) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(8deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 7px),
    radial-gradient(ellipse 90% 80% at 50% 40%, var(--sheet-light) 0%, var(--sheet) 55%, var(--sheet-dark) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 14px 30px -10px rgba(0, 0, 0, .75), 0 2px 6px rgba(0, 0, 0, .35);
}
.stage .scene { margin: 2.5rem .9rem .9rem; }
/* After dark a warm desk lamp dims the sheet: paper, hatching and ink dim together (multiply); only the window panes
   and the lamps change colour (scene-vars.css). site.js sets .is-dusk / .is-night on the scene. */
.scene::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0;
  mix-blend-mode: multiply;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, #f0e4cf 0%, #d7c3a3 55%, #a8947a 100%);
}
.scene.is-dusk::after { opacity: .45; }
.scene.is-night::after { opacity: .62; background: radial-gradient(ellipse 72% 66% at 50% 42%, #f3e8d4 0%, #d6c3a6 58%, #a8977e 100%); }
.tilt { position: absolute; inset: 3% 0 1%; transform-origin: 50% 62%; }
.scene .iso { position: relative; width: 100%; height: 100%; }

/* Phase readout: five words, the current one in copper */
.phase {
  margin: 0; display: flex; flex-wrap: wrap; align-items: baseline;
  color: var(--muted);
  font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.phase span { white-space: nowrap; }
.phase span:not(:last-child)::after { content: "·"; margin: 0 .55em; color: var(--accent-dim); }
.stage[data-phase="0"] .phase span:nth-child(1), .stage[data-phase="1"] .phase span:nth-child(2), .stage[data-phase="2"] .phase span:nth-child(3),
.stage[data-phase="3"] .phase span:nth-child(4), .stage[data-phase="4"] .phase span:nth-child(5) { color: var(--accent-soft); }
html:not(.js) .stage[data-phase="0"] .phase span:nth-child(1) { color: inherit; }
html:not(.js) .stage .phase span:last-child { color: var(--accent-soft); }

/* "Scroll to build": a pencil note at the top right of the sheet (graphite on cream: 11:1), only while the build can happen */
.build-hint {
  position: absolute; right: 1.9rem; top: 3.3rem; z-index: 3;
  display: flex; align-items: center; gap: .7rem; margin: 0;
  color: var(--sheet-ink);
  font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.build-rail { position: relative; width: 1px; height: 30px; background: rgba(43, 42, 40, .22); overflow: hidden; }
.build-rail::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 10px; background: var(--sheet-ink); }
html:not(.js) .build-hint { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 1.5rem 0 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 9.2vw, 3.9rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.01em;
}
.hero-title em { font-style: italic; color: var(--accent-soft); }
.hero-lede { max-width: 32rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 0; }
.hero-actions .btn { flex: 1 1 auto; text-align: center; }
@media (min-width: 30rem) { .hero-actions .btn { flex: none; } }

.btn {
  display: inline-block;
  padding: .9rem 1.8rem;
  border: 1px solid var(--accent-dim);
  color: var(--fg);
  text-decoration: none;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: border-color .3s, background-color .3s, color .3s, transform .3s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: scale(.98); transition-duration: .08s; }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--on-accent); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 44rem; }
.section-lede { margin: 1.25rem 0 0; color: var(--muted); font-size: 1.1rem; max-width: 36rem; }

.prose { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }
.prose p { margin: 0 0 1.25rem; }
.prose p:first-child {
  position: relative;
  padding-left: 1.4rem;
  color: var(--fg);
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.5rem, .6vw + 1.3rem, 1.9rem); line-height: 1.3;
}
.prose p:first-child::before {
  content: ""; position: absolute; left: 0; top: .35em; bottom: .35em; width: 1px;
  background: var(--accent); transform-origin: top;
}
.prose strong { color: var(--accent-soft); font-weight: 500; }

/* Services: index rows — number | title + text | isometric glyph */
.services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: start;
  padding: 1.6rem .75rem 1.7rem;
  margin-inline: -.75rem;
  transition: background-color .4s;
}
.service::before {
  content: ""; position: absolute; left: .75rem; right: .75rem; top: 0; height: 1px;
  background: var(--rule); transform-origin: left;
}
.service::after {
  content: ""; position: absolute; left: 0; top: 1.6rem; bottom: 1.7rem; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
}
.service-num { padding-top: .45rem; font-size: .78rem; letter-spacing: .14em; color: var(--muted); transition: color .35s; }
.service h3 { margin: 0 0 .5rem; font-family: var(--font-serif); font-size: clamp(1.5rem, 1.2vw + 1rem, 1.8rem); font-weight: 500; line-height: 1.15; }
.service p { margin: 0; color: var(--muted); font-size: .98rem; max-width: 30rem; }
.service .icon { width: 4rem; height: 4rem; flex: none; display: block; overflow: visible; }
.service.is-current .service-num { color: var(--accent); }
.service.is-current::after { transform: scaleY(1); }
@media (hover: hover) and (pointer: fine) {
  .service:hover { background: var(--surface); }
  .service:hover .service-num { color: var(--accent); }
  .service .icon { transition: transform .5s var(--ease); }
  .service:hover .icon { transform: translateY(-4px) scale(1.06); }
}
.service:active { background: var(--surface); }

/* Process: four numbered steps on a copper line that draws as the section scrolls (its scaleY is written by JS, full without it) */
.steps { position: relative; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.75rem, 4vw, 2.5rem); }
.steps-line { position: absolute; left: 1.4rem; top: 1.2rem; bottom: 1.4rem; width: 1px; background: var(--line); }
.steps-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; }
.step { position: relative; padding-left: 4.4rem; }
.step-num {
  position: absolute; left: 0; top: -.15rem;
  display: grid; place-items: center;
  width: 2.8rem; height: 2.8rem;
  border: 1px solid var(--accent); border-radius: 50%;
  background: var(--bg); color: var(--accent);
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; letter-spacing: .02em;
}
.step h3 { margin: 0 0 .4rem; font-family: var(--font-serif); font-size: clamp(1.5rem, 1.2vw + 1rem, 1.8rem); font-weight: 500; line-height: 1.15; }
.step p { margin: 0; color: var(--muted); max-width: 32rem; }

/* Contact: the paper sheet (light section), then the contact sheet (a title-block table) */
.section-contact {
  --fg: var(--ink); --muted: var(--ink-muted); --accent: var(--ink-accent); --accent-soft: var(--ink-accent-soft);
  --accent-dim: rgba(138, 90, 43, .5); --rule: var(--ink-rule); --line: var(--ink-rule); --surface: var(--paper-2); --bg: var(--paper);
  color: var(--ink);
  background: var(--paper);
  margin-inline: calc(-1 * var(--space));
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--space);
  color-scheme: light;
}
.section-contact .section-head { max-width: 40rem; }

.contact-sheet { position: relative; max-width: 60rem; border: 1px solid var(--rule); }
.contact-sheet .rule { position: absolute; background: var(--accent); pointer-events: none; opacity: 0; }
.rule-t, .rule-b { left: 0; right: 0; height: 1px; transform-origin: left; }
.rule-l, .rule-r { top: 0; bottom: 0; width: 1px; transform-origin: top; }
.rule-t { top: -1px; } .rule-b { bottom: -1px; } .rule-l { left: -1px; } .rule-r { right: -1px; }
.cells { margin: 0; display: grid; grid-template-columns: 1fr; }
.cell { position: relative; padding: 1.5rem clamp(1.1rem, 3vw, 2rem) 1.7rem; border-bottom: 1px solid var(--rule); }
.cell:last-child { border-bottom: 0; }
.cell dt { margin-bottom: .6rem; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.cell dd { margin: 0; }
.cell address { font-style: normal; margin-bottom: .6rem; }
/* 44 px hit areas: the padding grows the target, the underline stays on the text */
.contact-big {
  display: inline-block;
  padding-block: .6rem;
  margin-block: -.35rem;
  font-family: var(--font-serif); font-size: clamp(1.45rem, 1.7vw, 2rem); line-height: 1.15;
  color: var(--fg);
  text-decoration: underline; text-decoration-color: var(--accent-dim); text-decoration-thickness: 1px; text-underline-offset: .12em;
  transition: text-decoration-color .3s, color .3s;
  overflow-wrap: anywhere;
}
.contact-big:hover { color: var(--accent-soft); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.link-arrow { display: inline-block; padding-block: .75rem; margin-block: -.25rem; font-size: .85rem; letter-spacing: .08em; text-decoration: none; }
.link-arrow .arrow { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }
@media (min-width: 40rem) {
  .cells { grid-template-columns: 1fr 1fr; }
  .cell:nth-child(odd) { border-right: 1px solid var(--rule); }
  .cell:nth-last-child(2) { border-bottom: 0; }
}

/* The glyph symbols are referenced by <use>: the holder takes no space */
.glyph-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: .82rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 2.5rem var(--space); }
.site-footer p { margin: .35rem 0; }
.site-footer a { display: inline-block; padding-block: .7rem; margin-block: -.7rem; color: var(--muted); }
.site-footer a:hover { color: var(--fg); }
.footer-brand { color: var(--fg); letter-spacing: .32em; font-weight: 600; font-size: .78rem; margin-bottom: 1rem !important; }
.footer-small { margin-top: 1.25rem !important; }

/* ---------- 404: the finished sketch, small, on its sheet ---------- */
.hero-404 { min-height: calc(100svh - var(--header-h)); display: grid; place-content: center; justify-items: center; text-align: center; padding: var(--section) var(--space); }
.scene-small { width: min(100%, 440px); aspect-ratio: 13 / 10; margin-bottom: 1.5rem; }
.scene-small .tilt { inset: 4% 2%; }
.hero-code { position: relative; display: grid; margin: 0; font-family: var(--font-serif); font-size: clamp(5rem, 14vw, 8rem); line-height: 1; }
.hero-code > span { grid-area: 1 / 1; }
.code-outline { color: transparent; -webkit-text-stroke: 1px var(--accent-dim); }
.code-fill { color: var(--accent); }
.hero-404 .hero-sub { margin: 1rem 0 0; font-size: 1.5rem; font-family: var(--font-serif); font-weight: 400; }
.hero-404 .hero-lede { margin: 1rem auto 2rem; }

/* ---------- Single column (< 64rem): the stage sticks under the header, the content scrolls beneath it ---------- */
@media (max-width: 63.99rem) {
  .stage-col { display: contents; }
  .stage {
    position: sticky;
    top: var(--header-h);
    z-index: 2;
    height: var(--stage-h);
    margin-inline: calc(-1 * var(--space));
    background: var(--bg);
    grid-template-rows: minmax(0, 1fr);
  }
  /* The content scrolls under the stage and the header: the shadow lifts the stage off the dark and the paper alike */
  .stage { box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55); }
  /* The pinned stage sits right under the header: glass would only show the text scrolling beneath */
  html.is-scrolled .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .phase { position: absolute; left: 1rem; top: .8rem; z-index: 1; max-width: calc(100% - 2rem); }
  .hero { padding-top: 2rem; }
  /* Anchor targets and focused controls land under the stuck stage, not behind it */
  html { scroll-padding-top: calc(var(--header-h) + var(--stage-h)); }
  .section-studio { padding-top: clamp(3rem, 8vw, 5rem); }
}
@media (max-width: 39.99rem) {
  .service { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; }
  .service-num { grid-column: 1; grid-row: 1; padding-top: 0; margin-bottom: .4rem; }
  .service-body { grid-column: 1; grid-row: 2; }
  .service .icon { grid-column: 2; grid-row: 1 / 3; align-self: start; width: 3.4rem; height: 3.4rem; }
  /* The five words fit one 358 px row at this size and tracking */
  .phase, .build-hint { font-size: .6rem; letter-spacing: .1em; }
}
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .phase, .build-hint { font-size: .66rem; }
  .hero-title { font-size: clamp(3.4rem, 8.8vw, 4.6rem); }
  .hero-lede, .section-lede { max-width: 40rem; }
  .prose { max-width: 46rem; }
}
/* Short viewports (phone landscape): the stage flows with the page instead of sticking */
@media (max-width: 63.99rem) and (max-height: 500px) {
  .stage { position: relative; top: auto; height: 70svh; }
  html { scroll-padding-top: var(--header-h); }
}

/* ---------- Two columns (≥ 64rem): sticky stage left, all content right ---------- */
@media (min-width: 64rem) {
  .page {
    display: grid;
    grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
    column-gap: clamp(2rem, 4vw, 4.5rem);
  }
  .stage-col { grid-column: 1; grid-row: 1; }
  .content { grid-column: 2; grid-row: 1; min-width: 0; }
  .stage {
    position: sticky; top: var(--header-h);
    height: calc(100svh - var(--header-h));
    padding: 1.25rem 0 1rem;
    row-gap: .8rem;
  }
  .stage .scene { margin: 1.5rem 0 0; }
  .phase { justify-content: center; }
  .build-hint { top: 3.9rem; right: 1.4rem; }
  .hero { min-height: calc(100svh - var(--header-h)); padding: 2rem 0 3rem; }
  .hero-title { font-size: clamp(3rem, 4.3vw, 3.9rem); }
  .section-contact { margin-inline: 0; padding-inline: clamp(1.5rem, 3.5vw, 3rem); }
  .section-contact .contact-sheet { max-width: none; }
}

/* ---------- Without JS, or without motion: the stage flows with the page and the house is complete ---------- */
html:not(.js) .stage { position: relative; top: auto; }
html:not(.js) { scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  .stage { position: relative; top: auto; }
  .build-hint { display: none; }
  html { scroll-padding-top: var(--header-h); }
}

/* ---------- Print: paper, nothing sticky, the diorama in flow (hidden states are cancelled in motion.css) ---------- */
@media print {
  html { color-scheme: light; }
  body::before { display: none; }
  .site-header { position: static; }
  .site-header .progress, .build-hint { display: none; }
  .page { display: block; }
  .hero { min-height: auto; }
  .stage { position: static; height: auto; margin: 0; background: none; box-shadow: none; }
  .scene, .stage .scene { height: auto; margin: 0; background: none; box-shadow: none; border-radius: 0; }
  .scene::after { display: none; }
  .scene .iso { width: min(100%, 420px); margin: 0 auto; }
  .tilt { position: static; }
  .section-contact { background: none; margin-inline: 0; padding-inline: 0; }
  .btn-solid { background: none; color: var(--fg); }
}

/* Legal pages (privacy) */
.legal { max-width: 46rem; margin: 0 auto; padding: var(--section) var(--space); }
.legal-title { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; }
.legal-block { margin-top: 2.75rem; }
.legal-heading { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--accent-soft); margin-bottom: .75rem; }
.legal-body { color: var(--muted); }
.legal-body p { margin: 0 0 .9em; }
.legal-body ul { margin: 0 0 .9em 1.1em; padding: 0; }
.legal-body li { margin-bottom: .4em; }
.legal-body strong { color: var(--fg); font-weight: 600; }
.legal-body code { font-size: .9em; color: var(--fg); }
.legal-updated { margin-top: 3rem; color: var(--muted); font-size: .85rem; }
