@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
/* Lenis (smooth scroll) takes over scrolling, so native smooth scrolling must be off while it runs */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
body {
  font-family: var(--font-sans);
  font-weight: var(--weight-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent-text); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(var(--space-6), 8vw, var(--space-8)); }
.section--stone { background: var(--color-stone); }
.section--ink { background: var(--color-navy); color: var(--color-paper); }
.section--navy { background: var(--color-navy); color: var(--color-paper); }

/* type */
h1, h2, h3 { font-weight: var(--weight-heading); line-height: var(--leading-tight); letter-spacing: var(--tracking-heading); text-wrap: balance; }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); max-width: 20ch; }
h3 { font-size: var(--text-lg); font-weight: var(--weight-ui); letter-spacing: 0; }
p { max-width: var(--measure); text-wrap: pretty; }
.kicker { font-size: 1.125rem; font-weight: var(--weight-ui); color: var(--color-accent-text); margin-bottom: var(--space-2); }
.section--ink .kicker, .section--navy .kicker { color: var(--color-accent); }
.section--ink .btn--ghost { border-color: var(--color-paper); color: var(--color-paper); }
.lede { font-size: var(--text-lg); color: var(--color-muted); }
.section--ink .lede { color: rgb(251 251 246 / 0.7); }
mark { background: var(--color-accent-tint); color: inherit; padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: inherit; font-weight: var(--weight-ui); font-size: var(--text-sm);
  padding: 0.8rem 1.25rem; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.btn--primary { background: var(--color-accent); color: var(--color-ink); }
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--ghost { border-color: var(--color-ink); color: var(--color-ink); }
.btn--ghost:hover { background: var(--color-ink); color: var(--color-paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--color-paper); border-bottom: 1px solid var(--color-line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 4rem; }
.logo img { height: 1.35rem; width: auto; }
.nav { display: flex; align-items: center; gap: var(--space-4); }
.nav a:not(.btn) { text-decoration: none; font-size: var(--text-sm); font-weight: var(--weight-ui); }
.nav a:not(.btn):hover { color: var(--color-accent-text); }
.nav-toggle { display: none; }
@media (max-width: 64rem) {
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 0.5rem 0.75rem; font: inherit; font-size: var(--text-sm); }
  .nav { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: flex-start; padding: var(--space-4) var(--gutter); background: var(--color-paper); border-bottom: 1px solid var(--color-line); }
  .nav.is-open { display: flex; }
}

/* hero photo wall */
.hero-wall__stage { position: relative; display: flex; flex-direction: column-reverse; justify-content: center; overflow: clip; padding-block: var(--space-6); }
.hero-wall__stage::before { /* faint grid, as on cloudbeds.com */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--color-line) 1px, transparent 1px), linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 96px 96px; opacity: 0.5;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero-wall__content { position: relative; display: grid; justify-items: center; text-align: center; padding-inline: var(--gutter); }
.hero-wall__content h1 { max-width: 16ch; line-height: 1.3; } /* roomy enough that the highlight of one line never covers the descenders of the line above */
.rotator { display: block; line-height: 1.22; } /* tighter than the 1.3 of the static line; any lower and a highlight covers the descenders above it */
.rotator--on { display: grid; justify-items: center; }
.rotator--on .rotator__item { grid-area: 1 / 1; visibility: hidden; }
.rotator--on .rotator__item.is-active { visibility: visible; }
.rotator__rest { visibility: hidden; }
.rotator__shown:empty { padding: 0; background: none; }
.rotator__caret { display: inline-block; position: relative; width: 0; height: 0; } /* an empty inline-block sits on the baseline, so the bar below is measured from it */
.rotator__caret::after { content: ""; position: absolute; left: 0.04em; bottom: -0.14em; width: 0.07em; height: 0.92em; background: var(--color-accent-text); } /* spans just below the baseline to just above the capitals, centered on the lowercase text */
.rotator__item:not(.is-active) .rotator__caret { display: none; }
.rotator__caret.is-blinking::after { animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.hero-wall__content .lede { max-width: 40ch; margin-top: var(--space-4); }
.hero-wall .btn-row { justify-content: center; }
.hero-wall__photos { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); padding: var(--space-5) var(--gutter) 0; }
.wall-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.wall-img:nth-child(n+4) { display: none; }
@media (min-width: 64rem) {
  .hero-wall__stage { display: grid; place-items: center; min-height: calc(100svh - 4rem); }
  .hero-wall__photos { position: absolute; inset: 0; display: block; padding: 0; }
  .wall-img { position: absolute; width: var(--w); height: auto; aspect-ratio: auto; }
  .wall-img:nth-child(n+4) { display: block; }
}


