/* ============================================================
   KIRRA — award-style landing
   Palette is posture-driven: green=trusted, amber=degraded, red=lockedout
   ============================================================ */

:root {
  --bg:        #04060c;
  --bg-2:      #070b15;
  --bg-glass:  rgba(10, 14, 26, 0.55);
  --ink:       #eef2fb;
  --ink-soft:  #c6cee2;
  --ink-mute:  #6a7593;
  --line:      rgba(140, 160, 200, 0.12);

  --cyan:   #5cf0ff;
  --green:  #34f5a6;   /* Nominal  */
  --amber:  #ffb627;   /* Degraded */
  --red:    #ff4d63;   /* LockedOut */

  --accent: var(--green);
  --glow:   0 0 40px rgba(52, 245, 166, 0.35);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 860px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #02040a; }

/* ───────── WebGL canvas ───────── */
.lattice-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Dark scrim over the WebGL lattice so foreground text keeps contrast
   against the bloom (the glow can wash the background near-white, esp. on mobile). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(125% 90% at 50% 16%, rgba(4,6,12,0) 0%, rgba(4,6,12,0.45) 50%, rgba(4,6,12,0.84) 100%),
    linear-gradient(180deg, rgba(4,6,12,0.34), rgba(4,6,12,0.60));
}

/* ───────── Grain ───────── */
.grain {
  position: fixed; inset: -50%;
  z-index: 2; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 4%); }
  80% { transform: translate(5%, 2%); }
}

/* ───────── Scroll progress ───────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 60; background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 12px var(--accent);
  transition: background 0.6s var(--ease);
}

/* ───────── Custom cursor ───────── */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 70; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.7); transform: translate(-50%,-50%); transition: width .25s var(--ease), height .25s var(--ease), background .25s; }
.cursor-dot { width: 5px; height: 5px; background: #fff; transform: translate(-50%,-50%); }
.cursor.is-hover { width: 56px; height: 56px; background: rgba(255,255,255,0.1); }
@media (max-width: 860px) { .cursor, .cursor-dot { display: none; } }

/* ───────── Preloader ───────── */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { width: min(420px, 80vw); text-align: center; }
.preloader__mark { position: relative; width: 90px; height: 90px; margin: 0 auto 34px; display: grid; place-items: center; }
.preloader__glyph { font-family: var(--font-display); font-weight: 700; font-size: 42px; color: var(--ink); letter-spacing: -2px; }
.preloader__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--line); border-top-color: var(--green);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.preloader__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), var(--cyan)); }
.preloader__meta { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--ink-mute); }
.preloader__pct { color: var(--green); }
.preloader.is-done { transform: translateY(-100%); transition: transform 1s var(--ease); }

/* ───────── Nav ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  transition: backdrop-filter .4s, background .4s, padding .4s var(--ease);
}
.nav.is-stuck { background: var(--bg-glass); backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: 3px; font-size: 15px; }
/* Brand mark — its dark background is knocked out to transparent at runtime
   (js/logomask.js), then a gentle breathing-glow follows the K's shape. */
.nav__logo { width: 50px; height: 50px; display: inline-block; vertical-align: middle; flex: none; object-fit: contain; animation: logo-breathe 3.6s ease-in-out infinite; }
.preloader__logo { width: 104px; height: 104px; object-fit: contain; animation: logo-breathe 3.6s ease-in-out infinite; }
@keyframes logo-breathe {
  0%, 100% { filter: brightness(0.95) drop-shadow(0 0 3px rgba(52,245,166,0.45)); transform: scale(1); }
  50%      { filter: brightness(1.25) drop-shadow(0 0 9px rgba(92,240,255,0.7)); transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__logo, .preloader__logo { animation: none; filter: brightness(1.08) drop-shadow(0 0 4px rgba(52,245,166,0.5)); }
}
.nav__links { display: flex; gap: 30px; font-size: 14px; color: var(--ink-soft); }
.nav__links a { position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--accent); transition: width .35s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; transition: border-color .3s, background .3s; }
.nav__cta:hover { border-color: var(--accent); background: rgba(52,245,166,0.06); }
.nav__cta-arrow { color: var(--accent); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ───────── Layout helpers ───────── */
section { position: relative; z-index: 3; }
.section-tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; color: var(--green); padding: 6px 12px; border: 1px solid rgba(52,245,166,0.25); border-radius: 100px; margin-bottom: 24px; }
.accent { color: var(--accent); }

