/* ============================================================
   PHOENIXVILLE TECH REPAIR — ember-lit precision lab
   Display: Clash Display · Body: Satoshi
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 1rem + 6.5vw, 7.5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem;
  --radius-xl: 1rem; --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1200px;

  --font-display: 'Clash Display', 'Avenir Next', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

/* ---------- Light theme ---------- */
:root,
[data-theme='light'] {
  color-scheme: light;
  --color-bg: #faf6ef;
  --color-surface: #fffdf8;
  --color-surface-2: #f4eee3;
  --color-surface-offset: #ede5d7;
  --color-divider: oklch(0.3 0.02 70 / 0.1);
  --color-border: oklch(0.3 0.02 70 / 0.14);
  --color-text: #241e15;
  --color-text-muted: #6f6657;
  --color-text-faint: #a89d8c;
  --color-primary: #bc4a10;
  --color-primary-hover: #9c3c0b;
  --color-primary-active: #7e3009;
  --flame-core: #e89a2b;
  --shadow-sm: 0 1px 2px oklch(0.25 0.04 60 / 0.07);
  --shadow-md: 0 2px 4px oklch(0.25 0.04 60 / 0.07), 0 10px 28px oklch(0.25 0.04 60 / 0.09);
  --shadow-lg: 0 4px 8px oklch(0.25 0.04 60 / 0.08), 0 20px 48px oklch(0.25 0.04 60 / 0.14);
  --table-stripe: oklch(0.95 0.015 80);
}

/* ---------- Dark theme ---------- */
[data-theme='dark'] {
  color-scheme: dark;
  --color-bg: #14110c;
  --color-surface: #1a1610;
  --color-surface-2: #211c14;
  --color-surface-offset: #282218;
  --color-divider: oklch(0.9 0.02 70 / 0.08);
  --color-border: oklch(0.9 0.02 70 / 0.13);
  --color-text: #ede6da;
  --color-text-muted: #a3998a;
  --color-text-faint: #6b6253;
  --color-primary: #ff7036;
  --color-primary-hover: #ff8a57;
  --color-primary-active: #e85a20;
  --flame-core: #ffc46b;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 2px 4px oklch(0 0 0 / 0.35), 0 12px 32px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 4px 10px oklch(0 0 0 / 0.4), 0 24px 56px oklch(0 0 0 / 0.5);
  --table-stripe: oklch(0.22 0.015 75 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --color-bg: #14110c;
    --color-surface: #1a1610;
    --color-surface-2: #211c14;
    --color-surface-offset: #282218;
    --color-divider: oklch(0.9 0.02 70 / 0.08);
    --color-border: oklch(0.9 0.02 70 / 0.13);
    --color-text: #ede6da;
    --color-text-muted: #a3998a;
    --color-text-faint: #6b6253;
    --color-primary: #ff7036;
    --color-primary-hover: #ff8a57;
    --color-primary-active: #e85a20;
    --flame-core: #ffc46b;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 2px 4px oklch(0 0 0 / 0.35), 0 12px 32px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 4px 10px oklch(0 0 0 / 0.4), 0 24px 56px oklch(0 0 0 / 0.5);
    --table-stripe: oklch(0.22 0.015 75 / 0.5);
  }
}

/* Dark-anchored sections (hero, recovery, contact) stay dark in both themes */
.theme-dark {
  --color-bg: #100d09;
  --color-surface: #1a1610;
  --color-surface-2: #211c14;
  --color-border: oklch(0.9 0.02 70 / 0.14);
  --color-divider: oklch(0.9 0.02 70 / 0.09);
  --color-text: #f0e9dc;
  --color-text-muted: #ab9f8e;
  --color-text-faint: #6b6253;
  --color-primary: #ff7036;
  --color-primary-hover: #ff8a57;
  --color-primary-active: #e85a20;
  --flame-core: #ffc46b;
  color: var(--color-text);
}

