/* ============================================================
   Almagest Systems: Design System v3.0
   "Gold and Marble" · black / marble bands · deep gold accent
   Base: hand-written static CSS, no build step.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Surfaces */
  --ink-0: #080705;
  --ink-1: #0E0C08;
  --ink-2: #16120C;
  --ink-3: #1E1912;
  --marble-0: #F4F0E7;
  --marble-1: #EAE4D6;
  --marble-2: #DFD7C4;

  /* Gold accent ramp */
  --gold-100: #F5E9C9;
  --gold-300: #E3C878;
  --gold-500: #D4AF37;
  --gold-600: #A07E1F;
  --gold-700: #7A5E12;
  --gold-800: #4A3A12;

  --accent: var(--gold-500);
  --accent-bright: #E8C55B;

  /* Text on dark */
  --t-hi: #F0EBDD;
  --t-mid: #B3AB98;
  --t-low: #7D7566;
  /* Text on light */
  --t-ink: #181510;
  --t-ink-mid: #5C5648;

  --line-dark: rgba(240, 235, 221, 0.14);
  --line-light: rgba(24, 21, 16, 0.16);

  --font-display: 'Inter', -apple-system, sans-serif;
  --font-brand: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1200px;
  --pad-x: clamp(20px, 4.5vw, 56px);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ink-0);
  color: var(--t-hi);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
::selection { background: var(--gold-600); color: var(--t-hi); }

/* ---------- Bands ---------- */
.band { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.band--dark { background: var(--ink-0); color: var(--t-hi); }
.band--dark.band--raised { background: var(--ink-1); }
.band--light { background: var(--marble-0); color: var(--t-ink); }
.band--light.band--raised { background: var(--marble-1); }
.band--flush { padding: 0; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display--xl { font-size: clamp(42px, 7vw, 92px); }
.display--lg { font-size: clamp(32px, 5vw, 64px); }
.display--md { font-size: clamp(24px, 3.2vw, 40px); }
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.band--light .kicker { color: var(--gold-700); }
.lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; max-width: 620px; color: var(--t-mid); }
.band--light .lede { color: var(--t-ink-mid); }
.body-copy { max-width: 620px; color: var(--t-mid); }
.band--light .body-copy { color: var(--t-ink-mid); }
.mono-note { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--t-low); }
.band--light .mono-note { color: var(--t-ink-mid); }

/* Section code: mono metadata layer */
.sec-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--t-low);
  border: 1px solid var(--line-dark);
  padding: 5px 10px;
  display: inline-block;
  margin-bottom: 26px;
}
.band--light .sec-code { border-color: var(--line-light); color: var(--t-ink-mid); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ink-0) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav__in {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__name {
  font-family: var(--font-brand);
  font-size: 20px; letter-spacing: 0.02em; font-weight: 600;
}
.brand__tail {
  font-family: var(--font-brand); font-size: 14px; letter-spacing: 0.02em; font-weight: 500;
  color: var(--t-low); margin-left: 2px;
}
.nav__links { display: flex; gap: 26px; align-items: center; }
.nav__link {
  font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--t-mid);
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color .2s;
}
.nav__link:hover { color: var(--t-hi); }
.nav__link.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.lang-toggle {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  border: 1px solid var(--line-dark); padding: 6px 12px;
  color: var(--t-mid); transition: all .2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--t-hi); display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em;
  padding: 15px 28px;
  transition: all .25s var(--ease-slow);
}
.btn--solid { background: var(--accent); color: var(--ink-0); box-shadow: 0 0 26px rgba(212, 175, 55, 0.35); }
.btn--solid:hover { background: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 0 36px rgba(212, 175, 55, 0.5); }
.btn--ghost { border: 1px solid var(--line-dark); color: var(--t-hi); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.band--light .btn--ghost { border-color: var(--line-light); color: var(--t-ink); }
.band--light .btn--ghost:hover { border-color: var(--gold-700); color: var(--gold-700); }
.btn__arrow { font-family: var(--font-body); }

/* ---------- Reveal (calm Jasmina pacing) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-slow), transform .9s var(--ease-slow); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .12s; }
.reveal--d2 { transition-delay: .24s; }
.reveal--d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero (statue) ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(1200px 700px at 68% 42%, #1A1408 0%, var(--ink-0) 62%);
}
.hero__scene {
  position: absolute; inset: 0; z-index: 1;
}
.hero__scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 4vw; opacity: 1; transition: opacity 1.2s var(--ease-slow);
}
.hero__poster.is-hidden { opacity: 0; }
.hero__poster svg { height: min(78vh, 700px); width: auto; opacity: 0.9; }
.hero__copy { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); width: 100%; }
/* hero copy sits directly on the scene: no shadow plate */
.hero__copy .display--xl { max-width: 9em; }
.hero__glow {
  position: absolute; z-index: 0; right: 6%; top: 14%;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(74, 58, 18, 0.12) 45%, transparent 68%);
  pointer-events: none;
}
.hero__meta {
  position: absolute; z-index: 2; bottom: 28px; left: 0; right: 0;
}
.hero__meta .wrap { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Ticker strip ---------- */
.strip {
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.strip__in {
  display: inline-block; font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-low);
  animation: strip-scroll 42s linear infinite;
}
.strip__in span { margin: 0 28px; }
.strip__in b { color: var(--accent); font-weight: 400; }
@keyframes strip-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__in { animation: none; } }

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line-dark); padding: 30px 26px;
  background: var(--ink-1); transition: border-color .25s;
  display: block;
}
.card:hover { border-color: var(--accent); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--t-mid); }
.card .mono-note { margin-top: 18px; display: block; color: var(--accent); }
.band--light .card { background: transparent; border-color: var(--line-light); }
.band--light .card p { color: var(--t-ink-mid); }

