/* =============================================================================
   weblumen.it.com — landing stylesheet
   Order: tokens → reset → primitives → layout → components → utilities
   ========================================================================== */

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  /* Surfaces — warm neutrals rather than blue-grey, so photography sits calmly */
  --paper: #faf9f7;
  --paper-sunk: #f3f1ec;
  --surface: #fffffe;

  /* Ink */
  --ink: #0e0e12;
  --ink-80: #2c2c34;
  --ink-60: #55555f;
  --ink-40: #85858e;
  --ink-20: #b6b6bd;

  /* Lines */
  --line: #e7e3db;
  --line-strong: #d5d0c5;
  --line-ink: #26262e;

  /* Accent — one colour, used sparingly and always flat */
  --accent: #4a22d4;
  --accent-hover: #3d1bb4;
  --accent-wash: #efeaff;
  --accent-line: #d6cbff;

  --gold: #9a6614;
  --success: #12704f;
  --danger: #b3261e;

  /* Type scale — fluid, so almost no font-size media queries are needed */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: clamp(0.9375rem, 0.91rem + 0.14vw, 1.0625rem);
  --text-md: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --text-xl: clamp(1.3125rem, 1.19rem + 0.6vw, 1.625rem);
  --text-2xl: clamp(1.625rem, 1.36rem + 1.2vw, 2.375rem);
  --text-3xl: clamp(2.125rem, 1.7rem + 1.9vw, 3.375rem);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;

  /* Space */
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: clamp(4rem, 8vw, 7rem);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Elevation — layered and ink-tinted; a single big blur reads synthetic */
  --e-1: 0 1px 2px rgba(14, 14, 18, .05);
  --e-2: 0 1px 2px rgba(14, 14, 18, .04), 0 6px 14px -8px rgba(14, 14, 18, .12);
  --e-3: 0 1px 3px rgba(14, 14, 18, .04), 0 14px 30px -14px rgba(14, 14, 18, .16);
  --e-4: 0 2px 6px rgba(14, 14, 18, .04), 0 30px 60px -24px rgba(14, 14, 18, .22);

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --dur-1: 140ms;
  --dur-2: 240ms;
  --dur-3: 420ms;

  /* Layout */
  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 68px;

  color-scheme: light;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  /* Reserve the scrollbar column so locking scroll does not shift the layout */
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Very fine paper grain. Kept under 3% so it reads as texture, not noise. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
textarea,
button,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

section[id],
#top {
  scroll-margin-top: calc(var(--header-h) + 2rem);
}

/* ── Primitives ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 300;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease);
}

/* :focus, not :focus-visible — a skip link must appear for any focus */
.skip-link:focus {
  transform: translateY(0);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  --btn-py: 0.875rem;
  --btn-px: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}

.btn .icon {
  font-size: 1.1em;
  transition: transform var(--dur-2) var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--e-2);
}

.btn--primary:hover {
  background: var(--accent);
  box-shadow: var(--e-3);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--e-1);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.btn--sm {
  --btn-py: 0.625rem;
  --btn-px: 1.125rem;
  font-size: .875rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn.is-loading {
  opacity: .6;
  pointer-events: none;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wordmark__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: 0;
}

.wordmark__tld {
  color: var(--ink-40);
  font-weight: 500;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: .375rem 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-60);
  transition: color var(--dur-2) var(--ease);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-2) var(--ease);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--ink);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav__close,
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--r-sm);
  font-size: 1.375rem;
  color: var(--ink);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(14, 14, 18, .4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}

.nav-scrim.is-open {
  opacity: 1;
}

@media (max-width: 60rem) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 99;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-lg);
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: var(--e-4);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--dur-3) var(--ease), visibility var(--dur-3);
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav__close {
    display: grid;
    position: absolute;
    top: 14px;
    right: var(--space-lg);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list li + li {
    border-top: 1px solid var(--line);
  }

  .site-nav__link {
    display: block;
    padding: 1rem 0;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__cta {
    justify-content: center;
  }
}

/* ── Section scaffolding ─────────────────────────────────────────────────── */
.section {
  padding-block: var(--space-2xl);
}

.section--tight {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.section--surface {
  background: var(--paper-sunk);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: none;
}

@media (min-width: 56rem) {
  .section__head--split {
    grid-template-columns: 1.15fr 1fr;
    align-items: end;
    gap: var(--space-xl);
  }
}

/* Heading in a narrow column that stays put while the content scrolls past */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  }

  .split__head {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
    align-self: start;
    margin-bottom: 0;
  }
}

