/* godspowerasika.com
   Palette from the National TB Conference stage: the #EndTB vermilion, the Stop TB green,
   radiograph film and lightbox glow, set on warm paper. */

:root {
  --paper: #efe9df;
  --paper-2: #e5ddcf;
  --ink: #151412;
  --ink-2: #3a3732;
  --muted: #6f685d;
  --rule: rgba(21, 20, 18, 0.16);
  --signal: #e0482b;
  --signal-text: #b8381c;
  --green: #2f5d50;
  --film: #0c0e0e;
  --film-2: #141817;
  --glow: #a6e3d7;
  --on-film: #e8eeeb;
  --on-film-muted: #8e9a96;
  --film-rule: rgba(232, 238, 235, 0.14);

  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Film grain over everything: a fixed SVG noise tile. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip-link:focus { top: 12px; }

/* ─── Type helpers ─────────────────────────────────────────────────────────── */

.label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-index { color: var(--signal-text); }
.display {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display em, .page-title em, .closing-title em, .hero-name em { color: var(--signal); }

/* ─── Links and buttons ────────────────────────────────────────────────────── */

.arrow { display: inline-block; transition: transform 0.45s var(--ease); }
a:hover > .arrow, a:focus-visible > .arrow { transform: translateX(6px); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 26px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn-block { display: flex; justify-content: space-between; width: 100%; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.link:hover { color: var(--signal-text); background-size: 0 1px; background-position: 100% 100%; }
.link-light:hover { color: var(--signal); }

/* ─── Masthead and menu ────────────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.01em; }
.wordmark-mark { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; overflow: visible; }
.wordmark-mark path { stroke: var(--signal); stroke-width: 2; animation: mark-scan 4.5s var(--ease) infinite; }
@keyframes mark-scan { 0%, 100% { transform: translateY(-9px); } 50% { transform: translateY(9px); } }
.clock { margin: 0 auto 0 12px; display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.clock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.nav { display: flex; gap: 30px; }
.nav a { position: relative; text-decoration: none; font-size: 0.95rem; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current='page'] { color: var(--signal-text); }

.menu-toggle { display: none; align-items: center; gap: 12px; margin-left: auto; padding: 8px 0; border: 0; background: none; color: inherit; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.menu-toggle-lines { position: relative; width: 22px; height: 8px; }
.menu-toggle-lines::before, .menu-toggle-lines::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-toggle-lines::before { top: 0; }
.menu-toggle-lines::after { top: 6.5px; }
.menu-open .menu-toggle-lines::before { top: 3px; transform: rotate(45deg); }
.menu-open .menu-toggle-lines::after { top: 3px; transform: rotate(-45deg); }
.menu-open { overflow: hidden; }

.menu { position: fixed; inset: 64px 0 0; z-index: 49; background: var(--film); color: var(--on-film); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-inner { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; padding-top: 32px; padding-bottom: 32px; }
.menu-links { list-style: none; margin: 0; padding: 0; }
.menu-links li { border-bottom: 1px solid var(--film-rule); animation: rise 0.7s var(--ease) both; }
.menu-links li:nth-child(2) { animation-delay: 0.05s; }
.menu-links li:nth-child(3) { animation-delay: 0.1s; }
.menu-links li:nth-child(4) { animation-delay: 0.15s; }
.menu-links li:nth-child(5) { animation-delay: 0.2s; }
.menu-links a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; font-family: var(--serif); font-size: clamp(2.6rem, 11vw, 4rem); line-height: 1; text-decoration: none; }
.menu-links span { font-family: var(--mono); font-size: 0.75rem; color: var(--signal); }
.menu-links a[aria-current='page'] { font-style: italic; color: var(--glow); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; font-family: var(--mono); font-size: 0.8rem; }
.menu-foot a { color: var(--on-film-muted); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero-label { margin-bottom: clamp(20px, 3vw, 36px); }
.hero-name { font-family: var(--serif); font-size: clamp(4.2rem, 12.4vw, 11.5rem); line-height: 0.84; letter-spacing: -0.035em; margin-left: -0.04em; }
.hero-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-line > * { display: inline-block; }
.hero-line:nth-child(2) { padding-left: 0.9em; }
.js .hero-line > * { animation: line-up 1.2s var(--ease) both; }
.js .hero-line:nth-child(2) > * { animation-delay: 0.12s; }
@keyframes line-up { from { transform: translateY(105%); } }
.hero-lede { max-width: 33rem; margin-top: clamp(28px, 4vw, 48px); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }

/* The scan: real portrait below, X-ray above, clipped to whatever the beam has passed over. */
.scan { margin: 0; }
.scan-frame { position: relative; aspect-ratio: 1; background: var(--film); overflow: hidden; }
.scan-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-xray { clip-path: inset(0 0 100% 0); animation: xray 9s linear infinite; }
.scan-beam {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 0;
  height: 2px;
  background: var(--glow);
  box-shadow: 0 0 14px 3px rgba(166, 227, 215, 0.75), 0 0 60px 12px rgba(166, 227, 215, 0.25);
  animation: beam 4.5s linear infinite;
}
@keyframes xray {
  0% { clip-path: inset(0 0 100% 0); }
  50% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(100% 0 0 0); }
}
@keyframes beam { from { top: 0; } to { top: 100%; } }
.scan-frame:hover .scan-xray, .scan-frame:hover .scan-beam { animation-play-state: paused; }
.scan-corners {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  opacity: 0.85;
  --c: linear-gradient(var(--glow), var(--glow));
  background:
    var(--c) 0 0 / 18px 1px no-repeat, var(--c) 0 0 / 1px 18px no-repeat,
    var(--c) 100% 0 / 18px 1px no-repeat, var(--c) 100% 0 / 1px 18px no-repeat,
    var(--c) 0 100% / 18px 1px no-repeat, var(--c) 0 100% / 1px 18px no-repeat,
    var(--c) 100% 100% / 18px 1px no-repeat, var(--c) 100% 100% / 1px 18px no-repeat;
}
.scan-tag { position: absolute; left: 22px; bottom: 18px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow); background: rgba(12, 14, 14, 0.6); padding: 4px 8px; }
.scan-tag::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--signal); vertical-align: 1px; animation: blink 1.4s steps(1) infinite; }
.readout dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--ink); }
.readout div { padding: 10px 0 12px; border-bottom: 1px solid var(--rule); }
.readout div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--rule); }
.readout div:nth-child(even) { padding-left: 12px; }
.readout dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.readout dd { margin: 2px 0 0; font-size: 0.88rem; line-height: 1.35; }

