/* =========================================================
   The Sun Broker v6 / Cinematic dark mode
   Inter throughout. Instrument Serif for ONE italic moment.
   ========================================================= */

:root {
  --bg: #0c0d0e;
  --bg-elev: #161719;
  --bg-elev-2: #1f2023;
  --surface-light: #ffffff;
  --surface-light-warm: #fbf6e8;
  --text: #f5f3ec;
  --text-muted: #a09b91;
  --text-on-light: #0c0d0e;
  --text-on-light-muted: #555248;
  --brand: #fbc602;
  --brand-warm: #f59e0b;
  --brand-deep: #b45309;
  --accent-glow: rgba(251, 198, 2, 0.18);

  --content-max: 1280px;
  --gutter: clamp(1.25rem, 3.5vw, 3rem);

  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font-family: inherit; }

/* Selection */
::selection { background: var(--brand); color: var(--text-on-light); }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms var(--ease-out-quart), transform 700ms var(--ease-out-quart);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(12, 13, 14, 0.55) 0%, rgba(12, 13, 14, 0) 100%);
  transition: background 280ms ease, backdrop-filter 280ms ease, border-color 280ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(12, 13, 14, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: rgba(255,255,255,0.06);
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
}
.site-header__brand img { height: 56px; width: auto; display: block; }
.site-header__nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.site-header__nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  opacity: 0.85;
  padding: 0.5rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: opacity 200ms ease, color 200ms ease;
}
.site-header__nav a:hover { opacity: 1; color: var(--brand); }
.site-header__nav a.site-header__cta-ghost {
  background: transparent;
  color: var(--brand);
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 1;
  margin-left: 1rem;
  position: relative;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.site-header__nav a.site-header__cta-ghost::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(245, 243, 236, 0.18);
}
.site-header__nav a.site-header__cta {
  margin-left: 0.5rem;
}
.site-header__nav a.site-header__cta-ghost:hover {
  background: rgba(251, 198, 2, 0.12);
  color: var(--brand);
  opacity: 1;
  transform: translateY(-1px);
}
.site-header__nav a.site-header__cta {
  background: var(--brand);
  color: #0c0d0e;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 1;
  transition: background 200ms ease, transform 200ms ease;
}
.site-header__nav a.site-header__cta:hover {
  background: var(--brand-warm);
  color: #0c0d0e;
  opacity: 1;
  transform: translateY(-1px);
}
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 243, 236, 0.18);
  color: var(--text);
  min-height: 44px;
  transition: border-color 200ms ease, background 200ms ease;
}
.site-header__phone:hover {
  border-color: var(--brand);
  background: rgba(251, 198, 2, 0.08);
}
.site-header__phone svg { width: 14px; height: 14px; }

