/* Layout concept: compartments. Each section is a bay separated by a labeled bulkhead rule; content sits left-aligned on a 72rem frame. */
/* Resh brand: navy #080D1C ground, gold #C9A84C accent, Cormorant Garamond headings. Single deliberate navy look. */
:root {
  --bg: #080D1C;
  --surface: #0F172B;
  --ink: #EFE8D6;
  --muted: #A6ADBC;
  --line: #1E2942;
  --accent: #C9A84C;
  --accent-ink: #080D1C;
  --accent-soft: #1A1D1F;
  --ok: #57C08D; --ok-soft: #0F2A21;
  --bad: #F07A6E; --bad-soft: #2E1517;
  --warn: #E3B64A; --warn-soft: #2A2312;
  --info: #86B4E6; --info-soft: #12223A;
  --grid: rgba(201, 168, 76, 0.05);
  --f-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --frame: 72rem;
  color-scheme: dark;
}


@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F5F4EF; --surface: #FFFFFF; --ink: #080D1C; --muted: #4D5567; --line: #DCD8CC;
    --accent: #8A6A1C; --accent-ink: #FFFFFF; --accent-soft: #F3EDDC;
    --ok: #1D7347; --ok-soft: #E3F2EA; --bad: #B42318; --bad-soft: #FBE7E5;
    --warn: #8A5D00; --warn-soft: #FBF0D6; --info: #2C5D8F; --info-soft: #E4EDF7;
    --grid: rgba(8, 13, 28, 0.05);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F5F4EF; --surface: #FFFFFF; --ink: #080D1C; --muted: #4D5567; --line: #DCD8CC;
  --accent: #8A6A1C; --accent-ink: #FFFFFF; --accent-soft: #F3EDDC;
  --ok: #1D7347; --ok-soft: #E3F2EA; --bad: #B42318; --bad-soft: #FBE7E5;
  --warn: #8A5D00; --warn-soft: #FBF0D6; --info: #2C5D8F; --info-soft: #E4EDF7;
  --grid: rgba(8, 13, 28, 0.05);
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }
.theme-toggle { font: 500 0.85rem var(--f-body); background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 0.35rem 0.7rem; cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.8rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--frame); margin-inline: auto; padding-inline: 20px; }
.prose { max-width: 40rem; display: grid; gap: 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.5rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding-block: 0.8rem; }
.brand { display: flex; align-items: baseline; gap: 0.55rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand { align-items: center; }
.brand svg { width: 34px; height: 38px; flex: none; }
.brand b { font-family: var(--f-display); font-size: 1.55rem; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); }
.brand span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: 0.25rem 1.1rem; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav details { position: relative; }
.nav summary { cursor: pointer; list-style: none; padding-block: 0.25rem; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: " ▾"; font-size: 0.75em; color: var(--muted); }
.nav details[open] .menu { display: grid; }
.menu { display: none; position: absolute; top: 2rem; left: 0; min-width: 14rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem; gap: 0.1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.menu a { padding: 0.45rem 0.6rem; border: 0; border-radius: 4px; }
.menu a:hover { background: var(--accent-soft); }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 0.98rem var(--f-body);
  padding: 0.7rem 1.15rem; border-radius: 4px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.nav .btn { padding: 0.45rem 0.9rem; color: var(--accent-ink); }
.nav .btn:hover { border-bottom-color: var(--accent); }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Bays (sections) */
.bay { padding-block: clamp(3rem, 7vw, 5.5rem); }
.bay + .bay { border-top: 1px solid var(--line); }
.bulkhead {
  display: flex; align-items: center; gap: 0.75rem;
  font: 600 0.74rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.4rem;
}
.bulkhead::before { content: ""; width: 0.6rem; height: 0.6rem; border: 2px solid var(--accent); border-radius: 1px; }
.stack { display: grid; gap: 1.25rem; }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .stack { gap: 1.5rem; }
.page-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero .stack { gap: 1.1rem; }

/* Ledger */
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ledger-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); font: 600 0.75rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.ledger-row:last-of-type { border-bottom: 0; }
.ledger-foot { padding: 0.8rem 1.1rem; border-top: 1px solid var(--line); font-size: 0.9rem; }

.pill { display: inline-block; font: 600 0.72rem var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.55rem; border-radius: 3px; white-space: nowrap; border: 1px solid currentColor; }
.pill.blocked { color: var(--ok); background: var(--ok-soft); }
.pill.breached { color: var(--bad); background: var(--bad-soft); }
.pill.unknown { color: var(--warn); background: var(--warn-soft); }
.pill.detected { color: var(--info); background: var(--info-soft); }
.pill.progress { color: var(--muted); background: transparent; }

