/* ==========================================================================
   Kestrid — site.css
   Light & editorial. One terracotta accent. Sage as atmosphere only.
   ========================================================================== */

:root {
  /* Palette — deepened per client direction (2026-08-17): more color/personality throughout,
     carried in the brand's own hues rather than confined to one accent block. */
  --canvas:      #F6F4F0;
  --surface:     #EDE9E2;
  --ink:         #14171C;
  --ink-soft:    #4A4F57;
  --ink-mute:    #8B9097;
  --rule:        #DDD8CF;
  --accent:      #B5502A;
  --accent-soft: #E8CFC2;
  --sage:        #5E6E4E;
  --sage-soft:   #D3D9C4;
  --sage-tint:   #E7EBDC;
  --dark:        #14171C;
  /* on-brand deep close — an olive/forest dark instead of neutral navy, so the one high-contrast
     band on the page still reads as "Kestrid colors", not a generic dark UI panel. */
  --deep-1:      #34412A;
  --deep-2:      #232C1E;
  --deep-3:      #171C13;

  --font-display: 'Jost', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, -apple-system, sans-serif;

  --text-base: 1.0625rem;   /* 17px */
  --text-sm: .9375rem;
  --text-xs: .75rem;

  --shell: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --band: clamp(6rem, 12vh, 11rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Elevation: 3 tiers, used consistently. Depth by layering, not decoration. ---- */
  --elev-1:
    0 1px 2px rgba(20,23,28,.04),
    0 3px 10px -6px rgba(20,23,28,.07);
  --elev-2:
    0 1px 2px rgba(20,23,28,.04),
    0 8px 24px -8px rgba(20,23,28,.08),
    0 24px 48px -24px rgba(20,23,28,.10);
  --elev-3:
    0 1px 2px rgba(20,23,28,.05),
    0 14px 32px -10px rgba(20,23,28,.10),
    0 44px 84px -34px rgba(20,23,28,.18);
  --hl-top: inset 0 1px 0 rgba(255,255,255,.7);
  --lift: 240ms;
  --radius: 3px;
  /* raised-paper face: warm white top-lit gradient over canvas */
  --paper: linear-gradient(178deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.34) 46%, rgba(255,255,255,.06) 100%);

  --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.25rem);
}
.band { padding-block: var(--band); }
.band--tight { padding-block: clamp(4rem, 8vh, 7rem); }
/* surface bands read as a recessed mid-ground plane, not just another hue —
   translucent now so the page's continuous background wash shows through instead
   of the band reading as a separate flat block */
.band--surface {
  background: linear-gradient(180deg, rgba(239,235,229,.55) 0%, rgba(235,231,223,.45) 52%, rgba(232,227,218,.55) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 26px 44px -40px rgba(20,23,28,.30),
    inset 0 -26px 44px -40px rgba(20,23,28,.22);
}
.band--flush-b { padding-bottom: 0; }
.rule-top { border-top: 1px solid var(--rule); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.0;
}
h1.display { font-size: clamp(2.5rem, 5.9vw, 4.75rem); line-height: 1.0; }
h2.display { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.03; }
h3.display { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: 0; }
.accent { color: var(--accent); }
.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
}
p { max-width: 62ch; }
.meta { font-size: var(--text-xs); color: var(--ink-mute); letter-spacing: .02em; }
.num {
  font-family: var(--font-display);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: .875rem;
  letter-spacing: .08em;
}

/* ---------- Links & buttons ---------- */
.ul-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.ul-link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .42s var(--ease);
}
.ul-link:hover::after, .ul-link:focus-visible::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--text-sm); font-weight: 500;
  padding: .95rem 1.55rem;
  min-height: 48px;
  border: 1px solid transparent;
  letter-spacing: .01em;
  will-change: transform;
}
.btn svg { flex: none; transition: transform .3s var(--ease); }
.btn:hover svg.tip { transform: translateX(3px); }
.btn {
  border-radius: var(--radius);
  transition: transform var(--lift) var(--ease), box-shadow var(--lift) var(--ease),
              background-color var(--lift) ease, border-color var(--lift) ease, color var(--lift) ease;
}
.btn--primary {
  background: linear-gradient(178deg, #1E232A 0%, #14171C 62%);
  color: var(--canvas);
  box-shadow: 0 1px 2px rgba(20,23,28,.18), 0 10px 22px -12px rgba(20,23,28,.45), inset 0 1px 0 rgba(255,255,255,.10);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,23,28,.20), 0 18px 34px -14px rgba(20,23,28,.55), inset 0 1px 0 rgba(255,255,255,.14); }