/* ---------- Stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { border-left: 2px solid var(--accent); padding-left: 20px; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -0.02em; }
.stat__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-mid); margin-top: 8px; display: block; }
.band--light .stat__label { color: var(--t-ink-mid); }

/* ---------- Chapter nav (product) ---------- */
.chapnav {
  position: sticky; top: 64px; z-index: 50;
  background: color-mix(in srgb, var(--ink-0) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  overflow-x: auto; scrollbar-width: none;
}
.chapnav::-webkit-scrollbar { display: none; }
.chapnav__in { display: flex; min-width: max-content; }
.chapnav__link {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--t-low);
  padding: 13px 18px; border-right: 1px solid var(--line-dark);
  transition: all .2s; white-space: nowrap;
}
.chapnav__link:first-child { border-left: 1px solid var(--line-dark); }
.chapnav__link:hover { color: var(--t-hi); }
.chapnav__link.is-active { color: var(--ink-0); background: var(--accent); box-shadow: 0 0 18px rgba(212, 175, 55, 0.45); }
.chapter { scroll-margin-top: 118px; }

/* ---------- Stepper ---------- */
.stepper { border: 1px solid var(--line-dark); background: var(--ink-1); }
.band--light .stepper { border-color: var(--line-light); background: var(--marble-1); }
.stepper__stage { position: relative; min-height: 420px; display: grid; }
.step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-slow); padding: clamp(24px, 3.5vw, 46px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 44px); align-items: center; }
.step.is-on { opacity: 1; visibility: visible; }
.step__note .kicker { margin-bottom: 12px; }
.step__note h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2vw, 26px); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 14px; }
.step__note p { color: var(--t-mid); font-size: 15px; max-width: 420px; }
.band--light .step__note p { color: var(--t-ink-mid); }
.stepper__bar {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line-dark); padding: 14px 20px;
}
.band--light .stepper__bar { border-color: var(--line-light); }
.stepper__dots { display: flex; gap: 8px; }
.stepper__dot { width: 26px; height: 3px; background: var(--line-dark); transition: background .3s; }
.stepper__dot.is-on { background: var(--accent); }
.stepper__ctrl { display: flex; gap: 8px; }
.stepper__btn {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  border: 1px solid var(--line-dark); padding: 9px 16px; color: var(--t-mid);
  transition: all .2s; text-transform: uppercase;
}
.stepper__btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.stepper__btn:disabled { opacity: 0.35; cursor: default; }
.band--light .stepper__btn { border-color: var(--line-light); color: var(--t-ink-mid); }

/* ---------- Device frames ---------- */
.frame-phone {
  width: min(320px, 100%); margin: 0 auto;
  background: var(--ink-2); border: 1px solid var(--line-dark);
  border-radius: 26px; padding: 12px 10px; box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.frame-phone__screen { background: var(--ink-0); border-radius: 18px; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; }
.frame-desktop {
  background: var(--ink-2); border: 1px solid var(--line-dark);
  border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.frame-desktop__bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line-dark); align-items: center; }
.frame-desktop__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); display: block; }
.frame-desktop__title { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--t-low); margin-left: 8px; text-transform: uppercase; }
.frame-desktop__body { background: var(--ink-1); min-height: 300px; padding: 18px; }

/* ---------- Chat mock ---------- */
.chat { padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chat__head { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-low); padding: 10px 12px; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; }
.chat__head b { color: var(--gold-300); font-weight: 400; }
.bubble { max-width: 88%; padding: 10px 13px; font-size: 12.5px; line-height: 1.5; border-radius: 10px; }
.bubble--user { align-self: flex-end; background: var(--gold-800); color: var(--gold-100); border-bottom-right-radius: 3px; }
.bubble--metron { align-self: flex-start; background: var(--ink-2); color: var(--t-hi); border-bottom-left-radius: 3px; border: 1px solid var(--line-dark); }
.bubble--metron .b-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 5px; }
.src-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.src-chip {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em;
  border: 1px solid var(--gold-800); color: var(--gold-300);
  padding: 3px 7px; border-radius: 3px;
}
.approve-card {
  align-self: flex-start; width: 92%;
  border: 1px solid var(--accent); border-radius: 10px; padding: 12px 13px;
  background: color-mix(in srgb, var(--gold-800) 30%, var(--ink-2));
}
.approve-card .b-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }
.approve-card p { font-size: 12.5px; }
.approve-card__row { display: flex; gap: 8px; margin-top: 10px; }
.approve-card__btn {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 4px;
}
.approve-card__btn--ok { background: var(--accent); color: var(--ink-0); }
.approve-card__btn--no { border: 1px solid var(--line-dark); color: var(--t-mid); }

