/* Húrin full pitch: shared section system (qa/full-pitch/PLAN.md 4, with reviews 13 and 14 applied).
   Foundation-owned (PLAN 8.5). Page CSS (css/pages/<slug>.css) holds page layout only and never restyles
   these patterns; a needed shared change goes to the foundation owner.
   Patterns: D-HE dark hero, D-FT dark feature (switcher), D-ST dark statement, L-ED light editorial,
   L-PH light photo under clear glass, L-PA light paper. Tone reasons (craft 1): dark = stage | statement |
   night-or-orbit; light = daylight | paper. Sharp edges everywhere; color only as meaning. */

/* 1. Tokens ---------------------------------------------------------------------------------------- */
:root {
  --ink: #171a1b; --paper: #ffffff; --field: #f4f4f0; --pale: #eceeed; --muted: #535958; --hairline: #c2c7c4;
  --night: #0b0c0d; --night-2: #111314; --night-line: rgba(255,255,255,.16); --night-text: #e9ebea; --night-muted: #a9afac;
  --act: #B31942;                          /* one active instruction only */
  --pending: #9A6A12; --pending-dark: #E3A548; /* pending, queued, awaiting review */
  --done: #1C7A4B; --done-dark: #4FB37F;   /* confirmed, sent, verified */
  --focus: #0A3161; --focus-dark: #8FB1DD; /* focus outline only */
  --head: 'Chakra Petch', sans-serif; --body: 'Chakra Petch', sans-serif;
  --accent: 'Hurin Angular', 'Chakra Petch', sans-serif;
  --slant: 11deg; --tan: .19438;           /* tan(11deg) */
  --render-saturation: .55;                /* dark feature media, galleries and figures (decision 4) */
  --pad: clamp(22px, 5vw, 86px);
  --wrap: max(var(--pad), calc((100% - 1520px) / 2));
  --header-space: 112px;
}
@media (max-width: 760px) { :root { --pad: 20px; --header-space: 92px; } }

body { font: 400 18px/1.5 var(--body); }
main { display: block; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[data-tone="dark"] :is(a, button, [tabindex], summary):focus-visible,
html[data-header-tone="dark"] .site-header :is(a, button):focus-visible { outline-color: var(--focus-dark); }
.wrap { position: relative; z-index: 1; padding-inline: var(--wrap); }

/* 2. Header ---------------------------------------------------------------------------------------- */
/* One continuous glass fill covers the header and its surrounding band. Only the
   thin parallelogram outline separates the bar, with inverse tones on dark scenes. */
.header-band {
  position: fixed; z-index: 29; top: 0; left: 0; right: 0; height: 98px; pointer-events: none;
  background: rgba(240,242,241,.76);
  -webkit-backdrop-filter: blur(14px) saturate(.25); backdrop-filter: blur(14px) saturate(.25);
  transition: background-color .16s ease;
}
html[data-header-tone="dark"] .header-band { background: rgba(13,15,16,.86); }
@media (max-width: 760px) { .header-band { height: 82px; } }
@media (prefers-reduced-motion: reduce) { .header-band { transition: none; } }
.site-header { isolation: isolate; }
.site-header .brand { position: relative; z-index: 1; display: flex; align-items: center; min-height: 44px; }
.brand .brand-white { display: none; }
html[data-header-tone="dark"] .brand .brand-black { display: none; }
html[data-header-tone="dark"] .brand .brand-white { display: block; }
.header-frost, .nav-frost, .nav-sheet-frost {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .16s ease;
  background: rgba(11,12,13,.82); -webkit-backdrop-filter: blur(16px) saturate(0); backdrop-filter: blur(16px) saturate(0);
  clip-path: polygon(var(--glass-cut, 14px) 0, 100% 0, calc(100% - var(--glass-cut, 14px)) 100%, 0 100%);
}
.nav-sheet-frost { display: none; }
html[data-header-tone="dark"] .site-header,
html[data-header-tone="dark"] .site-header nav,
html[data-header-tone="dark"] .site-header nav.liquid-glass-host { color: var(--night-text); }
html[data-header-tone="dark"] :is(.header-frost, .nav-frost, .nav-sheet-frost) { opacity: 1; }
/* The glass stays mounted and fades (never display or visibility, which would leave a stale frame). */
.site-header .liquid-glass-layer { transition: opacity .16s ease, background-color .16s ease; }
.site-header .liquid-glass-layer .glass-surface { transition: opacity .16s ease; }
/* The band provides the material once, so no second white lens or broad rim is stacked inside it. */
.site-header > .liquid-glass-layer { background: transparent; }
.site-header > .liquid-glass-layer > .glass-surface { opacity: 0; }
.site-header > .header-frost { opacity: 0 !important; }
html:not(.liquid-glass-light-ready) .site-header::before { background: transparent !important; }
html:not(.liquid-glass-light-ready) .site-header::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border: 1px solid currentColor; transform: skewX(-11deg);
}
html[data-header-tone="dark"] .site-header .liquid-glass-layer { background: transparent; }
html[data-header-tone="dark"] .site-header .liquid-glass-layer .glass-surface { opacity: 0; }
html[data-header-tone="dark"] .site-header .site-glass-outline polygon { stroke: rgba(233,235,234,.72); }
html[data-header-tone="dark"] .site-header .button.liquid-glass-host,
html[data-header-tone="dark"] .site-header .menu-toggle.liquid-glass-host { color: var(--night-text); }
html[data-header-tone="dark"] .site-header .button .site-glass-outline polygon,
html[data-header-tone="dark"] .site-header .menu-toggle .site-glass-outline polygon { stroke: rgba(233,235,234,.82); }
html[data-header-tone="dark"] .menu-lines { border-color: var(--night-text); }
html[data-header-tone="dark"] .site-header::before { background: transparent !important; }

