/* Self-hosted fonts (latin + latin-ext), served from /assets/fonts. */
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* QUAICU Brutalist sovereign design system
   ===========================================
   No rounded corners. No drop shadows. No gradients.
   Hairline rules, dense grids, heavy weight contrast, mono metadata. */

:root {
  /* palette neutrals */
  --paper: #fafaf7;
  --paper-2: #f0eee8;
  --ink: #0a0a0a;
  --graphite: #1c1c1c;
  --smoke: #525252;
  --mist: #a3a3a3;
  --hairline: #d4d4d4;
  --hairline-soft: #e5e5e2;

  /* accent 1: ember = live / status / pass / approved + brand mark */
  --ember: #008746;
  --ember-soft: #e3f0e7;
  /* accent 2: marigold = attention / the offer / interaction.
     On paper only a FILL behind ink or a SHAPE; amber text on paper uses --marigold-deep. */
  --marigold: #f5a300;
  --marigold-deep: #8a5a00;
  --marigold-soft: #fbedcb;
  --marigold-half: #f8cf7c; /* 50% marigold over paper: hero highlight band */
  /* semantic */
  --alert: #c43a1a;

  /* surface tokens (default light mode) */
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --fg: var(--ink);
  --fg-2: var(--graphite);
  --fg-3: var(--smoke);
  --fg-4: var(--mist);
  --rule: var(--hairline);
  --rule-soft: var(--hairline-soft);

  /* type */
  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* density */
  --pad-x: clamp(20px, 4vw, 72px);
  --pad-y: clamp(48px, 7vw, 120px);
  --gap: 24px;

  /* type scale */
  --t-mono: 11px;
  --t-meta: 12px;
  --t-body: 16px;
  --t-lead: 19px;
  --t-h3: 22px;
  --t-h2: clamp(26px, 3.4vw, 48px);
  --t-h1: clamp(32px, 6vw, 96px);
  --t-display: clamp(40px, 9vw, 144px);
}

/* paper-dark variant */
html[data-mode="dark"] {
  --bg: #0a0a0a;
  --bg-2: #141413;
  --fg: #fafaf7;
  --fg-2: #e5e5e2;
  --fg-3: #a3a3a3;
  --fg-4: #525252;
  --rule: #2a2a28;
  --rule-soft: #1c1c1c;
  --ember-soft: #0d2519;
  --marigold-soft: #2b1f05;
}

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

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

.h1,
.h2,
.h3,
.display,
.lead {
  overflow-wrap: break-word;
}

/* hero typography tighter scale so heroes don't feel oversized */
.hero .display,
.page-hero .display {
  font-size: clamp(32px, 6vw, 88px);
}

.hero .h1,
.page-hero .h1 {
  font-size: clamp(28px, 5vw, 64px);
}

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

html[data-mode="dark"] ::selection {
  background: var(--marigold);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

/* keyboard focus: deep amber on paper (5.7:1), bright amber on dark (9.5:1) */
:focus-visible {
  outline: 2px solid var(--marigold-deep);
  outline-offset: 2px;
}

.section--bg :focus-visible {
  outline-color: var(--marigold);
}

.section--bg .btn--primary:focus-visible {
  outline-color: rgba(255, 255, 255, .95);
}

/* ============== layout primitives ============== */

.shell {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
}

.rule-2 {
  border: 0;
  border-top: 2px solid var(--fg);
}

.rule-l {
  border-left: 1px solid var(--rule);
}

.rule-r {
  border-right: 1px solid var(--rule);
}

.rule-b {
  border-bottom: 1px solid var(--rule);
}

.rule-t {
  border-top: 1px solid var(--rule);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

/* ============== top nav ============== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 56px;
  gap: 48px;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav-brand-mark {
  width: 22px;
  height: 22px;
  display: inline-block;
  align-self: center;
  image-rendering: -webkit-optimize-contrast;
}

.nav-brand .nav-brand-mono {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  color: var(--fg-3);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-links a.is-active {
  color: var(--ink);
  background: var(--marigold);
  padding: 4px 10px;
  margin: -4px -10px;
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-links a,
.nav-cta .btn {
  white-space: nowrap;
}

/* "Free production check" is a long button label: tighten the desktop nav so it fits */
@media (max-width: 1300px) {
  .nav-inner {
    gap: 24px;
  }
  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 1140px) {
  .nav-cta .btn--ghost {
    display: none;
  }
}

/* scroll progress indicator pinned to the bottom of the sticky nav */
.nav-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
  z-index: 51;
}

.nav-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--marigold);
  will-change: width;
}

/* ============== hamburger + mobile sheet ============== */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--fg);
  background: var(--bg);
  cursor: pointer;
  position: relative;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.2s ease, opacity 0.15s ease, top 0.2s ease;
}

.nav-toggle span:nth-child(1) {
  top: 12px;
}

.nav-toggle span:nth-child(2) {
  top: 19px;
}

.nav-toggle span:nth-child(3) {
  top: 26px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: none;
}

@media (max-width: 1024px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-mobile {
    /* Full-viewport popup. Pinned to the screen, not the document.
       Sits below the sticky nav (z-index 50) so the X button stays
       reachable to close. Uses opacity + visibility instead of
       max-height so iOS Safari's sticky-quirks can't reposition it. */
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--bg);
    padding: 72px var(--pad-x) 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0s 0.22s linear;
    border-bottom: 0;
    max-height: none;
    box-shadow: none;
  }

  .nav-mobile[data-open="true"] {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.22s ease, visibility 0s 0s linear;
  }

  .nav-mobile nav {
    display: flex;
    flex-direction: column;
    padding: 0 0 8px;
  }

  .nav-mobile nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font-family: var(--f-display);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--fg);
    border-bottom: 1px solid var(--rule);
  }

  .nav-mobile nav a:last-child {
    border-bottom: 0;
  }

  .nav-mobile nav a.is-active {
    color: var(--ink);
    background: var(--marigold);
    margin: 0 calc(-1 * var(--pad-x));
    padding: 18px var(--pad-x);
    border-bottom-color: transparent;
  }

  .nav-mobile-cta {
    display: grid;
    gap: 12px;
    padding: 24px 0 0;
    margin-top: 16px;
    border-top: 1px solid var(--rule);
  }

  .nav-mobile-cta .btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============== buttons ============== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: all 0.12s;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn--primary {
  background: var(--marigold);
  border-color: var(--fg);
  color: var(--fg);
}

.btn--primary:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.btn--ghost {
  border-color: var(--rule);
  color: var(--fg-3);
}

.btn--ghost:hover {
  border-color: var(--marigold);
  color: var(--fg);
  background: var(--marigold-soft);
}

.btn--lg {
  height: 52px;
  padding: 0 24px;
  font-size: 14px;
}

.btn .arrow {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: currentColor;
  position: relative;
}

.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ============== type ============== */

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--marigold-deep);
}

.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ember);
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.meta {
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}

