/* ── Scroll snap ─────────────────────────────────────────────
   proximity: only snaps when near a boundary — lets users
   scroll freely within tall sections (agent cards, WhoWeServe).
   mandatory would trap users inside short sections.
──────────────────────────────────────────────────────────── */
html {
  scroll-snap-type: y proximity;
  scroll-padding-top: 96px; /* nav top(24) + height(54) + 18px buffer */
}
.hero {
  scroll-snap-align: start;
}

/* Lama Consultants — Landing Page Styles v2
   Tokens from ../../colors_and_type.css
   ─────────────────────────────────────────
   Key changes:
   · Floating pill nav (not full-width sticky)
   · Double-bezel cards throughout
   · Button-in-button CTAs (.btn-icon)
   · Emil Kowalski animation principles: custom easings, scale-on-press,
     stagger via --i var, no linear/ease-in-out keywords
   · Missing sections added: QuoteOrb, TrustNote, ClosingQuote
   · Removed band--alt gradient (surface gradients are banned)
   ──────────────────────────────────────── */

/* ===== UTILITY ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--mono-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-block;
}
.arr {
  font-style: normal;
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  a:hover .arr, button:hover .arr { transform: translateX(3px); }
}

/* ===== NAV — Floating Pill ===== */
/* Top fade mask — sits just below nav, fades scrolling content before it hits the bar */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  background: linear-gradient(to bottom, var(--bg) 45%, transparent 100%);
  z-index: 49;
  pointer-events: none;
}

.nav {
  position: fixed;
  top: 24px;
  will-change: transform;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 48px);
  max-width: 860px;
}
.nav-inner {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  height: 54px;
  padding: 0 8px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-ama {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
}
.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 0 var(--accent-glow);
  flex-shrink: 0;
}

/* Footer logo — slightly smaller */
.brand-ama--sm  { font-size: 18px; }
.brand-dot--sm  { width: 5px; height: 5px; box-shadow: 0 0 8px var(--accent-glow); }

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
  transition: color var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--fg); }
}

.nav-right { display: flex; align-items: center; gap: 10px; }
.cta--sm {
  padding: 9px 8px 9px 16px;
  font-size: 12px;
  animation: none;
  border-radius: var(--radius-pill);
}
.cta--sm .btn-icon { width: 24px; height: 24px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--hairline);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--dur-base) var(--ease-out);
}
.ham-line {
  width: 14px; height: 1.5px;
  background: var(--fg-2);
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.28s var(--ease-out), opacity 0.2s;
}
.nav-hamburger.is-open .ham-line:first-child  { transform: translateY(2.75px) rotate(45deg);  }
.nav-hamburger.is-open .ham-line:last-child   { transform: translateY(-2.75px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .cta--sm    { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 560px) {
  .nav { width: calc(100% - 32px); top: 16px; }
}

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: oklch(4% 0.006 145 / 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  padding: 80px var(--gutter) 48px;
  animation: menuFadeIn 0.32s var(--ease-drawer) forwards;
}
@keyframes menuFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--fg-2);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.mobile-menu-link {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 10vw, 64px);
  letter-spacing: -0.03em;
  color: var(--fg-2);
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  display: block;
  opacity: 0;
  transform: translateY(16px);
  animation: linkSlideIn 0.4s var(--ease-out) forwards;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}
.mobile-menu-link:hover { color: var(--fg); }
.mobile-menu-link:nth-child(1) { animation-delay: 60ms; }
.mobile-menu-link:nth-child(2) { animation-delay: 110ms; }
.mobile-menu-link:nth-child(3) { animation-delay: 160ms; }
.mobile-menu-link:nth-child(4) { animation-delay: 210ms; }
@keyframes linkSlideIn {
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-cta {
  margin-top: 40px;
  opacity: 0;
  animation: linkSlideIn 0.4s var(--ease-out) 280ms forwards;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100dvh;
  padding-top: clamp(72px, 10vw, 120px);
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 75%, transparent 0%, var(--bg) 85%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.hero-logo-wrap {
  display: block;
  margin-bottom: 0;
}
.hero-h { font-size: clamp(48px, 6vw, 80px); display: block; }

/* Word-by-word entry — blur+fade+lift */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(32px);
  filter: blur(4px);
  animation: wordIn 0.7s var(--ease-out) forwards;
}
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.hero-meta > div { display: flex; flex-direction: column; gap: 5px; }
.process-cta .hero-meta { border-top: none; padding-top: 0; justify-content: center; }
.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-3);
}
.mono-val {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--fg);
}

