/* ==========================================================================
   MQS Redesign — editorial, mobile-first, confident.
   Extends colors_and_type.css tokens.
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
@media (min-width: 1200px) { .wrap { padding: 0 48px; } }

/* ---------- Tokens beyond base ---------- */
:root {
  --ink: #0B1220;        /* near-black ink */
  --ink-2: #1B2437;
  --rule: #E5E7EB;
  --rule-strong: #0B1220;
  --navy: var(--primary-dark);
  --royal: var(--primary-blue);
  --gold: var(--accent-gold);
  --muted: #6B7280;
  --chip-bg: #F3F4F6;
  --chip-ink: #111827;
  --display-letter: -0.03em;
}

/* ---------- Eyebrow labels (numbered section markers) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
}
.eyebrow .tick {
  width: 24px; height: 1px; background: var(--ink); display: inline-block;
}

/* ---------- Display type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--display-letter);
  line-height: 0.98;
  color: var(--ink);
  margin: 0;
}
.display--hero {
  font-size: clamp(44px, 10vw, 116px);
}
.display--xl { font-size: clamp(36px, 6.5vw, 72px); }
.display--lg { font-size: clamp(28px, 4.5vw, 48px); }
.display--md { font-size: clamp(22px, 3vw, 32px); }

.lede {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: #374151;
  max-width: 56ch;
  margin: 0;
}

.italic-accent { font-style: italic; font-weight: 500; color: var(--ink-2); }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em;
  font-size: 15px; color: var(--ink);
}
.nav__brand img { width: 28px; height: 28px; object-fit: contain; }
.nav__brand small { display:block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.nav__links { display: none; gap: 28px; }
.nav__links a { color: #374151; font-size: 14px; font-weight: 500; }
.nav__links a:hover { color: var(--royal); }
.nav__cta {
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .2s ease, background .2s ease;
}
.nav__cta:hover { background: var(--royal); transform: translateY(-1px); }
@media (min-width: 900px) {
  .nav__links { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { transform: translateY(-1px); background: var(--royal); box-shadow: 0 8px 22px rgba(0,53,148,0.35); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(245,158,11,0.4); }

.btn--sm { padding: 9px 14px; font-size: 13px; }

/* ---------- Section rhythm ---------- */
.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section--navy { background: var(--navy); color: #fff; }
.section--navy .display, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lede { color: #CBD5E1; }
.section--alt { background: var(--bg-secondary); }

.section-head { display: grid; gap: 18px; margin-bottom: 40px; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: end; margin-bottom: 64px; }
}

/* ---------- Marquee-ish rule ---------- */
.rule { height: 1px; background: var(--rule); width: 100%; }
.rule--ink { background: var(--ink); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--chip-bg); color: var(--chip-ink);
  font-size: 12px; font-weight: 500;
}
.chip--ink { background: var(--ink); color: #fff; }
.chip--gold { background: color-mix(in oklch, var(--gold) 18%, white); color: #78350F; }
.chip--dot::before {
  content:''; width:6px; height:6px; border-radius:50%;
  background: currentColor; display: inline-block;
}

/* ---------- HERO ---------- */
.hero { position: relative; padding: 40px 0 60px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 80px 0 100px; } }

.hero__grid {
  display: grid; gap: 40px;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
}

.hero__kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.hero__headline { margin: 0 0 28px; }
.hero__headline .muted { color: #94A3B8; font-weight: 800; }
.hero__headline .gold { color: var(--gold); font-style: italic; font-weight: 700; }
.hero__sub { max-width: 52ch; margin: 0 0 28px; font-size: clamp(16px, 2vw, 19px); line-height: 1.5; color: #374151; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.hero__meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.hero__meta strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Phone mockup (Ava live demo) */
.phone {
  position: relative;
  margin: 0 auto;
  width: 100%; max-width: 360px;
  aspect-ratio: 9/19;
  border-radius: 48px;
  background: #0B1220;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(11,18,32,0.25), 0 6px 16px rgba(11,18,32,0.15);
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  background: linear-gradient(180deg, #0E1A33 0%, #0B1220 60%);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.phone__notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; border-radius: 999px; background: #000;
  z-index: 2;
}
.phone__status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 0; color: #fff; font-size: 12px; font-weight: 600;
}
.phone__body { flex: 1; padding: 60px 16px 16px; position: relative; display: flex; flex-direction: column; }

/* Call state */
.call {
  color: #fff; text-align: center; padding-top: 20px;
}
.call__label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #94A3B8; }
.call__name { font-size: 22px; font-weight: 700; margin-top: 10px; }
.call__sub { font-size: 13px; color: #94A3B8; margin-top: 4px; }
.call__avatar {
  width: 82px; height: 82px; border-radius: 50%;
  background: linear-gradient(135deg, var(--royal), var(--navy));
  margin: 24px auto 0;
  display:flex; align-items:center; justify-content:center;
  color: #fff; font-weight: 700; font-size: 26px; letter-spacing: -0.02em;
  box-shadow: 0 0 0 0 rgba(0,53,148,0.6);
  animation: pulse 1.8s ease-out infinite;
  position: relative;
}
.call__avatar::after {
  content:''; position:absolute; inset:-18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,53,148,0.55); }
  100% { box-shadow: 0 0 0 36px rgba(0,53,148,0); }
}
.call__chips { margin-top: 24px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.call__chip {
  padding: 6px 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; font-size: 11px; color: #E2E8F0; font-weight: 500;
}
.call__actions { margin-top: auto; display: flex; justify-content: space-around; padding-bottom: 24px; gap: 12px; }
.call__btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.call__btn--decline { background: #EF4444; }
.call__btn--accept { background: #10B981; }
.call__btn--mute { background: rgba(255,255,255,0.1); }

/* Transcript view */
.transcript { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 0; }
.transcript__row { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; }
.transcript__row--ava { align-self: flex-start; }
.transcript__row--caller { align-self: flex-end; flex-direction: row-reverse; }
.transcript__bubble {
  padding: 10px 13px; border-radius: 16px; font-size: 13px; line-height: 1.4;
}
.transcript__row--ava .transcript__bubble { background: rgba(255,255,255,0.09); color: #E2E8F0; border-bottom-left-radius: 4px; }
.transcript__row--caller .transcript__bubble { background: var(--royal); color: #fff; border-bottom-right-radius: 4px; }
.transcript__who { font-size: 10px; color: #94A3B8; margin-bottom: 4px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.transcript__meta {
  margin-top: 6px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: #94A3B8;
}
.transcript__dot { width:6px; height:6px; border-radius: 50%; background: #10B981; display:inline-block; box-shadow: 0 0 0 4px rgba(16,185,129,0.18); }

.transcript__cta {
  margin-top: 14px;
  padding: 11px 14px; border-radius: 12px;
  background: var(--gold); color: #0B1220;
  font-weight: 700; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
}

/* Phone state switcher dots */
.phone__dots {
  position: absolute; top: -18px; right: 16px;
  display: flex; gap: 6px;
}
.phone__dots button { width: 8px; height: 8px; border-radius: 50%; background: #D1D5DB; padding: 0; transition: all .2s ease; }
.phone__dots button[aria-current="true"] { background: var(--ink); transform: scale(1.2); }

/* Hero side labels */
.hero__sidelabel {
  position: absolute; top: 40px; right: 20px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg);
  display: none;
}
@media (min-width: 1100px) { .hero__sidelabel { display: block; } }

/* ---------- Services Matrix ---------- */
.matrix { border-top: 1px solid var(--ink); }
.matrix__row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background .3s ease, padding .3s ease;
  position: relative;
}
.matrix__row:hover { background: linear-gradient(180deg, rgba(243,244,246,0), rgba(243,244,246,0.6)); padding-left: 12px; }
.matrix__num {
  font-size: 12px; font-weight: 700; color: var(--muted);
  font-variant-numeric: tabular-nums; padding-top: 6px;
}
.matrix__content { display: grid; gap: 10px; }
.matrix__head {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  flex-wrap: wrap;
}
.matrix__problem {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
  line-height: 1.1;
  max-width: 22ch;
}
.matrix__row:hover .matrix__problem { color: var(--royal); }
.matrix__arrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 12px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform .3s ease, color .3s ease;
}
.matrix__row:hover .matrix__arrow { color: var(--royal); transform: translateX(4px); }
.matrix__solution {
  font-size: clamp(15px, 2vw, 18px);
  color: #374151;
  max-width: 60ch;
}
.matrix__detail {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, margin-top .3s ease;
}
.matrix__row[data-open="true"] .matrix__detail {
  max-height: 300px;
  margin-top: 6px;
}
.matrix__chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }

/* ---------- ROI calculator ---------- */
.roi {
  background: var(--ink); color: #fff;
  border-radius: 24px;
  padding: 32px 24px;
}
@media (min-width: 768px) { .roi { padding: 48px; } }
.roi__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .roi__grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; } }
.roi__controls { display: grid; gap: 24px; }
.roi__field { display: grid; gap: 10px; }
.roi__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: #94A3B8; }
.roi__label strong { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.roi__slider { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: rgba(255,255,255,0.14); border-radius: 999px; outline: none; }
.roi__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); cursor: grab;
  box-shadow: 0 0 0 6px rgba(245,158,11,0.2);
}
.roi__slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); cursor: grab; border: none;
  box-shadow: 0 0 0 6px rgba(245,158,11,0.2);
}