.site-header nav { position: relative; z-index: 1; }
.nav-group { display: flex; align-items: center; }
.nav-trigger {
  display: flex; align-items: center; gap: 9px; padding: 15px 0; background: none; border: 0; color: inherit; cursor: pointer;
  font: 500 14px/1.3 var(--head); text-transform: uppercase; letter-spacing: .11em;
}
.nav-trigger .ichthys-direction { width: 11px; height: 11px; transition: transform .16s ease; }
.nav-trigger[aria-expanded="true"] .ichthys-direction { transform: rotate(-90deg); }
.nav-trigger.is-current, .site-header nav > a[aria-current="page"], .nav-links a[aria-current="page"] b { position: relative; }
.nav-trigger.is-current::after, .site-header nav > a.nav-link[aria-current="page"]::after {
  content: ''; position: absolute; left: -8px; right: -8px; top: 9px; bottom: 9px; border: 1px solid currentColor; transform: skewX(-11deg); opacity: .55; pointer-events: none;
}
.nav-label { display: none; }
.nav-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 2; padding: 26px clamp(28px, 3.4vw, 52px) 30px;
  color: var(--ink); isolation: isolate;
}
.nav-panel[hidden] { display: none; }
html:not(.liquid-glass-light-ready) .nav-panel { background: rgba(255,255,255,.94); }
html[data-header-tone="dark"] .nav-panel { color: var(--night-text); }
html[data-header-tone="dark"]:not(.liquid-glass-light-ready) .nav-panel { background: transparent; }
.nav-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; }
.nav-links li { border-left: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 22%, transparent); }
.nav-links a { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 12px 16px 14px; text-decoration: none; }
.nav-links a b { font: 500 14px/1.3 var(--head); text-transform: uppercase; letter-spacing: .1em; }
.nav-links a span { font: 400 15px/1.35 var(--body); color: var(--muted); }
html[data-header-tone="dark"] .nav-links a span { color: var(--night-muted); }
.nav-links a:hover b, .nav-links a:focus-visible b { text-decoration: underline; text-underline-offset: 5px; }
.nav-links a[aria-current="page"] b::after { content: ''; position: absolute; left: -6px; right: -6px; top: -3px; bottom: -3px; border: 1px solid currentColor; transform: skewX(-11deg); opacity: .55; }
.pending-mark { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--pending); vertical-align: .08em; font-style: normal; }
[data-tone="dark"] .pending-mark, html[data-header-tone="dark"] .site-header .pending-mark { background: var(--pending-dark); }