.h1 {
  font-family: var(--f-display);
  font-size: var(--t-h1);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.h2 {
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.h3 {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.display {
  font-family: var(--f-display);
  font-size: var(--t-display);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.45;
  color: var(--fg-2);
  max-width: 60ch;
}

.body {
  color: var(--fg-2);
}

.muted {
  color: var(--fg-3);
}

/* marigold highlight: one phrase per hero headline, except the homepage,
   where the dashboard's marigold glow is the accent instead. Ink text on a
   flat band of half-strength marigold (--marigold-half) from cap height to
   just under the baseline, so the band stays inside its own line box and
   descenders hang below it. The two-stop
   same-color linear-gradient() is a sized solid paint, not a visual gradient.
   Never on body copy, never inside a .section--bg paragraph, never across <br>. */
.hl {
  color: var(--ink);
  padding: 0 0.14em;
  background-color: transparent;
  background-image: linear-gradient(var(--marigold-half), var(--marigold-half));
  background-repeat: no-repeat;
  background-size: 100% 0.82em;
  background-position: 0 0.25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.muted .hl,
.section--bg .hl {
  color: var(--ink);
}

/* selecting text on an amber fill would otherwise vanish into ::selection */
.hl::selection,
.btn--primary::selection {
  background: var(--ink);
  color: var(--marigold);
}

.kicker {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ============== section ============== */

section {
  padding-block: var(--pad-y);
}

section.hero {
  padding-top: clamp(24px, 3vw, 48px);
}

section.tight {
  padding-block: clamp(36px, 5vw, 80px);
}

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}

.section-head .kicker {
  padding-top: 6px;
  color: var(--marigold-deep);
}

@media (max-width: 800px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============== card ============== */

.card {
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 28px;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

/* ============== status pill ============== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--fg-3);
  background: var(--bg);
}

.pill--live {
  border-color: var(--ember);
  color: var(--ember);
  background: var(--ember-soft);
}

.pill--live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ember);
  animation: pulse 1.4s ease-in-out infinite;
}

.pill--next {
  border-color: var(--fg);
  color: var(--fg);
}

.pill--future {
  border-color: var(--rule);
  color: var(--fg-3);
}

/* ============== tables ============== */

table.brutal {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.brutal th,
table.brutal td {
  text-align: left;
  padding: 16px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

table.brutal th {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: 1px solid var(--fg);
}

table.brutal tr:last-child td {
  border-bottom: 0;
}

table.brutal td:first-child {
  color: var(--fg);
  font-weight: 500;
}

table.brutal td.col-mono {
  font-family: var(--f-mono);
  font-size: 12px;
}

/* highlighted column (e.g. QUAICU vs Cloud AI comparison) */
table.brutal th.td--highlight,
table.brutal td.td--highlight {
  background: var(--ember-soft);
  color: var(--fg);
  font-weight: 600;
  border-left: 2px solid var(--ember);
}

table.brutal th.td--highlight {
  color: var(--ember);
  border-bottom-color: var(--ember);
}

.section--bg table.brutal th.td--highlight,
.section--bg table.brutal td.td--highlight {
  background: rgba(0, 135, 70, 0.15);
  color: rgba(255, 255, 255, .95);
  border-left-color: var(--ember);
}

.section--bg table.brutal th.td--highlight {
  color: var(--ember);
  border-bottom-color: var(--ember);
}

/* Solutions · "Common Foundation" band — bordered kicker+copy block.
   Desktop keeps the 200px / 1fr split; mobile stacks and tightens the
   copy so the five-sentence paragraph lands in four lines. */
.band-foundation {
  padding: 32px;
  border: 1px solid var(--fg);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}

.band-foundation-copy {
  margin-top: 8px;
  max-width: 60ch;
}

@media (max-width: 720px) {
  .band-foundation {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }

  .band-foundation-copy {
    max-width: none;
    font-size: 12.5px;
    line-height: 1.35;
  }
}

/* Narrow viewports: shrink padding/type and let long words wrap so the
   table fits within the shell instead of spilling past the right edge. */
@media (max-width: 720px) {
  table.brutal {
    font-size: 13px;
  }

  table.brutal th,
  table.brutal td {
    padding: 12px 10px;
    overflow-wrap: anywhere;
  }

  table.brutal th {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  table.brutal td.col-mono {
    font-size: 11px;
  }

  table.brutal .pill {
    font-size: 8.5px;
    padding: 0 6px;
    letter-spacing: 0.05em;
    height: 18px;
  }
}

/* ============== footer ============== */

.foot {
  border-top: 2px solid var(--fg);
  padding-block: 64px 32px;
  background: var(--bg);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.foot-col h4 {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 20px;
}

.foot-col ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.foot-col a {
  font-size: 14px;
  color: var(--fg-2);
}

.foot-col a:hover {
  color: var(--fg);
}

.foot-brand .h2 {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-brand .h2::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--ember);
  display: inline-block;
}

.foot-coda {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}

/* ============== utilities ============== */

.stack-8 {
  display: grid;
  gap: 8px;
}

.stack-12 {
  display: grid;
  gap: 12px;
}

.stack-16 {
  display: grid;
  gap: 16px;
}

.stack-24 {
  display: grid;
  gap: 24px;
}

.stack-32 {
  display: grid;
  gap: 32px;
}

.stack-48 {
  display: grid;
  gap: 48px;
}

.row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.row-tight {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.col-3 {
  grid-column: span 3;
}

.col-4 {
  grid-column: span 4;
}

.col-5 {
  grid-column: span 5;
}

.col-6 {
  grid-column: span 6;
}

.col-7 {
  grid-column: span 7;
}

.col-8 {
  grid-column: span 8;
}

.col-9 {
  grid-column: span 9;
}

.col-12 {
  grid-column: span 12;
}

@media (max-width: 900px) {

  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9 {
    grid-column: span 12;
  }
}

.num-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============== kernel viz ============== */

.kernel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--fg);
  background: var(--bg);
  font-family: var(--f-mono);
  font-size: 12px;
  overflow: hidden;
  position: relative;
}

.kernel-col {
  border-right: 1px solid var(--rule);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.kernel-col:last-child {
  border-right: 0;
}

.kernel-col-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
}

.kernel-col-head .num {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
}

.kernel-col-head .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}

.kernel-col-head .status {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}

.kernel-col-head .status .lamp {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ember);
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.4s ease-in-out infinite;
}

.kernel-stream {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.kernel-stream::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.kernel-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 10px 20px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 12px;
  line-height: 1.4;
  animation: rowin 0.4s ease;
}

@keyframes rowin {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kernel-row .row-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-4);
}

.kernel-row .row-body {
  color: var(--fg);
  font-size: 12px;
  word-break: break-word;
}

.kernel-row.kr-pass .row-stat {
  color: var(--ember);
}

.kernel-row.kr-block .row-stat {
  color: var(--alert);
}

.kernel-row.kr-wait .row-stat {
  color: var(--fg-3);
}

.kernel-row.kr-ok .row-stat {
  color: var(--ember);
}

.kernel-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--fg);
  border-top: 0;
  font-family: var(--f-mono);
  font-size: 11px;
}

.kernel-foot>div {
  padding: 14px 20px;
  border-right: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--fg-3);
}

.kernel-foot>div:last-child {
  border-right: 0;
}

.kernel-foot strong {
  color: var(--fg);
  font-weight: 600;
}

@media (max-width: 800px) {
  .kernel {
    grid-template-columns: 1fr;
  }

  .kernel-col {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    min-height: 280px;
  }

  .kernel-foot {
    grid-template-columns: 1fr;
  }

  .kernel-foot>div {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
}

/* compact vertical kernel fits inside a narrow hero column.
   each stage is a fixed-height frame; new rows scroll older ones
   out behind the bottom fade rather than expanding the column. */
.kernel--vertical {
  grid-template-columns: 1fr;
}

.kernel--vertical .kernel-col {
  border-right: 0;
  border-bottom: 1px solid var(--rule);
  height: 180px;
  min-height: 0;
}

.kernel--vertical .kernel-col:last-child {
  border-bottom: 0;
}

.kernel--vertical .kernel-stream {
  min-height: 0;
}

/* ============== kernel viz as application window ============== */
.kernel-window {
  border: 1px solid var(--fg);
  background: var(--bg);
  font-family: var(--f-mono);
}

.kernel-window-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
}

.kernel-window-dots {
  display: flex;
  gap: 6px;
}

.kernel-window-dots span {
  width: 10px;
  height: 10px;
  display: inline-block;
}

.kernel-window-dots span:nth-child(1) {
  background: var(--alert);
}

.kernel-window-dots span:nth-child(2) {
  background: #d9b66c;
}

.kernel-window-dots span:nth-child(3) {
  background: var(--ember);
}

.kernel-window-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  text-transform: uppercase;
  text-align: center;
}

.kernel-window-status {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.kernel-window-status .lamp {
  width: 6px;
  height: 6px;
  background: var(--ember);
  display: inline-block;
  animation: pulse 1.4s ease-in-out infinite;
}

.kernel-window-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: flex-end;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
}

.kernel-window .kernel {
  border: 0;
}

.kernel-window .kernel-foot {
  border: 0;
  border-top: 1px solid var(--rule);
}

/* dashboard KPI tile row */
.kernel-window-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.kernel-window-kpi>div {
  padding: 12px 14px;
  border-right: 1px solid var(--rule);
  display: grid;
  gap: 4px;
}

.kernel-window-kpi>div:last-child {
  border-right: 0;
}

.kernel-window-kpi .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  text-transform: uppercase;
}

.kernel-window-kpi .value {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.kernel-window-kpi .value.alert {
  color: var(--alert);
}

.kernel-window-kpi .value.live {
  color: var(--ember);
}

/* dashboard status bar */
.kernel-window-statusbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  text-transform: uppercase;
  gap: 12px;
}

.kernel-window-statusbar .health {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kernel-window-statusbar .health::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ember);
  display: inline-block;
  animation: pulse 1.4s ease-in-out infinite;
}

/* ============== atmosphere strip ==============
   Narrow full-width image band between sections.
   Image is multiplied with the brand green so the
   photo reads as texture, not literal content.    */
.atmos {
  position: relative;
  width: 100%;
  height: clamp(160px, 18vw, 240px);
  background-size: cover;
  background-position: center;
  background-color: var(--ember);
  background-blend-mode: multiply;
  border-block: 1px solid var(--fg);
  overflow: hidden;
}

.atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .55)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 80px);
  pointer-events: none;
}

.atmos-caption {
  position: absolute;
  left: var(--pad-x);
  bottom: 16px;
  z-index: 1;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}

.atmos-caption .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ember);
  margin-right: 8px;
  vertical-align: middle;
}

/* ============== plate (bg mode) ==============
   Image is the background of the figure; caption overlays at the bottom.
   Each variant sets aspect-ratio on the figure itself.                  */
.plate-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-block: clamp(48px, 7vw, 96px);
}

.plate {
  position: relative;
  border: 1px solid var(--fg);
  background: var(--ink);
  overflow: hidden;
  display: block;
}

.plate-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05) brightness(0.62);
}

.plate-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
  color: rgba(255, 255, 255, .92);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.plate-cap .plate-num {
  color: rgba(255, 255, 255, .6);
}

.plate-cap .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ember);
  margin-right: 6px;
  vertical-align: middle;
}