.btn--primary .tip { color: var(--accent-soft); }
.btn--ghost {
  border-color: var(--rule); color: var(--ink);
  background-color: var(--canvas); background-image: var(--paper);
  box-shadow: var(--elev-1), var(--hl-top);
}
.btn--ghost:hover { border-color: var(--ink-mute); transform: translateY(-2px); box-shadow: var(--elev-2), var(--hl-top); }
.btn--light {
  background: linear-gradient(178deg, #FFFFFF 0%, #F6F4F0 70%);
  color: #14171C;
  box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 12px 26px -14px rgba(0,0,0,.65);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 2px 5px rgba(0,0,0,.4), 0 22px 40px -16px rgba(0,0,0,.7); }
.btn--quiet {
  padding: 0; min-height: 0; border: 0; background: none;
  font-size: var(--text-sm); font-weight: 500;
}

/* ---------- Canvas dimension: one continuous wash down the page + soft vignette ----------
   Sections no longer sit on flat alternating white/tinted blocks — this gradient runs the
   full height of whichever page it's on, so color drifts gently throughout instead of
   showing up in one isolated band. Stops are gentle/repeating rather than tied to any one
   page's specific section layout, so it holds up whether the page is short (contact) or
   long (home). */
html { background-color: var(--canvas); overflow-x: hidden; }
body {
  background-color: var(--canvas);
  background-image: linear-gradient(
    180deg,
    var(--canvas) 0%,
    #F7EEE4 9%,
    var(--canvas) 18%,
    #EEF1E4 27%,
    var(--canvas) 36%,
    #F7EEE4 46%,
    var(--canvas) 56%,
    #EEF1E4 66%,
    var(--canvas) 76%,
    #F7EEE4 86%,
    var(--canvas) 96%,
    var(--canvas) 100%
  );
  position: relative;
  overflow-x: hidden;
  /* pins the layout viewport to the true device width — without this, the marquee's
     max-content track (1900px+, only clipped visually by .marquee's own overflow:hidden)
     can still inflate the mobile browser's computed viewport width, which shrinks/shifts
     everything including the fixed header (confirmed on iPhone-width emulation: 415px
     computed viewport instead of the true 390px). */
}
body::before,
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -2;
  background:
    radial-gradient(1100px 760px at 80% -10%, rgba(232,207,194,.55), transparent 62%),
    radial-gradient(900px 720px at 2% 38%, rgba(217,220,210,.45), transparent 60%),
    radial-gradient(1000px 860px at 66% 104%, rgba(232,207,194,.30), transparent 66%);
}
body::after {
  z-index: -1;
  background: radial-gradient(126% 96% at 50% 42%, transparent 50%, rgba(20,23,28,.06) 100%);
}

/* ---------- Raised-paper surfaces (elevation tier 2) ---------- */
.panel,
.quote-frame,
.slider-wrap,
.swatch,
.tier,
.info-card {
  background-color: var(--canvas);
  background-image: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--elev-2), var(--hl-top);
  transition: transform var(--lift) var(--ease), box-shadow var(--lift) var(--ease);
}
.panel:hover,
.swatch:hover,
.tier:hover,
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-3), var(--hl-top);
}
.swatch:hover { transform: translateY(-3px) scale(1.012); }
/* panels also carry .rv — keep the lift snappy on hover, reveal stays smooth */
.panel.rv.in { transition: opacity .8s var(--ease), transform var(--lift) var(--ease), box-shadow var(--lift) var(--ease); }

.summary-box,
.form-status,
.chip {
  border-radius: var(--radius);
  box-shadow: var(--elev-1), inset 0 1px 0 rgba(255,255,255,.55);
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--elev-2), inset 0 1px 0 rgba(255,255,255,.6); }

/* a plate is a large raised working surface (forms, long panels) */
.plate {
  background-color: var(--canvas);
  background-image: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--elev-3), var(--hl-top);
  padding: clamp(1.5rem, 2.8vw, 2.75rem);
  position: relative;
  z-index: 2;
}

/* ---------- Paper grain + washes ---------- */
.grain {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
  opacity: .032;
  background-image: var(--grain-url);
  background-size: 220px 220px;
  mix-blend-mode: multiply;
}
.wash {
  will-change: translate;
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .4;
  background: var(--accent-soft);
  z-index: 0;
  animation: washBreathe 11s ease-in-out infinite;
}
.wash--sage { background: var(--sage); opacity: .28; animation-delay: -4s; }
@keyframes washBreathe {
  0%, 100% { opacity: .34; transform: scale(1); }
  50% { opacity: .48; transform: scale(1.045); }
}
/* thin flowing contour lines — the same motif as the hero mark, continued into sections
   that had no decoration before, so the line/color language runs the whole page rather
   than stopping after the hero. A slow opacity drift keeps them from sitting static. */