/* ===== BAND (section wrapper) ===== */
.band {
  padding-top: clamp(8px, 1vw, 12px);
  padding-bottom: var(--section-y);
  border-top: 1px solid var(--hairline);
  position: relative;
  scroll-snap-align: start;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-head { margin-bottom: 0; text-align: center; }
.band-inner .h2 { text-align: center; }

/* ===== GREEN ORB BRIDGE ===== */
.band--quote {
  border-top: none;
  padding: 0;
  overflow: hidden;
}
.quote-orb-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(700px, 80vw);
  height: min(700px, 80vw);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at 40% 38%,
    rgba(136, 204, 0, 0.22) 0%,
    rgba(136, 204, 0, 0.09) 35%,
    rgba(136, 204, 0, 0.03) 60%,
    transparent 75%
  );
  filter: blur(48px);
  animation: orbBreath 10s ease-in-out infinite;
}
@keyframes orbBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.21; }
  50%       { transform: translate(-50%, -50%) scale(1.12); opacity: 0.3;  }
}
.quote-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.quote-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5.5vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  max-width: 16ch;
}
.quote-attr {
  font-family: var(--font-mono);
  font-size: var(--mono-sm);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-2);
}

/* ===== OUTCOMES ===== */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.outcome-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
}
/* Override .card inner padding for outcome layout */
.outcome-card.card { padding: 0; }

.outcome-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.outcome-biz {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.outcome-rev {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.outcome-rows {
  padding: 12px 26px 8px;
  display: flex;
  flex-direction: column;
}
.outcome-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  margin-top: 2px;
}
.outcome-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
  gap: 12px;
}
.outcome-row:last-child { border-bottom: none; }
.outcome-row-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--fg-2);
  flex: 1;
}
.outcome-row-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.outcome-footer {
  padding: 18px 26px;
  border-top: 1px solid var(--accent);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: rgba(136, 204, 0, 0.04);
  margin-top: auto;
}
.outcome-kpi { display: flex; flex-direction: column; gap: 3px; }
.outcome-kpi-val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.outcome-kpi-val em { font-style: normal; color: var(--accent); }
.outcome-kpi-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-3);
}
.outcomes-cta { display: flex; justify-content: center; padding-top: 8px; }
@media (max-width: 980px) { .outcomes-grid { grid-template-columns: 1fr; } }

/* ===== WHO WE SERVE (combined) ===== */
.wws-bridge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--fg);
  text-align: center;
  margin: 0;
  text-wrap: balance;
}

/* ===== SECTORS ===== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.sector-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
/* Override .card for sector full height */
.sector-card .card { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.sector-card:nth-child(1) { grid-column: span 5; }
.sector-card:nth-child(2) { grid-column: span 7; }
.sector-card:nth-child(4) { grid-column: span 7; }
.sector-card:nth-child(5) { grid-column: span 5; }

.sector-stat {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 52px;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.stat-num { color: var(--fg); }
.stat-suf { color: var(--accent); margin-left: 1px; }
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}
.card-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
}
.card-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-2);
  margin-top: auto;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (hover: hover) and (pointer: fine) {
  .sector-card:hover .card-link { color: var(--accent); }
}

@media (max-width: 980px) {
  .sectors-grid { grid-template-columns: 1fr; }
  .sector-card, .sector-card:nth-child(n) { grid-column: span 1 !important; }
}

/* ===== SMB ===== */
.smb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.smb-cell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 140px;
}
.smb-cell.card { padding: 26px; }
@media (max-width: 768px) { .smb-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .smb-grid { grid-template-columns: 1fr; } }

