/* ============================================
   MAPLE CONNECTION JOOMLA TEMPLATE
   Clean Build | No Patches | Joomla 6
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */

:root {
  /* Backgrounds */
  --bg-primary: #0a0e14;
  --bg-surface: #0f1419;
  --bg-elevated: #151b24;
  
  /* Borders */
  --border-primary: #1a2332;
  --border-subtle: rgba(26, 35, 50, 0.4);
  
  /* Text */
  --text-primary: #e8edf4;
  --text-secondary: #b0b8c5;
  --text-muted: #8892a0;
  
  /* Brand Colors */
  --blue: #0066cc;
  --gold: #d4af37;
  --green: #00a86b;
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4cf57 100%);
  --gradient-blue: linear-gradient(135deg, #0066cc 0%, #0088ff 100%);
  --gradient-tricolor: linear-gradient(90deg, #0066cc 0%, #d4af37 50%, #00a86b 100%);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Other */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 999px;
  --transition: all 0.3s ease;
}

/* ============================================
   2. BASE & RESET
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

/* Alpine.js: hide x-cloak'd elements until Alpine processes them (prevents FOUC). */
[x-cloak] { display: none !important; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   3. JOOMLA CLASS NEUTRALIZATION
   ============================================ */

.moduletable,
.mod-menu,
.mod-custom,
.com-content,
.item-page {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

/* ============================================
   4. HEADER
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    radial-gradient(circle at 20% -100%, rgba(0, 102, 204, 0.22), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.14), transparent 38%),
    rgba(6, 12, 22, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-primary);
  box-shadow: 0 10px 42px rgba(0, 0, 0, 0.45), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-tricolor);
  opacity: 0.8;
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 102, 204, 0.1), rgba(212, 175, 55, 0.22), rgba(0, 168, 107, 0.1));
  pointer-events: none;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  min-height: 92px;
  padding: 0;
}

.header-logo img {
  max-height: 58px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(0, 102, 204, 0.35));
  transition: var(--transition);
}

.header-logo:hover img {
  filter: drop-shadow(0 10px 18px rgba(0, 102, 204, 0.46));
  transform: translateY(-1px);
}


.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  align-self: center;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-lockup .logo-mark {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 102, 204, 0.35));
  transition: var(--transition);
}

.logo-link:hover .logo-mark {
  filter: drop-shadow(0 6px 14px rgba(212, 175, 55, 0.45));
  transform: translateY(-1px);
}

.logo-lockup .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-lockup .logo-title {
  font-size: clamp(1.15rem, 1.6vw, 1.95rem);
  font-weight: 760;
  letter-spacing: 0.005em;
  color: #f2f7ff;
}

.logo-lockup .logo-subtitle {
  margin-top: 0.2rem;
  font-size: 0.73rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3aa9ea;
  opacity: 0.86;
}

/* Navigation */

/* Mobile nav toggle (Joomla 6-only) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon {
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  display: inline-block;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after  { top:  6px; }


.main-nav ul {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  padding: 0.35rem;
  margin: 0;
  justify-content: center;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(14, 23, 42, 0.95) 0%, rgba(9, 18, 33, 0.95) 100%),
    linear-gradient(120deg, rgba(0, 102, 204, 0.15), rgba(212, 175, 55, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 28px rgba(0, 0, 0, 0.35);
  align-items: center;
}

.main-nav li {
  display: inline-block;
}

.main-nav a {
  display: flex;
  align-items: center;
  padding: 0.65rem 1.35rem;
  min-height: 44px;
  white-space: nowrap;
  color: #aeb8ca;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  background: transparent;
}

.main-nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(212, 175, 55, 0.1));
  box-shadow: inset 0 0 0 1px rgba(111, 155, 255, 0.2), 0 6px 18px rgba(0, 0, 0, 0.2);
}

.main-nav li.current a,
.main-nav li.active a {
  color: #fff;
  background: linear-gradient(130deg, rgba(21, 103, 255, 0.28), rgba(38, 72, 140, 0.42));
  box-shadow: 0 0 0 1px rgba(122, 165, 255, 0.3) inset, 0 0 24px rgba(0, 102, 204, 0.28);
}

/* Header CTA */
.header-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0.75rem 1.9rem;
  background: linear-gradient(135deg, #f7dc65 0%, #e7c83f 42%, #d7af26 100%);
  color: #0f1625;
  border-radius: var(--radius-xl);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 235, 156, 0.35);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.26), inset 0 1px 0 rgba(255, 249, 205, 0.6);
  animation: ctaPulse 3.6s ease-in-out infinite;
  transition: var(--transition);
}

.header-cta,
.main-nav,
.header-logo {
  display: flex;
  align-items: center;
}

.header-cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(212, 175, 55, 0.32), inset 0 1px 0 rgba(255, 249, 205, 0.8);
}

.header-cta a::after {
  content: '→';
  transition: var(--transition);
}

.header-cta a:hover::after {
  transform: translateX(4px);
}

/* Header language toggle — segmented pill, visually subordinate to the gold CTA.
   Higher specificity (.header-cta .lang-toggle*) overrides .header-cta a above. */
.header-cta .lang-toggle {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 44px; /* E-1: was 36px, bumped to meet 44px touch target */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  overflow: hidden;
  animation: none;
  box-shadow: none;
  margin-right: 0.5rem;
}

.header-cta .lang-toggle__active,
.header-cta .lang-toggle__alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  background: none;
  border: none;
  border-radius: 0;
  text-decoration: none;
  animation: none;
  box-shadow: none;
  transition: color 200ms ease, background-color 200ms ease;
}

.header-cta .lang-toggle__active {
  background: rgba(212, 175, 55, 0.18);
  color: #f0c850;
  cursor: default;
}

.header-cta .lang-toggle__alt {
  color: #c8c8c8;
}

.header-cta .lang-toggle__alt:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #f0c850;
  transform: none;
}

.header-cta .lang-toggle__active::after,
.header-cta .lang-toggle__alt::after {
  content: none;
}

.header-cta .lang-toggle__alt:hover::after {
  transform: none;
}

/* ============================================
   5. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #e4bf47;
}

/* ============================================
   6. BUTTONS
   ============================================ */

.btn-primary,
.btn-secondary,
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  min-height: 48px;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.35);
}

.btn-primary::after {
  content: '→';
  transition: var(--transition);
}

.btn-primary:hover::after {
  transform: translateX(4px);
}

.btn-secondary {
  background: var(--gradient-blue);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(0, 102, 204, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 102, 204, 0.35);
}

.btn-tertiary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-tertiary:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-1px);
}

/* ============================================
   7. ARTICLE COMPONENTS
   ============================================ */

/* Eyebrow Label */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
  padding-left: 2rem;
  position: relative;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

/* Hero Section */
.hero-section {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.hero-section h1 {
  background: linear-gradient(135deg, #ffffff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.08em;
  margin-bottom: calc(var(--space-lg) - 0.08em);
}

.hero-section p {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto var(--space-xl) auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Stack Cards */
.stack-cards {
  display: grid;
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.stack-cards .card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.stack-cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 102, 204, 0.4);
}

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(0, 102, 204, 0.03);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.card-header h3 {
  flex: 1;
  margin: 0;
  font-size: 1.5rem;
}

.badge {
  padding: 0.4rem 0.9rem;
  background: rgba(0, 102, 204, 0.15);
  border: 1px solid rgba(0, 102, 204, 0.3);
  border-radius: 999px;
  color: #60b0ff; /* was #0066cc (~2:1 on dark card bg); #60b0ff gives ~7:1 — AA pass */
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-body {
  padding: var(--space-lg);
}

.card-body p {
  margin-bottom: var(--space-md);
}

.card-body ul {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0 0;
}

.card-body li {
  padding: 0.6rem 0;
  display: flex;
  gap: 0.75rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.card-body li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.card-footer {
  padding: var(--space-md) var(--space-lg);
  background: rgba(0, 168, 107, 0.05);
  border-top: 1px solid var(--border-primary);
}

.card-footer p {
  margin: 0;
  color: var(--text-primary);
}

.card-footer strong {
  color: var(--green);
}

/* Two Column Layouts */
.why-us-content,
.intake-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin: var(--space-2xl) 0;
}

/* Single-column variant — use when there's no right-column visual */
.why-us-content--single {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.why-us-text p,
.intake-text p {
  font-size: 1.05rem;
}

.why-us-text ul,
.intake-text ul {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 0 0;
}

.why-us-text li,
.intake-text li {
  padding: 0.7rem 0;
  display: flex;
  gap: 0.75rem;
  color: var(--text-primary);
}

.why-us-text li::before,
.intake-text li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.why-us-image img,
.intake-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: block;
}

/* Process Steps */
.how-it-works-steps {
  display: grid;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--green));
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  opacity: 0;
  transition: var(--transition);
}

.step:hover {
  transform: translateX(4px);
  border-color: rgba(0, 102, 204, 0.4);
}

.step:hover::before {
  opacity: 1;
}

.step .step-number {
  width: 56px;
  height: 56px;
  font-size: 1.75rem;
}

.step-content h3 {
  margin: 0 0 var(--space-sm) 0;
  color: var(--text-primary);
}

.step-content p {
  margin: 0;
  color: var(--text-secondary);
}

/* Setup Cards Grid */
.setups-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

/* 2x2 variant — use when the card count is exactly 4 to avoid orphan rows */
.setups-cards--two-col {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .setups-cards--two-col {
    grid-template-columns: 1fr;
  }
}

.setups-cards .card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.setups-cards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 102, 204, 0.4);
}

.card-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-md);
}

.setups-cards h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.setups-cards p {
  margin: 0;
  font-size: 1rem;
}

/* Section Backgrounds */
.section-why-us,
.section-start-intake {
  background: rgba(0, 102, 204, 0.02);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0;
}

.section-bridge {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0;
}