@media (max-width: 800px) {
  .plate-strip {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* solo plate medium centered landscape */
.plate--solo {
  max-width: 760px;
  margin-inline: auto;
  margin-block: clamp(56px, 8vw, 96px);
  aspect-ratio: 16 / 9;
}

/* wide cinematic bigger landscape statement */
.plate--wide {
  max-width: 1200px;
  margin-inline: auto;
  margin-block: clamp(56px, 8vw, 96px);
  aspect-ratio: 21 / 9;
}

/* narrow portrait small centered accent */
.plate--narrow {
  max-width: 440px;
  margin-inline: auto;
  margin-block: clamp(56px, 8vw, 96px);
  aspect-ratio: 3 / 4;
}

/* half-width portrait flush left */
.plate--left {
  max-width: min(50%, 540px);
  margin-left: 0;
  margin-right: auto;
  margin-block: clamp(56px, 8vw, 96px);
  aspect-ratio: 4 / 5;
}

/* half-width portrait flush right */
.plate--right {
  max-width: min(50%, 540px);
  margin-left: auto;
  margin-right: 0;
  margin-block: clamp(56px, 8vw, 96px);
  aspect-ratio: 4 / 5;
}

/* on mobile, all variants collapse to full-width landscape */
@media (max-width: 800px) {

  .plate--solo,
  .plate--wide,
  .plate--narrow,
  .plate--left,
  .plate--right {
    max-width: 100%;
    margin-inline: auto;
    aspect-ratio: 16 / 9;
  }
}

/* slimmer variant placed inside hero sections */
.atmos--hero {
  height: clamp(120px, 14vw, 180px);
  margin-top: clamp(40px, 5vw, 64px);
}

/* ============== section with image background ==============
   Apply to any <section> with an inline background-image style.
   Uniform 50% black overlay keeps the image visible while still
   making white text readable on top. Inverts all child colors.  */
.section--bg {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.section--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
  pointer-events: none;
  z-index: 0;
}

.section--bg>* {
  position: relative;
  z-index: 1;
}

/* text color inversions */
.section--bg,
.section--bg .body {
  color: rgba(255, 255, 255, .9);
}

.section--bg .h1,
.section--bg .h2,
.section--bg .h3,
.section--bg .display {
  color: rgba(255, 255, 255, .95);
}

.section--bg .h1 .muted,
.section--bg .h2 .muted,
.section--bg .h3 .muted,
.section--bg .display .muted,
.section--bg .lead.muted,
.section--bg .muted,
.section--bg p.muted {
  color: rgba(255, 255, 255, .55);
}

.section--bg .lead {
  color: rgba(255, 255, 255, .85);
}

.section--bg .kicker,
.section--bg .meta {
  color: rgba(255, 255, 255, .55);
}

.section--bg .eyebrow,
.section--bg .section-head .kicker {
  color: var(--marigold);
}

.section--bg .eyebrow .dot {
  background: var(--ember);
}

.section--bg .num-tag {
  color: rgba(255, 255, 255, .55);
}

/* tables */
.section--bg table.brutal th {
  color: rgba(255, 255, 255, .55);
  border-bottom-color: rgba(255, 255, 255, .5);
}

.section--bg table.brutal td,
.section--bg table.brutal td.muted {
  border-bottom-color: rgba(255, 255, 255, .15);
}

.section--bg table.brutal td {
  color: rgba(255, 255, 255, .85);
}

.section--bg table.brutal td:first-child {
  color: rgba(255, 255, 255, .95);
}

.section--bg table.brutal td.muted {
  color: rgba(255, 255, 255, .55);
}

/* cards */
.section--bg .card {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .18);
}

.section--bg .card-head {
  border-bottom-color: rgba(255, 255, 255, .18);
}

/* chips */
.section--bg .chip {
  color: rgba(255, 255, 255, .85);
  border-color: rgba(255, 255, 255, .28);
}

.section--bg .chip.chip--accent {
  color: var(--ember);
  border-color: var(--ember);
}

/* code block */
.section--bg .codeblock {
  background: rgba(0, 0, 0, .6);
  border-color: rgba(255, 255, 255, .2);
}

/* pills (LIVE / NEXT / FUTURE) */
.section--bg .pill {
  color: rgba(255, 255, 255, .85);
  border-color: rgba(255, 255, 255, .3);
  background: transparent;
}

.section--bg .pill--future {
  color: rgba(255, 255, 255, .55);
  border-color: rgba(255, 255, 255, .2);
}

/* buttons */
.section--bg .btn {
  border-color: rgba(255, 255, 255, .55);
  color: rgba(255, 255, 255, .95);
  background: transparent;
}

.section--bg .btn:hover {
  background: var(--marigold);
  border-color: var(--marigold);
  color: var(--ink);
}

.section--bg .btn--primary {
  background: var(--marigold);
  border-color: var(--marigold);
  color: var(--ink);
}

.section--bg .btn--primary:hover {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(255, 255, 255, .95);
  color: var(--ink);
}

.section--bg .btn--ghost {
  border-color: rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .55);
}

.section--bg .btn--ghost:hover {
  border-color: var(--marigold);
  color: var(--marigold);
  background: transparent;
}

/* dividers + section heads */
.section--bg .section-head {
  border-bottom-color: rgba(255, 255, 255, .25);
}

/* products page impact rows */
.section--bg .impact-row {
  border-bottom-color: rgba(255, 255, 255, .15);
}

.section--bg .impact-row .iv {
  color: rgba(255, 255, 255, .95);
}

.section--bg .impact-row .id {
  color: rgba(255, 255, 255, .85);
}

/* products module grid borders */
.section--bg .module-grid,
.section--bg .module-grid>div {
  border-color: rgba(255, 255, 255, .2);
}

.section--bg .module-grid .m-num {
  color: rgba(255, 255, 255, .55);
}

.section--bg .module-grid .m-title {
  color: rgba(255, 255, 255, .95);
}

.section--bg .module-grid .m-desc {
  color: rgba(255, 255, 255, .7);
}

/* green marker highlight behind body text on image backgrounds —
   headings render clean (H1/H2/H3/display excluded); body gets a soft
   translucent ember so the underlying image can still breathe through. */
.section--bg .body,
.section--bg p.body,
.section--bg .lead,
.section--bg .p-desc,
.section--bg .e-desc,
.section--bg .m-desc,
.section--bg .d-desc,
.section--bg .r-desc,
.section--bg .bio,
.section--bg .pd-tag,
.section--bg .impact-row .id,
.section--bg p:not(.muted):not(.kicker):not(.meta):not(.eyebrow) {
  display: inline;
  background: rgba(0, 135, 70, 0.78);
  color: #fff;
  padding: 0.1em 0.32em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: 1.45;
}

/* Defensive: even if a heading element lands inside .section--bg, it
   must never inherit the marker highlight from any prior rule. */
.section--bg .h1,
.section--bg h1,
.section--bg h1.h1,
.section--bg .h2,
.section--bg h2.h2,
.section--bg .h3,
.section--bg h3.h3,
.section--bg .display {
  background: transparent;
  padding: 0;
}

/* ============== marquee ============== */

.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.marquee-track span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ember);
  display: inline-block;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============== logo marquee ============== */

.logo-marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 40px 0;
  background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 96px;
  width: max-content;
  animation: marquee 45s linear infinite;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

.logo-marquee-item {
  flex: 0 0 auto;
  height: 56px;
  display: grid;
  place-items: center;
}

.logo-marquee-item img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
  opacity: 0.55;
  transition: opacity 200ms ease;
}

.logo-marquee-item--invert img {
  filter: grayscale(1) invert(1) brightness(0.4);
}

.logo-marquee-item:hover img {
  opacity: 1;
}

html[data-mode="dark"] .logo-marquee-item img {
  filter: grayscale(1) invert(1) brightness(2);
}

html[data-mode="dark"] .logo-marquee-item--invert img {
  filter: grayscale(1) brightness(2);
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}

@media (max-width: 700px) {
  .logo-marquee { padding: 28px 0; }
  .logo-marquee-track { gap: 64px; animation-duration: 35s; }
  .logo-marquee-item { height: 40px; }
  .logo-marquee-item img { max-width: 140px; }
}

/* --atmos variant: logos scroll on the hero background image */
.logo-marquee--atmos {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  padding-bottom: 32px;          /* keep clear of the atmos-caption at the bottom */
  background: transparent;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.logo-marquee--atmos .logo-marquee-track {
  gap: 160px;
}

.logo-marquee--atmos .logo-marquee-item {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* every logo is sized so its drawn area is the same: wide wordmarks get
   short, compact marks get tall, and all nine read at one visual weight.
   Sizes were computed from each file's measured ink bounding box. */
.logo-marquee--atmos .logo-marquee-item {
  height: auto;
  width: auto;
}

.logo-marquee--atmos .logo-marquee-item img {
  --lw: 150px;
  --lh: 80px;
  width: calc(var(--lw) * var(--logo-scale, 1));
  height: calc(var(--lh) * var(--logo-scale, 1));
  max-height: none;
  max-width: none;
  object-fit: contain;
  transform: none;
  filter: grayscale(1) invert(1) brightness(2);
  opacity: 0.5;
  mix-blend-mode: screen;
}

.logo-marquee--atmos .logo-marquee-item img[src$="/nvidia.svg"] { --lw: 170px; --lh: 114px; }
.logo-marquee--atmos .logo-marquee-item img[src$="/aws.svg"] { --lw: 153px; --lh: 102px; }
.logo-marquee--atmos .logo-marquee-item img[src$="/xplorepro.png"] { --lw: 224px; --lh: 47px; }
.logo-marquee--atmos .logo-marquee-item img[src$="/t-hub.png"] { --lw: 110px; --lh: 96px; }
.logo-marquee--atmos .logo-marquee-item img[src$="/nasscom-deeptech.png"] { --lw: 142px; --lh: 63px; }
.logo-marquee--atmos .logo-marquee-item img[src$="/google-for-startups.png"] { --lw: 304px; --lh: 57px; }
.logo-marquee--atmos .logo-marquee-item img[src$="/ai-research-centre.png"] { --lw: 95px; --lh: 97px; }
.logo-marquee--atmos .logo-marquee-item img[src$="/woxsen.png"] { --lw: 138px; --lh: 66px; }
.logo-marquee--atmos .logo-marquee-item img[src$="/tattva-diagnostics.svg"] { --lw: 229px; --lh: 67px; }

.logo-marquee--atmos .logo-marquee-item:hover img {
  opacity: 0.9;
}

@media (max-width: 700px) {
  .logo-marquee--atmos { padding: 0; padding-bottom: 28px; }
  .logo-marquee--atmos .logo-marquee-track { gap: 80px; }
}

/* ============== stack diagram ============== */

.stack-diagram {
  border: 1px solid var(--fg);
  background: var(--bg);
}

.stack-layer {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--rule);
  min-height: 120px;
}

.stack-layer:last-child {
  border-bottom: 0;
}

.stack-layer-tag {
  border-right: 1px solid var(--rule);
  padding: 20px;
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stack-layer-tag .ix {
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.stack-layer:nth-child(2) .stack-layer-tag .ix {
  color: var(--ember);
}

.stack-layer-tag .role {
  color: var(--fg-3);
  text-transform: uppercase;
}

.stack-layer-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.stack-layer-body h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stack-layer-body p {
  color: var(--fg-3);
  font-size: 14px;
  max-width: 60ch;
}

.stack-layer-body .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid var(--rule);
  padding: 4px 8px;
  color: var(--fg-2);
}

.chip.chip--accent {
  border-color: var(--ember);
  color: var(--ember);
}

/* ============== KPI grid ============== */

.kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--fg);
  border-top: 3px solid var(--marigold);
}

