/* Rising Phoenix Partners — site styles
   Full-bleed layout: sections run edge to edge; only running text is width-limited. */

:root {
  /* Brand — fire and wing come straight from the logo's gradients */
  --soot: #14161a;
  --charcoal: #1d2127;
  --char-2: #252a31;
  --line: rgb(239 234 227 / 0.12);
  --ash: #efeae3;
  --ash-dim: rgb(239 234 227 / 0.72);
  --ash-faint: rgb(239 234 227 / 0.5);
  --deep: #ba141a;
  --ember: #f04c23;
  --flame: #fa5518;
  --amber: #fcaf17;
  --flare: #ffd200;
  --wing-deep: #00548a;
  --wing: #2077a8;
  --wing-light: #56b2dd;
  --sky: #6ccaf2;

  --fire: linear-gradient(100deg, var(--deep) 0%, var(--ember) 45%, var(--amber) 80%, var(--flare) 100%);
  --fire-soft: linear-gradient(100deg, #d9361f 0%, var(--flame) 55%, #fc8c16 100%);

  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid scale — grows with the viewport, clamped at both ends */
  --step--1: clamp(0.84rem, 0.8rem + 0.18vw, 0.95rem);
  --step-0: clamp(1rem, 0.94rem + 0.28vw, 1.18rem);
  --step-1: clamp(1.18rem, 1.05rem + 0.55vw, 1.5rem);
  --step-2: clamp(1.45rem, 1.2rem + 1.1vw, 2.2rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 3.6rem);
  --step-4: clamp(2.5rem, 1.6rem + 4vw, 6rem);
  --step-5: clamp(2.6rem, 1rem + 4.4vw, 7.6rem);

  --gutter: clamp(1rem, 4.5vw, 7rem);
  --section-y: clamp(5rem, 12vh, 11rem);
  --measure: 64ch;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: clamp(4.25rem, 3.6rem + 2vw, 6rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; }
img, svg, canvas, iframe { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ---------- Base ---------- */
body {
  background: var(--soot);
  color: var(--ash);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Film grain over every dark surface so gradients never band or look flat */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--ash);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 850; line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: var(--step-4); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

::selection { background: var(--ember); color: #fff; }

:focus-visible {
  outline: 2px solid var(--flare);
  outline-offset: 4px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  padding: 0.75rem 1.1rem; border-radius: var(--radius-s);
  background: var(--ash); color: var(--soot); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.prose { max-inline-size: var(--measure); }
.prose p + p { margin-top: 1.1em; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ash-dim); max-inline-size: 52ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-glow: 0 0 0 rgb(250 85 24 / 0);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 650;
  letter-spacing: -0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), filter 0.45s var(--ease-out);
}
.btn-primary {
  color: #fff;
  background: var(--fire-soft);
  box-shadow: 0 10px 30px -12px rgb(240 76 35 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
/* Light sweeps across on hover, and the whole button brightens: it turns on, never off */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.45) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn-primary:hover, .btn-primary:focus-visible {
  filter: brightness(1.14) saturate(1.1);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -12px rgb(252 140 22 / 0.85), 0 0 0 1px rgb(255 210 0 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.btn-primary:hover::after, .btn-primary:focus-visible::after { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0); }

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  color: var(--ash);
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.link-arrow:hover, .link-arrow:focus-visible { background-size: 100% 1px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
  transition: transform 0.55s var(--ease-out), background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  background-color: rgb(20 22 26 / 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-105%); }

.brand { flex: none; display: block; border-radius: 6px; }
.brand img { width: clamp(8.5rem, 6rem + 5vw, 14.5rem); height: auto; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.5rem);
}
.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 0.7rem + 0.36vw, 1.2rem);
  font-weight: 550;
  color: var(--ash-dim);
  text-decoration: none;
  padding-block: 0.4rem;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--fire);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--ash); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-phone { color: var(--ash); font-variant-numeric: tabular-nums; }
.nav-cta { min-height: clamp(2.75rem, 2.2rem + 1vw, 3.5rem); padding: 0.7rem clamp(1.35rem, 1rem + 0.6vw, 1.9rem); font-size: clamp(0.88rem, 0.7rem + 0.36vw, 1.2rem); }

.nav-toggle { display: none; }

@media (max-width: 56rem) {
  .nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    z-index: 2;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 1.35rem;
    height: 2px;
    border-radius: 2px;
    background: var(--ash);
    transition: transform 0.45s var(--ease-out), opacity 0.3s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { transform: translateY(-6px); }
  .nav-toggle-bars::after { transform: translateY(6px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    background:
      radial-gradient(120% 60% at 0% 100%, rgb(240 76 35 / 0.28), transparent 60%),
      radial-gradient(90% 50% at 100% 0%, rgb(0 84 138 / 0.35), transparent 60%),
      var(--soot);
    clip-path: circle(0% at calc(100% - var(--gutter) - 1.5rem) calc(var(--header-h) / 2));
    visibility: hidden;
    transition: clip-path 0.7s var(--ease-in-out), visibility 0s 0.7s;
  }
  .site-nav.is-open {
    clip-path: circle(150% at calc(100% - var(--gutter) - 1.5rem) calc(var(--header-h) / 2));
    visibility: visible;
    transition: clip-path 0.7s var(--ease-in-out), visibility 0s;
  }
  .site-nav .nav-link { font-size: var(--step-3); font-weight: 750; color: var(--ash); letter-spacing: -0.02em; }
  .site-nav .nav-cta { margin-top: 1rem; font-size: var(--step-1); min-height: 3.5rem; padding-inline: 2rem; }
  .brand { position: relative; z-index: 2; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Backdrop: one fixed layer the whole page scrolls over ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 20% 100%, rgb(186 20 26 / 0.45), transparent 70%),
    radial-gradient(50% 40% at 95% 5%, rgb(0 84 138 / 0.35), transparent 70%),
    var(--soot);
}
.backdrop canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.backdrop .backdrop-heat { opacity: 0; transition: opacity 1.6s var(--ease-out); }
.backdrop.is-live .backdrop-heat { opacity: 1; }
html { background: var(--soot); }
body { background: transparent; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + clamp(2rem, 6vh, 5rem)) var(--gutter) clamp(3rem, 10vh, 7rem);
  overflow: hidden;
}
/* Readability scrim: darkens behind the text column without flattening the scene */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(20 22 26 / 0.6) 0%, rgb(20 22 26 / 0.25) 45%, transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 8rem);
  width: 100%;
}
.hero-copy { display: grid; gap: clamp(1.5rem, 3.5vh, 2.75rem); }
.hero-title { max-inline-size: 11.5em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: block; }
.hero-sub { font-size: var(--step-1); line-height: 1.55; color: var(--ash-dim); max-inline-size: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

.hero-mark {
  position: relative;
  justify-self: center;
  width: min(100%, clamp(12rem, 27vw, 40rem));
  aspect-ratio: 1;
}
.hero-mark::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 38% 52%, rgb(250 85 24 / 0.38), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgb(32 119 168 / 0.32), transparent 72%);
  filter: blur(20px);
  animation: breathe 7s var(--ease-in-out) infinite alternate;
}
.hero-mark .mark { width: 100%; height: 100%; overflow: visible; transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 1.2s var(--ease-out); }

