:root {
  --ink: #1b1d1a;
  --ink-soft: #3f443c;
  --muted: #5c6257;
  --green: #24402a;
  --green-label: #3d5c3f;
  --paper: #f3f4f0;
  --rule: #d3d8cc;
  --rule-strong: #b9c0b0;
  --sans: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--serif); }
a { color: var(--green); }
a:hover { color: var(--ink); }

/* ---------- Home ---------- */
body.home { background: var(--ink); }
.hero { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; font-family: var(--sans); }
.hero img.frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease-in-out; }
.hero img.frame.on { opacity: 1; }
.hero .shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 60%, rgba(0,0,0,0) 100%); }
.hero nav { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: flex; justify-content: flex-end; flex-wrap: wrap; padding: 12px 16px; }
.hero nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero nav a:hover { color: #d9dfd2; }
.hero .title { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 16px; text-align: center; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(56px, 11vw, 148px); letter-spacing: -.02em; line-height: 1; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero h1.logo { font-family: "Arial Black", "Arial", sans-serif; font-weight: 900; letter-spacing: 0; color: #fff; -webkit-text-stroke: 2px #8a8f86; paint-order: stroke fill; text-shadow: -1px -1px 0 rgba(255,255,255,.9), 2px 3px 0 rgba(0,0,0,.2), 3px 4px 8px rgba(0,0,0,.3); white-space: nowrap; }
.mark { width: .6em; height: .6em; vertical-align: -0.03em; margin: 0 .03em; overflow: visible; }
.hero .tagline { margin: 20px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.4vw, 28px); line-height: 1.3; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero .controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 0 16px; }
.hero .toggle { width: 44px; height: 44px; border-radius: 22px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.3); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.hero .dots { display: flex; }
.hero .dots button { width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hero .dots span { display: block; width: 10px; height: 10px; border-radius: 5px; border: 1px solid #fff; }
.hero .dots button[aria-current="true"] span { background: #fff; }
.hero .ai-note { position: absolute; z-index: 3; right: 16px; bottom: 8px; margin: 0; font-size: 12px; color: rgba(255,255,255,.85); }
.hero button:focus-visible, .hero a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Inner pages ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; max-width: 1120px; width: 100%; margin: 0 auto; }
.brand { display: inline-block; line-height: 44px; min-height: 44px; font-family: "Arial Black", "Arial", sans-serif; font-weight: 900; font-size: 28px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand .mark { display: inline-block; }
.brand .rein { color: #3f6b2f; }
.site-header nav { display: flex; flex-wrap: wrap; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 48px 16px 80px; }
.eyebrow { margin: 0; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-label); }
h1.page-title { margin: 0; font-family: var(--sans); font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.02em; }
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.lead { margin: 0; font-size: 20px; line-height: 1.6; }
.stack { display: flex; flex-direction: column; gap: 32px; }
.fine { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); max-width: 720px; }

.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: start; }
.mission-text { display: flex; flex-direction: column; gap: 20px; font-size: 20px; line-height: 1.6; max-width: 600px; }
.mission-text p { margin: 0; }
.mission-text .key { font-style: italic; color: var(--green); }
.band { display: block; width: 100%; height: 360px; object-fit: cover; object-position: center 40%; }

.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 17px; line-height: 1.5; }
th[scope="col"] { padding: 14px 16px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-label); border-bottom: 1px solid var(--rule-strong); text-align: left; }
td { padding: 20px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.num { text-align: right !important; font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbc { color: var(--muted); font-weight: 500; }
.step { display: flex; gap: 14px; align-items: baseline; }
.step .n { font-family: var(--sans); font-weight: 800; font-size: 15px; color: var(--green-label); min-width: 22px; }
.step .name { display: block; font-family: var(--sans); font-weight: 800; font-size: 19px; }
.step .desc { display: block; margin-top: 4px; color: var(--ink-soft); }
.raised { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.raised a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--sans); font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.empty { border-top: 2px solid var(--ink); padding: 40px 0; font-size: 20px; font-style: italic; color: var(--ink-soft); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--sans); font-size: 14px; font-weight: 600; text-decoration: none; }

.site-footer { background: var(--ink); color: #d9dfd2; font-family: var(--sans); font-size: 13px; }
.site-footer div { max-width: 1120px; margin: 0 auto; padding: 20px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
