/* ═══════════════════════════════════════════════════════════════════
   PHLOEM — "BASETEN" DIRECTION
   Calm technical canvas · Geist grotesque · dashed-line grid w/ + ticks
   Monochrome neutrals, one green accent. Crisp.
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }

:root {
  /* ── neutral canvas (Baseten: clean light, faint warm) ── */
  --bg:        #FBFBFA;
  --bg-elev:   #FFFFFF;
  --bg-sunk:   #F4F4F2;
  --ink:       #15171A;
  --ink-mute:  #595F63;
  --ink-dim:   #8B9094;

  /* dashed hairline + corner-tick marks */
  --rule:      #CDD0CC;
  --rule-soft: #E2E4E0;
  --tick:      #B7BCB6;

  /* single green accent */
  --accent:     #15945F;
  --accent-ink: #FFFFFF;
  --accent-soft:#E4F2EA;

  /* warn (used sparingly in figures) */
  --warn:      #C6743A;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  /* dashed border shorthand pieces */
  --dash: 1px dashed var(--rule);
}

[data-theme="dark"] {
  --bg:        #0D0F10;
  --bg-elev:   #15181A;
  --bg-sunk:   #0A0C0D;
  --ink:       #ECEEEC;
  --ink-mute:  #9AA0A0;
  --ink-dim:   #686E6E;
  --rule:      #2B302E;
  --rule-soft: #1E2221;
  --tick:      #3A403D;
  --accent:     #2ED27E;
  --accent-ink: #07120C;
  --accent-soft:#11241A;
  --warn:      #E08A4E;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
img, svg { display: block; }

/* ── type scale ─────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.022em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 78px); }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -0.018em; line-height: 1.12; }
em { font-style: normal; color: var(--accent); }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-mute); line-height: 1.55; text-wrap: pretty; }

/* ═══ DASHED GRID FRAME ═══════════════════════════════════════
   Centered column bounded by continuous vertical dashed gutters,
   with + corner-ticks. Section dividers are dashed too. */
.frame {
  max-width: var(--maxw);
  margin: 0 auto;
  border-left: var(--dash);
  border-right: var(--dash);
  position: relative;
}
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }

/* reusable + tick set on the four corners of any .ticked box */
.ticked { position: relative; }
.ticked::before {
  content: "";
  position: absolute;
  inset: -5px;
  pointer-events: none;
  background-color: var(--tick);
  -webkit-mask:
    var(--plus) top left / 10px 10px no-repeat,
    var(--plus) top right / 10px 10px no-repeat,
    var(--plus) bottom left / 10px 10px no-repeat,
    var(--plus) bottom right / 10px 10px no-repeat;
  mask:
    var(--plus) top left / 10px 10px no-repeat,
    var(--plus) top right / 10px 10px no-repeat,
    var(--plus) bottom left / 10px 10px no-repeat,
    var(--plus) bottom right / 10px 10px no-repeat;
}
:root { --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0V10M0 5H10' stroke='black' stroke-width='1'/%3E%3C/svg%3E"); }

/* ═══ NAV ═════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: var(--dash);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 64px;
  display: flex; align-items: center; gap: 28px;
  border-left: var(--dash); border-right: var(--dash);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.brand-mark {
  width: 19px; height: 19px; border-radius: 50%;
  border: 2.4px solid var(--ink);
  display: grid; place-items: center;
}
.brand-mark::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.nav-sections { display: flex; gap: 26px; margin-left: 16px; flex: 1; }
.nav-sections a {
  font-size: 13.5px; color: var(--ink-mute); position: relative; padding: 4px 0;
  transition: color .16s ease;
}
.nav-sections a:hover { color: var(--ink); }
.nav-sections a[aria-current="true"] { color: var(--ink); }
.nav-sections a[aria-current="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--accent);
}
.nav-right { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 34px; height: 34px; border: var(--dash); background: transparent;
  border-radius: 0; cursor: pointer; color: var(--ink-mute);
  display: grid; place-items: center; transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-dim); }
.theme-toggle svg { width: 16px; height: 16px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500; font-family: var(--sans);
  padding: 10px 18px; border: 1px solid transparent; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { color: var(--ink); border-color: var(--rule); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* keyboard focus (a11y) */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ═══ SECTION SCAFFOLD ════════════════════════════════════════ */
.section { border-bottom: var(--dash); padding-block: clamp(64px, 8vw, 120px); position: relative; }
.section:last-of-type { border-bottom: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 26px; }
.eyebrow .bar { width: 22px; height: 2px; background: var(--accent); }
.eyebrow .mono { color: var(--ink); }
.eyebrow .mono .idx { color: var(--accent); }

.section-intro { max-width: 760px; }
.section-intro h2 { margin-bottom: 22px; }
.section-intro .lead { max-width: 58ch; }

/* ═══ HERO ════════════════════════════════════════════════════ */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 92px); border-bottom: var(--dash); }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 42px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero-sub { max-width: 50ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }

