/* ─────────────────────────────────────────────────────────────────
   Timeward — field.css
   The modern layer: ledger field, chain rail, grain, HUD framing.
   Loaded after style.css. Strictly monochrome — the only chroma is
   --prism, the hairline glint already defined in the base sheet.
   ───────────────────────────────────────────────────────────────── */

:root {
  --grain-opacity: 0.045;
  --hud: color-mix(in srgb, var(--ink) 26%, transparent);
}

/* ── film grain ──────────────────────────────────────────────────
   A fixed turbulence plate over everything. It is what stops a flat
   near-black from looking like an empty div. */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 3; pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/>\
<feColorMatrix type='saturate' values='0'/></filter>\
<rect width='220' height='220' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: grain-shift 7s steps(6) infinite; }
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}
html[data-theme="light"] body::after { --grain-opacity: 0.03; mix-blend-mode: multiply; }

/* ── the stage ─────────────────────────────────────────────────── */
.hero { min-height: min(92vh, 900px); }

/* horizon glow sitting behind the copy, so the type never fights the field */
.hero::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 46%;
  z-index: 1; pointer-events: none;
  background: linear-gradient(to right, var(--paper) 0%, color-mix(in srgb, var(--paper) 55%, transparent) 62%, transparent);
}

/* ── hero HUD framing ───────────────────────────────────────────── */
.hero-copy { position: relative; }
.hero-copy::before {
  content: ""; position: absolute; left: calc(var(--pad-x) * -1 + 6px); top: 4px; bottom: 4px;
  width: 1px; background: linear-gradient(to bottom, transparent, var(--hairline-2) 18%, var(--hairline-2) 72%, transparent);
  opacity: .8;
}
@media (max-width: 860px) { .hero-copy::before { display: none; } }

.hero-tag {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ash);
  margin: 0 0 26px;
}
.hero-tag::before {
  content: ""; width: 30px; height: 1px; background: var(--prism); opacity: .85;
}

/* the H1 lines wipe up behind a mask on load */
.display .ln { display: block; overflow: hidden; }
.display .ln > span {
  display: block;
  transform: translateY(105%);
  animation: line-rise 1.15s cubic-bezier(.16,1,.3,1) forwards;
}
.display .ln:nth-child(2) > span { animation-delay: .12s; }
@keyframes line-rise { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .display .ln > span { transform: none; animation: none; }
}

/* breathing status dot */
.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-right: .7em; vertical-align: middle;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: live-pulse 2.6s var(--ease-out) infinite; }
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 45%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ── segment cards, refracted ───────────────────────────────────── */
.card.seg { overflow: hidden; }
.card.seg::before { height: 1px; opacity: .28; transition: opacity .45s var(--ease), height .45s var(--ease); }
.card.seg:hover::before { opacity: 1; height: 2px; }
/* a slow sheen crossing the card on hover — light moving over brushed metal */
.card.seg::after {
  content: ""; position: absolute; inset: -40% -60%;
  background: linear-gradient(74deg, transparent 42%, color-mix(in srgb, var(--ink) 7%, transparent) 50%, transparent 58%);
  transform: translateX(-60%);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.card.seg:hover::after {
  opacity: 1;
  animation: sheen 1.1s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes sheen { to { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .card.seg::after { display: none; } }

/* the index numeral, set large and ghosted in the corner */
.card.seg .seg-n {
  position: absolute; right: 14px; top: 10px;
  font-family: var(--font-mono); font-size: 2.6rem; line-height: 1;
  color: var(--ink); opacity: .05; letter-spacing: -.04em;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card.seg:hover .seg-n { opacity: .11; }

/* ── magnetic CTA ───────────────────────────────────────────────── */
[data-magnet] { transition: transform .35s var(--ease-out), background .25s var(--ease), border-color .25s var(--ease); will-change: transform; }

/* ── statline: give the figures a HUD read ──────────────────────── */
.statline { background: color-mix(in srgb, var(--white) 78%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stat { position: relative; }
.stat::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  opacity: .5; transition: transform .55s var(--ease-out);
}
/* the rule answers the cell you are actually on, not the whole row */
.stat:hover::after { transform: scaleX(1); }
.stat:hover .stat-k { color: var(--graphite); }
.stat-k { transition: color .3s var(--ease); }

/* ── portrait: the same field, stood upright ─────────────────────
   A tall screen gets its own composition rather than a cropped wide
   one: the prism sits high, the fan falls down the screen, and the
   scrim comes up from the bottom so the type lands on solid ground.
   The 19/20 threshold matches the image's own sizes attribute. */
@media (max-aspect-ratio: 19/20) {
  .hero {
    display: flex;
    min-height: 88vh;
    min-height: 88svh;
    align-items: flex-end;
    padding-top: clamp(150px, 30vh, 260px);
    padding-bottom: clamp(40px, 8vw, 72px);
  }
  .hero::after {
    inset: auto 0 0 0; width: auto; height: 80%;
    background: linear-gradient(to top, var(--paper) 10%, color-mix(in srgb, var(--paper) 78%, transparent) 44%, transparent 100%);
  }
}

/* ── touch: what the pointer normally earns, scroll earns instead ──
   No hover on a phone, so the HUD rules and the segment accents key
   off the reveal observer rather than off the cursor. */
@media (hover: none) {
  .statline.in .stat::after { transform: scaleX(1); }
  .statline.in .stat:nth-child(2)::after { transition-delay: .08s; }
  .statline.in .stat:nth-child(3)::after { transition-delay: .16s; }
  .statline.in .stat:nth-child(4)::after { transition-delay: .24s; }
  .card.seg.in::before { opacity: .7; }
  .card.seg.in .seg-n { opacity: .09; }
}

/* ── the corvus needs more height than the old geometric glyph ───── */
.brand .mark { height: 26px; }
.footer .mark { height: 28px; }

/* ── the index: the desk, listed ─────────────────────────────────
   A fund's writing belongs on the page as a register, not behind a
   button. Mono meta left, serif title right, one hairline between. */
.index { border-top: 1px solid var(--hairline); }
.index-row {
  position: relative;
  display: grid; grid-template-columns: minmax(140px, 210px) 1fr 20px;
  gap: clamp(14px, 2.2vw, 40px); align-items: baseline;
  padding: clamp(17px, 1.9vw, 25px) 8px;
  border-bottom: 1px solid var(--hairline);
  transition: background .3s var(--ease), padding-left .3s var(--ease);
}
.index-row::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--prism); opacity: 0; transition: opacity .35s var(--ease);
}
.index-row:hover { background: color-mix(in srgb, var(--white) 62%, transparent); padding-left: 14px; }
.index-row:hover::before { opacity: .55; }
.index-meta {
  font-family: var(--font-mono); font-size: .69rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ash); white-space: nowrap;
}
.index-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.02rem, 1.5vw, 1.28rem); line-height: 1.3; color: var(--ink);
  text-wrap: pretty;
}
.index-go { justify-self: end; color: var(--ash); font-family: var(--font-mono); transition: transform .3s var(--ease-out), color .3s var(--ease); }
.index-row:hover .index-go { transform: translateX(4px); color: var(--gold); }
@media (max-width: 640px) {
  .index-row { grid-template-columns: 1fr 20px; row-gap: 7px; }
  .index-meta { grid-column: 1 / -1; }
  .index-row:hover { padding-left: 8px; }
}