.kpi>div {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kpi>div:last-child {
  border-right: 0;
}

.kpi .v {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.kpi .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

@media (max-width: 800px) {
  .kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi>div {
    border-bottom: 1px solid var(--rule);
  }
}

/* phones: word values such as "1-TICKET" don't fit two to a row */
@media (max-width: 560px) {
  .kpi {
    grid-template-columns: minmax(0, 1fr);
  }

  .kpi>div {
    border-right: 0;
    padding: 24px;
  }

  .kpi>div:last-child {
    border-bottom: 0;
  }

  .kpi .v {
    font-size: 44px;
  }
}

/* product card */

.product-card {
  border: 1px solid var(--rule);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.product-card:hover {
  border-color: var(--marigold);
}

.product-card .pc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product-card .pc-code {
  font-family: var(--f-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.product-card .pc-vert {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.product-card .pc-tag {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.4;
  min-height: 3em;
}

.product-card .pc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  margin-top: auto;
}

.product-card .pc-link {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.product-card .pc-link::after {
  content: "→";
  transition: transform 0.15s;
}

.product-card:hover .pc-link::after {
  transform: translateX(4px);
}

.product-card:hover .pc-link {
  color: var(--marigold-deep);
}

/* wide two-column variant; one link stretches over the whole card so a
   second link can sit inside it without nesting <a> elements */
.product-card--wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.product-card .pc-stretch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.product-card .pc-stretch:focus-visible {
  outline: none;
}

.product-card:has(.pc-stretch:focus-visible) {
  outline: 2px solid var(--marigold-deep);
  outline-offset: 2px;
}

.product-card .pc-ext {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .product-card--wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .product-card--wide .pc-head {
    flex-wrap: wrap;
  }

  .product-card--wide .pc-code {
    font-size: 30px;
  }
}

/* page hero */
.page-hero {
  padding-block: clamp(72px, 9vw, 144px);
  border-bottom: 1px solid var(--rule);
}

.page-hero .h1 {
  max-width: 18ch;
}

.page-hero .lead {
  margin-top: 24px;
}

.page-hero .breadcrumb {
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.page-hero .breadcrumb a:hover {
  color: var(--fg);
}

.page-hero .breadcrumb .sep {
  color: var(--fg-4);
}

/* form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full {
  grid-column: span 2;
}

@media (max-width: 700px) {

  .form-grid,
  .form-grid .full {
    grid-template-columns: minmax(0, 1fr);
    grid-column: 1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.field input,
.field textarea,
.field select {
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  width: 100%;
  min-width: 0;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--marigold-deep);
  outline: 1px solid var(--marigold-deep);
  outline-offset: -1px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

/* dark code-style block */
.codeblock {
  font-family: var(--f-mono);
  font-size: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
  line-height: 1.7;
  border: 1px solid var(--fg);
}

.codeblock .ck {
  color: var(--ember);
}

/* keyword */
.codeblock .cs {
  color: #9fc794;
}

/* string */
.codeblock .cc {
  color: #6e6e6e;
}

/* comment */
.codeblock .cv {
  color: #c4d4e8;
}

/* var */

/* compact 3-plane diagram */
.planes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--fg);
}

.plane {
  padding: 28px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}

.plane:last-child {
  border-right: 0;
}

.plane .p-num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.plane .p-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.plane .p-desc {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.55;
}

.plane .p-icon {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--fg);
  position: relative;
}

.plane:nth-child(1) .p-icon::after {
  /* control = lock */
  content: "";
  position: absolute;
  inset: 16px;
  border: 1.5px solid var(--fg);
}

.plane:nth-child(2) .p-icon::after {
  /* reasoning = circle */
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
}

.plane:nth-child(3) .p-icon::after {
  /* execution = triangle */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top right, transparent 49%, var(--fg) 49%, var(--fg) 51%, transparent 51%);
}

@media (max-width: 800px) {
  .planes {
    grid-template-columns: 1fr;
  }

  .plane {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    min-height: 0;
  }
}

/* ============== app window (tilted dark dashboard) ==============
   Wraps the kernel viz in a dark "product UI" panel: sidebar with icon
   nav, header with title + Live badge + button, tabs, search, KPI tiles,
   and the existing 3-stream content. Stays dark in both site modes.    */

.appwin-wrap {
  /* dark surface tokens — independent of site dark/light mode */
  --aw-bg: #0b0d0e;
  --aw-bg-2: #121517;
  --aw-bg-3: #181b1d;
  --aw-fg: #f4f4f1;
  --aw-fg-2: #b8bcc0;
  --aw-fg-3: #6e7378;
  --aw-fg-4: #41464a;
  --aw-rule: #23272a;
  --aw-rule-soft: #1a1d1f;
  --aw-ember: #2bb673;
  --aw-alert: #e15a3b;

  position: relative;
  perspective: 2400px;
  perspective-origin: 30% 50%;
  margin-right: clamp(-72px, -4vw, -20px);
  isolation: isolate;
}

.appwin {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  background: var(--aw-bg);
  color: var(--aw-fg);
  border: 1px solid #000;
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--f-body);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.55),
    0 8px 20px -10px rgba(0, 0, 0, 0.4);
  transform: rotateY(-9deg) rotateX(4deg) rotate(-0.6deg);
  transform-origin: 30% 50%;
  transition: transform 0.5s cubic-bezier(.2, .7, .2, 1);
  min-width: 580px;
}

.appwin-wrap:hover .appwin {
  transform: rotateY(-3deg) rotateX(1.5deg);
}

.appwin::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  z-index: 3;
  pointer-events: none;
}

.appwin-side {
  background: #08090a;
  border-right: 1px solid var(--aw-rule-soft);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.appwin-side-top,
.appwin-side-bot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.appwin-sb {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--aw-fg-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.appwin-sb:hover {
  color: var(--aw-fg);
  background: var(--aw-bg-2);
}

.appwin-sb.is-active {
  background: var(--aw-fg);
  color: var(--aw-bg);
}

.appwin-sb-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--aw-bg-2);
  color: var(--aw-fg-2);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  border: 1px solid var(--aw-rule);
}

.appwin-main {
  padding: 22px 22px 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.appwin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.appwin-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.appwin-title {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--aw-fg);
  margin: 0;
  line-height: 1.15;
}

.appwin-alpha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--aw-rule);
  border-radius: 999px;
  background: var(--aw-bg-2);
  color: var(--aw-fg-2);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.appwin-alpha-lamp {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--aw-ember);
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.18);
  animation: pulse 1.4s ease-in-out infinite;
}

.appwin-newbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background: var(--aw-bg-2);
  border: 1px solid var(--aw-rule);
  border-radius: 8px;
  color: var(--aw-fg);
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.appwin-newbtn:hover {
  background: var(--aw-bg-3);
  border-color: var(--aw-fg-4);
}

.appwin-plus {
  font-size: 14px;
  line-height: 1;
  color: var(--aw-fg-2);
}

.appwin-caret {
  width: 1px;
  height: 14px;
  background: var(--aw-rule);
  margin-left: 4px;
  position: relative;
}

.appwin-caret::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--aw-fg-2);
  border-bottom: 1px solid var(--aw-fg-2);
  transform: rotate(45deg);
}

.appwin-sub {
  color: var(--aw-fg-3);
  font-size: 13px;
  line-height: 1.5;
  max-width: 60ch;
  margin-bottom: 18px;
}

.appwin-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--aw-rule);
  margin-bottom: 14px;
}

.appwin-tab {
  position: relative;
  padding: 8px 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--aw-fg-3);
  cursor: pointer;
  user-select: none;
}

.appwin-tab:hover {
  color: var(--aw-fg-2);
}

.appwin-tab.is-active {
  color: var(--aw-fg);
}

.appwin-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--aw-fg);
  border-radius: 2px;
}

.appwin-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 12px;
  background: var(--aw-bg-2);
  border: 1px solid var(--aw-rule);
  border-radius: 8px;
  color: var(--aw-fg-3);
  font-size: 12.5px;
  margin-bottom: 14px;
}

.appwin-search-ic {
  color: var(--aw-fg-3);
  flex-shrink: 0;
}

.appwin-search-ph {
  font-family: var(--f-body);
  letter-spacing: 0;
}

.appwin-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.appwin-kpi>div {
  background: var(--aw-bg-2);
  border: 1px solid var(--aw-rule);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.appwin-kpi .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--aw-fg-3);
  text-transform: uppercase;
}

.appwin-kpi .value {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--aw-fg);
}

.appwin-kpi .value.alert {
  color: var(--aw-alert);
}

.appwin-kpi .value.live {
  color: var(--aw-ember);
}

.kernel--app {
  border: 1px solid var(--aw-rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--aw-bg);
  font-family: var(--f-mono);
}

.kernel--app .kernel-col {
  border-right: 0;
  border-bottom: 1px solid var(--aw-rule-soft);
  height: 138px;
  min-height: 0;
}

.kernel--app .kernel-col:last-child {
  border-bottom: 0;
}

.kernel--app .kernel-col-head {
  background: var(--aw-bg-2);
  border-bottom: 1px solid var(--aw-rule-soft);
  padding: 10px 14px;
}

.kernel--app .kernel-col-head .num {
  background: var(--aw-fg);
  color: var(--aw-bg);
}

.kernel--app .kernel-col-head .label {
  color: var(--aw-fg);
}

.kernel--app .kernel-col-head .status {
  color: var(--aw-fg-3);
}

.kernel--app .kernel-col-head .status .lamp {
  background: var(--aw-ember);
}

.kernel--app .kernel-row {
  border-bottom: 1px solid var(--aw-rule-soft);
  padding: 8px 14px;
  font-size: 11.5px;
}

.kernel--app .kernel-row .row-top {
  color: var(--aw-fg-4);
}

.kernel--app .kernel-row .row-body {
  color: var(--aw-fg-2);
}

.kernel--app .kernel-row.kr-pass .row-stat,
.kernel--app .kernel-row.kr-ok .row-stat {
  color: var(--aw-ember);
}

.kernel--app .kernel-row.kr-block .row-stat {
  color: var(--aw-alert);
}

.kernel--app .kernel-stream::after {
  background: linear-gradient(to bottom, transparent, var(--aw-bg));
}

.appwin-statusbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 14px -22px 0;
  padding: 10px 22px;
  border-top: 1px solid var(--aw-rule);
  background: var(--aw-bg-2);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--aw-fg-3);
  text-transform: uppercase;
}

.appwin-statusbar .health {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--aw-fg-2);
}

.appwin-status-lamp {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--aw-ember);
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.18);
  animation: pulse 1.4s ease-in-out infinite;
}

@media (max-width: 1100px) {
  .appwin-wrap {
    perspective: none;
    margin-right: 0;
  }

  .appwin {
    transform: none;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .appwin {
    grid-template-columns: 1fr;
  }

  .appwin-side {
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--aw-rule-soft);
  }

  .appwin-side-top,
  .appwin-side-bot {
    flex-direction: row;
  }

  .appwin-newbtn {
    display: none;
  }

  .appwin-kpi {
    grid-template-columns: 1fr 1fr;
  }

  .appwin-main {
    padding: 16px 16px 0;
  }

  .appwin-statusbar {
    margin: 12px -16px 0;
    padding: 10px 16px;
  }
}

