/* Kochab Agentics: one stylesheet for every page. Dark is the default theme; light is set by data-theme. System fonts only. */
:root {
  /* light: daytime chart */
  --bg: #F5F7FB;
  --bg-hero: #E6EDF8;
  --surface: #FFFFFF;
  --ink: #0B2150;            /* the logo's navy, now as ink */
  --ink-dim: #3D4C6E;
  --rule: rgba(11, 33, 80, 0.14);
  --rule-strong: rgba(11, 33, 80, 0.32);
  --accent: #C43C02;         /* links and small marks: 4.9:1 on the ground */
  --star: #F25C0D;           /* the logo's orange: Kochab only */
  --sky-dot: #0B2150;        /* the star field, printed */
  --sky-dot-o: 0.55;
  --ph-bg: #FFE3C7;          /* placeholder highlight */
  --ph-ink: #5A2600;
  --ph-rule: #E8A36E;
  --code-bg: #EAEFF7;
  --shadow: 0 1px 2px rgba(11, 33, 80, 0.06), 0 8px 24px rgba(11, 33, 80, 0.07);
  --sun: none;
  --moon: block;
  color-scheme: light;

  --display: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif-condensed, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 72rem;
  --gutter: 16px;
}


@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B2150;
    --bg-hero: #081936;
    --surface: #0E2758;
    --ink: #EEF3FF;
    --ink-dim: #B3BCD2;
    --rule: rgba(238, 243, 255, 0.14);
    --rule-strong: rgba(238, 243, 255, 0.36);
    --accent: #FF8A4C;
    --star: #F25C0D;
    --sky-dot: #EEF3FF;
    --sky-dot-o: 0.8;
    --ph-bg: #4A2A12;
    --ph-ink: #FFE7C2;
    --ph-rule: #B4612A;
    --code-bg: #081936;
    --shadow: none;
    --sun: block;
    --moon: none;
    color-scheme: dark;
  }
}
/* dark: chosen with the toggle */
:root[data-theme="dark"] {
  --bg: #0B2150;
  --bg-hero: #081936;
  --surface: #0E2758;
  --ink: #EEF3FF;
  --ink-dim: #B3BCD2;
  --rule: rgba(238, 243, 255, 0.14);
  --rule-strong: rgba(238, 243, 255, 0.36);
  --accent: #FF8A4C;
  --star: #F25C0D;
  --sky-dot: #EEF3FF;
  --sky-dot-o: 0.8;
  --ph-bg: #4A2A12;
  --ph-ink: #FFE7C2;
  --ph-rule: #B4612A;
  --code-bg: #081936;
  --shadow: none;
  --sun: block;
  --moon: none;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; border-radius: 2px; }
code, pre { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 3px; overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; }