/* ───────── Hero ───────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(20px, 5vw, 56px);
  max-width: var(--maxw); margin: 0 auto;
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--ink-soft); margin-bottom: 28px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.dot--live { box-shadow: 0 0 0 0 rgba(52,245,166,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,245,166,.6);} 70%{box-shadow:0 0 0 9px rgba(52,245,166,0);} 100%{box-shadow:0 0 0 0 rgba(52,245,166,0);} }

.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  line-height: 0.96; letter-spacing: -0.03em;
  margin-bottom: 30px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; }
.hero__title .accent { color: var(--accent); }

.hero__lede { max-width: 620px; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--ink-soft); margin-bottom: 36px; }
.hero__lede em { color: var(--ink); font-style: italic; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px; border-radius: 100px; font-weight: 600; font-size: 15px; overflow: hidden; transition: transform .3s var(--ease); }
.btn--lg { padding: 18px 36px; font-size: 16px; }
.btn--primary { background: var(--accent); color: #02040a; box-shadow: var(--glow); }
.btn--primary::before { content:''; position:absolute; inset:0; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); }

.hero__pipeline { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.pipeline__node { padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; }
.pipeline__node--kirra { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 20px rgba(52,245,166,0.08); }
.pipeline__arrow { color: var(--ink-mute); }

.hero__scrollcue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; color: var(--ink-mute); }
.hero__scrollline { width: 1px; height: 46px; background: linear-gradient(var(--ink-mute), transparent); position: relative; overflow: hidden; }
.hero__scrollline::after { content:''; position:absolute; top:0; left:0; width:100%; height:40%; background: var(--green); animation: scrolldn 1.8s var(--ease) infinite; }
@keyframes scrolldn { 0%{transform:translateY(-100%);} 100%{transform:translateY(250%);} }

/* ───────── Manifesto ───────── */
.manifesto { max-width: 1100px; margin: 0 auto; padding: clamp(120px, 22vh, 260px) clamp(20px, 5vw, 56px); }
.manifesto__text { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 4.2vw, 3.4rem); line-height: 1.18; letter-spacing: -0.02em; color: var(--ink-soft); }
.manifesto__text .hl { color: var(--ink); }
.hl--red { color: var(--red) !important; }
.hl--amber { color: var(--amber) !important; }
.hl--cyan { color: var(--cyan) !important; }

/* ───────── Posture (pinned) ───────── */
.posture { height: 300vh; }
.posture__sticky { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.posture__header { text-align: center; margin-bottom: 50px; }
.posture__heading { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 12vw, 9rem); letter-spacing: -0.04em; line-height: 1; transition: color .6s var(--ease); color: var(--green); }
.posture__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-glass); backdrop-filter: blur(10px); transition: transform .5s var(--ease), border-color .5s, opacity .5s; opacity: 0.4; }
.pcard.is-active { opacity: 1; transform: translateY(-8px); }
.pcard header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pcard__led { width: 11px; height: 11px; border-radius: 50%; }
.pcard--nominal { border-color: rgba(52,245,166,0.2); } .pcard--nominal .pcard__led { background: var(--green); box-shadow: 0 0 14px var(--green); }
.pcard--degraded { border-color: rgba(255,182,39,0.2); } .pcard--degraded .pcard__led { background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.pcard--locked { border-color: rgba(255,77,99,0.2); } .pcard--locked .pcard__led { background: var(--red); box-shadow: 0 0 14px var(--red); }
.pcard h3 { font-family: var(--font-display); font-size: 1.4rem; }
.pcard p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 18px; }
.pcard__verdict { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 1px; }
.posture__note { max-width: 760px; margin: 44px auto 0; text-align: center; color: var(--ink-soft); font-size: 0.95rem; text-shadow: 0 1px 14px rgba(4,6,12,0.6); }
.posture__note code { font-family: var(--font-mono); color: var(--ink); }
@media (max-width: 860px) { .posture { height: auto; } .posture__sticky { position: static; padding-top: 120px; padding-bottom: 120px; } .posture__cards { grid-template-columns: 1fr; } .pcard { opacity: 1; } }