.contour { pointer-events: none; will-change: translate; animation: contourDrift 14s ease-in-out infinite; }
.contour:nth-of-type(even) { animation-delay: -6s; }
@keyframes contourDrift { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .wash, .wash--sage, .contour { animation: none; }
}

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.site-head.is-stuck {
  /* fully opaque once stuck — content that scrolls underneath (e.g. the quote
     card, which intentionally rides up into this zone) must not ghost through */
  background: var(--canvas);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 26px -20px rgba(20,23,28,.35);
}
.head-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.lockup { display: inline-flex; align-items: center; gap: .7rem; }
.lockup svg {
  width: 30px; height: 30px; border-radius: 7px;
  box-shadow: 0 1px 2px rgba(20,23,28,.22), 0 6px 14px -8px rgba(20,23,28,.45);
  transition: transform var(--lift) var(--ease), box-shadow var(--lift) var(--ease);
}
a.lockup:hover svg { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,23,28,.24), 0 12px 22px -10px rgba(20,23,28,.5); }
.wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.375rem;
  letter-spacing: .02em;
  color: var(--ink);
  line-height: 1;
}
.head-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.head-nav a { font-size: var(--text-sm); color: var(--ink-soft); }
.head-nav a:hover { color: var(--ink); }
.head-nav a[aria-current='page'] { color: var(--ink); }
.head-cta { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink) !important; font-weight: 500; }
.head-cta .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(181,80,42,.45);
  animation: dotPulse 2.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(181,80,42,.35); }
  50% { box-shadow: 0 0 0 4px rgba(181,80,42,0); }
}
@media (prefers-reduced-motion: reduce) { .head-cta .dot { animation: none; } }