@media (min-width: 761px) {
  .site-header #navigation, .site-header #navigation.liquid-glass-host { position: static; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .nav-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-trigger { font-size: 12px; }
}
@media (max-width: 760px) {
  .nav-sheet-frost { display: block; }
  .site-header nav { max-height: calc(100svh - 92px); overflow-y: auto; overscroll-behavior: contain; padding: 22px 30px 26px; gap: 6px; }
  .site-header nav.open { align-items: stretch; }
  .nav-group { display: block; }
  .nav-trigger { display: none; }
  .nav-panel, .nav-panel[hidden] { display: block; position: static; padding: 0 0 10px; background: none !important; }
  .nav-panel > .liquid-glass-layer, .nav-panel > .nav-frost { display: none; }
  .nav-label { display: block; margin: 6px 0 2px; font: 400 12px/1.7 var(--accent); letter-spacing: .045em; text-transform: uppercase; opacity: .7; }
  .nav-links { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .nav-links li { border: 0; }
  .nav-links a { padding: 10px 0; min-height: 44px; justify-content: center; }
  .nav-links a b { font-size: 15px; }
  .nav-links a span { display: none; }
  .site-header nav > a.nav-link { font-size: 16px; padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
  .site-header nav > .button { margin-top: 12px; align-self: start; }
  .menu-toggle { min-height: 44px; }
  html[data-header-tone="dark"] .site-header nav { color: var(--night-text); }
  html[data-header-tone="dark"]:not(.liquid-glass-light-ready) .site-header nav { background: transparent; }
}

/* 3. Footer ---------------------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--night-text); padding: 72px 0 30px; }
.footer-brand { display: inline-block; }
.footer-brand img { width: min(400px, 60vw); height: auto; }
.footer-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.footer-label { font: 400 12px/1.7 var(--accent); letter-spacing: .045em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 14px; }
.footer-map ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-map a { display: inline-flex; align-items: center; min-height: 32px; font: 400 16px/1.3 var(--body); text-decoration: none; }
.footer-map a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer .footer-bottom { flex-wrap: wrap; align-items: center; color: var(--night-muted); margin-top: 56px; }
.site-footer .footer-bottom a { color: var(--night-text); }
@media (max-width: 760px) {
  .footer-map { grid-template-columns: 1fr 1fr; }
  .footer-map > div:last-child { grid-column: 1 / -1; }
  .footer-map a { min-height: 44px; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* 4. Section shell --------------------------------------------------------------------------------- */
main > section.sec[data-tone] { position: relative; isolation: isolate; padding-inline: 0; overflow: clip; }
.sec[data-tone="dark"] { background: var(--night); color: var(--night-text); }
.sec[data-tone="light"] { background: var(--paper); color: var(--ink); }
.sec[data-tone="light"].is-field { background: var(--field); }
.sec[data-tone="light"].is-pale { background: var(--pale); }
main > .sec:first-child { padding-top: var(--header-space); }
.sec h1 { font: 300 clamp(52px, 8.2vw, 136px)/.9 var(--head); letter-spacing: -.028em; text-transform: uppercase; margin: 0; overflow-wrap: anywhere; }
.sec h2 { font-weight: 300; }
/* Large headings wrap in balanced lines, so no heading ends on a lone word ("END.", "IT."). */
.sec :is(h1, h2, h3), .display { text-wrap: balance; }
.sec p { max-width: 62ch; }
.sec [data-tone="dark"], .sec[data-tone="dark"] { --hair: var(--night-line); --soft: var(--night-muted); }
.sec[data-tone="light"] { --hair: var(--hairline); --soft: var(--muted); }

/* Labels: Hurin Angular at label size with the ichthys; bracketed codes in the same face (craft 32). */
.label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0; font: 400 13px/1.7 var(--accent); letter-spacing: .045em; text-transform: uppercase; font-synthesis: none; }
.label .ichthys-direction { width: 14px; height: 14px; }
.label .code { opacity: .72; }
.display { margin: 0; font: 300 clamp(42px, 6vw, 98px)/1 var(--head); letter-spacing: -.025em; text-transform: uppercase; max-width: 18ch; }
.lede { font: 400 clamp(17px, 1.35vw, 20px)/1.5 var(--body); max-width: 56ch; }
.caption, .sec .caption { margin: 0; font: 500 12px/1.5 var(--head); letter-spacing: .06em; color: var(--soft, var(--muted)); max-width: none; }
.caption .mechanism { display: inline; }
.pending { display: inline-flex; align-items: center; margin: 0; font: 500 12px/1.5 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.illustration-note { font: 500 11px/1.5 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--soft, var(--muted)); }

/* Buttons: light glass in light sections (data-glass="control"), outlined parallelogram elsewhere. */
.button.button--outline { color: inherit; background: none; gap: 26px; }
.button.button--outline::before { content: ''; position: absolute; inset: 0; z-index: -1; border: 1px solid currentColor; background: transparent; transform: skewX(-11deg); opacity: .8; transition: opacity .2s, background-color .2s; }
.button.button--outline:hover::before { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.button .ichthys-direction { width: 18px; height: 18px; }
.text-link .ichthys-direction { width: 16px; height: 16px; }
.actions { flex-wrap: wrap; }

/* Down cue and next-links row */
.down-cue { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: inherit; }
.down-cue .ichthys-direction { width: 24px; height: 24px; }
.ed-row, .next-links {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 2fr); gap: 24px 40px; align-items: start;
  padding-top: 22px; border-top: 1px solid var(--hair, var(--hairline));
}
.ed-row__label { font: 400 12px/1.7 var(--accent); letter-spacing: .045em; text-transform: uppercase; margin: 0; }
.ed-row__desc { font: 500 13px/1.45 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--soft, var(--muted)); margin: 0; }
.ed-row__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.ed-row__links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 500 14px/1.3 var(--head); letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.ed-row__links a .ichthys-direction { width: 13px; height: 13px; }
.next-links { margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 900px) { .ed-row, .next-links { grid-template-columns: 1fr; gap: 10px; } }

/* 5. D-HE dark hero ---------------------------------------------------------------------------------- */
.d-he { min-height: max(680px, 100svh); display: grid; align-items: end; padding-bottom: clamp(36px, 6vh, 72px); }
.d-he > .wrap { display: grid; gap: 28px; padding-top: clamp(40px, 10vh, 120px); }
.d-he h1 { max-width: 14ch; }
.d-he .actions { margin-top: 6px; }
.d-he .down-cue { margin-left: -10px; }