/* ───────── Capabilities ───────── */
.caps { max-width: var(--maxw); margin: 0 auto; padding: clamp(100px, 14vh, 200px) clamp(20px, 5vw, 56px); }
.caps__intro { max-width: 720px; margin-bottom: 70px; }
.caps__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5.5vw, 4rem); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 22px; }
.caps__sub { color: var(--ink-soft); font-size: 1.1rem; }
.caps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.cap { background: var(--bg); padding: 40px 34px; transition: background .4s; }
.cap:hover { background: var(--bg-2); }
.cap__idx { font-family: var(--font-mono); font-size: 12px; color: var(--green); letter-spacing: 2px; }
.cap h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 18px 0 12px; }
.cap p { color: var(--ink-soft); font-size: 0.96rem; }
.cap code { font-family: var(--font-mono); font-size: 0.85em; color: var(--cyan); background: rgba(92,240,255,0.08); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 980px) { .caps__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .caps__grid { grid-template-columns: 1fr; } }

/* ───────── Occy ───────── */
.occy { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 56px); }
.occy__head { max-width: 760px; margin-bottom: 56px; }
.occy__head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4.6vw, 3.3rem); letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 20px; }
.occy__head p { color: var(--ink-soft); font-size: 1.08rem; }
.occy__goals { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.goal { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 24px; padding: 26px 32px; background: var(--bg); transition: background .35s, padding-left .35s var(--ease); }
.goal:hover { background: var(--bg-2); padding-left: 42px; }
.goal__id { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--green); }
.goal__body h3 { font-family: var(--font-display); font-size: 1.2rem; }
.goal__body p { color: var(--ink-mute); font-size: 0.95rem; }
.goal__asil { font-family: var(--font-mono); font-size: 12px; text-align: right; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; }
.goal__asil span { color: var(--green); letter-spacing: 1px; }
@media (max-width: 640px) { .goal { grid-template-columns: 60px 1fr; } .goal__asil { grid-column: 1 / -1; text-align: left; flex-direction: row; gap: 10px; } }

/* ───────── Quickstart ───────── */
.quickstart { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.quickstart__left h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 20px; }
.quickstart__left p { color: var(--ink-soft); margin-bottom: 30px; }
.quickstart__install { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-family: var(--font-mono); font-size: 14px; }
.quickstart__install code { color: var(--green); flex: 1; }
.copy-btn { font-family: var(--font-mono); font-size: 12px; color: var(--ink); background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 7px; padding: 7px 12px; cursor: none; transition: background .3s, color .3s; }
.copy-btn:hover { background: var(--accent); color: #02040a; }
.copy-btn.is-copied { background: var(--green); color: #02040a; }

.code-window { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #0a0f1c, #060a13); box-shadow: 0 40px 120px -40px rgba(0,0,0,0.8), var(--glow); }
.code-window__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.code-dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3142; }
.code-dot:nth-child(1){ background:#ff5f57; } .code-dot:nth-child(2){ background:#febc2e; } .code-dot:nth-child(3){ background:#28c840; }
.code-window__title { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.code-window__body { padding: 24px 26px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); overflow-x: auto; min-height: 360px; }
/* live action_filter.py terminal */
.t-line { white-space: pre; min-height: 1.25em; }
.t-prompt { color: var(--cyan); }
.t-code { color: var(--ink-soft); }
.t-dim { color: var(--ink-mute); font-style: italic; }
.t-ok { color: var(--green); }
.t-warn { color: var(--amber); }
.t-bad { color: var(--red); }
.t-cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--green); vertical-align: -2px; margin-left: 1px; animation: t-blink 1s steps(1) infinite; }
@keyframes t-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .t-cursor { animation: none; } }
.c-kw { color: #ff79c6; } .c-fn { color: var(--cyan); } .c-str { color: var(--green); } .c-num { color: var(--amber); } .c-cm { color: var(--ink-mute); font-style: italic; }
@media (max-width: 900px) { .quickstart { grid-template-columns: 1fr; } }

/* ───────── Stats ───────── */
.stats { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 8vh, 120px) clamp(20px, 5vw, 56px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; background: linear-gradient(180deg, var(--ink), var(--green)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { color: var(--ink-soft); font-size: 0.9rem; text-shadow: 0 1px 14px rgba(4,6,12,0.6); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; } }

/* ───────── CTA ───────── */
.cta { position: relative; text-align: center; padding: clamp(120px, 20vh, 240px) clamp(20px, 5vw, 56px); overflow: hidden; }
.cta__glow { position: absolute; top: 50%; left: 50%; width: 700px; height: 700px; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(52,245,166,0.18), transparent 60%); filter: blur(40px); z-index: -1; }
.cta__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 7vw, 5.5rem); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 24px; }
.cta__sub { color: var(--ink-soft); font-size: 1.2rem; margin-bottom: 44px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ───────── Footer ───────── */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 60px clamp(20px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.footer__brand { font-family: var(--font-display); font-weight: 700; letter-spacing: 2px; font-size: 14px; }
.footer__cols { display: flex; gap: 28px; font-size: 14px; color: var(--ink-soft); }
.footer__cols a:hover { color: var(--accent); }
.footer__disclaimer { width: 100%; max-width: 820px; margin: 4px 0 0; font-size: 12px; line-height: 1.65; color: var(--ink-mute); }
.footer__legal { width: 100%; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; font-size: 12px; color: var(--ink-mute); font-family: var(--font-mono); }
.footer__tag { color: var(--ink-mute); }

/* ───────── Hero on mobile: clear the fixed nav (KIRRA vs eyebrow overlap) ───────── */
@media (max-width: 860px) {
  .hero { justify-content: flex-start; padding-top: 108px; padding-bottom: 80px; }
  .hero__title { margin-top: 6px; }
}

/* ───────── Animated command flow (Planner → Governor → Actuator) ───────── */
.hero__flow { width: 100%; max-width: 540px; }
.flow { position: relative; }
.flow__node {
  position: relative; z-index: 2; width: fit-content;
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-glass); backdrop-filter: blur(8px);
  transition: border-color .25s, box-shadow .25s;
}
.flow__node--gov { border-color: rgba(52,245,166,0.35); box-shadow: inset 0 0 22px rgba(52,245,166,0.08); }
.flow__title { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); }
.flow__node--gov .flow__title { color: var(--accent); }
.flow__meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); }
.flow__verdict { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-mute); transition: color .2s; }
.flow__seg { width: 2px; height: 42px; margin-left: 26px; background: linear-gradient(180deg, rgba(140,160,200,0.28), rgba(140,160,200,0.10)); position: relative; z-index: 1; }