.menu-btn {
  display: none;
  font-family: var(--font-display); font-weight: 300;
  font-size: 1rem; letter-spacing: .04em;
  align-items: center; gap: .5rem;
  min-height: 44px; padding-inline: .25rem;
}
.menu-btn .bars { display: inline-block; width: 20px; }
.menu-btn .bars i { display: block; height: 1px; background: var(--ink); margin: 4px 0; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 950;
  background: var(--canvas);
  display: flex; flex-direction: column;
  padding: 1.5rem var(--gutter) 3rem;
  transform: translateY(-100%);
  transition: transform .55s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mm-top { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.mm-close { font-family: var(--font-display); font-size: 1rem; letter-spacing: .04em; min-height: 44px; }
.mm-nav { margin-top: auto; margin-bottom: auto; display: grid; gap: .25rem; }
.mm-nav a {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.25rem, 12vw, 3rem);
  line-height: 1.25;
  border-bottom: 1px solid var(--rule);
  padding-block: .5rem;
}
.mm-foot { color: var(--ink-mute); font-size: var(--text-sm); }
.mm-foot a { color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(8.5rem, 17vh, 12rem); padding-bottom: clamp(4.5rem, 9vh, 8rem); overflow: hidden; }
.hero .wash { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; right: -6vw; top: -8vw; }
.hero-in { position: relative; z-index: 1; row-gap: 2.5rem; }
.hero-copy { grid-column: 1 / span 7; }
.hero h1 { margin-top: 1.5rem; }
.hero h1 .hl {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  animation: lineUp .9s var(--ease) forwards;
}
.hero h1 .hl:nth-child(1) { animation-delay: .15s; }
.hero h1 .hl:nth-child(2) { animation-delay: .28s; }
html.intro-playing .hero h1 .hl:nth-child(1) { animation-delay: 1.58s; }
html.intro-playing .hero h1 .hl:nth-child(2) { animation-delay: 1.71s; }
@keyframes lineUp { to { opacity: 1; transform: none; } }
.hero .lede { margin-top: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2.5rem; }
.hero-side {
  grid-column: 9 / span 4;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.hero-side__label { color: var(--ink-mute); }
.hero-side__caption { max-width: 22ch; color: var(--ink-mute); }
.trust {
  margin-top: clamp(3rem, 7vh, 5rem);
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  display: flex; flex-wrap: wrap; gap: .35rem 1.4rem;
  font-size: var(--text-xs); color: var(--ink-mute); letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-figure-frame {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: figureFloat 7s ease-in-out infinite;
}
.hero-figure-glow {
  position: absolute;
  inset: -12% -6%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(226,178,155,0) 68%);
  opacity: .55;
  filter: blur(6px);
  z-index: 0;
  animation: glowPulse 7s ease-in-out infinite;
}
.hero-figure { position: relative; z-index: 1; width: 100%; max-width: 300px; height: auto; opacity: .95; filter: drop-shadow(0 18px 30px rgba(20,23,28,.06)); }
@keyframes figureFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glowPulse { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: .65; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .hero-figure-frame, .hero-figure-glow { animation: none; }
}

/* ---------- Pull quote band ---------- */
.quote-band { position: relative; overflow: visible; }
/* a whisper of green behind the quote card — subtle, not a solid tint */
.quote-band::before {
  content: '';
  position: absolute;
  inset: -10% -6%;
  background: radial-gradient(60% 60% at 30% 40%, rgba(94,110,78,.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: washBreathe 13s ease-in-out infinite;
  animation-delay: -2s;
}
@media (prefers-reduced-motion: reduce) { .quote-band::before { animation: none; } }
.quote-frame {
  padding: clamp(2.25rem, 5vw, 4.5rem);
  grid-column: 2 / span 10;
  position: relative;
  z-index: 3;
  /* breaks the section boundary: sits half in the hero, half in the surface band */
  margin-top: calc(-1 * clamp(3.5rem, 9vh, 7rem));
  box-shadow: var(--elev-3), var(--hl-top);
}
.quote-frame blockquote {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.14; letter-spacing: -.01em;
  max-width: 22ch;
}
.quote-frame blockquote span { display: block; }
.quote-attrib { margin-top: 2rem; }

/* ---------- Rail (index numerals down a hairline) ---------- */
.rail { grid-column: 1 / span 3; position: relative; }
.rail-head { position: sticky; top: 7rem; }
.railed { border-left: 1px solid var(--rule); padding-left: clamp(1rem, 2vw, 2rem); }

/* ---------- Hairline panels ---------- */
.panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.75rem);
  position: relative;
  z-index: 3;
  /* foreground plane overlaps the next section's edge */
  margin-bottom: calc(-1 * clamp(2.5rem, 6vh, 4.5rem));
}
.panel {
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  display: flex; flex-direction: column; gap: .9rem;
}
/* staggered elevation so the row is not one flat plane */
.panel:nth-child(2) { transform: translateY(-14px); box-shadow: var(--elev-3), var(--hl-top); }
.panel:nth-child(2):hover { transform: translateY(-16px); }
.panel:nth-child(3) { transform: translateY(6px); box-shadow: var(--elev-1), var(--hl-top); }
.panel:nth-child(3):hover { transform: translateY(4px); box-shadow: var(--elev-2), var(--hl-top); }
.panel h3 { font-size: 1.1875rem; font-weight: 500; font-family: var(--font-body); letter-spacing: -.005em; line-height: 1.3; }
.panel p { font-size: var(--text-sm); color: var(--ink-soft); max-width: 30ch; }

/* ---------- How it works (pinned) ---------- */
.steps { position: relative; padding-top: calc(var(--band) + clamp(.5rem, 3vh, 2rem)); }
.steps-sticky {
  grid-column: 1 / span 5;
  position: sticky; top: 22vh;
  align-self: start;
}
.step-index { display: flex; align-items: baseline; gap: 1rem; }
.step-index .big {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(4.5rem, 11vw, 9rem); line-height: .85;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.step-label { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.25rem, 2vw, 1.75rem); margin-top: 1rem; }
.step-dots { display: flex; gap: .5rem; margin-top: 2rem; }
.step-dots i { width: 26px; height: 1px; background: var(--rule); display: block; transition: background-color .4s var(--ease); }
.step-dots i.on { background: var(--accent); }
.steps-list { grid-column: 7 / span 6; display: grid; gap: 0; }
.step {
  padding-block: clamp(3rem, 9vh, 5.5rem);
  border-top: 1px solid var(--rule);
  opacity: .85;
  transition: opacity .5s var(--ease);
  position: relative;
  z-index: 0;
  padding-inline: clamp(1rem, 2vw, 1.75rem);
  margin-inline: calc(-1 * clamp(1rem, 2vw, 1.75rem));
}
/* the active step lifts off the recessed band as a card */
.step::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  border-radius: var(--radius);
  background-color: var(--canvas);
  background-image: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--elev-2), var(--hl-top);
  opacity: 0;
  transform: translateY(8px) scale(.995);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.step.is-active::before { opacity: 1; transform: none; }
.step.is-active { border-top-color: transparent; }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step.is-active { opacity: 1; }
.step h3 { margin-bottom: .9rem; }
.step p { color: var(--ink-soft); font-size: var(--text-base); }
.step .num { display: block; margin-bottom: 1rem; }

/* ---------- Budget slider ---------- */
.budget { position: relative; overflow: hidden; }
.budget .wash { width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; left: -12vw; bottom: -14vw; }
.budget-in { position: relative; z-index: 1; row-gap: clamp(2.5rem, 5vw, 4rem); }
.budget-copy { grid-column: 1 / span 5; }
.budget-widget { grid-column: 7 / span 6; }
.slider-wrap { padding: clamp(1.5rem, 2.6vw, 2.5rem); box-shadow: var(--elev-3), var(--hl-top); }
.slider-value {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.5rem, 5.2vw, 3.75rem); line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: .25rem;
}
.slider-value .cur { font-size: .45em; color: var(--ink-mute); }
input[type='range'] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; margin-top: 1.75rem;
  background: transparent; cursor: pointer;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 1px; background: var(--rule);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); border: 0;
  margin-top: -7px;
  box-shadow: 0 0 0 5px rgba(181,80,42,.16);
}
input[type='range']::-moz-range-track { height: 1px; background: var(--rule); }
input[type='range']::-moz-range-thumb {
  width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 5px rgba(181,80,42,.16);
}
.slider-scale { display: flex; justify-content: space-between; margin-top: .5rem; }
.slider-read { margin-top: 2rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; min-height: 8.5rem; }
.slider-read h4 { font-family: var(--font-display); font-weight: 300; font-size: 1.375rem; margin-bottom: .6rem; }
.slider-read p { font-size: var(--text-sm); color: var(--ink-soft); max-width: 44ch; }
.slider-note { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

/* ---------- Style swatches ---------- */
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(.875rem, 1.4vw, 1.25rem); align-items: start; }
.swatch { padding: clamp(1.25rem, 2vw, 1.75rem); display: flex; flex-direction: column; gap: 1.25rem; min-height: 300px; overflow: hidden; }
/* alternating elevation reads as cards at different heights */
.swatch:nth-child(even) { transform: translateY(18px); box-shadow: var(--elev-1), var(--hl-top); }
.swatch:nth-child(even):hover { transform: translateY(16px); box-shadow: var(--elev-2), var(--hl-top); }
/* icon bleeds to the card edge as a tinted "photo" frame instead of sitting small on plain paper —
   each style gets its own tint so the swatch reads as a little scene, not just a line drawing */