/* D-HE with a full-bleed landscape (home opening). The photo sits behind the heading row; a shade keeps the words,
   the label and the header at AA over the busiest part of the frame, and body text stays in the frost pane. */
.d-he--photo > .d-he__photo { position: absolute; inset: 0; z-index: 0; display: block; margin: 0; }
.d-he__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(var(--render-saturation)) contrast(1.02); }
.d-he--photo::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11,12,13,.6), rgba(11,12,13,0) 18%),
    linear-gradient(to top, rgba(11,12,13,.9), rgba(11,12,13,0) 34%),
    linear-gradient(to right, rgba(11,12,13,.9) 0%, rgba(11,12,13,.8) 36%, rgba(11,12,13,.35) 62%, rgba(11,12,13,.1) 100%);
}
.d-he__caption { margin-top: -6px; }
@media (max-width: 760px) {
  /* Phone: the photo runs full width at its own aspect from the top; page CSS may fill the hero instead. */
  .d-he--photo > .d-he__photo { bottom: auto; }
  .d-he__photo img { height: auto; }
  .d-he--photo::after { background: linear-gradient(to bottom, rgba(11,12,13,.55) 0, rgba(11,12,13,.1) 12%, rgba(11,12,13,.85) 40%, rgba(11,12,13,.92) 100%); }
}

/* Native frost pane: body text never sits directly on a moving background. */
.frost-pane { position: relative; isolation: isolate; max-width: 640px; padding: 22px clamp(34px, 3.4vw, 52px); }
.frost-pane::before {
  content: ''; position: absolute; inset: 0; z-index: -1; transform: skewX(-11deg);
  background: rgba(240,242,241,.76); -webkit-backdrop-filter: blur(12px) saturate(0); backdrop-filter: blur(12px) saturate(0); border: 1px solid #171a1b;
}
[data-tone="dark"] .frost-pane::before { background: rgba(13,15,16,.82); -webkit-backdrop-filter: blur(16px) saturate(0); backdrop-filter: blur(16px) saturate(0); border-color: rgba(233,235,234,.58); }
.frost-pane p { margin: 0; font: 400 clamp(17px, 1.3vw, 19px)/1.5 var(--body); }