/* ============== app window (tilted dark dashboard) ==============
   Wraps the kernel viz in a dark "product UI" panel: sidebar with icon
   nav, header with title + Live badge + button, tabs, search, KPI tiles,
   and the existing 3-stream content. Stays dark in both site modes.    */

.appwin-wrap {
  /* dark surface tokens — independent of site dark/light mode */
  --aw-bg: #0b0d0e;
  --aw-bg-2: #121517;
  --aw-bg-3: #181b1d;
  --aw-fg: #f4f4f1;
  --aw-fg-2: #b8bcc0;
  --aw-fg-3: #6e7378;
  --aw-fg-4: #41464a;
  --aw-rule: #23272a;
  --aw-rule-soft: #1a1d1f;
  --aw-ember: #2bb673;
  --aw-alert: #e15a3b;

  position: relative;
  perspective: 2400px;
  perspective-origin: 30% 50%;
  margin-right: clamp(-72px, -4vw, -20px);
  isolation: isolate;
}

.appwin {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  background: var(--aw-bg);
  color: var(--aw-fg);
  border: 1px solid #000;
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--f-body);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.55),
    0 8px 20px -10px rgba(0, 0, 0, 0.4);
  transform: rotateY(-9deg) rotateX(4deg) rotate(-0.6deg);
  transform-origin: 30% 50%;
  transition: transform 0.5s cubic-bezier(.2, .7, .2, 1);
  min-width: 580px;
}

.appwin-wrap:hover .appwin {
  transform: rotateY(-3deg) rotateX(1.5deg);
}

.appwin::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  z-index: 3;
  pointer-events: none;
}

.appwin-side {
  background: #08090a;
  border-right: 1px solid var(--aw-rule-soft);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.appwin-side-top,
.appwin-side-bot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.appwin-sb {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--aw-fg-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.appwin-sb:hover {
  color: var(--aw-fg);
  background: var(--aw-bg-2);
}

.appwin-sb.is-active {
  background: var(--aw-fg);
  color: var(--aw-bg);
}

.appwin-sb-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--aw-bg-2);
  color: var(--aw-fg-2);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  border: 1px solid var(--aw-rule);
}

.appwin-main {
  padding: 22px 22px 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.appwin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.appwin-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.appwin-title {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--aw-fg);
  margin: 0;
  line-height: 1.15;
}

.appwin-alpha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--aw-rule);
  border-radius: 999px;
  background: var(--aw-bg-2);
  color: var(--aw-fg-2);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.appwin-alpha-lamp {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--aw-ember);
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.18);
  animation: pulse 1.4s ease-in-out infinite;
}

.appwin-newbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background: var(--aw-bg-2);
  border: 1px solid var(--aw-rule);
  border-radius: 8px;
  color: var(--aw-fg);
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.appwin-newbtn:hover {
  background: var(--aw-bg-3);
  border-color: var(--aw-fg-4);
}

.appwin-plus {
  font-size: 14px;
  line-height: 1;
  color: var(--aw-fg-2);
}

.appwin-caret {
  width: 1px;
  height: 14px;
  background: var(--aw-rule);
  margin-left: 4px;
  position: relative;
}

.appwin-caret::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--aw-fg-2);
  border-bottom: 1px solid var(--aw-fg-2);
  transform: rotate(45deg);
}

.appwin-sub {
  color: var(--aw-fg-3);
  font-size: 13px;
  line-height: 1.5;
  max-width: 60ch;
  margin-bottom: 18px;
}

.appwin-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--aw-rule);
  margin-bottom: 14px;
}

.appwin-tab {
  position: relative;
  padding: 8px 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--aw-fg-3);
  cursor: pointer;
  user-select: none;
}

.appwin-tab:hover {
  color: var(--aw-fg-2);
}

.appwin-tab.is-active {
  color: var(--aw-fg);
}

.appwin-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--aw-fg);
  border-radius: 2px;
}

.appwin-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 12px;
  background: var(--aw-bg-2);
  border: 1px solid var(--aw-rule);
  border-radius: 8px;
  color: var(--aw-fg-3);
  font-size: 12.5px;
  margin-bottom: 14px;
}

.appwin-search-ic {
  color: var(--aw-fg-3);
  flex-shrink: 0;
}

.appwin-search-ph {
  font-family: var(--f-body);
  letter-spacing: 0;
}

.appwin-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.appwin-kpi>div {
  background: var(--aw-bg-2);
  border: 1px solid var(--aw-rule);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.appwin-kpi .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--aw-fg-3);
  text-transform: uppercase;
}

.appwin-kpi .value {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--aw-fg);
}

.appwin-kpi .value.alert {
  color: var(--aw-alert);
}

.appwin-kpi .value.live {
  color: var(--aw-ember);
}

.kernel--app {
  border: 1px solid var(--aw-rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--aw-bg);
  font-family: var(--f-mono);
}

.kernel--app .kernel-col {
  border-right: 0;
  border-bottom: 1px solid var(--aw-rule-soft);
  height: 138px;
  min-height: 0;
}

.kernel--app .kernel-col:last-child {
  border-bottom: 0;
}

.kernel--app .kernel-col-head {
  background: var(--aw-bg-2);
  border-bottom: 1px solid var(--aw-rule-soft);
  padding: 10px 14px;
}

.kernel--app .kernel-col-head .num {
  background: var(--aw-fg);
  color: var(--aw-bg);
}

.kernel--app .kernel-col-head .label {
  color: var(--aw-fg);
}

.kernel--app .kernel-col-head .status {
  color: var(--aw-fg-3);
}

.kernel--app .kernel-col-head .status .lamp {
  background: var(--aw-ember);
}

.kernel--app .kernel-row {
  border-bottom: 1px solid var(--aw-rule-soft);
  padding: 8px 14px;
  font-size: 11.5px;
}

.kernel--app .kernel-row .row-top {
  color: var(--aw-fg-4);
}

.kernel--app .kernel-row .row-body {
  color: var(--aw-fg-2);
}

.kernel--app .kernel-row.kr-pass .row-stat,
.kernel--app .kernel-row.kr-ok .row-stat {
  color: var(--aw-ember);
}

.kernel--app .kernel-row.kr-block .row-stat {
  color: var(--aw-alert);
}

.kernel--app .kernel-stream::after {
  background: linear-gradient(to bottom, transparent, var(--aw-bg));
}

.appwin-statusbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 14px -22px 0;
  padding: 10px 22px;
  border-top: 1px solid var(--aw-rule);
  background: var(--aw-bg-2);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--aw-fg-3);
  text-transform: uppercase;
}

.appwin-statusbar .health {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--aw-fg-2);
}

.appwin-status-lamp {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--aw-ember);
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.18);
  animation: pulse 1.4s ease-in-out infinite;
}

@media (max-width: 1100px) {
  .appwin-wrap {
    perspective: none;
    margin-right: 0;
  }

  .appwin {
    transform: none;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .appwin {
    grid-template-columns: 1fr;
  }

  .appwin-side {
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--aw-rule-soft);
  }

  .appwin-side-top,
  .appwin-side-bot {
    flex-direction: row;
  }

  .appwin-newbtn {
    display: none;
  }

  .appwin-kpi {
    grid-template-columns: 1fr 1fr;
  }

  .appwin-main {
    padding: 16px 16px 0;
  }

  .appwin-statusbar {
    margin: 12px -16px 0;
    padding: 10px 16px;
  }
}
/* ============== live kernel dashboard spillover ==============
   On desktop the appwin extends 16vw past col-5 so it just
   slips past the right edge of the viewport. body{overflow-x:clip}
   hides the bit that falls outside.                              */
@media (min-width: 901px) {
  .grid-12 > .col-5 {
    min-width: 0;
  }
  .col-5 .appwin-wrap {
    width: calc(100% + 16vw);
  }
}

/* ============== platform stack as dashboard (section-wide) ==============
   Reuses the appwin/kernel chrome but with text+chip panels instead of
   live streams. No 3D tilt; spans the section.                             */
.appwin-wrap--stack {
  perspective: none;
  margin: 32px 0 0;
  width: 100%;
}
.appwin-wrap--stack .appwin {
  transform: none;
  min-width: 0;
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .04) inset,
    0 16px 48px -24px rgba(0, 0, 0, .35);
}
.appwin-wrap--stack:hover .appwin {
  transform: none;
}

/* kernel in stack mode: panels with text + chips, auto height */
.kernel--stack .kernel-col {
  height: auto;
  min-height: 0;
  border-bottom: 1px solid var(--aw-rule);
}
.kernel--stack .kernel-col:last-child {
  border-bottom: 0;
}
.kernel--stack .kernel-stream {
  display: none;
}
.kernel--stack .kernel-stack-body {
  padding: 18px 22px 22px;
  display: grid;
  gap: 12px;
  background: transparent;
}
.kernel--stack .kernel-stack-body h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--aw-fg);
}
.kernel--stack .kernel-stack-body p {
  color: var(--aw-fg-2);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 70ch;
}
.kernel--stack .kernel-stack-body .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.kernel--stack .kernel-stack-body .chip {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border: 1px solid var(--aw-rule);
  color: var(--aw-fg-2);
  background: transparent;
  text-transform: none;
}
.kernel--stack .kernel-stack-body .chip.chip--accent {
  border-color: var(--aw-ember);
  color: var(--aw-ember);
}

/* frame-only appwin — no sidebar, no chrome, just the dark window border */
.appwin--frame {
  display: block;
  grid-template-columns: none;
}

/* the frame has no inner padding, so the status bar must not use the
   negative side margins meant for the padded dashboard window */
.appwin--frame > .appwin-statusbar {
  margin-left: 0;
  margin-right: 0;
}

/* tighter stack-body: just chips, no title, no description */
.kernel--stack .kernel-stack-body {
  padding: 10px 18px 14px;
  display: block;
}
.kernel--stack .kernel-stack-body .chips {
  margin-top: 0;
  gap: 6px;
}

/* ============== refined stack frame: editorial strip + accented kernel ============== */