.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--dash); margin-top: clamp(52px, 6vw, 88px); }
.meta-cell { padding: 28px 26px; border-right: var(--dash); }
.meta-cell:first-child { padding-left: 0; }
.meta-cell:last-child { border-right: 0; padding-right: 0; }
.meta-num { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--accent); line-height: 1; margin-bottom: 9px; }
.meta-lbl { font-size: 12.5px; color: var(--ink-mute); line-height: 1.4; }

/* ── hero monitor (calm dashed instrument panel) ── */
.monitor { border: var(--dash); background: var(--bg-elev); }
.mon-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: var(--dash); }
.mon-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.mon-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink); }
.mon-stat { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-dim); text-transform: uppercase; }
.mon-ticks { display: flex; justify-content: space-between; padding: 8px 16px 0; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--ink-dim); }

/* run-summary strip — richer instrument read */
.mon-sum { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: var(--dash); }
.mon-sum > div { padding: 17px 16px; border-right: 1px dashed var(--rule-soft); display: flex; flex-direction: column; gap: 3px; }
.mon-sum > div:last-child { border-right: 0; }
.mon-sum b { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mon-sum span { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }

.mon-lanes { position: relative; padding: 12px 18px 22px; background-image: radial-gradient(var(--rule-soft) 0.7px, transparent 0.7px); background-size: 15px 15px; }
.lane { display: grid; grid-template-columns: 80px 1fr 56px; align-items: center; gap: 14px; height: 56px; border-bottom: 1px dashed var(--rule-soft); }
.lane:last-child { border-bottom: 0; }
.lane-id { display: flex; flex-direction: column; gap: 1px; }
.lane-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--accent); }
.lane-chan { font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em; color: var(--ink-dim); }
.lane-wave { height: 34px; color: var(--ink-mute); }
.lane-wave svg { width: 100%; height: 100%; }
.lane-val { font-family: var(--mono); font-size: 11px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.lane-val small { color: var(--ink-dim); font-size: 8.5px; }
.mon-playhead { position: absolute; top: 12px; bottom: 22px; width: 1px; background: var(--accent); left: 30%; opacity: 0.55; }
.mon-playhead::before { content: ""; position: absolute; top: -3px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .mon-playhead { animation: sweep 9s linear infinite; }
  @keyframes sweep { 0% { left: 16%; } 100% { left: 92%; } }
}

/* ═══ INDUSTRIES — dashed grid of domains ════════════════════ */
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px; border-top: var(--dash); border-left: var(--dash); }
.dcell { border-right: var(--dash); border-bottom: var(--dash); padding: 28px 26px 30px; min-height: 196px; display: flex; flex-direction: column; }
.dcell .dhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dcell .dnum { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-dim); }
.dcell .dstat { font-family: var(--mono); font-size: 10.5px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.dcell .dstat .pd { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.dcell .dico { display: block; width: 30px; height: 30px; color: var(--ink); margin-bottom: 16px; }
.dcell .dico svg { width: 100%; height: 100%; }
.dcell h3 { margin-bottom: 9px; }
.dcell p { font-size: 13.5px; color: var(--ink-mute); line-height: 1.5; }
.dcell .dsig { margin-top: auto; padding-top: 16px; }
.dcell .dsig svg { width: 100%; height: 22px; color: var(--ink-dim); opacity: 0.7; }
.dcell .dsig-lbl { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; color: var(--ink-dim); margin-top: 7px; }

/* ═══ FLYWHEEL — horizontal dashed stage row ═════════════════ */
.fw { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 50px; border: var(--dash); }
.fw-stage { padding: 26px 22px; border-right: var(--dash); position: relative; }
.fw-stage:last-child { border-right: 0; }
.fw-ico { display: block; width: 26px; height: 26px; color: var(--accent); margin-bottom: 16px; }
.fw-ico svg { width: 100%; height: 100%; }
.fw-stage .step { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-dim); margin-bottom: 8px; }
.fw-stage h3 { font-size: 18px; margin-bottom: 8px; }
.fw-stage p { font-size: 13px; color: var(--ink-mute); line-height: 1.5; }
.fw-stage .arr { position: absolute; right: -7px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--ink-dim); z-index: 2; background: var(--bg); }