/* Mobile hamburger button - hidden on desktop */
.mobile-nav__btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text);
}
.mobile-nav__btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: opacity 200ms ease, transform 200ms ease;
  transform-origin: center;
}
.mobile-nav__btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav__btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-nav__btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.mobile-nav__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(12, 13, 14, 0.97);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.5rem 0 1rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out-quart), transform 220ms var(--ease-out-quart);
}
.mobile-nav__panel.is-open {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav__panel a {
  display: block;
  padding: 0.9rem var(--gutter);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 160ms ease, color 160ms ease;
  min-height: 44px;
}
.mobile-nav__panel a:hover { opacity: 1; color: var(--brand); }
.mobile-nav__panel a.mobile-nav__cta-ghost {
  display: block;
  margin: 0.5rem var(--gutter) 0.4rem;
  padding: 0.85rem 1rem;
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 999px;
  text-align: center;
  opacity: 1;
}
.mobile-nav__panel a.mobile-nav__cta-ghost:hover {
  background: rgba(251, 198, 2, 0.12);
  color: var(--brand);
}
.mobile-nav__panel a.mobile-nav__cta {
  display: block;
  margin: 0 var(--gutter);
  padding: 0.85rem 1rem;
  background: var(--brand);
  color: #0c0d0e;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
  text-align: center;
  opacity: 1;
}
.mobile-nav__panel a.mobile-nav__cta:hover {
  background: var(--brand-warm);
  color: #0c0d0e;
}

@media (max-width: 760px) {
  .site-header__nav { display: none; }
  .mobile-nav__btn { display: flex; }
  .mobile-nav__panel { display: block; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem var(--gutter) 6rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -2% -2%;
  background: url('/assets/hero-bg-overlay.jpg') center/cover no-repeat;
  z-index: -2;
  filter: saturate(1.1);
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1%, -1%); }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,13,14,0.92) 0%, rgba(12,13,14,0.55) 35%, rgba(12,13,14,0.7) 65%, rgba(12,13,14,0.96) 100%),
    radial-gradient(circle at 80% 100%, rgba(251, 198, 2, 0.12) 0%, transparent 55%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 0 0 220px 60px rgba(0, 0, 0, 0.55);
}
.hero__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.75rem;
}
.hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brand);
}
.hero__headline {
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 1.6rem 0;
  color: var(--text);
  max-width: 14ch;
}
.hero__headline em {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--brand);
}
.hero__sub {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 2.5rem 0;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.05rem 2rem;
  background: var(--brand);
  color: var(--text-on-light);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  min-height: 44px;
  transition: background 220ms ease, box-shadow 280ms ease, transform 220ms ease;
  box-shadow: 0 0 0 0 rgba(251, 198, 2, 0);
}
.btn-primary:hover {
  background: #ffd840;
  box-shadow: 0 0 0 8px rgba(251, 198, 2, 0.18), 0 14px 40px -10px rgba(251, 198, 2, 0.55);
}
.btn-primary svg { width: 16px; height: 16px; }

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 0.65rem 0.25rem;
  min-height: 44px;
  transition: color 200ms ease;
}
.btn-phone:hover { color: var(--brand); }
.btn-phone svg { width: 14px; height: 14px; opacity: 0.8; }

.hero__scroll-hint {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.7;
}
.hero__scroll-hint::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--text-muted) 0%, transparent 100%);
  animation: scrollnudge 2.1s ease-in-out infinite;
}
@keyframes scrollnudge {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.6; }
  50%      { transform: scaleY(0.55); transform-origin: top; opacity: 1; }
}

/* =========================================================
   VALUE PROP
   ========================================================= */