/* 6. D-FT dark feature with switcher -------------------------------------------------------------- */
.d-ft { padding-top: clamp(72px, 9vw, 128px); }
.d-ft__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; padding-bottom: clamp(36px, 4.5vw, 64px); }
.d-ft__head { display: grid; gap: 22px; justify-items: start; }
.d-ft__head h2 { margin: 0; font: 300 clamp(44px, 5.6vw, 92px)/1 var(--head); letter-spacing: -.02em; text-transform: uppercase; min-height: 1em; }
.d-ft__head p { margin: 0; color: var(--night-text); font: 400 clamp(17px, 1.3vw, 19px)/1.5 var(--body); min-height: 3em; }
.d-ft__media { position: relative; aspect-ratio: 16 / 9; max-height: 86svh; width: 100%; overflow: hidden; background: var(--night-2); }
.d-ft__media [data-switch-panel] { position: absolute; inset: 0; margin: 0; }
.d-ft__media [data-switch-panel][hidden] { display: none; }
.d-ft__media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(var(--render-saturation)) contrast(1.02); }
.d-ft__media img[src$=".svg"] { object-fit: contain; padding: 4% 6% 9%; filter: none; }
.d-ft__media .plate { position: absolute; inset: 0; }
.d-ft__media .rb-bg { z-index: 0; }
.d-ft__strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: stretch;
  background: rgba(11,12,13,.55); -webkit-backdrop-filter: blur(14px) saturate(0); backdrop-filter: blur(14px) saturate(0);
  border-top: 1px solid var(--night-line); padding-inline: var(--wrap);
}
.d-ft__strip [role="tablist"] { display: flex; flex: 1; min-width: 0; }
.d-ft__strip [role="tab"] {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 56px; padding: 0 14px; background: none; border: 0; cursor: pointer;
  color: var(--night-muted); font: 500 13px/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; text-align: center;
}
.d-ft__strip [role="tab"]:hover { color: var(--night-text); }
.d-ft__strip [role="tab"][aria-selected="true"] { color: #fff; }
.d-ft__strip [role="tab"][aria-selected="true"]::before { content: ''; position: absolute; inset: 10px 8px; border: 1px solid rgba(255,255,255,.85); transform: skewX(-11deg); pointer-events: none; }
.d-ft__strip [role="tab"]:focus-visible { outline-offset: -6px; }
.d-ft__step, .d-ft__current { display: none; }
.d-ft__chip { position: absolute; top: 18px; right: var(--wrap); z-index: 3; }
.rb-gradual { position: absolute; left: 0; right: 0; bottom: 0; height: 7rem; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(11,12,13,0), rgba(11,12,13,.62)); }
.rb-gradual[data-rb-state="mounted"] { background: none; }
.d-ft > .caption, .d-ft__caption { display: block; padding: 14px var(--wrap) 0; }
.d-ft { padding-bottom: clamp(48px, 6vw, 88px); }
@media (max-width: 760px) {
  .d-ft__top { grid-template-columns: 1fr; }
  .d-ft__media { aspect-ratio: 4 / 5; max-height: none; }
  /* The strip sits in the flow at the top of the media (site.js measures it into --strip-h); everything
     absolutely placed in the media starts below it, so the strip never covers a photo, plate or drawing. */
  .d-ft .d-ft__media > :is([data-switch-panel], .plate, .diagram, figure) { top: var(--strip-h, 102px); }
  .d-ft__media img[src$=".svg"] { padding: 6% 4%; }
  .d-ft__strip { position: static; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 0; background: var(--night-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .d-ft__step { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 52px; background: none; border: 0; color: var(--night-text); cursor: pointer; }
  .d-ft__step .ichthys-direction { width: 18px; height: 18px; }
  .d-ft__step[data-switch-prev] .ichthys-direction { transform: rotate(180deg); }
  .d-ft__current { display: flex; align-items: center; justify-content: center; font: 500 14px/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
  .d-ft__strip [role="tablist"] { grid-column: 1 / -1; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-top: 1px solid var(--night-line); }
  .d-ft__strip [role="tablist"]::-webkit-scrollbar { display: none; }
  .d-ft__strip [role="tab"] { flex: 0 0 auto; min-height: 48px; padding: 0 18px; scroll-snap-align: center; }
  .rb-gradual { display: none; }
  .d-ft__chip { top: 12px; right: 12px; }
}

/* 7. D-ST dark statement --------------------------------------------------------------------------- */
.d-st { padding-block: clamp(80px, 10vw, 150px); }
.d-st > .wrap { display: grid; gap: 30px; }
.d-st h2 { margin: 0; font: 300 clamp(42px, 5.6vw, 92px)/1 var(--head); letter-spacing: -.02em; text-transform: uppercase; max-width: 20ch; }
.rule-list { list-style: none; margin: 10px 0 0; padding: 0; max-width: 980px; }
.rule-list li { display: flex; gap: 20px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--hair, var(--night-line)); font: 400 clamp(18px, 1.5vw, 22px)/1.4 var(--body); }
.rule-list li:last-child { border-bottom: 1px solid var(--hair, var(--night-line)); }
.rule-list li > .ichthys-direction { width: 14px; height: 14px; flex: none; }
.spot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 8px; }
.spot-grid > * { min-height: 180px; }
.spot-grid .spot { display: grid; align-content: space-between; gap: 30px; padding: clamp(22px, 2.6vw, 36px); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); }
.spot-grid .spot[data-rb-state="mounted"] { background: none; box-shadow: none; padding: 0; }
.spot-grid .spot[data-rb-state="mounted"] .spotlight-card { height: 100%; display: grid; align-content: space-between; gap: 30px; }
.spot p { margin: 0; font: 400 clamp(18px, 1.5vw, 22px)/1.35 var(--body); }
.spot .label { color: var(--night-muted); }

/* Light inset card inside a dark section: not a switch, does not change the header (craft 3). */
.inset-card { position: relative; background: var(--paper); color: var(--ink); padding: 26px clamp(30px, 3vw, 48px); border-block: 1px solid var(--hairline); clip-path: polygon(22px 0, 100% 0, calc(100% - 22px) 100%, 0 100%); --hair: var(--hairline); --soft: var(--muted); }

/* 8. L-ED light editorial -------------------------------------------------------------------------- */
.l-ed { padding-block: clamp(84px, 10vw, 150px) clamp(56px, 7vw, 96px); }
.l-ed > .wrap { display: grid; gap: clamp(28px, 3.4vw, 44px); }
.l-ed .down-cue { margin-left: -10px; }