.section-bridge .section-header {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.section-bridge .section-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Trust signal stat row — short, scannable proof points under the hero. */
.section-stats {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.stat-row .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.stat-row .stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .stat-row {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ============================================
   8. FOOTER
   ============================================ */

.site-footer {
  background: var(--bg-surface);
  border-top: 2px solid var(--border-primary);
  position: relative;
  margin-top: var(--space-3xl);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-tricolor);
  opacity: 0.7;
}

.footer-main {
  padding: var(--space-3xl) 0;
}

.footer-main .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.footer-main h2,
.footer-main h3 {
  color: var(--text-primary);
  font-size: 1.15rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  display: inline-block;
}

.footer-main p {
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.footer-main strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-main li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  transition: var(--transition);
  color: var(--text-secondary);
}

.footer-main li::before {
  content: '📍';
  position: absolute;
  left: 0;
  opacity: 0.7;
  font-size: 0.85rem;
}

.footer-main li:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-main a {
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.footer-main a:hover {
  color: var(--gold);
}

.footer-main a[href^="mailto"] {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  color: var(--gold);
  font-weight: 600;
}

.footer-main a[href^="mailto"]:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

.footer-legal {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  padding: var(--space-md) 0;
  text-align: center;
}

.footer-legal p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@keyframes ctaPulse {
  0%,
  68%,
  100% {
    transform: translateY(0);
    box-shadow: 0 14px 34px rgba(212, 175, 55, 0.26), inset 0 1px 0 rgba(255, 249, 205, 0.6);
  }
  78% {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 18px 38px rgba(212, 175, 55, 0.34), inset 0 1px 0 rgba(255, 249, 205, 0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-cta a {
    animation: none;
  }
}

/* ============================================
   9. RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .main-nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  
  .main-nav {
    grid-column: 1 / -1;
  }
  
  .why-us-content,
  .intake-content {
    grid-template-columns: 1fr;
  }
  
  .why-us-image,
  .intake-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .header-inner {
    grid-template-columns: auto 44px;
    grid-template-areas: "logo toggle";
    align-items: center;
    min-height: auto;
    padding: var(--space-sm) 0;

    /* prevent vertical dead space when nav/cta are hidden */
    gap: 0;
    column-gap: var(--space-md);
  }

  /* When menu is open, restore the 3-row layout + vertical gaps */
  .site-header.is-open .header-inner {
    grid-template-areas:
      "logo toggle"
      "nav nav"
      "cta cta";
    gap: var(--space-md);
  }


  .header-logo { grid-area: logo; }
  .nav-toggle { grid-area: toggle; display: inline-flex; }

  /* hide nav/cta until toggled */
  .main-nav { grid-area: nav; display: none; }
  .header-cta { grid-area: cta; display: none; }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-cta { display: block; }
  
  .header-logo {
    text-align: center;
  }
  
  .header-logo img {
    max-height: 44px;
  }

  .logo-lockup .logo-title {
    font-size: 1rem;
  }

  .logo-lockup .logo-subtitle {
    letter-spacing: 0.12em;
    font-size: 0.62rem;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.6rem;
  }
  
  .main-nav a {
    width: 100%;
    justify-content: center;
  }
  
  .header-cta {
    text-align: center;
  }
  
  .header-cta a {
    width: 100%;
    justify-content: center;
  }
  
  .hero-section {
    padding: var(--space-2xl) 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-tertiary {
    width: 100%;
    justify-content: center;
  }
  
  .step {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .step .step-number {
    margin: 0 auto;
  }
  
  .setups-cards {
    grid-template-columns: 1fr;
  }
  
  .footer-main .container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ============================================
   10. UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.py-xl {
  padding-block: var(--space-xl);
}
/* ============================================
   SWENSMI Intake Module (styling moved from module into template)
   Keep identical behavior to prior versions: focus ring + hover lift + mobile section padding.
   ============================================ */

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  outline: none;
  border-color: #ffd700 !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1) !important;
}

.form-submit .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3) !important;
}

@media (max-width: 768px) {
  .intake-form-section {
    padding: 1.5rem 1rem !important;
  }
}

/* ============================================
   Intake Module — complete styling (module outputs these classes)
   Uses existing Maple variables + visual language
   ============================================ */

/* Section wrapper */
.intake-form-section {
  padding: var(--space-3xl) 0;
  background: rgba(0, 102, 204, 0.02);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Header */
.form-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.form-header h1,
.form-header h2,
.form-header h3 {
  margin-bottom: var(--space-sm);
}

.form-header p {
  max-width: 820px;
  margin: 0 auto;
}

/* Messages */
.form-message {
  max-width: 920px;
  margin: 0 auto var(--space-lg) auto;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
  background: var(--bg-elevated);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.form-message.success {
  border-color: rgba(0, 168, 107, 0.35);
  background: rgba(0, 168, 107, 0.08);
}

.form-message.error {
  border-color: rgba(212, 70, 70, 0.35);
  background: rgba(212, 70, 70, 0.08);
}

/* Success block (after submit) */
.success-message {
  max-width: 920px;
  margin: 0 auto;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 168, 107, 0.35);
  background: rgba(0, 168, 107, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.success-message h2 {
  margin-bottom: var(--space-sm);
}

.success-message p {
  margin: 0;
}

/* Form container */
.intake-form {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

/* Field groups */
.form-section {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  background: rgba(0, 102, 204, 0.03);
}

.form-section legend {
  padding: 0 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border-primary);
  background: rgba(10, 14, 20, 0.65);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(136, 146, 160, 0.9);
}

/* Subtle hover state (focus ring handled by your existing block) */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(0, 102, 204, 0.45);
}

/* Submit area */
.form-submit {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  justify-content: flex-start;
}

.form-submit .btn-primary {
  min-width: 220px;
}

/* Note under the button */
.form-note {
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Hint under a form field */
.form-hint {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Opening lede paragraph (thank-you state, etc.) */
.lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Form grid utilities */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-md); }
.form-checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }
.form-checkbox-grid label { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-weight: 400; cursor: pointer; }

/* Status page utilities */
.status-indicator { width: 5rem; height: 5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-lg); font-size: 2rem; color: #fff; }
.status-green { background: var(--green); }
.status-yellow { background: #e6a817; }
.status-red { background: #d44646; }

/* Contact email highlight */
.contact-email a { font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.contact-email a:hover { color: #f0c850; }

/* Hero service area note */
.hero-service-area { color: var(--text-muted); font-size: 0.9rem; margin-top: var(--space-sm); }

/* Responsive */
@media (max-width: 768px) {
  .intake-form { padding: var(--space-lg); }
  .form-section { padding: var(--space-md); }
  .form-submit { flex-direction: column; align-items: stretch; }
  .form-submit .btn-primary { width: 100%; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .form-checkbox-grid { grid-template-columns: 1fr; }
}


/* Maple Important Notice */
.maple-notice {
  display: block;
  width: min(100%, 760px);
  margin: var(--space-xl) auto;
  padding: 18px 28px;

  position: relative;
  color: var(--gold);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;

  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.30);
  border-radius: 18px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.maple-notice::before {
  content: '';
  display: block;
  width: 4rem;
  height: 2px;
  margin: 0 auto 0.75rem;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

/* Bold “Important:” label */
.maple-notice strong {
  color: var(--gold);
  font-weight: 700;
}

/* ================================================================
   AI INTAKE — "Signal" stage (2026)
   Living orb, progress constellation, typographic transcript,
   glass composer with conic shimmer. Two modes, one widget:
     .intake-root--floating  → FAB orb + compact panel (every page)
     .intake-root--stage     → full-viewport canvas (/start-intake)
   ================================================================ */

.intake-root {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;           /* inner elements manage hit areas */
  font-family: inherit;
}

.intake-root * { box-sizing: border-box; }

/* ================================================================
   FLOATING ORB FAB  (lives on every public page)
   ================================================================ */

.intake-fab-orb {
  pointer-events: auto;
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  padding: 0 64px 0 1.15rem;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(20, 28, 38, 0.94), rgba(12, 18, 26, 0.94));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 14px 42px -8px rgba(212, 175, 55, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease, background 260ms ease, border-color 260ms ease;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  overflow: visible;
  font-family: inherit;
  color: var(--text-primary);
}

.intake-fab-orb__core {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff5d0 0%, #f0c850 30%, #d4af37 65%, #8b7020 100%);
  box-shadow:
    0 0 22px -2px rgba(212, 175, 55, 0.55),
    inset 0 2px 8px rgba(255, 240, 180, 0.65),
    inset 0 -4px 10px rgba(60, 40, 0, 0.45);
  animation: fab-breathe 3.4s ease-in-out infinite;
}

.intake-fab-orb__ring {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  animation: fab-ripple 5s ease-out infinite;
  pointer-events: none;
}

.intake-fab-orb__ring::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  animation: fab-ripple 5s ease-out infinite 1.3s;
}

.intake-fab-orb__label {
  position: static;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 1;
  transform: none;
  transition: none;
  pointer-events: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.intake-fab-orb:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(28, 38, 50, 0.96), rgba(18, 26, 36, 0.96));
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow:
    0 20px 54px -8px rgba(212, 175, 55, 0.55),
    0 6px 20px rgba(0, 0, 0, 0.55);
}

.intake-fab-orb:hover .intake-fab-orb__core {
  box-shadow:
    0 0 30px 0 rgba(212, 175, 55, 0.7),
    inset 0 2px 8px rgba(255, 240, 180, 0.75),
    inset 0 -4px 10px rgba(60, 40, 0, 0.45);
}

@keyframes fab-breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(0.92); filter: brightness(1.15); }
}

@keyframes fab-ripple {
  0%   { transform: scale(1); opacity: 0.7; }
  75%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Attention nudge — one-shot tooltip shown 6s after first page load per session */
.intake-fab-orb__nudge {
  position: absolute;
  right: calc(100% + 16px);
  bottom: 50%;
  transform: translateY(50%);
  padding: 0.85rem 1.05rem;
  background: linear-gradient(135deg, rgba(20, 28, 38, 0.97), rgba(12, 18, 26, 0.97));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 240px;
  white-space: normal;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  animation: nudge-in 500ms cubic-bezier(.2,.8,.2,1) both;
}

.intake-fab-orb__nudge::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(18, 25, 34, 0.97);
  border-right: 1px solid rgba(212, 175, 55, 0.32);
  border-top: 1px solid rgba(212, 175, 55, 0.32);
}

.intake-fab-orb__nudge-kicker {
  display: block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

@keyframes nudge-in {
  from { opacity: 0; transform: translateY(50%) translateX(8px); }
  to   { opacity: 1; transform: translateY(50%) translateX(0); }
}

/* ================================================================
   STAGE — the conversation surface
   Default (floating-mode panel): bottom-right card.
   Stage-mode: full viewport overlay below sticky header.
   ================================================================ */

.intake-stage {
  pointer-events: auto;
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: min(440px, calc(100vw - 2rem));
  height: min(720px, calc(100vh - 3rem));
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(0, 102, 204, 0.22), transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(212, 175, 55, 0.18), transparent 55%),
    radial-gradient(ellipse at 45% 95%, rgba(0, 168, 107, 0.12), transparent 55%),
    linear-gradient(160deg, #0c121c 0%, #0a0e14 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(212, 175, 55, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* Stage mode: take over the viewport below the sticky header (z-index 1000).
   --maple-header-h is set at runtime by the widget init so the stage always
   clears the actual header, which wraps on narrower viewports. */
.intake-root--stage {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding-top: var(--maple-header-h, 96px);
  background: rgba(4, 7, 12, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.intake-root--stage .intake-fab-orb { display: none; }

/* Floating-panel: narrow (440px) even on desktop, so intro must stay compact
   regardless of viewport width. Same tightening as mobile stage mode. */
.intake-root--floating .intake-stage-intro {
  margin: 0 0.9rem 0.85rem;
  padding: 0.9rem 1rem 0.95rem;
  border-radius: 14px;
}
.intake-root--floating .intake-stage-intro__lede     { font-size: 0.9rem; margin-bottom: 0.65rem; line-height: 1.5; }
.intake-root--floating .intake-stage-intro__steps    { gap: 0.4rem; margin-bottom: 0.6rem; }
.intake-root--floating .intake-stage-intro__steps li { font-size: 0.82rem; padding-left: 1.7rem; line-height: 1.45; }
.intake-root--floating .intake-stage-intro__steps li::before { width: 1.2rem; height: 1.2rem; font-size: 0.68rem; }
.intake-root--floating .intake-stage-intro__steps li span    { font-size: 0.78rem; }
.intake-root--floating .intake-stage-intro__nudge    { font-size: 0.78rem; }
.intake-root--floating .intake-orb-wrap              { padding: 0.5rem 0 0.9rem; }
.intake-root--floating .intake-transcript            { padding: 0.9rem 1rem 0.5rem; gap: 1.1rem; }

.intake-root--stage .intake-stage {
  position: relative;
  inset: auto;
  margin: 1rem auto;
  width: min(1080px, calc(100% - 2rem));
  height: calc(100% - 2rem);
  border-radius: 32px;
}

/* -------- Aurora background + grain (background texture) -------- */

.intake-stage__aurora {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 22% 30%, rgba(0, 102, 204, 0.38) 0%, transparent 45%),
    radial-gradient(circle at 78% 68%, rgba(212, 175, 55, 0.32) 0%, transparent 42%),
    radial-gradient(circle at 55% 92%, rgba(0, 168, 107, 0.22) 0%, transparent 40%);
  filter: blur(48px);
  animation: aurora-drift 22s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

@keyframes aurora-drift {
  0%   { transform: rotate(0deg)  translate(0, 0)    scale(1); }
  33%  { transform: rotate(8deg)  translate(2%, -3%) scale(1.08); }
  66%  { transform: rotate(-5deg) translate(-3%, 2%) scale(1.02); }
  100% { transform: rotate(0deg)  translate(0, 0)    scale(1); }
}

.intake-stage__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* -------- Top bar (brand + close) -------- */

.intake-stage__topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  flex-shrink: 0;
}

.intake-stage__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.intake-stage__brand strong {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.intake-stage__brand-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.2);
  animation: brand-dot-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Tiny Maple logo sitting in the intake brand lockup. */
.intake-stage__sigil {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}

@keyframes brand-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.2); }
  50%      { box-shadow: 0 0 0 7px rgba(0, 168, 107, 0.04); }
}

.intake-stage__close {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 220ms ease;
  display: grid;
  place-items: center;
}

.intake-stage__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transform: rotate(90deg);
}

/* ================================================================
   THE ORB — layered circle with constellation progress
   ================================================================ */

.intake-orb-wrap {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0.75rem 0 1.25rem;
  flex-shrink: 0;
}

.intake-orb {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
}

.intake-root--stage .intake-orb {
  width: 220px;
  height: 220px;
}

.intake-orb__halo {
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.32) 0%, transparent 62%);
  filter: blur(14px);
  animation: orb-halo 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orb-halo {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.12); }
}

.intake-orb__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* Solid gold ring — picks up the gold trim in the Maple logo */
  background: conic-gradient(from 0deg,
    rgba(212, 175, 55, 0.25) 0%,
    rgba(244, 207, 87, 0.95) 25%,
    rgba(212, 175, 55, 0.55) 50%,
    rgba(244, 207, 87, 0.95) 75%,
    rgba(212, 175, 55, 0.25) 100%);
  -webkit-mask: radial-gradient(circle, transparent 51%, black 54%);
  mask: radial-gradient(circle, transparent 51%, black 54%);
  animation: orb-ring-spin 18s linear infinite;
  opacity: 0.95;
}

.intake-orb.is-thinking .intake-orb__ring {
  animation-duration: 2.8s;
  opacity: 1;
}

.intake-orb.is-done .intake-orb__ring {
  background: conic-gradient(from 0deg,
    rgba(0, 168, 107, 0.95) 0%,
    rgba(0, 168, 107, 0.45) 50%,
    rgba(0, 168, 107, 0.95) 100%);
  animation-duration: 9s;
}

@keyframes orb-ring-spin { to { transform: rotate(360deg); } }

/* ----- Gold sphere core — the "yellow orb" -----
   Sits inside the gold conic ring + halo. Mirrors the FAB orb core gradient. */

.intake-orb__core {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%,
    #fff3c8 0%,
    #f0c850 38%,
    #a8811a 88%);
  box-shadow:
    inset 0 2px 12px rgba(255, 240, 180, 0.55),
    inset 0 -6px 14px rgba(60, 40, 0, 0.4),
    0 4px 18px rgba(0, 0, 0, 0.4);
  z-index: 2;
  pointer-events: none;
  animation: orb-core-breathe 4.2s ease-in-out infinite;
}

@keyframes orb-core-breathe {
  0%, 100% { transform: scale(1);    opacity: 0.96; }
  50%      { transform: scale(1.025); opacity: 1;    }
}

.intake-orb.is-thinking .intake-orb__core {
  animation-duration: 2.2s;
}

.intake-orb.is-done .intake-orb__core {
  filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.55));
}

