/* Srida Infotech - components.css: shared components of spec 4.5 (1-6, 9-33).
   Figures (7, 8) live in fig.css. Page CSS never redefines these names. */

/* utilities */

.mark { display: inline-block; width: 1rem; height: 1rem; background: currentColor; color: var(--accent); -webkit-mask: url(/assets/logo-mark.svg) center / contain no-repeat; mask: url(/assets/logo-mark.svg) center / contain no-repeat; transition: transform var(--dur-m) var(--ease-out); }
.sphere-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.ghost-num { font-size: var(--t-numeral); font-weight: 300; letter-spacing: -0.05em; line-height: 1; color: var(--ink-faint); font-feature-settings: "tnum"; user-select: none; pointer-events: none; }
.cols-3, .cols-4 { display: grid; gap: var(--s-8) var(--s-6); list-style: none; }
.cols-3 > *, .cols-4 > * { display: grid; gap: var(--s-3); align-content: start; }
.cols-3 .num, .cols-4 .num { color: var(--accent); }
.cols-3 p, .cols-4 p { color: var(--text-2); }
.rule-dots { border: 0; height: 3px; margin: 0; background: radial-gradient(circle, var(--ink-rule) 1.5px, transparent 1.6px) 0 0 / 8px 3px repeat-x; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.tag--illustrative, .tag--illustration { display: inline-block; padding: 0.15rem 0.55rem; border: 1px solid var(--accent-soft); border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.tag--illustration { text-transform: none; letter-spacing: 0.06em; }

/* 1. Interior hero */

.hero-int { padding-top: calc(var(--nav-h) + 4rem); padding-bottom: var(--s-12); display: grid; gap: var(--s-10); align-items: center; }
.hero-int .eyebrow { margin-top: var(--s-4); }
.hero-int h1 { margin-top: var(--s-5); }
.hero-int .lede { margin-top: var(--s-5); }
.hero-int--single .lede { max-width: var(--measure-wide); }
.hero-int-aside { position: relative; min-height: 7rem; display: flex; align-items: center; justify-content: center; }
@media (max-width: 1023.98px) { .hero-int-aside:has(> .ghost-num:only-child) { display: none; } }

/* 2. Chapter head */

/* no content-visibility: auto here: Chromium cannot measure clip-path reveals inside a skipped
   subtree on first pass, and offsetTop reads 0 for skipped content */
.chapter-section { padding-block: var(--chapter-gap); }
.chapter { position: relative; max-width: var(--measure-wide); margin-bottom: clamp(2rem, 3.5vw, 2.75rem); }
.chapter-num { position: absolute; left: -0.08em; top: -0.6em; z-index: -1; font-size: var(--t-numeral); font-weight: 300; letter-spacing: -0.05em; line-height: 1; color: var(--ink-faint); font-feature-settings: "tnum"; user-select: none; pointer-events: none; }
.chapter-label { display: block; font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; letter-spacing: 0.18em; line-height: 1.4; text-transform: uppercase; color: var(--text-2); }
.chapter .h2 { margin-top: var(--s-4); }
.chapter-section > .rule-dots + * { margin-top: var(--s-12); }
.chapter .lede { margin-top: var(--s-4); }

/* a chapter that is only a head and one paragraph (no figure, list or table) closes up, and at
   >= 1024 px sets its paragraph beside the head instead of leaving the right of the page empty */
.chapter-section:not(:has(> :not(.rule-dots, .chapter, [popover]))) { padding-block: calc(var(--chapter-gap) * 0.6); }
.chapter-section:not(:has(> :not(.rule-dots, .chapter, [popover]))) > .rule-dots + * { margin-top: var(--s-8); }
.chapter-section:not(:has(> :not(.rule-dots, .chapter, [popover]))) > .chapter { margin-bottom: 0; }
@media (min-width: 1024px) {
  .chapter-section:not(:has(> :not(.rule-dots, .chapter, [popover]))) > .chapter:has(> .lede) { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(2rem, 5vw, 4rem); align-items: end; }
  .chapter-section:not(:has(> :not(.rule-dots, .chapter, [popover]))) > .chapter:has(> .lede) > :not(.lede, .chapter-num) { grid-column: 1; }
  .chapter-section:not(:has(> :not(.rule-dots, .chapter, [popover]))) > .chapter:has(> .lede) > .lede { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}

/* 3. Index list */

.index { list-style: none; border-top: 1px solid var(--line); }
.index-row { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; grid-template-areas: "num name arrow" "num line arrow" "num peek arrow"; column-gap: var(--s-4); align-items: start; padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.index-num { grid-area: num; font-family: var(--font-mono); font-size: var(--t-num); font-weight: 500; line-height: 1.7; font-feature-settings: "tnum"; color: var(--text-2); transition: color var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out); }
.index-name { grid-area: name; justify-self: start; font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }

/* the whole row is the link's hit area */
.index-name::after { content: ""; position: absolute; inset: 0; }
.index-name:focus-visible { outline: none; }
.index-row:has(.index-name:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.index-line { grid-area: line; color: var(--text-2); font-size: 0.95rem; margin-top: var(--s-1); max-width: var(--measure); }
.index-peek { grid-area: peek; margin-top: var(--s-2); font-family: var(--font-mono); font-size: var(--t-readout); letter-spacing: 0.02em; line-height: 1.4; color: var(--text-2); }
.index-arrow { grid-area: arrow; align-self: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: var(--text-2); transition: border-color var(--dur-s), color var(--dur-s), background-color var(--dur-s); }
.index-arrow i { display: block; }
.index-row:is(:hover, :focus-within) .index-num { color: var(--accent); transform: translateX(4px); }
.index-row:is(:hover, :focus-within) :is(.index-name.u, .index-name .u) { background-size: 100% var(--uw); color: var(--accent); }
.index-row:is(:hover, :focus-within) .index-arrow { border-color: var(--accent-soft); color: var(--accent); background: var(--accent-dim); }
.index-row:hover .index-arrow i { animation: orb-roll var(--dur-s) var(--ease-in-out); }
.index-row--featured { background: var(--surface-2); border-radius: var(--radius-card); border-bottom: 0; padding: var(--s-6); margin-block: var(--s-2); }
.index-row--featured .index-name { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.index-row--featured .index-line { font-size: 1rem; max-width: var(--measure-wide); }
.index--compact .index-row { grid-template-columns: 2.25rem minmax(0, 1fr) auto; padding-block: var(--s-3); }
.index--compact .index-name { font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; }
.index--compact .index-line { font-size: var(--t-small); margin-top: 0; }
.index--compact .index-arrow { width: 2rem; height: 2rem; border: 0; }
.index-row--all { grid-template-areas: "num name arrow"; border-bottom: 0; }
.index-row--all .index-name { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 500; color: var(--text-2); }

/* 4. Marginalia */

:has(> .note-aside) { position: relative; }
.note-aside { display: block; margin: var(--s-4) 0 0 var(--s-6); padding-left: var(--s-4); border-left: 1px solid var(--ink-rule); font-family: var(--font-note); font-style: italic; font-size: var(--t-note); line-height: 1.5; color: var(--text-2); max-width: var(--measure-card); }
.index-row > .note-aside { grid-column: 2 / -1; }
.note-leader { display: none; }

/* 5. Ledger */

table.ledger { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-3); border-bottom: 1px solid var(--line); }
.ledger th:first-child, .ledger td:first-child { padding-left: 0; }
.ledger th:last-child, .ledger td:last-child { padding-right: 0; }
.ledger-group th, .ledger-group td { padding-top: var(--s-8); padding-bottom: var(--s-2); font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); border-bottom-color: var(--line-strong); }
.ledger-row { transition: background-color var(--dur-s) var(--ease-out); }
.ledger-row:hover { background: var(--surface-2); }
.ledger-row:hover .fn { color: var(--accent); }
.ledger-row:hover .fn sup { color: var(--accent); }
.ledger-logo { width: 1.25rem; height: 1.25rem; }
/* a vendor without a logo file gets a mono text mark in the logo column (spec S-8: AWS Lambda) */
.ledger-textmark { display: inline-grid; place-items: center; font-family: var(--font-mono); font-size: 1rem; font-weight: 500; line-height: 1; color: var(--accent); }
.ledger-row td:has(> .ledger-logo) { width: 1.25rem; padding-right: 0; }
/* a ledger with no logos at all drops the empty first column, so names sit flush with the heading */
.ledger:not(:has(.ledger-logo)) .ledger-row > td:first-child:empty { display: none; }
.ledger:not(:has(.ledger-logo)) .ledger-row > td:first-child:empty + td { padding-left: 0; }
.ledger-name { font-weight: 500; color: var(--text); }
.ledger-use { font-family: var(--font-mono); font-size: var(--t-readout); letter-spacing: 0.02em; line-height: 1.4; color: var(--text-2); font-feature-settings: "tnum"; }
dl.ledger { display: grid; grid-template-columns: max-content 1fr; font-size: var(--t-small); }
dl.ledger > * { padding: var(--s-3) var(--s-3); border-bottom: 1px solid var(--line); }
dl.ledger dt { padding-left: 0; font-weight: 500; }
dl.ledger dd { padding-right: 0; color: var(--text-2); }

/* 6. Footnote popover */

.fn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help; text-decoration: underline dotted var(--accent-soft); text-underline-offset: 0.16em; transition: color var(--dur-xs), text-decoration-color var(--dur-xs); }
.fn { position: relative; }
/* 44 px hit area around the ref without moving the text */
.fn::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
.fn sup { font-size: 0.65em; color: var(--accent); margin-left: 0.1em; }
.fn:is(:hover, :focus-visible, .is-open) { color: var(--accent); text-decoration: underline solid var(--accent); }
.fn-pop { position: fixed; inset: auto; left: var(--px, 0); top: var(--py, 0); margin: 0; width: max-content; max-width: min(22rem, calc(100vw - 2rem)); padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-chip); box-shadow: var(--shadow-float); font: 400 var(--t-small) / 1.5 var(--font-sans); color: var(--text-2); z-index: var(--z-card); animation: pop-in var(--dur-s) var(--ease-out) both; }
.fn-pop.is-flip { animation-name: pop-in-up; }
@keyframes pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pop-in-up { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* fallback without the Popover API: JS toggles .is-open and hidden */
@supports not selector(:popover-open) { .fn-pop:not(.is-open) { display: none; } }
.fn-pop[hidden] { display: none; }

/* 9. Path figure */

.path { position: relative; display: grid; grid-template-columns: 4rem minmax(0, 1fr); padding-block: var(--s-4); }

/* vertical layout is the base (below 900 px, .path--vertical, every unpinned .spread) */
.path-ink { display: block; width: 100%; height: auto; overflow: visible; }
.path-ink[data-orient="h"] { display: none; }
.path-ink[data-orient="v"] { display: block; grid-column: 1; grid-row: 1; width: 100%; height: 100%; }
.path-seg { fill: none; stroke: var(--accent-line); stroke-width: var(--fig-stroke-w); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: var(--fig-dash); transition: stroke var(--dur-s) var(--ease-out), opacity var(--dur-s); }

/* dotted draw: offset slides from the pattern end to (end - length) */
.js .path-ink[data-reveal="draw"] .path-seg { stroke-dasharray: var(--dash-draw); stroke-dashoffset: var(--dash-len); transition: stroke-dashoffset 300ms linear calc(var(--d, 0s) + var(--seq, 0) * 300ms), stroke var(--dur-s) var(--ease-out); }
.js .path-ink[data-reveal="draw"].is-in .path-seg { stroke-dashoffset: max(0, calc(var(--dash-len) - var(--len) * 1.5)); }
.path-stations { grid-column: 2; grid-row: 1; list-style: none; display: grid; grid-auto-rows: minmax(0, 1fr); }
.path-station { position: relative; display: grid; justify-items: start; align-content: start; gap: var(--s-2); padding: var(--s-4) 0 var(--s-4) var(--s-4); border-radius: var(--radius-chip); color: inherit; }
.path-station::before { content: ""; position: absolute; left: calc(-2rem - 8px); top: calc(var(--s-4) + 0.8em); margin-top: -8px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0.9px, transparent 1.4px) 0 0 / 4px 4px, var(--surface); box-shadow: 0 0 0 3px var(--bg); }
.path-station .num { color: var(--text-2); }
.js .path-station[data-reveal="fill"] { transform: translateY(6px); transition: opacity var(--dur-m) var(--ease-out) var(--d, 0s), transform var(--dur-m) var(--ease-out) var(--d, 0s); }
.js .path-station[data-reveal="fill"]::before { transform: scale(0.4); transition: transform var(--dur-m) var(--ease-out) var(--d, 0s); }
.js .path-station[data-reveal="fill"].is-in, .js .path-station[data-reveal="fill"].is-in::before { transform: none; }
.path-station .path-label { font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }
.path-station .h3 { max-width: 14ch; text-wrap: balance; }
.path-readout { font-family: var(--font-mono); font-size: var(--t-readout); letter-spacing: 0.02em; line-height: 1.4; color: var(--text-2); transition: opacity var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out); }
.path-station:is(:hover, :focus-within) .num { color: var(--accent); }
.path-station:is(:hover, :focus-within) .path-readout { opacity: 1; transform: none; }