/* Columns */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols > * { min-width: 0; display: grid; gap: 0.6rem; align-content: start; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 4vw, 4rem); }
.split > * { min-width: 0; }
.point h3 { display: flex; gap: 0.6rem; align-items: baseline; }
.point h3::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; background: var(--accent); transform: translateY(-0.1rem); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.fact { background: var(--surface); padding: 1rem 1.1rem; display: grid; gap: 0.2rem; }
.fact dt { font: 600 0.72rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 0; font-weight: 600; }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.flow-step { padding: 1.2rem 1.1rem; display: grid; gap: 0.4rem; align-content: start; border-right: 1px solid var(--line); position: relative; min-width: 0; }
.flow-step:last-child { border-right: 0; }
.flow-step .tag { font: 600 0.72rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.flow-step.guard { background: var(--accent-soft); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 44rem; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
th { font: 600 0.72rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td.date { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.tally { display: flex; gap: 0.75rem 2rem; flex-wrap: wrap; }
.tally div { display: grid; }
.tally b { font: 600 2.8rem var(--f-display); color: var(--accent); font-variant-numeric: tabular-nums; }

/* Lists */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.check li { padding-left: 1.4rem; position: relative; }
.check li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; border: 2px solid var(--accent); }
.check.open li::before { border-color: var(--warn); border-style: dashed; }

/* Callout / band */
.note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 1rem 1.2rem; border-radius: 0 6px 6px 0; }
.band { background: var(--surface); border-top: 1px solid var(--accent) !important; border-bottom: 1px solid var(--accent); }
.band p { color: var(--muted); }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* Article */
.article { max-width: 42rem; display: grid; gap: 1.1rem; }
.article h2 { font-size: 1.5rem; margin-top: 1rem; }
.byline { font: 500 0.85rem var(--f-mono); color: var(--muted); }
.sources { font-size: 0.9rem; color: var(--muted); display: grid; gap: 0.3rem; }

/* Contact */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.3rem; display: grid; gap: 0.6rem; }
.copyline { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.copyline output { font: 600 1.1rem var(--f-mono); user-select: all; overflow-wrap: anywhere; }
.copy { font: 600 0.8rem var(--f-body); padding: 0.35rem 0.7rem; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 4px; cursor: pointer; }
.copy:hover { border-color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: 0.9rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.foot-grid > * { min-width: 0; display: grid; gap: 0.35rem; align-content: start; }
.foot-grid h4 { margin: 0 0 0.3rem; font: 600 0.72rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.verse { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); text-align: center; color: var(--accent); font-family: var(--f-display); font-size: 1.1rem; font-size: 0.92rem; }

@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .cols, .cols.two { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .menu { position: static; box-shadow: none; margin-top: 0.3rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---- Match live reshconsultancy.com treatment ---- */
:root { --gold: #C9A84C; --gold-ink: #080D1C; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --bg: #F6F2E9; --line: #E2DACA; --accent: #9A7A26; } }
:root[data-theme="light"] { --bg: #F6F2E9; --line: #E2DACA; --accent: #9A7A26; }
h1 { font-weight: 400; font-style: italic; letter-spacing: -0.005em; }
h1 em, h2 em { color: var(--accent); font-style: italic; }
h2 { font-weight: 500; }
h3 { font-weight: 500; }
.bulkhead { color: var(--accent); letter-spacing: 0.32em; font-size: 0.7rem; font-weight: 500; }
.bulkhead::before { width: 2.2rem; height: 1px; border: 0; background: var(--accent); border-radius: 0; }
.nav { font: 500 0.72rem var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; gap: 0.25rem 1.6rem; }
.btn, .nav .btn { font: 500 0.74rem var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; border-radius: 0; background: var(--gold); border-color: var(--gold); color: var(--gold-ink); padding: 0.95rem 1.5rem; }
.nav .btn { padding: 0.6rem 1.1rem; color: var(--gold-ink); }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.theme-toggle { font: 500 0.68rem var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); border-color: var(--gold); border-radius: 999px; padding: 0.35rem 0.9rem; }
.brand { flex-direction: row; align-items: center; gap: 0.7rem; }
.brand-text { display: grid; line-height: 1.1; }
.brand b { font-weight: 500; letter-spacing: 0.22em; }
.brand span { font: 500 0.62rem var(--f-mono); letter-spacing: 0.14em; color: var(--muted); }
.hero .lead { font: 500 0.98rem/1.75 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); max-width: 38rem; }
.hero .lead strong { color: var(--accent); font-weight: 600; }
.pill { border-radius: 0; }
.ledger, .table-wrap, .facts, .flow, .contact-card { border-radius: 0; }
.ledger-head, th, .fact dt, .foot-grid h4 { letter-spacing: 0.2em; }
.tally b { font-weight: 400; }
.verse { font-style: italic; }
.nav { letter-spacing: 0.12em; gap: 0.25rem 1.1rem; font-size: 0.7rem; }
.site-header .wrap { flex-wrap: nowrap; }
@media (max-width: 1100px) { .site-header .wrap { flex-wrap: wrap; } }

/* ---- Tracker-locked light palette (S-055): cream #F7F5EF, deep navy text, rich gold #6B4F00. Light is the default. ---- */
:root:not([data-theme="dark"]) {
  --bg: #F7F5EF; --surface: #FFFFFF; --ink: #080D1C; --muted: #4D5567; --line: #E3DDCF;
  --accent: #6B4F00; --accent-ink: #FFFFFF; --accent-soft: #F1EAD6;
  --ok: #1D7347; --ok-soft: #E3F2EA; --bad: #B42318; --bad-soft: #FBE7E5;
  --warn: #8A5D00; --warn-soft: #FBF0D6; --info: #2C5D8F; --info-soft: #E4EDF7;
  --grid: rgba(8, 13, 28, 0.05);
  color-scheme: light;
}

/* ── "Watch it get stopped" demo (gi-*) ─────────────────────────────────────
   A cinema stage: always dark, in both themes, like a screen in the room.
   Same scenes as the Governed Intelligence motion piece (11 Oct 2026). */
.gi { --gi-bg:#070B18; --gi-panel:#0C1326; --gi-panel2:#101a33; --gi-gold:#C9A84C; --gi-gold2:#E7D295;
  --gi-fg:#ECE7D7; --gi-muted:#878FA6; --gi-faint:#4B536B; --gi-red:#E0533A; --gi-ok:#5FB487;
  --gi-line:rgba(201,168,76,.22); --gi-soft:rgba(135,143,166,.18); }
.gi-stage { position:relative; width:100%; aspect-ratio:16/9; max-height:72vh; overflow:hidden;
  background:radial-gradient(130% 100% at 50% 0%, #0d1730 0%, var(--gi-bg) 62%), var(--gi-bg);
  border:1px solid var(--gi-line); border-radius:14px; color:var(--gi-fg);
  box-shadow:0 30px 80px -40px #000, inset 0 1px 0 rgba(255,255,255,.04); }
.gi-stage::after { content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(120% 120% at 50% 45%, transparent 58%, rgba(0,0,0,.55) 100%); }
.gi-scene { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:clamp(16px,5vw,54px); gap:clamp(8px,1.6vw,16px); opacity:0; visibility:hidden; transition:opacity .6s ease; }
.gi-scene.gi-active { opacity:1; visibility:visible; }
.gi-k { font-family:var(--f-display); font-weight:600; line-height:1.02; margin:0; text-wrap:balance; color:var(--gi-fg); }
.gi-xl { font-size:clamp(28px,7vw,72px); } .gi-lg { font-size:clamp(22px,5.4vw,52px); }
.gi-sub { font-size:clamp(13px,2.1vw,19px); color:var(--gi-muted); max-width:32ch; line-height:1.45; margin:0; }
.gi-eyebrow { font-family:var(--f-body); font-weight:500; font-size:11px; letter-spacing:.3em; text-transform:uppercase; color:var(--gi-muted); }
.gi-gold { color:var(--gi-gold); } .gi-okc { color:var(--gi-ok); }
.gi-a { opacity:0; transform:translateY(14px); }
.gi-active .gi-a { animation:gi-rise .85s cubic-bezier(.2,.7,.2,1) forwards; animation-delay:var(--d,0s); }
@keyframes gi-rise { to { opacity:1; transform:none; } }
.gi-mark { width:clamp(84px,16vw,150px); height:auto; display:block; }
.gi-hexline { fill:none; stroke:var(--gi-gold); stroke-width:7; stroke-linejoin:round; stroke-dasharray:1000; stroke-dashoffset:1000; }
.gi-active .gi-hexline { animation:gi-draw 1.5s ease forwards; } @keyframes gi-draw { to { stroke-dashoffset:0; } }
.gi-hexface { fill:#0A1024; opacity:0; } .gi-active .gi-hexface { animation:gi-fade .9s ease .5s forwards; }
.gi-resh { fill:var(--gi-gold); opacity:0; transform-origin:center; }
.gi-active .gi-resh { animation:gi-pop 1s cubic-bezier(.2,.8,.2,1) .9s forwards; }
@keyframes gi-pop { 0% { opacity:0; transform:scale(.6); } 100% { opacity:1; transform:scale(1); } }
@keyframes gi-fade { to { opacity:1; } }
.gi-word { font-family:var(--f-display); font-weight:600; letter-spacing:.42em; padding-left:.42em; font-size:clamp(16px,3.2vw,26px); text-transform:uppercase; }
.gi-rule { width:46px; height:1px; background:var(--gi-line); }
.gi-ticket, .gi-seal { font-family:var(--f-mono); font-size:clamp(10.5px,1.8vw,15px); border:1px solid var(--gi-soft); border-radius:10px;
  background:var(--gi-panel); padding:12px 16px; max-width:min(94%,470px); line-height:1.75; text-align:left; color:var(--gi-fg); word-break:break-word; }
.gi-seal { border-color:var(--gi-line); color:var(--gi-muted); } .gi-seal b { color:var(--gi-gold); font-weight:500; }
.gi-tag { color:var(--gi-faint); }
.gi-flag { display:inline-block; padding:1px 8px; border-radius:999px; font-size:11px; font-family:var(--f-body); font-weight:600; letter-spacing:.06em;
  background:rgba(224,83,58,.14); color:var(--gi-red); border:1px solid rgba(224,83,58,.4); }
.gi-pipe { display:flex; align-items:center; gap:clamp(6px,1.6vw,14px); justify-content:center; max-width:100%; }
.gi-node { display:flex; flex-direction:column; align-items:center; gap:6px; }
.gi-dot { width:clamp(38px,7vw,58px); height:clamp(38px,7vw,58px); border-radius:50%; border:1px solid var(--gi-line); background:var(--gi-panel2); display:grid; place-items:center; color:var(--gi-gold); }
.gi-dot svg { width:46%; height:46%; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.gi-node small { font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--gi-muted); }
.gi-link { width:clamp(14px,4vw,40px); height:1px; background:var(--gi-line); }
.gi-node.gi-lit .gi-dot { border-color:var(--gi-ok); color:var(--gi-ok); box-shadow:0 0 0 4px rgba(95,180,135,.1); }
.gi-stamp { font-family:var(--f-display); font-weight:700; letter-spacing:.06em; font-size:clamp(26px,6.6vw,62px); color:var(--gi-red);
  border:3px solid var(--gi-red); border-radius:10px; padding:.04em .28em; transform:rotate(-7deg); opacity:0; }
.gi-active .gi-stamp { animation:gi-slam .5s cubic-bezier(.2,1.4,.3,1) .35s forwards; }
@keyframes gi-slam { 0% { opacity:0; transform:rotate(-7deg) scale(1.9); } 70% { opacity:1; transform:rotate(-7deg) scale(.92); } 100% { opacity:1; transform:rotate(-7deg) scale(1); } }
.gi-bar { width:100%; height:3px; background:var(--line); border-radius:2px; overflow:hidden; margin-top:.9rem; }
.gi-bar > i { display:block; height:100%; width:0; background:linear-gradient(90deg, #C9A84C, #E7D295); }
.gi-controls { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; justify-content:center; margin-top:.8rem; }
.gi-btn { font:500 13px var(--f-body); letter-spacing:.04em; color:var(--ink); background:var(--surface); border:1px solid var(--line);
  border-radius:999px; padding:8px 18px; cursor:pointer; }
.gi-btn:hover { border-color:var(--accent); } .gi-btn:focus-visible, .gi-pd:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.gi-dots { display:flex; gap:9px; align-items:center; }
.gi-pd { width:8px; height:8px; border-radius:50%; background:var(--muted); opacity:.45; border:none; padding:0; cursor:pointer; transition:transform .25s, opacity .25s; }
.gi-pd[aria-current="true"] { background:var(--accent); opacity:1; transform:scale(1.35); }
.gi-caption { font-size:.85rem; color:var(--muted); text-align:center; margin:.6rem auto 0; max-width:62ch; }
.gi-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
@media (prefers-reduced-motion: reduce) {
  .gi-a, .gi-active .gi-a { animation:none !important; opacity:1; transform:none; }
  .gi-hexline { stroke-dashoffset:0; animation:none !important; }
  .gi-hexface, .gi-resh, .gi-stamp { opacity:1; animation:none !important; }
  .gi-scene { transition:none; }
}
/* phones: a taller stage so every line of every scene fits */
@media (max-width: 640px) {
  .gi-stage { aspect-ratio: 4 / 5; max-height: none; }
  .gi-xl { font-size: clamp(30px, 9vw, 44px); } .gi-lg { font-size: clamp(24px, 7.5vw, 36px); }
  .gi-sub { font-size: 15px; }
}