/* Constellation — 14 nodes orbiting the orb, one per required field */
.intake-orb__constellation {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intake-orb__node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  --radius: 92px;
  transform:
    translate(-50%, -50%)
    rotate(var(--a, 0deg))
    translateX(var(--radius))
    rotate(calc(-1 * var(--a, 0deg)));
  transition: background 400ms ease, box-shadow 500ms ease;
}

.intake-root--stage .intake-orb__node {
  --radius: 132px;
  width: 8px;
  height: 8px;
}

.intake-orb__node.is-filled {
  background: var(--gold);
  box-shadow:
    0 0 10px rgba(212, 175, 55, 0.9),
    0 0 22px rgba(212, 175, 55, 0.45);
  animation: node-light 700ms cubic-bezier(.2,.8,.2,1);
}

.intake-orb.is-done .intake-orb__node.is-filled {
  background: var(--green);
  box-shadow:
    0 0 10px rgba(0, 168, 107, 0.9),
    0 0 22px rgba(0, 168, 107, 0.45);
}

@keyframes node-light {
  0%   { transform: translate(-50%, -50%) rotate(var(--a, 0deg)) translateX(var(--radius)) rotate(calc(-1 * var(--a, 0deg))) scale(0.5); }
  45%  { transform: translate(-50%, -50%) rotate(var(--a, 0deg)) translateX(var(--radius)) rotate(calc(-1 * var(--a, 0deg))) scale(2.4); }
  100% { transform: translate(-50%, -50%) rotate(var(--a, 0deg)) translateX(var(--radius)) rotate(calc(-1 * var(--a, 0deg))) scale(1); }
}

/* ================================================================
   STAGE INTRO — welcomes visitors before they start typing.
   Sets context: full-stack, local, leads to a real human and an
   ongoing relationship. Fades out once the user sends a message.
   ================================================================ */

.intake-stage-intro {
  position: relative;
  z-index: 3;
  margin: 0 clamp(1rem, 4vw, 3rem) 1.1rem;
  padding: 1.1rem 1.25rem 1.15rem;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.07), rgba(92, 211, 205, 0.05) 55%, rgba(0, 102, 204, 0.05)),
    rgba(10, 14, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  /* Don't let the flex column squeeze this block — transcript's own overflow-y
     handles scroll if content exceeds the stage. Previously `overflow:hidden`
     here was clipping step 3 of the intro list at narrow widths. */
  flex-shrink: 0;
  animation: intro-in 520ms cubic-bezier(.2,.8,.2,1) both;
}

/* Faint tricolor accent bar on the left edge — visual echo of the brand */
.intake-stage-intro::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(to bottom,
    var(--gold) 0%,
    #5cd3cd 50%,           /* motmot turquoise */
    var(--blue) 100%);
  opacity: 0.55;
}

@keyframes intro-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intake-stage-intro__lede {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin: 0 0 0.85rem;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.intake-stage-intro__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 0.95rem;
  counter-reset: intro;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.intake-stage-intro__steps li {
  position: relative;
  padding-left: 1.95rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  counter-increment: intro;
}

.intake-stage-intro__steps li::before {
  content: counter(intro);
  position: absolute;
  left: 0;
  top: 0.08rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.13);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.intake-stage-intro__steps strong {
  color: var(--text-primary);
  font-weight: 600;
}

.intake-stage-intro__steps li span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.intake-stage-intro__nudge {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
  line-height: 1.5;
}

/* Leave transition — collapse + fade so the conversation flows cleanly once started */
.intake-stage-intro--leave       { transition: opacity 380ms ease, max-height 420ms cubic-bezier(.4,0,.2,1), margin 420ms ease, padding 420ms ease, border-width 380ms ease; overflow: hidden; }
.intake-stage-intro--leave-start { opacity: 1; max-height: 600px; }
.intake-stage-intro--leave-end   { opacity: 0; max-height: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }

/* ================================================================
   TRANSCRIPT — typographic, not SMS
   ================================================================ */

.intake-transcript {
  position: relative;
  z-index: 3;
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem clamp(1rem, 4vw, 3rem) 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.25) transparent;
  scroll-behavior: smooth;
}

.intake-transcript::-webkit-scrollbar { width: 6px; }
.intake-transcript::-webkit-scrollbar-track { background: transparent; }
.intake-transcript::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 3px;
}

.intake-line {
  position: relative;
  animation: line-in 420ms cubic-bezier(.2,.8,.2,1) both;
  opacity: 0.55;                     /* depth-of-field for older turns */
  transition: opacity 320ms ease;
}

.intake-line:last-of-type,
.intake-line:nth-last-of-type(2) { opacity: 1; }

.intake-line p {
  margin: 0;
  line-height: 1.55;
}

.intake-line--assistant {
  padding-left: 1rem;
}

.intake-line--assistant p {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 44ch;
}

.intake-line--assistant::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 3px;
  height: calc(100% - 1rem);
  background: linear-gradient(to bottom, var(--gold), rgba(212, 175, 55, 0.15) 70%, transparent);
  border-radius: 2px;
}

.intake-line--user {
  align-self: flex-end;
  max-width: 44ch;
  padding-right: 0.95rem;
  border-right: 2px solid rgba(0, 102, 204, 0.55);
}

.intake-line--user p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  font-style: italic;
  text-align: right;
}

.intake-line--seed p {
  color: var(--text-muted);
  font-size: 0.96rem;
  font-style: italic;
  max-width: 38ch;
}

@keyframes line-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 0.55; transform: translateY(0); }
}

/* Make sure the very last line animates to full opacity */
.intake-line:last-of-type { animation-name: line-in-top; }
@keyframes line-in-top {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Thinking dots — inline in the transcript, no bubble */
.intake-line--thinking {
  padding-left: 1rem;
  opacity: 1 !important;
}
.intake-line--thinking::before { display: none; }
.intake-line--thinking p { display: none; }

.intake-thinkdots {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
}

.intake-thinkdots i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  animation: thinkdot 1.2s ease-in-out infinite;
}

.intake-thinkdots i:nth-child(2) { animation-delay: 0.16s; }
.intake-thinkdots i:nth-child(3) { animation-delay: 0.32s; }

@keyframes thinkdot {
  0%, 60%, 100% { transform: translateY(0)    scale(0.8); opacity: 0.4; }
  30%           { transform: translateY(-6px) scale(1);   opacity: 1; }
}

/* ================================================================
   COMPOSER — glass field with conic shimmer on focus
   ================================================================ */

.intake-composer {
  position: relative;
  z-index: 3;
  margin: 0.75rem clamp(1rem, 4vw, 3rem) 0.5rem;
  padding: 0.5rem 0.55rem 0.5rem 1.1rem;
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  background: rgba(10, 14, 20, 0.62);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  transition: border-color 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

/* Conic shimmer ring — animates only when focused */
.intake-composer::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  padding: 1.5px;
  background: conic-gradient(from 0deg,
    transparent 0%,
    rgba(212, 175, 55, 0.85) 22%,
    transparent 46%,
    rgba(0, 102, 204, 0.75) 72%,
    transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  animation: composer-ring 6s linear infinite;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.intake-composer:focus-within::before { opacity: 1; }

.intake-composer:focus-within {
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.42),
    0 0 36px -8px rgba(212, 175, 55, 0.28);
}

@keyframes composer-ring { to { transform: rotate(360deg); } }

.intake-composer textarea {
  flex: 1;
  resize: none;
  min-height: 2.4rem;
  max-height: 12rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.6rem 0;
  font-weight: 400;
}

.intake-composer textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.intake-composer textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.intake-composer__send {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c850 0%, #d4af37 100%);
  color: #0a0e14;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 200ms ease, box-shadow 200ms ease, background 220ms ease;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.intake-composer__send:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.55);
}

.intake-composer__send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  box-shadow: none;
}

.intake-composer__send svg {
  width: 20px;
  height: 20px;
  transform: translateX(1px);
}

.intake-composer__send.is-loading svg {
  animation: send-spin 900ms linear infinite;
}

@keyframes send-spin { to { transform: rotate(360deg); } }

.intake-composer-hint {
  position: relative;
  z-index: 3;
  margin: 0 clamp(1rem, 4vw, 3rem) 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.06em;
}

.intake-composer-hint kbd {
  display: inline-block;
  padding: 0.08rem 0.38rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin: 0 0.1rem;
}

/* ================================================================
   QUICK-REPLY CHIPS — plain-language tappable answers under the
   latest assistant message. Keeps users unstuck.
   ================================================================ */

.intake-chips {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.3rem 0 0.2rem;
  padding-left: 1rem;                      /* align with the gold accent bar */
  animation: chips-in 380ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes chips-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intake-chip {
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.intake-chip:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.1));
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px rgba(212, 175, 55, 0.35);
}