/* ===== SOLUTIONS ===== */
.sol-intro {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sol-col-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sol-cat-header {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--accent);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sol-cat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -0.01em;
  color: var(--fg);
}
.sol-agents {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sol-agent {
  border-radius: var(--radius-card-outer);
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow   var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .sol-agent:hover { border-color: var(--accent); box-shadow: var(--glow-hover); }
}
.sol-agent-inner {
  background: var(--surface);
  border-radius: var(--radius-card-inner);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sol-agent-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.sol-agent-icp {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.sol-agent-pain {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-2);
}
@media (max-width: 880px) { .solutions-grid { grid-template-columns: 1fr; } }

/* ===== PROCESS ===== */
.process-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}

.process-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.process-row {
  display: grid;
  grid-template-columns: 72px 1fr 2fr;
  gap: 28px;
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--hairline);
  transition: opacity var(--dur-base) var(--ease-out);
}
.process-row:last-child { border-bottom: 1px solid var(--hairline); }
.proc-n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  color: var(--accent);
}
.proc-d {
  font-weight: 300;
  max-width: 60ch;
}
@media (max-width: 768px) {
  .process-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
}

/* Decision 8 — pull TrustNote visually closer to About */
#trust { margin-top: -32px; }

/* ===== TRUST NOTE ===== */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.trust-left { display: flex; flex-direction: column; gap: 16px; }
.trust-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 48ch;
}
.trust-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.trust-fact-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}
.trust-fact-row:last-child { border-bottom: 1px solid var(--hairline); }
.trust-fact-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
  width: 120px;
  flex-shrink: 0;
}
.trust-fact-val {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--fg-2);
}
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== ABOUT ===== */
.creds-row {
  display: flex;
  align-items: center;
  gap: 32px;
}
.creds-row .orbital-rings {
  width: 220px;
  min-width: 220px;
  height: 220px;
}
@media (max-width: 880px) {
  .creds-row { flex-direction: column; align-items: flex-start; }
  .creds-row .orbital-rings { width: 100%; min-width: unset; height: 200px; }
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-right { display: flex; flex-direction: column; gap: 40px; }
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.cred {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  padding-right: 16px;
}
.cred .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
}
.cred .num em { font-style: normal; color: var(--accent); }
.cred .lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-3);
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .creds { grid-template-columns: 1fr 1fr; }
}

/* ===== CLOSING QUOTE ===== */
.band--closing-quote {
  border-top: 1px solid var(--hairline);
}
.closing-quote-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  align-items: center;
}
.closing-quote-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
}
.closing-quote-attr {
  font-family: var(--font-mono);
  font-size: var(--mono-sm);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-2);
}

/* ===== CTA ===== */
.band--cta {
  padding-top: clamp(8px, 1vw, 12px);
  padding-bottom: clamp(120px, 18vw, 240px);
  position: relative;
  overflow: hidden;
  border-top: none;
}
.cta-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 50%, rgba(136,204,0,0.14), transparent 65%),
    radial-gradient(ellipse 45% 35% at 50% 50%, rgba(136,204,0,0.26), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
  align-items: center;
  text-align: center;
}
.cta-h { font-size: var(--display-lg); }
.cta-lead { text-align: center; }
.cta-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.cta--lg { padding: 18px 10px 18px 28px; font-size: 15px; }
.cta--lg .btn-icon { width: 32px; height: 32px; }