.eyebrow {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 10px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {             /* a small bearing tick */
  content: ""; width: 22px; height: 1px; background: var(--star);
}

.eyebrow-brand::before { content: none; }
.eyebrow .say { text-transform: none; letter-spacing: 0.06em; font-weight: 400; }
.eyebrow-star { width: 22px; height: 22px; display: block; flex: none; }
h1, h2, h3 {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: 22px; letter-spacing: 0.02em; }

/* ---------- header ---------- */
.site-hd {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.hd-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 20px; min-height: 64px; padding-top: 8px; padding-bottom: 8px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; margin-right: auto;
  font-family: var(--display); font-stretch: condensed;
  font-size: 21px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
}
.brand img { height: 48px; width: auto; display: block; }
.brand .logo-light { display: none; }
.hero-logo { display: none; }
:root[data-theme="light"] .brand .logo-dark { display: none; }
:root[data-theme="light"] .brand .logo-light { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav a {
  display: block; padding: 6px 10px; border-radius: 4px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-stretch: condensed;
  font-size: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.site-nav a:hover { background: var(--rule); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule-strong); cursor: pointer; padding: 0;
}
.theme-btn:hover { border-color: var(--star); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: var(--sun); }
.theme-btn .i-moon { display: var(--moon); }
@media (max-width: 560px) {
  .hd-row { gap: 4px 10px; }
  .site-nav { order: 3; width: 100%; margin-left: -10px; }
  .site-nav a { font-size: 15px; padding: 4px 9px; letter-spacing: 0.1em; }
  .brand img { height: 42px; }
}

/* ---------- hero: the sheet ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--bg-hero);
  background: radial-gradient(120% 90% at 78% 30%, color-mix(in srgb, var(--bg-hero) 60%, var(--bg)) 0%, var(--bg-hero) 70%);
  border-bottom: 1px solid var(--rule);
}
.hero::before {
  content: ""; position: absolute; inset: 12px; z-index: 1;
  border: 1px solid var(--rule-strong); pointer-events: none;
}
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.sky circle { fill: var(--sky-dot); }
.sky .tw { animation: tw 5s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .sky .tw { animation: none; } }

.hero-grid {
  display: grid; gap: 8px 40px; align-items: center;
  padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(36px, 7vw, 88px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero h1 {
  font-size: clamp(46px, 9vw, 96px);
  text-transform: uppercase; letter-spacing: 0.03em; line-height: 0.92;
  margin: 0 0 22px;
}
.hero .lede {
  font-size: clamp(18px, 2.2vw, 21px); line-height: 1.45; max-width: 34ch;
  margin: 0 0 26px; padding: 2px 0 2px 16px;
  font-weight: 600; color: var(--ink);
  border-left: 3px solid var(--star);
}
.hero .story { color: var(--ink-dim); max-width: 46ch; margin: 0 0 26px; font-size: 16px; }
.tagline {
  font-family: var(--display); font-weight: 600; font-size: clamp(19px, 2.3vw, 24px);
  letter-spacing: 0.02em; color: var(--ink); margin: 0 0 14px;
}
.tagline span { color: var(--accent); }
.slogan {
  font-family: var(--display); font-stretch: condensed; font-weight: 600;
  font-size: clamp(20px, 2.6vw, 26px); letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 0 0.7em;
}
.slogan span:last-child { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 4px; text-decoration: none;
  font-family: var(--display); font-stretch: condensed; font-weight: 600;
  font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--ink); color: var(--ink);
}
.btn:hover { border-color: var(--star); color: var(--accent); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--star); border-color: var(--star); color: #0B2150; }

/* the polar chart */
.chart { margin: 0; }
.chart svg { display: block; width: 100%; height: auto; max-height: 520px; overflow: visible; }
.chart figcaption { font-size: 14px; color: var(--ink-dim); max-width: 52ch; margin: 6px 0 0 auto; text-align: right; }
.g-grid { fill: none; stroke: var(--rule-strong); stroke-width: 0.8; stroke-dasharray: 2 5; }
.g-hour { stroke: var(--rule); stroke-width: 0.8; }
.g-line { fill: none; stroke: var(--ink-dim); stroke-width: 1.1; opacity: 0.7; }
.g-star { fill: var(--ink); }
.g-path { fill: none; stroke: var(--star); stroke-width: 1.6; stroke-dasharray: 1 6; stroke-linecap: round; }
.g-tick { fill: var(--star); }
.g-label { fill: var(--ink-dim); font-family: var(--display); font-stretch: condensed; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.g-label.k { fill: var(--accent); font-weight: 600; font-size: 15px; }
.g-scale { fill: var(--ink-dim); font-family: var(--mono); font-size: 10px; opacity: 0.8; }
.kochab-glow { animation: glow 6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.95; } }
@media (prefers-reduced-motion: reduce) { .kochab-glow { animation: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; border-bottom: 1px solid var(--rule); }
.section-intro { max-width: 44rem; margin-bottom: 36px; }
.section-intro p { font-size: 18px; margin: 0; }
.cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (min-width: 600px) { .cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } .cols-5 .card { padding: 18px 16px 20px; } .cols-5 .card h3 { font-size: 22px; } .cols-5 .card p { font-size: 15px; } }
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  padding: 22px 22px 24px; box-shadow: var(--shadow); position: relative;
}
.card p { margin: 0; color: var(--ink-dim); font-size: 16px; }
.card h3 { margin-bottom: 8px; }
.card .num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent);
  display: block; margin-bottom: 14px;
}

/* OpenALR */
.alr { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .alr { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; } }
.alr p { margin: 0 0 16px; }
.install {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 15px;
  background: var(--code-bg); border: 1px solid var(--rule); border-radius: 4px;
  padding: 12px 14px; margin: 6px 0 22px;
}
.install .prompt { color: var(--accent); user-select: none; }
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.linklist a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 4px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px;
}
.linklist a::after { content: "\2197"; color: var(--accent); }
.linklist a:hover { border-color: var(--star); }
.licence { font-size: 15px; color: var(--ink-dim); }