.vp {
  position: relative;
  background: var(--bg);
  padding: clamp(5rem, 10vh, 9rem) var(--gutter);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.vp__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.vp__copy h2 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 2rem 0;
}
.vp__copy h2 span { display: block; }
.vp__copy h2 .accent { color: var(--brand); }
.vp__copy p {
  font-size: clamp(1.15rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0;
}
.vp__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 90px -30px rgba(0,0,0,0.7);
}
.vp__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.92);
  transform: scale(1.05);
  transition: transform 1.2s var(--ease-out-quart);
}
.vp__media.is-visible img { transform: scale(1); }
.vp__media::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(270deg, rgba(251, 198, 2, 0.18) 0%, transparent 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (max-width: 880px) {
  .vp__inner { grid-template-columns: 1fr; }
  .vp__media { aspect-ratio: 3 / 4; max-height: 70vh; }
}

/* =========================================================
   CREDENTIALS
   ========================================================= */
.creds {
  background: var(--bg);
  padding: clamp(5rem, 10vh, 9rem) var(--gutter);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}
.creds::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: radial-gradient(ellipse at 50% 100%, rgba(251, 198, 2, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
.creds__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.creds__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.5rem;
}
.creds h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 4rem 0;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.creds__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.creds__item {
  padding: 1.5rem 1.5rem;
  position: relative;
}
.creds__item + .creds__item::before {
  content: '';
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: rgba(255,255,255,0.06);
}
.creds__num {
  font-family: 'Inter', sans-serif;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  font-size: clamp(2.75rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand);
  margin-bottom: 0.85rem;
}
.creds__num--static {
  /* Scale down slightly so "Top 1%" fits one line at all breakpoints */
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  white-space: nowrap;
}
.creds__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 22ch;
  margin: 0 auto;
  min-height: 2.8em; /* equalize 4-stat heights even if one label wraps */
  display: flex;
  align-items: center;
  justify-content: center;
}
.creds__license {
  margin-top: 4rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .creds__strip { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .creds__item:nth-child(3)::before { display: none; }
}

/* =========================================================
   CONFIGURATOR (light section break)
   ========================================================= */
.config {
  background: var(--surface-light);
  color: var(--text-on-light);
  padding: clamp(5rem, 10vh, 9rem) var(--gutter);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.config__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.config__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 1.4rem;
}
.config h2 {
  font-size: clamp(2.75rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem 0;
  color: var(--text-on-light);
}
.config__copy p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-on-light-muted);
  max-width: 44ch;
  margin: 0 0 2.5rem 0;
}
.config__field {
  margin-top: 2rem;
}
.config__field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin-bottom: 0.85rem;
}
.config__input-wrap {
  position: relative;
  display: flex;
  align-items: baseline;
  border-bottom: 2px solid var(--text-on-light);
  padding: 0.4rem 0;
  max-width: 360px;
  transition: border-color 200ms ease;
}
.config__input-wrap:focus-within {
  border-bottom-color: var(--brand-deep);
}
.config__prefix {
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-on-light-muted);
  margin-right: 0.4rem;
}
.config__input {
  flex: 1;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-on-light);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  -moz-appearance: textfield;
  width: 100%;
}
.config__input::-webkit-outer-spin-button,
.config__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.config__suffix {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-light-muted);
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
}
.config__pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.config__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-on-light-muted);
  min-height: 44px;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
  cursor: pointer;
}
.config__pill:hover {
  border-color: var(--brand-deep);
  color: var(--text-on-light);
  background: rgba(180, 83, 9, 0.06);
}
.config__pill::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.6;
}
.config__pill[aria-pressed="true"] {
  border-color: var(--brand-deep);
  color: var(--text-on-light);
  background: rgba(180, 83, 9, 0.08);
}
.config__pill[aria-pressed="true"]::before {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.config__outputs {
  display: flex;
  flex-direction: column;
}
.config__output {
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.config__output:first-child { padding-top: 0.5rem; }
.config__output:last-child { border-bottom: 0; }
.config__output-num {
  font-size: clamp(2.75rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  color: var(--text-on-light);
  transition: color 200ms ease;
  margin-bottom: 0.5rem;
}
.config__output:first-child .config__output-num { color: var(--brand-deep); }
.config__output-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-on-light-muted);
  text-transform: uppercase;
}
.config__disclaimer {
  margin-top: 3.5rem;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-on-light-muted);
  max-width: 64ch;
}

@media (max-width: 880px) {
  .config__inner { grid-template-columns: 1fr; }
  .config__outputs { margin-top: 1rem; }
}

/* =========================================================
   THESIS
   ========================================================= */