/* Amplified diagnose bloom */
.cta--diagnose { animation: diagnosePulse 3.5s ease-in-out infinite; }
@media (hover: hover) and (pointer: fine) {
  .cta--diagnose:hover {
    background: var(--accent-hi);
    box-shadow:
      0 0 0 1px var(--accent-hi),
      0 0 64px -4px var(--accent-glow),
      0 0 120px -20px var(--accent-glow-soft);
  }
}
@keyframes diagnosePulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px var(--accent),
      0 0 24px -4px var(--accent-glow-soft),
      0 0 0 0 rgba(136, 204, 0, 0);
  }
  42% {
    box-shadow:
      0 0 0 1px var(--accent),
      0 0 52px -4px var(--accent-glow),
      0 0 0 10px rgba(136, 204, 0, 0.05);
  }
  72% {
    box-shadow:
      0 0 0 1px var(--accent),
      0 0 60px -4px var(--accent-glow),
      0 0 0 24px rgba(136, 204, 0, 0);
  }
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}
.footer-brand { display: flex; align-items: baseline; gap: 0; }
.footer-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--fg-2);
  margin-left: 6px;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--fg);
  transition: color var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .footer-cols a:hover { color: var(--fg); }
}
.footer-fine {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols  { grid-template-columns: 1fr 1fr; }
  .footer-fine  { flex-direction: column; gap: 8px; }
}


/* Footer social buttons */
.footer-brand-col { display: flex; flex-direction: column; gap: 0; }
.footer-social { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.footer-social-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-2); text-decoration: none;
  border: 1px solid var(--hairline); border-radius: 6px;
  padding: 7px 14px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.footer-social-btn:hover {
  color: var(--accent); border-color: var(--accent);
  background: rgba(136,204,0,0.06);
}

/* ===== ANIMATION CANVASES ===== */
.fiber-orb {
  display: block;
  width: 100%;
  margin-top: 0;
  height: clamp(300px, 44vw, 560px);
  /* canvas background is transparent — mesh shows through */
}

.constellation-ring {
  display: block;
  width: 100%;
  height: clamp(260px, 36vw, 460px);
  margin: 0 auto;
}

.orbital-rings {
  display: block;
  width: 100%;
  height: clamp(300px, 38vw, 480px);
  margin: 0 auto;
}

/* ===== AGENT CARDS — Terminal Design ===== */

/* ── Terminal card shell ── */
.ac-wrap {
  background: #0a0d0a;
  border: 1px solid rgba(136,204,0,0.14);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  opacity: 0;
  transform: perspective(900px) rotateX(8deg) translateY(16px);
  transform-origin: center top;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out),
              border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.ac-wrap.ac-visible {
  opacity: 1;
  transform: perspective(900px) rotateX(0deg) translateY(0);
}
.ac-wrap:hover {
  border-color: rgba(136,204,0,0.35);
  box-shadow: 0 0 18px rgba(136,204,0,0.08);
}