.swatch-art {
  height: 128px;
  margin: calc(-1 * clamp(1.25rem, 2vw, 1.75rem)) calc(-1 * clamp(1.25rem, 2vw, 1.75rem)) .25rem;
  padding: 1.25rem;
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  animation: swatchFloat 8s ease-in-out infinite;
  transition: filter .35s var(--ease);
}
/* transform is owned by swatchFloat, so hover response rides on filter instead
   to avoid fighting the running animation */
.swatch:hover .swatch-art { filter: brightness(1.06); }
.swatch--warm .swatch-art { background: linear-gradient(160deg, var(--accent-soft) 0%, var(--canvas) 100%); }
.swatch--sharp .swatch-art { background: linear-gradient(160deg, #E6E9DD 0%, var(--canvas) 100%); }
.swatch--bold .swatch-art { background: linear-gradient(160deg, var(--accent-soft) 0%, #F0DCC8 100%); }
.swatch--quiet .swatch-art { background: linear-gradient(160deg, var(--sage-tint) 0%, var(--canvas) 100%); }
.swatch:nth-child(2) .swatch-art { animation-delay: .6s; }
.swatch:nth-child(3) .swatch-art { animation-delay: 1.2s; }
.swatch:nth-child(4) .swatch-art { animation-delay: 1.8s; }
@keyframes swatchFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .swatch-art { animation: none; } }
.swatch-name { font-size: 1.0625rem; font-weight: 500; }
.swatch-note { font-size: var(--text-xs); color: var(--ink-mute); line-height: 1.55; max-width: 26ch; }
.spec { margin-top: auto; }
.spec-a { font-family: var(--font-display); font-weight: 300; font-size: 1.75rem; line-height: 1; }
.spec-b { font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: .5rem; }
.swatch--warm .spec-a { letter-spacing: .01em; }
.swatch--sharp .spec-a { font-family: var(--font-body); font-weight: 500; letter-spacing: -.03em; }
.swatch--bold .spec-a { font-family: var(--font-body); font-weight: 700; font-size: 2rem; letter-spacing: -.04em; text-transform: uppercase; }
.swatch--quiet .spec-a { font-size: 1.25rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Marquee ---------- */
/* a raised rail that crosses the boundary into the dark plane below */
.marquee {
  position: relative;
  z-index: 5;
  width: min(calc(var(--shell) - 2rem), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  margin-bottom: calc(-1 * clamp(1.5rem, 4vh, 2.75rem));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding-block: 1.5rem;
  overflow: hidden;
  background-color: var(--canvas);
  background-image:
    linear-gradient(120deg, rgba(94,110,78,.12), rgba(181,80,42,.09)),
    var(--paper);
  box-shadow: var(--elev-3), var(--hl-top);
}
.marquee-track {
  display: flex; align-items: center; gap: 0;
  width: max-content;
  animation: drift 46s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  padding-inline: clamp(1.25rem, 2.5vw, 2.25rem);
  border-right: 1px solid var(--rule);
  white-space: nowrap; color: var(--ink-soft);
  opacity: .45;
  transition: opacity .3s ease, color .3s ease;
}
.marquee-track span:hover { opacity: .85; color: var(--accent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Inverted dark section ---------- */
/* On-brand deep olive/green instead of neutral navy — carries the same feeling
   (confident, warm, high contrast) but rooted in Kestrid's actual palette rather
   than a generic dark UI tone, per client direction (2026-08-17). */
.invert {
  --canvas: #171C13;
  --ink: #F3F1EA;
  --ink-soft: #C9CFC0;
  --ink-mute: #93A184;
  --rule: #3A4530;
  background:
    radial-gradient(120% 140% at 24% 6%, var(--deep-1) 0%, var(--deep-2) 46%, var(--deep-3) 100%);
  color: var(--ink);
  position: relative; overflow: hidden;
  /* the dark plane sits forward: its own elevation above and below, plus a top light line */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 -22px 44px -30px rgba(20,23,28,.55),
    0 22px 44px -30px rgba(20,23,28,.55);
}
/* soft inner glow so the panel reads as a lit object, not a flat fill */
.invert::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 420px at 18% 22%, rgba(181,80,42,.18), transparent 68%),
    radial-gradient(620px 460px at 84% 88%, rgba(148,161,124,.16), transparent 70%);
}
.invert .lede, .invert p { color: var(--ink-soft); }
.invert .eyebrow { color: var(--ink-mute); }
.invert-in { position: relative; z-index: 1; row-gap: 3rem; align-items: end; }
.invert-copy { grid-column: 1 / span 7; }
.invert h2 { color: var(--ink); }
.invert-side { grid-column: 9 / span 4; }
.invert .lockup svg {
  width: 42px; height: 42px; border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,.45), 0 16px 32px -14px rgba(0,0,0,.7);
}
.invert .wordmark { color: var(--ink); font-size: 1.75rem; }
.feather { position: absolute; right: -3.5rem; top: 34%; transform: translateY(-50%); width: min(30vw, 360px); opacity: .55; z-index: 0; will-change: translate; }

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 6vh, 5rem) 2.5rem;
  position: relative;
  background: linear-gradient(180deg, rgba(237,233,226,.5), rgba(237,233,226,0) 55%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.foot-in { row-gap: 2.5rem; }
.foot-brand { grid-column: 1 / span 5; }
.foot-links { grid-column: 7 / span 3; display: grid; gap: .6rem; align-content: start; }
.foot-contact { grid-column: 10 / span 3; display: grid; gap: .6rem; align-content: start; }
.site-foot a, .site-foot p { font-size: var(--text-sm); color: var(--ink-soft); }
.foot-bottom {
  margin-top: clamp(3rem, 7vh, 5rem); border-top: 1px solid var(--rule); padding-top: 1.25rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- Page header (interior pages) ---------- */
.page-head { position: relative; padding-top: clamp(8rem, 16vh, 11rem); padding-bottom: clamp(3rem, 6vh, 5rem); overflow: hidden; }
.page-head .wash { width: 38vw; height: 38vw; max-width: 460px; max-height: 460px; right: -4vw; top: -10vw; }
.page-head-in { position: relative; z-index: 1; }
.page-head h1 { grid-column: 1 / span 8; font-size: clamp(2.25rem, 5.4vw, 4.25rem); }
.page-head .lede { grid-column: 1 / span 6; margin-top: 1.75rem; }
.page-head .eyebrow { grid-column: 1 / span 8; margin-bottom: 1.5rem; }

/* ---------- Packages ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem, 1.8vw, 1.75rem); align-items: stretch; position: relative; z-index: 2; }
.tier { padding: clamp(1.75rem, 2.6vw, 2.5rem); display: flex; flex-direction: column; gap: 1.5rem; }
.tier--feature {
  background-color: var(--surface);
  background-image: linear-gradient(178deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.2) 60%, rgba(255,255,255,0) 100%);
  box-shadow: var(--elev-3), var(--hl-top), inset 0 0 0 1px var(--accent-soft);
  transform: translateY(-16px);
  padding-block: calc(clamp(1.75rem, 2.6vw, 2.5rem) + 8px);
}
.tier--feature:hover { transform: translateY(-19px); }
.tier-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.tier h2 { font-family: var(--font-display); font-weight: 300; font-size: 1.875rem; line-height: 1.1; }
.tier-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tier-tagline { font-size: var(--text-sm); color: var(--ink-soft); max-width: 34ch; }
.tier ul { list-style: none; display: grid; gap: .75rem; }
.tier li { font-size: var(--text-sm); padding-left: 1.1rem; position: relative; color: var(--ink); max-width: 34ch; }
.tier li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--accent); }
.tier-note { font-size: var(--text-xs); color: var(--ink-mute); font-style: italic; }
.tier .btn { margin-top: auto; align-self: flex-start; }
.placeholder-note { font-style: italic; color: var(--ink-mute); font-size: var(--text-xs); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .625rem; }
.chip {
  border: 1px solid var(--rule);
  padding: .6rem 1rem; min-height: 44px;
  font-size: var(--text-sm); color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent;
}
.chip:hover { border-color: var(--ink-mute); color: var(--ink); }
.chip[aria-pressed='true'] {
  background: rgba(181,80,42,.12);
  border-color: var(--accent);
  color: var(--ink);
}
.chip .mk { width: 7px; height: 7px; border-radius: 50%; background: transparent; border: 1px solid var(--ink-mute); }
.chip[aria-pressed='true'] .mk { background: var(--accent); border-color: var(--accent); }

/* ---------- Forms ---------- */
.field { display: grid; gap: .5rem; }
.field > label, .fieldset-label { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule);
  padding: .8rem 0;
  font-size: var(--text-base);
  border-radius: 0;
}
.field select { appearance: none; background-image: none; padding-right: 1.5rem; }
.select-shell { position: relative; }
.select-shell::after {
  content: ''; position: absolute; right: 2px; top: 50%; width: 7px; height: 7px;
  border-right: 1px solid var(--ink-mute); border-bottom: 1px solid var(--ink-mute);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: var(--accent); }
.err { font-size: var(--text-xs); color: var(--accent); min-height: 1rem; }
.form-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 40rem) { .form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.25rem); } }
.form-status { border: 1px solid var(--rule); padding: 1.5rem; display: none; }
.form-status.is-on { display: block; }
.form-status h3 { font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; margin-bottom: .5rem; }
.form-status p { font-size: var(--text-sm); color: var(--ink-soft); }
.form-status--ok { box-shadow: inset 3px 0 0 -1px var(--sage); }
.summary-box { border: 1px solid var(--rule); background: var(--canvas); padding: 1.25rem; font-size: var(--text-sm); color: var(--ink-soft); white-space: pre-line; }

/* ---------- Info card ---------- */
.info-card { padding: clamp(1.5rem, 2.4vw, 2.25rem); display: grid; gap: 1.75rem; align-content: start; align-self: start; }
.info-row { display: grid; gap: .35rem; }
.info-row dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.info-row dd { font-size: var(--text-base); }
.info-card ul { list-style: none; display: grid; gap: .5rem; }
.info-card li { font-size: var(--text-sm); color: var(--ink-soft); padding-left: 1.1rem; position: relative; }
.info-card li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--sage); }