.thesis {
  position: relative;
  min-height: 100vh;
  padding: clamp(5rem, 10vh, 9rem) var(--gutter);
  display: flex;
  align-items: center;
  isolation: isolate;
}
.thesis__bg {
  position: absolute;
  inset: 0;
  background: url('/assets/founder-context.jpg') center/cover no-repeat;
  filter: saturate(1.1) brightness(0.85);
  z-index: -2;
}
.thesis::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12,13,14,0.85) 0%, rgba(12,13,14,0.78) 50%, rgba(12,13,14,0.92) 100%);
}
.thesis__inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.thesis__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.5rem;
}
.thesis h2 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 2rem 0;
}
.thesis__body {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  max-width: 60ch;
  margin: 0 auto 0.85rem auto;
}
.thesis__body strong { color: var(--brand); font-weight: 600; }
.thesis__flourish {
  margin-top: 2.5rem;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  font-weight: 400;
  color: var(--brand);
  letter-spacing: -0.01em;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  background: var(--bg);
  padding: clamp(5rem, 10vh, 9rem) var(--gutter);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.services__head {
  max-width: var(--content-max);
  margin: 0 auto 3.5rem auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.services__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
}
.services h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 14ch;
}
.services__grid {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 320px 320px;
  gap: 14px;
}
.svc {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform 400ms var(--ease-out-quart);
}
.svc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.78);
  transition: filter 400ms ease, transform 800ms var(--ease-out-quart);
  z-index: -2;
}
.svc::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Stronger bottom gradient so title is always readable at rest */
  background: linear-gradient(180deg, rgba(12,13,14,0.25) 0%, rgba(12,13,14,0.15) 40%, rgba(12,13,14,0.88) 72%, rgba(12,13,14,0.97) 100%);
  transition: opacity 320ms ease;
}
.svc__num {
  position: absolute;
  top: 1.4rem; left: 1.5rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand);
}
.svc__title {
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: 3.2rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  transition: transform 320ms var(--ease-out-quart);
}
/* Blurb: hidden by default, slides up and fades in on hover */
.svc__blurb {
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: 3.6rem;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(245,243,236,0.82);
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms ease, transform 320ms var(--ease-out-quart);
  pointer-events: none;
  /* Hide behind title at rest */
  z-index: 0;
}
.svc__rule {
  position: absolute;
  left: 1.5rem;
  bottom: 1rem;
  height: 2px;
  width: 0;
  background: var(--brand);
  transition: width 400ms var(--ease-out-quart);
}
.svc:hover img { filter: saturate(1.15) brightness(0.72); transform: scale(1.04); }
.svc:hover::before { opacity: 1; }
.svc:hover .svc__rule { width: 56px; }
/* On hover: blurb fades in above the title area; title shifts up slightly */
.svc:hover .svc__title { transform: translateY(-3.5rem); }
.svc:hover .svc__blurb { opacity: 1; transform: translateY(0); }

.svc--1 { grid-column: span 2; grid-row: 1; }
.svc--2 { grid-column: span 2; grid-row: 1; }
.svc--3 { grid-column: span 2; grid-row: 1; }
.svc--4 { grid-column: span 3; grid-row: 2; }
.svc--5 { grid-column: span 3; grid-row: 2; }

@media (max-width: 880px) {
  .services__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 240px);
  }
  .svc--1, .svc--2, .svc--3, .svc--4, .svc--5 {
    grid-column: 1; grid-row: auto;
  }
  /* On mobile, show blurb always (no hover) */
  .svc__blurb { display: none; }
  .svc__title { bottom: 2rem; transform: none !important; }
}

/* ---- Pearl certified callout ---- */
.services__pearl {
  max-width: var(--content-max);
  margin: 2.5rem auto 0;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 2rem 0 0 1.25rem;
  border-left: 3px solid var(--brand);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 860px;
}

.services__pearl strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

@media (max-width: 880px) {
  .services__pearl {
    padding: 1.5rem 0 0 1rem;
    margin-top: 2rem;
  }
}

/* =========================================================
   FOUNDER
   ========================================================= */
.founder {
  background: var(--bg);
  padding: clamp(5rem, 10vh, 9rem) var(--gutter);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.founder__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.founder__portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
}
.founder__portrait::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 75%;
  bottom: 8%;
  left: 10%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
.founder__portrait img {
  position: relative;
  z-index: 1;
  max-height: 620px;
  width: auto;
  filter: saturate(1.05) contrast(1.05);
}
.founder__copy { position: relative; z-index: 1; }
.founder__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.5rem;
}
.founder h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 2rem 0;
}
.founder p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 1.2rem 0;
  max-width: 56ch;
}
.founder__attrib {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
}
.founder__attrib span:not(:first-child)::before {
  content: '·';
  margin-right: 1.4rem;
  color: var(--text-muted);
}