/* lists and grids */
.split { display: grid; gap: var(--space-5); }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1.2fr; gap: var(--space-7); } }
.issues { list-style: none; padding: 0; display: grid; }
.issues li { padding-block: var(--space-3); border-top: 1px solid var(--color-line); }
.issues li:last-child { border-bottom: 1px solid var(--color-line); }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--space-5); margin-top: var(--space-6); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 1px solid rgb(251 251 246 / 0.25); padding-top: var(--space-3); }
.steps li::before { content: "0" counter(step); display: block; font-size: var(--text-xs); letter-spacing: var(--tracking-kicker); color: var(--color-accent); margin-bottom: var(--space-2); }
.steps p { color: rgb(251 251 246 / 0.7); font-size: var(--text-sm); margin-top: var(--space-2); }

.cards { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .cards--5 { grid-template-columns: repeat(5, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.card__tag { font-size: var(--text-xs); letter-spacing: var(--tracking-kicker); text-transform: uppercase; color: var(--color-accent-text); }
.card ul { padding-left: 1.1rem; font-size: var(--text-sm); color: var(--color-muted); }
.card--team { padding: 0; overflow: hidden; }
.card--team img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card--team div { padding: var(--space-4); display: grid; gap: var(--space-2); }
.card--team .role { font-size: var(--text-sm); color: var(--color-accent-text); font-weight: var(--weight-ui); }

/* contact */
.contact { display: grid; gap: var(--space-6); }
@media (min-width: 52rem) { .contact { grid-template-columns: 1fr 1fr; } }
.form { display: grid; gap: var(--space-3); }
.field { display: grid; gap: var(--space-1); font-size: var(--text-sm); font-weight: var(--weight-ui); }
.field input, .field textarea { font: inherit; font-weight: var(--weight-body); font-size: var(--text-base); padding: 0.75rem; border: 1px solid var(--color-line); border-radius: var(--radius); background: #fff; color: var(--color-ink); }
.field textarea { min-height: 8rem; resize: vertical; }
.contact address { font-style: normal; display: grid; gap: var(--space-1); margin-top: var(--space-4); }

.site-footer { padding-block: var(--space-5); border-top: 1px solid var(--color-line); font-size: var(--text-sm); color: var(--color-muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0.01ms !important; } }

/* photo placeholders: swap each .ph for an <img> of the same aspect ratio */
.ph {
  position: relative; display: grid; place-items: center; text-align: center; padding: var(--space-3);
  aspect-ratio: var(--ratio, 4 / 3); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--color-stone) 0 12px, #ebebe0 12px 24px);
  border: 1px dashed rgb(38 28 10 / 0.25); color: var(--color-muted); font-size: var(--text-xs);
  letter-spacing: var(--tracking-kicker); text-transform: uppercase;
}
.ph small { display: block; margin-top: var(--space-1); text-transform: none; letter-spacing: 0; font-size: var(--text-xs); }

.cases { display: grid; gap: var(--space-6); margin-top: var(--space-6); }
.case__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
.case__head span { font-size: var(--text-sm); color: var(--color-muted); }
.case__pair { display: grid; gap: var(--space-3); }
@media (min-width: 40rem) { .case__pair { grid-template-columns: 1fr 1fr; } }
.case figure { display: grid; gap: var(--space-2); }
.case figcaption { font-size: var(--text-xs); letter-spacing: var(--tracking-kicker); text-transform: uppercase; }
.case figure:last-child figcaption { color: var(--color-accent-text); }

.thanks { min-height: 70vh; display: grid; align-content: center; gap: var(--space-4); }
.hp { position: absolute; left: -9999px; }

/* scroll motion. Progressive enhancement: browsers without scroll-driven animations
   (and reduced-motion users) get the static page. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  @keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes grow { from { transform: scaleX(0); } }
  @keyframes fly { 60% { opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(var(--s)); opacity: 0; } }

  @supports (animation-timeline: view()) {
    /* hero: the stage pins while the photos fly outward past the viewer */
    @media (min-width: 64rem) {
      .hero-wall { height: 260svh; view-timeline: --wall block; }
      .hero-wall__stage { position: sticky; top: 4rem; height: calc(100svh - 4rem); min-height: 0; }
      .wall-img { animation: fly linear both; animation-timeline: --wall; animation-range: contain 0% contain 100%; }
    }


    /* content rises into place as it enters the viewport */
    .section .kicker, .section h2, .section .lede, .issues li, .steps li, .card, .case__head, .contact > * {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    .steps li:nth-child(3n+2), .cards .card:nth-child(2) { animation-range: entry 6% entry 51%; }
    .steps li:nth-child(3n),   .cards .card:nth-child(3) { animation-range: entry 12% entry 57%; }
    .cards .card:nth-child(4) { animation-range: entry 18% entry 63%; }
    .cards .card:nth-child(5) { animation-range: entry 24% entry 69%; }

    /* the gain between the before and after dots draws in as the panel scrolls into view */
    .dumb__gain { animation: grow linear both; animation-timeline: view(); animation-range: entry 15% cover 30%; }

    /* after-screenshots are revealed by a wipe, so the change reads as before → after */
    .case figure:last-child > :first-child {
      animation: wipe linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 40%;
    }
  }
}

/* ---------- multi-page additions ---------- */
.nav a[aria-current="page"]:not(.btn) { color: var(--color-accent-text); }
.btn--light { border-color: var(--color-paper); color: var(--color-paper); }
.btn--light:hover { background: var(--color-paper); color: var(--color-navy); }
.more { margin-top: var(--space-5); }
.prose { display: grid; gap: var(--space-3); }

.page-hero { padding-block: clamp(var(--space-6), 8vw, var(--space-7)) var(--space-5); position: relative; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: var(--space-4); max-width: 52ch; }
.page-hero .btn-row { margin-top: var(--space-5); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--space-5); margin-top: var(--space-5); }
.stat { display: grid; gap: var(--space-2); align-content: start; border-top: 1px solid rgb(251 251 246 / 0.25); padding-top: var(--space-3); }
.stat b { font-weight: var(--weight-heading); font-size: var(--text-3xl); line-height: 1; letter-spacing: var(--tracking-heading); color: var(--color-accent); font-variant-numeric: tabular-nums; }
.stat > span { font-size: var(--text-sm); color: rgb(251 251 246 / 0.75); }

/* donut + bars, colored by score level (same traffic light as the deck) */
[data-level="great"] { --c: var(--color-leaf); }
[data-level="good"] { --c: var(--color-sun); }
[data-level="fair"] { --c: var(--color-accent); }
[data-level="low"] { --c: var(--color-alert); }
.donut { position: relative; width: 5.5rem; aspect-ratio: 1; }
.donut--lg { width: clamp(9rem, 22vw, 12rem); }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 3.4; }
.donut__bg { stroke: var(--color-stone); }
.donut__fg { stroke: var(--c); stroke-linecap: round; stroke-dasharray: var(--v) 100; transition: stroke-dasharray 800ms var(--ease-out), stroke 300ms; }
.donut__num { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--text-2xl); letter-spacing: var(--tracking-heading); font-variant-numeric: tabular-nums; }
.donut--lg .donut__num { font-size: var(--text-3xl); }
.bar { display: block; height: 8px; background: var(--color-stone); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(calc(var(--v) / 100)); transition: transform 700ms var(--ease-out), background-color 300ms; }