@keyframes breathe {
  from { opacity: 0.65; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1.04); }
}

/* Load sequence — only when JS is running, so text is never hidden without it */
.js .hero-title .line > span { animation: rise 1.1s var(--ease-out) both; }
.js .hero-title .line:nth-child(1) > span { animation-delay: 0.25s; }
.js .hero-title .line:nth-child(2) > span { animation-delay: 0.85s; }
.js .hero-sub, .js .hero-actions { animation: fade-up 1s var(--ease-out) both; }
.js .hero-sub { animation-delay: 1.3s; }
.js .hero-actions { animation-delay: 1.5s; }

@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 56rem) {
  .hero { align-items: end; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-self: start; width: clamp(7rem, 34vw, 12rem); }
  .hero::before { background: linear-gradient(0deg, rgb(20 22 26 / 0.7) 0%, rgb(20 22 26 / 0.3) 55%, transparent 85%); }
}

/* ---------- Shared section rhythm ---------- */
:root { --panel: rgb(22 25 30 / 0.74); --panel-strong: rgb(22 25 30 / 0.86); }
html { interpolate-size: allow-keywords; }

.changes, .how, .pricing, .faq, .contact {
  position: relative;
  padding: var(--section-y) var(--gutter);
}
.section-title { max-inline-size: 16ch; }