.section__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.section__lede {
  font-size: var(--text-md);
  color: var(--ink-60);
  max-width: 38rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--invert {
  color: var(--accent-line);
}

.eyebrow--live {
  padding: .375rem .875rem .375rem .625rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  background: var(--accent-wash);
  letter-spacing: .05em;
  text-transform: none;
  font-size: var(--text-sm);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  animation: pulse 2.4s var(--ease-inout) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.rating {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
  font-size: .875rem;
}

.rating .icon {
  fill: currentColor;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  /* The ambient glow behind the mock-up bleeds past the gutter on narrow
     viewports; clip it here rather than letting the document scroll. */
  overflow-x: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 7vw, 4.5rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(3rem, 6vw, 5rem);
  }
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__lede {
  max-width: 34rem;
  font-size: var(--text-md);
  color: var(--ink-60);
  margin-bottom: var(--space-lg);
}

.hero__lede strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  color: var(--ink-60);
  margin-bottom: var(--space-lg);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.fact__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: .25rem;
}

.fact__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ── Hero mock-up (pure CSS storefront) ──────────────────────────────────── */
.hero__visual {
  position: relative;
  isolation: isolate;
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 12%, transparent), transparent 78%);
}

.mock {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--e-4);
  overflow: hidden;
}

.mock__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 38px;
  background: var(--paper-sunk);
  border-bottom: 1px solid var(--line);
}

.mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mock__url {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-40);
}

.mock__url .icon {
  font-size: 10px;
}

.mock__screen {
  padding: clamp(12px, 2.2vw, 18px);
}

.mock__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mock__brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.mock__links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.mock__links i {
  display: block;
  width: 26px;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--line);
}

.mock__bag {
  position: relative;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--ink-60);
}

.mock__bag b {
  position: absolute;
  top: -4px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}

.mock__banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 12px;
  padding: clamp(14px, 2.4vw, 22px);
  min-height: clamp(96px, 15vw, 132px);
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 130% at 88% 12%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 62%),
    linear-gradient(140deg, #1a1a22, #0e0e12);
  color: #fff;
}

.mock__banner-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .7;
}

.mock__banner-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 2.6vw, 21px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mock__banner-btn {
  margin-top: 7px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}

.mock__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mock__thumb {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.mock__thumb--a { background: linear-gradient(150deg, #ece8ff, #d9d1f7); }
.mock__thumb--b { background: linear-gradient(150deg, #f1efe9, #ddd8cc); }
.mock__thumb--c { background: linear-gradient(150deg, #e6eef0, #cfdde1); }

.mock__bar {
  display: block;
  width: 72%;
  height: 5px;
  margin-top: 8px;
  border-radius: var(--r-pill);
  background: var(--line);
}

.mock__price {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hero__chip {
  position: absolute;
  z-index: 2;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--e-3);
}

.hero__chip--revenue {
  left: 8px;
  bottom: 24px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 16px;
  color: var(--success);
  animation: float 7s var(--ease-inout) infinite;
}

.hero__chip--order {
  right: 0;
  top: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 7s var(--ease-inout) 1.4s infinite;
}

/* Chips overhang the mock-up only where there is room beside it. The vertical
   offset keeps them clear of the product prices underneath. */
@media (min-width: 62rem) {
  .hero__chip--revenue { left: -3rem; bottom: 40px; }
  .hero__chip--order { right: -2rem; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero__chip-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.hero__chip-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero__chip-delta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--success);
}

.spark {
  width: 62px;
  height: 26px;
}

/* Explicit placement — source order stays semantic (caption first) */
.hero__chip--revenue .hero__chip-label { grid-area: 1 / 1; }
.hero__chip--revenue .hero__chip-delta { grid-area: 1 / 2; justify-self: end; }
.hero__chip--revenue .hero__chip-value { grid-area: 2 / 1; }
.hero__chip--revenue .spark { grid-area: 2 / 2; }

.hero__chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 1rem;
}

.hero__chip-stack {
  display: flex;
  flex-direction: column;
}

.hero__chip-sub {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 30rem) {
  .hero__chip--order {
    display: none;
  }

  .hero__chip--revenue {
    left: 0;
  }
}

/* ── Marquee strip ───────────────────────────────────────────────────────── */
.strip {
  padding-block: var(--space-md);
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.strip__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.strip__row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-right: var(--space-lg);
}

.strip__row li {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-40);
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── Metrics ─────────────────────────────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-sm);
}

.metric {
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--e-1);
  transition: box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}

.metric:hover {
  border-color: var(--line-strong);
  box-shadow: var(--e-3);
  transform: translateY(-3px);
}

.metric__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: var(--space-md);
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 1.125rem;
}

.metric__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}

.metric__text {
  font-size: .9375rem;
  color: var(--ink-60);
}

/* ── Comparison table ────────────────────────────────────────────────────── */
.compare {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--e-2);
  overflow: hidden;
}