/* ---------- Portal / table mock ---------- */
.mock-rows { display: flex; flex-direction: column; gap: 8px; }
.mock-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border: 1px solid var(--line-dark); padding: 10px 13px;
  font-family: var(--font-mono); font-size: 11px; color: var(--t-mid);
}
.mock-row b { color: var(--t-hi); font-weight: 400; }
.mock-row .ok { color: var(--gold-300); }
.mock-row .warn { color: #E0863B; }
.mock-tag { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--gold-800); color: var(--gold-300); padding: 2px 7px; border-radius: 3px; }

/* ---------- Media / duotone + halftone ---------- */
.duotone { position: relative; overflow: hidden; background: var(--ink-0); }
.duotone img, .duotone video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.82);
}
.duotone::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(160deg, rgba(74, 58, 18, 0.55), rgba(8, 7, 5, 0.55));
  mix-blend-mode: color;
}
.duotone::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-image: radial-gradient(rgba(8, 7, 5, 0.55) 1px, transparent 1.4px);
  background-size: 5px 5px; opacity: 0.5;
}
.duotone--tall { aspect-ratio: 4 / 5; }
.duotone--wide { aspect-ratio: 16 / 9; }

/* ---------- Scenario (solutions) ---------- */
.scenario { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.scenario .duotone { max-width: 340px; width: 100%; }
.scenario__beats { display: flex; flex-direction: column; }
.beat { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.band--light .beat { border-color: var(--line-light); }
.beat__n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); padding-top: 4px; }
.beat h4 { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 4px; }
.beat p { font-size: 14px; color: var(--t-mid); }
.band--light .beat p { color: var(--t-ink-mid); }

/* ---------- Channel tiles ---------- */
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.channel {
  border: 1px solid var(--line-dark); padding: 20px 18px;
  display: flex; align-items: center; gap: 14px; transition: border-color .25s, box-shadow .25s;
}
.channel:hover { border-color: var(--accent); box-shadow: 0 0 22px rgba(212, 175, 55, 0.18); }
.channel svg { width: 26px; height: 26px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.channel b { font-size: 14px; font-weight: 600; display: block; }
.channel span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--t-low); text-transform: uppercase; }
@media (max-width: 900px) { .channels { grid-template-columns: 1fr 1fr; } }