/* Reveal: each element animates once it is genuinely on screen (see site.js) */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- The slip: problems drift out of line, then the system catches them ---------- */
.slip { --slip: 0; --line: 1; --fix: 1; position: relative; }
.slip-stage {
  display: grid;
  gap: clamp(1.5rem, 4vh, 3rem) clamp(2rem, 6vw, 8rem);
  align-content: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
}
/* 100vh of content + 115vh of pinned scroll for the three-stage scene (halved 2026-10-10: it took too much scrolling) */
.motion .slip { height: 215vh; }
.motion .slip-stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.slip-title { max-inline-size: 13ch; }
.slip-list { display: grid; gap: clamp(0.7rem, 1.6vh, 1.1rem); }
.slip-item {
  /* Each card catches in turn: its own progress, staggered by its position (--i) */
  --f: clamp(0, calc(var(--fix) * 1.6 - var(--i, 0) * 0.2), 1);
  --s: calc(var(--slip) * (1 - var(--f)));
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(0.9rem, 2vh, 1.35rem) clamp(1.1rem, 2vw, 1.75rem) clamp(0.9rem, 2vh, 1.35rem) clamp(1.4rem, 2.4vw, 2.2rem);
  border-radius: var(--radius-m);
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--wing-light) calc(var(--f) * 45%), rgb(239 234 227 / 0.12));
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transform: translate(calc(var(--drift) * var(--s)), calc(var(--drop) * var(--s))) rotate(calc(var(--tilt) * var(--s)));
  opacity: calc(1 - 0.5 * var(--s));
  will-change: transform;
}
.slip-item::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--sky), var(--wing));
  transform: scaleY(var(--f));
  box-shadow: 0 0 14px rgb(86 178 221 / calc(var(--f) * 0.7));
}
/* Problem gives way to its solution as the system catches it.
   With motion, both share one cell and cross-fade; without, both show, problem dimmed. */