/* ═══ CONNECTORS — logo/protocol grid ════════════════════════ */
.cgrid { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 50px; border-top: var(--dash); border-left: var(--dash); }
.conn { border-right: var(--dash); border-bottom: var(--dash); padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 116px; transition: background .16s ease; }
.conn:hover { background: var(--bg-elev); }
.conn-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.conn-glyph { width: 26px; height: 26px; color: var(--ink); margin-top: auto; }
.conn-glyph svg { width: 100%; height: 100%; }
.conn-name { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.cnote { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-dim); margin-top: 22px; }

/* ═══ REPLAY — two-up ════════════════════════════════════════ */
.replay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 50px; border: var(--dash); }
.replay-col { padding: 34px 32px; border-right: var(--dash); display: flex; flex-direction: column; }
.replay-col:last-child { border-right: 0; }
.replay-col .step { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 14px; }
.replay-col h3 { margin-bottom: 12px; }
.replay-col p { font-size: 14px; color: var(--ink-mute); margin-bottom: 22px; }
.replay-fig { border: var(--dash); background: var(--bg-elev); background-image: radial-gradient(var(--rule-soft) 0.7px, transparent 0.7px); background-size: 14px 14px; padding: 16px; margin-top: auto; }
.replay-fig svg { width: 100%; height: auto; }

/* INTELLIGENCE — two columns, heading stacked above figure (matches Replay) */
.intel { display: grid; grid-template-columns: 1fr 1fr; margin-top: 50px; border: var(--dash); }
.intel-col { padding: 34px 32px; border-right: var(--dash); display: flex; flex-direction: column; }
.intel-col:last-child { border-right: 0; }
.intel-col .step { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 14px; }
.intel-col h3 { margin-bottom: 12px; }
.intel-col p { font-size: 14px; color: var(--ink-mute); margin-bottom: 22px; }
.intel-fig { margin-top: auto; border: var(--dash); background: var(--bg-elev); background-image: radial-gradient(var(--rule-soft) 0.8px, transparent 0.8px); background-size: 16px 16px; padding: 16px; }
.intel-fig svg { width: 100%; height: 230px; display: block; }

/* ═══ WORKSPACE — compact band ═══════════════════════════════ */
.ws-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px; border-top: var(--dash); border-left: var(--dash); }
.ws-cell { border-right: var(--dash); border-bottom: var(--dash); padding: 28px 26px 32px; }
.ws-cell .ws-ico { display: block; width: 24px; height: 24px; color: var(--accent); margin-bottom: 16px; }
.ws-cell .ws-ico svg { width: 100%; height: 100%; }
.ws-cell h3 { font-size: 18px; margin-bottom: 9px; }
.ws-cell p { font-size: 13.5px; color: var(--ink-mute); line-height: 1.5; }