/* M27: the segment leading to the hovered or focused station lights up */
.path:has(.path-station:nth-child(1):is(:hover, :focus-within)) .path-seg[data-to="1"],
.path:has(.path-station:nth-child(2):is(:hover, :focus-within)) .path-seg[data-to="2"],
.path:has(.path-station:nth-child(3):is(:hover, :focus-within)) .path-seg[data-to="3"],
.path:has(.path-station:nth-child(4):is(:hover, :focus-within)) .path-seg[data-to="4"],
.path:has(.path-station:nth-child(5):is(:hover, :focus-within)) .path-seg[data-to="5"] { stroke: var(--fig-path-lit); opacity: 1; }

/* 10. Pinned spread */

.spread { position: relative; }
.spread-pin { display: grid; gap: var(--s-8); }
.spread-station { transition: opacity var(--dur-m) var(--ease-in-out); }
.spread-panel { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.spread-panel .label { display: block; margin-bottom: var(--s-1); }
.spread-panel p { color: var(--text-2); font-size: var(--t-small); }
.spread--pinned .spread-pin { position: sticky; top: calc(var(--nav-h) + 2rem); }
.spread--pinned .spread-track { height: 300vh; }
/* doubled class: must outrank `.js [data-reveal="fill"].is-in { opacity: 1 }` (main.css) */
.spread.spread--pinned .spread-station.spread-station { opacity: 0.35; }
.spread.spread--pinned .spread-station.spread-station.is-reached { opacity: 1; }

/* 11. Numerals */

.big-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8) var(--s-6); list-style: none; }
.big-num { display: block; color: var(--text); }
.big-num-cap { display: block; margin-top: var(--s-2); font-family: var(--font-mono); font-size: var(--t-readout); letter-spacing: 0.02em; color: var(--text-2); }

