/* Steady Orbit Systems — homepage v1
   Built from the approved Implementation Handoff v1 (written spec wins).
   All copy here is either approved-verbatim or an explicit TBD placeholder. */

/* ---------- tokens ---------- */
:root {
  --bg:            #04060c;
  --bg-2:          #070b14;
  --ink:           #e9eef6;
  --ink-2:         #aab6c6;
  --ink-3:         #76839a;
  --line:          rgba(148, 176, 200, 0.14);
  --line-2:        rgba(148, 176, 200, 0.28);

  --teal:          #5eead4;
  --teal-2:        #2dd4bf;
  --teal-deep:     #0f6f66;
  --teal-glow:     rgba(94, 234, 212, 0.22);

  --burgundy:      #c2374f;
  --burgundy-2:    #8d1f33;
  --burgundy-glow: rgba(194, 55, 79, 0.26);

  --tbd:           #b9a66a;
  --tbd-bg:        rgba(185, 166, 106, 0.10);
  --tbd-line:      rgba(185, 166, 106, 0.36);

  --maxw:          1180px;
  --pad:           clamp(20px, 5vw, 56px);
  --radius:        14px;

  --sans: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 2026-10-03: hidden -> clip. With html{overflow-x:clip} (v17.css), body's hidden no longer
     propagates to the viewport, making body a scroll container and killing position:sticky
     for the shared nav (it scrolled away). clip clips without creating a scroll container. */
  overflow-x: clip;
}

/* one continuous environment: a single quiet ground behind every section */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% -6%,  rgba(24, 66, 78, 0.38), transparent 62%),
    radial-gradient(1000px 800px at 6% 34%,   rgba(16, 44, 58, 0.30), transparent 60%),
    radial-gradient(900px 620px  at 62% 70%,  rgba(38, 16, 26, 0.26), transparent 62%),
    linear-gradient(180deg, #04060c 0%, #05080f 40%, #04070d 100%);
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #04060c;
  padding: 10px 16px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { position: relative; padding-block: clamp(72px, 11vw, 150px); }

/* type */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.06; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::after {
  content: "";
  height: 1px;
  width: clamp(32px, 8vw, 80px);
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.eyebrow--teal { color: var(--teal); }
.eyebrow--burgundy { color: var(--burgundy); }

.lede { color: var(--ink-2); font-size: clamp(15px, 1.4vw, 18px); max-width: 46ch; }

.accent-teal { color: var(--teal); }
.accent-burgundy { color: var(--burgundy); }

/* TBD placeholder chrome — every unresolved item is visible, never guessed */
.tbd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border: 1px dashed var(--tbd-line);
  background: var(--tbd-bg);
  color: var(--tbd);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.6;
}
.tbd-block {
  border: 1px dashed var(--tbd-line);
  background: var(--tbd-bg);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink-2);
  font-size: 14px;
}
.tbd-note { color: var(--tbd); font-size: 12px; letter-spacing: 0.04em; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
              background-color 220ms var(--ease), border-color 220ms var(--ease);
}
.btn--primary {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-2) 100%);
  color: #032b28;
  box-shadow: 0 8px 30px -14px rgba(94, 234, 212, 0.7);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -14px rgba(94, 234, 212, 0.75); }
.btn--burgundy {
  background: linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy-2) 100%);
  color: #fff3f4;
  box-shadow: 0 8px 30px -16px rgba(194, 55, 79, 0.8);
}
.btn--burgundy:hover { transform: translateY(-1px); }
.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: var(--teal); background: rgba(94, 234, 212, 0.06); }
.btn--tbd {
  border: 1px dashed var(--tbd-line);
  background: var(--tbd-bg);
  color: var(--tbd);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.82), rgba(4, 6, 12, 0.28));
  border-bottom: 1px solid transparent;
  transition: border-color 260ms var(--ease), background-color 260ms var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.brand__mark { width: 26px; height: 26px; flex: 0 0 auto; }