.compare__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

/* Scroll affordance: only shown where the table cannot fit */
.compare__hint {
  display: none;
  padding: .75rem 1.25rem 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-40);
}

@media (max-width: 48rem) {
  .compare__hint {
    display: block;
  }

  .compare__scroll {
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
}

.compare__table {
  width: 100%;
  min-width: 46rem;
  font-size: .9375rem;
}

.compare__table th,
.compare__table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.compare__table thead th {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-40);
  background: var(--paper-sunk);
  white-space: nowrap;
}

.compare__table tbody th {
  font-weight: 500;
  color: var(--ink);
  width: 24%;
}

.compare__table td {
  color: var(--ink-60);
}

.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td {
  border-bottom: 0;
}

/* The recommended column is tinted top-to-bottom rather than outlined,
   so the emphasis survives horizontal scrolling. */
.compare__table .is-featured {
  background: var(--accent-wash);
  color: var(--ink);
  font-weight: 500;
}

.compare__table thead .is-featured {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-wash) 70%, var(--paper-sunk));
}

.cell-yes {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}

.cell-yes::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.compare__note {
  padding: .875rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--paper-sunk);
  font-size: var(--text-sm);
  color: var(--ink-40);
}

.why-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.why-note {
  padding-top: var(--space-sm);
  border-top: 2px solid var(--ink);
}

.why-note__title {
  font-size: var(--text-lg);
  margin-bottom: .5rem;
}

.why-note p {
  font-size: .9375rem;
  color: var(--ink-60);
}

/* ── Services ────────────────────────────────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: var(--space-sm);
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}

.service:hover {
  border-color: var(--line-strong);
  box-shadow: var(--e-3);
  transform: translateY(-3px);
}

.service__index {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-20);
  font-variant-numeric: tabular-nums;
}

.service__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-md);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.25rem;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease);
}

.service:hover .service__icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.service__title {
  font-size: var(--text-lg);
  margin-bottom: .5rem;
}

.service__text {
  font-size: .9375rem;
  color: var(--ink-60);
  margin-bottom: var(--space-md);
}

.service__list {
  display: grid;
  gap: .5rem;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink-60);
}

.service__list li {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.service__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Timeline ────────────────────────────────────────────────────────────── */
.timeline {
  --rail: clamp(58px, 7vw, 78px);
  max-width: 44rem;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding-bottom: var(--space-lg);
}

.timeline__item::before {
  content: '';
  position: absolute;
  top: 46px;
  bottom: 0;
  left: calc(var(--rail) / 2);
  width: 1px;
  background: linear-gradient(var(--line-strong), var(--line));
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item:last-child::before {
  display: none;
}

.timeline__rail {
  display: flex;
  justify-content: center;
}

.timeline__day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease);
}

.timeline__dash {
  padding-inline: 1px;
  color: var(--ink-20);
}

.timeline__item:hover .timeline__day {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.timeline__body {
  padding-top: .375rem;
}

.timeline__title {
  font-size: var(--text-lg);
  margin-bottom: .375rem;
}

.timeline__body p {
  font-size: .9375rem;
  color: var(--ink-60);
  max-width: 34rem;
}

/* ── Cases ───────────────────────────────────────────────────────────────── */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: var(--space-md);
}

.case {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--e-1);
  transition: box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}

.case:hover {
  border-color: var(--line-strong);
  box-shadow: var(--e-4);
  transform: translateY(-4px);
}

.case__media {
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--paper-sunk);
  border-bottom: 1px solid var(--line);
}

.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
  transition: transform var(--dur-3) var(--ease);
}

.case:hover .case__media img {
  transform: scale(1.06);
}

.case__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-md);
}

.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-bottom: .875rem;
}

.case__tags li {
  padding: .25rem .625rem;
  border-radius: var(--r-xs);
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.case__title {
  font-size: var(--text-xl);
  margin-bottom: .5rem;
}

/* Stretched link: the whole card is clickable, but only the title is a link */
.case__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.case__text {
  font-size: .9375rem;
  color: var(--ink-60);
  margin-bottom: var(--space-md);
}

.case__stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
}

.case__stats dt {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: .125rem;
}

.case__stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── Testimonials ────────────────────────────────────────────────────────── */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: var(--space-sm);
}

.quote {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--e-1);
}

.quote .rating {
  margin-bottom: var(--space-sm);
}

.quote__text {
  flex: 1;
  margin: 0 0 var(--space-md);
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--ink-80);
}