.record {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; box-shadow: var(--shadow);
  overflow: hidden;
}
.record-hd {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px;
  border-bottom: 1px dashed var(--rule-strong);
  font-family: var(--display); font-stretch: condensed; font-weight: 600;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim);
}
.record dl { margin: 0; padding: 6px 16px 12px; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 0 16px; }
.record dt, .record dd { padding: 9px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.record dl > :nth-last-child(-n+2) { border-bottom: 0; }
.record dt { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.record dd { font-size: 15px; color: var(--ink-dim); }
.record-ft { padding: 10px 16px 14px; font-size: 14px; color: var(--ink-dim); border-top: 1px dashed var(--rule-strong); }

/* article cards */
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 0; overflow: hidden; }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .band { height: 6px; background: linear-gradient(90deg, var(--ink) 0 70%, var(--star) 70% 100%); }
.post-card h3 { font-size: 24px; margin: 0; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card clicks */
.post-card .more { margin-top: auto; font-family: var(--display); font-stretch: condensed; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; color: var(--accent); }
.meta { font-family: var(--mono); font-size: 13px; color: var(--ink-dim); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.badge {
  font-family: var(--display); font-stretch: condensed; font-weight: 600; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--ph-rule); background: var(--ph-bg); color: var(--ph-ink);
  padding: 1px 7px; border-radius: 3px;
}
.badge.ext { background: transparent; border-color: var(--rule-strong); color: var(--ink-dim); }

.badge.soon { background: transparent; border: 1px dashed var(--accent); color: var(--accent); }
.post-card.upcoming { background: transparent; border-style: dashed; box-shadow: none; }
.post-card.upcoming .band { opacity: 0.35; }
.post-card.upcoming h3, .post-list .upcoming h2 { color: var(--ink-dim); }
.post-list .upcoming { opacity: 0.85; }
.all-link { margin-top: 28px; }

/* contact */
.contact { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 820px) { .contact { grid-template-columns: minmax(0, 1fr) auto; } }
.email {
  font-family: var(--mono); font-size: clamp(18px, 3.4vw, 30px); overflow-wrap: anywhere;
  margin: 10px 0 0; color: var(--ink);
}

/* ---------- footer: the drawing's title block ---------- */
.site-ft { padding: 36px 0 44px; }
.tb {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule-strong);
}
.tb div { padding: 10px 14px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb div:last-child { border-right: 0; }
.tb .label { font-family: var(--display); font-stretch: condensed; font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.tb b, .tb a { font-family: var(--display); font-stretch: condensed; font-weight: 600; font-size: 18px; letter-spacing: 0.06em; }
.tb b { color: var(--ink); }
@media (max-width: 640px) {
  .tb { grid-template-columns: minmax(0, 1fr); }
  .tb div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .tb div:last-child { border-bottom: 0; }
}

/* ---------- page banner (article list, article pages) ---------- */
.banner { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-hero); border-bottom: 1px solid var(--rule); }
.banner::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--rule-strong); pointer-events: none; }
.banner .wrap { padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(32px, 6vw, 56px); }
.banner h1 { font-size: clamp(38px, 7vw, 68px); text-transform: uppercase; letter-spacing: 0.03em; line-height: 0.95; }
.banner p { max-width: 44rem; margin: 0; color: var(--ink-dim); font-size: 18px; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.post-list li { border-top: 1px solid var(--rule); padding: 28px 0; display: grid; gap: 8px 32px; grid-template-columns: minmax(0, 1fr); position: relative; }
.post-list li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .post-list li { grid-template-columns: 11rem minmax(0, 1fr); } }
.post-list h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 6px; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent); }
.post-list p { margin: 0; color: var(--ink-dim); max-width: 60ch; }

/* ---------- long-form article ---------- */
.article-hd { max-width: 68ch; }
.article-hd h1 { text-transform: none; letter-spacing: 0.005em; font-size: clamp(36px, 6vw, 58px); line-height: 1.02; }
.dek { font-size: 20px !important; color: var(--ink) !important; margin: 0 0 18px !important; }
.draft {
  border: 1px solid var(--ph-rule); background: var(--ph-bg); color: var(--ph-ink);
  border-radius: 4px; padding: 12px 16px; margin: 0 0 8px; font-size: 15px; line-height: 1.5;
}
.draft strong { font-family: var(--display); font-stretch: condensed; letter-spacing: 0.16em; text-transform: uppercase; margin-right: 6px; }
.prose {
  max-width: 68ch; margin: 0 auto; padding: 44px 0 72px;
  font-family: var(--serif); font-size: 18px; line-height: 1.68;
}
@media (max-width: 480px) { .prose { font-size: 17px; } }
.prose > * + * { margin-top: 1.05em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose .table-wrap { margin-bottom: 0; }
.prose h2 { font-size: clamp(26px, 3.6vw, 32px); margin: 2em 0 0.4em; }
.prose h2::before { content: ""; display: block; width: 28px; height: 2px; background: var(--star); margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; }
.prose code { font-size: 0.82em; }
.prose pre {
  background: var(--code-bg); border: 1px solid var(--rule); border-radius: 4px;
  padding: 14px 16px; overflow-x: auto; line-height: 1.5; font-size: 14px;
}
.prose pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--ph-rule); }
.prose hr { border: 0; border-top: 1px solid var(--rule-strong); margin: 2.4em 0; }
.prose .footnotes, .prose .sig { font-size: 16px; color: var(--ink-dim); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--text); font-size: 15px; line-height: 1.4; }
.prose th, .prose td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose thead th { background: var(--code-bg); font-weight: 600; }
.prose tbody tr:last-child td { border-bottom: 0; }
.back { font-family: var(--display); font-stretch: condensed; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 15px; }