/* ─── Ticker ───────────────────────────────────────────────────────────────── */

.ticker { overflow: hidden; background: var(--ink); color: var(--paper); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker span { display: inline-flex; align-items: center; padding: 18px 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); white-space: nowrap; }
.ticker span::after { content: ''; width: 10px; height: 10px; margin: 0 clamp(22px, 3vw, 40px); border: 1.5px solid var(--signal); border-radius: 50%; }
.ticker span:nth-child(even) { font-style: italic; color: #cfc6b8; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ─── Chapters ─────────────────────────────────────────────────────────────── */

.chapter { padding: clamp(80px, 11vw, 160px) 0; }
.chapter-flush { padding-top: clamp(24px, 4vw, 48px); }
.chapter-tint { background: var(--paper-2); }
.chapter > .wrap > .label { margin-bottom: clamp(28px, 4vw, 48px); padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.film { background: var(--film); color: var(--on-film); }
.film + .film { padding-top: clamp(24px, 4vw, 48px); }
.film .label { color: var(--on-film-muted); }
.film .label-index { color: var(--signal); }
.film > .wrap > .label { border-color: var(--film-rule); }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 6vw, 72px); }
.split-head .display { max-width: 15em; }

/* Statement: words light up as the reader scrolls past. */
.statement-text { font-family: var(--serif); font-size: clamp(2.1rem, 5.6vw, 5rem); line-height: 1.06; letter-spacing: -0.015em; max-width: 17em; text-wrap: pretty; }
.w { transition: opacity 0.4s; }
.w-accent { font-style: italic; color: var(--signal); }
.js .statement-text .w { opacity: 0.16; }
.js .statement-text .w.is-lit { opacity: 1; }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(56px, 8vw, 110px) 0 0; border-top: 1px solid var(--ink); }
.figure { padding: 22px 22px 0 0; }
.figure + .figure { padding-left: 22px; border-left: 1px solid var(--rule); }
.figure-value { font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 6.2rem); line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.figure dd { margin: 14px 0 0; max-width: 16rem; font-size: 0.92rem; color: var(--muted); }
.figures-inline { margin: 0 0 clamp(64px, 9vw, 120px); }