@media (max-width: 880px) {
  .founder__inner { grid-template-columns: 1fr; }
  .founder__portrait { min-height: 380px; }
  .founder__portrait img { max-height: 420px; }
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  background: var(--bg);
  padding: clamp(6rem, 14vh, 11rem) var(--gutter);
  min-height: 90vh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 110%, rgba(251, 198, 2, 0.32) 0%, rgba(251, 198, 2, 0.08) 35%, transparent 65%);
}
.cta__inner {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.cta__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.5rem;
}
.cta h2 {
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem 0;
}
.cta__sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 2.5rem 0;
}
.btn-primary--lg {
  padding: 1.2rem 2.6rem;
  font-size: 17px;
  font-weight: 700;
}
.cta__phone {
  display: block;
  margin-top: 1.4rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.8;
  transition: color 200ms ease;
}
.cta__phone:hover { color: var(--brand); opacity: 1; }
.cta__phone a { color: inherit; border-bottom: 1px solid rgba(245, 243, 236, 0.25); padding-bottom: 1px; }
.cta__license {
  margin-top: 4rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem var(--gutter) 1.5rem;
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}
.site-footer__brand img { height: 40px; margin-bottom: 1rem; }
.site-footer__brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 30ch;
}
.site-footer__col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1rem 0;
}
.site-footer__nav,
.site-footer__svcs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 0 0 1.5rem 0;
  padding: 0;
  list-style: none;
}
.site-footer__nav a,
.site-footer__svcs li {
  font-size: 14px;
  color: var(--text);
  opacity: 0.78;
  transition: color 180ms ease, opacity 180ms ease;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.site-footer__nav a:hover { color: var(--brand); opacity: 1; }
.site-footer__socials {
  display: flex;
  gap: 1.2rem;
  font-size: 13px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__socials a {
  color: var(--text-muted);
  transition: color 180ms ease;
}
.site-footer__socials a:hover { color: var(--brand); }
.site-footer__contact p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 0.4rem 0;
}
.site-footer__contact a { color: var(--text); }
.site-footer__contact a:hover { color: var(--brand); }
.site-footer__license {
  margin-top: 1.5rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
  line-height: 1.6;
}
.site-footer__copyright {
  max-width: var(--content-max);
  margin: 3rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 880px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* focus-visible (a11y) */
.btn-primary:focus-visible,
.btn-phone:focus-visible,
.site-header__nav a:focus-visible,
.site-header__phone:focus-visible,
.config__pill:focus-visible,
#bill:focus-visible,
.mobile-nav__btn:focus-visible,
.mobile-nav__panel a:focus-visible,
.svc:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* =========================================================
   QUOTE FORM (Typeform-style)
   All selectors prefixed .qf to avoid collisions.
   ========================================================= */
.qf {
  background: var(--bg);
  position: relative;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
}

/* Subtle radial gradient to differentiate from neighbour sections */
.qf::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(251, 198, 2, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.qf__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 8rem) var(--gutter);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Progress bar ---- */
.qf__progress {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-bottom: clamp(3rem, 6vh, 5.5rem);
  overflow: hidden;
}

.qf__progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 400ms var(--ease-out-quart);
}

/* ---- Stage / Step container ---- */
.qf__stage {
  flex: 1;
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

/* ---- Individual steps ---- */
.qf__step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 280ms var(--ease-out-quart), transform 280ms var(--ease-out-quart);
  will-change: opacity, transform;
}

.qf__step--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.qf__step--exiting {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.qf__step--exit-up {
  opacity: 0;
  transform: translateY(-20px);
}

.qf__step--exit-down {
  opacity: 0;
  transform: translateY(20px);
}

.qf__step--enter-from-below {
  opacity: 0;
  transform: translateY(24px);
}

.qf__step--enter-from-above {
  opacity: 0;
  transform: translateY(-24px);
}

@media (prefers-reduced-motion: reduce) {
  .qf__step,
  .qf__step--exit-up,
  .qf__step--exit-down,
  .qf__step--enter-from-below,
  .qf__step--enter-from-above,
  .qf__progress-fill {
    transition: none !important;
    transform: none !important;
  }
}

/* ---- Step content layout ---- */
.qf__step-content {
  width: 100%;
  max-width: 680px;
}

.qf__step-content--center {
  text-align: center;
  margin: auto;
  padding: 3rem 0;
}

.qf__step-content--thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* ---- Typography ---- */
.qf__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.qf__headline {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 1.25rem 0;
}

.qf__serif {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--brand);
  display: inline;
}

.qf__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 2.5rem 0;
  max-width: 54ch;
}