/* 12. World map */

.world { width: 100%; height: auto; aspect-ratio: 2 / 1; overflow: visible; }
.world-dots { stroke: var(--accent-soft); stroke-opacity: 0.55; }
.world-origin { fill: var(--accent); }
.world-origin-ring { fill: var(--accent-ghost); stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ring-pulse 2.4s var(--ease-in-out) infinite; }
.world-dest { fill: var(--accent); }
.world path.world-route { fill: none; stroke: var(--accent-line); stroke-width: var(--fig-stroke-w); stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: var(--fig-dash); transition: opacity var(--dur-s) var(--ease-out), stroke var(--dur-s) var(--ease-out); }
.js .world path.world-route[data-reveal="draw"] { stroke-dasharray: var(--dash-draw); stroke-dashoffset: var(--dash-len); transition: opacity var(--dur-s) var(--ease-out), stroke var(--dur-s) var(--ease-out), stroke-dashoffset var(--dur-xl) var(--ease-mech) var(--d, 0s); }
.js .world path.world-route[data-reveal="draw"].is-in { stroke-dashoffset: max(0, calc(var(--dash-len) - var(--len, 600) * 1.5)); }
.world path.world-route.is-dim, .js .world path.world-route.is-dim { opacity: 0.3; }
.world path.world-route.is-lit, .js .world path.world-route.is-lit { opacity: 1; stroke: var(--accent); }
@keyframes ring-pulse {
  0%, 100% { transform: scale(0.7); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 0.25; }
}