/* ── the person line ─────────────────────────────────────────────
   One name, one role, the links out. Anything more is a bio page. */
.person {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  padding: 20px 22px; border: 1px solid var(--hairline); border-radius: 4px;
  background: color-mix(in srgb, var(--white) 62%, transparent);
  max-width: 62ch;
}
.person-id { display: flex; flex-direction: column; gap: 2px; }
.person .kicker { font-family: var(--font-mono); font-size: .69rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ash); margin: 0; }
.person-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin: 0; }
.person-note { color: var(--slate); font-size: .88rem; margin: 0; flex: 1 1 220px; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  border: 1px solid var(--hairline-2); border-radius: 3px; color: var(--graphite);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.icon-link:hover { color: var(--on-accent); background: var(--gold); border-color: var(--gold); }
.icon-link svg { display: block; }
.person-links { display: flex; gap: 8px; flex: none; }

/* ── footer: the whole map, and the chain it settles on ──────────── */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: 36px 60px; }
.footer-brand { max-width: 46ch; }
.footer-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 32px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col-k {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ash); margin: 0 0 2px;
}
.footer-map a { color: var(--slate); }
.footer-map a:hover { color: var(--ink); }
.chain {
  display: inline-flex; align-items: center; gap: .55em; margin: 16px 0 0;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ash);
}
.chain-v { color: var(--graphite); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; } }
@media (max-width: 340px) { .footer-map { grid-template-columns: 1fr; } }

/* ── keyboard focus: visible, and in the house palette ──────────── */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ═════════════════════════════════════════════════════════════════
   THE COMPOSITION LAYER
   Everything above dresses components. This part sets how the page
   is built: a measured spacing scale, an editorial rail that names
   each section from the margin, and the small corrections that stop
   a long page from reading as a stack of identical boxes.
   ═════════════════════════════════════════════════════════════════ */

:root {
  /* one scale, used everywhere — no arbitrary margins */
  --s-1: 4px;  --s-2: 8px;  --s-3: 14px; --s-4: 22px;
  --s-5: 34px; --s-6: 54px; --s-7: 84px; --s-8: 128px;
  /* the margin column that carries each section's number and name */
  --rail:     clamp(142px, 13.5vw, 186px);
  --rail-gap: clamp(34px, 4.4vw, 68px);
}

/* ── the rail ────────────────────────────────────────────────────
   A section names itself in the margin and argues in the column.
   The label holds position while the argument scrolls past it, so a
   long page stays navigable without a sticky sub-nav. Sections with
   no label are left alone — hence :has(). */
@media (min-width: 1160px) {
  .section-rail:has(> .eyebrow) {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: var(--rail-gap);
    align-items: start;
  }
  .section-rail:has(> .eyebrow) > * { grid-column: 2; min-width: 0; }
  .section-rail > .eyebrow {
    grid-column: 1; grid-row: 1;
    display: block; margin: .5em 0 0;
    color: var(--slate); line-height: 1.6; text-wrap: balance;
  }
  .section-rail > .eyebrow::before { display: block; width: 26px; margin: 0 0 var(--s-3); }
  /* the argument is indented; the evidence runs the full measure and
     squares up under the section label */
  /* the register borrows the same two columns, so its titles start on
     the prose column to the pixel */
  .section-rail > .index .index-row {
    grid-template-columns: var(--rail) minmax(0, 1fr) 20px;
    column-gap: var(--rail-gap);
  }
  .section-rail > .grid:has(> .card),
  .section-rail > .index,
  .section-rail > .statline,
  .section-rail > .person,
  .section-rail > figure { grid-column: 1 / -1; }
}

/* ── type: the parts a studio would set by hand ──────────────────── */
.display {
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.024em; line-height: 1.015;
}
.h2 { font-variation-settings: "opsz" 34; letter-spacing: -0.018em; }
.h3 { font-variation-settings: "opsz" 20; letter-spacing: -0.008em; }
.lede { font-size: clamp(1.06rem, 1.35vw, 1.24rem); line-height: 1.55; letter-spacing: -0.004em; }
.body { line-height: 1.68; }
/* every label in the house is the same object: mono, uppercase, one
   size, one tracking — it was only defined inside cards before */
.kicker {
  font-family: var(--font-mono); text-transform: uppercase;
  color: var(--ash); line-height: 1.5; margin: 0 0 .45em;
}
.eyebrow, .kicker, .stat-k, .index-meta, .footer-col-k {
  font-size: .68rem; letter-spacing: .15em;
}
.h2 { margin-bottom: .34em; }

/* ── section rhythm ─────────────────────────────────────────────── */
.section { padding-block: clamp(72px, 8.6vw, 132px); }
.section--tight { padding-block: clamp(44px, 5.4vw, 78px); }
/* the divider is not a centred line — it opens at the rail and fades out */
.divider {
  background: linear-gradient(90deg,
    var(--hairline-2) 0%, var(--hairline) 26%, var(--hairline) 62%, transparent 100%);
  opacity: .85;
}