.motion .slip-item > span { grid-area: 1 / 1; }
.slip-problem {
  opacity: clamp(0, calc(1 - var(--f) * 2), 1);
  transform: translateY(calc(var(--f) * -16px));
}
.slip-solution {
  font-weight: 750;
  color: #fff;
  opacity: clamp(0, calc(var(--f) * 2 - 1), 1);
  transform: translateY(calc((1 - var(--f)) * 16px));
}
html:not(.motion) .slip-problem { opacity: 1; transform: none; color: var(--ash-faint); font-weight: 500; }
html:not(.motion) .slip-solution { opacity: 1; transform: none; margin-top: 0.3rem; }
.slip-fix {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-inline-size: 30ch;
  opacity: var(--line);
  transform: translateY(calc((1 - var(--line)) * 24px));
}
@media (min-width: 64rem) {
  .slip-stage { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .slip-title { grid-row: span 2; align-self: center; }
  .slip-list, .slip-fix { grid-column: 2; }
}

/* ---------- What changes ---------- */
.change-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
@media (min-width: 40rem) { .change-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .change-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 150rem) { .change-grid { grid-template-columns: repeat(6, 1fr); } }

.change {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: clamp(1.75rem, 3vw, 3.25rem);
  background: var(--panel);
}
.change p { color: var(--ash-dim); max-inline-size: 38ch; }
.motion .change[data-reveal] { opacity: 1; transform: none; }
.motion .change[data-reveal] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.motion .change[data-reveal].is-in > * { opacity: 1; transform: none; }

/* Heat follows the cursor inside a panel */
[data-glow] { --mx: 50%; --my: 50%; }
[data-glow]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(28rem circle at var(--mx) var(--my), rgb(250 85 24 / 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
[data-glow]:hover::after { opacity: 1; }

.icon {
  width: clamp(2.5rem, 2rem + 1.4vw, 3.4rem);
  height: auto;
  margin-bottom: 0.6rem;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s, filter 0.4s;
}
.change:hover .icon { stroke: var(--flare); filter: drop-shadow(0 0 8px rgb(252 175 23 / 0.6)); }
.motion .change .icon path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease-in-out); }
.motion .change.is-in .icon path { stroke-dashoffset: 0; }
.motion .change.is-in .icon path:nth-child(2) { transition-delay: 0.25s; }
.motion .change.is-in .icon path:nth-child(3) { transition-delay: 0.5s; }
.motion .change.is-in .icon path:nth-child(4) { transition-delay: 0.7s; }

/* ---------- How it works: a flame line runs down the steps ---------- */
.how .section-title { max-inline-size: 7ch; }
.how { --p: 1; display: grid; gap: clamp(2.5rem, 6vh, 4rem) clamp(2rem, 6vw, 8rem); }
.motion .how { --p: 0; }
@media (min-width: 64rem) {
  .how { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .how-head { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; }
}
.steps {
  --rail: clamp(1.1rem, 1.5vw, 1.4rem);
  --indent: clamp(4rem, 6vw, 6rem);
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 7vh, 5rem);
  padding-left: var(--indent);
  counter-reset: step;
}
.steps::before, .steps::after {
  content: "";
  position: absolute;
  left: var(--rail);
  top: 1.2rem;
  bottom: 1.2rem;
  width: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
}
.steps::before { background: var(--line); }
.steps::after {
  background: linear-gradient(var(--flare), var(--ember) 60%, var(--deep));
  transform: translateX(-50%) scaleY(var(--p));
  transform-origin: top;
  box-shadow: 0 0 18px rgb(250 85 24 / 0.6);
}
.step { position: relative; counter-increment: step; display: grid; gap: 0.5rem; transition: opacity 0.6s var(--ease-out); }
.step::before {
  content: counter(step);
  position: absolute;
  left: calc(var(--rail) - var(--indent));
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgb(239 234 227 / 0.22);
  background: var(--soot);
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--ash-dim);
  transition: background 0.5s, color 0.5s, box-shadow 0.5s, border-color 0.5s;
}
.step h3 { font-size: var(--step-2); font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; padding-top: 0.2rem; }
.step p { color: var(--ash-dim); max-inline-size: 46ch; }
.motion .step { opacity: 0.4; }
.motion .step.is-lit { opacity: 1; }
.step.is-lit::before, html:not(.motion) .step::before {
  background: var(--fire-soft);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 6px rgb(250 85 24 / 0.14), 0 0 24px rgb(250 85 24 / 0.55);
}

/* ---------- Pricing ---------- */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.price-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: start;
  gap: clamp(1.25rem, 3vh, 2rem);
  padding: clamp(2rem, 6vw, 6.5rem);
  border-radius: var(--radius-l);
  background:
    radial-gradient(70% 90% at 100% 100%, rgb(240 76 35 / 0.18), transparent 70%),
    radial-gradient(60% 80% at 0% 0%, rgb(0 84 138 / 0.22), transparent 70%),
    var(--panel-strong);
}
/* A slowly turning fire-to-wing border */
.price-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), var(--ember), var(--flare), var(--ember) 30%, rgb(239 234 227 / 0.08) 42%, var(--wing-light) 62%, rgb(239 234 227 / 0.08) 82%, var(--ember));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: turn 14s linear infinite;
}
@keyframes turn { to { --angle: 360deg; } }
.price-title { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.025em; }
.price-line {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-inline-size: 26ch;
}
.price-line strong { font-weight: 800; }
.price-pair { white-space: nowrap; }
.price-num {
  display: inline-block;
  font-size: 1.9em;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}