/* 13. Route stub */

.stubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--s-2); list-style: none; }
.stub { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; width: 100%; min-height: 44px; padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-chip); background: var(--surface); color: var(--text-2); font: inherit; font-size: var(--t-small); text-align: left; cursor: pointer; transition: border-color var(--dur-s), background-color var(--dur-s), color var(--dur-s), box-shadow var(--dur-xs); }
.stub-code, .stub .clock { font-family: var(--font-mono); font-size: var(--t-readout); letter-spacing: 0.04em; font-feature-settings: "tnum"; }
.stub-code { color: var(--accent); }
.stub:is(:hover, :focus-visible) { background: var(--surface-2); border-color: var(--accent-soft); color: var(--text); }
.stub[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-dim); color: var(--text); box-shadow: var(--shadow-inset); }

/* 14. Region clocks */

.clocks { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.clock-chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.5rem; padding: 0.5rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-chip); background: var(--surface); font-family: var(--font-mono); font-size: var(--t-readout); letter-spacing: 0.02em; color: var(--text-2); font-feature-settings: "tnum"; }
.clock-chip[data-region="hyd"], .clock-chip.is-home { background: var(--accent-dim); border-color: var(--accent-line); color: var(--text); }
.day-dot { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--accent); flex: none; }
.day-dot.is-day { background: var(--accent); }

/* 15. World clock ledger */

.clocks-ledger .stub { border: 0; background: none; padding-inline: 0; }
.clocks-ledger .stub[aria-pressed="true"] { background: var(--accent-dim); }
.clocks-ledger tr.is-home { background: var(--accent-dim); }

/* 16. Letter form */

.letter { display: grid; gap: var(--s-10); }
.letter-form { display: grid; gap: var(--s-4); }
.chips-label { display: block; margin-bottom: var(--s-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-chip); background: var(--surface); font-size: 0.9rem; color: var(--text-2); cursor: pointer; transition: border-color var(--dur-xs), color var(--dur-xs), background-color var(--dur-xs), transform var(--dur-xs) var(--ease-snap), box-shadow var(--dur-xs); }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip:hover { border-color: var(--accent-soft); color: var(--accent); }
.chip:active { transform: translateY(1px); box-shadow: var(--shadow-inset); }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.field { position: relative; display: grid; gap: var(--s-1); padding-left: var(--s-6); margin-top: var(--s-4); }
.field label { font-size: 0.85rem; color: var(--text-2); transition: color var(--dur-s); }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; padding: 0.5rem 0; font: inherit; color: var(--text); transition: border-color var(--dur-s), box-shadow var(--dur-s); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field :is(input, textarea)::placeholder { color: var(--text-3); }
.field :is(input, textarea):focus { outline: none; border-bottom-color: var(--accent-soft); box-shadow: 0 1px 0 var(--accent-soft); }
.field:focus-within label { color: var(--text); }
.field-stop { position: absolute; left: 2px; top: 2.15rem; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--accent); transition: background-color var(--dur-s), transform var(--dur-s) var(--ease-out); }
.field.is-valid .field-stop { background: var(--accent); }
.field:focus-within .field-stop { transform: scale(1.2); }
.field.is-invalid :is(input, textarea) { border-bottom-style: dotted; border-bottom-color: var(--accent); }
.field-error { font-size: 0.8rem; color: var(--accent); }
.field-error:empty, .field-error[hidden] { display: none; }
.letter-count { display: block; text-align: right; color: var(--text-2); }
.letter-count.is-max { color: var(--accent); }
.letter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.letter-actions .readout { flex-basis: 100%; color: var(--text-2); }
.letter-actions .readout a { color: var(--accent); }
.copy-msg.is-copied { border-color: var(--accent); color: var(--accent); }
.letter-sheet { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-soft); transition: box-shadow var(--dur-m) var(--ease-out); display: none; }
.letter:focus-within .letter-sheet { box-shadow: var(--shadow-lift); }
.sheet-env { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0.4rem var(--s-3); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--t-readout); letter-spacing: 0.02em; color: var(--text-2); }
.sheet-env dt { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; padding-top: 0.1em; }
.sheet-env dd { overflow-wrap: anywhere; }
.sheet-body { margin-top: var(--s-5); line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.letter-hint { color: var(--text-3); font-family: var(--font-mono); font-size: 0.9em; }
.frag { border-radius: 3px; }
.frag.is-flash { animation: frag-flash var(--dur-m) var(--ease-out); }
@keyframes frag-flash { from { background-color: var(--accent-ghost); } to { background-color: transparent; } }

/* S8: after the mailto opens, the orb's dot leaves the button once */
.letter-form.is-sent .btn-primary .btn-orb i { animation: orb-leave 600ms var(--ease-in) both; }
@keyframes orb-leave {
  0% { transform: translateX(0); opacity: 1; }
  60% { transform: translateX(180%) scale(0.6); opacity: 0; }
  61% { transform: translateX(-180%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* 17. Chapter rail */

.with-rail { display: grid; gap: var(--s-10); align-items: start; }
.with-rail > * { min-width: 0; }
.rail ol { list-style: none; display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-2); scrollbar-width: thin; }
.rail a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.5rem; padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-chip); background: var(--surface); font-size: 0.88rem; white-space: nowrap; color: var(--text-2); transition: color var(--dur-s), border-color var(--dur-s), background-size var(--dur-s) var(--ease-mech); }
.rail a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--accent); flex: none; transition: background-color var(--dur-s) var(--ease-out); }
.rail a:is(:hover, :focus-visible) { color: var(--text); border-color: var(--accent-soft); }
.rail a.is-current { color: var(--text); border-color: var(--accent-soft); }
.rail a.is-current::before { background: var(--accent); }
.rail .num { color: var(--text-2); font-size: var(--t-readout); }