/* placeholders: never mistaken for figures */
mark.ph {
  background: var(--ph-bg); color: var(--ph-ink);
  border-bottom: 1px dashed var(--ph-rule);
  padding: 0 0.2em; border-radius: 2px;
  font-family: var(--mono); font-size: 0.8em; font-weight: 500;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
mark.ph mark.ph { padding: 0; border: 0; font-size: 1em; text-decoration: underline dotted; }
.withheld {
  font-family: var(--text) !important; font-size: 15px; color: var(--ph-ink);
  background: var(--ph-bg); border: 1px dashed var(--ph-rule); border-radius: 4px; padding: 10px 14px;
}


@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

  .hero-text { grid-column: 1; grid-row: 1; align-self: end; display: flex; flex-direction: column; }

  .hero .slogan { flex-wrap: nowrap; white-space: nowrap; }

  .hero h1 { margin-bottom: 10px; }
  .hero h1 { margin-bottom: 12px; }
  .hero .slogan { width: fit-content; }
  .hero .lede { border-left: 0; padding-left: 0; }
  .hero-text .lede { order: 1; }
  .hero-text .eyebrow-brand { order: 2; margin-top: 36px; font-size: 20px; gap: 12px; }
  .hero-text .eyebrow-star { width: 32px; height: 32px; }
  .hero-text .story { order: 3; }
  .hero-actions { grid-column: 1; grid-row: 2; align-self: start; }

  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: none; grid-column: 1 / -1; grid-row: 3; margin-top: 18px; }
  .hero-actions .btn { justify-content: center; }
  .hero-grid .chart { display: contents; }
  .hero-grid .chart svg { grid-column: 2; grid-row: 1; align-self: end; }

  .hero-grid .chart figcaption { grid-column: 2; grid-row: 2; align-self: start; margin-top: 0; max-width: none; line-height: 21.5px; text-wrap: balance; }

  .hero h1 .h1-text { display: none; }
  .hero h1 .hero-logo.logo-dark { display: block; width: 100%; max-width: 620px; height: auto; }
  .hero h1 .hero-logo { margin-left: -3px; }
  :root[data-theme="light"] .hero h1 .hero-logo.logo-dark { display: none; }
  :root[data-theme="light"] .hero h1 .hero-logo.logo-light { display: block; width: 100%; max-width: 620px; height: auto; }
  .site-hd .brand { visibility: hidden; }
  .hero-text .eyebrow-star, .hero-text .eyebrow-brand .eb-name { display: none; }
  .hero-text .eyebrow-brand .say { font-weight: 700; color: #FFFFFF; }
  :root[data-theme="light"] .hero-text .eyebrow-brand .say { color: var(--ink); }   /* light mode: navy, so it stays visible */
}


@media (max-width: 899.98px) {
  /* the Kochab Agentics logo (orange star, white letters, transparent) replaces "Navigate the unknown."; the header logo goes */
  .hero h1 .h1-text { display: none; }
  .hero h1 .hero-logo.logo-dark { display: block; width: 100%; max-width: 440px; height: auto; margin-left: -2px; }
  :root[data-theme="light"] .hero h1 .hero-logo.logo-dark { display: none; }
  :root[data-theme="light"] .hero h1 .hero-logo.logo-light { display: block; width: 100%; max-width: 440px; height: auto; margin-left: -2px; }
  .site-hd .brand { visibility: hidden; }
  /* the pronunciation alone, moved to sit right above "Before Polaris…" */
  .hero-text { display: flex; flex-direction: column; }
  .hero-text .lede { order: 1; }
  .hero .lede { border-left: 0; padding-left: 0; }
  .hero-text .eyebrow-brand { order: 2; margin: 4px 0 8px; }
  .hero-text .story { order: 3; }
  .hero-text .eyebrow-star, .hero-text .eyebrow-brand .eb-name { display: none; }
  .hero-text .eyebrow-brand { font-size: 19px; }
  .hero-text .eyebrow-brand .say { font-weight: 700; color: #FFFFFF; }
  :root[data-theme="light"] .hero-text .eyebrow-brand .say { color: var(--ink); }   /* light mode: navy, so it stays visible */

  .hero-actions { display: grid; grid-template-columns: 1fr; max-width: 440px; }
  .hero-actions .btn { justify-content: center; }
}