/* In the field: the 100 units. */
.field-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.field-copy p { max-width: 34rem; margin: 28px 0; color: #c2ccc8; font-size: 1.08rem; }
.field-number { color: var(--glow); }
.units { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(6px, 0.9vw, 12px); }
.units i { aspect-ratio: 1; border: 1px solid rgba(166, 227, 215, 0.28); position: relative; }
.units i::after { content: ''; position: absolute; inset: 22%; background: var(--glow); box-shadow: 0 0 12px rgba(166, 227, 215, 0.7); transition: transform 0.5s var(--ease) calc(var(--i) * 22ms); }
.js .units i::after { transform: scale(0); }
.js .units.is-on i::after { transform: scale(1); }

.plate { margin: clamp(64px, 9vw, 120px) 0 0; }
.plate picture { display: block; overflow: hidden; }
.plate img { width: 100%; filter: grayscale(0.25) contrast(1.05); transition: transform 1.6s var(--ease), filter 0.6s; }
.plate:hover img { transform: scale(1.025); filter: none; }
.plate figcaption { display: flex; gap: 20px; padding-top: 14px; border-top: 1px solid var(--film-rule); margin-top: 14px; font-size: 0.92rem; color: var(--on-film-muted); }
.plate figcaption span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); white-space: nowrap; padding-top: 3px; }

/* The map. */
.markets .display { max-width: 14em; margin-bottom: clamp(40px, 6vw, 72px); }
.markets-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.map { position: relative; }
.map::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--film), transparent 18%, transparent 88%, var(--film)); }
.dotmap { width: 100%; height: auto; overflow: visible; }
.dotmap-land { stroke: #3f4744; stroke-width: 4.6; stroke-linecap: round; }
.dotmap-market { stroke: var(--signal); stroke-width: 5.4; stroke-linecap: round; transition: stroke 0.35s, opacity 0.35s; }
.dotmap-pin { fill: var(--on-film); }
.dotmap-pulse { fill: none; stroke: var(--signal); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease) infinite; }
.dotmap-city.is-home .dotmap-pin { fill: var(--glow); }
.dotmap-city.is-home .dotmap-pulse { stroke: var(--glow); }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.map.has-focus .dotmap-market:not(.is-focus) { opacity: 0.22; }
.map.has-focus .dotmap-market.is-focus { stroke: var(--glow); }
.map-label { position: absolute; z-index: 1; transform: translate(14px, -50%); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-film); white-space: nowrap; pointer-events: none; }
.map-label.is-home { color: var(--glow); }
.market-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--film-rule); }
.market-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--film-rule); transition: background 0.3s, padding 0.4s var(--ease); outline-offset: -2px; }
.market-list li:hover, .market-list li:focus-visible { padding-left: 10px; background: var(--film-2); }
.market-code { font-family: var(--mono); font-size: 0.75rem; color: var(--signal); padding-top: 6px; }
.market-list h3 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.market-list p { margin-top: 6px; font-size: 0.92rem; color: var(--on-film-muted); }

/* The route. */
.route { --progress: 0; --year: clamp(96px, 16vw, 230px); position: relative; list-style: none; margin: 0; padding: 0; }
.route::before, .route::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--year) - 1px); width: 1px; background: var(--rule); }
.route::after { width: 2px; background: var(--signal); transform-origin: top; transform: scaleY(var(--progress)); }
.stop { position: relative; display: grid; grid-template-columns: var(--year) 1fr; padding-bottom: clamp(44px, 6vw, 76px); }
.stop:last-child { padding-bottom: 0; }
.stop-year { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 0.85; letter-spacing: -0.03em; padding-right: 20px; font-variant-numeric: tabular-nums; }
.stop-body { position: relative; padding-left: clamp(24px, 4vw, 56px); }
.stop-body::before { content: ''; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--signal); }
.chapter-tint .stop-body::before { background: var(--paper-2); }
.stop-period { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stop-title { font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.08; margin-top: 8px; max-width: 22em; }
.stop-company { margin-top: 6px; font-weight: 500; }
.stop-summary { margin-top: 14px; max-width: 40rem; color: var(--ink-2); }
.route-compact .stop { padding-bottom: clamp(32px, 4vw, 52px); }

/* Services index. */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index li { border-bottom: 1px solid var(--rule); }
.index a { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1.3fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center; padding: clamp(22px, 3vw, 34px) 0; text-decoration: none; isolation: isolate; transition: color 0.4s, padding 0.5s var(--ease); }
.index a::before { content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); }
.index a:hover, .index a:focus-visible { color: var(--paper); padding-left: 14px; }
.index a:hover::before, .index a:focus-visible::before { transform: scaleY(1); }
.index-no { font-family: var(--mono); font-size: 0.8rem; color: var(--signal-text); }
.index a:hover .index-no { color: var(--signal); }
.index-name { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.02; letter-spacing: -0.01em; }
.index-short { font-size: 0.95rem; color: var(--muted); transition: color 0.4s; }
.index a:hover .index-short { color: #bdb5a8; }
.index .arrow { justify-self: end; font-size: 1.6rem; }
.index-long .index-name { font-size: clamp(2rem, 4.4vw, 3.8rem); }

/* Quotes. */
.quotes { display: grid; gap: clamp(56px, 8vw, 110px); }
.quote { position: relative; margin: 0; max-width: 58rem; }
.quote:nth-child(even) { margin-left: auto; }
.quote::before { content: '“'; position: absolute; left: -0.06em; top: -0.3em; font-family: var(--serif); font-size: clamp(7rem, 14vw, 12rem); line-height: 1; color: var(--signal); }
.quote blockquote { margin: 0; padding-top: clamp(56px, 7vw, 92px); }
.quote blockquote p { font-family: var(--serif); font-size: clamp(1.55rem, 2.7vw, 2.35rem); line-height: 1.22; letter-spacing: -0.01em; text-wrap: pretty; }
.quote figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--rule); }
.quote figcaption strong { font-weight: 600; }
.quote figcaption span { color: var(--muted); font-size: 0.92rem; }