/* top mono editorial strip inside the frame */
.appwin-frame-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--aw-bg-2);
  border-bottom: 1px solid var(--aw-rule);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aw-fg-3);
}
.appwin-frame-strip .left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--aw-fg-2);
}
.appwin-frame-strip .lamp {
  width: 6px;
  height: 6px;
  background: var(--aw-ember);
  display: inline-block;
  animation: pulse 1.4s ease-in-out infinite;
}

/* refined layer header: display font label, hairline number badge */
.kernel--stack .kernel-col-head {
  background: transparent;
  border-bottom: 1px solid var(--aw-rule-soft);
  padding: 16px 22px;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
}
.kernel--stack .kernel-col-head .num {
  background: transparent;
  border: 1px solid var(--aw-rule);
  color: var(--aw-fg);
  width: 32px;
  height: 32px;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  display: grid;
  place-items: center;
}
.kernel--stack .kernel-col-head .label {
  color: var(--aw-fg);
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.005em;
}
.kernel--stack .kernel-col-head .status {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--aw-fg-3);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kernel--stack .kernel-col-head .status .lamp {
  width: 6px;
  height: 6px;
  background: var(--aw-ember);
  display: inline-block;
  animation: pulse 1.4s ease-in-out infinite;
}

/* kernel row focal accent: green left ribbon + filled green number badge */
.kernel--stack .kernel-col--accent {
  position: relative;
  background: linear-gradient(to right, rgba(43, 182, 115, 0.06), transparent 40%);
}
.kernel--stack .kernel-col--accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--aw-ember);
}
.kernel--stack .kernel-col--accent .num {
  background: var(--aw-ember);
  border-color: var(--aw-ember);
  color: #fff;
}

/* chip styling for stack mode */
.kernel--stack .kernel-stack-body {
  padding: 14px 22px 20px;
  display: block;
}
.kernel--stack .kernel-stack-body .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.kernel--stack .kernel-stack-body .chip {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border: 1px solid var(--aw-rule);
  color: var(--aw-fg-2);
  background: transparent;
  text-transform: none;
}
.kernel--stack .kernel-stack-body .chip.chip--accent {
  border-color: var(--aw-ember);
  color: var(--aw-ember);
}


/* ============== blog / notes ============== */

.post-hero {
  padding-bottom: 0;
}

.post-meta {
  margin-top: 32px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.post-meta .sep {
  color: var(--fg-4);
}

.post-tag {
  color: var(--fg-2);
  border-bottom: 1px solid transparent;
}

.post-tag:hover {
  color: var(--fg);
  border-bottom-color: var(--marigold);
}

/* Article prose — narrow column for readability, hairline rules,
   marigold underlines on links. Stays inside the existing typographic system. */
.prose {
  max-width: 68ch;
  margin: 0 auto 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2,
.prose h3 {
  color: var(--fg);
  font-family: var(--f-display);
  letter-spacing: -0.015em;
  font-weight: 600;
}

.prose h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 2em;
  margin-bottom: 0.3em;
  padding-top: 1em;
  border-top: 1px solid var(--rule);
}

.prose h3 {
  font-size: 20px;
  margin-top: 1.8em;
  margin-bottom: 0.2em;
}

.prose h4 {
  color: var(--fg-3);
  text-transform: uppercase;
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
  font-weight: 500;
  font-size: 12px;
  margin-top: 1.6em;
}

.prose a {
  color: var(--fg);
  border-bottom: 2px solid var(--marigold);
  transition: background 0.15s;
}

.prose a:hover {
  background: var(--marigold-soft);
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose blockquote {
  border-left: 2px solid var(--marigold);
  padding: 4px 0 4px 20px;
  font-style: italic;
  color: var(--fg-3);
  margin-block: 1.6em;
}

.prose blockquote p + p {
  margin-top: 0.8em;
}

.prose code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  background: var(--bg-2);
  padding: 2px 6px;
  border: 1px solid var(--rule);
}

.prose pre {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: 20px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
  margin-block: 1.6em;
}

.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
}

.prose ul,
.prose ol {
  padding-left: 24px;
}

.prose ul li {
  list-style: square;
}

.prose ol li {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose img {
  width: 100%;
  margin-block: 1.8em;
  border: 1px solid var(--rule);
  display: block;
}

.prose img.post-shot {
  width: 100%;
  max-width: 100%;
}

.os-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-block: 1.4em 0.6em;
}

.os-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid var(--rule);
  padding: 24px 20px 20px;
}

.os-download .os-mark {
  width: 44px;
  height: 44px;
  display: block;
}

@media (max-width: 560px) {
  .os-downloads {
    grid-template-columns: 1fr;
  }
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-block: 2.4em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.6em;
  font-size: 14px;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}

.prose th {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: 1px solid var(--fg);
}

/* prev/next post cards — bordered like other brutalist cards but tappable */
.post-nav-card {
  display: block;
  border: 1px solid var(--fg);
  padding: 24px;
  height: 100%;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.post-nav-card:hover {
  background: var(--bg-2);
}

.section--bg .post-nav-card {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.section--bg .post-nav-card:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: var(--marigold);
}

.section--bg .post-nav-card .kicker,
.section--bg .post-nav-card .muted {
  color: rgba(255, 255, 255, 0.6);
}

.section--bg .post-nav-card .h3 {
  color: #fff;
}

/* blog index — row of post entries with hairline separators */
.notes-list {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--fg);
}

.notes-row {
  display: grid;
  grid-template-columns: 160px 1fr 200px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  color: inherit;
  transition: background 0.15s;
}

.notes-row:hover {
  background: var(--bg-2);
}

.notes-row .notes-date {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.notes-row .notes-title h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.notes-row .notes-title p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--fg-3);
  max-width: 60ch;
}

.notes-row .notes-tags {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* paginator at the bottom of /blog/ */
.notes-pager {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notes-pager a {
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}

.notes-pager .disabled {
  color: var(--fg-4);
}

@media (max-width: 720px) {
  .prose {
    font-size: 15.5px;
  }

  .prose h2 {
    font-size: 22px;
  }

  .notes-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .notes-row .notes-tags {
    text-align: left;
  }

  .notes-row .notes-title h3 {
    font-size: 19px;
  }

  .post-meta {
    font-size: 11px;
    gap: 8px;
  }
}

/* ============== motion layer ============== */
/* Everything below is gated by html.motion, which assets/site.js sets only when
   the visitor has not asked for reduced motion. Without JS nothing is hidden. */

/* scroll reveal, staggered through --m-d */
html.motion .m-r {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--m-d, 0ms);
}
html.motion .m-r.m-in {
  opacity: 1;
  transform: none;
}

/* headlines rise line by line out of a clipped line box
   (flex column so the lines' negative margins never collapse into extra height) */
html.motion .m-split {
  display: flex;
  flex-direction: column;
}
html.motion .m-split .m-line {
  display: block;
  overflow: hidden;
  padding: 0.08em 0.2em 0.14em;
  margin: -0.08em -0.2em -0.14em;
}
html.motion .m-split .m-li {
  display: block;
  transform: translate3d(0, 112%, 0);
  transition: transform 1s cubic-bezier(0.2, 0.75, 0.15, 1);
  transition-delay: var(--m-d, 0ms);
}
html.motion .m-split.m-in .m-li {
  transform: none;
}

/* section rules: a green signal sweeps along the divider when the section arrives */
html.motion .section-head {
  position: relative;
}
html.motion .section-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0, var(--ember) 50%, transparent 100%) no-repeat;
  background-size: 35% 100%;
  background-position: -60% 0;
  opacity: 0;
  pointer-events: none;
}
html.motion .section-head.m-in::after {
  animation: m-sweep 1.8s 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes m-sweep {
  0% { background-position: -60% 0; opacity: 1; }
  85% { opacity: 1; }
  100% { background-position: 160% 0; opacity: 0; }
}

/* code blocks type themselves out, then leave a blinking caret */
html.motion .m-code {
  opacity: 0;
  transform: translate3d(-6px, 0, 0);
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: var(--m-d, 0ms);
}
html.motion .codeblock.m-in .m-code {
  opacity: 1;
  transform: none;
}
.m-caret {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.2em;
  background: var(--ember);
  opacity: 0;
}
html.motion .codeblock.m-in .m-caret {
  animation: m-blink 1s steps(1) var(--m-d, 0ms) infinite;
}
@keyframes m-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* stack diagrams: a signal travels through every chip, like a ticket moving through the engine */
html.motion .kernel--stack .kernel-stack-body .chip:not(.chip--accent) {
  animation: m-chip var(--m-cycle, 5s) ease-in-out var(--m-i-d, 0ms) infinite;
  animation-play-state: paused;
}
html.motion .kernel--stack.m-live .kernel-stack-body .chip:not(.chip--accent) {
  animation-play-state: running;
}
@keyframes m-chip {
  0%, 16%, 100% { border-color: var(--aw-rule); color: var(--aw-fg-2); background: transparent; }
  4%, 9% { border-color: var(--aw-ember); color: var(--aw-ember); background: rgba(0, 135, 70, 0.16); }
}

/* lifecycle diagram: dashed edges flow in the direction of travel */
html.motion .mermaid svg .flowchart-link {
  stroke-dasharray: 6 5;
  animation: m-dash 1.2s linear infinite;
}
@keyframes m-dash {
  to { stroke-dashoffset: -22; }
}

/* image bands drift slowly (offset set by site.js) */
html.motion .atmos {
  background-position: center calc(50% + var(--m-par, 0px));
}

/* hover: buttons nudge their arrow, cards lift */
html.motion .btn .arrow {
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.motion .btn:hover .arrow {
  transform: translateX(4px);
}
html.motion .card,
html.motion .plane,
html.motion .stage-card {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}
html.motion .card:hover,
html.motion .stage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -20px rgba(10, 10, 10, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  html.motion .m-r,
  html.motion .m-split .m-li,
  html.motion .m-code {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html.motion .section-head::after,
  html.motion .m-caret,
  html.motion .kernel--stack .kernel-stack-body .chip,
  html.motion .mermaid svg .flowchart-link {
    animation: none !important;
  }
}

/* ============== motion elements: illustrative diagrams ============== */
/* Static by default (final state); they animate only under html.motion while on screen (.m-live). */

/* ambient grid behind every page hero */
.page-hero,
section.hero {
  position: relative;
  isolation: isolate;
}
.page-hero::before,
section.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 35%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 85% 35%, #000 0%, transparent 72%);
}
.page-hero::after,
section.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 420px;
  height: 420px;
  right: 6%;
  top: 8%;
  background: radial-gradient(circle, rgba(0, 135, 70, 0.10) 0%, transparent 65%);
}
html.motion .page-hero::before,
html.motion section.hero::before {
  animation: m-grid 26s linear infinite;
}
html.motion .page-hero::after,
html.motion section.hero::after {
  animation: m-glow 14s ease-in-out infinite alternate;
}
@media (max-width: 700px) {
  .page-hero::after,
  section.hero::after {
    width: 240px;
    height: 240px;
    right: 0;
  }
}
@keyframes m-grid {
  to { background-position: 56px 56px, 56px 56px; }
}
@keyframes m-glow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-120px, 60px, 0) scale(1.15); }
}

