/* BizMagic Ops · playful SA SME toolkit · Epilogue + Neuton · dual-band header · Astros royal blue, navy and gold */
:root {
  --ink: #0B1530;
  --accent: #0A3CB0;
  --accent-ink: #002070;
  --navy: #001040;
  --gold: #F0A000;
  --gold-hi: #F0B010;
  --gold-ink: #B36B00;
  --surface: #F6F8FC;
  --soft: #E6ECF6;
  --mute: #5B6475;
  --bg: #F6F8FC;
  --deep: #001040;
  --mid: #5B6475;
  --mist: #DCE3EF;
  --line: color-mix(in srgb, var(--ink) 10%, transparent);
  --font-display: "Epilogue", system-ui, sans-serif;
  --font-body: "Neuton", Georgia, "Times New Roman", serif;
  --nav-h: 5.75rem;
  --util-h: 1.85rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 0.75rem;
  --shadow: 0 20px 50px rgba(0, 16, 64, 0.10);
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal.reveal-side.reveal-alt { opacity: 1 !important; transform: none !important; }
  .bg-video { display: none !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 1.08rem;
  padding-top: calc(var(--util-h) + var(--nav-h));
  padding-bottom: 6.5rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: min(1100px, 92vw); margin-inline: auto; }
.container-wide { width: min(1280px, 94vw); margin-inline: auto; }
.narrow { width: min(720px, 92vw); margin-inline: auto; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
h1, h2, h3.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 4.2vw, 3.05rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.05rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 48ch;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
  text-wrap: pretty;
}
.muted { color: var(--mute); font-size: 0.95rem; }

.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 200;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

/* Dual-band header: thin util strip + fat brand band */
.util-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  height: var(--util-h);
  background: var(--ink);
  color: color-mix(in srgb, #F6F8FC 78%, transparent);
  font-family: var(--font-body);
  font-size: 0.82rem;
  display: flex; align-items: center;
}
.util-inner {
  width: min(1200px, 94vw); margin-inline: auto;
  display: flex; align-items: center; gap: 0.55rem;
}
.util-strip a { color: inherit; text-decoration: none; }
.util-strip a:hover { color: #F6F8FC; }
.util-dot { opacity: 0.45; }
.util-spacer { flex: 1; }

.site-header.brand-band,
.site-header {
  position: fixed; top: var(--util-h); left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.header-inner, .nav-inner {
  width: min(1200px, 94vw); margin-inline: auto;
  display: flex; align-items: center; gap: 1.25rem;
  width: 100%;
  padding-inline: max(3vw, calc((100vw - 1200px) / 2));
}
.logo-link {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
  flex-shrink: 0;
}
.logo-link .word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo-link .word span { color: var(--accent); }
.nav-links {
  margin-left: auto;
  display: flex; align-items: center; gap: 1.15rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
}
.nav-links a {
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  text-decoration: none;
  font-weight: 400;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.1rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.nav-toggle {
  display: none; margin-left: auto;
  width: 2.4rem; height: 2.4rem;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.5rem; gap: 0.75rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-bottom: none; padding: 0.4rem 0; }
}



/* Compact top bar, solid from first paint; wordmark left; underlined text links right */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--mist);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 16, 64, 0.08); }
.header-inner {
  width: min(1180px, 94vw);
  margin-inline: auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem;
}
.logo-link {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-link img,
.logo-link img.logo-primary {
  height: 3.5rem;
  width: auto;
  max-width: min(280px, 58vw);
  border-radius: 0;
}
@media (max-width: 640px) {
  .logo-link img,
  .logo-link img.logo-primary {
    height: 2.75rem;
    max-width: min(280px, 70vw);
  }
}
.site-footer .logo-link img,
.site-footer .logo-link img.logo-primary {
  height: 2.75rem;
  max-width: min(280px, 70vw);
}
.logo-link .word span { color: var(--accent-ink); font-weight: 500; margin-left: 0.15em; }

.nav-links {
  display: flex; align-items: center; gap: 0.15rem 1.15rem;
  font-size: 0.88rem; font-weight: 550;
}
.nav-links a:not(.btn) {
  padding: 0.2rem 0;
  border-bottom: 1.5px solid transparent;
  opacity: 0.78;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active {
  opacity: 1;
  color: var(--deep);
  border-bottom-color: var(--accent);
}
.nav-links .btn-outline-nav {
  margin-left: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid var(--mid);
  color: var(--deep);
  opacity: 1;
  border-bottom: 1.5px solid var(--mid);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-links .btn-outline-nav:hover {
  background: var(--ink);
  color: #F6F8FC;
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.4rem; height: 2.4rem;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border: 1px solid var(--mist); border-radius: var(--radius); background: var(--surface);
}
.nav-toggle span { display: block; width: 1.05rem; height: 1.5px; background: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto;
    flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--mist);
    transform: translateY(-110%);
    opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
    gap: 0; z-index: 99;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--mist); opacity: 1; }
  .nav-links .btn-outline-nav { margin: 1rem 0 0; justify-content: center; text-align: center; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem; font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-primary { background: var(--ink); color: #F6F8FC; }
.btn-primary:hover { background: var(--deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--ink) 18%, transparent);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, white); }
.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: var(--bg); }