.nav__links { display: flex; align-items: center; gap: clamp(6px, 1.6vw, 22px); }
.nav__link {
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 180ms var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: var(--ink); }
.nav__caret { transition: transform 200ms var(--ease); }
[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.dropdown { position: relative; }
.dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: rgba(8, 13, 22, 0.97);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 170ms var(--ease), transform 170ms var(--ease), visibility 170ms;
}
.dropdown__menu.is-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown__menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.dropdown__menu a:hover { background: rgba(94, 234, 212, 0.08); color: var(--ink); }

.nav__cta { padding: 10px 18px; font-size: 14px; }

@media (max-width: 720px) {
  .nav__links { gap: 2px; }
  .nav__link { padding: 8px 6px; font-size: 13px; }
  .nav__cta { padding: 9px 12px; font-size: 13px; }
  .brand span { font-size: 13px; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .nav__links { gap: 2px; }
  .nav__link { font-size: 12px; padding: 8px 3px; }
  .nav__cta { padding: 8px 9px; font-size: 12px; }
  .nav__inner { gap: 6px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  place-items: center;
  padding-block: clamp(70px, 12vh, 140px) clamp(90px, 14vh, 170px);
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}
/* the hero calms into the Revenue Blind Spot accent — no hard border */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 6, 12, 0.72) 58%, rgba(6, 7, 13, 0.96) 100%);
}
.hero__inner { position: relative; text-align: center; z-index: 1; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 70px);
  max-width: 1150px;
  font-weight: 500;
  margin-inline: auto;
  text-wrap: balance;
}
.hero h1 .accent-teal { display: inline; }
.hero__actions { margin-top: clamp(30px, 4vw, 46px); display: flex; justify-content: center; }

/* ---------- revenue blind spot ---------- */
.rbs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.rbs h2 { font-size: clamp(30px, 4.4vw, 54px); max-width: 14ch; }
.rbs__body { margin: 22px 0 0; color: var(--ink-2); max-width: 44ch; font-size: clamp(15px, 1.4vw, 17px); }
.rbs__body em { font-style: normal; color: var(--ink); }
.rbs__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* burgundy report object — real cover with the mockup's cover text (user-approved 2026-09-14) */
.book {
  position: relative;
  width: min(340px, 100%);
  margin-inline: auto;
  aspect-ratio: 5 / 8;
  perspective: 1400px;
  animation: book-float 7s var(--ease) infinite;
}
@keyframes book-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.book__body {
  position: absolute;
  inset: 0;
  transform: rotateY(-17deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease);
  border-radius: 4px 10px 10px 4px;
  background: linear-gradient(150deg, #131a26 0%, #0a0f18 48%, #04070c 100%);
  box-shadow:
    0 50px 80px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 190, 200, 0.07) inset;
  overflow: hidden;
}
.book__spine {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 16px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, #0c060b, #1c1420 70%, rgba(255, 190, 200, 0.14));
  transform: translateZ(1px);
}
/* cover artwork: planet horizon with city lights, from the approved reference */
.book__art {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: url("/website-v1/book-art.jpg") center 32% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}
.book__cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2vw, 26px) clamp(18px, 2vw, 26px) clamp(14px, 1.6vw, 20px);
  text-align: left;
}
.book__brand { display: flex; align-items: center; gap: 10px; }
.book__sos {
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: #f4f6fa;
  border: 1px solid rgba(244, 246, 250, 0.5); border-radius: 3px; padding: 3px 7px;
}
.book__branddiv { width: 1px; height: 22px; background: rgba(244, 246, 250, 0.32); }
.book__brandname {
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244, 246, 250, 0.85); line-height: 1.55;
}
.book__eyebrow {
  margin: clamp(18px, 7%, 32px) 0 0;
  color: #e2506a; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
}
.book__title {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0.015em;
  color: #f7f4ef;
}
.book__sub {
  margin: 14px 0 0;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(240, 244, 250, 0.72); line-height: 1.9;
}
.book__foot {
  margin-top: auto;
  font-size: 9px; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(240, 244, 250, 0.55);
}
.book__glow {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--burgundy-glow), transparent 62%);
  opacity: 0;
  transition: opacity 420ms var(--ease);
  pointer-events: none;
  z-index: -1;
}
.book:hover .book__body,
.book:focus-within .book__body { transform: rotateY(-11deg) rotateX(2deg) translateY(-6px) scale(1.015); }
.book:hover .book__glow,
.book:focus-within .book__glow { opacity: 1; }