.price-copy { color: var(--ash-dim); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: clamp(2rem, 5vh, 3rem) clamp(2rem, 6vw, 8rem); }
@media (min-width: 64rem) {
  .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .faq .section-title { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; }
}
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.6vh, 1.7rem) 0;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: var(--step-1); font-weight: 650; transition: color 0.3s; }
.qa summary:hover h3 { color: #fff; }
.qa-icon { position: relative; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid rgb(239 234 227 / 0.2); transition: border-color 0.4s, background 0.4s; }
.qa-icon::before, .qa-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.8rem;
  height: 1.5px;
  background: var(--ash);
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease-out);
}
.qa-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa summary:hover .qa-icon { border-color: var(--amber); }
.qa[open] .qa-icon { background: var(--fire-soft); border-color: transparent; }
.qa[open] .qa-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.5s var(--ease-out), content-visibility 0.5s allow-discrete;
}
.qa[open]::details-content { block-size: auto; }
.qa-body { padding-bottom: clamp(1.25rem, 3vh, 1.75rem); color: var(--ash-dim); max-inline-size: 60ch; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: clamp(2.5rem, 6vh, 4rem) clamp(2rem, 6vw, 8rem);
  align-items: start;
}
@media (min-width: 64rem) {
  .contact { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .contact-copy { position: sticky; top: calc(var(--header-h) + 3rem); }
}
.contact-copy { display: grid; gap: clamp(1.25rem, 3vh, 2rem); }
.contact-call { font-size: var(--step-1); }
.phone-link {
  color: var(--ash);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  background-image: var(--fire);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: color 0.3s;
}
.phone-link:hover { color: #fff; }
.contact-form { width: 100%; max-inline-size: 42rem; justify-self: end; }
.form-frame {
  border-radius: var(--radius-l);
  background: #fff;
  padding: clamp(0.5rem, 1.5vw, 1.25rem);
  box-shadow: 0 40px 90px -40px rgb(240 76 35 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.1);
}
.form-frame iframe { width: 100%; min-height: 900px; border: 0; border-radius: var(--radius-m); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(rgb(12 13 16 / 0.2), rgb(12 13 16 / 0.75));
}
.footer-grid { display: grid; gap: 2.5rem clamp(2rem, 5vw, 6rem); }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr); } }
.footer-about { margin-top: 1.25rem; color: var(--ash-dim); max-inline-size: 44ch; }
.footer-links { display: grid; align-content: start; gap: 0.8rem; }
.footer-links a, .footer-contact span { color: var(--ash-dim); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--ash); }
.footer-contact { display: grid; align-content: start; gap: 0.6rem; font-style: normal; }
.footer-phone { font-family: var(--font-display); font-size: var(--step-2); font-weight: 750; letter-spacing: -0.02em; color: var(--ash); text-decoration: none; }
.footer-phone:hover { color: #fff; }
.footer-legal { margin-top: clamp(2.5rem, 6vh, 4rem); padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ash-faint); }

/* ---------- Legal pages: calm, readable, one quiet background ---------- */
.legal {
  display: grid;
  gap: clamp(2rem, 5vh, 3.5rem) clamp(2rem, 6vw, 8rem);
  padding: calc(var(--header-h) + clamp(3rem, 10vh, 7rem)) var(--gutter) var(--section-y);
}
@media (min-width: 64rem) {
  .legal { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .legal-head { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; }
}
.legal-head h1 { font-size: var(--step-4); }
.legal-dates { margin-top: 1.5rem; display: grid; gap: 0.25rem; color: var(--ash-faint); font-size: var(--step--1); }
.legal-body {
  max-inline-size: 70ch;
  padding: clamp(1.75rem, 4vw, 4rem);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ash-dim);
}
.legal-body > * + * { margin-top: 1em; }
.legal-body h2 {
  margin-top: 2.4em;
  font-size: var(--step-2);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ash);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin-top: 1.6em; font-size: var(--step-1); font-weight: 650; color: var(--ash); }
.legal-body ul { padding-left: 1.25em; }
.legal-body li { padding-left: 0.35em; }
.legal-body li + li { margin-top: 0.4em; }
.legal-body li::marker { color: var(--ember); }
.legal-body strong { color: var(--ash); font-weight: 600; }
.legal-body a { color: var(--ash); text-decoration-color: var(--amber); text-underline-offset: 3px; }
.legal-body a:hover { color: #fff; }

/* ---------- 404 ---------- */
.lost {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: clamp(1.25rem, 3vh, 2rem);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 4rem;
}
.lost .mark { width: clamp(5rem, 10vw, 9rem); height: auto; animation: drift 9s var(--ease-in-out) infinite alternate; }
.lost h1 { max-inline-size: 12ch; }
@keyframes drift {
  from { transform: translate(0, 0) rotate(-6deg); }
  to { transform: translate(18px, -14px) rotate(5deg); }
}