/* ============ Layout primitives ============ */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-8));
}

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
}
.skip-link:focus-visible { top: var(--space-4); }

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-6);
}

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.header.is-scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) clamp(var(--space-4), 4vw, var(--space-8));
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.brand-name em {
  font-style: normal;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: var(--space-6);
  margin-inline: auto;
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.nav a:hover { color: var(--color-text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.icon-btn:hover { color: var(--color-text); background: var(--color-surface-2); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 48px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
.btn-sm { min-height: 40px; padding: var(--space-2) var(--space-5); }
.btn-primary {
  background: var(--color-primary);
  color: #fff8f2;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px oklch(from var(--color-primary) l c h / 0.35);
}
.btn-primary:active { background: var(--color-primary-active); transform: translateY(0); box-shadow: none; }
.btn-ghost {
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--color-text-muted); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  background:
    radial-gradient(120% 90% at 50% 110%, #2a1708 0%, transparent 55%),
    #100d09;
}
#embers,
#embers-footer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-glow {
  position: absolute;
  inset: auto 0 -30vh 0;
  height: 60vh;
  background: radial-gradient(55% 100% at 50% 100%, oklch(0.55 0.17 45 / 0.28), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-8));
  padding-top: var(--space-24);
  width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-hero);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: var(--space-2) 0 var(--space-6);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.9s var(--ease-out) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: translateY(0); } }

.flame-text {
  background: linear-gradient(100deg, #ff9c5a 0%, #ff7036 38%, #ffc46b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-stats {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin: var(--space-20) auto 0;
  padding: var(--space-6) clamp(var(--space-4), 5vw, var(--space-8)) var(--space-12);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
}
.hero-stats span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  translate: -50% 0;
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--color-text-faint);
  border-radius: var(--radius-full);
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  animation: drip 1.8s var(--ease-out) infinite;
}
@keyframes drip {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ Marquee ============ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding-block: var(--space-4);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  width: max-content;
  animation: scroll-x 36s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  white-space: nowrap;
  color: var(--color-text-muted);
}
.marquee i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: var(--space-5);
  margin-top: var(--space-12);
}
.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: clip;
  transform-style: preserve-3d;
  will-change: transform;
}
.card-feature {
  grid-column: span 7;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.card:not(.card-feature) { grid-column: span 5; }

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transform: scale(1.04) translateZ(0);
  transition: transform 0.8s var(--ease-out);
}
.card-feature:hover .card-media img { transform: scale(1.09); }
.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--color-surface) 100%);
}

.card-body {
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.card-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
}
.card-body p { color: var(--color-text-muted); font-size: var(--text-base); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.chip-row li {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ============ Process ============ */
.process { background: var(--color-surface); border-block: 1px solid var(--color-divider); }
.steps {
  margin-top: var(--space-12);
  display: grid;
  gap: var(--space-10);
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(var(--space-5), 4vw, var(--space-10));
  align-items: start;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-divider);
}
.steps .step:last-child { border-bottom: 0; padding-bottom: 0; }
.step-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-3xl);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-primary);
  min-width: 2.2em;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.step p { color: var(--color-text-muted); max-width: 58ch; }

/* ============ Data recovery ============ */
.recovery {
  position: relative;
  overflow: clip;
  padding-block: clamp(var(--space-20), 11vw, var(--space-32));
}
.recovery-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recovery-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, oklch(0.13 0.02 70 / 0.96) 0%, oklch(0.13 0.02 70 / 0.82) 48%, oklch(0.13 0.02 70 / 0.45) 100%),
    linear-gradient(0deg, oklch(0.1 0.02 70 / 0.5), oklch(0.1 0.02 70 / 0.5));
}
.recovery-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-default);
}
.recovery-inner > p { color: var(--color-text-muted); max-width: 56ch; margin-bottom: var(--space-10); }
.recovery .section-title { margin-bottom: var(--space-5); }