.quote__author {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .02em;
}

.quote__name {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
}

.quote__role {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-40);
}

/* ── Guarantees ──────────────────────────────────────────────────────────── */
.guards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-sm);
}

.guard {
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.guard__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.125rem;
}

.guard__title {
  font-size: var(--text-lg);
  margin-bottom: .5rem;
}

.guard p {
  font-size: .9375rem;
  color: var(--ink-60);
}

/* ── About ───────────────────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .about {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.about__media {
  position: relative;
  max-width: 26rem;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--e-4);
}

.about__media img {
  width: 100%;
  filter: saturate(.88) contrast(1.03);
}

/* Warm scrim ties the cool studio lighting into the page palette */
.about__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 14, 18, .18));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.about__name {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.about__quote {
  margin: 0 0 var(--space-md);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--accent);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

.about__text {
  color: var(--ink-60);
  margin-bottom: var(--space-md);
  max-width: 36rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: var(--space-lg);
}

.chips li {
  padding: .375rem .875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-60);
}

.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.about__facts .fact__value {
  color: var(--accent);
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq {
  display: grid;
  gap: .625rem;
  max-width: 44rem;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}

.faq__item:hover {
  border-color: var(--line-strong);
}

.faq__item[open] {
  border-color: var(--ink);
  box-shadow: var(--e-2);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1.125rem var(--space-md);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink-60);
  font-size: .75rem;
  transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}

.faq__item[open] .faq__icon {
  transform: rotate(135deg);
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Height animated via grid-template-rows; JS holds `open` during the close. */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-3) var(--ease);
}

.faq__item.is-expanded .faq__a {
  grid-template-rows: 1fr;
}

/* overflow:hidden is what lets the 0fr track actually collapse to zero */
.faq__a > p {
  overflow: hidden;
  padding: 0 var(--space-md) 1.25rem;
  font-size: .9375rem;
  color: var(--ink-60);
}

/* Without JS, `details` opens instantly — content must not stay clipped. */
.no-js .faq__a {
  grid-template-rows: 1fr;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--e-4);
}

@media (min-width: 56rem) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.contact__aside {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 4vw, 3rem);
  color: var(--paper);
  background:
    radial-gradient(90% 70% at 8% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
    var(--ink);
}

.contact__title {
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-sm);
}

.contact__text {
  color: var(--ink-20);
  font-size: .9375rem;
  margin-bottom: var(--space-lg);
}

.contact__links {
  display: grid;
  gap: .5rem;
  margin-bottom: var(--space-lg);
}

.contact__links a {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .75rem;
  margin: -.75rem;
  border-radius: var(--r-md);
  transition: background var(--dur-2) var(--ease);
}

.contact__links a:hover {
  background: rgba(255, 255, 255, .06);
}

.contact__link-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line-ink);
  font-size: 1.0625rem;
}

.contact__link-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.contact__link-value {
  display: block;
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}

.contact__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--line-ink);
}

.contact__badges li {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: var(--text-sm);
  color: var(--ink-20);
}

.contact__badges .icon {
  color: var(--accent-line);
  font-size: .875rem;
}

.contact__form-wrap {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--surface);
}

/* ── Form ────────────────────────────────────────────────────────────────── */
.form__row {
  margin-bottom: var(--space-sm);
}

.form__label {
  display: block;
  margin-bottom: .375rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-80);
}

.form__optional {
  font-weight: 400;
  color: var(--ink-40);
}

.form__input {
  width: 100%;
  padding: .8125rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: .9375rem;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
    background var(--dur-2) var(--ease);
}

.form__input::placeholder {
  color: var(--ink-20);
}

.form__input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.form__input--area {
  min-height: 7rem;
  resize: vertical;
}

.form__row.has-error .form__input {
  border-color: var(--danger);
}

.form__row.has-error .form__input:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 14%, transparent);
}

.form__error {
  margin-top: .375rem;
  font-size: var(--text-sm);
  color: var(--danger);
}

.form__error:empty {
  display: none;
}

/* Honeypot — off-screen but not display:none, which some bots detect */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form button[type='submit'] {
  margin-top: .5rem;
}

.form__status {
  margin-top: .875rem;
  font-size: var(--text-sm);
  text-align: center;
}

.form__status:empty {
  display: none;
}

.form__status--ok {
  color: var(--success);
}

.form__status--err {
  color: var(--danger);
}

.form__fineprint {
  margin-top: .875rem;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--ink-40);
  text-align: center;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-sunk);
  padding-top: var(--space-xl);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.site-footer__brand p {
  margin-top: .75rem;
  max-width: 22rem;
  font-size: .9375rem;
  color: var(--ink-60);
}