.hero.page-hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
}
.hero { min-height: 82vh; display: grid; align-items: end; padding: 0; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-video-wrap .bg-video, .hero-video-wrap .bg-video-poster {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-video-wrap { position: absolute; inset: 0; }
.bg-video { position: absolute; inset: 0; object-fit: cover; }
.bg-video-poster { position: absolute; inset: 0; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,16,64,0.35) 0%, rgba(0,16,64,0.58) 48%, rgba(0,16,64,0.88) 100%),
    radial-gradient(ellipse at 75% 12%, rgba(240,160,0,0.18), transparent 55%);
}
.hero-content { position: relative; z-index: 1; color: #F6F8FC; padding: 4rem 0 3.25rem; }
.hero-content .eyebrow { color: var(--gold-hi); }
.hero-content h1 { color: #FFFFFF; }
.hero-content .lede { color: color-mix(in srgb, #F6F8FC 84%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.section { padding: 4.25rem 0; }
.section-surface { background: var(--surface); }
.section--contrast {
  background: var(--ink); color: #F6F8FC;
}
.section--contrast .eyebrow { color: var(--gold-hi); }
.section--contrast .lede, .section--contrast a { color: color-mix(in srgb, #F6F8FC 88%, transparent); }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card-grid--journal { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-grid .card img, .card > img, .card img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  height: auto;
  min-height: 0;
  max-height: none;
  flex: 0 0 auto;
  display: block;
  /* Defeat HTML height attr reserving ~400px on narrow viewports (~130px gap) */
  block-size: auto;
}
.card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-height: 0;
}
.card-link { margin-top: auto; font-size: 0.88rem; font-weight: 650; color: var(--accent-ink); }
.card--journal .card-body h3 { font-size: 1.15rem; }

.range-atlas,
.machine-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.atlas-tile {
  grid-column: span 4;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.atlas-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.atlas-tile--wide { grid-column: span 6; }
.atlas-tile img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.af-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
@media (max-width: 900px) {
  .atlas-tile.atlas-tile--wide { grid-column: span 12; }
}

.split-editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.split-editorial img { border-radius: var(--radius); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.asymmetric {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.media-frame img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 800px) {
  .split-editorial,
  .asymmetric { grid-template-columns: 1fr; gap: 1.5rem; }
}

.product-hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
}
.product-hero-visual img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 800px) { .product-hero-grid { grid-template-columns: 1fr; } }

.spec-rail {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.spec-item {
  background: var(--surface); border: 1px solid var(--mist); border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.spec-item strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.spec-item span { font-size: 0.8rem; color: var(--mute); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 700px) { .spec-rail { grid-template-columns: 1fr 1fr; } }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--mist); }
.spec-table th { color: var(--mute); font-weight: 550; width: 38%; }

.check-list { margin-top: 1rem; }
.check-list li {
  position: relative; padding: 0.4rem 0 0.4rem 1.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--mist) 70%, transparent);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.75rem;
  width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--accent);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.chip {
  display: inline-flex; padding: 0.4rem 0.8rem;
  border: 1px solid var(--mist); border-radius: 999px;
  font-size: 0.85rem; background: var(--surface);
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }

.play-matrix {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}
.play-matrix a {
  padding: 0.55rem 0.95rem;
  background: var(--deep); color: #F6F8FC;
  border-radius: 999px; font-size: 0.85rem; font-weight: 550;
  transition: background 0.2s;
}
.play-matrix a:hover { background: var(--accent-ink); }

.matrix-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.matrix-table th, .matrix-table td { text-align: left; padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--mist); }
.matrix-table thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); }

.proof-rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.proof-rail article {
  background: var(--surface); border: 1px solid var(--mist);
  border-radius: var(--radius); padding: 1.35rem 1.4rem;
}
@media (max-width: 700px) { .proof-rail { grid-template-columns: 1fr; } }