@media (max-width: 860px) {
  .rbs__grid { grid-template-columns: 1fr; }
  .book { width: min(260px, 72%); }
}

/* category visual: gentle float so the render feels alive */
.tabpanel__visual img {
  animation: visual-float 9s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
@keyframes visual-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- what we do ---------- */
.wwd h2 { font-size: clamp(28px, 4vw, 48px); max-width: 18ch; }
.wwd__intro { margin: 20px 0 0; }
.tabs {
  margin-top: clamp(32px, 5vw, 54px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}
.tab {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: clamp(13px, 1.3vw, 15px);
  padding: 16px 10px;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.tab:last-child { border-right: 0; }
.tab[aria-selected="true"] {
  color: var(--ink);
  background: rgba(94, 234, 212, 0.08);
  box-shadow: inset 0 -2px 0 var(--teal);
}
.tab:hover { color: var(--ink); }

.tabpanels { margin-top: clamp(28px, 4vw, 48px); }
.tabpanel[hidden] { display: none; }
.tabpanel__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  /* equal density across tabs — reserve height so swapping never jumps */
  min-height: 420px;
}
.tabpanel__visual { display: grid; place-items: center; }
.tabpanel__visual img { width: min(320px, 100%); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7)); }
.tabpanel h3 { font-size: clamp(23px, 2.7vw, 34px); max-width: 18ch; }
.tabpanel__items { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.tabpanel__items li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 15px;
}
.tabpanel__items svg { flex: 0 0 auto; color: var(--teal); opacity: 0.9; }

/* abstract category visual (Automation / Intelligence — no supplied artwork) */
.glyph { width: min(300px, 100%); aspect-ratio: 1; }

@media (max-width: 860px) {
  .tabpanel__grid { grid-template-columns: 1fr; min-height: 0; }
  .tabs { grid-template-columns: 1fr; }
  .tab { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- systems lab ---------- */
.lab__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}
.lab h2 { font-size: clamp(30px, 4.4vw, 54px); max-width: 12ch; }
.lab__bullets { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.lab__bullets li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink-2);
  font-size: 15px;
}
.lab__bullets .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }
.lab__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* framed "window" object — a doorway, not a demo UI. no labels by design. */
.window-object {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(12, 20, 30, 0.9), rgba(6, 10, 17, 0.9));
  box-shadow: 0 40px 80px -46px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