.site-footer__heading {
  margin-bottom: .875rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.site-footer__nav ul,
.site-footer__contact ul {
  display: grid;
  gap: .5rem;
  font-size: .9375rem;
  color: var(--ink-60);
}

.site-footer__nav a,
.site-footer__contact a {
  transition: color var(--dur-2) var(--ease);
}

.site-footer__nav a:hover,
.site-footer__contact a:hover {
  color: var(--ink);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem var(--space-md);
  padding-block: var(--space-sm);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink-40);
}

/* ── Sticky mobile CTA ───────────────────────────────────────────────────── */
.cta-dock {
  position: fixed;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: .625rem .625rem .625rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--e-4);
  transform: translateY(150%);
  transition: transform var(--dur-3) var(--ease);
}

.cta-dock.is-visible {
  transform: translateY(0);
}

.cta-dock__text {
  display: flex;
  align-items: baseline;
  gap: .375rem;
  min-width: 0;
}

.cta-dock__price {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
}

.cta-dock__label {
  font-size: var(--text-sm);
  color: var(--ink-60);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 48rem) {
  .cta-dock {
    display: none;
  }
}

/* ── Lead modal ──────────────────────────────────────────────────────────── */
/* Native <dialog>: top layer, focus trap and Escape come from the browser.
   The element itself is the full-viewport backdrop area, so a click landing
   on it (rather than on the card) means "outside". */
.modal {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--space-sm);
  border: 0;
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
}

/* `safe` matters on short viewports (landscape phones): with plain centring,
   content taller than the dialog overflows upwards and cannot be scrolled to. */
.modal[open] {
  display: grid;
  justify-items: center;
  align-items: safe center;
}

/* ::backdrop does not inherit page custom properties — literal values only */
.modal::backdrop {
  background: rgba(14, 14, 18, .5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}

.modal.is-open::backdrop {
  opacity: 1;
}

.modal__card {
  --enter: 14px;
  position: relative;
  width: min(30rem, 100%);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--e-4);
  opacity: 0;
  transform: translateY(var(--enter));
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-3) var(--ease);
}

.modal.is-open .modal__card {
  opacity: 1;
  transform: none;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink-40);
  font-size: 1.0625rem;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}

.modal__close:hover {
  background: var(--paper-sunk);
  color: var(--ink);
}

.modal__head {
  margin-bottom: var(--space-md);
  padding-right: 2.25rem;
}

.modal__head .eyebrow {
  margin-bottom: .5rem;
}

.modal__title {
  font-size: var(--text-xl);
  margin-bottom: .5rem;
}

.modal__text {
  font-size: .9375rem;
  color: var(--ink-60);
}

.modal__alt {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink-40);
  text-align: center;
}

.modal__alt a {
  color: var(--accent);
  font-weight: 600;
}

.modal__alt a:hover {
  text-decoration: underline;
}

/* On phones the card behaves as a bottom sheet — closer to the thumb */
@media (max-width: 40rem) {
  .modal {
    padding: 0;
  }

  .modal[open] {
    align-items: safe end;
  }

  .modal__card {
    --enter: 100%;
    width: 100%;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-bottom: 0;
    padding-bottom: calc(clamp(1.5rem, 4vw, 2.25rem) + env(safe-area-inset-bottom));
  }
}

/* ── Scroll reveal ───────────────────────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger siblings so grids resolve as a wave rather than a single block */
.metrics .reveal:nth-child(2),
.services .reveal:nth-child(2),
.guards .reveal:nth-child(2),
.quotes .reveal:nth-child(2),
.why-notes .reveal:nth-child(2),
.cases .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.metrics .reveal:nth-child(3),
.services .reveal:nth-child(3),
.guards .reveal:nth-child(3),
.quotes .reveal:nth-child(3),
.why-notes .reveal:nth-child(3) {
  transition-delay: 160ms;
}

.services .reveal:nth-child(4) { transition-delay: 240ms; }
.services .reveal:nth-child(5) { transition-delay: 300ms; }
.services .reveal:nth-child(6) { transition-delay: 360ms; }

/* ── Utilities ───────────────────────────────────────────────────────────── */

/* Locks background scroll while the drawer or the modal is open.
   Reference-counted in script.js so closing one does not unlock the other. */
.is-locked {
  overflow: hidden;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .strip__track {
    animation: none;
  }
}

/* ── Print ───────────────────────────────────────────────────────────────── */
@media print {
  .site-header,
  .nav-scrim,
  .cta-dock,
  .strip,
  .hero__visual,
  body::before {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .faq__a {
    grid-template-rows: 1fr;
  }
}