.breadcrumbs { font-size: 0.85rem; color: var(--mute); margin-bottom: 0.85rem; }
.breadcrumbs span { opacity: 0.5; margin: 0 0.25rem; }
.byline { margin-top: 1rem; font-size: 0.95rem; color: var(--mute); }
.journal-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.journal-section { margin-bottom: 1.75rem; }
.journal-section h2 { margin-bottom: 0.5rem; }
.soft-cta {
  margin-top: 2.5rem; padding: 1.5rem;
  background: color-mix(in srgb, var(--accent) 10%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--mist));
  border-radius: var(--radius);
}

.cta-band {
  position: relative; overflow: hidden;
  padding: 4.5rem 0; text-align: center; color: #F6F8FC;
  background: var(--deep);
}
.cta-band h2 { color: #fff; }
.cta-video-wrap { position: absolute; inset: 0; }
.cta-video-wrap .bg-video, .cta-video-wrap .bg-video-poster { opacity: 0.35; }
.cta-band .container { position: relative; z-index: 1; }

.site-footer {
  padding-bottom: 6.5rem;
  background: var(--ink); color: color-mix(in srgb, #F6F8FC 88%, transparent);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.footer-brand p { margin-top: 0.85rem; font-size: 0.92rem; max-width: 36ch; }
.footer-company { margin-top: 1rem !important; opacity: 0.75; font-size: 0.85rem !important; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.95rem; color: #fff;
  margin-bottom: 0.75rem;
}
.footer-col a {
  display: block; padding: 0.25rem 0; font-size: 0.9rem; opacity: 0.78;
}
.footer-col a:hover { opacity: 1; color: var(--gold-hi); }
.footer-bottom {
  border-top: 1px solid color-mix(in srgb, #F6F8FC 12%, transparent);
  padding-top: 1.25rem; font-size: 0.85rem; opacity: 0.7;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Scroll entry/exit (modern-web-guidance) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes bn-in {
    from { opacity: 0.15; transform: translateY(18px); }
  }
  @keyframes bn-side {
    from { opacity: 0.15; transform: translateX(-22px); }
  }
  @keyframes bn-alt {
    from { opacity: 0.15; transform: translateY(10px) scale(0.985); }
  }
  .reveal {
    animation: bn-in 0.7s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
  .reveal-side {
    animation: bn-side 0.75s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }
  .reveal-alt {
    animation: bn-alt 0.8s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 5% entry 55%;
  }
}

.page-hero {
  padding: 2.5rem 0 3rem;
}
.page-hero--bleed { padding-bottom: 1.5rem; }
.page-hero--split { padding-bottom: 2rem; }


/* 3.js widget clearance (Eric): WhatsApp bottom-right + Ask AI bottom-left.
   Never position fixed page CTAs in bottom corners; never restyle/hide 3.js widgets.
   In-flow mailto buttons in content/CTA bands are fine. */
body {
  padding-bottom: 6.5rem;
}
.site-footer {
  padding-bottom: calc(1.5rem + 6.5rem);
}
.site-footer .footer-bottom {
  margin-bottom: 0;
}

.text-gradient {
  background: linear-gradient(120deg, #F0B010, #F09000);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section-surface { background: var(--soft); }
.section--contrast { background: var(--ink); color: var(--surface); }
.section--contrast a { color: var(--soft); }
.chip {
  display: inline-flex; padding: 0.4rem 0.85rem; border-radius: 999px;
  background: var(--soft); color: var(--ink); font-size: 0.92rem; margin: 0.2rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.play-matrix {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.play-matrix a {
  padding: 0.55rem 0.95rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-size: 0.95rem; font-weight: 550;
}
.play-matrix a:hover { border-color: var(--accent); color: var(--accent-ink); }
.check-list { list-style: none; margin: 1rem 0; }
.check-list li { padding: 0.35rem 0 0.35rem 1.4rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-ink); font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--mute); font-weight: 500; width: 40%; }
.soft-cta { margin-top: 2rem; padding: 1.25rem; background: var(--soft); border-radius: var(--radius); }
.journal-section { margin: 1.75rem 0; }
.journal-section h2 { margin-bottom: 0.5rem; }
.journal-hero-img { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; aspect-ratio: 3/2; object-fit: cover; }
.byline { color: var(--mute); margin-top: 0.75rem; }
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--surface); padding: 4rem 0; text-align: center; }
.cta-band .bg-video, .cta-band .bg-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.cta-band .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce), (max-width: 640px) {
  .bg-video { display: none !important; }
  .bg-video-poster { display: block !important; opacity: 1 !important; }
}

/* ── Parker craft 2026-10-05 ───────────────────────────────────────────── */
/* Scroll progress: compositor-driven scroll timeline animating transform only
   (no per-scroll width/layout writes). main.js keeps an rAF scaleX fallback. */
.scroll-progress { width: 100%; transform: scaleX(0); transform-origin: 0 50%; }
@supports (animation-timeline: scroll()) {
  @keyframes parker-scroll-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .scroll-progress { animation: parker-scroll-progress linear both; animation-timeline: scroll(root block); }
}
/* Header state: CSS scroll-state query (Chrome/Edge 133+) mirrors the scrolled class.
   The JS toggle in main.js stays as the fallback for other browsers. */
@supports (container-type: scroll-state) {
  html { container-type: scroll-state; }
  /* A scroll-state root stops body overflow propagating to the viewport, so clip on html
     (viewport) and body instead; clip, unlike hidden, never turns body into a scroller. */
  html { overflow-x: clip; }
  body { overflow-x: clip; }
  @container scroll-state(scrollable: top) {
    .site-header:not(.is-static) { box-shadow: 0 6px 24px rgba(0, 16, 64, 0.08); }
  }
}


/* Celestial line sits in footer-bottom after Astros mention */
.footer-bottom .celestial-inline,
.footer-bottom .celestial-note {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  opacity: inherit;
  color: inherit;
  max-width: none;
}
.site-footer > .celestial-note { display: none; } /* stray outside-bottom placement */

/* BizMagic logo size lock 20261005e: cropped lockup ink fills height, kill any cached 30px chip */
.site-header .logo-link img,
.site-header .logo-link img.logo-primary,
.logo-link img.logo-primary {
  width: auto !important;
  height: 3.5rem !important;
  max-width: min(280px, 58vw) !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}
@media (max-width: 640px) {
  .site-header .logo-link img,
  .site-header .logo-link img.logo-primary,
  .logo-link img.logo-primary {
    height: 2.75rem !important;
    max-width: min(280px, 70vw) !important;
  }
}
.site-footer .logo-link img,
.site-footer .logo-link img.logo-primary {
  height: 2.75rem !important;
  width: auto !important;
  max-width: min(280px, 70vw) !important;
  border-radius: 0 !important;
}

/* Proof fix 2026-10-05: 3.js safe area on mobile hero, step lists, related links */
@media (max-width: 760px) {
  .hero { min-height: auto; align-items: start; }
  .hero-content { padding: 2.25rem 0 calc(8.5rem + env(safe-area-inset-bottom, 0px)); }
  .hero-content h1 { font-size: clamp(2.1rem, 9.5vw, 2.9rem); line-height: 1.08; }
  .hero-content .lede { font-size: 1.02rem; }
  .hero-actions { margin-top: 1.25rem; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .hero-content { padding-top: 1.5rem; }
  .hero-content .lede { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
.step-list { counter-reset: step; list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; gap: 0.6rem; }
.step-list li { counter-increment: step; position: relative; padding: 0.7rem 0.9rem 0.7rem 3.1rem; background: var(--soft, #E6ECF6); border-radius: 12px; text-wrap: pretty; }
.step-list li::before { content: counter(step); position: absolute; left: 0.8rem; top: 0.68rem; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--accent-ink, #002070); color: var(--gold-hi, #F0B010); font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.article-prose p { text-wrap: pretty; }
.related-band { padding-bottom: 2.5rem; }
.related-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.related-links a { display: inline-block; padding: 0.5rem 0.95rem; border: 1px solid color-mix(in srgb, var(--accent, #0A3CB0) 40%, transparent); border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
.related-links a:hover { background: var(--accent, #0A3CB0); color: #fff; }
.hero-video-wrap .bg-video, .hero-video-wrap .bg-video-poster { width: 100%; height: 100% !important; object-fit: cover; }
.hero { position: relative; overflow: hidden; isolation: isolate; }
.article-prose a, .journal-section a, .soft-cta p a { color: var(--accent, #0A3CB0); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-prose p + p, .journal-section p + p { margin-top: 0.9rem; }
.article-prose h2 { margin-bottom: 0.6rem; text-wrap: balance; }

/* Proof fix 2026-10-05b: mobile CTA / two-col sweep */
@media (max-width: 760px) {
  /* Fancy §3: page-hero CTAs clear Ask AI / WhatsApp, only when CTAs exist.
     Pages like /supplier-hubs have page-hero with no actions; oversized padding
     left ~130px blank above the first hub card on mobile. */
  .page-hero {
    padding-bottom: 2rem;
  }
  .page-hero:has(.hero-actions),
  .page-hero.product-hero {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  }
  .page-hero .hero-actions {
    margin-top: 1.25rem;
    padding-bottom: 0.25rem;
  }
  /* Hub / journal cards: keep image→body stack tight on narrow screens */
  .card-grid .card > img,
  .card-grid .card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto;
  }
  .card-grid .card > .card-body {
    margin-top: 0;
    padding-top: 1.1rem;
  }

  /* Homepage packs row + other section-head CTAs: keep above WhatsApp safe area,
     and off the bottom-right corner on narrow screens */
  .hero + .section {
    padding-top: 2.25rem;
    /* keep first CTA row (All kits etc.) above WhatsApp bottom-right safe area */
    scroll-margin-top: 1rem;
  }
  .hero {
    padding-bottom: 0.5rem;
  }
  .hero + .section > .container > .section-head:first-child,
  .hero + .section .section-head {
    margin-bottom: 1.5rem;
    padding-bottom: 0.35rem;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Soft CTA bands / in-flow mailto rows near fold */
  .soft-cta {
    padding-bottom: calc(1.25rem + 0.5rem);
  }
  .cta-band {
    padding-bottom: calc(4rem + 1rem);
  }

  /* Atlas / machine grids: one column when squeezed (~400px) */
  .range-atlas,
  .machine-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .range-atlas .atlas-tile,
  .range-atlas .atlas-tile--wide,
  .machine-grid .atlas-tile {
    grid-column: span 12;
  }
  /* Hub/notes index pages: page-hero without CTAs already pads 2rem; trim the
     following section so the first card is not floating ~100px below the lede */
  .page-hero + .section { padding-top: 1.25rem; }
  /* Product heroes stack CTAs above the visual on mobile, so the CTA row is
     already high in the viewport; no floating-widget clearance needed below the image */
  .page-hero.product-hero,
  .page-hero.product-hero:has(.hero-actions) { padding-bottom: 1.5rem; }

  /* Card grids: avoid 260px min forcing awkward wrap in tight containers */
  .card-grid,
  .card-grid--journal {
    grid-template-columns: 1fr;
  }
}

/* Slightly wider breakpoint for two-col editorial already handled at 800px above.
   Ensure product heroes also get Fancy clearance on small screens. */
@media (max-width: 760px) {
  .product-hero.page-hero .hero-actions,
  .page-hero.product-hero .hero-actions {
    margin-bottom: 0.5rem;
  }
}

/* Astros brand retheme 2026-10-06: royal blue, navy and gold with the frozen Astros lockup */
.btn-primary:hover { box-shadow: 0 0 0 2px var(--gold) inset; }
.section--contrast { background: var(--navy); }
.site-header .logo-link img,
.site-header .logo-link img.logo-primary,
.logo-link img.logo-primary { height: 5rem !important; max-width: min(220px, 48vw) !important; }
@media (max-width: 640px) {
  .site-header .logo-link img,
  .site-header .logo-link img.logo-primary,
  .logo-link img.logo-primary { height: 4.25rem !important; max-width: min(180px, 50vw) !important; }
}
.site-footer .logo-link img,
.site-footer .logo-link img.logo-primary { height: 4.25rem !important; max-width: min(200px, 60vw) !important; }
.hero .btn-primary, .section--contrast .btn-primary, .cta-band .btn-primary { background: var(--gold-hi); color: var(--navy); }
.hero .btn-primary:hover, .section--contrast .btn-primary:hover, .cta-band .btn-primary:hover { background: var(--gold); box-shadow: none; }

/* Nav no-wrap lock 2026-10-06: header labels never wrap; menu always one row */
.header-inner, .nav-inner { padding-inline: 0; flex-wrap: nowrap; }
.nav-links { flex-wrap: nowrap; flex-shrink: 0; }
.nav-links a, .nav-links a:not(.btn) { white-space: nowrap; }

/* parker-am-reviews-20261006 */
.am-reviews {
  padding: 3.5rem 0 2.5rem;
  background: transparent;
}
.am-reviews .container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.am-reviews h2 {
  font-family: var(--font-display, Epilogue, system-ui, sans-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
  color: inherit;
}
.am-reviews .amr-root {
  --amr-bg: #F6F8FC;
  --amr-card-border: #DCE3EF;
  --amr-text: #0B1530;
  --amr-muted: #5B6475;
  --amr-star: #F0A000;
  --amr-link: #0A3CB0;
  --amr-radius: 0.75rem;
  --amr-font: inherit;
}
@media (max-width: 420px) {
  .am-reviews {
    padding: 2.5rem 0 1.75rem;
  }
  .am-reviews .container {
    width: calc(100% - 1.25rem);
  }
  .am-reviews .amr-root {
    --amr-pad: 1rem 1.05rem;
    --amr-photo-size: 40px;
  }
}