.intake-chip:active {
  transform: translateY(0);
}

.intake-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.7), 0 6px 18px -4px rgba(212, 175, 55, 0.35);
}

/* Escape-hatch chips (e.g. "Not sure", "Explain the difference") — visually quieter */
.intake-chip--escape {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.intake-chip--escape:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-secondary);
  box-shadow: none;
}

/* ================================================================
   COMPLETION — done bloom + staggered timeline
   ================================================================ */

.intake-done {
  position: relative;
  z-index: 3;
  padding: 0.5rem 0;
  animation: done-bloom 700ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes done-bloom {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intake-done__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.intake-done__ref {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 0.82rem;
}

.intake-done__ref-label {
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.intake-done__ref-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.45);
  padding-bottom: 1px;
  transition: color 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.intake-done__ref-code:hover {
  color: #f4cf57;
  border-bottom-color: rgba(244, 207, 87, 0.85);
}

.intake-done__ref-hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.intake-done__ref-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  padding: 0;
  margin-left: 0.1rem;
}

.intake-done__ref-copy:hover {
  color: var(--text-primary);
}

/* Payoff artifact — the one-page property assessment. Rendered between
   the lede and the reference in the done screen so it's the first thing
   the prospect sees when the chat finishes. */
.intake-done__assessment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.intake-done__assessment:hover {
  border-color: rgba(212, 175, 55, 0.6);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.04));
  transform: translateY(-1px);
}

.intake-done__assessment-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.intake-done__assessment-cta {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.intake-done__timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.intake-done__timeline li {
  padding: 0.85rem 1.05rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  line-height: 1.45;
  animation: timeline-step 540ms cubic-bezier(.2,.8,.2,1) both;
  opacity: 0;
}

.intake-done__timeline li:nth-child(1) { animation-delay: 220ms; }
.intake-done__timeline li:nth-child(2) { animation-delay: 380ms; }
.intake-done__timeline li:nth-child(3) { animation-delay: 540ms; }

@keyframes timeline-step {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.intake-done__timeline strong {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-width: 90px;
  display: inline-block;
  flex-shrink: 0;
}

.intake-done__urgent {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.5;
}

.intake-done__urgent strong { color: var(--gold); }

.intake-done__actions {
  display: flex;
  justify-content: center;
  padding: 0.5rem clamp(1rem, 4vw, 3rem) 1.4rem;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.intake-done__home {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #f0c850 0%, #d4af37 100%);
  color: #0a0e14;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.42);
}

.intake-done__home:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.55);
}

/* ================================================================
   ERROR STATE
   ================================================================ */

.intake-error {
  position: relative;
  z-index: 3;
  margin: 0.4rem 0;
  padding: 0.85rem 1.1rem;
  background: rgba(212, 70, 70, 0.08);
  border: 1px solid rgba(212, 70, 70, 0.28);
  border-radius: 14px;
  color: #ffb4b4;
  font-size: 0.9rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  animation: line-in-top 420ms ease both;
}

.intake-error p { margin: 0; flex: 1; }

.intake-error__retry {
  padding: 0.42rem 0.95rem;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 180ms ease;
  white-space: nowrap;
}

.intake-error__retry:hover { background: rgba(255, 180, 180, 0.1); }

/* ================================================================
   ENTER / LEAVE TRANSITIONS (floating panel)
   ================================================================ */

.intake-stage--enter        { transition: transform 380ms cubic-bezier(.2,.8,.2,1), opacity 300ms ease; }
.intake-stage--enter-start  { transform: translateY(28px) scale(0.95); opacity: 0; }
.intake-stage--enter-end    { transform: translateY(0)    scale(1);    opacity: 1; }
.intake-stage--leave        { transition: transform 220ms ease, opacity 220ms ease; }
.intake-stage--leave-start  { opacity: 1; transform: scale(1); }
.intake-stage--leave-end    { opacity: 0; transform: scale(0.96); }

/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 640px) {
  .intake-stage {
    bottom: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    height: min(84vh, 680px);
    border-radius: 24px;
  }
  /* Collapse the FAB to an icon-only circle on phones. The labelled pill
     (~190px wide) spans the bottom-right corner and sits over page content;
     a 56px orb keeps the affordance without covering anything. The button's
     aria-label still announces it, and the nudge bubble carries the wording. */
  .intake-fab-orb {
    bottom: 1rem;
    right: 1rem;
    width: 56px;
    height: 56px;
    padding: 0;
  }
  .intake-fab-orb__core,
  .intake-fab-orb__ring {
    top: 4px;
    right: 4px;
    width: 48px;
    height: 48px;
  }
  .intake-fab-orb__label { display: none; }
  .intake-root--stage { padding-top: 64px; }
  .intake-root--stage .intake-stage {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
    height: calc(100% - 1rem);
    border-radius: 22px;
  }
  /* Tighter orb on mobile — 220px eats half the viewport; 140 feels right */
  .intake-root--stage .intake-orb {
    width: 140px;
    height: 140px;
  }
  .intake-root--stage .intake-orb__node { --radius: 85px; }
  .intake-orb-wrap { padding: 0.25rem 0 0.6rem; }
  .intake-stage__topbar { padding: 0.75rem 1rem; }

  /* Intro compresses to fit the stage without forcing internal scroll */
  .intake-stage-intro {
    margin: 0 0.75rem 0.75rem;
    padding: 0.9rem 1rem 0.95rem;
    border-radius: 14px;
  }
  .intake-stage-intro__lede     { font-size: 0.9rem; margin-bottom: 0.65rem; line-height: 1.5; }
  .intake-stage-intro__steps    { gap: 0.4rem; margin-bottom: 0.6rem; }
  .intake-stage-intro__steps li { font-size: 0.82rem; padding-left: 1.7rem; line-height: 1.45; }
  .intake-stage-intro__steps li::before { width: 1.2rem; height: 1.2rem; font-size: 0.68rem; }
  .intake-stage-intro__steps li span    { font-size: 0.78rem; }
  .intake-stage-intro__nudge    { font-size: 0.78rem; }

  .intake-line--assistant p { font-size: 1rem; }
  .intake-composer { margin: 0.5rem 0.9rem; }
  .intake-composer-hint { margin: 0 0.9rem 0.7rem; }
  .intake-transcript { padding: 0.8rem 0.9rem 0.5rem; gap: 1.1rem; }
}

/* ================================================================
   CAPTURED-FIELD CHIPS (replaces abstract orb constellation)
   ================================================================ */

.intake-captured {
  position: relative;
  z-index: 3;
  margin: 0.6rem 1rem 0.4rem;
  padding: 0.7rem 0.85rem 0.85rem;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06), rgba(212, 175, 55, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.intake-captured__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.intake-captured__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(240, 200, 80, 0.85);
  font-weight: 600;
}
.intake-captured__progress {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.intake-captured__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.intake-captured__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem 0.35rem 0.7rem;
  background: rgba(20, 26, 36, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 180ms ease;
  max-width: 100%;
  text-align: left;
  font-family: inherit;
}
.intake-captured__chip:hover {
  background: rgba(30, 40, 55, 0.85);
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
}
.intake-captured__chip.is-required {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(40, 32, 14, 0.55);
}
.intake-captured__chip.is-editing {
  outline: 2px solid rgba(240, 200, 80, 0.8);
  outline-offset: 2px;
}
.intake-captured__chip-label {
  color: rgba(240, 200, 80, 0.78);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.intake-captured__chip-value {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
}
.intake-captured__chip-edit {
  width: 12px;
  height: 12px;
  opacity: 0.4;
  flex-shrink: 0;
}
.intake-captured__chip:hover .intake-captured__chip-edit { opacity: 0.85; }

.intake-captured__editor {
  margin-top: 0.7rem;
  padding: 0.7rem;
  background: rgba(10, 14, 22, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
}
.intake-captured__editor-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(240, 200, 80, 0.85);
  margin-bottom: 0.35rem;
}
.intake-captured__editor-input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
}
.intake-captured__editor-input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.7);
  background: rgba(255, 255, 255, 0.07);
}
.intake-captured__editor-error {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: #ff8a8a;
}
.intake-captured__editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.intake-captured__editor-cancel,
.intake-captured__editor-save {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: all 160ms ease;
}
.intake-captured__editor-cancel {
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.15);
}
.intake-captured__editor-cancel:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.intake-captured__editor-save {
  background: linear-gradient(180deg, #d4af37, #a8811a);
  color: #1a1408;
}
.intake-captured__editor-save:hover { filter: brightness(1.1); }

/* ================================================================
   MODE PICKER — opening choice card
   ================================================================ */

.intake-mode-picker {
  margin: 0.5rem 0 1rem;
  padding: 0.5rem 0;
}
.intake-mode-picker__prompt {
  text-align: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
  font-weight: 500;
}
.intake-mode-picker__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
@media (min-width: 560px) {
  .intake-mode-picker__grid { grid-template-columns: repeat(3, 1fr); }
}

.intake-mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem 0.95rem;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.01));
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  cursor: pointer;
  transition: all 200ms ease;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.intake-mode-card:hover {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.13), rgba(212, 175, 55, 0.04));
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -10px rgba(212, 175, 55, 0.4);
}
.intake-mode-card__icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgba(240, 200, 80, 0.18);
  color: #f0c850;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.intake-mode-card__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}
.intake-mode-card__hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.35;
}

/* ================================================================
   CONFIRMATION CARD — summary turn before final submit
   ================================================================ */

.intake-confirm {
  margin: 0.8rem 0;
  padding: 1rem 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(0, 168, 107, 0.08), rgba(0, 168, 107, 0.02));
  border: 1px solid rgba(0, 168, 107, 0.35);
  border-radius: 14px;
}
.intake-confirm__lede {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.intake-confirm__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.intake-confirm__item {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.45rem 0.55rem;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
}
.intake-confirm__item-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.intake-confirm__item-value {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
  word-break: break-word;
}
.intake-confirm__item-edit {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  transition: all 160ms ease;
}
.intake-confirm__item-edit:hover {
  border-color: rgba(212, 175, 55, 0.55);
  color: #f0c850;
}
.intake-confirm__actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}
.intake-confirm__back,
.intake-confirm__send {
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: all 180ms ease;
}
.intake-confirm__back {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.18);
}
.intake-confirm__back:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.intake-confirm__send {
  background: linear-gradient(180deg, #00a86b, #007048);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(0, 168, 107, 0.5);
}
.intake-confirm__send:hover { filter: brightness(1.08); transform: translateY(-1px); }
.intake-confirm__send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ================================================================
   REDUCED MOTION — accessibility
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  .intake-stage__aurora,
  .intake-orb__ring,
  .intake-orb__halo,
  .intake-fab-orb__core,
  .intake-fab-orb__ring,
  .intake-fab-orb__ring::after,
  .intake-stage__brand-dot,
  .intake-composer::before,
  .intake-thinkdots i {
    animation: none !important;
  }
  .intake-line,
  .intake-error,
  .intake-done,
  .intake-done__timeline li,
  .intake-chips,
  .intake-stage-intro { animation-duration: 0ms !important; }
  .intake-chip:hover,
  .intake-mode-card:hover,
  .intake-captured__chip:hover,
  .intake-confirm__send:hover { transform: none; }
  .intake-stage__close:hover { transform: none; }
}

/* ================================================================
   INTAKE WIDGET — VERTICAL-SPACE ADAPTATION
   ----------------------------------------------------------------
   The floating panel is min(720px, calc(100vh - 3rem)) tall. On laptop
   screens shorter than ~800px (most non-desktop displays once you
   account for browser chrome), the orb + intro card + chips together
   exceed the available height and the intro text gets cut off.
   These media queries scale the orb down progressively and tighten
   the intro padding so the lede + the three chip cards stay fully
   visible without internal scroll.
   ================================================================ */