/* 18. FAQ */

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; min-height: 44px; padding: var(--s-4) 0; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .num { color: var(--text-2); transition: color var(--dur-s); }
.faq-item summary .h4 { margin: 0; }
.faq-item summary i { color: var(--text-2); font-size: 1rem; transition: transform var(--dur-s) var(--ease-mech); }
.faq-item summary:hover .num, .faq-item[open] summary .num { color: var(--accent); }
.faq-item[open] summary i { transform: rotate(90deg); }
.faq-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--dur-m) var(--ease-mech); }
.faq-body > div { overflow: hidden; min-height: 0; }
.faq-item[open] .faq-body { animation: faq-open var(--dur-m) var(--ease-mech); }
.faq-item.is-closing .faq-body { grid-template-rows: 0fr; }
.faq-body p { padding: 0 0 var(--s-5) calc(2.5rem + var(--s-3)); color: var(--text-2); max-width: var(--measure); }
@keyframes faq-open { from { grid-template-rows: 0fr; } to { grid-template-rows: 1fr; } }

/* 19. CTA band */

.cta-band { border: 1px solid var(--line); border-radius: var(--radius-shell); padding: var(--shell-pad); background: var(--surface-2); box-shadow: var(--shadow-soft); }
.cta-band-inner { border-radius: var(--radius-inner); background: radial-gradient(34rem 22rem at 50% 130%, rgba(184, 85, 85, 0.12), transparent 65%), var(--bg-raise); border: 1px solid rgba(43, 43, 43, 0.05); padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem); display: grid; justify-items: center; text-align: center; }
.cta-band .h2 { margin-inline: auto; text-wrap: balance; }
.cta-band .lede { margin-top: var(--s-5); margin-inline: auto; text-wrap: pretty; }
.cta-band .btn { margin-top: var(--s-8); }
.cta-lines { margin-top: var(--s-6); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2) var(--s-6); font-family: var(--font-mono); font-size: var(--t-readout); letter-spacing: 0.02em; color: var(--text-2); }
.cta-lines a { color: var(--accent); }
.cta-lines a:hover { color: var(--accent-strong); }

/* 20. Breadcrumb */

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }
.crumbs li { display: inline-flex; align-items: center; gap: var(--s-3); }
.crumbs li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-soft); }
.crumbs a { transition: color var(--dur-s); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current="page"] { color: var(--text); }

/* 21. Address card */

.addr { position: relative; display: grid; gap: var(--s-1); max-width: 28rem; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); font-style: normal; line-height: 1.55; }
.addr .mark { margin-bottom: var(--s-3); }
.addr:hover .mark { transform: rotate(180deg); }
.addr-legal { margin-bottom: var(--s-2); }
.addr-line { color: var(--text-2); }
.addr-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); font-size: var(--t-small); }
.addr-links a { color: var(--accent); }
@media (pointer: coarse) { .addr-links a { display: inline-flex; align-items: center; min-height: 44px; } }

/* 23. Checklist */