/* 9. L-PH light photo under clear glass ------------------------------------------------------------ */
.l-ph { min-height: clamp(640px, 100svh, 940px); display: grid; align-items: center; padding-block: clamp(96px, 12vh, 140px) 72px; }
.l-ph__photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: grayscale(1); }
.l-ph[data-glass-saturation=".55"] .l-ph__photo { filter: saturate(.55); }
.l-ph__pane { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; width: min(680px, 100%); padding: clamp(36px, 4vw, 58px) clamp(48px, 6vw, 96px); color: var(--ink); }
.l-ph__pane h2, .l-ph__pane h1 { margin: 0; }
.l-ph__pane h2 { font: 300 clamp(40px, 4.8vw, 78px)/1 var(--head); letter-spacing: -.02em; text-transform: uppercase; }
.l-ph__pane h1 { font: 300 clamp(36px, 4.4vw, 72px)/1 var(--head); letter-spacing: -.02em; text-transform: uppercase; }
.l-ph__pane p { margin: 0; font: 400 clamp(17px, 1.3vw, 19px)/1.5 var(--body); }
.l-ph > .wrap { width: 100%; display: flex; }
.l-ph[data-pane="right"] > .wrap { justify-content: flex-end; }
html:not(.liquid-glass-light-ready) .l-ph__pane { background: rgba(255,255,255,.80); clip-path: polygon(var(--glass-cut, 40px) 0, 100% 0, calc(100% - var(--glass-cut, 40px)) 100%, 0 100%); }
.l-ph > .caption { position: absolute; right: var(--wrap); bottom: 18px; z-index: 1; padding: 6px 12px; color: var(--ink); background: rgba(255,255,255,.80); -webkit-backdrop-filter: blur(8px) saturate(0); backdrop-filter: blur(8px) saturate(0); }
@media (max-width: 760px) {
  .l-ph { align-items: end; min-height: 760px; padding-block: 120px 64px; }
  .l-ph__pane { padding: 30px 34px; }
  .l-ph > .caption { left: 12px; right: 12px; bottom: 12px; }
}

/* 10. L-PA light paper --------------------------------------------------------------------------- */
.l-pa { padding-block: clamp(72px, 9vw, 136px); }
.l-pa > .wrap { display: grid; gap: clamp(28px, 3.4vw, 48px); }

/* 11. Shared blocks ----------------------------------------------------------------------------- */
/* Figures */
.figure { margin: 0; display: grid; gap: 10px; }
.figure img { width: 100%; height: auto; display: block; filter: saturate(var(--render-saturation)) contrast(1.02); }
.figure img[src$=".svg"] { filter: none; }
.figure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }

/* Plates: white on graphite or ink on paper. */
.plate { position: relative; margin: 0; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--night-2); color: var(--night-text); }
.plate img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.plate--paper { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.plate--clear { background: transparent; box-shadow: inset 0 0 0 1px var(--night-line); }
.d-ft__media .plate--clear { position: absolute; inset: 0; z-index: 1; }
.d-ft__media .plate { aspect-ratio: auto; }
.plate .pending { position: absolute; left: 18px; bottom: 14px; z-index: 2; }
[data-rb="PixelCard"] { display: block; position: relative; }
.plate[data-rb="PixelCard"] .pixel-card { position: absolute; inset: 0; }
.plate[data-rb="PixelCard"] > img, .plate[data-rb="PixelCard"] .rb-adopt > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5% 6% 14%; }
[data-rb="PixelCard"]:not([data-rb-state]) { background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); }