.roi__output { display: grid; gap: 16px; }
.roi__bignum {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -0.03em; line-height: 0.95;
  font-size: clamp(56px, 10vw, 104px);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.roi__bignum small { font-size: 0.35em; font-weight: 600; color: #fff; margin-left: 10px; letter-spacing: 0; }
.roi__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.12); }
.roi__stat { display: grid; gap: 4px; }
.roi__stat .v { font-size: 22px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.roi__stat .k { font-size: 12px; color: #94A3B8; letter-spacing: 0.06em; text-transform: uppercase; }
.roi__note { font-size: 13px; color: #94A3B8; line-height: 1.5; }

/* ---------- Quest Roadmap ---------- */
.roadmap { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .roadmap {
    grid-template-columns: repeat(4, 1fr);
    position: relative;
  }
  .roadmap::before {
    content:''; position: absolute; top: 36px; left: 8%; right: 8%;
    height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
    z-index: 0;
  }
}
.roadmap__step {
  position: relative; z-index: 1;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px;
  display: grid; gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.roadmap__step:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--ink); }
.roadmap__badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.roadmap__step[data-active="true"] .roadmap__badge { background: var(--gold); color: var(--ink); }
.roadmap__title { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.roadmap__body { font-size: 14px; color: #4B5563; line-height: 1.5; margin: 0; }
.roadmap__checks { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.roadmap__checks li { list-style: none; display: flex; gap: 8px; align-items: flex-start; }
.roadmap__checks li::before { content: '✓'; color: var(--gold); font-weight: 700; }

/* ---------- Efficiency Assessment ---------- */
.assess {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 28px;
  display: grid; gap: 20px;
  max-width: 720px; margin: 0 auto;
  position: relative;
}
@media (min-width: 768px) { .assess { padding: 40px; } }
.assess__progress { display: flex; gap: 6px; }
.assess__progress span { flex: 1; height: 4px; background: var(--rule); border-radius: 2px; transition: background .3s ease; }
.assess__progress span[data-done="true"] { background: var(--ink); }
.assess__step-num { font-size: 12px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.assess__q { font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; margin: 0; }
.assess__options { display: grid; gap: 10px; }
.assess__option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border: 1.5px solid var(--rule); border-radius: 12px;
  text-align: left; font-size: 15px; font-weight: 500; color: var(--ink);
  transition: all .2s ease; width: 100%;
}
.assess__option:hover { border-color: var(--ink); transform: translateX(2px); }
.assess__option[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.assess__option .k {
  font-size: 11px; background: var(--chip-bg); color: var(--muted);
  padding: 3px 8px; border-radius: 999px; font-weight: 700;
}
.assess__option[aria-pressed="true"] .k { background: rgba(255,255,255,0.15); color: #fff; }
.assess__nav { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; }
.assess__back { font-size: 13px; color: var(--muted); font-weight: 600; }
.assess__back:hover { color: var(--ink); }

.assess__result { display: grid; gap: 16px; }
.assess__result .display--lg { margin-top: 6px; }
.assess__score {
  padding: 20px; border: 1.5px solid var(--ink); border-radius: 14px;
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
}
.assess__score .bignum {
  font-family: var(--font-display); font-weight: 800; font-size: 54px;
  letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1;
}
.assess__score .bignum span { color: var(--muted); font-size: 28px; }
.assess__rec { padding: 18px; border: 1px dashed var(--ink); border-radius: 14px; background: #FEFCE8; display: grid; gap: 6px; }
.assess__rec .label { font-size: 11px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.assess__rec .name { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.assess__rec .why { font-size: 14px; color: #4B5563; }

/* ---------- Ava inline ---------- */
.ava-inline {
  background: var(--ink); color: #fff; border-radius: 24px; overflow: hidden;
  display: grid;
}
@media (min-width: 900px) { .ava-inline { grid-template-columns: 1fr 1.1fr; } }
.ava-inline__copy { padding: 32px; display: grid; gap: 16px; align-content: center; }
@media (min-width: 768px) { .ava-inline__copy { padding: 48px; } }
.ava-inline__copy h3 { color: #fff; margin: 0; }
.ava-inline__copy p { color: #CBD5E1; margin: 0; line-height: 1.55; }
.ava-inline__ticks { display: grid; gap: 6px; color: #E2E8F0; font-size: 14px; }
.ava-inline__ticks li { list-style: none; display: flex; gap: 8px; align-items: center; }
.ava-inline__ticks li::before { content:''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

.ava-chat {
  background: #0F172A;
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 460px;
  border-left: 1px solid rgba(255,255,255,0.05);
}
.ava-chat__head { display: flex; justify-content: space-between; align-items: center; color: #94A3B8; font-size: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ava-chat__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.ava-chat__form { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.06); }
.ava-chat__input {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: #fff;
  padding: 12px 14px; border-radius: 12px; font-size: 14px; outline: none;
}
.ava-chat__input::placeholder { color: #64748B; }
.ava-chat__send { background: var(--gold); color: var(--ink); border-radius: 12px; padding: 0 16px; font-weight: 700; font-size: 13px; }
.ava-chat__limit { padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ava-chat__limit-msg { color: #CBD5E1; font-size: 13px; line-height: 1.5; margin: 0; }
.ava-chat__suggest { display: flex; gap: 6px; flex-wrap: wrap; }
.ava-chat__suggest button {
  font-size: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: #CBD5E1; border: 1px solid rgba(255,255,255,0.08);
  transition: all .2s ease;
}
.ava-chat__suggest button:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Featured project ---------- */
.feature {
  display: grid; gap: 24px;
}
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; } }
.feature__media {
  border-radius: 20px; overflow: hidden; position: relative;
  background: #F3F4F6; aspect-ratio: 4/3;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; padding-top: 20px; border-top: 1px solid var(--rule); margin-top: 20px; }
.feature__stat .v { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.feature__stat .k { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

/* ---------- Team card strip ---------- */
.team { display: grid; gap: 20px; }
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); } }
.team__card {
  padding: 24px; border: 1px solid var(--rule); border-radius: 18px;
  display: grid; gap: 10px; transition: all .25s ease;
}
.team__card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.team__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--royal), var(--navy));
  color: #fff; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size: 16px; letter-spacing: 0;
}
.team__name { font-size: 17px; font-weight: 700; color: var(--ink); }
.team__role { font-size: 13px; color: var(--muted); }
.team__bio { font-size: 14px; color: #4B5563; line-height: 1.5; }

/* ---------- Testimonial / quote ---------- */
.quote {
  padding: 40px 24px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: grid; gap: 16px;
}
@media (min-width: 900px) { .quote { padding: 64px 40px; grid-template-columns: auto 1fr; gap: 48px; align-items: start; } }
.quote__mark {
  font-family: var(--font-display); font-weight: 800;
  font-size: 120px; color: var(--gold); line-height: 0.7;
}
.quote__text { font-size: clamp(22px, 3.5vw, 34px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.quote__attr { font-size: 13px; color: var(--muted); margin-top: 16px; font-weight: 600; letter-spacing: 0.04em; }

/* ---------- Footer / contact ---------- */
.foot {
  background: var(--navy); color: #CBD5E1;
  padding: 72px 0 32px;
}
.foot__top {
  display: grid; gap: 32px;
}
@media (min-width: 900px) { .foot__top { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.foot__big {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(36px, 6vw, 68px); line-height: 1; color: #fff; margin: 0 0 16px;
}
.foot__big em { color: var(--gold); font-style: italic; }
.foot__form { display: grid; gap: 12px; background: rgba(255,255,255,0.04); padding: 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); }
.foot__form label { font-size: 11px; color: #94A3B8; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.foot__form input, .foot__form textarea {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff;
  padding: 12px 14px; border-radius: 10px; font-size: 14px; outline: none;
  transition: border-color .2s ease;
}
.foot__form input:focus, .foot__form textarea:focus { border-color: var(--gold); }
.foot__form textarea { min-height: 100px; resize: vertical; }
.foot__submit {
  background: var(--gold); color: var(--ink); padding: 12px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; justify-self: start;
}
.foot__submit:hover { background: #FACC15; }
.foot__meta {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  padding-top: 32px; margin-top: 48px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: #94A3B8;
}
.foot__meta a { color: #CBD5E1; }
.foot__meta a:hover { color: var(--gold); }

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  background: #fff; border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 20px 40px rgba(11,18,32,0.2);
  width: 300px; padding: 16px;
  display: none;
}
.tweaks[data-open="true"] { display: grid; gap: 12px; }
.tweaks__h { display: flex; justify-content: space-between; align-items: center; }
.tweaks__h strong { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.tweaks__h button { font-size: 18px; color: var(--muted); padding: 0 4px; }
.tweaks__row { display: grid; gap: 6px; }
.tweaks__row label { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.tweaks__seg {
  display: flex; gap: 4px; background: var(--chip-bg); padding: 3px; border-radius: 10px;
}
.tweaks__seg button {
  flex: 1; padding: 7px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.tweaks__seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* Variant switches */
body[data-hero="dark"] .hero { background: var(--ink); color: #fff; }
body[data-hero="dark"] .hero .display, body[data-hero="dark"] .hero__sub { color: #fff; }
body[data-hero="dark"] .hero .display .muted { color: #475569; }
body[data-hero="dark"] .hero__sub { color: #CBD5E1; }
body[data-hero="dark"] .nav { background: rgba(11,18,32,0.85); border-bottom-color: rgba(255,255,255,0.06); }
body[data-hero="dark"] .nav__brand, body[data-hero="dark"] .nav__links a { color: #E2E8F0; }
body[data-hero="dark"] .nav__cta { background: var(--gold); color: var(--ink); }
body[data-hero="dark"] .hero__meta { color: #94A3B8; }
body[data-hero="dark"] .hero__meta strong { color: #fff; }
body[data-hero="dark"] .btn--primary { background: var(--gold); color: var(--ink); }
body[data-hero="dark"] .btn--ghost { border-color: #E2E8F0; color: #fff; }
body[data-hero="dark"] .btn--ghost:hover { background: #fff; color: var(--ink); }

body[data-accent="royal"] { --gold: #3B82F6; }
body[data-accent="teal"] { --gold: #14B8A6; }

/* Animations */
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
.typing { display: inline-flex; gap: 3px; }
.typing span { width: 5px; height: 5px; border-radius: 50%; background: #94A3B8; animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