/* Tier 1: ≤ 800px viewport — shrink the orb and tighten halo */
@media (max-height: 800px) {
  .intake-root--floating .intake-orb-wrap { padding: 0.35rem 0 0.7rem; }
  .intake-root--floating .intake-orb { width: 110px; height: 110px; }
  .intake-root--floating .intake-orb__halo { inset: -22px; filter: blur(10px); }
  .intake-root--floating .intake-stage-intro { margin: 0 0.9rem 0.7rem; padding: 0.75rem 0.95rem 0.85rem; }
  .intake-root--floating .intake-stage-intro__lede { font-size: 0.86rem; margin-bottom: 0.55rem; line-height: 1.45; }
  .intake-root--floating .intake-stage-intro__steps { gap: 0.32rem; margin-bottom: 0.5rem; }
  .intake-root--floating .intake-stage-intro__steps li { font-size: 0.78rem; padding-left: 1.55rem; line-height: 1.4; }
  .intake-root--floating .intake-stage-intro__nudge { font-size: 0.74rem; }
}

/* Tier 2: ≤ 700px viewport — orb gets even smaller, padding tightens further */
@media (max-height: 700px) {
  .intake-root--floating .intake-orb-wrap { padding: 0.2rem 0 0.5rem; }
  .intake-root--floating .intake-orb { width: 78px; height: 78px; }
  .intake-root--floating .intake-orb__halo { inset: -14px; filter: blur(8px); opacity: 0.7; }
  .intake-root--floating .intake-stage-intro { margin: 0 0.85rem 0.55rem; padding: 0.65rem 0.85rem 0.7rem; }
  .intake-root--floating .intake-stage-intro__lede { font-size: 0.82rem; margin-bottom: 0.45rem; line-height: 1.4; }
  .intake-root--floating .intake-transcript { padding: 0.6rem 0.85rem 0.4rem; gap: 0.85rem; }
}

/* Tier 3: ≤ 600px viewport — hide the orb entirely so the conversation
   gets all the available room. The header brand still anchors identity. */
@media (max-height: 600px) {
  .intake-root--floating .intake-orb-wrap { display: none; }
  .intake-root--floating .intake-stage-intro { margin: 0.5rem 0.75rem 0.5rem; padding: 0.6rem 0.8rem 0.65rem; }
  .intake-root--floating .intake-stage-intro__lede { font-size: 0.8rem; margin-bottom: 0.4rem; line-height: 1.4; }
  .intake-root--floating .intake-stage-intro__steps li { font-size: 0.75rem; }
  .intake-root--floating .intake-stage-intro__nudge { font-size: 0.72rem; margin-top: 0.3rem; }
  .intake-root--floating .intake-transcript { gap: 0.7rem; }
}

/* Stage (full-viewport) mode — same idea on truly tiny phone landscapes.
   The aurora background still reads even with the orb hidden. */
@media (max-height: 500px) {
  .intake-root--stage .intake-orb-wrap { display: none; }
  .intake-root--stage .intake-stage-intro__lede { font-size: 0.86rem; }
}

/* Captured-chips header grows as fields fill (3+ rows once 8/9 captured) and on
   short viewports it can eat the transcript area, pushing the latest assistant
   message off-screen. Cap its height with internal scroll so the conversation
   always has room. */
@media (max-height: 700px) {
  .intake-root--floating .intake-captured {
    max-height: 105px;
    overflow-y: auto;
  }
}
@media (max-height: 600px) {
  .intake-root--floating .intake-captured {
    max-height: 80px;
  }
}

/* =====================================================
   maple.zip merge — prototype-derived rules (.maple-2026)
   Scoped under .maple-2026 to coexist with existing CSS
   without colliding with the in-progress color-token refactor.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:ital,wght@0,400;0,500;0,600;1,400;1,500&family=JetBrains+Mono:wght@400;500;600&display=swap');

.maple-2026 {
  --m26-bg: #0a0e14;
  --m26-bg-soft: #0f1520;
  --m26-bg-elev: #141c2a;
  --m26-bg-warm: #16202e;
  --m26-line: rgba(212,175,55,.14);
  --m26-line-2: rgba(160,180,220,.10);
  --m26-line-strong: rgba(212,175,55,.32);
  --m26-ink: #eef2f8;
  --m26-ink-2: #b6bfcd;
  --m26-ink-3: #9ca5b5; /* was #828c9e (~3.4:1 on card bg); #9ca5b5 gives ~5.3:1 — AA pass */
  --m26-gold: #d4af37;
  --m26-gold-hi: #f0c850;
  --m26-blue: #4a92ff;
  --m26-blue-deep: #0066cc;
  --m26-green: #29c08a;
  --m26-accent: var(--m26-gold);
  --m26-accent-ink: #1a1408;
  --m26-grid: rgba(255,255,255,.04);
  --m26-hero-bg:
    radial-gradient(110% 70% at 80% 0%, rgba(74,146,255,.18), transparent 55%),
    radial-gradient(80% 60% at 10% 100%, rgba(212,175,55,.13), transparent 60%),
    linear-gradient(180deg, #0a0e14, #0a0e14);
  --m26-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --m26-display: 'Fraunces', Georgia, serif;
  --m26-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --m26-pad: 6rem;
  --m26-pad-card: 1.75rem;
  --m26-gap: 1.5rem;
}

.maple-2026 {
  background: var(--m26-bg);
  color: var(--m26-ink);
  font-family: var(--m26-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.maple-2026 a { color: inherit; text-decoration: none; }
.maple-2026 button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
.maple-2026 img, .maple-2026 svg { display: block; max-width: 100%; }
.maple-2026 .container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

.maple-2026 h1, .maple-2026 h2, .maple-2026 h3, .maple-2026 h4 {
  font-family: var(--m26-display);
  color: var(--m26-ink);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 500;
}
.maple-2026 h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.maple-2026 h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.maple-2026 h3 { font-size: clamp(1.1rem, 1.4vw, 1.25rem); font-weight: 600; }
.maple-2026 p { color: var(--m26-ink-2); }

.maple-2026 .eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--m26-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--m26-ink-3);
  padding: .4rem .8rem; border: 1px solid var(--m26-line); border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.maple-2026 .eyebrow::before {
  content: ""; width: 18px; height: 1px;
  background: var(--m26-accent); opacity: .8;
}

/* ---------- HEADER ---------- */
.maple-2026 .site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--m26-bg) 84%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--m26-line);
  min-height: 80px;
}
.maple-2026 .site-header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, var(--m26-blue) 0%, var(--m26-gold) 50%, var(--m26-green) 100%);
  opacity: .55;
}
.maple-2026 .header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 2rem; min-height: 80px;
}
@media (max-width: 980px) {
  .maple-2026 .header-inner { grid-template-columns: auto auto; min-height: 64px; }
}
.maple-2026 .brand { display: inline-flex; align-items: center; gap: .7rem; }
.maple-2026 .brand-mark {
  width: 42px; height: 42px; flex-shrink: 0;
  object-fit: contain; display: block;
}
.maple-2026 .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.maple-2026 .brand-name {
  font-family: var(--m26-display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -.01em; color: var(--m26-ink);
}
.maple-2026 .brand-sub {
  font-family: var(--m26-mono); font-size: .66rem; color: var(--m26-blue);
  letter-spacing: .20em; text-transform: uppercase; margin-top: 2px; opacity: .85;
}
.maple-2026 .main-nav { justify-self: center; }
.maple-2026 .main-nav ul { list-style: none; display: flex; gap: 2px; align-items: center; padding: 4px; border: 1px solid var(--m26-line); border-radius: 999px; background: color-mix(in oklab, var(--m26-bg-soft) 90%, transparent); }
.maple-2026 .main-nav a {
  display: inline-flex; align-items: center; padding: .55rem 1.05rem;
  font-size: .92rem; font-weight: 500; color: var(--m26-ink-2);
  border-radius: 999px; transition: color .2s, background .2s, box-shadow .2s;
  white-space: nowrap;
}
.maple-2026 .main-nav a:hover { color: var(--m26-ink); background: color-mix(in oklab, var(--m26-ink) 6%, transparent); }
.maple-2026 .main-nav a.is-current,
.maple-2026 .main-nav li.current a {
  color: var(--m26-ink);
  background: color-mix(in oklab, var(--m26-accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--m26-accent) 40%, transparent);
}
@media (max-width: 980px) { .maple-2026 .main-nav { display: none; } }

/* ----- MOBILE MENU (hamburger + dropdown panel)
   Load-bearing for narrow widths — without these rules, the entire site
   nav becomes unreachable on mobile. Locked in FEATURES.md (`mobile-menu`).
   Markup: <button class="nav-toggle"> in public.php; Alpine binds .is-open
   on .site-header when toggled.
   ----- */
.maple-2026 .nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--m26-line);
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.maple-2026 .nav-toggle:hover { background: color-mix(in oklab, var(--m26-accent) 8%, transparent); border-color: var(--m26-line-strong); }
.maple-2026 .nav-toggle:focus-visible { outline: 2px solid var(--m26-accent); outline-offset: 2px; }

.maple-2026 .nav-toggle-icon,
.maple-2026 .nav-toggle-icon::before,
.maple-2026 .nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--m26-gold);
  border-radius: 1px;
  transition: transform .2s ease, top .2s ease, background .2s ease, opacity .2s ease;
}
.maple-2026 .nav-toggle-icon { position: relative; }
.maple-2026 .nav-toggle-icon::before,
.maple-2026 .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.maple-2026 .nav-toggle-icon::before { top: -6px; }
.maple-2026 .nav-toggle-icon::after  { top:  6px; }

/* Animate hamburger -> X when open */
.maple-2026 .site-header.is-open .nav-toggle-icon { background: transparent; }
.maple-2026 .site-header.is-open .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.maple-2026 .site-header.is-open .nav-toggle-icon::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .maple-2026 .header-inner { grid-template-columns: 1fr auto; }
  .maple-2026 .nav-toggle { display: inline-flex; }

  /* At narrow widths the inline header-right collapses to just the Start
     Intake CTA (lang toggle + locale chip move into the open dropdown). */
  .maple-2026 .header-right .lang-toggle,
  .maple-2026 .header-right .locale { display: none; }
  .maple-2026 .header-right { gap: .5rem; }

  /* Drop-down menu panel — revealed when .is-open is set on .site-header.
     Uses position:fixed to escape the parent's grid containing block —
     position:absolute would inherit the nav's grid cell width (146px).
     The 64px top matches the .maple-2026 .header-inner min-height at
     <980px (set above). */
  .maple-2026 .site-header.is-open .main-nav {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--m26-bg);
    border-top: 1px solid var(--m26-line);
    border-bottom: 1px solid var(--m26-line);
    padding: 1rem 1.5rem;
    z-index: 49;
    box-sizing: border-box;
  }
  .maple-2026 .site-header.is-open .main-nav ul {
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    gap: 0;
  }
  .maple-2026 .site-header.is-open .main-nav a {
    display: block;
    padding: .9rem 0;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--m26-line-2);
  }
  .maple-2026 .site-header.is-open .main-nav li:last-child a { border-bottom: 0; }

  /* Lang toggle re-appears inside the dropdown, slotted under nav links */
  .maple-2026 .site-header.is-open .main-nav::after {
    content: "";
    display: block;
  }
}