/* Definition rows. */
.design-language, .facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.design-language > div, .facts > div { padding: 20px 0 24px; border-top: 1px solid var(--hair, var(--hairline)); }
.design-language dt, .facts dt { font: 400 12px/1.7 var(--accent); letter-spacing: .045em; text-transform: uppercase; margin-bottom: 8px; }
.design-language dd, .facts dd { margin: 0; font: 400 17px/1.5 var(--body); }
.views { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.views li { padding: 14px 0; border-top: 1px solid var(--hair, var(--hairline)); font: 400 17px/1.45 var(--body); }
@media (max-width: 1000px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .design-language, .facts { grid-template-columns: 1fr; } }

/* Gallery: static CSS columns; Masonry lays the same figures out when it mounts. */
.gallery { columns: 3 300px; column-gap: 16px; }
.gallery > figure { break-inside: avoid; margin: 0 0 16px; display: grid; gap: 8px; }
.gallery img { width: 100%; height: auto; display: block; filter: saturate(var(--render-saturation)) contrast(1.02); }
.gallery[data-rb-state="mounted"] { columns: auto; }
.gallery[data-rb-state="mounted"] figure { margin: 0; padding-bottom: 16px; display: grid; gap: 8px; }

/* Story stack: static list; ScrollStack stacks the same cards on desktop when it mounts. */
.stack { display: grid; gap: 16px; }
.stack > .card { display: grid; gap: 14px; align-content: start; min-height: 16rem; padding: clamp(24px, 3vw, 40px); background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.stack[data-rb-state="mounted"] > * { box-shadow: none; }
.card h3 { margin: 0; font: 300 clamp(28px, 3vw, 44px)/1.05 var(--head); text-transform: uppercase; letter-spacing: -.01em; }
.card p { margin: 0; font: 400 17px/1.5 var(--body); }
.card .card__link { justify-self: end; }

/* FlowingMenu static form: the same links as a plain hairline list. */
.flowing { display: block; }
.flowing:not([data-rb-state]) { border-top: 1px solid var(--hair, var(--hairline)); }
.flowing:not([data-rb-state]) > a { display: block; padding: 16px 0; border-bottom: 1px solid var(--hair, var(--hairline)); font: 300 clamp(32px, 4.4vw, 64px)/1.1 var(--head); text-transform: uppercase; letter-spacing: -.01em; text-decoration: none; }
.flowing:not([data-rb-state]) > a:hover { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.flowing[data-rb-state] .menu__item { border-top: 1px solid var(--hair, var(--hairline)); }

/* Night or orbit: the three zoom keyframes crossfade behind the heading row (orbit, coast, forest);
   words sit on them, body text never does. Scenery frames stay grey (saturation 0, craft 34). */
.d-he--crossfade { align-items: end; }
.d-he--crossfade > .crossfade { position: absolute; inset: 0; z-index: 0; }

/* Status chip (meaning only: pending amber, done green). */
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; font: 500 12px/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; }
.chip--pending { color: var(--pending-dark); box-shadow: inset 0 0 0 1px currentColor; }
.chip--pending[data-rb-state="mounted"] { box-shadow: none; padding: 0; }
.chip--done { color: var(--done-dark); box-shadow: inset 0 0 0 1px currentColor; }
.chip .chip__mark { width: 8px; height: 8px; background: currentColor; }
.sec[data-tone="light"] .chip--pending { color: var(--pending); }
.sec[data-tone="light"] .chip--done { color: var(--done); }

/* Two faces of one figure (PixelTransition): render / drawing toggle. */
.faces { display: grid; gap: 12px; justify-items: start; }
.faces [data-rb-face] { margin: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline); }
.faces [data-rb-face] img { width: 100%; height: 100%; object-fit: cover; }
.faces [data-rb-face] img[src$=".svg"] { object-fit: contain; padding: 6%; }
.faces .rb-faces-live { width: 100%; }
.toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px; background: none; border: 0; position: relative; cursor: pointer; color: inherit; font: 500 13px/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; }
.toggle::before { content: ''; position: absolute; inset: 4px 0; border: 1px solid currentColor; transform: skewX(-11deg); opacity: .7; }
.toggle[aria-pressed="true"]::before { background: color-mix(in srgb, currentColor 10%, transparent); opacity: 1; }