.check { list-style: none; display: grid; gap: var(--s-3); }
.check li { position: relative; padding-left: 2rem; }
.check-bullet { position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.check-tick { width: 12px; height: 12px; overflow: visible; }
.check-tick path { fill: none; stroke: var(--accent-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.js .check-tick[data-reveal="draw"] path { transition-delay: calc(var(--d, 0s) + 160ms); }

/* 24. Comparison table */

.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-small); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: var(--s-4) var(--s-4); border-bottom: 1px solid var(--line); transition: background-color var(--dur-xs); }
.compare thead th { position: sticky; top: calc(var(--nav-h) + 1rem); z-index: 1; background: var(--bg); font-size: var(--t-h4); font-weight: 600; letter-spacing: -0.015em; border-bottom-color: var(--line-strong); }
.compare tbody th { color: var(--text-2); font-weight: 500; }
.compare .is-col { background: var(--accent-dim-2); }
.compare td .btn { margin-top: var(--s-2); }

/* 25. Copy pill */

.copy { position: relative; }
a.copy, .copy-msg { display: inline-flex; align-items: center; gap: var(--s-1); }
/* main.js pairs a mailto link (or an inline address's last word) with its button: they never wrap apart */
.copy-pair { display: inline-flex; align-items: center; max-width: 100%; white-space: nowrap; vertical-align: baseline; }
.copy-pair > a.copy { min-width: 0; white-space: normal; }
/* the address card carries its button in its top-right corner */
.addr.copy { padding-right: calc(var(--s-6) + 1.75rem); }
.addr.copy > .copy-btn { position: absolute; top: var(--s-3); right: var(--s-3); margin: 0; }
.copy-btn { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; margin: -6px 0 -6px 0; flex: none; border: 0; border-radius: 50%; background: none; color: var(--text-2); font-size: 1rem; cursor: pointer; vertical-align: middle; transition: color var(--dur-xs), background-color var(--dur-xs); }
.copy-btn::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.copy-btn:is(:hover, :focus-visible) { color: var(--accent); background: var(--accent-dim); }
.copy-pill { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: var(--z-toast); padding: 0.35rem 0.65rem; border-radius: var(--radius-pill); background: var(--text); color: var(--bg); font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; box-shadow: var(--shadow-float); opacity: 0; transform: translateY(4px) scale(0.9); pointer-events: none; transition: opacity var(--dur-s) var(--ease-snap), transform var(--dur-s) var(--ease-snap); }
.copy-pill.is-on { opacity: 1; transform: none; }

/* 26. Toast */

.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: var(--z-toast); max-width: calc(100vw - 2rem); padding: 0.75rem 1.2rem; border-radius: var(--radius-pill); background: var(--text); color: var(--bg); font-size: 0.9rem; text-align: center; box-shadow: var(--shadow-float); opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 27. Module map */

.modmap { position: relative; display: grid; grid-template-columns: 1fr; gap: var(--s-6) clamp(3rem, 10vw, 8rem); }
.modmap ul { position: relative; z-index: 1; list-style: none; display: grid; gap: var(--s-3); align-content: start; }
.modmap-col-label { display: block; margin-bottom: var(--s-3); }
.modnode { width: 100%; display: grid; gap: 0.15rem; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-chip); background: var(--surface); font: inherit; text-align: left; color: var(--text); cursor: pointer; transition: border-color var(--dur-s), color var(--dur-s), box-shadow var(--dur-s); }
.modnode-name { font-weight: 500; }
.modnode-use { color: var(--text-2); font-size: var(--t-small); }
.modnode-from { display: block; font-family: var(--font-mono); font-size: var(--t-readout); color: var(--text-2); margin-top: 0.2rem; }
.modnode:is(:hover, :focus-visible, .is-lit) { border-color: var(--accent); }
.modnode.is-lit { box-shadow: 0 0 0 1px var(--accent-line); }
.modnode.is-mute, .modnode.is-mute .modnode-use { color: var(--ink-mute); }
.modmap-links { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.modlink { fill: none; stroke: var(--fig-path); stroke-width: var(--fig-stroke-w); stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: var(--fig-dash); transition: stroke var(--dur-m) var(--ease-out), opacity var(--dur-m); }
.js .modmap-links[data-reveal="draw"] .modlink { stroke-dasharray: var(--dash-draw); stroke-dashoffset: var(--dash-len); transition: stroke-dashoffset var(--dur-xl) var(--ease-mech) calc(var(--d, 0s) + var(--seq, 0) * 160ms), stroke var(--dur-m) var(--ease-out); }
.js .modmap-links[data-reveal="draw"].is-in .modlink { stroke-dashoffset: max(0, calc(var(--dash-len) - var(--len) * 1.5)); }
.modlink.is-lit { stroke: var(--fig-path-lit); }
.js .modmap-links.is-in .modlink.is-lit { animation: seg-redraw var(--dur-m) var(--ease-mech); }
@keyframes seg-redraw { from { stroke-dashoffset: calc(var(--dash-len) * 1px); } to { stroke-dashoffset: max(0px, calc((var(--dash-len) - var(--len, 400) * 1.5) * 1px)); } }

/* 28. Tech chips (links) */

.tech-chip { cursor: pointer; transition: border-color var(--dur-xs), color var(--dur-xs), transform var(--dur-xs) var(--ease-snap), box-shadow var(--dur-xs); }
.tech-chip:is(:hover, :focus-visible) { border-color: var(--accent-soft); color: var(--accent); }
.tech-chip:active { transform: translateY(1px); box-shadow: var(--shadow-inset); }

/* 29. Product spread */

.spread-card { display: grid; gap: var(--s-8); align-items: center; }
.spread-card-fig { min-width: 0; }
.product-kind { display: inline-flex; align-items: center; gap: var(--s-2); }
.product-kind .sphere-dot { width: 6px; height: 6px; }

/* 31. 404 scene */

.lost { width: min(100%, 30rem); height: auto; overflow: visible; }
.lost .mark-path { fill: var(--accent); }
.lost-arc { fill: none; stroke: var(--accent); stroke-width: var(--fig-stroke-w); stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: var(--dash-draw); stroke-dashoffset: max(0, calc(var(--dash-len) - var(--len, 400) * 1.5)); }
.js .lost .lost-arc { stroke-dasharray: var(--dash-draw); stroke-dashoffset: var(--dash-len); transition: none; }
.lost-dot { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.js .lost.is-in .lost-arc, .js .lost .lost-arc.is-in { animation: lost-arc 6s var(--ease-mech) infinite; }
.js .lost:is(.is-in, :has(.is-in)) .lost-dot { animation: lost-dot 6s var(--ease-out) infinite; }
.js .lost .lost-dot:nth-of-type(2) { animation-delay: 160ms; }
.js .lost .lost-dot:nth-of-type(3) { animation-delay: 320ms; }
@keyframes lost-arc {
  0% { stroke-dashoffset: calc(var(--dash-len) * 1px); opacity: 1; }
  40%, 62% { stroke-dashoffset: max(0px, calc((var(--dash-len) - var(--len, 400) * 1.5) * 1px)); opacity: 1; }
  80%, 100% { stroke-dashoffset: max(0px, calc((var(--dash-len) - var(--len, 400) * 1.5) * 1px)); opacity: 0; }
}
@keyframes lost-dot {
  0%, 38% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(0.6); opacity: 0; }
}

/* fine pointers: peek lines and readouts hide until hover */

@media (hover: hover) and (pointer: fine) {
  .index-peek, .path-readout { opacity: 0; transform: translateY(6px); }
  .index-peek { transition: opacity var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out); }
  .index-row:is(:hover, :focus-within) .index-peek { opacity: 1; transform: none; }
}