/* ── Title bar ── */
.ac-term-bar {
  background: #111510;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ac-term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ac-term-dot--r { background: #ff5f56; }
.ac-term-dot--y { background: #ffbd2e; }
.ac-term-dot--g { background: var(--ac, #88CC00); }
.ac-term-title {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  flex: 1;
  text-align: center;
}

/* ── Body ── */
.ac-term-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ac-term-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── Key:value lines ── */
.ac-term-line {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 5px;
  line-height: 1.5;
}
.ac-term-k { color: rgba(136,204,0,0.6); }
.ac-term-v { color: rgba(255,255,255,0.75); }

/* ── Divider ── */
.ac-term-div {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 10px 0;
}

/* ── Impact block ── */
.ac-term-impact {
  background: rgba(136,204,0,0.05);
  border-left: 2px solid rgba(136,204,0,0.4);
  border-radius: 0 4px 4px 0;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.ac-term-impact-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ac-term-impact-dim {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 3px;
}
.ac-term-impact-key {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-top: 4px;
}

/* ── Footer: prompt + CTA ── */
.ac-term-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.ac-term-prompt {
  font-size: 10px;
  color: rgba(255,255,255,0.2);
}
.ac-term-cursor {
  display: inline-block;
  width: 6px;
  height: 11px;
  background: var(--ac, #88CC00);
  animation: ac-blink 1s step-end infinite;
  vertical-align: -1px;
  opacity: 0.7;
  margin-left: 1px;
}
@keyframes ac-blink {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0; }
}

.ac-term-cta {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac, #88CC00);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.ac-term-cta:hover { opacity: 1; }

/* ── Roster layout ── */
.ac-roster {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.ac-cluster {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ac-cluster-hd {
  padding-bottom: 16px;
  /* border-bottom color set via inline style with accent opacity */
}
.ac-cluster-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

.ac-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* old flip card CSS removed — terminal design above replaces it */

.ac-dot {
  transition: background 1s ease, box-shadow 1s ease;
  animation: ac-pulse 2s ease-in-out infinite;
}

@keyframes ac-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .ac-grid {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .ac-wrap { flex-shrink: 0; }
}

/* ── iPhone mobile pass (≤ 430px) ───────────────────────────
   Target: iPhone SE (375px) through iPhone Pro Max (430px).
   Goal: functional, not perfect. Desktop is primary.
─────────────────────────────────────────────────────────── */
@media (max-width: 430px) {

  /* Dot nav — too small to tap, hide it */
  #dot-nav { display: none; }

  /* Sections — drop min-height so content isn't force-stretched */
  .band { min-height: auto; justify-content: flex-start; }

  /* Hero — tighten top padding */
  .hero { padding-top: 100px; padding-bottom: 60px; }

  /* Agent cards — horizontal scroll with snap + visible card width */
  .ac-grid {
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 0 var(--gutter) 20px;
    cursor: grab;
  }
  .ac-wrap {
    width: 80vw;
    min-width: 260px;
    scroll-snap-align: center;
  }

  /* Tier cards (WhoWeServe) — already 1fr at 980px, fine */
  .sectors-grid { grid-template-columns: 1fr; }
  .sector-card  { grid-column: span 1; }

  /* Process rows — already 1fr at 768px */

  /* About creds — 2-col to 1-col */
  .creds { grid-template-columns: 1fr 1fr; }

  /* Trust grid — already 1fr at 768px */

  /* Closing quote font — clamp already handles this */

  /* Scroll chevron — move up slightly above iPhone home bar */
  #scroll-chev { bottom: 48px; }

  /* CTA section — stack buttons */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .cta { text-align: center; justify-content: center; }
}

/* ===== VIEWPORT-FIT OVERRIDES =====
   Sections whose content exceeds 100dvh at desktop sizes.
   Each override tightens only padding/gap/font on that section
   without touching global tokens.
   ======================================= */

/* 1 · Outcomes — KPI footer row was clipping */
#outcomes { padding-bottom: clamp(48px, 5vw, 72px); }
#outcomes .band-inner { gap: 16px; }
#outcomes .h2 { font-size: clamp(28px, 4vw, 60px); }

/* 2 · Solutions — 2-column hero fills the viewport, bridge starts below fold */
.sol-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  min-height: calc(100dvh - 130px); /* push bridge text below fold */
}
.sol-hero-text { display: flex; flex-direction: column; }
#solutions .band-inner .h2 { text-align: left; font-size: clamp(32px, 4vw, 64px); }
#solutions .sol-intro { text-align: left; }
#solutions .constellation-ring { height: clamp(400px, 50vw, 680px); } /* ring grows to fill row */
@media (max-width: 880px) {
  .sol-hero-row { grid-template-columns: 1fr; min-height: auto; }
  #solutions .band-inner .h2 { text-align: center; font-size: clamp(28px, 5vw, 52px); }
  #solutions .sol-intro { text-align: center; }
  #solutions .constellation-ring { height: clamp(260px, 36vw, 460px); }
}

/* 3 · Who We Serve — 3 equal columns, no more 5+7 span layout */
#who-we-serve { padding-bottom: clamp(48px, 5vw, 72px); }
#who-we-serve .band-inner { gap: 8px; }
#who-we-serve .sectors-grid { grid-template-columns: repeat(3, 1fr); }
#who-we-serve .sector-card,
#who-we-serve .sector-card:nth-child(n) { grid-column: span 1 !important; min-height: 200px; }

/* 4 · Why Lama — comparison table rows were clipping */
#why-lama { padding-bottom: clamp(48px, 5vw, 72px); }
#why-lama .h2 { font-size: clamp(28px, 4vw, 60px); }
#why-lama .band-inner { gap: 8px; }