.maple-2026 .header-right { display: inline-flex; align-items: center; gap: .85rem; }
.maple-2026 .lang-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .7rem; font-family: var(--m26-mono); font-size: .75rem;
  letter-spacing: .12em; color: var(--m26-ink-2);
  border-radius: 8px; border: 1px solid var(--m26-line);
  background: rgba(255,255,255,.02);
  min-height: 44px; /* E-1: touch target */
}
.maple-2026 .lang-toggle__active { color: var(--m26-ink); font-weight: 600; }
.maple-2026 .lang-toggle__alt {
  color: var(--m26-ink-3);
  /* E-1: extend tap area to 44px without visual bloat */
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 .25rem;
  margin: 0 -.25rem;
}
.maple-2026 .lang-toggle__alt:hover { color: var(--m26-ink); }
.maple-2026 .locale {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .7rem; font-family: var(--m26-mono); font-size: .7rem;
  letter-spacing: .12em; color: var(--m26-ink-2);
  border-radius: 8px; border: 1px solid var(--m26-line);
  background: rgba(255,255,255,.02);
}
@media (max-width: 780px) { .maple-2026 .locale { display: none; } }
.maple-2026 .locale .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--m26-green);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--m26-green) 22%, transparent);
  animation: m26pulse 2.4s infinite;
}
@keyframes m26pulse { 50% { box-shadow: 0 0 0 5px color-mix(in oklab, var(--m26-green) 6%, transparent); } }

/* ---------- BUTTONS ---------- */
.maple-2026 .btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.3rem; font-weight: 600; font-size: .93rem;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.maple-2026 .btn-primary {
  background: linear-gradient(135deg, var(--m26-gold-hi), var(--m26-gold));
  color: var(--m26-accent-ink);
  box-shadow: 0 8px 22px -8px var(--m26-gold), inset 0 1px 0 rgba(255,255,255,.4);
}
.maple-2026 .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px var(--m26-gold); }
/* Suppress the legacy ::after arrow on .btn-primary so our inline .arrow span doesn't double up. */
.maple-2026 .btn-primary::after { content: none; }
.maple-2026 .header-cta a::after { content: none; }
.maple-2026 .btn-secondary { background: transparent; color: var(--m26-ink); border-color: var(--m26-line-strong); }
.maple-2026 .btn-secondary:hover { background: color-mix(in oklab, var(--m26-ink) 5%, transparent); }
.maple-2026 .btn .arrow { transition: transform .2s; }
.maple-2026 .btn:hover .arrow { transform: translateX(3px); }

/* ---------- HERO ---------- */
.maple-2026 .hero {
  position: relative; padding: clamp(3rem, 6vw, 5rem) 0 var(--m26-pad);
  overflow: hidden;
}
.maple-2026 .hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--m26-hero-bg); pointer-events: none;
}
.maple-2026 .hero-grid {
  position: relative; display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 980px) { .maple-2026 .hero-grid { grid-template-columns: 1fr; } }
.maple-2026 .hero-eyebrow { margin-bottom: 1.4rem; }
.maple-2026 .hero h1 { margin: 0 0 1.4rem; text-wrap: balance; }
.maple-2026 .hero h1 em {
  font-style: italic; color: var(--m26-accent); font-weight: 400;
  background: linear-gradient(135deg, var(--m26-gold-hi), var(--m26-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.maple-2026 .hero-lede {
  font-size: 1.15rem; color: var(--m26-ink-2);
  max-width: 38ch; margin-bottom: 2rem; text-wrap: pretty;
}
.maple-2026 .hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; }
.maple-2026 .hero-meta {
  margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  font-size: .84rem; color: var(--m26-ink-3);
  font-family: var(--m26-mono); letter-spacing: .04em;
}
.maple-2026 .hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.maple-2026 .hero-meta span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--m26-green);
}

/* ---------- HERO DIAGRAM ---------- */
.maple-2026 .diagram {
  position: relative; aspect-ratio: 1/1; width: 100%; max-width: 540px;
  margin-left: auto; border-radius: 22px; border: 1px solid var(--m26-line);
  background:
    linear-gradient(var(--m26-grid) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg, var(--m26-grid) 1px, transparent 1px) 0 0/24px 24px,
    color-mix(in oklab, var(--m26-bg-elev) 92%, transparent);
  overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0,0,0,.55);
}
.maple-2026 .diagram-label {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--m26-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--m26-ink-3);
}
.maple-2026 .diagram-label::before { content: "▸ "; color: var(--m26-accent); }
.maple-2026 .diagram-stamp {
  position: absolute; top: 1rem; right: 1rem;
  font-family: var(--m26-mono); font-size: .65rem; color: var(--m26-ink-3);
  letter-spacing: .06em; text-align: right; line-height: 1.6;
}
.maple-2026 .diagram-stamp b { color: var(--m26-ink); font-weight: 600; }
.maple-2026 .diagram-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.maple-2026 .diagram .node-circle {
  fill: var(--m26-bg-elev); stroke: var(--m26-line-strong); stroke-width: 1.5;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
}
.maple-2026 .diagram .node-active .node-circle {
  stroke: var(--m26-accent);
  fill: color-mix(in oklab, var(--m26-accent) 18%, var(--m26-bg-elev));
}
.maple-2026 .diagram .node-label {
  font-family: var(--m26-mono); font-size: 9px;
  fill: var(--m26-ink-2); text-anchor: middle; letter-spacing: .06em;
}
.maple-2026 .diagram .node-active .node-label { fill: var(--m26-ink); font-weight: 600; }
.maple-2026 .diagram .node-icon {
  font-family: var(--m26-mono); font-size: 13px; font-weight: 600;
  fill: var(--m26-ink-2); text-anchor: middle; dominant-baseline: central;
}
.maple-2026 .diagram .node-active .node-icon { fill: var(--m26-accent); }
.maple-2026 .diagram .link { stroke: var(--m26-line-strong); stroke-width: 1.2; fill: none; stroke-dasharray: 3 3; }
.maple-2026 .diagram .link.live {
  stroke: var(--m26-green); stroke-dasharray: none; stroke-width: 1.6;
  filter: drop-shadow(0 0 4px color-mix(in oklab, var(--m26-green) 60%, transparent));
}
.maple-2026 .diagram .link-mgmt { stroke: var(--m26-accent); stroke-width: 1; fill: none; stroke-dasharray: 1 4; opacity: .55; }
.maple-2026 .diagram .pulse { fill: var(--m26-green); opacity: 0; animation: m26pulseDot 2.4s linear infinite; }
.maple-2026 .diagram .pulse-mgmt { fill: var(--m26-accent); animation-duration: 3s; }
.maple-2026 .diagram .node-mgmt .node-circle {
  stroke: var(--m26-accent); stroke-width: 2;
  fill: color-mix(in oklab, var(--m26-accent) 22%, var(--m26-bg-elev));
}
@keyframes m26pulseDot { 0% {opacity:0} 10% {opacity:.95} 100% {opacity:0} }
.maple-2026 .diagram-legend {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--m26-mono); font-size: .62rem;
  letter-spacing: .1em; color: var(--m26-ink-3); text-transform: uppercase;
}
.maple-2026 .diagram-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.maple-2026 .diagram-legend i { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- SECTION HEAD ---------- */
.maple-2026 .section-head { max-width: 780px; margin: 0 0 var(--m26-gap); }
.maple-2026 .section-head .eyebrow { margin-bottom: 1.25rem; }
.maple-2026 .section-head h2 { margin-bottom: 1rem; text-wrap: balance; }
.maple-2026 .section-head p { font-size: 1.1rem; color: var(--m26-ink-2); max-width: 60ch; text-wrap: pretty; }

/* ---------- ENV STRIP ---------- */
.maple-2026 .env-strip {
  padding: var(--m26-pad) 0;
  border-top: 1px solid var(--m26-line);
  border-bottom: 1px solid var(--m26-line);
  background: color-mix(in oklab, var(--m26-bg-soft) 60%, transparent);
}
.maple-2026 .env-strip__head {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px dashed var(--m26-line);
  font-family: var(--m26-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--m26-ink-3);
}
.maple-2026 .env-strip__label { color: var(--m26-accent); }
.maple-2026 .env-strip__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--m26-line); border: 1px solid var(--m26-line); border-radius: 14px; overflow: hidden;
}
@media (max-width: 980px) { .maple-2026 .env-strip__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .maple-2026 .env-strip__grid { grid-template-columns: repeat(2, 1fr); } }
.maple-2026 .env-cell {
  padding: 1.25rem; background: var(--m26-bg-elev);
  display: flex; flex-direction: column; gap: .35rem;
}
.maple-2026 .env-cell__k { font-family: var(--m26-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--m26-ink-3); }
.maple-2026 .env-cell__v { font-family: var(--m26-display); font-size: 1.15rem; font-weight: 500; color: var(--m26-ink); }
.maple-2026 .env-cell__d { font-size: .82rem; color: var(--m26-ink-2); line-height: 1.45; }

/* ---------- STATS ---------- */
.maple-2026 .stats { padding: var(--m26-pad) 0; border-top: 1px solid var(--m26-line); border-bottom: 1px solid var(--m26-line); background: color-mix(in oklab, var(--m26-bg-soft) 60%, transparent); }
.maple-2026 .stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
@media (max-width: 880px) { .maple-2026 .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.maple-2026 .stat {
  padding: var(--m26-pad-card); border: 1px solid var(--m26-line); border-radius: 14px;
  background: var(--m26-bg-elev); position: relative; overflow: hidden;
}
.maple-2026 .stat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--m26-accent); opacity: .7;
}
.maple-2026 .stat-value {
  font-family: var(--m26-mono); font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500; color: var(--m26-ink); letter-spacing: -.02em; line-height: 1;
  display: flex; align-items: baseline; gap: .3rem;
}
.maple-2026 .stat-value sup { font-size: .5em; color: var(--m26-accent); font-weight: 600; }
.maple-2026 .stat-label { font-size: .86rem; color: var(--m26-ink-2); margin-top: .55rem; line-height: 1.45; }
.maple-2026 .stat-foot {
  font-family: var(--m26-mono); font-size: .65rem; color: var(--m26-ink-3);
  letter-spacing: .14em; text-transform: uppercase; margin-top: .55rem;
}

/* ---------- SERVICES ---------- */
.maple-2026 .services { padding: var(--m26-pad) 0; border-top: 1px solid var(--m26-line); }
.maple-2026 .svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 980px) { .maple-2026 .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .maple-2026 .svc-grid { grid-template-columns: 1fr; } }
.maple-2026 .svc-card {
  padding: var(--m26-pad-card);
  border: 1px solid var(--m26-line); border-radius: 16px;
  background: var(--m26-bg-elev);
  display: flex; flex-direction: column; gap: .85rem;
  transition: border-color .2s, transform .2s;
}
.maple-2026 .svc-card:hover { border-color: var(--m26-line-strong); transform: translateY(-2px); }
.maple-2026 .svc-num {
  font-family: var(--m26-mono); font-size: .72rem; letter-spacing: .14em;
  color: var(--m26-accent); margin-bottom: -.4rem;
}
.maple-2026 .svc-meta { display: flex; flex-direction: column; gap: .25rem; }
.maple-2026 .svc-meta h3 { font-family: var(--m26-display); font-size: 1.4rem; font-weight: 500; color: var(--m26-ink); }
.maple-2026 .svc-sub { font-family: var(--m26-mono); font-size: .72rem; letter-spacing: .08em; color: var(--m26-ink-3); }
.maple-2026 .svc-card p { font-size: .94rem; color: var(--m26-ink-2); line-height: 1.55; text-wrap: pretty; }