/* breakpoints */

@media (min-width: 640px) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639.98px) {
  .chapter-num { position: static; display: inline-block; font-size: var(--t-h3); font-weight: 500; color: var(--ink-mute); margin-right: var(--s-3); vertical-align: baseline; }
  .chapter-label { display: inline-block; }
  .index-row { grid-template-columns: 2.25rem minmax(0, 1fr); grid-template-areas: "num name" "num line" "num peek"; }
  .index-arrow { display: none; }
  .ledger tr.ledger-row { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
  .ledger-row td { border: 0; padding: 0; }
  .ledger-row .ledger-use { flex-basis: 100%; margin-top: 0.15rem; }
  /* in a ledger with logos, a row without one keeps the logo cell's width: name and use share one column */
  .ledger:has(.ledger-logo) .ledger-row > td:first-child { flex: none; width: 1.25rem; }
  .ledger:has(.ledger-logo) .ledger-row .ledger-use { padding-left: calc(1.25rem + var(--s-3)); }
  .big-nums { gap: var(--s-6) var(--s-4); }
}
@media (max-width: 768px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { display: grid; gap: var(--s-3); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
  .compare tbody th, .compare td { border: 0; padding: 0; }
  .compare tbody th { font-size: var(--t-h4); font-weight: 600; color: var(--text); letter-spacing: -0.015em; }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 0.2rem; font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }
  .compare .is-col { background: transparent; }
}
@media (min-width: 769px) {
  .modmap { grid-template-columns: 1fr 1fr; }
  .modmap-links { display: block; }
  .modnode-from { display: none; }
}
@media (min-width: 900px) {
  .path:not(.path--vertical, .spread:not(.spread--pinned) .path) { grid-template-columns: 1fr; }
  .path:not(.path--vertical, .spread:not(.spread--pinned) .path) .path-ink[data-orient="h"] { display: block; grid-column: 1; grid-row: 1; aspect-ratio: 960 / 120; }
  .path:not(.path--vertical, .spread:not(.spread--pinned) .path) .path-ink[data-orient="v"] { display: none; }
  .path:not(.path--vertical, .spread:not(.spread--pinned) .path) .path-stations { grid-column: 1; grid-row: 2; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin-top: calc(-6.25% - 8px); }
  .path:not(.path--vertical, .spread:not(.spread--pinned) .path) .path-station { justify-items: center; align-content: start; text-align: center; padding: 0 var(--s-2); }
  .path:not(.path--vertical, .spread:not(.spread--pinned) .path) .path-station::before { position: static; margin: 0 0 var(--s-2); }
  .letter { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .letter-sheet { display: block; position: sticky; top: calc(var(--nav-h) + 2rem); }
  .big-nums { grid-template-columns: repeat(3, 1fr); }
  .spread-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spread-card--flip .spread-card-fig { order: -1; }
}
@media (min-width: 1024px) {
  .hero-int:not(.hero-int--single) { grid-template-columns: 6fr 5fr; gap: clamp(2rem, 5vw, 4rem); }
  /* an aside that only holds the ghost numeral gives the copy the room (the CTAs stay on one row) */
  .hero-int:has(> .hero-int-aside > .ghost-num:only-child) { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
  .hero-int-aside { min-height: 16rem; justify-content: flex-end; }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
  .with-rail { grid-template-columns: var(--rail-col) minmax(0, 1fr); gap: var(--s-12); }
  .rail { position: sticky; top: calc(var(--nav-h) + 2rem); z-index: var(--z-rail); }
  .rail ol { display: grid; gap: var(--s-1); overflow: visible; padding: 0; }
  .rail a { border: 0; background: none; padding: 0.35rem 0; white-space: normal; border-radius: 4px; }
  .rail a:is(:hover, :focus-visible) .rail-text { background-size: 100% 1px; }
  .rail-text { background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: 0% 1px; background-position: 0 100%; transition: background-size var(--dur-s) var(--ease-mech); }
  .spread--pinned .path-stations { align-items: start; }
}
@media (min-width: 1200px) {
  .note-aside { position: absolute; top: 0; left: calc(100% + var(--s-8)); width: var(--margin-col); margin: 0; padding: 0; border: 0; }
  .index:has(.note-aside) { margin-right: calc(var(--margin-col) + var(--s-8)); }
  .note-leader { display: block; position: absolute; top: 0.75em; right: calc(100% + 4px); width: calc(var(--s-8) - 8px); height: 6px; overflow: visible; }
  .note-leader line { stroke: var(--accent-line); stroke-width: 1; }
  .note-leader circle { fill: var(--accent); }
}

/* reduced motion */

@media (prefers-reduced-motion: reduce) {
  :root :is(.index-num, .index-arrow, .index-peek, .path-readout, .path-seg, .chip, .tech-chip, .stub, .field-stop, .copy-pill, .toast,
    .modnode, .modlink, .faq-body, .faq-item summary i, .letter-sheet, .spread-station, .mark, .world-route) { transition: none; }
  :root :is(.index-arrow i, .world-origin-ring, .frag, .faq-body, .modlink, .lost-arc, .lost-dot, .btn-orb i) { animation: none; }
  :root :is(.index-row:hover .index-num, .field:focus-within .field-stop, .chip:active, .tech-chip:active, .addr:hover .mark) { transform: none; }
  :root :is(.index-peek, .path-readout) { opacity: 1; transform: none; }
  :root .path-ink[data-reveal] .path-seg, :root .modmap-links[data-reveal] .modlink, :root .path-seg, :root .modlink { stroke-dashoffset: 0; stroke-dasharray: var(--fig-dash); }
  :root.js .path-ink[data-reveal="draw"] .path-seg, :root.js .path-ink[data-reveal="draw"].is-in .path-seg,
  :root.js .modmap-links[data-reveal="draw"] .modlink, :root.js .modmap-links[data-reveal="draw"].is-in .modlink { transition: none; stroke-dashoffset: 0; stroke-dasharray: var(--fig-dash); }
  :root .rail a::before { transition: none; }
  :root .path-station[data-reveal], :root .path-station[data-reveal]::before { transform: none; transition: none; }
  :root .world path.world-route[data-reveal] { stroke-dasharray: var(--fig-dash); stroke-dashoffset: 0; transition: none; }
  :root .world-origin-ring { transform: none; opacity: 1; }
  :root.js .lost .lost-arc, :root.js .lost .lost-arc.is-in { animation: none; stroke-dashoffset: max(0, calc(var(--dash-len) - var(--len, 400) * 1.2)); opacity: 1; }
  :root.js .lost .lost-dot.lost-dot { animation: none; transform: scale(0.6); opacity: 0.5; }
  :root .copy-pill.is-on, :root .toast.is-on { transform: none; }
  :root .toast { transform: translate(-50%, 0); }
}
html[data-motion="reduce"] :is(.index-num, .index-arrow, .index-peek, .path-readout, .path-seg, .chip, .tech-chip, .stub, .field-stop, .copy-pill, .toast,
  .modnode, .modlink, .faq-body, .faq-item summary i, .letter-sheet, .spread-station, .mark, .world-route) { transition: none; }
html[data-motion="reduce"] :is(.index-arrow i, .world-origin-ring, .frag, .faq-body, .modlink, .lost-arc, .lost-dot, .btn-orb i) { animation: none; }
html[data-motion="reduce"] :is(.index-row:hover .index-num, .field:focus-within .field-stop, .chip:active, .tech-chip:active, .addr:hover .mark) { transform: none; }
html[data-motion="reduce"] :is(.index-peek, .path-readout) { opacity: 1; transform: none; }
html[data-motion="reduce"] .path-ink[data-reveal] .path-seg, html[data-motion="reduce"] .modmap-links[data-reveal] .modlink { stroke-dashoffset: 0; stroke-dasharray: var(--fig-dash); }
html[data-motion="reduce"].js .path-ink[data-reveal="draw"] .path-seg, html[data-motion="reduce"].js .path-ink[data-reveal="draw"].is-in .path-seg,
html[data-motion="reduce"].js .modmap-links[data-reveal="draw"] .modlink, html[data-motion="reduce"].js .modmap-links[data-reveal="draw"].is-in .modlink { transition: none; stroke-dashoffset: 0; stroke-dasharray: var(--fig-dash); }
html[data-motion="reduce"] .rail a::before { transition: none; }
html[data-motion="reduce"] .path-station[data-reveal], html[data-motion="reduce"] .path-station[data-reveal]::before { transform: none; transition: none; }
html[data-motion="reduce"] .world path.world-route[data-reveal] { stroke-dasharray: var(--fig-dash); stroke-dashoffset: 0; transition: none; }
html[data-motion="reduce"] .world-origin-ring { transform: none; opacity: 1; }
html.js[data-motion="reduce"] .lost .lost-arc, html.js[data-motion="reduce"] .lost .lost-arc.is-in { animation: none; stroke-dashoffset: max(0, calc(var(--dash-len) - var(--len, 400) * 1.2)); opacity: 1; }
html.js[data-motion="reduce"] .lost .lost-dot { animation: none; transform: scale(0.6); opacity: 0.5; }
html[data-motion="reduce"] .toast { transform: translate(-50%, 0); }

/* ---------- Certification seals (Company #certifications, §A14) ----------
   A rubber-stamp pressed on the page: the brand's dotted ring, mono type,
   set slightly off-square. Inline SVG so it inherits the page fonts. */
.seals { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-8); margin-bottom: var(--s-10); }
.seal { flex: none; width: 9rem; height: 9rem; overflow: visible; transform: rotate(-4deg); }
.seal + .seal { transform: rotate(3deg); }
.seal-ring { fill: none; stroke: var(--accent-soft); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0.1 5.4; transform-origin: 60px 60px; transition: transform var(--dur-l) var(--ease-mech); }
.seal-rule { fill: none; stroke: var(--accent-line); stroke-width: 1; }
.seal text { font-family: var(--font-mono); font-weight: 500; }
.seal-arc { font-size: 6.8px; letter-spacing: 0.16em; fill: var(--text-2); }
.seal-kind { font-size: 7.5px; letter-spacing: 0.2em; fill: var(--text-2); }
.seal-main { font-size: 21px; letter-spacing: -0.02em; fill: var(--accent-strong); }
.seal-year { font-size: 9px; letter-spacing: 0.12em; fill: var(--accent); }
.seal:hover .seal-ring, .seal:focus-visible .seal-ring { transform: rotate(30deg); }
@media (max-width: 480px) { .seal { width: 7.5rem; height: 7.5rem; } }
@media (prefers-reduced-motion: reduce) { :root .seal-ring { transition: none; } :root .seal:hover .seal-ring { transform: none; } }
html[data-motion="reduce"] .seal-ring { transition: none; }
html[data-motion="reduce"] .seal:hover .seal-ring { transform: none; }