.flow__node.is-allow { border-color: var(--green); box-shadow: 0 0 24px rgba(52,245,166,0.40); }
.flow__node.is-clamp { border-color: var(--amber); box-shadow: 0 0 24px rgba(255,182,39,0.40); }
.flow__node.is-deny  { border-color: var(--red);   box-shadow: 0 0 26px rgba(255,77,99,0.45); }
.flow__node--gov.is-allow .flow__verdict { color: var(--green); }
.flow__node--gov.is-clamp .flow__verdict { color: var(--amber); }
.flow__node--gov.is-deny  .flow__verdict { color: var(--red); }
.flow__node--act.is-exec { border-color: var(--green); box-shadow: 0 0 22px rgba(52,245,166,0.32); }
.flow__node--act.is-exec .flow__meta { color: var(--green); }

.flow__chip {
  position: absolute; left: 4px; top: 0; z-index: 4; pointer-events: none;
  font-family: var(--font-mono); font-size: 12px; white-space: nowrap;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #0a0f1d; color: var(--ink-soft);
}
.flow__chip--allow { border-color: var(--green); color: var(--green); box-shadow: 0 0 16px rgba(52,245,166,0.45); }
.flow__chip--clamp { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 16px rgba(255,182,39,0.45); }
.flow__chip--deny  { border-color: var(--red);   color: var(--red);   box-shadow: 0 0 16px rgba(255,77,99,0.45); text-decoration: line-through; }

/* ───────── Field notes (Substack) ───────── */
.notes { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 56px); text-align: center; }
.notes__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 18px; }
.notes__sub { max-width: 620px; margin: 0 auto 32px; color: var(--ink-soft); font-size: 1.08rem; }
.notes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 1040px; margin: 0 auto 36px; text-align: left; }
.notes__grid:empty { display: none; }
.note-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-glass); backdrop-filter: blur(8px); overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.note-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.note-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg-2); }
.note-card__body { display: flex; flex-direction: column; gap: 9px; padding: 20px; }
.note-card__date { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--green); }
.note-card__title { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); line-height: 1.25; }
.note-card__excerpt { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.note-card__more { margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* ───────── Reveal states (GSAP toggles) ───────── */
[data-fade], [data-reveal], [data-stagger] .word { will-change: transform, opacity; }