/* ---------- LAYERS ---------- */
.maple-2026 .layers { padding: var(--m26-pad) 0; border-top: 1px solid var(--m26-line); background: var(--m26-bg-soft); }
.maple-2026 .layer-stack { list-style: none; display: flex; flex-direction: column; gap: 1rem; padding: 0; margin: 2rem 0 0; }
.maple-2026 .layer-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2rem;
  padding: 1.5rem 0; border-bottom: 1px dashed var(--m26-line);
  align-items: center;
}
.maple-2026 .layer-row:last-child { border-bottom: 0; }
@media (max-width: 780px) {
  .maple-2026 .layer-row { grid-template-columns: 1fr; gap: 1rem; }
  .maple-2026 .layer-row__diagram { display: none; }
}
.maple-2026 .layer-row__num { display: flex; flex-direction: column; align-items: center; gap: .4rem; min-width: 4rem; }
.maple-2026 .layer-row__n {
  font-family: var(--m26-mono); font-size: 1.4rem; font-weight: 600;
  color: var(--m26-accent); letter-spacing: -.02em;
}
.maple-2026 .layer-row__rule { width: 1px; height: 32px; background: var(--m26-line); }
.maple-2026 .layer-row__body h3 { font-family: var(--m26-display); font-size: 1.5rem; font-weight: 500; color: var(--m26-ink); margin-bottom: .25rem; }
.maple-2026 .layer-row__sub { font-family: var(--m26-mono); font-size: .72rem; letter-spacing: .08em; color: var(--m26-ink-3); display: block; margin-bottom: .5rem; }
.maple-2026 .layer-row__body p { font-size: .96rem; color: var(--m26-ink-2); line-height: 1.55; }
.maple-2026 .layer-row__diagram { color: var(--m26-accent); opacity: .85; }
.maple-2026 .layer-row__diagram svg { width: 72px; height: 72px; }

/* ---------- COVERAGE ---------- */
.maple-2026 .coverage { padding: var(--m26-pad) 0; border-top: 1px solid var(--m26-line); }
.maple-2026 .coverage-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; margin-top: 2rem;
}
@media (max-width: 980px) { .maple-2026 .coverage-grid { grid-template-columns: 1fr; } }
.maple-2026 .coverage-map {
  position: relative; aspect-ratio: 1/1; width: 100%;
  border: 1px solid var(--m26-line); border-radius: 18px; overflow: hidden;
  background:
    linear-gradient(var(--m26-grid) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, var(--m26-grid) 1px, transparent 1px) 0 0/40px 40px,
    var(--m26-bg-elev);
  padding: 1rem;
}
.maple-2026 .coverage-map__label {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-family: var(--m26-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--m26-ink-3);
}
.maple-2026 .coverage-map__svg { width: 100%; height: 100%; }
.maple-2026 .coverage-map__legend {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--m26-mono); font-size: .62rem; letter-spacing: .1em;
  color: var(--m26-ink-3); text-transform: uppercase;
}
.maple-2026 .coverage-map__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.maple-2026 .coverage-map__legend .dot { width: 8px; height: 8px; border-radius: 50%; }
.maple-2026 .coverage-map__legend .dot-base { background: var(--m26-accent); }
.maple-2026 .coverage-map__legend .dot-on { background: var(--m26-ink); }
.maple-2026 .coverage-side h3.coverage-side__h {
  font-family: var(--m26-mono); font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--m26-ink-3); margin-bottom: 1rem;
}
.maple-2026 .isp-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; padding: 0; }
.maple-2026 .isp { padding: 1rem 1.25rem; border: 1px solid var(--m26-line); border-radius: 12px; background: var(--m26-bg-elev); }
.maple-2026 .isp__head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .35rem; }
.maple-2026 .isp__head strong { font-family: var(--m26-display); font-size: 1.1rem; font-weight: 600; color: var(--m26-ink); }
.maple-2026 .isp__type { font-family: var(--m26-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--m26-accent); }
.maple-2026 .isp__cov { font-size: .85rem; color: var(--m26-ink-2); margin-bottom: .25rem; }
.maple-2026 .isp__notes { font-size: .82rem; color: var(--m26-ink-3); line-height: 1.5; }

/* ---------- HOW (DAY-IN-LIFE TIMELINE) ---------- */
.maple-2026 .how { padding: var(--m26-pad) 0; border-top: 1px solid var(--m26-line); background: var(--m26-bg-soft); }
.maple-2026 .how-timeline { list-style: none; display: flex; flex-direction: column; gap: .25rem; padding: 0; margin: 2rem 0 0; }
.maple-2026 .how-row {
  display: grid; grid-template-columns: auto auto 1fr; gap: 1.25rem 2rem;
  padding: 1.25rem 0; border-bottom: 1px dashed var(--m26-line);
  align-items: baseline;
}
.maple-2026 .how-row:last-child { border-bottom: 0; }
@media (max-width: 780px) {
  .maple-2026 .how-row { grid-template-columns: auto 1fr; }
  .maple-2026 .how-who { grid-column: 1 / -1; }
}
.maple-2026 .how-time { font-family: var(--m26-mono); font-size: .92rem; font-weight: 600; color: var(--m26-accent); letter-spacing: .04em; min-width: 4rem; }
.maple-2026 .how-who { font-family: var(--m26-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--m26-ink-3); padding: .25rem .55rem; border: 1px solid var(--m26-line); border-radius: 999px; }
.maple-2026 .how-body h4 { font-family: var(--m26-display); font-size: 1.15rem; font-weight: 600; color: var(--m26-ink); margin-bottom: .35rem; }
.maple-2026 .how-body p { font-size: .92rem; color: var(--m26-ink-2); line-height: 1.55; text-wrap: pretty; }

/* ---------- CASE INDEX ---------- */
.maple-2026 .case-index { padding: var(--m26-pad) 0; border-top: 1px solid var(--m26-line); }
.maple-2026 .case-chapter { margin-top: 2.75rem; padding-top: 2rem; border-top: 1px dashed var(--m26-line); }
.maple-2026 .case-chapter:first-of-type { margin-top: 2rem; padding-top: 0; border-top: 0; }
.maple-2026 .case-chapter__head {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2rem;
  align-items: start; margin-bottom: 1.5rem; padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--m26-line);
}
@media (max-width: 780px) { .maple-2026 .case-chapter__head { grid-template-columns: 1fr; gap: 1rem; } }
.maple-2026 .case-chapter__badge { display: flex; align-items: center; gap: 1rem; }
.maple-2026 .case-chapter__flag {
  font-size: 2.4rem; line-height: 1; filter: saturate(1.1);
  /* Use system emoji fonts so 🇨🇦/🇨🇷 regional indicators compose into flag glyphs
     instead of falling back to plain letters under Inter/Fraunces. */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Twemoji Mozilla", EmojiOne, sans-serif;
}
.maple-2026 .case-chapter__meta { display: flex; flex-direction: column; gap: .15rem; min-width: 18rem; white-space: nowrap; }
.maple-2026 .case-chapter__num { font-family: var(--m26-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--m26-ink-3); }
.maple-2026 .case-chapter__where { font-family: var(--m26-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; color: var(--m26-ink); }
.maple-2026 .case-chapter__period { font-family: var(--m26-mono); font-size: .72rem; letter-spacing: .08em; color: var(--m26-accent); }
.maple-2026 .case-chapter__intro {
  font-size: 1rem; color: var(--m26-ink-2); line-height: 1.55;
  text-wrap: pretty; max-width: 58ch; align-self: center;
  font-style: italic; padding-left: 1.25rem;
  border-left: 2px solid color-mix(in oklab, var(--m26-accent) 60%, var(--m26-line));
}
.maple-2026 .case-chapter--costa-rica { position: relative; }
.maple-2026 .case-chapter--costa-rica::before {
  content: "NEW CHAPTER"; position: absolute; top: -.65rem; left: 0;
  font-family: var(--m26-mono); font-size: .62rem; letter-spacing: .22em;
  color: var(--m26-accent); background: var(--m26-bg); padding: 0 .55rem;
}

.maple-2026 .case-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.maple-2026 .case-chapter--costa-rica .case-cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .maple-2026 .case-chapter--costa-rica .case-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px) { .maple-2026 .case-cards, .maple-2026 .case-chapter--costa-rica .case-cards { grid-template-columns: 1fr; } }

.maple-2026 .case-card {
  padding: 1.5rem; border: 1px solid var(--m26-line); border-radius: 16px;
  background: var(--m26-bg-elev); display: flex; flex-direction: column;
  gap: .85rem; transition: border-color .2s, transform .2s;
  text-decoration: none; color: inherit;
}
.maple-2026 .case-card:hover { border-color: var(--m26-line-strong); transform: translateY(-2px); }
.maple-2026 .case-card.is-featured {
  border-color: color-mix(in oklab, var(--m26-accent) 50%, var(--m26-line));
  background: linear-gradient(180deg, color-mix(in oklab, var(--m26-accent) 6%, var(--m26-bg-elev)), var(--m26-bg-elev) 60%);
}
.maple-2026 .case-card__head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.maple-2026 .case-card__kind { font-family: var(--m26-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--m26-ink-3); }
.maple-2026 .case-card__tag { font-family: var(--m26-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--m26-accent); padding: .2rem .55rem; border: 1px solid color-mix(in oklab, var(--m26-accent) 50%, transparent); border-radius: 999px; }
.maple-2026 .case-card__name { font-family: var(--m26-display); font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; color: var(--m26-ink); }
.maple-2026 .case-card__where { font-family: var(--m26-mono); font-size: .72rem; letter-spacing: .1em; color: var(--m26-ink-3); margin-top: -.4rem; }
.maple-2026 .case-card__one { font-size: .95rem; color: var(--m26-ink-2); line-height: 1.55; text-wrap: pretty; }
.maple-2026 .case-card__scope { display: flex; flex-wrap: wrap; gap: .4rem; }
.maple-2026 .case-card__scope span { font-family: var(--m26-mono); font-size: .7rem; letter-spacing: .06em; color: var(--m26-ink-2); padding: .25rem .55rem; background: rgba(255,255,255,.03); border: 1px solid var(--m26-line); border-radius: 6px; }
.maple-2026 .case-card__photo { aspect-ratio: 32/9; border-radius: 10px; border: 1px dashed var(--m26-line); background: repeating-linear-gradient(135deg, transparent 0 14px, var(--m26-grid) 14px 15px); display: grid; place-items: center; color: var(--m26-ink-3); font-family: var(--m26-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; margin-top: auto; opacity: .65; }
/* When an <img> is the photo, it shows the real photo — drop the placeholder treatment. */
.maple-2026 img.case-card__photo {
  display: block; width: 100%; object-fit: cover;
  aspect-ratio: 21/9;
  border: none; background: none; opacity: 1;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.5);
}

/* ---------- CASE FEATURED ---------- */
.maple-2026 .case-featured { padding: var(--m26-pad) 0; border-top: 1px solid var(--m26-line); background: var(--m26-bg-soft); }
.maple-2026 .case-sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0; }
@media (max-width: 780px) { .maple-2026 .case-sites { grid-template-columns: 1fr; } }
.maple-2026 .case-site { padding: 1.25rem; border: 1px solid var(--m26-line); border-radius: 14px; background: var(--m26-bg-elev); }
.maple-2026 .case-site__photo { aspect-ratio: 21/9; border-radius: 8px; border: 1px dashed var(--m26-line); background: repeating-linear-gradient(135deg, transparent 0 14px, var(--m26-grid) 14px 15px); display: grid; place-items: center; color: var(--m26-ink-3); font-family: var(--m26-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .85rem; opacity: .65; }
.maple-2026 img.case-site__photo {
  display: block; width: 100%; object-fit: cover;
  aspect-ratio: 16/9;
  border: none; background: none; opacity: 1;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.5);
}
.maple-2026 .case-site h4 { font-family: var(--m26-display); font-size: 1.2rem; font-weight: 600; color: var(--m26-ink); margin-bottom: .4rem; }
.maple-2026 .case-site p { font-size: .9rem; color: var(--m26-ink-2); line-height: 1.5; text-wrap: pretty; }
.maple-2026 .case-approach {
  margin: 2.5rem 0; padding: 1.5rem 1.7rem;
  border-left: 2px solid var(--m26-accent); background: rgba(255,255,255,.02);
}
.maple-2026 .case-approach .eyebrow { margin-bottom: .85rem; }
.maple-2026 .case-approach p { font-family: var(--m26-display); font-size: 1.15rem; font-style: italic; color: var(--m26-ink); line-height: 1.5; text-wrap: pretty; max-width: 64ch; }