.filters button { font: inherit; font-size: var(--text-sm); font-weight: var(--weight-ui); padding: 0.45rem 0.8rem; border-radius: var(--radius); border: 1px solid var(--color-line); background: transparent; color: var(--color-ink); cursor: pointer; touch-action: manipulation; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.filters button[aria-pressed="true"] { background: var(--color-navy); color: var(--color-paper); border-color: var(--color-navy); }
@media (hover: hover) and (pointer: fine) {
  .filters button:hover:not([aria-pressed="true"]) { border-color: var(--color-ink); }
}
.dash__label { font-size: var(--text-xs); letter-spacing: var(--tracking-kicker); text-transform: uppercase; color: var(--color-muted); }
.cmp__row b { text-align: right; font-weight: var(--weight-ui); font-variant-numeric: tabular-nums; }
.dash__note { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--color-muted); max-width: none; }

/* stories */
.stories { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
@media (min-width: 40rem) { .stories { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .stories:not(.stories--grid) { grid-template-columns: repeat(3, 1fr); } }
.story { display: grid; grid-template-rows: auto 1fr; text-decoration: none; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; }
.story[hidden] { display: none; }
.story__img { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.story__body { padding: var(--space-4); display: grid; gap: var(--space-2); align-content: start; }
.story__meta { font-size: var(--text-xs); letter-spacing: var(--tracking-kicker); text-transform: uppercase; color: var(--color-sea); }
.story__blurb { font-size: var(--text-sm); color: var(--color-muted); }
.story__result { font-size: var(--text-sm); margin-top: var(--space-1); }
.story__result b { color: var(--color-leaf); font-weight: var(--weight-ui); }
.story__score { float: right; color: var(--color-muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .story { transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }
  .story:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .story:hover .story__img img { transform: scale(1.04); }
}
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

.story-hero { padding-block: clamp(var(--space-5), 6vw, var(--space-6)) clamp(var(--space-6), 7vw, var(--space-7)); } /* bottom room so the photo never touches the dark Results band below */
.story-hero h1 { max-width: 20ch; }
.story-hero .lede { margin-top: var(--space-3); max-width: 52ch; }
.back { display: inline-block; font-size: var(--text-sm); margin-bottom: var(--space-4); text-decoration: none; color: var(--color-muted); }
.story-hero__img { position: relative; margin-top: var(--space-5); aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius); }
.story-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.cmp { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.cmp__row { display: grid; grid-template-columns: 8.5rem 1fr 5.5rem; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.cmp__bars { display: grid; gap: 4px; }
.cmp__bars .bar:first-child { opacity: 0.45; }
.legend-lite { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-muted); display: flex; align-items: center; gap: var(--space-2); }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; display: inline-block; }
.dot--before { background: var(--color-muted); opacity: 0.5; }
.dot--after { background: var(--color-leaf); margin-left: var(--space-3); }
.two-col, .three-col { display: grid; gap: var(--space-5); }
@media (min-width: 52rem) { .two-col { grid-template-columns: 1fr 1fr; } .three-col { grid-template-columns: repeat(3, 1fr); } }
.ticks { list-style: none; padding: 0; display: grid; gap: var(--space-3); margin-top: var(--space-3); font-size: var(--text-sm); }
.ticks li { padding-left: 1.5rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.8rem; height: 0.4rem; border-left: 2px solid var(--color-leaf); border-bottom: 2px solid var(--color-leaf); transform: rotate(-45deg); }
.panel { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--space-5); }
.panel h3 { margin-top: var(--space-1); font-size: var(--text-xl); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); font-size: var(--text-sm); }
.facts dt { color: var(--color-muted); }
.quote { max-width: 40rem; }
.quote p { font-size: var(--text-xl); line-height: 1.3; letter-spacing: var(--tracking-heading); max-width: none; }
.quote footer { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-muted); }
.next { display: grid; gap: var(--space-1); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--color-line); text-decoration: none; }
.next span { font-size: var(--text-xs); letter-spacing: var(--tracking-kicker); text-transform: uppercase; color: var(--color-muted); }
.next b { font-size: var(--text-xl); font-weight: var(--weight-heading); }
@media (hover: hover) and (pointer: fine) { .next:hover b { color: var(--color-accent-text); } }