.recovery-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
  max-width: 860px;
}
.recovery-points > div {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: oklch(0.16 0.02 70 / 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.recovery-points h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.recovery-points p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ============ Web design ============ */
.webdesign-panel {
  position: relative;
  overflow: clip;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-20));
  background:
    radial-gradient(135% 130% at 0% 0%, oklch(0.22 0.05 50) 0%, oklch(0.14 0.025 60) 52%, oklch(0.11 0.015 60) 100%);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.webdesign-glow {
  position: absolute;
  width: 65%;
  height: 140%;
  right: -12%;
  top: -28%;
  background: radial-gradient(circle at center, color-mix(in oklab, var(--color-primary) 32%, transparent) 0%, transparent 62%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}
.webdesign-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-default);
}
.webdesign-lead {
  color: var(--color-text-muted);
  max-width: 62ch;
  margin-bottom: var(--space-10);
}
.webdesign-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
  max-width: 900px;
}
.webdesign-points > div {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: oklch(0.17 0.02 70 / 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.webdesign-points h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.webdesign-points p { font-size: var(--text-sm); color: var(--color-text-muted); }

@media (max-width: 760px) {
  .webdesign-points { grid-template-columns: 1fr; }
}

/* ============ Pricing ============ */
.pricing-note { color: var(--color-text-muted); margin-bottom: var(--space-8); }

.pricing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.tabs {
  display: inline-flex;
  padding: var(--space-1);
  gap: var(--space-1);
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full);
}
.tab {
  padding: var(--space-2) var(--space-6);
  min-height: 44px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
}
.tab:hover { color: var(--color-text); }
.tab.is-active {
  background: var(--color-primary);
  color: #fff8f2;
}

.search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  min-height: 48px;
  min-width: min(320px, 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-muted);
}
.search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.18);
}
.search svg { width: 18px; height: 18px; flex: none; }
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: var(--color-text);
}
.search input::placeholder { color: var(--color-text-faint); }

.price-panel { overflow-x: auto; }
.price-panel[hidden] { display: none; }

.price-table { min-width: 560px; }

@media (max-width: 640px) {
  .price-table { min-width: 0; width: 100%; }
  .price-table th:nth-child(2),
  .price-table td:nth-child(2) { display: none; }
}
.price-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.price-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}
.price-table tbody tr:nth-child(even) { background: var(--table-stripe); }
.price-table td:first-child { font-weight: 700; }
.price-table td:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.price-table th:last-child { text-align: right; }
.price-table td:last-child { text-align: right; }

.empty-result {
  padding: var(--space-10) var(--space-4);
  text-align: center;
  color: var(--color-text-muted);
}

/* ============ Lab ============ */
.lab { background: var(--color-surface); border-block: 1px solid var(--color-divider); }
.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: center;
}
.lab-media {
  border-radius: var(--radius-xl);
  overflow: clip;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
}
.lab-media img { width: 100%; height: 100%; object-fit: cover; }
.lab-copy > p { color: var(--color-text-muted); margin-bottom: var(--space-6); }

.callout {
  position: relative;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background: oklch(from var(--color-primary) l c h / 0.08);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.25);
}
.callout p { font-size: var(--text-base); }
.callout strong { color: var(--color-primary); }

/* ============ Contact ============ */
.contact {
  position: relative;
  overflow: clip;
  padding-block: clamp(var(--space-24), 14vw, calc(var(--space-32) * 1.4));
  background:
    radial-gradient(90% 80% at 50% 115%, #2a1708 0%, transparent 60%),
    #100d09;
  text-align: center;
}
.contact-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: var(--space-4); }
.contact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}
.contact-inner > p { color: var(--color-text-muted); max-width: 48ch; }
.contact .hero-cta { justify-content: center; margin-top: var(--space-4); }

/* ============ Footer ============ */
.footer {
  background: #0c0a07;
  color: #b5aa99;
  padding-block: var(--space-12);
  border-top: 1px solid oklch(0.9 0.02 70 / 0.08);
}
.footer .brand { color: #ede6da; }
.footer-inner {
  display: grid;
  gap: var(--space-6);
  justify-items: start;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-nav a {
  color: #b5aa99;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}
.footer-nav a:hover { color: #ede6da; }
.footer-meta { font-size: var(--text-xs); color: #6b6253; }

/* ============ Reveal on scroll (no layout shift) ============ */
.reveal {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  }
  .js .reveal.is-visible {
    opacity: 1;
    filter: blur(0);
  }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .card-feature, .card:not(.card-feature) { grid-column: auto; grid-row: auto; }
  .lab-grid { grid-template-columns: 1fr; }
  .recovery-points { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-inner { padding-top: var(--space-20); }
  .pricing-controls { flex-direction: column; align-items: stretch; }
  .tabs { align-self: flex-start; }
  .step { grid-template-columns: 1fr; gap: var(--space-3); }
  .step-num { min-width: 0; }
  .scroll-hint { display: none; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .contact .hero-cta { width: 100%; }
}
@media (min-width: 641px) {
  .btn { width: auto; }
}