.maple-2026 .case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2.5rem 0; }
@media (max-width: 780px) { .maple-2026 .case-cols { grid-template-columns: 1fr; } }
.maple-2026 .case-col { padding: 1.5rem; border: 1px solid var(--m26-line); border-radius: 14px; background: var(--m26-bg-elev); }
.maple-2026 .case-col__label { font-family: var(--m26-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--m26-ink-3); display: block; margin-bottom: .85rem; }
.maple-2026 .case-col ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; padding: 0; }
.maple-2026 .case-col li { font-size: .92rem; color: var(--m26-ink-2); padding-left: 1.25rem; position: relative; line-height: 1.5; }
.maple-2026 .case-col li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 8px; height: 1px; background: var(--m26-accent);
}
.maple-2026 .case-col--after li::before { background: var(--m26-green); }

.maple-2026 .case-work { margin-top: 2.5rem; }
.maple-2026 .case-work .eyebrow { margin-bottom: 1.25rem; }
.maple-2026 .case-work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--m26-line); border: 1px solid var(--m26-line); border-radius: 14px; overflow: hidden; }
@media (max-width: 780px) { .maple-2026 .case-work__grid { grid-template-columns: 1fr; } }
.maple-2026 .case-work__cell { padding: 1.3rem; background: var(--m26-bg-elev); }
.maple-2026 .case-work__cell h4 { font-family: var(--m26-display); font-size: 1.1rem; font-weight: 600; color: var(--m26-ink); margin-bottom: .5rem; }
.maple-2026 .case-work__cell p { font-size: .88rem; color: var(--m26-ink-2); line-height: 1.5; text-wrap: pretty; }

/* ---------- TESTIMONIALS ---------- */
.maple-2026 .testimonials { padding: var(--m26-pad) 0; border-top: 1px solid var(--m26-line); }
.maple-2026 .testimonials .section-head h2 em { font-style: italic; color: var(--m26-accent); }
.maple-2026 .quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 780px) { .maple-2026 .quote-grid { grid-template-columns: 1fr; } }
.maple-2026 .quote { padding: 1.75rem; border: 1px solid var(--m26-line); border-radius: 16px; background: var(--m26-bg-elev); display: flex; flex-direction: column; gap: 1rem; }
.maple-2026 .quote blockquote { font-family: var(--m26-display); font-size: 1.15rem; font-style: italic; color: var(--m26-ink); line-height: 1.45; text-wrap: pretty; }
.maple-2026 .quote figcaption { display: flex; flex-direction: column; gap: .15rem; padding-top: 1rem; border-top: 1px dashed var(--m26-line); margin-top: auto; }
.maple-2026 .quote-a { font-size: .88rem; color: var(--m26-ink-2); }
.maple-2026 .quote-since { font-family: var(--m26-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--m26-ink-3); }

/* ---------- CONTACT ---------- */
.maple-2026 .contact { padding: var(--m26-pad) 0; border-top: 1px solid var(--m26-line); background: var(--m26-bg-soft); }
.maple-2026 .contact-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem;
  padding: 2.5rem 2.75rem; border: 1px solid var(--m26-line); border-radius: 22px;
  background: var(--m26-bg-elev); position: relative; overflow: hidden;
}
.maple-2026 .contact-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, color-mix(in oklab, var(--m26-accent) 18%, transparent), transparent 60%);
  pointer-events: none;
}
@media (max-width: 880px) { .maple-2026 .contact-card { grid-template-columns: 1fr; padding: 2rem; } }
.maple-2026 .contact-card .eyebrow { margin-bottom: 1.25rem; }
.maple-2026 .contact-card h2 { margin-bottom: 1rem; }
.maple-2026 .contact-lede { font-size: 1.05rem; color: var(--m26-ink-2); max-width: 42ch; margin-bottom: 1.5rem; text-wrap: pretty; }
.maple-2026 .contact-btn { font-size: 1rem; padding: .85rem 1.5rem; }
.maple-2026 .wa-icon { display: inline-flex; align-items: center; }
.maple-2026 .contact-foot { font-family: var(--m26-mono); font-size: .72rem; letter-spacing: .08em; color: var(--m26-ink-3); margin-top: 1rem; }
.maple-2026 .contact-side { display: flex; flex-direction: column; gap: .25rem; align-self: center; padding: 1.25rem; border: 1.5px dashed var(--m26-line-strong); border-radius: 14px; }
.maple-2026 .contact-side__row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--m26-line); font-family: var(--m26-mono); font-size: .82rem; }
.maple-2026 .contact-side__row:last-child { border-bottom: 0; }
.maple-2026 .contact-side__row span { color: var(--m26-ink-3); letter-spacing: .14em; }
.maple-2026 .contact-side__row b { color: var(--m26-ink); font-weight: 600; }

/* ---------- SLIM FOOTER ---------- */
.maple-2026 .site-footer-slim {
  padding: 2rem 0; background: var(--m26-bg-soft); border-top: 1px solid var(--m26-line);
  position: relative;
}
.maple-2026 .site-footer-slim::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--m26-blue), var(--m26-gold) 50%, var(--m26-green));
  opacity: .55;
}
.maple-2026 .footer-slim-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-family: var(--m26-mono); font-size: .72rem; color: var(--m26-ink-3); letter-spacing: .06em;
}
.maple-2026 .footer-slim-row .tri { display: inline-flex; gap: .4rem; align-items: center; }
.maple-2026 .footer-slim-row .tri i { width: 6px; height: 6px; border-radius: 50%; }
.maple-2026 .footer-slim-row .tri i:nth-child(1) { background: var(--m26-blue); }
.maple-2026 .footer-slim-row .tri i:nth-child(2) { background: var(--m26-gold); }
.maple-2026 .footer-slim-row .tri i:nth-child(3) { background: var(--m26-green); }

/* ---------- PAGE INNER (about / how / case-studies / systems / forms) ---------- */
.maple-2026 .page-section { padding: var(--m26-pad) 0; border-top: 1px solid var(--m26-line); }
.maple-2026 .page-section--soft { background: var(--m26-bg-soft); }

.maple-2026 .stack-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 980px) { .maple-2026 .stack-cards { grid-template-columns: 1fr; } }
.maple-2026 .stack-cards .card {
  padding: 1.5rem; border: 1px solid var(--m26-line); border-radius: 14px;
  background: var(--m26-bg-elev);
  display: flex; flex-direction: column; gap: .65rem;
}
.maple-2026 .stack-cards .card-header { display: flex; align-items: baseline; gap: .9rem; }
.maple-2026 .stack-cards .step-number { font-family: var(--m26-mono); font-size: 1.05rem; font-weight: 600; color: var(--m26-accent); }
.maple-2026 .stack-cards .card h3 { font-family: var(--m26-display); font-size: 1.25rem; font-weight: 600; color: var(--m26-ink); margin: 0; }
.maple-2026 .stack-cards .card-body p { font-size: .92rem; color: var(--m26-ink-2); line-height: 1.55; text-wrap: pretty; }

.maple-2026 .stages { display: grid; grid-template-columns: 1fr; gap: .25rem; margin-top: 2rem; }
.maple-2026 .stage-row { display: grid; grid-template-columns: 4rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px dashed var(--m26-line); align-items: baseline; }
.maple-2026 .stage-row:last-child { border-bottom: 0; }
.maple-2026 .stage-num { font-family: var(--m26-mono); font-size: 1.4rem; font-weight: 600; color: var(--m26-accent); }
.maple-2026 .stage-body h3 { font-family: var(--m26-display); font-size: 1.4rem; font-weight: 500; color: var(--m26-ink); margin-bottom: .35rem; }
.maple-2026 .stage-body p { font-size: .96rem; color: var(--m26-ink-2); line-height: 1.55; }

.maple-2026 .system-card {
  padding: 2rem 2.25rem; border: 1px solid var(--m26-line); border-radius: 16px;
  background: var(--m26-bg-elev); margin-bottom: 1.25rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem;
}
@media (max-width: 880px) { .maple-2026 .system-card { grid-template-columns: 1fr; } }
.maple-2026 .system-card__head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .35rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--m26-line); }
.maple-2026 .system-card__head h3 { font-family: var(--m26-display); font-size: 1.6rem; font-weight: 500; color: var(--m26-ink); }
.maple-2026 .system-card__sub { font-family: var(--m26-mono); font-size: .72rem; letter-spacing: .1em; color: var(--m26-ink-3); }
.maple-2026 .system-card__lead { font-size: 1rem; color: var(--m26-ink-2); margin-top: .55rem; }
.maple-2026 .system-card__col h4 { font-family: var(--m26-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--m26-accent); margin-bottom: .65rem; }
.maple-2026 .system-card__col p { font-size: .94rem; color: var(--m26-ink-2); line-height: 1.55; }

/* About — Josh bio block */
.maple-2026 .bio-block { max-width: 70ch; margin: 0 auto; }
.maple-2026 .bio-block p { font-size: 1.02rem; color: var(--m26-ink-2); line-height: 1.65; margin-bottom: 1rem; }
.maple-2026 .bio-block p strong { color: var(--m26-ink); }

/* Forms — keep the existing intake-form.* rules above; just add visual harmony */
.maple-2026 .intake-form { max-width: 720px; margin: 0 auto; }
.maple-2026 .intake-form .form-section { padding: 1.5rem 0; border-bottom: 1px dashed var(--m26-line); }
.maple-2026 .intake-form legend { font-family: var(--m26-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--m26-accent); padding-bottom: .5rem; }
.maple-2026 .intake-form label { display: block; font-size: .88rem; color: var(--m26-ink-2); margin-bottom: .35rem; }
.maple-2026 .intake-form input,
.maple-2026 .intake-form select,
.maple-2026 .intake-form textarea {
  width: 100%; padding: .65rem .85rem; background: var(--m26-bg);
  color: var(--m26-ink); border: 1px solid var(--m26-line); border-radius: 8px;
  font-family: var(--m26-ui); font-size: .95rem;
}
.maple-2026 .intake-form input:focus,
.maple-2026 .intake-form select:focus,
.maple-2026 .intake-form textarea:focus { outline: 1px solid var(--m26-accent); border-color: var(--m26-accent); }
.maple-2026 .intake-form .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .maple-2026 .intake-form .form-grid-2 { grid-template-columns: 1fr; } }
.maple-2026 .intake-form .form-group { margin-bottom: 1rem; }
.maple-2026 .intake-form .form-message { padding: 1rem 1.25rem; border-radius: 8px; margin: 1rem 0; }
.maple-2026 .intake-form .form-message.success { background: color-mix(in oklab, var(--m26-green) 10%, transparent); color: var(--m26-ink); border: 1px solid color-mix(in oklab, var(--m26-green) 40%, transparent); }
.maple-2026 .intake-form .form-message.error { background: rgba(255,80,80,.06); color: #ff8a80; border: 1px solid rgba(255,80,80,.25); }
.maple-2026 .intake-form .form-submit { margin-top: 1.5rem; }
.maple-2026 .intake-form .form-note { font-family: var(--m26-mono); font-size: .72rem; color: var(--m26-ink-3); margin-top: .85rem; letter-spacing: .04em; }


/* ============================================================
   Portal species (status portal, agreement confirm) — utility
   surfaces, not marketing pages. bare.php sets
   body.maple-2026.portal; these tighten the rhythm: a client
   checks this on a phone between problems, it should read like
   a status card, not a landing page. (2026-06-12)
   ============================================================ */
.maple-2026.portal .hero { padding: 2.5rem 0 2rem; }
.maple-2026.portal .hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: .9rem; }
.maple-2026.portal .hero-eyebrow { margin-bottom: .9rem; }
.maple-2026.portal .page-section { padding: 1.75rem 0; }
.maple-2026.portal .section-head { margin-bottom: 1rem; }
.maple-2026.portal .section-head h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin-bottom: 0; }
.maple-2026.portal .card-body { padding: 1rem 1.15rem; }
.maple-2026.portal .stack-cards { gap: .8rem; }