/* shared frame for the diagrams */
.m-viz {
  --mv-fg: var(--fg);
  --mv-muted: var(--fg-3);
  --mv-rule: var(--rule);
  --mv-bg: var(--bg);
  --mv-accent: var(--ember);
  border: 1px solid var(--mv-fg);
  background: var(--mv-bg);
  color: var(--mv-fg);
  margin-bottom: 48px;
}
.section--bg .m-viz {
  --mv-fg: rgba(255, 255, 255, 0.92);
  --mv-muted: rgba(255, 255, 255, 0.6);
  --mv-rule: rgba(255, 255, 255, 0.22);
  --mv-bg: rgba(10, 10, 10, 0.62);
  --mv-accent: #2fbf71;
  border-color: rgba(255, 255, 255, 0.35);
}
.mv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--mv-rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mv-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mv-title::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--mv-accent);
}
.mv-tag {
  color: var(--mv-muted);
  border: 1px solid var(--mv-rule);
  padding: 2px 8px;
  font-size: 10px;
}
.mv-body {
  padding: 28px 24px 24px;
}

/* ticket journey */
.m-journey {
  --mj-step: 3;
  --mj-p: 1;
}
.mj-track {
  position: relative;
  padding-top: 64px;
}
.mj-rail {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 71px;
  height: 2px;
  background: var(--mv-rule);
}
.mj-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--mj-p) * 100%);
  background: var(--mv-accent);
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mj-stations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mj-st {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 0 8px;
  position: relative;
}
.mj-node {
  width: 16px;
  height: 16px;
  border: 1px solid var(--mv-fg);
  background: var(--mv-bg);
  position: relative;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.mj-n {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mv-muted);
}
.mj-name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 500;
}
.mj-cap {
  font-size: 13px;
  color: var(--mv-muted);
  max-width: 22ch;
}
.mj-st.is-done .mj-node,
.mj-st.is-active .mj-node {
  background: var(--mv-accent);
  border-color: var(--mv-accent);
}
.mj-st.is-active .mj-node {
  box-shadow: 0 0 0 6px rgba(0, 135, 70, 0.22);
}
.mj-ticket {
  position: absolute;
  top: 0;
  left: calc((var(--mj-step) + 0.5) * 25%);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--mv-fg);
  background: var(--mv-bg);
  font-family: var(--f-mono);
  font-size: 11px;
  white-space: nowrap;
  transition: left 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
  z-index: 2;
}
.mj-ticket::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 30px;
  background: var(--mv-fg);
  opacity: 0.35;
}
.mj-id {
  color: var(--mv-accent);
}
.mj-ticket.is-reset {
  transition: none;
  opacity: 0;
}
.mj-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--mv-rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mv-muted);
}
.mj-lamp {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--mv-accent);
}
html.motion .m-journey.m-live .mj-lamp {
  animation: pulse 1.4s ease-in-out infinite;
}
@media (max-width: 700px) {
  .mj-track {
    padding-top: 0;
  }
  .mj-rail {
    display: none;
  }
  .mj-ticket {
    position: relative;
    left: auto;
    transform: none;
    margin-bottom: 22px;
  }
  .mj-ticket::after {
    display: none;
  }
  .mj-stations {
    grid-template-columns: 1fr;
  }
  .mj-st {
    display: grid;
    grid-template-columns: 16px 1fr;
    column-gap: 14px;
    row-gap: 2px;
    align-items: start;
    text-align: left;
    padding: 0 0 18px;
  }
  .mj-st > .mj-node {
    grid-row: 1 / span 3;
  }
  .mj-st > :not(.mj-node) {
    grid-column: 2;
  }
  .mj-n {
    margin-top: 0;
  }
  .mj-st:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 7.5px;
    top: 18px;
    bottom: 0;
    width: 1px;
    background: var(--mv-rule);
  }
  .mj-st.is-done:not(:last-child)::after {
    background: var(--mv-accent);
  }
}

/* manager hub */
.m-hub-wrap {
  margin-top: 64px;
  align-items: center;
}
.m-hub-p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 46ch;
}
.m-hub-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.m-hub-legend .lg {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 0;
}
.lg--in { background: var(--fg); }
.lg--out { background: var(--ember); }
.m-hub {
  width: 100%;
  height: auto;
  display: block;
}
.m-hub text {
  font-family: var(--f-mono);
  text-anchor: middle;
}
.m-hub .hub-tag {
  text-anchor: start;
  font-size: 9px;
  letter-spacing: 0.12em;
  fill: var(--fg-3);
}
.m-hub .hub-line {
  stroke: var(--rule);
  stroke-width: 1;
}
.m-hub .hub-node rect {
  fill: var(--bg);
  stroke: var(--fg);
  stroke-width: 1;
}
.m-hub .hub-node text {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  fill: var(--fg);
}
.m-hub .hub-ring {
  fill: none;
  stroke: var(--ember);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  transform-box: view-box;
  transform-origin: 280px 200px;
}
.m-hub .hub-ring-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  fill: var(--ember);
}
.m-hub .hub-core {
  fill: var(--ink);
}
.m-hub .hub-core-t {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  fill: var(--paper);
}
.m-hub .hub-pulse {
  opacity: 0;
}
.m-hub .hub-pulse--in { fill: var(--fg); }
.m-hub .hub-pulse--out { fill: var(--ember); }
html.motion .m-hub.m-live .hub-ring {
  animation: m-spin 16s linear infinite;
}
html.motion .m-hub.m-live .hub-pulse {
  animation: m-hub-move 3.6s cubic-bezier(0.45, 0, 0.55, 1) var(--d, 0s) infinite;
}
@keyframes m-spin {
  to { transform: rotate(360deg); }
}
@keyframes m-hub-move {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: 1; }
  45% { transform: translate(var(--dx), var(--dy)); opacity: 1; }
  52%, 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