/* ---------- FAQ ---------- */
.faq {
  background-color: var(--canvas);
  background-image: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--elev-2), var(--hl-top);
  padding-inline: clamp(1.25rem, 2.4vw, 2rem);
  align-self: start;
}
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 0; }
.faq-item:last-child .faq-q { padding-bottom: 1.5rem; }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; min-height: 56px;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.125rem, 1.8vw, 1.375rem);
}
.faq-q:hover { color: var(--accent); }
.pm { position: relative; width: 14px; height: 14px; flex: none; }
.pm i { position: absolute; background: var(--ink); transition: transform .4s var(--ease), opacity .4s var(--ease); }
.pm i:first-child { left: 0; top: 6.5px; width: 14px; height: 1px; }
.pm i:last-child { left: 6.5px; top: 0; width: 1px; height: 14px; }
.faq-q[aria-expanded='true'] .pm i:last-child { transform: rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height .45s var(--ease); }
.faq-a p { padding-bottom: 1.75rem; font-size: var(--text-sm); color: var(--ink-soft); max-width: 60ch; }

/* ---------- Reveals & cursor ---------- */
.rv { opacity: 0; transform: translateY(16px); }
.rv.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 800;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0; pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity .3s ease, width .3s var(--ease), height .3s var(--ease);
}
/* soft glow riding behind the ring — scales with it, stays faint */
.cursor-dot::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181,80,42,.20) 0%, rgba(181,80,42,0) 72%);
  filter: blur(4px);
  transition: inset .3s var(--ease);
}