/* ═══ CTA ════════════════════════════════════════════════════ */
.cta { padding-block: clamp(80px, 11vw, 150px); text-align: center; }
.cta .eyebrow { justify-content: center; margin-bottom: 30px; }
.cta h2 { max-width: 18ch; margin: 0 auto 24px; }
.cta p { max-width: 52ch; margin: 0 auto 36px; color: var(--ink-mute); font-size: clamp(15px,1.5vw,17px); }
.cta-btns { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ═══ FOOTER ═════════════════════════════════════════════════ */
.foot { border-top: var(--dash); }
.foot-inner { max-width: var(--maxw); margin: 0 auto; border-left: var(--dash); border-right: var(--dash); padding: 36px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .brand { font-size: 16px; }
.foot-links { display: flex; gap: 22px; font-size: 13px; color: var(--ink-mute); }
.foot-links a:hover { color: var(--ink); }
.foot-copy { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-dim); text-transform: uppercase; }

/* ═══ REVEAL (gentle, reduced-motion safe) ═══════════════════ */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  [data-reveal].in { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — clean single-column stacking, zero overflow.
   (Rebuild fixes the old mobile "transition page breaks".)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1020px) {
  .nav-sections { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .dgrid, .cgrid { grid-template-columns: repeat(2, 1fr); }
  .fw { grid-template-columns: repeat(2, 1fr); }
  .fw-stage:nth-child(2n) { border-right: 0; }
  .fw-stage .arr { display: none; }
  .intel, .replay-row { grid-template-columns: 1fr; }
  .intel-col { border-right: 0; border-bottom: var(--dash); }
  .intel-col:last-child { border-bottom: 0; }
  .replay-fig { margin-top: 24px; }
  .replay-col { border-right: 0; border-bottom: var(--dash); }
  .replay-col:last-child { border-bottom: 0; }
  .ws-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .frame, .nav-inner, .foot-inner { border-left: 0; border-right: 0; }
  h1 { font-size: clamp(34px, 11vw, 46px); }
  .dgrid, .cgrid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; }
  .meta-cell { border-right: 0; border-bottom: 1px dashed var(--rule); padding: 16px 0; }
  .meta-cell:last-child { border-bottom: 0; }
  .meta-cell:not(:first-child) { padding-left: 0; }
  .nav-inner { gap: 12px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   V2 ENHANCEMENT LAYER — calm "live instrument" polish
   Staggered reveals · richer (but quiet) hover states ·
   scrubbable hero monitor. All gated on reduced-motion.
   ═══════════════════════════════════════════════════════════════ */

/* ── staggered reveal for grids & rows ── */
@media (prefers-reduced-motion: no-preference) {
  [data-stagger] > * {
    opacity: 0;
    transform: translateY(11px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--i, 0) * 55ms);
    will-change: opacity, transform;
  }
  [data-stagger].in > * { opacity: 1; transform: none; }
}

/* ── hero monitor: ambient pulse + hover-scrub affordance ── */
.mon-head .dot { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .mon-head .dot { animation: pulse 2.6s ease-out infinite; }
}
.mon-lanes { cursor: ew-resize; }
.mon-playhead { transition: left .09s linear; }
.mon-lanes.scrubbing .mon-playhead { animation: none; opacity: 0.9; }

/* ── connectors: faint accent top-rule + glyph warms on hover ── */
.conn { position: relative; }
.conn::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .24s cubic-bezier(.2,.7,.2,1);
}
.conn:hover::before { transform: scaleX(1); }
.conn-glyph { transition: color .18s ease; }
.conn:hover .conn-glyph { color: var(--accent); }
.conn:hover .conn-tag   { color: var(--ink-mute); }

/* ── flywheel: quiet hover highlight ── */
.fw-stage { transition: background .2s ease; }
.fw-stage:hover { background: var(--bg-elev); }
.fw-stage .fw-ico, .fw-stage .step { transition: color .18s ease; }
.fw-stage:hover .fw-ico { color: var(--accent); }
.fw-stage:hover .step   { color: var(--accent); }

/* ── industries: hover warms the signal trace ── */
.dcell { transition: background .2s ease; }
.dcell:hover { background: var(--bg-elev); }
.dcell .dsig svg { transition: opacity .22s ease, color .22s ease; }
.dcell:hover .dsig svg { opacity: 1; color: var(--accent); }

/* ── nav: faint surface once scrolled ── */
.nav { transition: background .25s ease; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); }

/* ── dark-mode: make quiet hover lifts read a touch more ── */
[data-theme="dark"] .conn:hover,
[data-theme="dark"] .dcell:hover,
[data-theme="dark"] .fw-stage:hover { background: #181C1E; }

/* ── desktop: monitor is the full height of the headline column and
   ends level with it; sub-headline + CTAs become a full-width row ── */
@media (min-width: 1021px) {
  .hero-grid { align-items: stretch; }

  .hero-left { display: flex; flex-direction: column; }
  .hero-left .hero-status { margin-bottom: clamp(18px, 2.2vw, 28px); }
  .hero-left h1 { margin-bottom: 0; font-size: clamp(40px, 5.4vw, 68px); }

  .hero-right { display: flex; }
  .hero-right .monitor { display: flex; flex-direction: column; width: 100%; }
  .hero-right .mon-head { padding-block: 18px; }
  .hero-right .mon-sum > div { padding-block: 20px; }
  .hero-right .mon-ticks { padding-top: 14px; }
  .hero-right .mon-lanes {
    flex: 1; display: flex; flex-direction: column;
    padding-top: 18px; padding-bottom: 24px;
  }
  .hero-right .lane { height: auto; flex: 1; min-height: 58px; }
  .hero-right .lane-wave { height: 46px; }
  .hero-right .mon-playhead { top: 18px; bottom: 24px; }

  /* full-width row beneath the two columns */
  .hero-foot {
    margin-top: clamp(32px, 4vw, 52px);
  }
  .hero-foot .hero-sub { max-width: none; margin-bottom: clamp(22px, 2.4vw, 30px); }
}

/* ── context graph: wires draw out from the agent in accent, then
   settle to grey once connected (subtle, reduced-motion safe) ── */
@media (prefers-reduced-motion: no-preference) {
  .intel-fig .cg-links polyline { stroke: var(--accent); }
  .intel.in .intel-fig .cg-links polyline { transition: stroke 1.3s ease .35s; stroke: var(--rule); }
}