.qf__step-content--center .qf__sub {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Buttons ---- */
.qf__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.1rem 2.2rem;
  background: var(--brand);
  color: var(--text-on-light);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  min-height: 52px;
  border: none;
  cursor: pointer;
  transition: background 220ms ease, box-shadow 280ms ease, transform 200ms ease;
  box-shadow: 0 0 0 0 rgba(251, 198, 2, 0);
}

.qf__btn-primary:hover {
  background: #ffd840;
  box-shadow: 0 0 0 8px rgba(251, 198, 2, 0.16), 0 14px 40px -10px rgba(251, 198, 2, 0.5);
}

.qf__btn-primary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.qf__btn-primary svg { flex-shrink: 0; }

/* ---- Nav row ---- */
.qf__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2rem, 4vh, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.qf__btn-next {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 2rem;
  background: var(--brand);
  color: var(--text-on-light);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  min-height: 48px;
  border: none;
  cursor: pointer;
  transition: background 220ms ease, box-shadow 280ms ease;
  margin-left: auto;
}

.qf__btn-next:hover {
  background: #ffd840;
  box-shadow: 0 0 0 6px rgba(251, 198, 2, 0.16), 0 10px 32px -8px rgba(251, 198, 2, 0.45);
}

.qf__btn-next:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.qf__btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 1.4rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  min-height: 48px;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.qf__btn-back:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.qf__btn-back:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

/* ---- Fields ---- */
.qf__fields {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.qf__fields--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.qf__field--full {
  grid-column: 1 / -1;
}

.qf__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.qf__input,
.qf__select,
.qf__textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-family: inherit;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 200ms ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.qf__textarea {
  font-size: 1.1rem;
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

.qf__input::placeholder,
.qf__textarea::placeholder {
  color: rgba(245, 243, 236, 0.25);
}

.qf__input:focus,
.qf__select:focus,
.qf__textarea:focus {
  border-bottom-color: var(--brand);
}

.qf__input:focus-visible,
.qf__select:focus-visible,
.qf__textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--brand);
}

.qf__input--error,
.qf__select--error {
  border-bottom-color: #f87171;
}

/* Select wrapper */
.qf__select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.qf__select {
  cursor: pointer;
  padding-right: 2rem;
  color: var(--text);
  background: transparent;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.qf__select option {
  background: var(--bg-elev);
  color: var(--text);
  font-size: 16px;
}

.qf__select-chevron {
  position: absolute;
  right: 0;
  pointer-events: none;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ---- Pill groups ---- */
.qf__situation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  margin-top: 0.5rem;
}

.qf__pill-group {
  border: none;
  margin: 0;
  padding: 0;
}

.qf__pill-legend {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 0.9rem;
}

.qf__pill-help {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  letter-spacing: 0;
}

.qf__pills {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.qf__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  min-height: 44px;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
  letter-spacing: 0.01em;
}

.qf__pill:hover {
  border-color: rgba(251, 198, 2, 0.45);
  color: var(--text);
  background: rgba(251, 198, 2, 0.06);
}

.qf__pill[aria-pressed="true"] {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(251, 198, 2, 0.1);
  box-shadow: 0 0 0 3px rgba(251, 198, 2, 0.12);
}

.qf__pill:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ---- Error messages ---- */
.qf__error {
  font-size: 12px;
  font-weight: 500;
  color: #f87171;
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}

/* ---- Thank-you check icon ---- */
.qf__check {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
}

.qf__check svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 20px rgba(251, 198, 2, 0.3));
  animation: qf-check-pop 480ms var(--ease-out-quart) both;
}