/* ---------- Flow diagram (connectivity) ---------- */
.flow-svg { width: 100%; height: auto; display: block; }
.flow-line {
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  stroke-dasharray: 7 9; animation: flow-dash 1.6s linear infinite; opacity: 0.85;
}
.flow-line--back { stroke: #E3C878; opacity: 0.5; animation-direction: reverse; }
@keyframes flow-dash { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .flow-line { animation: none; } }

/* ---------- Channel orbit ---------- */
.orbit { position: relative; width: 380px; height: 380px; margin: 0 auto; }
.orbit__guide { position: absolute; inset: 26px; border: 1px dashed var(--line-dark); border-radius: 50%; }
.orbit__center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--gold-800); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em; color: var(--gold-100);
  box-shadow: 0 0 38px rgba(212, 175, 55, 0.35);
}
.orbit__ring { position: absolute; inset: 0; animation: orbit-spin 48s linear infinite; }
.orbit__item {
  position: absolute; top: 50%; left: 50%;
  width: 68px; height: 68px; margin: -34px 0 0 -34px;
  transform: rotate(var(--a)) translateX(160px) rotate(calc(var(--a) * -1));
}
.orbit__chip {
  width: 100%; height: 100%; border-radius: 50%;
  border: 1px solid var(--line-dark); background: var(--ink-1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  animation: orbit-spin 48s linear infinite reverse;
  transition: border-color .25s, box-shadow .25s;
}
.orbit__chip:hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(212, 175, 55, 0.25); }
.orbit__chip svg { width: 21px; height: 21px; fill: var(--gold-300); }
.orbit__chip--line svg { fill: none; stroke: var(--gold-300); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.orbit__chip span { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.08em; color: var(--t-low); text-transform: uppercase; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orbit__ring, .orbit__chip { animation: none; } }
@media (max-width: 480px) {
  .orbit { width: 300px; height: 300px; }
  .orbit__item { transform: rotate(var(--a)) translateX(122px) rotate(calc(var(--a) * -1)); }
}

/* ---------- Deliverable artifacts ---------- */
/* Spreadsheet */
.sheet { background: #F7F5EF; border-radius: 6px; overflow: hidden; font-family: var(--font-mono); font-size: 10.5px; color: #1A1D1F; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.sheet__bar { display: flex; gap: 8px; align-items: center; background: #E9E5DA; padding: 6px 10px; border-bottom: 1px solid #D5D0C2; }
.sheet__ref { background: #fff; border: 1px solid #C9C4B4; padding: 2px 7px; }
.sheet__fx { flex: 1; background: #fff; border: 1px solid #C9C4B4; padding: 2px 8px; white-space: nowrap; overflow: hidden; color: #7A5E12; }
.sheet table { border-collapse: collapse; width: 100%; }
.sheet th { background: #EFEBE0; border: 1px solid #DDD8CA; font-weight: 400; color: #8A857A; padding: 3px 7px; font-size: 9.5px; }
.sheet td { border: 1px solid #E5E1D4; padding: 4px 7px; text-align: right; background: #FCFBF7; white-space: nowrap; }
.sheet td.lab { text-align: left; background: #F7F5EC; }
.sheet td.neg { color: #B4452F; }
.sheet td.sel { outline: 2px solid #7A5E12; outline-offset: -2px; background: #F7EFD4; }
.sheet__tabs { display: flex; gap: 2px; background: #E9E5DA; padding: 5px 8px 7px; }
.sheet__tab { padding: 2px 11px; background: #F1EDE2; border: 1px solid #D5D0C2; border-bottom: none; color: #8A857A; }
.sheet__tab.on { background: #fff; color: #7A5E12; }
.artifact-cap { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--t-low); margin-top: 12px; display: block; }
.band--light .artifact-cap { color: var(--t-ink-mid); }

/* Deck */
.deckm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deckm__slide { aspect-ratio: 16 / 9; background: #12100A; border: 1px solid var(--line-dark); padding: 11px 12px; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 16px 34px rgba(0,0,0,0.3); }
.deckm__k { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.14em; color: #D4AF37; }
.deckm__t { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0; color: #F0EBDD; line-height: 1.15; }
.deckm__line { height: 4px; background: #1E1912; border-radius: 2px; }
.deckm__bars { display: flex; align-items: flex-end; gap: 5px; flex: 1; padding-top: 2px; }
.deckm__bars i { display: block; width: 14%; background: #7A5E12; border-radius: 1px 1px 0 0; }

/* Dashboard */
.dashm { background: var(--ink-1); border: 1px solid var(--line-dark); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.dashm__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dashm__tile { background: var(--ink-2); padding: 11px 13px; }
.dashm__num { font-family: var(--font-body); font-weight: 600; font-size: 21px; line-height: 1; color: var(--t-hi); }
.dashm__lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; color: var(--t-low); display: block; margin-bottom: 6px; text-transform: uppercase; }
.dashm__alert { border: 1px solid var(--gold-800); background: color-mix(in srgb, var(--gold-800) 28%, var(--ink-1)); padding: 9px 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--gold-300); }

/* Terminal */
.term { background: #0D0B07; border: 1px solid var(--line-dark); border-radius: 8px; font-family: var(--font-mono); font-size: 11px; padding: 14px 16px; color: #B3AB98; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.term p { margin: 0; padding: 2.5px 0; white-space: nowrap; overflow: hidden; }
.term b { color: #E3C878; font-weight: 400; }
.term i { color: #5BD6A2; font-style: normal; }

/* Workflow */
.wf { border: 1px solid var(--line-dark); background: var(--ink-1); padding: 6px 18px; }
.band--light .wf { border-color: var(--line-light); background: transparent; }
.wf__step { display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.wf__step:last-child { border-bottom: none; }
.band--light .wf__step { border-color: var(--line-light); }
.wf__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-600); justify-self: center; }
.wf__step.on .wf__dot { background: var(--accent); box-shadow: 0 0 12px rgba(212, 175, 55, 0.8); }
.wf__step b { font-size: 13px; font-weight: 600; display: block; }
.wf__step span.wf__sub { font-family: var(--font-mono); font-size: 10px; color: var(--t-low); }
.band--light .wf__step span.wf__sub { color: var(--t-ink-mid); }

/* Document */
.docm { background: #FBFAF5; border-radius: 6px; padding: 24px 26px; color: #1A1D1F; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.docm__t { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #181510; line-height: 1.15; letter-spacing: -0.01em; }
.docm__meta { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: #8A857A; display: block; margin: 8px 0 14px; }
.docm__line { height: 6px; background: #E5E1D4; margin: 7px 0; border-radius: 2px; }
.docm__sig { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; color: #7A5E12; border-top: 1px solid #E5E1D4; padding-top: 10px; margin-top: 14px; }

/* ---------- Timeline (deployment) ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: phase; }
.phase { border-top: 2px solid var(--line-dark); padding-top: 22px; position: relative; }
.phase.is-accent { border-top-color: var(--accent); }
.phase__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); display: block; margin-bottom: 12px; text-transform: uppercase; }
.phase h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 10px; }
.phase p { font-size: 14.5px; color: var(--t-mid); }
.band--light .phase p { color: var(--t-ink-mid); }
.phase .mono-note { margin-top: 14px; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-0); border-top: 1px solid var(--line-dark); padding: 56px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-low); margin-bottom: 14px; }
.footer a.f-link { display: block; font-size: 14px; color: var(--t-mid); padding: 4px 0; transition: color .2s; }
.footer a.f-link:hover { color: var(--accent); }
.footer__legal { border-top: 1px solid var(--line-dark); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__legal p { font-family: var(--font-mono); font-size: 11.5px; color: var(--t-low); }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band .display--lg { max-width: 12em; margin-bottom: 26px; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-mid); display: block; margin-bottom: 7px; }
.form input, .form textarea {
  width: 100%; background: var(--ink-1); border: 1px solid var(--line-dark);
  color: var(--t-hi); font: 15px var(--font-body); padding: 13px 14px;
  transition: border-color .2s; border-radius: 0; -webkit-appearance: none;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__copy::before {
    content: ''; position: absolute; inset: -8% -10%; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 95% 75% at 45% 40%, rgba(7, 6, 4, 0.5) 28%, rgba(7, 6, 4, 0.22) 60%, transparent 80%);
  }
  .hero__copy .lede { color: #D8D2C2; }
  .grid-2, .scenario { grid-template-columns: 1fr; }
  .cards, .grid-3, .timeline { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__poster { justify-content: center; padding-right: 0; opacity: 0.22; }
}
@media (max-width: 720px) {
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink-1); border-bottom: 1px solid var(--line-dark); padding: 10px 0; }
  .nav__links.is-open { display: flex; }
  .nav__links .nav__link { padding: 13px var(--pad-x); width: 100%; }
  .nav__burger { display: flex; }
  .stats { grid-template-columns: 1fr; }
}

/* ============================================================
   v3.1: Full-fidelity deliverable renderings
   Complete screens and documents at working size, pure CSS/SVG.
   Mock content is product chrome: English, mono, untranslated.
   ============================================================ */

/* Horizontal-scroll guard: full renderings keep their density on
   small screens and scroll sideways instead of shrinking. */
.artifact-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.artifact-scroll > * { min-width: 760px; }

/* Grid children must be allowed to shrink below their nowrap
   min-content, or dense mock tables push the page wider. */
.step, .step > *, .stepper, .stepper__stage, .wf__step > div { min-width: 0; }

.frame-desktop__body--flush { padding: 0; min-height: 0; }

/* ---------- Application shot (portal / dashboard) ---------- */
.appshot { display: grid; grid-template-columns: 148px minmax(0, 1fr); background: var(--ink-1); font-family: var(--font-mono); }
.appshot--narrow { grid-template-columns: 108px minmax(0, 1fr); }
.appshot__nav { border-right: 1px solid var(--line-dark); padding: 10px 0 14px; display: flex; flex-direction: column; gap: 1px; background: var(--ink-0); }
.appshot__brand { font-size: 9px; letter-spacing: 0.2em; color: var(--gold-300); padding: 6px 14px 12px; text-transform: uppercase; }
.appshot__item { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-low); padding: 7px 14px; border-left: 2px solid transparent; white-space: nowrap; }
.appshot__item.on { color: var(--t-hi); border-left-color: var(--accent); background: color-mix(in srgb, var(--gold-800) 30%, transparent); }
.appshot__nav .appshot__foot { margin-top: auto; padding: 10px 14px 0; font-size: 8px; color: var(--t-low); letter-spacing: 0.08em; line-height: 1.7; }
.appshot__main { min-width: 0; display: flex; flex-direction: column; }
.appshot__bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line-dark); flex-wrap: wrap; }
.appshot__title { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-hi); }
.appshot__meta { margin-left: auto; font-size: 8.5px; color: var(--t-low); letter-spacing: 0.08em; text-transform: uppercase; }
.appshot__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.appshot__cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; align-items: stretch; }

.fchip { font-size: 8px; letter-spacing: 0.08em; border: 1px solid var(--line-dark); color: var(--t-mid); padding: 2px 8px; border-radius: 3px; text-transform: uppercase; white-space: nowrap; }
.fchip.on { border-color: var(--gold-600); color: var(--gold-300); background: color-mix(in srgb, var(--gold-800) 24%, transparent); }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi { background: var(--ink-2); border: 1px solid var(--line-dark); padding: 9px 11px 8px; min-width: 0; }
.kpi__lab { font-size: 8px; letter-spacing: 0.12em; color: var(--t-low); text-transform: uppercase; display: block; margin-bottom: 4px; white-space: nowrap; overflow: hidden; }
.kpi__num { font-family: var(--font-body); font-weight: 600; font-size: 18px; color: var(--t-hi); line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.kpi__delta { font-size: 8px; letter-spacing: 0.06em; color: #5BD6A2; margin-left: 5px; }
.kpi__delta.bad { color: #E0863B; }
.kpi__spark { width: 100%; height: 17px; display: block; margin-top: 6px; }
.kpi__spark polyline { fill: none; stroke: var(--gold-500); stroke-width: 1.4; }
.kpi__spark .fill { fill: rgba(212, 175, 55, 0.14); stroke: none; }

/* Panels + charts */
.pane { background: var(--ink-2); border: 1px solid var(--line-dark); min-width: 0; display: flex; flex-direction: column; overflow-x: auto; }
.pane__head { display: flex; align-items: baseline; gap: 8px; padding: 7px 11px; border-bottom: 1px solid var(--line-dark); font-size: 8.5px; letter-spacing: 0.12em; color: var(--t-mid); text-transform: uppercase; }
.pane__head .right { margin-left: auto; color: var(--t-low); letter-spacing: 0.06em; }
.pane__pad { padding: 10px 11px; }
.pane .chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: rgba(240, 235, 221, 0.07); stroke-width: 1; }
.chart .axis-lab { fill: var(--t-low); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.06em; }
.chart .series { fill: none; stroke: var(--gold-500); stroke-width: 1.6; }
.chart .series-2 { fill: none; stroke: var(--gold-300); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: 0.75; }
.chart .area { fill: rgba(212, 175, 55, 0.13); stroke: none; }
.chart .bar { fill: var(--gold-600); }
.chart .bar.hot { fill: #E0863B; }
.chart .threshold { stroke: #E0863B; stroke-width: 1; stroke-dasharray: 5 4; }
.chart .val-lab { fill: var(--t-mid); font-family: var(--font-mono); font-size: 7.5px; }
.chart .flag-dot { fill: #E0863B; }

/* Dense data table */
.dtab { width: 100%; border-collapse: collapse; font-size: 9.5px; font-variant-numeric: tabular-nums; }
.dtab th { text-align: left; font-weight: 400; color: var(--t-low); letter-spacing: 0.1em; text-transform: uppercase; font-size: 8px; padding: 6px 11px; border-bottom: 1px solid var(--line-dark); white-space: nowrap; }
.dtab td { padding: 5.5px 11px; border-bottom: 1px solid rgba(240, 235, 221, 0.07); color: var(--t-mid); white-space: nowrap; }
.dtab tr:last-child td { border-bottom: none; }
.dtab td b { color: var(--t-hi); font-weight: 400; }
.dtab td.num, .dtab th.num { text-align: right; }
.dtab .warn { color: #E0863B; }
.dtab .crit { color: #E06A4E; }
.dtab .good { color: #5BD6A2; }

/* Review bar (approval gate) */
.revbar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--gold-800); background: color-mix(in srgb, var(--gold-800) 24%, var(--ink-1)); font-size: 9.5px; flex-wrap: wrap; }
.revbar b { color: var(--t-hi); font-weight: 400; letter-spacing: 0.04em; }
.revbar .sub { color: var(--t-low); font-size: 8.5px; letter-spacing: 0.06em; }
.revbar__btns { margin-left: auto; display: flex; gap: 6px; }
.revbtn { font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; border-radius: 3px; border: 1px solid var(--line-dark); color: var(--t-mid); white-space: nowrap; }
.revbtn--ok { background: var(--accent); border-color: var(--accent); color: var(--ink-0); }

/* ---------- Spreadsheet, full ---------- */
.sheet--full { font-size: 10px; }
.sheet--full td, .sheet--full th { padding: 3.5px 8px; }
.sheet th.cl { text-align: center; font-size: 8.5px; }
.sheet td.rn, .sheet th.rn { background: #EFEBE0; color: #8A857A; text-align: center; width: 30px; font-size: 8.5px; padding-left: 4px; padding-right: 4px; }
.sheet tr.tot td { background: #F1EDE2; border-top: 2px solid #C9C4B4; color: #181510; font-weight: 500; }
.sheet td.pos { color: #1E7A4F; }
.sheet__status { display: flex; justify-content: space-between; gap: 12px; background: #E9E5DA; border-top: 1px solid #D5D0C2; padding: 4px 10px; font-size: 8.5px; color: #8A857A; letter-spacing: 0.05em; flex-wrap: wrap; }

/* ---------- Deck: hero slide + filmstrip ---------- */
.slidef { aspect-ratio: 16 / 9; background: #100E08; border: 1px solid var(--line-dark); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); padding: clamp(16px, 2.4vw, 30px) clamp(18px, 2.8vw, 34px); display: flex; flex-direction: column; overflow: hidden; }
.slidef__k { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.slidef__t { font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 2.3vw, 30px); letter-spacing: -0.015em; color: #F0EBDD; line-height: 1.1; margin: 8px 0 4px; max-width: 92%; }
.slidef__sub { font-family: var(--font-body); font-size: clamp(10px, 1.1vw, 12.5px); color: var(--t-mid); max-width: 80%; }
.slidef__chart { flex: 1; min-height: 0; margin-top: clamp(8px, 1.4vw, 16px); }
.slidef__chart svg { width: 100%; height: 100%; display: block; }
.slidef__foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-dark); padding-top: 8px; margin-top: clamp(8px, 1.4vw, 14px); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; color: var(--t-low); text-transform: uppercase; flex-wrap: wrap; }
.slidef__foot .pg { color: var(--gold-300); white-space: nowrap; }
.deckm--strip { grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.deckm--strip .deckm__slide { padding: 7px 8px; gap: 4px; box-shadow: none; }
.deckm--strip .deckm__k { font-size: 6.5px; }
.deckm--strip .deckm__t { font-size: 8.5px; }
.deckm__slide.on { border-color: var(--accent); box-shadow: 0 0 14px rgba(212, 175, 55, 0.3); }
@media (max-width: 900px) { .deckm--strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Document, full page ---------- */
.doc-stack { position: relative; }
.doc-stack::before { content: ''; position: absolute; inset: 12px -9px -9px 12px; background: #EFEBE0; border-radius: 6px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.doc-stack .docm { position: relative; }
.docm--page { padding: clamp(22px, 3vw, 40px) clamp(24px, 3.4vw, 44px) clamp(28px, 3.4vw, 44px); }
.docm__lh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid #181510; padding-bottom: 10px; margin-bottom: 16px; }
.docm__org { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: 0.01em; color: #181510; }
.docm__cls { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.14em; color: #B4452F; text-transform: uppercase; white-space: nowrap; }
.docm--page .docm__t { font-size: clamp(15px, 1.8vw, 19px); }
.docm__h { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #181510; margin: 14px 0 4px; }
.docm__p { font-size: 10.5px; line-height: 1.62; color: #3A3F42; margin: 5px 0; }
.docm__p sup { color: #7A5E12; font-family: var(--font-mono); font-size: 7.5px; }
.docm__tbl { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 8.5px; margin: 8px 0 4px; }
.docm__tbl th { text-align: left; font-weight: 500; color: #5C5648; border-bottom: 1px solid #C9C4B4; padding: 4px 6px; letter-spacing: 0.06em; text-transform: uppercase; font-size: 7.5px; }
.docm__tbl td { border-bottom: 1px solid #E5E1D4; padding: 4px 6px; color: #2A2E30; white-space: nowrap; }
.docm__tbl td.num { text-align: right; }
.docm__tbl .warn { color: #B4452F; }
.docm__fns { border-top: 1px solid #E5E1D4; margin-top: 14px; padding-top: 8px; }
.docm__fn { font-family: var(--font-mono); font-size: 8px; color: #8A857A; display: block; padding: 1.5px 0; }
.docm__fn b { color: #7A5E12; font-weight: 400; }
.docm__appr { display: flex; gap: 18px; margin-top: 16px; }
.docm__appr div { flex: 1; border-top: 1px solid #C9C4B4; padding-top: 6px; font-family: var(--font-mono); font-size: 8px; color: #5C5648; letter-spacing: 0.06em; }
.docm__appr b { display: block; color: #181510; font-size: 9px; font-weight: 500; }
.docm__pgno { text-align: right; font-family: var(--font-mono); font-size: 8px; color: #B5AF9F; margin-top: 14px; }

/* ---------- Callout markers (annotated renderings) ---------- */
.co-host { position: relative; }
.co { position: absolute; z-index: 5; width: 20px; height: 20px; min-width: 20px; border-radius: 50%; background: var(--ink-0); border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-mono); font-size: 9.5px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16), 0 0 16px rgba(212, 175, 55, 0.35); }
.co-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.co-legend div { display: flex; gap: 10px; align-items: baseline; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--t-mid); }
.co-legend b { color: var(--accent); font-weight: 400; flex: none; }
.band--light .co-legend div { color: var(--t-ink-mid); }

/* ---------- Stepper, full-width steps ---------- */
.stepper--full .step { grid-template-columns: 1fr; align-items: start; gap: 20px; }
.stepper--full .step__note p { max-width: 560px; }

/* ---------- Stepper tab cards (AIP-style numbered selectors) ---------- */
.stepper__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line-dark); }
.band--light .stepper__tabs { border-color: var(--line-light); }
.stepper__tab { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; padding: 16px 18px 14px; border-right: 1px solid var(--line-dark); border-bottom: 2px solid transparent; transition: all .2s; cursor: pointer; }
.stepper__tab:last-child { border-right: none; }
.band--light .stepper__tab { border-right-color: var(--line-light); }
.stepper__tab .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--t-low); transition: color .2s; }
.stepper__tab .l { font-family: var(--font-display); font-weight: 600; font-size: clamp(13px, 1.4vw, 16px); letter-spacing: 0; line-height: 1.15; }
.band--light .stepper__tab .l { color: var(--t-ink); }
.stepper__tab:hover .n { color: var(--accent); }
.stepper__tab.is-on { border-bottom-color: var(--accent); background: color-mix(in srgb, var(--gold-500) 7%, transparent); }
.stepper__tab.is-on .n { color: var(--accent); }
@media (max-width: 720px) { .stepper__tabs { grid-template-columns: 1fr 1fr; } .stepper__tab { border-bottom: 1px solid var(--line-dark); } }

/* ---------- Interactive feel on mock chrome ----------
   Only wired controls get a pointer cursor; static chrome stays default
   so nothing invites a click it will not answer. */
.appshot__item, .fchip, .sheet__tab, .revbtn { transition: color .15s, border-color .15s, background .15s; }
[data-view-go], [data-slide-go], [data-step-go], [data-step-advance] { cursor: pointer; }
.appshot__item[data-view-go]:hover { color: var(--t-hi); }
.sheet__tab[data-view-go]:hover { color: #7A5E12; }
[data-deck] [data-slide-go] { transition: border-color .2s, box-shadow .2s; }
[data-deck] [data-slide-go]:hover { border-color: var(--accent); }
.slidef[hidden], .appshot__body[hidden], .sheet__view[hidden] { display: none; }

/* Readable slide type + chart labels */
.slidef .axis-lab { font-size: 10.5px; }
.slidef .val-lab { font-size: 11px; }
.slidef__k { font-size: 10.5px; }
.slidef__t { font-size: clamp(17px, 2.1vw, 28px); }
.slidef__sub { font-size: clamp(11.5px, 1.3vw, 14.5px); }
.slidef__foot { font-size: clamp(8.5px, 1vw, 10.5px); }
.deckm--strip .deckm__k { font-size: 8px; }
.deckm--strip .deckm__t { font-size: 11px; }
.slidef__points { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 1.6vw, 16px); margin-top: 10px; }
.slidef__point { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 14px; align-items: baseline; font-family: var(--font-body); font-size: clamp(11px, 1.35vw, 15.5px); color: var(--t-mid); line-height: 1.45; }
.slidef__point i { width: 8px; height: 8px; background: var(--gold-600); display: block; transform: translateY(1px); }
.slidef__point b { color: #F0EBDD; font-weight: 500; }
.slidef__rows { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; margin-top: 12px; }
.slidef__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) auto; gap: 14px; align-items: center; font-family: var(--font-mono); font-size: clamp(9.5px, 1.1vw, 12px); color: var(--t-mid); letter-spacing: 0.04em; }
.slidef__row .lab { color: #F0EBDD; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.slidef__row .track { height: 10px; background: #1E1912; position: relative; }
.slidef__row .track i { position: absolute; inset: 0 auto 0 0; background: var(--gold-600); }
.slidef__row .track i.hot { background: #E0863B; }
.slidef__row .v { white-space: nowrap; }
.slidef__row .v.warn { color: #E0863B; }

@media (max-width: 900px) {
  .appshot__cols { grid-template-columns: 1.55fr 1fr; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
   Page-turn transitions: a starred paper leaf rolls across the
   view like a page being turned: the fold travels right to left,
   leaning and fluttering as it goes, with a lit roll at the fold
   and a cast shadow ahead of it. Drawn on a canvas by app.js;
   the swap happens the moment the leaf lies flat. Skipped under
   reduced motion.
   ============================================================ */
.bookfx { position: fixed; inset: 0; z-index: 200; pointer-events: none; transition: opacity .26s ease-out; }
.bookfx canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bookfx.is-closing { pointer-events: all; }
.bookfx.is-fading { opacity: 0; }
.bookfx.is-gone { display: none; }
@media (prefers-reduced-motion: reduce) { .bookfx { display: none; } }

/* Gold text on cream needs the darker step */
.band--light .card .mono-note, .band--light .co-legend b { color: var(--gold-700); }
.band--light .stepper__tab.is-on .n, .band--light .stepper__tab:hover .n { color: var(--gold-700); }

/* ============================================================
   Deliverable previews: small in-page dialogs opened from the
   solutions hub cards. Chat request pointing at a source, the
   drafted artifact, one caption. Injected markup lives in the
   page; behavior in app.js.
   ============================================================ */
[data-dlg-open] { cursor: pointer; }
.dlg {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(5, 4, 3, 0.72); backdrop-filter: blur(6px);
}
.dlg.is-open { display: flex; }
.dlg__panel {
  width: min(600px, 94vw); max-height: 86vh; overflow-y: auto;
  background: var(--ink-1); border: 1px solid var(--gold-800);
  border-top: 2px solid var(--gold-600);
  padding: 24px 26px 26px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  animation: dlg-in .28s var(--ease-slow);
}
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.dlg__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.dlg__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.dlg__close {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line-dark); padding: 6px 12px; color: var(--t-mid); transition: all .2s;
}
.dlg__close:hover { border-color: var(--accent); color: var(--accent); }
.dlg__chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.dlg .artifact-cap { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .dlg__panel { animation: none; } }