/* ─── Inner pages ──────────────────────────────────────────────────────────── */

.page-head { position: relative; padding: clamp(32px, 5vw, 60px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 clamp(40px, 7vw, 90px); padding: 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--signal-text); }
.page-index { position: absolute; right: var(--gutter); top: clamp(32px, 5vw, 60px); font-family: var(--mono); font-size: 0.8rem; color: var(--signal-text); }
.page-title { font-family: var(--serif); font-size: clamp(3rem, 8.6vw, 8.2rem); line-height: 0.92; letter-spacing: -0.03em; max-width: 13em; text-wrap: balance; }
.page-lead { max-width: 40rem; margin-top: clamp(24px, 3vw, 40px); font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--ink-2); }

.about-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.about-figure { position: sticky; top: 96px; }
.prose { max-width: 44rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; color: var(--ink-2); }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--signal); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration-color: var(--signal); text-underline-offset: 3px; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.05; margin: 2.2em 0 0.6em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose-lead > p:first-child { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.22; color: var(--ink); }
.prose-lead > p:first-child::first-letter { float: left; font-size: 3.4em; line-height: 0.82; padding: 0.06em 0.08em 0 0; color: var(--signal); }
.prose .prose-sign { padding-top: 1.2em; border-top: 1px solid var(--rule); font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.35; color: var(--ink); }

.record { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); }
.record-head { font-family: var(--serif); font-size: 2rem; margin-bottom: 18px; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ledger li { display: grid; gap: 4px; padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
.ledger-date { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-text); }
.ledger-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.ledger-detail { font-size: 0.92rem; color: var(--muted); }

.skills { list-style: none; margin: 0; padding: 0; font-family: var(--serif); font-size: clamp(2rem, 4.8vw, 4.2rem); line-height: 1.12; letter-spacing: -0.015em; }
.skills li { display: inline; }
.skills li:nth-child(3n + 2) { font-style: italic; }
.skills li:not(:last-child)::after { content: ' / '; color: var(--signal); font-style: normal; }

.highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
.highlights li { display: grid; grid-template-columns: 48px 1fr; padding: 26px 26px 30px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.18; }
.highlights li:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--rule); }
.highlights span { font-family: var(--mono); font-size: 0.75rem; color: var(--signal-text); padding-top: 8px; }

.service-grid { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.service-aside { position: sticky; top: 96px; }
.aside-head { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.toc { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
.toc a { display: flex; gap: 12px; padding: 12px 0; text-decoration: none; font-size: 0.95rem; transition: color 0.3s, padding 0.4s var(--ease); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 0.72rem; color: var(--signal-text); padding-top: 3px; }
.toc a:hover { color: var(--signal-text); padding-left: 6px; }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--signal-text); }
.faq-mark { position: relative; flex: none; width: 18px; height: 18px; }
.faq-mark::before, .faq-mark::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.faq-mark::after { transform: rotate(90deg); }
.faq details[open] .faq-mark::after { transform: rotate(0); }
.faq details p { padding: 0 0 24px; max-width: 40rem; }

.next { border-top: 1px solid var(--ink); }
.next-link { display: block; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); text-decoration: none; }
.next-name { display: block; margin-top: 16px; font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -0.02em; transition: color 0.35s; }
.next-link:hover .next-name { color: var(--signal); }