@keyframes qf-check-pop {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .qf__fields--2col {
    grid-template-columns: 1fr;
  }
  .qf__field--full {
    grid-column: 1;
  }
  .qf__situation-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .qf__btn-next {
    width: 100%;
    justify-content: center;
  }
  .qf__nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .qf__btn-next {
    order: -1;
    margin-left: 0;
  }
  .qf__btn-back {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   CONFIGURATOR ADDITIONS: path pills, PPA note, chart
   ========================================================= */

/* Path label */
.config__path-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

/* Override pill group for path pills (radio-style single-select) */
.config__pills--path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Active state for radio pills uses aria-checked */
.config__pill--path[aria-checked="true"] {
  border-color: var(--brand-deep);
  color: var(--text-on-light);
  background: rgba(180, 83, 9, 0.1);
  font-weight: 600;
}
.config__pill--path[aria-checked="true"]::before {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

/* PPA note */
.config__ppa-note {
  margin-top: 1.25rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-on-light-muted);
  max-width: 46ch;
  border-left: 2px solid var(--brand-deep);
  padding-left: 0.85rem;
}

/* ---- Rate trajectory chart ---- */
.config__chart-wrap {
  background: var(--surface-light);
  padding: 0 var(--gutter) clamp(4rem, 8vh, 7rem);
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.config__chart-head {
  margin-bottom: 1.5rem;
}

.config__chart-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-on-light);
  margin: 0;
}

.config__chart-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  background: #fff;
  padding: 1rem 0.5rem 0.5rem;
}

.config__chart-svg {
  width: 100%;
  height: auto;
  min-width: 320px;
  display: block;
}

@media (max-width: 880px) {
  .config__chart-wrap {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

/* =========================================================
   QUOTE FORM: PG&E OAuth step additions
   New step IDs: qf-step-1a, qf-step-1b, qf-step-1c, qf-step-1d
   ========================================================= */

/* Choice cards on step 1a */
.qf__choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 560px;
}

.qf__choice-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.4rem 1.6rem;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: border-color 220ms ease, background 220ms ease, transform 200ms ease;
  min-height: 44px;
  position: relative;
}

.qf__choice-card:hover {
  border-color: rgba(251,198,2,0.55);
  background: rgba(251,198,2,0.06);
  transform: translateY(-1px);
}

.qf__choice-card--primary {
  border-color: rgba(251,198,2,0.35);
  background: rgba(251,198,2,0.07);
}

.qf__choice-card--primary:hover {
  border-color: var(--brand);
  background: rgba(251,198,2,0.12);
}

.qf__choice-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.qf__choice-card__title svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--brand);
}

.qf__choice-card--primary .qf__choice-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-light);
  background: var(--brand);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-left: 0.5rem;
}

.qf__choice-card__sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  padding-left: calc(18px + 0.65rem);
}

.qf__choice-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Mock PG&E login form (step 1b) */
.qf__pge-login {
  width: 100%;
  max-width: 440px;
  margin-top: 1rem;
}

.qf__pge-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.qf__pge-brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(251,198,2,0.15);
  border: 1px solid rgba(251,198,2,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qf__pge-brand__icon svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.qf__pge-brand__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.qf__pge-brand__text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.qf__pge-demo-note {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
  text-align: center;
  margin-top: 1.25rem;
  font-style: italic;
}

/* Loading animation (step 1c) */
.qf__loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 2rem 0;
}

.qf__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(251,198,2,0.15);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: qf-spin 700ms linear infinite;
}

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

.qf__loading-status {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  min-height: 1.6em;
  transition: opacity 300ms ease;
  max-width: 34ch;
  line-height: 1.4;
}

.qf__loading-track {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 380px;
}

.qf__loading-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.4;
  transition: opacity 400ms ease, color 300ms ease;
}

.qf__loading-item.is-done {
  opacity: 1;
  color: var(--brand);
}

.qf__loading-item.is-active {
  opacity: 1;
  color: var(--text);
}

.qf__loading-item__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Results screen (step 1d) */
.qf__pge-results {
  width: 100%;
  max-width: 520px;
}

.qf__pge-result-card {
  background: rgba(251,198,2,0.07);
  border: 1px solid rgba(251,198,2,0.22);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.qf__pge-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.qf__pge-stat__num {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: 'tnum' 1;
}

.qf__pge-stat__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .qf__pge-result-card {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   CONFIGURATOR: tab toggle, path description, CTA button
   ========================================================= */

/* Right column wrapper */
.config__outputs-col {
  display: flex;
  flex-direction: column;
}

/* Tab bar */
.config__tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid rgba(0,0,0,0.08);
}

.config__tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.55rem 1rem 0.65rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-on-light-muted);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.config__tab:hover {
  color: var(--text-on-light);
}