/* ---------- Intro overlay ---------- */
.intro { display: none; }
.intro.is-live {
  display: grid;
  position: fixed; inset: 0; z-index: 9999;
  place-items: center;
  background: var(--canvas);
  clip-path: inset(0 0 0 0);
}
.intro-lock { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.intro-mark { width: 68px; height: 68px; border-radius: 15px; transform: scale(.94); opacity: 0; }
.intro-word { display: flex; font-family: var(--font-display); font-weight: 300; font-size: 2rem; letter-spacing: .06em; }
.intro-word span { opacity: 0; transform: translateY(14px); display: inline-block; }
.intro-sweep { position: absolute; left: 0; top: 50%; height: 1px; width: 100%; background: var(--rule); transform: scaleX(0); transform-origin: left; }
html.intro-lockscroll, html.intro-lockscroll body { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 62rem) {
  /* every grid child goes full width below the desktop breakpoint (overrides inline spans) */
  .grid > * { grid-column: 1 / span 12 !important; }
  .foot-links { grid-column: 1 / span 6 !important; }
  .foot-contact { grid-column: 7 / span 6 !important; }
  .panels { grid-template-columns: 1fr; margin-bottom: 0; }
  .panel:nth-child(n) { transform: none; box-shadow: var(--elev-2), var(--hl-top); }
  .panel:nth-child(n):hover { transform: translateY(-2px); box-shadow: var(--elev-3), var(--hl-top); }
  .swatch:nth-child(even) { transform: none; box-shadow: var(--elev-2), var(--hl-top); }
  .swatch:nth-child(even):hover { transform: translateY(-2px); box-shadow: var(--elev-3), var(--hl-top); }
  .tier--feature { transform: none; }
  .tier--feature:hover { transform: translateY(-2px); }
  .quote-frame { margin-top: calc(-1 * clamp(2rem, 5vh, 3.5rem)); }
  .hero-copy, .invert-copy { grid-column: 1 / span 12; }
  .hero-side { grid-column: 1 / span 8; }
  .invert-side { grid-column: 1 / span 12; }
  .quote-frame { grid-column: 1 / span 12; }
  .budget-copy, .budget-widget { grid-column: 1 / span 12; }
  .page-head h1, .page-head .lede, .page-head .eyebrow { grid-column: 1 / span 12; }
  .grid { row-gap: 1.5rem; }
  .steps-sticky { display: none; }
  .steps-list { grid-column: 1 / span 12; }
  .foot-brand { grid-column: 1 / span 12; }
  .foot-links { grid-column: 1 / span 6; }
  .foot-contact { grid-column: 7 / span 6; }
  .swatches { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .swatch { min-height: 260px; }
  .tiers { grid-template-columns: 1fr; }
  .feather { display: none; }
}

@media (max-width: 48rem) {
  .head-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .swatches { grid-template-columns: 1fr; }
  .swatch { min-height: 0; }
  .hero-side { display: none; }
  .foot-links, .foot-contact { grid-column: 1 / span 12 !important; }
  .step { padding-block: 2.5rem; opacity: 1; margin-inline: 0; border-top-color: transparent; }
  .step + .step { margin-top: 1.25rem; }
  .step:last-child { border-bottom: 0; }
  .step::before { opacity: 1; transform: none; }
  .steps-sticky .step-dots { display: none; }
  .foot-links, .foot-contact { grid-column: 1 / span 12; }
  .cursor-dot { display: none; }
}

/* placeholders read as hints, not content */
::placeholder { color: var(--ink-mute); opacity: 1; }