.contact-mail { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.25em; font-family: var(--serif); font-size: clamp(2rem, 7.2vw, 6.6rem); line-height: 1; letter-spacing: -0.03em; text-decoration: none; overflow-wrap: anywhere; padding-bottom: 8px; background: linear-gradient(var(--signal), var(--signal)) 0 100% / 0 3px no-repeat; transition: background-size 0.6s var(--ease), color 0.3s; }
.contact-mail:hover { color: var(--signal); background-size: 100% 3px; }
.contact-rows { margin: clamp(48px, 7vw, 90px) 0 0; border-top: 1px solid var(--ink); }
.contact-rows div { display: grid; grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.contact-rows dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.contact-rows dd { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; }
.contact-rows dd a { text-decoration: none; }
.contact-rows dd a:hover { color: var(--signal-text); }
.contact-time { display: block; margin-top: 8px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-text); }

.missing { min-height: 70vh; display: flex; align-items: center; }
.missing .page-index { top: auto; bottom: -0.1em; font-family: var(--serif); font-size: clamp(8rem, 30vw, 26rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--rule); }
.missing .wrap { position: relative; z-index: 1; }

/* ─── Footer ───────────────────────────────────────────────────────────────── */

.footer { position: relative; background: var(--film); color: var(--on-film); overflow: hidden; }
.closing { padding-top: clamp(80px, 11vw, 160px); padding-bottom: clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--film-rule); }
.closing .label { color: var(--on-film-muted); margin-bottom: 28px; }
.closing .label-index { color: var(--signal); }
.closing-title { font-family: var(--serif); font-size: clamp(2.8rem, 8vw, 7.6rem); line-height: 0.95; letter-spacing: -0.03em; max-width: 12em; text-wrap: balance; }
.closing-mail { display: inline-flex; gap: 14px; margin-top: clamp(32px, 5vw, 56px); font-family: var(--mono); font-size: clamp(0.9rem, 1.6vw, 1.1rem); letter-spacing: 0.04em; color: var(--glow); text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }
.closing-mail:hover { color: var(--signal); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 0.7fr 0.7fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; font-size: 0.92rem; }
.footer-head { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-film-muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: #cdd5d2; }
.footer-grid a:hover { color: var(--signal); }
.footer-grid p { color: #cdd5d2; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--film-rule); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-film-muted); }
.footer-giant { margin: 0; padding: 0 var(--gutter); font-family: var(--serif); font-size: 15.2vw; line-height: 0.78; letter-spacing: -0.045em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(232, 238, 235, 0.22); transform: translateY(14%); user-select: none; }

/* ─── Reveal on scroll (only when JavaScript is running) ───────────────────── */

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ─── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .clock { display: none; }
  .wordmark { margin-right: auto; }
  .index a { grid-template-columns: 56px minmax(0, 1fr) 32px; row-gap: 8px; }
  .index-short { grid-column: 2; grid-row: 2; }
  .index .arrow { grid-row: 1; grid-column: 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid, .field-grid, .markets-grid, .about-grid, .service-grid { grid-template-columns: 1fr; }
  .hero-grid .scan { max-width: 440px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n + 3) { margin-top: 28px; border-top: 1px solid var(--rule); }
  .record { grid-template-columns: 1fr; }
  .about-figure, .service-aside { position: static; }
  .about-figure { max-width: 420px; }
  .split-head { flex-direction: column; align-items: start; }
  .highlights { grid-template-columns: 1fr; }
  .highlights li:nth-child(even) { padding-left: 0; border-left: 0; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-line:nth-child(2) { padding-left: 0.5em; }
  .route { --year: 0px; }
  .route::before, .route::after { left: 5px; }
  .stop { grid-template-columns: 1fr; padding-left: 34px; }
  .stop-year { font-size: 2.6rem; margin-bottom: 8px; }
  .stop-body { position: static; padding-left: 0; }
  .stop-body::before { left: 0; top: 12px; }
  .index a { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; }
  .index .arrow { display: none; }
  .contact-rows div { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 6px; }
  .plate figcaption { flex-direction: column; gap: 6px; }
  .map-label { font-size: 0.55rem; transform: translate(8px, -50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .scan-xray { animation: none; clip-path: inset(0 0 50% 0); }
  .scan-beam { animation: none; top: 50%; }
  .ticker-track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .statement-text .w { opacity: 1; }
  .js .units i::after { transform: scale(1); }
}