/* ── cards: hairline objects, not floating chips ─────────────────── */
.card {
  border-radius: 3px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--white) 96%, transparent),
    color-mix(in srgb, var(--white) 58%, transparent));
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.card:hover {
  transform: none; box-shadow: none;
  border-color: var(--hairline-2);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--white) 100%, transparent),
    color-mix(in srgb, var(--white) 70%, transparent));
}
.card.seg::before { border-radius: 3px 3px 0 0; }

/* ── reveal: shorter travel, longer ease, staggered inside a grid ── */
.reveal { transform: translateY(11px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.grid > .reveal:nth-child(2) { transition-delay: .06s; }
.grid > .reveal:nth-child(3) { transition-delay: .12s; }
.grid > .reveal:nth-child(4) { transition-delay: .18s; }

/* ── the factsheet, registered like a printed plate ──────────────── */
.statline::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  opacity: .5;
  background:
    linear-gradient(var(--hairline-2) 0 0) left    top    / 8px 1px no-repeat,
    linear-gradient(var(--hairline-2) 0 0) left    top    / 1px 8px no-repeat,
    linear-gradient(var(--hairline-2) 0 0) right   top    / 8px 1px no-repeat,
    linear-gradient(var(--hairline-2) 0 0) right   top    / 1px 8px no-repeat,
    linear-gradient(var(--hairline-2) 0 0) left    bottom / 8px 1px no-repeat,
    linear-gradient(var(--hairline-2) 0 0) left    bottom / 1px 8px no-repeat,
    linear-gradient(var(--hairline-2) 0 0) right   bottom / 8px 1px no-repeat,
    linear-gradient(var(--hairline-2) 0 0) right   bottom / 1px 8px no-repeat;
}

/* ── buttons: quieter, and the same weight as the labels around them ── */
.btn { font-size: .76rem; letter-spacing: .09em; padding: .95em 1.5em; }
.btn--ghost { border-color: var(--hairline-2); color: var(--graphite); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--primary { letter-spacing: .08em; }

/* ── long-form: one measure, one rhythm ─────────────────────────── */
.article { max-width: 68ch; }
.article p { line-height: 1.72; }
.article h2 {
  position: relative; padding-top: .6em;
  font-variation-settings: "opsz" 30; font-weight: 600; letter-spacing: -0.015em;
  margin: 2.1em 0 .55em;
}
/* a short keyline opens each turn in the argument */
.article h2::before {
  content: ""; position: absolute; top: 0; left: 0; width: 38px; height: 1px;
  background: var(--hairline-2);
}
.article h3 { font-variation-settings: "opsz" 18; }
.article ul { padding-left: 1.05em; }
.article li { line-height: 1.68; }
.article li::marker { color: var(--ash); }
.tldr { border-left-width: 2px; border-radius: 3px; }
.article figcaption { text-align: left; }

/* cards in a row share a baseline: the link sits on the floor of the
   card, not wherever the copy happens to end */
.grid > .card { display: flex; flex-direction: column; }
.grid > .card > *:last-child { margin-bottom: 0; }
.grid > .card > .backlink { margin-top: auto; padding-top: var(--s-4); }

/* ── the inquiry form, set like the rest of the house ────────────── */
.contact-form .field { display: block; margin-bottom: var(--s-4); }
.contact-form .field .kicker { display: block; margin-bottom: var(--s-2); color: var(--ash); }
.contact-form .input {
  width: 100%; padding: .95em 1em;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 2px;
  font-family: var(--font-mono); font-size: .82rem; line-height: 1.5;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.contact-form .input:hover { border-color: var(--hairline-2); }
.contact-form .input:focus { outline: none; border-color: var(--ink); background: var(--white); }
.contact-form textarea.input { min-height: 136px; resize: vertical; }
.contact-form select.input {
  appearance: none; -webkit-appearance: none; padding-right: 2.4em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none' stroke='%236E6E77' stroke-width='1.4'><path d='M1 1l4.5 4.5L10 1'/></svg>");
  background-repeat: no-repeat; background-position: right 1em center;
}
.form-msg, .news-msg { font-family: var(--font-mono); font-size: .76rem; color: var(--ash); margin-top: var(--s-3); }
.form-msg.err, .news-msg.err { color: var(--ink); }

/* ── cinematic hero ───────────────────────────────────────────────
   The home hero takes the whole first screen. The headline is set at
   poster scale and, once risen, takes one pass of light across it —
   the same light the prism is splitting behind it. */
.hero--cine { min-height: 100vh; min-height: 100svh; }
.hero--cine .display {
  font-size: clamp(2.8rem, 6.3vw, 6.6rem);
  line-height: .98; letter-spacing: -0.028em;
}
.hero--cine .display .ln { padding-bottom: .06em; margin-bottom: -.06em; }  /* keep descenders out of the mask */
.hero--cine .lede { margin-top: 30px !important; max-width: 44ch; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  @media (prefers-reduced-motion: no-preference) {
    .hero--cine .display .ln > span {
      background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 40%, #FFFFFF 48%, var(--chrome-mid) 52%, var(--ink) 60%, var(--ink) 100%);
      background-size: 260% 100%; background-position: 100% 0;
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: line-rise 1.15s cubic-bezier(.16,1,.3,1) forwards,
                 line-sheen 2.4s cubic-bezier(.45,.05,.25,1) 1.05s forwards;
    }
    .hero--cine .display .ln:nth-child(2) > span { animation-delay: .12s, 1.25s; }
  }
}
@keyframes line-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
html[data-theme="light"] .hero--cine .display .ln > span {
  background-image: linear-gradient(100deg, var(--ink) 0%, var(--ink) 40%, #8A8A93 48%, #5A5A63 52%, var(--ink) 60%, var(--ink) 100%);
}
@media (max-aspect-ratio: 19/20) {
  .hero--cine { min-height: 100svh; }
}
@media (max-width: 560px) {
  .hero--cine .display { font-size: clamp(2.5rem, 12vw, 3.6rem); }
}

/* ── the opening ──────────────────────────────────────────────────
   html.tw-intro is set by the head script before first paint, first
   visit of the session only. The veil is down from frame one; field.js
   adds .tw-lift to raise it. The keyframe failsafe raises it anyway if
   the script never runs. */
html.tw-intro::after {
  content: ""; position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  animation: veil-failsafe .8s ease 4s forwards;
}
html.tw-intro.tw-lift::after { animation: veil-out 1.1s cubic-bezier(.65,0,.35,1) forwards; }
/* where the browser can animate a mask, the veil doesn't fade: it opens like an eye —
   a slit of sky, widening, then the lids are gone */
@property --lw { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --lh { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
html.tw-intro.tw-lift::after {
  -webkit-mask: radial-gradient(ellipse var(--lw) var(--lh) at 50% 43%, transparent 94%, #000 100%);
          mask: radial-gradient(ellipse var(--lw) var(--lh) at 50% 43%, transparent 94%, #000 100%);
  animation: lid-open 1.5s cubic-bezier(.65,0,.25,1) forwards;
}
@keyframes lid-open {
  0%   { --lw: 30%;  --lh: 0%; }
  28%  { --lw: 72%;  --lh: 3.5%; }
  40%  { --lw: 80%;  --lh: 4%; }
  100% { --lw: 210%; --lh: 170%; visibility: hidden; }
}
@keyframes veil-out { to { opacity: 0; visibility: hidden; } }
@keyframes veil-failsafe { to { opacity: 0; visibility: hidden; } }

.tw-veil {
  position: fixed; inset: 0; z-index: 91; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
}
/* the bird, then its eye opens: the same eye the home page looks through */
.tw-veil-bird { position: relative; display: block; width: clamp(120px, 16vw, 210px); }
.tw-veil-eye {
  position: absolute; left: 48.16%; top: 10.41%; width: 4.2%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: #030305;
  box-shadow: 0 0 0 1px rgba(245,247,255,.85), 0 0 10px 1px rgba(220,226,255,.8), 0 0 28px 4px rgba(200,212,245,.3);
  transform: scale(0);
  animation: veil-eye .7s cubic-bezier(.2,1.5,.35,1) 1.1s forwards;
}
@keyframes veil-eye { to { transform: scale(1); } }
.tw-veil-mark {
  display: block; width: 100%; height: auto;
  opacity: .96;
  /* the corvus is dark until the light crosses it, then holds a glint */
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.08) 38%, #000 50%, rgba(0,0,0,.45) 62%, rgba(0,0,0,.45) 100%);
          mask-image: linear-gradient(100deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.08) 38%, #000 50%, rgba(0,0,0,.45) 62%, rgba(0,0,0,.45) 100%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  filter: drop-shadow(0 0 0 transparent);
  animation: mark-struck 1.35s cubic-bezier(.5,0,.2,1) .15s forwards;
}
@keyframes mark-struck {
  60%  { filter: drop-shadow(0 0 18px rgba(220,226,255,.35)); }
  to   { -webkit-mask-position: 0 0; mask-position: 0 0; filter: drop-shadow(0 0 6px rgba(220,226,255,.12)); }
}
.tw-veil-line {
  display: block; width: min(240px, 50vw); height: 1px;
  background: var(--prism);
  transform: scaleX(0); opacity: .9;
  animation: line-open 1.1s cubic-bezier(.16,1,.3,1) .35s forwards;
}
@keyframes line-open { to { transform: scaleX(1); } }
html.tw-lift .tw-veil { animation: veil-rise .7s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes veil-rise { to { opacity: 0; transform: scale(1.08); filter: blur(6px); } }
html[data-theme="light"] .tw-veil-mark { filter: invert(1) brightness(.35); animation-name: mark-struck-light; }
@keyframes mark-struck-light { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* while the veil is down, the page holds its breath: the headline,
   the copy and the nav wait and arrive as the veil lifts. Delays, not
   paused states, so nothing is stranded if field.js never runs. */
@media (prefers-reduced-motion: no-preference) {
  html.tw-intro .hero--cine .display .ln > span { animation-delay: 1.45s, 2.5s; }
  html.tw-intro .hero--cine .display .ln:nth-child(2) > span { animation-delay: 1.57s, 2.7s; }
}
html.tw-intro .hero--cine .reveal { transition-delay: 1.9s; }
html.tw-intro .home-mark { animation: mark-arrive 1s cubic-bezier(.16,1,.3,1) 2s both; }
@keyframes mark-arrive { from { opacity: 0; transform: translateY(-8px); } }

/* ── the sky ──────────────────────────────────────────────────────
   Layers, rendered by build/render_sky.py: a disc of star trails centred
   on the pole, turning about it as the Earth does, screened over a CSS
   night; two ranges in front of it for depth; now and then a meteor.
   Nothing follows the pointer. --px/--py place the pole (% of the hero),
   --horizon the line the near ridge stands on. */
.hero--cine { --px: 77; --py: 15; --horizon: 84%; --rh: max(16.4cqw, 150px); }
.hero-stage {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden; container-type: size;
  background:
    radial-gradient(60% 22% at 60% var(--horizon), rgba(150,156,178,.1), transparent 70%),
    linear-gradient(to bottom, #040406 0%, #06060A 40%, #121318 var(--horizon));
}
.sky-turn {
  position: absolute; inset: 0; mix-blend-mode: screen;
  /* stars thin out into the haze above the ridge */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0,0,0,.2) var(--horizon));
          mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0,0,0,.2) var(--horizon));
}
.sky-disc {
  position: absolute; display: block; max-width: none; height: auto;
  left: calc(var(--px) * 1%); top: calc(var(--py) * 1%);
  /* big enough to cover the frame at any angle: twice the pole's reach */
  width: 200vmax;
  width: calc(2 * (max(var(--px), 100 - var(--px)) * 1cqw + max(var(--py), 100 - var(--py)) * 1cqh));
  width: calc(2.04 * hypot(max(var(--px), 100 - var(--px)) * 1cqw, max(var(--py), 100 - var(--py)) * 1cqh));
  transform: translate(-50%, -50%);
  will-change: transform;
}
.ridge {
  position: absolute; left: 0; display: block; width: 100%; max-width: none;
  height: var(--rh); object-fit: cover; object-position: 62% 50%;
}
.ridge--far  { top: calc(var(--horizon) - var(--rh) * .55 - 2.2cqh); opacity: .95; }
.ridge--near { top: calc(var(--horizon) - var(--rh) * .62); }
/* the ground under the near ridge, handing over to the page */
.hero-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  top: calc(var(--horizon) + var(--rh) * .38 - 1px);
  background: linear-gradient(to bottom, #070709, var(--paper));
}
.meteor {
  position: absolute; top: 22%; left: 34%;
  width: clamp(120px, 14cqw, 240px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236,240,255,.95));
  transform: rotate(24deg); transform-origin: 100% 50%;
  opacity: 0;
}
.meteor--2 { top: 12%; left: 58%; transform: rotate(38deg); width: clamp(90px, 9cqw, 160px); }

@media (prefers-reduced-motion: no-preference) {
  .sky-disc { animation: earth-turn 720s linear infinite; }
  .meteor { animation: meteor 17s cubic-bezier(.3,0,.9,.6) 5s infinite; }
  .meteor--2 { animation: meteor-2 29s cubic-bezier(.3,0,.9,.6) 14s infinite; }
  .sky-turn { animation: sky-rise 3.4s cubic-bezier(.16,1,.3,1) .1s both; }
  .ridge--far  { animation: range-rise 2.8s cubic-bezier(.16,1,.3,1) .2s both; }
  .ridge--near { animation: range-rise 2.4s cubic-bezier(.16,1,.3,1) .1s both; }
  html.tw-intro .sky-turn { animation-delay: 1.35s; }
  html.tw-intro .ridge--far { animation-delay: 1.5s; }
  html.tw-intro .ridge--near { animation-delay: 1.4s; }
}
@keyframes earth-turn {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes meteor-2 {
  0%   { opacity: 0; translate: 0 0; }
  0.5% { opacity: 1; }
  2.2% { opacity: 0; translate: calc(cos(38deg) * 11cqw) calc(sin(38deg) * 11cqw); }
  100% { opacity: 0; translate: calc(cos(38deg) * 11cqw) calc(sin(38deg) * 11cqw); }
}
@keyframes sky-rise { from { opacity: 0; } }
@keyframes range-rise { from { transform: translateY(26px); } }
@keyframes meteor {
  0%   { opacity: 0; translate: 0 0; }
  0.6% { opacity: 1; }
  3.2% { opacity: 0; translate: calc(cos(24deg) * 16cqw) calc(sin(24deg) * 16cqw); }
  100% { opacity: 0; translate: calc(cos(24deg) * 16cqw) calc(sin(24deg) * 16cqw); }
}

/* the copy only needs a veil, not a wall — most of the sky shows */
.hero--cine::after {
  width: 60%;
  background: linear-gradient(to right, rgba(7,7,10,.66) 0%, rgba(7,7,10,.34) 45%, transparent);
}

/* the sky is night in either theme: the hero keeps the dark tokens */
html[data-theme="light"] .hero--cine {
  --paper: #15151A; --white: #1E1E25; --mist: #26262E;
  --hairline: #2F2F37; --hairline-2: #45454F;
  --ink: #ECEBE5; --graphite: #C6C6CC; --slate: #9A9AA1; --ash: #6E6E77;
  color: var(--ink);
}
html[data-theme="light"] .hero--cine .display .ln > span { background-image: linear-gradient(100deg, var(--ink) 0%, var(--ink) 40%, #FFFFFF 48%, var(--chrome-mid) 52%, var(--ink) 60%, var(--ink) 100%); }

@media (max-aspect-ratio: 19/20) {
  .hero--cine { --px: 52; --py: 13; --horizon: 54%; --rh: max(16.4cqw, 170px); }
  .meteor { top: 14%; left: 8%; }
  .meteor--2 { top: 30%; left: 60%; }
  .hero--cine::after {
    width: auto; height: 48%;
    background: linear-gradient(to top, #070709 40%, rgba(7,7,9,.6) 70%, transparent);
  }
}

/* ══ time travel ══════════════════════════════════════════════════
   The whole site lives under the hero's sky: the same turning disc,
   faint and fixed behind every page. Surfaces float over it as glass.
   Moving between pages is a warp — the page falls away into a burst
   of light and the next one arrives out of it. Content resolves out
   of a blur as it comes into view, like something coming into focus
   across time. Nothing here follows the pointer. */

/* ── the cosmos: fixed, behind everything ───────────────────────── */
.cosmos {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(90% 60% at 80% 0%, #0E0E13, transparent 70%),
    linear-gradient(to bottom, #09090C, var(--paper) 88%);
}
.cosmos-disc {
  position: absolute; left: 82%; top: 6%;
  display: block; max-width: none; height: auto;
  width: calc(2 * (82vw + 94vh));
  width: calc(2.04 * hypot(82vw, 94vh));
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 2.4s var(--ease-out);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, rgba(0,0,0,.55) 70%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 30%, rgba(0,0,0,.55) 70%, transparent 100%);
  mix-blend-mode: screen;
}
.cosmos-disc.is-loaded { opacity: .42; }
body[data-page="home"] .cosmos-disc.is-loaded { opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .cosmos-disc { animation: earth-turn 720s linear infinite; }
}
html[data-theme="light"] .cosmos { display: none; }
body { background: var(--paper); }

/* ── glass: surfaces float over the sky ─────────────────────────── */
.card, .statline, .tldr, .person, .footer {
  background: color-mix(in srgb, var(--white) 74%, transparent);
}
@media (pointer: fine) {
  .card, .statline, .tldr, .person, .footer {
    -webkit-backdrop-filter: blur(14px) saturate(120%);
            backdrop-filter: blur(14px) saturate(120%);
  }
}
html[data-theme="light"] .card, html[data-theme="light"] .statline,
html[data-theme="light"] .tldr, html[data-theme="light"] .person,
html[data-theme="light"] .footer { background: var(--white); }

/* ── focus: content resolves out of a blur ──────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { filter: blur(3px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .7s var(--ease-out); }
  .reveal.in { filter: none; }
}

/* ── the warp between pages ─────────────────────────────────────── */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
/* the streaks: thin rays from the centre, broken into dashes that fly
   outward — drawn on the transition's own backdrop, so they show in the
   gap between the page leaving and the page arriving */
@property --warp { syntax: "<length>"; inherits: false; initial-value: 24px; }
::view-transition {
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 calc(var(--warp) * .32), #07070A calc(var(--warp) * .32) var(--warp)),
    radial-gradient(closest-side, rgba(236,238,245,.24), transparent 62%),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(226,230,245,.5) 0deg .3deg, transparent .3deg 3.6deg),
    #07070A;
  animation: warp-field .82s cubic-bezier(.55,0,.25,1) both;
}
@keyframes warp-field {
  from { --warp: 18px; }
  to   { --warp: 520px; }
}
::view-transition-group(root) { animation-duration: .82s; }
::view-transition-old(root) { animation: warp-out .46s cubic-bezier(.6,0,.9,.4) both; }
::view-transition-new(root) { animation: warp-in .72s cubic-bezier(.16,1,.3,1) .12s both; }
@keyframes warp-out {
  to { opacity: 0; transform: scale(.9); filter: blur(10px) brightness(1.4); }
}
@keyframes warp-in {
  from { opacity: 0; transform: scale(1.08); filter: blur(12px) brightness(1.6); }
}

/* ── the chronometer: home only, the page read as a span of time ── */
.chrono {
  position: fixed; left: clamp(16px, 2.2vw, 30px); bottom: clamp(16px, 2.4vw, 30px); z-index: 40;
  display: flex; flex-direction: column; gap: 7px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; color: var(--ash);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.chrono.is-on { opacity: 1; transform: none; }
.chrono-v { color: var(--graphite); font-variant-numeric: tabular-nums; }
.chrono-v b { font-weight: 400; color: var(--ink); }
.chrono-bar { position: relative; width: 92px; height: 1px; background: var(--hairline-2); overflow: hidden; }
.chrono-bar i { position: absolute; inset: 0; background: var(--prism); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (max-width: 860px) { .chrono { display: none; } }

/* ══ legibility ═══════════════════════════════════════════════════
   The sky frames the page; it never sits under the words. Text is set
   brighter and a touch larger than a flat black page would need, since
   it now reads over light. */
:root:not([data-theme="light"]) {
  --slate: #B4B4BB;     /* body — was #9A9AA1 */
  --ash:   #8E8E97;     /* labels — was #6E6E77, now clears AA at small sizes */
}

/* the sky stays at the margins; the reading column is calm */
.cosmos {
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.16) 27%, rgba(0,0,0,.16) 73%, #000 100%);
          mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.16) 27%, rgba(0,0,0,.16) 73%, #000 100%);
}
body.has-article .cosmos {
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.06) 30%, rgba(0,0,0,.06) 70%, #000 100%);
          mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.06) 30%, rgba(0,0,0,.06) 70%, #000 100%);
}
@media (max-width: 860px) {
  /* on a phone the words span the screen: the sky only glimmers */
  .cosmos, body.has-article .cosmos {
    -webkit-mask-image: linear-gradient(rgba(0,0,0,.22), rgba(0,0,0,.22));
            mask-image: linear-gradient(rgba(0,0,0,.22), rgba(0,0,0,.22));
  }
}

/* long-form: larger, looser, brighter */
.article { font-size: 1.0625rem; line-height: 1.75; }
.article p, .article ul, .article ol { color: var(--slate); }
:root:not([data-theme="light"]) .article p,
:root:not([data-theme="light"]) .article li { color: #BEBEC5; }
.article h2 { margin-top: 2.1em; }
.tldr { font-size: 1rem; line-height: 1.7; }

/* small type: the mono labels were set too small and too faint */
.eyebrow { font-size: .76rem; }
.card .kicker { font-size: .74rem; }
.stat-k { font-size: .72rem; }
.hero-tag { font-size: .72rem; }
.post-meta, .backlink { font-size: .8rem; }
.disclaimer { font-size: .76rem; }
.article figcaption { font-size: .78rem; }

/* four-up cards: a wider measure, so a line holds more than three words */
.grid--4 > .card { padding: clamp(20px, 2vw, 28px); }
.card .body { font-size: .95rem; line-height: 1.62; }
@media (max-width: 1180px) and (min-width: 561px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1160px) {
  /* rail labels keep one line at the larger size */
  .section-rail > .eyebrow { font-size: .74rem; letter-spacing: .1em; }
}

/* ══ page headers ══════════════════════════════════════════════════
   Every inner page opens under its own patch of the night: the turning
   sky at full strength across the top, lit from a horizon below the
   title, dissolving into the calm reading column. The title takes one
   pass of light, like the home headline. */
main { position: relative; isolation: isolate; }
.page-sky {
  position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  height: clamp(520px, 78vh, 820px);
  overflow: hidden; pointer-events: none; container-type: size;
  background:
    radial-gradient(70% 34% at 50% 100%, rgba(150,156,178,.14), transparent 70%),
    linear-gradient(to bottom, #07070A, #0C0C10 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}
body.has-article .page-sky {
  height: clamp(400px, 54vh, 580px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 92%);
}
.page-sky .sky-disc {
  --px: 76; --py: 14;
  mix-blend-mode: screen; opacity: 0; transition: opacity 2s var(--ease-out);
}
.page-sky .sky-disc.is-loaded { opacity: .9; }
/* a veil where the words sit: left-weighted for rail pages, centred for articles */
.page-sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(62% 64% at 50% 50%, rgba(7,7,10,.78), rgba(7,7,10,.4) 60%, transparent 82%);
}
body.has-article .page-sky::after {
  background: radial-gradient(40% 72% at 50% 52%, rgba(7,7,10,.74), rgba(7,7,10,.3) 62%, transparent 80%);
}
@media (max-aspect-ratio: 19/20) {
  .page-sky .sky-disc { --px: 50; --py: 8; }
  .page-sky::after, body.has-article .page-sky::after {
    background: linear-gradient(to bottom, rgba(7,7,10,.1), rgba(7,7,10,.6) 45%, rgba(7,7,10,.7));
  }
}
html[data-theme="light"] .page-sky { display: none; }

/* the page title: one pass of light once it has resolved */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  @media (prefers-reduced-motion: no-preference) {
    :root:not([data-theme="light"]) main h1.display.reveal {
      background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 40%, #FFFFFF 48%, var(--chrome-mid) 52%, var(--ink) 60%, var(--ink) 100%);
      background-size: 260% 100%; background-position: 100% 0;
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    :root:not([data-theme="light"]) main h1.display.reveal.in {
      animation: line-sheen 2.4s cubic-bezier(.45,.05,.25,1) .5s forwards;
    }
  }
}

/* ══ no header ═════════════════════════════════════════════════════
   The home page is the way in: its scroll reaches every section, and
   the footer carries the full map. Inner pages keep one way back —
   the mark in the corner, floating, with nothing behind it. */
.home-mark {
  position: fixed; top: clamp(18px, 2.6vw, 30px); left: var(--pad-x); z-index: 50;
  display: inline-flex; padding: 6px; margin: -6px;
  color: var(--graphite); transition: color .25s var(--ease), opacity .4s var(--ease);
}
.home-mark .mark { height: 24px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.7)); }
.home-mark:hover, .home-mark:focus-visible { color: var(--ink); }
html[data-theme="light"] .home-mark .mark { filter: none; }
@media (max-width: 560px) { .home-mark .mark { height: 20px; } }
/* titles no longer sit under a bar — give the mark its own air */
main > .section:first-child { padding-top: clamp(96px, 11vw, 156px); }

/* footer controls: access, theme, language */
.footer-aux { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 28px; }
.footer-aux-set { display: inline-flex; align-items: center; gap: 22px; }
.footer .theme-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ash); transition: color .25s var(--ease);
}
.footer .theme-btn:hover { color: var(--ink); }
.foot-lang { display: inline-flex; gap: 2px; padding-left: 22px; border-left: 1px solid var(--hairline-2); }
.footer .foot-lang a { padding: 6px 8px; font-size: .72rem; letter-spacing: .13em; color: var(--ash); }
.footer .foot-lang a[aria-current] { color: var(--ink); }
.footer .foot-lang a:hover { color: var(--ink); }

/* home: the arrival opens every door — the page is the navigation.
   The row stands on the dark ground under the dawn ridges. */
.doors-ground {
  --lift: clamp(104px, 13vh, 150px);
  position: relative; z-index: 2; margin-top: calc(-1 * var(--lift)); padding-bottom: clamp(40px, 6vh, 72px);
  /* the ground is dark in either theme, like the arrival above it */
  --hairline: #2F2F37; --hairline-2: #45454F; --ink: #ECEBE5; --graphite: #C6C6CC; --ash: #8E8E97;
  background: linear-gradient(to bottom, transparent var(--lift), #15151A var(--lift));
  isolation: isolate;
}
body[data-page="home"] .arrival + .doors-ground { margin-top: calc(-1 * var(--lift)); }
.footer .btn--primary, .footer .btn--primary:hover { color: var(--on-accent); }
.doors { width: 100%; max-width: 1100px; margin-inline: auto; text-align: left; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--hairline-2); }
.doors a {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--hairline); color: var(--ink);
  transition: color .25s var(--ease), padding-left .35s var(--ease-out);
}
.doors a + a { padding-left: 18px; border-left: 1px solid var(--hairline); }
.doors-k { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.doors-v { font-family: var(--font-display); font-size: 1.05rem; }
.doors-v::after { content: " →"; opacity: .35; transition: opacity .25s var(--ease); }
.doors a:hover .doors-v::after, .doors a:focus-visible .doors-v::after { opacity: 1; }
.doors a:hover .doors-k { color: var(--graphite); }
@media (max-width: 860px) {
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doors a, .doors a + a { padding: 16px 14px 16px 0; border-left: 0; }
  .doors a:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--hairline); }
  .doors a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ══ the eyepiece ═════════════════════════════════════════════════
   No header, still no dead end: a small iris in the lower corner opens
   the whole site as an aperture, from the point you pressed. */
.eyepiece {
  position: fixed; left: clamp(14px, 2.2vw, 30px); bottom: clamp(14px, 2.4vw, 30px); z-index: 95;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  border: 1px solid rgba(236,235,229,.14);
  background: rgba(10,10,14,.86);
  color: var(--graphite); cursor: pointer;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .5s var(--ease);
}
.eyepiece:hover, .eyepiece:focus-visible, .eyepiece[aria-expanded="true"] {
  color: #FFFFFF; border-color: rgba(236,235,229,.34);
  box-shadow: 0 0 28px rgba(220,226,255,.14);
}
.eyepiece-mark { width: 30px; height: auto; flex: none; transition: filter .4s var(--ease), transform .6s var(--ease-out); }
.eyepiece:hover .eyepiece-mark, .eyepiece[aria-expanded="true"] .eyepiece-mark { filter: drop-shadow(0 0 8px rgba(220,226,255,.6)); transform: translateY(-1px); }
html.tw-intro .eyepiece { animation: mark-arrive 1s cubic-bezier(.16,1,.3,1) 2.2s both; }
html[data-theme="light"] .eyepiece { background: rgba(247,247,245,.7); border-color: rgba(18,18,26,.14); color: var(--graphite); }
html[data-theme="light"] .eyepiece:hover, html[data-theme="light"] .eyepiece[aria-expanded="true"] { color: var(--ink); }
@media (max-width: 560px) { .eyepiece { padding: 11px 12px; } .eyepiece-l { display: none; } }

/* the chronometer stands beside the eyepiece */
.chrono { left: calc(clamp(14px, 2.2vw, 30px) + 118px); bottom: calc(clamp(14px, 2.4vw, 30px) + 8px); }

/* the aperture: opens from the eyepiece, a circle growing to the far corner */
.sight {
  --ox: 40px; --oy: calc(100vh - 40px);
  position: fixed; inset: 0; z-index: 94;
  background: radial-gradient(120% 90% at var(--ox) var(--oy), rgba(24,24,32,.97), rgba(6,6,9,.985) 70%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  clip-path: circle(0 at var(--ox) var(--oy));
  transition: clip-path .55s cubic-bezier(.7,0,.3,1);
  overflow-y: auto; overscroll-behavior: contain;
  color: #ECEBE5;
}
.sight.is-open { clip-path: circle(150vmax at var(--ox) var(--oy)); transition-duration: .7s; }
.sight[hidden] { display: none; }
html.sight-open { overflow: hidden; }
.sight-in {
  min-height: 100%; box-sizing: border-box;
  display: grid; grid-template-rows: auto 1fr auto; gap: clamp(20px, 4vh, 44px);
  padding: clamp(28px, 7vh, 80px) var(--pad-x) clamp(84px, 12vh, 110px);
  max-width: 1280px; margin: 0 auto;
}
.sight-where {
  margin: 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: #8E8E97;
  display: flex; align-items: center; gap: 14px;
}
.sight-where::before { content: ""; width: 26px; height: 1px; background: var(--prism); }
.sight-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-content: center; border-top: 1px solid rgba(236,235,229,.1); }
.sight-row {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 4px; align-items: baseline;
  padding: clamp(18px, 3.2vh, 30px) 8px clamp(18px, 3.2vh, 30px) 0;
  border-bottom: 1px solid rgba(236,235,229,.1);
  color: #ECEBE5; text-decoration: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), color .25s var(--ease);
}
.sight.is-open .sight-row { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .045s), calc(.12s + var(--i) * .045s), 0s; }
.sight-n { grid-row: span 3; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; color: #6E6E77; padding-top: .5em; }
.sight-k { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: #8E8E97; }
.sight-v {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.02; letter-spacing: -.02em;
  transition: letter-spacing .5s var(--ease-out), text-shadow .4s var(--ease);
}
.sight-d { font-size: .92rem; color: #9A9AA1; }
.sight-row::after {
  content: "→"; position: absolute; right: 12px; top: 50%; translate: -8px -50%;
  font-family: var(--font-mono); color: #FFFFFF; opacity: 0; transition: opacity .3s var(--ease), translate .4s var(--ease-out);
}
.sight-row:hover .sight-v, .sight-row:focus-visible .sight-v { text-shadow: 0 0 34px rgba(220,226,255,.45); letter-spacing: -.012em; }
.sight-row:hover::after, .sight-row:focus-visible::after { opacity: 1; translate: 0 -50%; }
.sight-row:hover .sight-n, .sight-row[aria-current] .sight-n { color: #FFFFFF; }
.sight-row[aria-current] .sight-v::after { content: " ·"; color: #8E8E97; }
.sight-row:focus-visible { outline: 1px solid rgba(236,235,229,.4); outline-offset: -1px; }
.sight-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: #8E8E97;
}
.sight-foot a { color: #C6C6CC; text-decoration: none; }
.sight-foot a:hover, .sight-foot a[aria-current] { color: #FFFFFF; }
.sight-aux { display: inline-flex; align-items: center; gap: 26px; }
.sight-aux .foot-lang { display: inline-flex; gap: 14px; }
@media (hover: none) { .sight-esc { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .sight, .sight.is-open { transition: none; }
  .sight-row { transition: none; opacity: 1; transform: none; }
}
.sight-n { display: grid; justify-items: center; gap: 10px; }
.sight-ic { width: 26px; height: 26px; color: #C6C6CC; transition: color .25s var(--ease), filter .3s var(--ease); }
.sight-row:hover .sight-ic, .sight-row:focus-visible .sight-ic { color: #FFFFFF; filter: drop-shadow(0 0 8px rgba(220,226,255,.5)); }

/* ══ one signature ═════════════════════════════════════════════════
   The house is one person's line of sight. The dawn is signed; the desk
   shows one name, and a board that is present but not seen. */
.signature {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin: 30px 0 0;
}
.signature::before { content: ""; width: 44px; height: 1px; margin-bottom: 6px; background: var(--prism); }
.sig-n {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1; letter-spacing: -.01em; color: var(--ink);
}
.sig-r { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ash); }
.arrival-cta { margin-top: 30px; }

.desk .card { min-height: 100%; }
.desk .h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
/* the board is there, and unseen: a dotted edge, like a call not yet arrived */
.desk-veiled { border-style: dashed; border-color: var(--hairline-2); background: transparent; }
.desk-veiled .h3 { color: var(--ash); font-style: italic; }
.desk-veiled:hover { border-color: var(--hairline-2); background: transparent; }

/* ══ touch ═════════════════════════════════════════════════════════
   On glass the house should feel machined: no grey flash on a tap, no
   type the browser resizes on its own, and nothing moving that the eye
   can't read at arm's length. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  /* the grain holds still: a full-screen blended layer, moving, costs a phone its frames */
  body::after { animation: none; }
  .btn:active, .doors a:active, .index-row:active, .sight-row:active { opacity: .72; transition: opacity 0s; }
}
@media (max-width: 560px) {
  /* the eyepiece: a small round lens under the thumb */
  .eyepiece {
    left: 14px; bottom: 14px; padding: 10px; gap: 0; background: rgba(10,10,14,.94);
    transition: color .3s var(--ease), border-color .3s var(--ease), box-shadow .5s var(--ease), opacity .35s var(--ease-out), transform .45s var(--ease-out);
  }
  .eyepiece.is-away { opacity: 0; transform: translateY(18px) scale(.9); pointer-events: none; }
  .eyepiece-mark { width: 28px; }
  /* inner pages: the title under the mark, set to the width of the glass */
  main > .section:first-child { padding-top: 88px; }
  .home-mark { top: 18px; }
  .display { font-size: clamp(2.2rem, 10.4vw, 2.9rem); line-height: 1.04; }
  .lede { font-size: 1.02rem; line-height: 1.55; }
  .page-sky { height: clamp(420px, 70svh, 600px); }
  .index-title { font-size: 1.02rem; }
  .card { padding: 22px 20px; }
  .footer { padding-bottom: 88px; }   /* clear of the eyepiece */
  .footer-aux { flex-direction: column; align-items: flex-start; }
  .sight-v { font-size: 1.7rem; }
  .sight-in { padding-top: 34px; }
}