/* Keyframe crossfade (environments): first frame first, advances only in view; visible square control. */
.crossfade { position: relative; overflow: hidden; background: var(--night); }
.crossfade [data-frame] { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); opacity: 0; transition: opacity 1.6s ease; }
.crossfade [data-frame].is-shown { opacity: 1; }
html:not(.js) .crossfade [data-frame]:first-of-type { opacity: 1; }
.crossfade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,12,13,.78), rgba(11,12,13,.15) 60%); pointer-events: none; }
.crossfade .video-control { left: auto; right: var(--wrap); bottom: 24px; }
.video-control { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; background: rgba(11,12,13,.7); color: #fff; border: 1px solid var(--night-line); font: 500 12px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

/* Inline diagrams: the switcher marks the selected group .is-active (site.js [data-hl]). */
.diagram [data-hl], .map-plate [data-hl] { opacity: .35; transition: opacity .25s ease; }
.diagram [data-hl].is-active, .map-plate [data-hl].is-active { opacity: 1; }

/* Layering: content above the background layer. */
.sec > .rb-bg ~ .wrap, .sec > .wrap { position: relative; z-index: 1; }

/* 12. Accessibility fallbacks ------------------------------------------------------------------- */
@media (prefers-reduced-transparency: reduce) {
  .header-band { background: #f0f2f1; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html[data-header-tone="dark"] .header-band { background: #0d0f10; }
  .header-frost, .nav-frost, .nav-sheet-frost { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .frost-pane::before { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  [data-tone="dark"] .frost-pane::before { background: var(--night-2); }
  /* Photo opening: the words sit on solid night; the photo shows only beyond them. */
  .d-he--photo::after { background: linear-gradient(to right, var(--night) 0%, var(--night) 50%, rgba(11,12,13,.45) 66%, rgba(11,12,13,.2) 100%); }
  .d-ft__strip { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rb-gradual { background: none; border-top: 1px solid var(--night-line); }
  .l-ph > .caption { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html:not(.liquid-glass-light-ready) .nav-panel, html:not(.liquid-glass-light-ready) .l-ph__pane { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .header-frost, .nav-frost, .nav-sheet-frost, .site-header .liquid-glass-layer, .nav-trigger .ichthys-direction, .crossfade [data-frame],
  .diagram [data-hl], .map-plate [data-hl] { transition: none; }
}

/* Reserved content: the three approved points share one clear photo pane. */
.reserved-points { display: grid; gap: 28px; }
.reserved-points > div + div { border-top: 1px solid var(--hairline); padding-top: 24px; }
.reserved-points h2 { font-size: clamp(28px, 3vw, 46px); margin-bottom: 14px; }
.reserved-points p { margin: 0; }
.home-closing { padding-block: clamp(40px, 5vw, 72px); }
.home-closing h2 { margin: 0; font: 300 clamp(22px, 2.5vw, 36px)/.9 var(--head); letter-spacing: -.028em; text-transform: uppercase; overflow-wrap: anywhere; }
.reach-pane a { overflow-wrap: anywhere; text-underline-offset: 5px; }
/* Keep the fixed bar inside the viewport while WebKit recalculates after loading and scrolling. */
.site-header { width: calc(100vw - 40px); max-width: calc(100vw - 40px); }
@media (max-width: 760px) { .site-header { width: calc(100vw - 20px); max-width: calc(100vw - 20px); } }
/* The clipped photo backing is opaque immediately, including before its React child mounts. */
@media (prefers-reduced-transparency: reduce) { .l-ph__pane > .liquid-glass-layer { background: #fff; } }


/* Upright type follows the two parallel sides of each editorial glass pane.
   The shared script translates each natural line; it never shears the lettering. */
.sloped-flow { --flow-inset: 40px; padding-inline: 0; }
.frost-pane.sloped-flow { --flow-inset: 30px; }
.sloped-flow .sloped-flow-text { width: var(--flow-width); max-width: none; margin-inline: 0; }
.sloped-flow-word { display: inline-block; white-space: pre; transform: translateX(var(--flow-x, 0px)); }
.sloped-flow > .label { transform: translateX(var(--flow-label-x, 0px)); }
.sloped-flow > .reserved-points { width: 100%; }
.sloped-flow .reserved-points > div { position: relative; }
.sloped-flow .reserved-points > div + div { border-top: 0; }
.sloped-flow .reserved-points > div + div::before {
  content: ''; position: absolute; top: 0; left: var(--flow-rule-x, 0px);
  width: var(--flow-width); border-top: 1px solid var(--hairline);
}
.frost-pane.sloped-flow::before {
  transform: none;
  border: 0;
  clip-path: polygon(var(--glass-cut) 0, 100% 0, calc(100% - var(--glass-cut)) 100%, 0 100%);
}
.frost-pane-outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.frost-pane-outline polygon { fill: none; stroke: #171a1b; stroke-width: 1; vector-effect: non-scaling-stroke; }
[data-tone="dark"] .frost-pane-outline polygon { stroke: rgba(233,235,234,.58); }
@media (max-width: 760px) {
  .sloped-flow { --flow-inset: 22px; }
  .frost-pane.sloped-flow { --flow-inset: 22px; }
}

/* 12. L-LG legal text (Oct 20, 2026): privacy, terms, accessibility --------------------------------
   Plain reading text on paper: no hero, no background, no glass, sharp edges. Headings keep the case
   they are written in. The measure holds lines near 70 characters at every width above a phone. */
.l-lg { padding-block: clamp(56px, 7vw, 104px) clamp(72px, 9vw, 128px); }
main > .l-lg:first-child { padding-top: calc(var(--header-space) + clamp(36px, 5vw, 80px)); }
.legal { max-width: 37rem; color: var(--ink); }
.legal h1 { font: 300 clamp(40px, 5.4vw, 76px)/1.02 var(--head); letter-spacing: -.02em; text-transform: none; margin: 0; overflow-wrap: break-word; }
.legal-meta { display: grid; gap: 2px; margin: 26px 0 36px; padding: 4px 0 4px 16px; border-left: 2px solid var(--ink); font: 500 13px/1.5 var(--head); letter-spacing: .06em; color: var(--muted); }
.legal .legal-meta p { margin: 0; font: inherit; }
.legal-meta strong { font-weight: 600; color: var(--ink); }
.legal h2 { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--head); letter-spacing: -.005em; text-transform: none; margin: 52px 0 14px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.legal p, .legal li { font: 400 18px/1.62 var(--body); max-width: none; }
.legal p { margin: 0 0 16px; }
.legal strong { font-weight: 600; }
.legal ul { margin: 0 0 18px; padding-left: 22px; list-style: square; }
.legal li { margin: 0 0 8px; padding-left: 4px; }
.legal li::marker { color: var(--muted); }
@media (max-width: 760px) {
  .legal h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .legal h2 { margin-top: 40px; }
  .legal p, .legal li { font-size: 17px; }
}

/* Legal links and copyright row in the shared footer (every page). */
.site-footer .footer-legal { text-transform: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 18px; color: var(--night-muted); font: 500 12px/1.4 var(--head); letter-spacing: .06em; }
.footer-legal nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.footer-legal nav a { text-transform: none; display: inline-flex; align-items: center; min-height: 32px; color: var(--night-text); text-decoration: none; }
.footer-legal nav a:hover, .footer-legal nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.footer-legal .sep { color: var(--night-muted); }
@media (max-width: 760px) {
  .site-footer .footer-legal { flex-direction: column; align-items: flex-start; }
  .footer-legal nav a { min-height: 44px; }
}