.config__tab--active {
  color: var(--text-on-light);
  border-bottom-color: var(--brand-deep);
}

.config__tab:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 2px;
}

/* Tab panels */
.config__tab-panel {
  flex: 1;
}

.config__tab-panel--hidden {
  display: none;
}

/* Per-path description */
.config__path-desc {
  margin-top: 1.25rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-on-light-muted);
  max-width: 46ch;
  border-left: 2px solid var(--brand-deep);
  padding-left: 0.85rem;
  margin-bottom: 0;
  transition: opacity 160ms ease;
}

/* "Get my numbers in writing" CTA button in calculator */
.config__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: var(--brand-deep);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  min-height: 48px;
  border: none;
  cursor: pointer;
  transition: background 220ms ease, box-shadow 280ms ease, transform 200ms ease;
  box-shadow: 0 4px 20px -6px rgba(180,83,9,0.35);
}

.config__cta-btn:hover {
  background: #c2600a;
  box-shadow: 0 6px 28px -6px rgba(180,83,9,0.55), 0 0 0 6px rgba(180,83,9,0.12);
  transform: translateY(-1px);
}

.config__cta-btn:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 4px;
}

/* Pulse animation triggered from JS when scrolling to form */
@keyframes config-btn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(251,198,2,0.55); }
  50%  { box-shadow: 0 0 0 14px rgba(251,198,2,0); }
  100% { box-shadow: 0 0 0 0 rgba(251,198,2,0); }
}

.config__pulse {
  animation: config-btn-pulse 900ms ease-out forwards;
}

/* Chart inside right column: scale to fit panel */
#config-panel-chart .config__chart-container {
  width: 100%;
}

#config-panel-chart .config__chart-title {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

/* Remove old full-width chart wrap styles when chart is in panel */
.config__chart-wrap {
  display: none;
}

@media (max-width: 880px) {
  .config__tab-bar {
    margin-bottom: 1.25rem;
  }
}

/* =========================================================
   SCROLL-SNAP (desktop only)
   ========================================================= */

/* scroll-snap removed 2026-05-07 — was causing initial-load scroll-jump on browsers
   where dynamic partial hydration triggered the snap engine before layout settled.
   Pages now scroll naturally without magnet-to-section behavior. */

/* =========================================================
   CREDENTIALS: bottom-align numbers
   ========================================================= */

/* Make each item a flex column so the number bottom-aligns */
.creds__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Number container: push to bottom by using flex-grow spacer approach.
   Give it a fixed min-height matching the tallest number's rendered height
   so all four baselines line up even when font-sizes differ. */
.creds__num-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 5.5rem; /* accommodates largest clamp value at ~5rem */
}

/* Since the HTML doesn't have .creds__num-wrap, we use a CSS trick:
   give .creds__num itself a fixed min-height and flex alignment. */
.creds__num {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 5.5rem; /* match tallest number height */
}

.creds__num--static {
  min-height: 5.5rem;
}

/* =========================================================
   RATE TRAJECTORY (full-width section between configurator and thesis)
   ========================================================= */
.rt {
  background: var(--bg);
  padding: clamp(5rem, 10vh, 8rem) var(--gutter);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  isolation: isolate;
}
.rt::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 100%, rgba(251, 198, 2, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.rt__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.rt__head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.rt__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.25rem;
}
.rt__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem 0;
}
.rt__sub {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
}
.rt__chart-wrap {
  width: 100%;
  background: rgba(22, 23, 25, 0.55);
  border: 1px solid rgba(245, 243, 236, 0.06);
  border-radius: 16px;
  padding: clamp(1rem, 2.5vw, 2rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.rt__chart {
  width: 100%;
  height: auto;
  display: block;
}
.rt__legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  max-width: 880px;
  margin: 0 auto;
}
.rt__legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.rt__legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-top: 0.4rem;
  flex-shrink: 0;
}
.rt__legend-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.rt__legend-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .rt__legend {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