.window-object__bar {
  height: 34px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.window-object__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.window-object canvas { width: 100%; height: calc(100% - 34px); display: block; }

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

/* ---------- sos brain ---------- */
.brain { text-align: center; }
.brain h2 { font-size: clamp(30px, 4.6vw, 56px); }
.brain__tagline { margin: 18px auto 0; color: var(--ink-2); font-size: clamp(15px, 1.5vw, 19px); }
.brain__mount { margin-top: clamp(24px, 4vw, 40px); }

/* ---------- marquee ---------- */
.marquee {
  padding-block: clamp(34px, 5vw, 56px);
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  opacity: 0.72;
  transition: opacity 220ms var(--ease);
}
.marquee__item:hover { opacity: 1; }
.marquee__item svg { height: 26px; width: auto; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- faq ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq__rows { display: grid; gap: 10px; }
.faq-row {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease);
}
.faq-row:last-child { border-bottom: 0; }
.faq-row[open] { border-color: var(--line-2); background: rgba(94, 234, 212, 0.035); }
.faq-row summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 500;
  min-height: 56px;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary .chev {
  flex: 0 0 auto;
  color: var(--teal);
  transition: transform 240ms var(--ease);
}
.faq-row[open] summary .chev { transform: rotate(180deg); }
.faq-row__answer { padding: 0 20px 20px; color: var(--ink-2); margin: 0; font-size: 15px; max-width: 66ch; }
.faq-row__answer strong { color: var(--ink); font-weight: 600; }

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

/* ---------- closing cta ---------- */
.closing { text-align: center; padding-block: clamp(56px, 9vw, 110px); }
.closing .btn { font-size: 16px; padding: 15px 30px; }

/* ---------- footer ---------- */
.footer { padding-block: 28px 44px; }
.footer__line { height: 1px; background: linear-gradient(90deg, var(--line-2), rgba(148, 176, 200, 0.04)); margin-bottom: 22px; }
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 26px;
}
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer a, .footer span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
}
.footer a:hover { color: var(--ink); }

/* ---------- site chat (bottom-left, site-level, separate from SOS Brain) ---------- */
.site-chat {
  position: fixed;
  left: clamp(12px, 2.4vw, 26px);
  bottom: clamp(12px, 2.4vw, 26px);
  z-index: 70;
  display: grid;
  gap: 10px;
  justify-items: start;
  max-width: min(360px, calc(100vw - 24px));
}
.site-chat__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(8, 13, 22, 0.92);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.site-chat__toggle:hover { color: var(--ink); border-color: var(--teal); }
.site-chat__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }

.site-chat__panel {
  width: min(340px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 11, 19, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  order: -1;
}
.site-chat__panel[hidden] { display: none; }
.site-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.site-chat__close {
  border: 0;
  background: none;
  color: var(--ink-3);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.site-chat__close:hover { color: var(--ink); }
.site-chat__log {
  max-height: min(46vh, 300px);
  overflow-y: auto;
  padding: 14px;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.site-chat__log:empty { padding: 0; }
.msg { padding: 10px 12px; border-radius: 10px; max-width: 92%; line-height: 1.5; }
.msg--user { justify-self: end; background: rgba(94, 234, 212, 0.12); color: var(--ink); }
.msg--bot { justify-self: start; background: rgba(255, 255, 255, 0.045); color: var(--ink-2); }
.msg--error { justify-self: start; background: rgba(194, 55, 79, 0.16); color: #ffd9de; }
.site-chat__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.site-chat__input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
}
.site-chat__input::placeholder { color: var(--ink-3); }
.site-chat__send {
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  background: linear-gradient(180deg, var(--teal), var(--teal-2));
  color: #04302c;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.site-chat__send[disabled] { opacity: 0.5; cursor: default; }

/* three-dot loader, accessible: paired with an aria-live status */
.dots { display: inline-flex; gap: 4px; align-items: center; }
.dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal);
  opacity: 0.35;
  animation: dot 1.1s infinite ease-in-out;
}
.dots i:nth-child(2) { animation-delay: 0.16s; }
.dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.28; } 40% { opacity: 1; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* keep the fixed assistant clear of primary CTAs on small screens */
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .site-chat { max-width: calc(100vw - 24px); }
}

/* ---------- standalone pages ---------- */
.page-head { padding-block: clamp(56px, 9vw, 110px) clamp(24px, 4vw, 44px); }
.page-head h1 { font-size: clamp(30px, 5vw, 58px); max-width: 16ch; }
.page-head p { color: var(--ink-2); margin-top: 18px; max-width: 52ch; }
.stack { display: grid; gap: 16px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee__track { animation: none; transform: none; }
}

/* Approved handoff v1. Deployment stylesheet, rebuilt 2026-09-14. */

/* ---------- Systems Lab art v2 (test chamber, 3:2) ---------- */
.window-object svg { width: 100%; height: calc(100% - 34px); display: block; }