/* build timeline */
.mb-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mb-seg {
  position: relative;
  border: 1px solid var(--mv-rule);
  padding: 14px 14px 42px;
  overflow: hidden;
}
.mb-n {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mv-muted);
}
.mb-name {
  display: block;
  margin-top: 4px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
}
.mb-check {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mv-accent);
}
.mb-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--mv-accent);
  transform-origin: left;
}
.mb-foot {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mv-muted);
}
html.motion .m-build.m-live .mb-seg:nth-child(1) .mb-fill { animation: mb-f1 9s linear infinite; }
html.motion .m-build.m-live .mb-seg:nth-child(2) .mb-fill { animation: mb-f2 9s linear infinite; }
html.motion .m-build.m-live .mb-seg:nth-child(3) .mb-fill { animation: mb-f3 9s linear infinite; }
html.motion .m-build.m-live .mb-seg:nth-child(1) .mb-check { animation: mb-c1 9s linear infinite; }
html.motion .m-build.m-live .mb-seg:nth-child(2) .mb-check { animation: mb-c2 9s linear infinite; }
html.motion .m-build.m-live .mb-seg:nth-child(3) .mb-check { animation: mb-c3 9s linear infinite; }
@keyframes mb-f1 { 0% { transform: scaleX(0); } 24%, 94% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes mb-f2 { 0%, 30% { transform: scaleX(0); } 54%, 94% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes mb-f3 { 0%, 60% { transform: scaleX(0); } 84%, 94% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes mb-c1 { 0%, 24% { opacity: 0; transform: translateY(4px); } 27%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mb-c2 { 0%, 54% { opacity: 0; transform: translateY(4px); } 57%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mb-c3 { 0%, 84% { opacity: 0; transform: translateY(4px); } 87%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (max-width: 700px) {
  .mb-bar { grid-template-columns: 1fr; }
}

/* how-we-work stepper */
.m-steps {
  position: relative;
  margin-bottom: 40px;
}
.ms-rail {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 7px;
  height: 1px;
  background: var(--rule);
}
.ms-dot {
  position: absolute;
  top: -5px;
  left: 0;
  width: 11px;
  height: 11px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0;
}
.ms-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ms-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}
.ms-node {
  width: 15px;
  height: 15px;
  border: 1px solid var(--ember);
  background: var(--ember);
  position: relative;
  z-index: 1;
}
.ms-name {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ms-name em {
  font-style: normal;
  color: var(--fg-3);
}
.ms-last .ms-node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px dashed var(--ember);
  border-radius: 50%;
}
html.motion .m-steps.m-live .ms-dot {
  animation: ms-dot 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
html.motion .m-steps.m-live .ms-list li:nth-child(1) .ms-node { animation: ms-n1 7s linear infinite; }
html.motion .m-steps.m-live .ms-list li:nth-child(2) .ms-node { animation: ms-n2 7s linear infinite; }
html.motion .m-steps.m-live .ms-list li:nth-child(3) .ms-node { animation: ms-n3 7s linear infinite; }
html.motion .m-steps.m-live .ms-list li:nth-child(4) .ms-node { animation: ms-n4 7s linear infinite; }
html.motion .m-steps.m-live .ms-last .ms-node::after { animation: m-spin 6s linear infinite; }
@keyframes ms-dot {
  0% { left: 0; opacity: 0; }
  4% { opacity: 1; }
  70% { left: 100%; opacity: 1; }
  92% { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes ms-n1 { 0%, 2% { background: var(--bg); } 4%, 96% { background: var(--ember); } 100% { background: var(--bg); } }
@keyframes ms-n2 { 0%, 24% { background: var(--bg); } 27%, 96% { background: var(--ember); } 100% { background: var(--bg); } }
@keyframes ms-n3 { 0%, 47% { background: var(--bg); } 50%, 96% { background: var(--ember); } 100% { background: var(--bg); } }
@keyframes ms-n4 { 0%, 69% { background: var(--bg); } 72%, 96% { background: var(--ember); } 100% { background: var(--bg); } }

/* review gate */
.mg-lane {
  position: relative;
  height: 132px;
  margin: 0 18px;
}
.mg-zone {
  position: absolute;
  top: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mv-muted);
}
.mg-zone--in { left: 0; }
.mg-zone--out { right: 0; }
.mg-post {
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 2px;
  margin-left: -1px;
  background: var(--mv-accent);
}
.mg-person {
  position: absolute;
  left: 50%;
  top: -2px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--mv-bg);
  border: 2px solid var(--mv-accent);
}
.mg-who {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mv-accent);
  background: var(--mv-bg);
  padding: 2px 6px;
}
.mg-item {
  position: absolute;
  top: 54px;
  left: var(--x, 0);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--mv-fg);
  background: var(--mv-bg);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
}
.mg-item i {
  font-style: normal;
  opacity: 0;
}
/* static picture: one change shipped, one approved at the gate */
.mg-item--a {
  --x: calc(100% - 96px);
  opacity: 1;
  background: var(--mv-accent);
  border-color: var(--mv-accent);
  color: #fff;
}
.mg-item--b {
  --x: calc(50% - 44px);
  opacity: 1;
  background: var(--mv-accent);
  border-color: var(--mv-accent);
  color: #fff;
}
.mg-item--a i,
.mg-item--b i {
  opacity: 1;
}
.mg-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--mv-rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mv-muted);
}
html.motion .m-gate.m-live .mg-item {
  animation: mg-ok 8s linear var(--d, 0s) infinite both;
}
html.motion .m-gate.m-live .mg-item--back {
  animation-name: mg-back;
}
html.motion .m-gate.m-live .mg-item i {
  animation: mg-icon 8s linear var(--d, 0s) infinite both;
}
@keyframes mg-ok {
  0% { left: 0; opacity: 0; background: var(--mv-bg); border-color: var(--mv-fg); color: var(--mv-fg); }
  5% { opacity: 1; }
  30% { left: calc(50% - 44px); background: var(--mv-bg); border-color: var(--mv-fg); color: var(--mv-fg); }
  33%, 42% { left: calc(50% - 44px); background: var(--mv-accent); border-color: var(--mv-accent); color: #fff; }
  70% { left: calc(100% - 96px); opacity: 1; background: var(--mv-accent); border-color: var(--mv-accent); color: #fff; }
  78%, 100% { left: calc(100% - 96px); opacity: 0; background: var(--mv-accent); border-color: var(--mv-accent); color: #fff; }
}
@keyframes mg-back {
  0% { left: 0; opacity: 0; background: var(--mv-bg); border-color: var(--mv-fg); color: var(--mv-fg); }
  5% { opacity: 1; }
  30% { left: calc(50% - 44px); background: var(--mv-bg); border-color: var(--mv-fg); color: var(--mv-fg); }
  33%, 42% { left: calc(50% - 44px); background: var(--alert); border-color: var(--alert); color: #fff; }
  68% { left: 0; opacity: 1; background: var(--alert); border-color: var(--alert); color: #fff; }
  76%, 100% { left: 0; opacity: 0; background: var(--alert); border-color: var(--alert); color: #fff; }
}
@keyframes mg-icon {
  0%, 31% { opacity: 0; }
  34%, 100% { opacity: 1; }
}

@media (max-width: 700px) {
  .m-hub .hub-node text { font-size: 13px; }
  .m-hub .hub-core-t { font-size: 10.5px; }
  .m-hub .hub-ring-label, .m-hub .hub-tag { font-size: 12px; }
  .mg-item { padding: 0 6px; gap: 4px; font-size: 9px; height: 24px; }
}

/* proof page: a signal moves across the kernel modules */
html.motion .module-grid.m-live > div {
  animation: m-mod var(--m-cycle, 5s) ease-in-out var(--m-i-d, 0ms) infinite;
}
@keyframes m-mod {
  0%, 14%, 100% { box-shadow: inset 0 0 0 0 transparent; background-color: transparent; }
  4%, 8% { box-shadow: inset 3px 0 0 0 var(--ember); background-color: var(--ember-soft); }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero::before, section.hero::before, .page-hero::after, section.hero::after,
  .m-viz *, .m-hub *, .m-steps *, .module-grid > div {
    animation: none !important;
  }
}

/* ============== question-and-answer and step lists: <dl class="qa"> ============== */
.qa { margin: 0; border-top: 2px solid var(--fg); }
.qa-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.qa-row dt { font-weight: 500; }
.qa-row dd { margin: 0; color: var(--fg-2); }
.qa-row a { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.section--bg .qa { border-top-color: rgba(255, 255, 255, .5); }
.section--bg .qa-row { border-bottom-color: rgba(255, 255, 255, .18); }
.section--bg .qa-row dd { color: rgba(255, 255, 255, .72); }
@media (max-width: 700px) {
  .qa-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; }
}

/* ============== cookie consent bar ============== */
.consent-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 20px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--fg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
.consent-text {
  margin: 0;
  flex: 1 1 320px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-2);
}
.consent-text a { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 8px; }
@media (max-width: 700px) {
  /* Compact on phones: text and both buttons share one short block so the
     bar covers as little of the first screen as possible. */
  .consent-bar { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; gap: 8px; flex-wrap: nowrap; }
  .consent-text { flex: 1 1 auto; font-size: 12px; line-height: 1.35; }
  .consent-more { display: none; }
  .consent-actions { flex: 0 0 auto; gap: 6px; }
  .consent-actions .btn { justify-content: center; min-height: 44px; padding: 0 10px; font-size: 13px; }
}

/* Comfortable tap targets on touch screens (44px minimum). */
@media (max-width: 800px) {
  .foot-col a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-col ul { gap: 0; }
  .nav-mobile nav a { display: flex; align-items: center; min-height: 44px; }
  .breadcrumb a, .post-meta a, .post-tag { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ============== homepage hero: logo strip on the first screen ==============
   The hero fits one screen: text and widget above, the logo strip pinned to the
   bottom. The widget is cut off with a soft marigold glow where the strip starts.
   Stacked layouts (900px and below) order the headline block, the strip, then
   the rest instead. section.hero exists only on the homepage.                  */
section.hero {
  --hero-h: clamp(560px, calc(100vh - 56px), 1040px);
  --hero-strip: clamp(170px, 22vh, 220px);
  --hero-overlap: clamp(96px, 14vh, 150px);
  --hero-pad: clamp(24px, 4.2vh, 64px);
}

@supports (height: 100svh) {
  section.hero {
    --hero-h: clamp(560px, calc(100svh - 56px), 1040px);
    --hero-strip: clamp(170px, 22svh, 220px);
    --hero-overlap: clamp(96px, 14svh, 150px);
    --hero-pad: clamp(24px, 4.2svh, 64px);
  }
}

/* the homepage hero has no headline highlight; its accent is a marigold
   glow behind the dashboard, in place of the black drop shadow */
section.hero .appwin {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 0 28px 0 rgba(245, 163, 0, 0.5),
    -24px 32px 110px 12px rgba(245, 163, 0, 0.4),
    0 8px 20px -10px rgba(0, 0, 0, 0.4);
}

@media (min-width: 901px) and (min-height: 600px) {
  section.hero {
    display: flex;
    flex-direction: column;
    min-height: var(--hero-h);
    padding-bottom: 0;
  }

  section.hero > .shell {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
  }

  section.hero > .shell > .grid-12 {
    width: 100%;
  }

  /* tighter rhythm on shorter screens so the text column fits above the strip */
  section.hero .col-7.stack-32 {
    gap: clamp(16px, 2.6vh, 32px);
  }

  .hero .atmos--hero {
    flex: none;
    margin-top: 0;
    height: var(--hero-strip);
  }



  /* the dashboard keeps its full height and runs on behind; the logo strip
     is layered in front of it like a shelf, with a marigold glow rising off
     its top edge. The overlap is what puts the strip on the first screen,
     so no fade or cut */
  section.hero > .shell {
    align-items: start;
    min-height: 0;
  }

  .hero .appwin-wrap {
    max-height: none;
    clip-path: none;
  }

  .hero .col-5 {
    max-height: calc(var(--hero-h) - var(--hero-pad) - var(--hero-strip) + var(--hero-overlap));
  }

  .hero .atmos--hero {
    position: relative;
    z-index: 3;
    margin-top: calc(-1 * var(--hero-overlap));
    border-top: 0;
    box-shadow: 0 -24px 48px -16px rgba(245, 163, 0, 0.55); /* marigold glow */
  }

  /* soft seam in marigold, matching the glow above. .atmos clips its
     overflow, so this layer above the band's top edge does not render today;
     the visible glow is the box-shadow on the strip */
  .hero .atmos--hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -180px;
    height: 180px;
    background: linear-gradient(to bottom, rgba(245, 163, 0, 0), rgba(245, 163, 0, 0.55) 45%, rgba(245, 163, 0, 0.9) 78%, rgba(245, 163, 0, 1));
    pointer-events: none;
    z-index: 2;
  }
}

@media (max-width: 900px) {
  section.hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* the wrappers disappear so the headline block, strip and widget can be ordered */
  section.hero > .shell,
  section.hero > .shell > .grid-12,
  section.hero .col-7 {
    display: contents;
  }

  section.hero .col-7 > * {
    order: 1;
    margin-inline: var(--pad-x);
  }

  .hero .atmos--hero {
    order: 2;
    margin: 4px 0;
    height: 150px;
  }

  /* tablets: logos between the phone and desktop sizes; the phone rule
     below is declared later in the same cascade so it wins on phones */
  .hero .logo-marquee--atmos .logo-marquee-item img {
    --logo-scale: 0.7;
  }

  /* the plain-words definition and press line follow the strip */
  section.hero .col-7 > .stack-16 {
    order: 3;
  }

  section.hero .col-5 {
    order: 4;
    padding-inline: var(--pad-x);
  }
}

@media (max-width: 700px) {
  /* phones: half-size logos, declared last so it beats the tablet rule */
  .hero .logo-marquee--atmos .logo-marquee-item img {
    --logo-scale: 0.5;
  }
}