/* how it works */
.tl { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
@media (min-width: 52rem) { .tl { grid-template-columns: repeat(4, 1fr); } }
.tl__phase { border-top: 3px solid var(--color-sea); padding-top: var(--space-3); }
.tl__phase:nth-child(2) { border-color: var(--color-accent); }
.tl__phase:nth-child(3) { border-color: var(--color-sun); }
.tl__phase:nth-child(4) { border-color: var(--color-leaf); }
.tl__phase ol { list-style: none; padding: 0; display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.tl__phase li { display: grid; grid-template-columns: 2rem 1fr; gap: var(--space-2); font-size: var(--text-sm); }
.tl__n { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 2.5rem; border-radius: var(--radius); overflow: hidden; gap: 2px; }
.stack span { display: block; }
.legend { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-2) var(--space-4); margin-top: var(--space-4); font-size: var(--text-sm); }
.legend i { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; margin-right: var(--space-2); }
.legend b { font-weight: var(--weight-ui); margin-left: var(--space-1); }
.ladder { display: grid; gap: var(--space-3); margin-top: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
.rung { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--space-4); display: grid; gap: var(--space-2); align-content: start; }
.rung__name { font-size: var(--text-sm); color: var(--color-muted); }
.rung__price { font-size: var(--text-2xl); letter-spacing: var(--tracking-heading); line-height: 1; }
.rung__price small { font-size: var(--text-xs); color: var(--color-muted); margin-left: 2px; }
.rung__dots { display: flex; flex-wrap: wrap; gap: 4px; }
.rung__dots i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--color-line); }
.rung__dots i.on { background: var(--color-muted); }
.rung__dots i.new { background: var(--color-accent); }
.rung__note { font-size: var(--text-xs); color: var(--color-muted); }
.blockers { list-style: none; padding: 0; display: grid; }
.blockers li { display: flex; justify-content: space-between; gap: var(--space-4); align-items: baseline; padding-block: var(--space-3); border-top: 1px solid var(--color-line); }
.blockers li:last-child { border-bottom: 1px solid var(--color-line); }
.blockers em { font-style: normal; font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; padding: 0.15rem 0.5rem; border-radius: var(--radius); }
.blockers [data-sev="high"] em { background: #f6dcd6; color: var(--color-alert); }
.blockers [data-sev="mid"] em { background: var(--color-accent-tint); color: var(--color-accent-text); }
.blockers [data-sev="low"] em { background: var(--color-sea-tint); color: var(--color-sea); }
.steps--light li { border-top-color: var(--color-line); }
.steps--light p { color: var(--color-muted); }
.steps--light li::before { color: var(--color-accent-text); }

/* services */
.matrix-wrap { overflow-x: auto; margin-top: var(--space-5); }
.matrix { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: var(--text-sm); }
.matrix th, .matrix td { padding: var(--space-3); border-bottom: 1px solid var(--color-line); text-align: center; font-weight: var(--weight-ui); }
.matrix th[scope="row"] { text-align: left; font-weight: var(--weight-body); }
.matrix thead th span { display: block; font-size: var(--text-xs); color: var(--color-accent-text); margin-bottom: 2px; }
.matrix .yes { display: inline-block; width: 0.9rem; height: 0.45rem; border-left: 2px solid var(--color-leaf); border-bottom: 2px solid var(--color-leaf); transform: rotate(-45deg); }
.faq details { border-top: 1px solid var(--color-line); padding-block: var(--space-3); }
.faq details:last-child { border-bottom: 1px solid var(--color-line); }
.faq summary { cursor: pointer; font-weight: var(--weight-ui); }
.faq details p { margin-top: var(--space-2); color: var(--color-muted); }

/* about, contact, bands, footer */
.pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.pills li { padding: 0.5rem 1rem; border: 1px solid var(--color-line); border-radius: 999px; background: #fff; font-size: var(--text-sm); font-weight: var(--weight-ui); }
.cta-band .lede { margin-top: var(--space-3); }

/* before / after landscape */
.ba { margin-top: var(--space-5); background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--space-5); }
.ba__filter { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-bottom: var(--space-5); }
.ba__filter button { font: inherit; font-size: var(--text-sm); font-weight: var(--weight-ui); padding: 0.45rem 0.8rem; border-radius: var(--radius); border: 1px solid var(--color-line); background: transparent; color: var(--color-ink); cursor: pointer; touch-action: manipulation; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.ba__filter button[aria-pressed="true"] { background: var(--color-navy); color: var(--color-paper); border-color: var(--color-navy); }
@media (hover: hover) and (pointer: fine) { .ba__filter button:hover:not([aria-pressed="true"]) { border-color: var(--color-ink); } }
.ba__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-4) var(--space-5); }
.ba__summary .donut--lg { width: clamp(5rem, 25vw, 12rem); }
@media (max-width: 40rem) { .ba { padding: var(--space-4); } .ba__summary { flex-wrap: wrap; gap: var(--space-3); } .ba__delta { flex-basis: 100%; max-width: none; justify-items: center; text-align: center; } .ba__arrow { width: 2.5rem; } }
.ba__side { display: grid; justify-items: center; gap: var(--space-2); }
.ba__arrow { color: var(--color-muted); }
.ba__delta { display: grid; gap: var(--space-1); max-width: 14rem; }
.ba__delta b { font-weight: var(--weight-heading); font-size: var(--text-3xl); line-height: 1; letter-spacing: var(--tracking-heading); color: var(--color-leaf); }
.ba__delta span { font-size: var(--text-sm); color: var(--color-muted); }
.ba__groups { display: grid; gap: var(--space-5); margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-line); }
@media (min-width: 60rem) { .ba__groups { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.dumbs { list-style: none; padding: 0; display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.dumb { display: grid; grid-template-columns: 8rem 1fr 6.5rem; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.dumb__track { position: relative; height: 8px; margin-inline: 8px; background: var(--color-stone); border-radius: 2px; }
.dumb { transition: opacity var(--duration-base) var(--ease-out); }
.dumb.is-dim { opacity: 0.35; }
.dumb__gain { transition: left 500ms var(--ease-out), width 500ms var(--ease-out); position: absolute; top: 0; bottom: 0; left: calc(var(--b) * 1%); width: calc((var(--a) - var(--b)) * 1%); background: var(--c); opacity: 0.45; transform-origin: left; }
.dumb__dot { transition: left 500ms var(--ease-out); position: absolute; top: 50%; left: calc(var(--p) * 1%); width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); }
.dumb__dot--before { background: #fff; border: 2px solid var(--color-muted); }
.dumb__dot--after { background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c); }
.dumb__nums { text-align: right; font-variant-numeric: tabular-nums; color: var(--color-muted); white-space: nowrap; }
.dumb__nums em { font-style: normal; font-weight: var(--weight-ui); color: var(--color-leaf); margin-left: 4px; }
@media (max-width: 40rem) { .dumb { grid-template-columns: 1fr 7rem; } .dumb__label { grid-column: 1 / -1; } }
.next-steps { list-style: none; padding: 0; display: grid; gap: var(--space-4); margin-bottom: var(--space-5); counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 2rem 1fr; column-gap: var(--space-3); }
.next-steps li::before { content: counter(n); grid-row: span 2; color: var(--color-accent-text); font-weight: var(--weight-ui); }
.next-steps span { color: var(--color-muted); font-size: var(--text-sm); }
address { font-style: normal; display: grid; gap: var(--space-1); }
.site-footer { padding-block: var(--space-6) var(--space-4); background: var(--color-stone); font-size: var(--text-sm); color: var(--color-ink); border-top: 0; }
.footer__grid { display: grid; gap: var(--space-5); }
@media (min-width: 52rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__logo { height: 1.35rem; width: auto; margin-bottom: var(--space-3); }
.footer__inc { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); color: var(--color-muted); }
.footer__inc a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__inc img { height: 1.8rem; width: auto; mix-blend-mode: multiply; }
.site-footer nav { display: grid; gap: var(--space-2); align-content: start; }
.site-footer a { text-decoration: none; }
.footer__base { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--color-line); color: var(--color-muted); }
.thanks { min-height: 60vh; display: grid; align-content: center; }

/* page transitions (cross-document View Transitions; ignored where unsupported) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-group(site-header) { animation-duration: 0s; }
  @keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
  @keyframes page-in { from { opacity: 0; transform: translateY(16px); } }
  ::view-transition-old(root) { animation: page-out 180ms var(--ease-out) both; }
  ::view-transition-new(root) { animation: page-in 380ms var(--ease-out) 60ms both; }
  ::view-transition-group(*) { animation-duration: 450ms; animation-timing-function: var(--ease-out); }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .story, .stat, .rung, .panel, .tl__phase, .stack, .legend li, .blockers li, .faq details, .cmp__row, .pills li, .quote {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%;
    }
    .stories .story:nth-child(3n+2), .ladder .rung:nth-child(2n) { animation-range: entry 6% entry 51%; }
    .stories .story:nth-child(3n), .ladder .rung:nth-child(3n) { animation-range: entry 12% entry 57%; }
  }
}

/* language menu: globe + code, list opens on hover or keyboard focus, click toggles (as on cloudbeds.com) */
.lang-menu { position: relative; }
.lang-menu__btn { display: inline-flex; align-items: center; gap: 0.35rem; font: inherit; font-size: var(--text-sm); font-weight: var(--weight-ui); color: var(--color-ink); background: none; border: 0; padding: 0.35rem 0; cursor: pointer; touch-action: manipulation; }
.lang-menu__list { position: absolute; top: 100%; right: 0; min-width: 8.5rem; padding-top: 0.75rem; z-index: 30; visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), visibility 0s var(--duration-fast); }
.lang-menu__list > div { background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding-block: var(--space-1); }
.lang-menu__list a { display: block; padding: 0.5rem 1rem; font-size: var(--text-sm); text-decoration: none; }
.lang-menu__list a[aria-current="true"] { font-weight: var(--weight-ui); color: var(--color-accent-text); }
.lang-menu__list a[aria-current="true"]::after { content: ""; display: inline-block; width: 0.6rem; height: 0.3rem; margin-left: 0.5rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.lang-menu.is-open .lang-menu__list, .lang-menu:has(:focus-visible) .lang-menu__list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) {
  .lang-menu:hover .lang-menu__list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .lang-menu__list a:hover { text-decoration: underline; }
}
@media (max-width: 64rem) {
  .lang-menu__btn { display: none; }
  .lang-menu__list { position: static; visibility: visible; opacity: 1; transform: none; padding: 0; min-width: 0; }
  .lang-menu__list > div { display: flex; gap: var(--space-3); border: 0; box-shadow: none; background: none; padding: 0; }
  .lang-menu__list a { padding: 0.25rem 0; }
}
@media (prefers-reduced-motion: reduce) { .lang-menu__list { transition: none; transform: none; } }


/* touch targets: about 44px high on phones and tablets */
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: var(--space-2); }
.faq summary { padding-block: 0.7rem; }
.site-footer nav a, .site-footer address a, .contact address a { display: block; padding-block: 0.7rem; }
.nav-toggle { min-height: 44px; }
@media (max-width: 64rem) {
  .nav { gap: 0; }
  .nav a:not(.btn), .lang-menu__list a { padding-block: 0.7rem; }
  .nav .btn { margin-top: var(--space-2); }
}
@media (pointer: coarse), (max-width: 48rem) {
  .filters button, .ba__filter button { min-height: 44px; }
}
@media (max-width: 22rem) { .ba__summary { gap: var(--space-2); } .ba__arrow { width: 1.75rem; } }

/* navy Quality Score section: only the ground is navy; the before/after panel stays a white card */
.section--navy .lede { color: rgb(251 251 246 / 0.72); }
.section--navy .ba { color: var(--color-ink); } /* the card is white, so its text must not inherit the section's light text */
.case figure img { border: 1px solid var(--color-line); border-radius: var(--radius); }

/* OTA names on the before/after cases: the logos in their original colors */
.ota-logo { display: block; height: 1.5rem; width: auto; }
.case__head h3 { display: flex; align-items: center; min-height: 1.5rem; }
.story-hero + .section:not(.section--ink) { padding-top: 0; } /* the hero already leaves room below the photo */
.evidence { margin: var(--space-6) 0 0; display: grid; gap: var(--space-2); max-width: 36rem; }
.evidence img { width: 100%; height: auto; border: 1px solid var(--color-line); border-radius: var(--radius); }
.evidence figcaption { font-size: var(--text-sm); color: var(--color-ink-soft, inherit); }
