/* ==========================================================================
   Tether Copy
   Motion and material rules follow Apple's fluid-interface principles:
   respond on press, animate with critically damped springs, carry velocity
   out of gestures, keep every effect interruptible, and fall back calmly for
   reduced motion, reduced transparency and increased contrast.
   ========================================================================== */

@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial'), local('Liberation Sans');
  font-weight: 400;
  font-style: normal;
  size-adjust: 99.2%;
  ascent-override: 100%;
  descent-override: 31.25%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial'), local('Liberation Sans');
  font-weight: 500;
  font-style: normal;
  size-adjust: 104%;
  ascent-override: 95.38%;
  descent-override: 29.81%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --card: #fff;
  --plate: #f5f5f7;
  --line: rgba(0, 0, 0, 0.08);
  --press: rgba(0, 0, 0, 0.04);

  --btn-bg: #1d1d1f;
  --btn-ink: #fff;
  --btn-icon-bg: #fff;
  --btn-icon-ink: #1d1d1f;
  --btn-hover: #3a3a3c;

  --material: rgba(251, 251, 253, 0.72);
  --material-edge: rgba(0, 0, 0, 0.08);
  --sheet: rgba(251, 251, 253, 0.86);
  --pill: rgba(0, 0, 0, 0.05);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03), 0 6px 24px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.04), 0 30px 80px rgba(0, 0, 0, 0.14);

  --r-sm: 0.75rem;
  --r-md: 1.25rem;
  --r-lg: 1.75rem;

  --gutter: clamp(20px, 5vw, 5rem);
  --section-y: clamp(5rem, 9vw, 9rem);

  /* Critically damped spring (damping 1.0, response 0.35s): settles with no overshoot. */
  --spring: cubic-bezier(0.2, 0.9, 0.3, 1);
  --spring-dur: 0.5s;
  --press-dur: 0.1s;

  color-scheme: light;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.002 0.6%, 0.013 1.9%, 0.044 3.6%, 0.098 5.7%, 0.174 8.1%, 0.266 10.9%, 0.369 13.9%, 0.473 17.2%, 0.573 20.8%, 0.664 24.6%, 0.743 28.7%, 0.808 33%, 0.861 37.5%, 0.901 42.2%, 0.931 47.1%, 0.954 52.3%, 0.969 57.6%, 0.98 63.1%, 0.987 68.8%, 0.992 74.7%, 0.995 80.8%, 0.997 87%, 0.998 93.4%, 1 100%);
  }
}

html.dark {
  --bg: #000;
  --bg-alt: #0c0c0e;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --card: #161618;
  --plate: #1f1f22;
  --line: rgba(255, 255, 255, 0.1);
  --press: rgba(255, 255, 255, 0.06);

  --btn-bg: #f5f5f7;
  --btn-ink: #1d1d1f;
  --btn-icon-bg: #1d1d1f;
  --btn-icon-ink: #f5f5f7;
  --btn-hover: #dcdce0;

  --material: rgba(22, 22, 24, 0.72);
  --material-edge: rgba(255, 255, 255, 0.1);
  --sheet: rgba(28, 28, 30, 0.86);
  --pill: rgba(255, 255, 255, 0.1);

  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', 'DM Sans Fallback', Arial, sans-serif;
  /* Anchored to rem so browser zoom and text-size settings scale the page. */
  font-size: clamp(1rem, 0.75rem + 0.42vw, 1.3rem);
  font-weight: 400;
  line-height: 1.5;
  font-synthesis: none;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
p {
  margin: 0;
  font-weight: inherit;
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

strong {
  font-weight: 500;
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10000;
  background: var(--btn-bg);
  color: var(--btn-ink);
  padding: 0.6em 1em;
  border-radius: 2em;
}

.skip-link:focus {
  top: 1rem;
}

.placeholder {
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.18em;
}

/* --------------------------------------------------------------------------
   Layout and type
   -------------------------------------------------------------------------- */

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

.wrap {
  width: 100%;
  max-width: 90rem;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: 1;
}

/* Tracking and leading tighten as size grows; body copy stays near zero. */
.h1 {
  max-width: 13em;
  margin: 0 auto;
  font-size: clamp(2.6rem, 1rem + 4.8vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.h2 {
  max-width: 18em;
  font-size: clamp(2rem, 1rem + 2.8vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.04;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.35rem, 1rem + 0.9vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.1rem, 0.95rem + 0.4vw, 1.4rem);
  line-height: 1.45;
}

.eyebrow {
  color: var(--muted);
  font-size: 1.05em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
  width: 100%;
  text-align: center;
}

.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* Reveal on scroll. Only hidden once JS is confirmed running, so content never depends on it. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1.1s var(--spring);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: var(--material);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: background-color 0.3s ease;
}

/* Scroll edge: appears only once content is underneath. */
.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 1px;
  background: var(--material-edge);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.header.is-scrolled::after {
  opacity: 1;
}

.menu-open .header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.menu-open .header::after {
  opacity: 0;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 3.75em;
  transition: height var(--spring-dur) var(--spring);
}

.header.is-scrolled .header-inner {
  height: 3.1em;
}

.wordmark {
  justify-self: start;
  font-size: 1.05em;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.nav {
  position: relative;
  display: flex;
  grid-column: 2;
}

.nav-link {
  position: relative;
  z-index: 1;
  padding: 0.5em 0.95em;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75em;
  transition: color 0.25s ease, opacity 0.2s ease;
}

.nav-link[aria-current] {
  color: var(--ink);
}

.nav-link:active {
  opacity: 0.5;
  transition-duration: var(--press-dur);
}

@media (hover: hover) {
  .nav-link:hover {
    color: var(--ink);
  }
}

/* Wayfinding: a pill slides to the section you are reading. */
.nav-pill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--pill);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--spring-dur) var(--spring),
    width var(--spring-dur) var(--spring),
    opacity 0.25s ease;
}

.nav-pill.is-on {
  opacity: 1;
}

.nav-pill.no-anim {
  transition: opacity 0.25s ease;
}

.header-end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}

.header-btn {
  font-size: 0.78em;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  margin-right: -12px;
  position: relative;
  z-index: 1000;
  transition: transform var(--spring-dur) var(--spring);
}

.menu-btn:active {
  transform: scale(0.9);
  transition-duration: var(--press-dur);
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform var(--spring-dur) var(--spring), opacity 0.2s ease;
}

.menu-bar:nth-child(2) {
  display: none;
}

.menu-btn.is-open .menu-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-btn.is-open .menu-bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile menu: a sheet that drops from the top and can be thrown back up. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.menu-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
}

.menu-sheet {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(var(--header-h, 64px) + 4px) var(--gutter) 10px;
  background: var(--sheet);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  transform: translate3d(0, -105%, 0);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  min-height: 58px;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  -webkit-user-drag: none;
  transition: opacity 0.2s ease;
}

.mobile-menu-link + .mobile-menu-link {
  border-top: 1px solid var(--line);
}

.mobile-menu-link:active {
  opacity: 0.45;
  transition-duration: var(--press-dur);
}

.menu-grabber {
  display: block;
  width: 40px;
  height: 5px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-radius: 2em;
  padding: 0.25em 0.3em 0.25em 1.15em;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.3s ease,
    transform var(--spring-dur) var(--spring);
}

/* Feedback lives on the press: instant in, spring back out. */
.btn:active {
  transform: scale(0.96);
  transition-duration: 0.2s, 0.3s, var(--press-dur);
}

@media (hover: hover) {
  .btn:hover {
    background: var(--btn-hover);
  }
}

.btn-text-wrap {
  display: grid;
  overflow: hidden;
}

.btn-text,
.btn-text-hover {
  grid-area: 1 / 1;
  white-space: nowrap;
  transition: transform var(--spring-dur) var(--spring);
}

.btn-text-hover {
  transform: translateY(110%);
}

.btn-icon-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  overflow: hidden;
  background: var(--btn-icon-bg);
  color: var(--btn-icon-ink);
}

.btn-icon,
.btn-icon-hover {
  width: 1em;
  height: 1em;
  transition: transform var(--spring-dur) var(--spring);
}

.btn-icon-hover {
  position: absolute;
  transform: translateX(-200%);
}

/* The arrow leaves right and the next arrives from the left: motion points where the link goes. */
@media (hover: hover) {
  .btn:hover .btn-text {
    transform: translateY(-110%);
  }

  .btn:hover .btn-text-hover {
    transform: none;
  }

  .btn:hover .btn-icon-hover {
    transform: none;
  }

  .btn:hover .btn-icon {
    transform: translateX(200%);
  }
}

/* --------------------------------------------------------------------------
   Shared section parts
   -------------------------------------------------------------------------- */

.header {
  color: var(--ink);
}

/* Over the black band the header switches to a dark material, so it never sits as a pale strip on black. */
.header.is-on-dark {
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --pill: rgba(255, 255, 255, 0.12);
  --material: rgba(12, 12, 14, 0.62);
  --material-edge: rgba(255, 255, 255, 0.1);
  --btn-bg: #f5f5f7;
  --btn-ink: #1d1d1f;
  --btn-icon-bg: #1d1d1f;
  --btn-icon-ink: #f5f5f7;
  --btn-hover: #dcdce0;
}

.section-lead {
  max-width: 38em;
  margin-top: 0.5em;
}

.section-close {
  max-width: 24em;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  text-align: center;
  font-size: clamp(1.45rem, 1rem + 1.5vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-close strong {
  font-weight: 500;
}

.section-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85em;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.cta-note {
  color: var(--muted);
  font-size: 0.85em;
  letter-spacing: 0.005em;
}

/* Check and cross marks. They draw themselves once their card arrives. */
.mark-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85em;
  padding: 0.8em 0;
  line-height: 1.4;
}

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

.mark {
  flex: none;
  width: 1.45em;
  height: 1.45em;
  margin-top: -0.02em;
  border-radius: 50%;
}

.mark.is-yes {
  background: var(--ink);
  color: var(--bg);
}

.mark.is-no {
  background: var(--plate);
  color: var(--muted);
}

.mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.3, 0.7, 0.2, 1) 0.35s;
}

html.js [data-reveal]:not(.is-revealed) .mark path {
  stroke-dashoffset: 1;
}

.mark-list li:nth-child(2) .mark path { transition-delay: 0.43s; }
.mark-list li:nth-child(3) .mark path { transition-delay: 0.51s; }
.mark-list li:nth-child(4) .mark path { transition-delay: 0.59s; }
.mark-list li:nth-child(5) .mark path { transition-delay: 0.67s; }

/* --------------------------------------------------------------------------
   Hero: the original stack, with the video above the fold
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(1.75rem, 3.5vw, 3.25rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: clip;
}

html.dark .hero {
  background: radial-gradient(ellipse 80% 55% at 50% 30%, #15152a 0%, #000 70%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  margin-bottom: 1.1rem;
  padding: 0.4em 1em;
  border-radius: 999px;
  background: var(--plate);
  color: var(--ink);
  font-size: 0.82em;
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-title {
  width: 100%;
  margin-bottom: 0.4em;
  font-size: clamp(2.2rem, 0.9rem + 3.4vw, 4.4rem);
}

.hero-title .h1 {
  max-width: 15em;
  font-size: 1em;
}

.hero-sub {
  max-width: 37em;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 0.92rem + 0.35vw, 1.3rem);
  line-height: 1.45;
  text-wrap: balance;
}

.vsl {
  width: min(100%, 28rem);
  margin: clamp(1.5rem, 2.6vw, 2.25rem) auto;
}

.vsl-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(150deg, #ececf0 0%, #d6d6dc 100%);
  box-shadow: var(--shadow-lg);
}

html.dark .vsl-frame {
  background: linear-gradient(150deg, #1d1d21 0%, #2c2c31 100%);
}

.vsl-frame iframe,
.vsl-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vsl-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95em;
}

.vsl-play {
  width: 3.25em;
  height: 3.25em;
}

.hero-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8em;
  font-size: 1.05em;
}

.hero-btn .cta-note {
  font-size: 0.8em;
}

/* Load-in: each line rises out of a soft blur, staggered. CSS-only, so it needs no script. */
.hero-eyebrow,
.hero-title,
.hero-sub,
.vsl,
.hero-btn {
  animation: hero-rise 1.1s var(--spring) both;
}

.hero-title { animation-delay: 0.05s; }
.hero-sub { animation-delay: 0.12s; }
.vsl { animation-delay: 0.2s; }
.hero-btn { animation-delay: 0.28s; }

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(0.6em);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Short laptop screens: tighten the hero so the video still sits above the fold. */
@media (min-width: 992px) and (max-height: 820px) {
  .hero {
    padding-top: 1.25rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 0.6rem + 3vw, 3.4rem);
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .vsl {
    width: min(100%, 23rem);
    margin: 1.25rem auto;
  }
}

/* --------------------------------------------------------------------------
   Problem: a story told one line at a time. Lines brighten as you reach them.
   -------------------------------------------------------------------------- */

.problem {
  padding: var(--section-y) 0;
}

.story {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: min(100%, 40rem);
  margin: clamp(3rem, 7vw, 6rem) auto 0;
}

.story-line {
  font-size: clamp(1.12rem, 0.98rem + 0.45vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
}

html.js .story-line {
  opacity: 0.18;
  transition: opacity 0.6s ease;
}

html.js .story-line.is-lit {
  opacity: 1;
}

.story-big {
  font-size: clamp(2.2rem, 1rem + 3.4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.story-hope {
  margin-top: -0.9rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.story-mid {
  margin-top: 1rem;
  font-size: clamp(1.45rem, 1rem + 1.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.15;
  text-wrap: balance;
}

.story-question {
  margin-top: 2rem;
}

/* The three "hopes", stacked like notifications that never quite arrive. */
.hope-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hope-card {
  display: flex;
  align-items: center;
  gap: 0.85em;
  width: fit-content;
  max-width: 100%;
  padding: 0.85em 1.2em;
  border-radius: 1.1rem;
  background: var(--card);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
}

.hope-card:nth-child(2) { margin-left: clamp(1rem, 4vw, 2.5rem); }
.hope-card:nth-child(3) { margin-left: clamp(2rem, 8vw, 5rem); }

.hope-icon {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   The Secret: without and with, side by side
   -------------------------------------------------------------------------- */

.secret,
.services,
.footer {
  background: var(--bg-alt);
}

.secret {
  padding: var(--section-y) 0;
}

.versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: min(100%, 60rem);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}

.versus-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.versus-card .h3 {
  margin-bottom: 0.8em;
}

.is-without .h3,
.is-without .mark-list {
  color: var(--muted);
}

/* The "with" card is the answer, so it carries the weight. */
.versus-card.is-with {
  background: var(--ink);
  color: var(--bg);
  --line: color-mix(in srgb, var(--bg) 16%, transparent);
}

.is-with .mark.is-yes {
  background: var(--bg);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Hidden costs: three tiles, each with its own picture of the cost
   -------------------------------------------------------------------------- */

.costs {
  padding: var(--section-y) 0;
}

.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.cost-tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
}

.cost-wide {
  grid-column: 1 / -1;
}

.cost-visual {
  display: grid;
  place-items: center;
  min-height: 17rem;
  margin-bottom: 0.75rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--r-md);
  background: var(--plate);
}

.cost-title {
  font-size: clamp(1.3rem, 1rem + 0.8vw, 1.9rem);
}

.cost-text {
  color: var(--muted);
}

/* Mock email */
.mock-mail {
  width: min(100%, 23rem);
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08), inset 0 0 0 1px var(--line);
  font-size: 0.85em;
  text-align: left;
}

.mock-mail-head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.75em;
  padding-bottom: 0.75em;
  border-bottom: 1px solid var(--line);
}

.mock-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--plate);
  font-size: 0.72em;
  font-weight: 500;
}

.mock-to {
  font-weight: 500;
  line-height: 1.3;
}

.mock-body {
  color: var(--muted);
  line-height: 1.5;
}

.mock-token {
  padding: 0 0.25em;
  border-radius: 4px;
  background: rgba(255, 59, 48, 0.12);
  color: #d70015;
  font-weight: 500;
}

html.dark .mock-token {
  color: #ff6961;
}

.mock-sign {
  margin-top: 0.6em;
}

.mock-reply {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7em;
  margin-top: 1em;
}

.mock-reply-from {
  color: var(--muted);
  font-size: 0.85em;
}

/* The stamp lands once the tile arrives. */
.mock-stamp {
  display: inline-block;
  padding: 0.35em 0.75em;
  border: 2px solid #ff3b30;
  border-radius: 0.5em;
  color: #ff3b30;
  font-weight: 500;
  letter-spacing: 0.06em;
  transform: rotate(-6deg);
  transition:
    transform 0.55s var(--spring) 0.55s,
    opacity 0.15s ease 0.55s;
}

html.js .cost-tile:not(.is-revealed) .mock-stamp {
  opacity: 0;
  transform: rotate(-6deg) scale(1.7);
}

/* Receipt */
.receipt {
  width: min(100%, 23rem);
  padding: 1.3rem 1.3rem 0.9rem;
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08), inset 0 0 0 1px var(--line);
  font-size: 0.9em;
  text-align: left;
}

.receipt-total {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  margin-bottom: 0.3em;
  padding-bottom: 1em;
  border-bottom: 1px dashed var(--line);
}

.receipt-label {
  color: var(--muted);
  font-size: 0.88em;
}

.receipt-amount {
  font-size: 2.7em;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.receipt-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.6em 0;
  line-height: 1.3;
}

.receipt-lines li + li {
  border-top: 1px dashed var(--line);
}

.receipt-lines li > span:first-child {
  color: var(--muted);
}

.receipt-price {
  flex: none;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Your goal against the agency's */
.goals {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  margin-top: 0.75rem;
}

.goal {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: var(--r-md);
  background: var(--plate);
}

.goal-label strong {
  font-weight: 500;
}

.goal-yours {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  background: var(--ink);
  color: var(--bg);
}

.goal-yours .goal-label {
  opacity: 0.7;
}

.goal-main {
  font-size: clamp(1.7rem, 1rem + 1.8vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.goal-agency .goal-label {
  margin-bottom: 0.4em;
}

.goal-agency .mark-list {
  color: var(--muted);
}

.goal-agency .mark.is-no {
  background: var(--card);
}

/* --------------------------------------------------------------------------
   What makes us different: a black band, read like a letter
   -------------------------------------------------------------------------- */

.dark-band {
  --bg: #000;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --card: rgba(255, 255, 255, 0.06);
  --plate: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  padding: var(--section-y) 0;
  background: #000;
  color: var(--ink);
}

html.dark .dark-band {
  background: #0a0a0c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.band-glow {
  position: absolute;
  left: 50%;
  top: -10rem;
  width: 80rem;
  height: 44rem;
  margin-left: -40rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(80, 80, 180, 0.32), transparent);
  pointer-events: none;
}

.letter {
  display: flex;
  flex-direction: column;
  gap: 1.15em;
  width: min(100%, 38rem);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.3rem);
  line-height: 1.6;
}

.letter-strong {
  color: var(--ink);
  font-size: 1.2em;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.pull {
  max-width: 15em;
  margin: clamp(3rem, 7vw, 6rem) auto 0;
  text-align: center;
  font-size: clamp(2.1rem, 1rem + 3.5vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
  background: linear-gradient(100deg, #f5f5f7 20%, #b4b4f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.partner-heading {
  margin: clamp(4rem, 8vw, 6.5rem) 0 1.5rem;
  text-align: center;
}

.partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: min(100%, 60rem);
  margin: 0 auto;
}

.partner {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  padding: 1.35em 1.5em;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  line-height: 1.45;
}

.partner strong {
  color: var(--ink);
}

.testimonial {
  position: relative;
  width: min(100%, 52rem);
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px var(--line);
  text-align: center;
}

.quote-mark {
  width: 2.4rem;
  margin: 0 auto 1.5rem;
  fill: rgba(255, 255, 255, 0.28);
}

.testimonial blockquote {
  margin: 0;
}

.testimonial blockquote p {
  font-size: clamp(1.15rem, 0.95rem + 0.75vw, 1.7rem);
  letter-spacing: -0.018em;
  line-height: 1.42;
  text-wrap: pretty;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.95em;
}

.testimonial-avatar {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #5e5ce6, #2c2c8a);
  color: #fff;
  font-size: 0.8em;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Services: five tiles, a swipeable carousel on small screens
   -------------------------------------------------------------------------- */

.services {
  padding: var(--section-y) 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  grid-column: span 4;
  padding: clamp(1.25rem, 2.2vw, 2rem);
}

.tile:nth-child(4),
.tile:nth-child(5) {
  grid-column: span 6;
}

.tile-plate {
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--r-md);
  background: var(--plate);
}

.get-figure {
  width: min(100%, 13rem);
  --hairline-plate: var(--plate);
}

.tile-title {
  font-size: clamp(1.2rem, 1rem + 0.5vw, 1.55rem);
}

.tile-title strong {
  font-weight: 500;
}

.tile-text {
  color: var(--muted);
  font-size: 0.95em;
  line-height: 1.5;
}

/* Drawn to match the hairline figures */
.plate-art {
  aspect-ratio: 5 / 4;
  height: auto;
}

.plate-art * {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pa-sheet {
  fill: var(--plate);
  stroke: color-mix(in srgb, var(--ink) 55%, transparent);
}

.pa-line {
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 30%, transparent);
}

.pa-grid rect {
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 16%, transparent);
}

.pa-booked {
  fill: var(--ink);
  stroke: none;
}

.pa-check {
  fill: none;
  stroke: var(--plate);
  stroke-width: 2 !important;
}

.carousel-dots {
  display: none;
}

/* --------------------------------------------------------------------------
   FAQ section
   -------------------------------------------------------------------------- */

.faq {
  padding: var(--section-y) 0;
}

.faq-a-inner {
  min-height: 0;
  max-width: 38em;
  overflow: hidden;
}

.faq-a-inner p + p {
  margin-top: 0.75em;
}

.faq-a-inner::after {
  content: '';
  display: block;
  height: 1.3em;
}

/* --------------------------------------------------------------------------
   Footer: a closing card, then a quiet directory
   -------------------------------------------------------------------------- */

.footer {
  padding: clamp(2rem, 4vw, 3.5rem) 0 1.5rem;
  color: var(--ink);
}

.footer-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem);
  border-radius: var(--r-lg);
  background: #000;
  color: #f5f5f7;
  text-align: center;
  --btn-bg: #f5f5f7;
  --btn-ink: #1d1d1f;
  --btn-icon-bg: #1d1d1f;
  --btn-icon-ink: #f5f5f7;
  --btn-hover: #dcdce0;
}

html.dark .footer-cta {
  background: #0d0d10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* A soft light that drifts toward the pointer on two slow springs. */
.cta-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64rem;
  height: 44rem;
  margin: -22rem 0 0 -32rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(80, 80, 190, 0.45), rgba(80, 80, 190, 0));
  pointer-events: none;
  will-change: transform;
}

.footer-cta-title {
  position: relative;
  max-width: 14em;
  color: #f5f5f7;
  font-size: clamp(2rem, 0.9rem + 3.2vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.footer-cta-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85em;
  font-size: 1.1em;
}

.footer-cta .cta-note {
  color: rgba(245, 245, 247, 0.62);
  font-size: 0.78em;
}

.footer-cta .btn:active {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 0 48px rgba(255, 255, 255, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem 4rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0 2.25rem;
  border-bottom: 1px solid var(--line);
}

.footer-id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
}

.footer-brand {
  font-size: 1.25em;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.footer-email {
  color: var(--muted);
  font-size: 0.88em;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2rem clamp(2.5rem, 5vw, 5rem);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7em;
  font-size: 0.82em;
}

.footer-col-title {
  margin-bottom: 0.15em;
  font-size: 1em;
  font-weight: 500;
}

.footer-col a,
.footer-col > span,
.footer-email {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col a:active,
.footer-email:active {
  color: var(--ink);
  transition-duration: var(--press-dur);
}

@media (hover: hover) {
  .footer-col a:hover,
  .footer-email:hover {
    color: var(--ink);
  }
}

.footer-bottom {
  padding-top: 1.25rem;
}

.copyright {
  color: var(--muted);
  font-size: 0.76em;
}

/* --------------------------------------------------------------------------
   Floating apply bar (phones): rises once the hero button scrolls away,
   leaves the same way before the footer card.
   -------------------------------------------------------------------------- */

.book-bar {
  display: none;
}

/* Hairline figures (vendored library; it injects no styles under the CSP) */

.hl {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  touch-action: pan-y;
  user-select: none;
  --hairline-stroke: 1.05;
  --hairline-hi: #000;
  --hairline-edge: rgba(0, 0, 0, 0.55);
  --hairline-mid: rgba(0, 0, 0, 0.28);
  --hairline-lo: rgba(0, 0, 0, 0.14);
}

.hl svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hl svg :where(path, polygon, ellipse, line, circle) {
  fill: var(--hairline-plate);
  stroke: var(--hairline-mid);
  stroke-width: var(--hairline-stroke);
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.hl svg :where(.nf) { fill: none; }
.hl svg :where(.fo) { stroke: none; }
.hl svg :where(.sil) { stroke: var(--hairline-edge); }
.hl svg :where(.hi) { stroke: var(--hairline-hi); }
.hl svg :where(.lo) { stroke: var(--hairline-lo); }
.hl svg :where(.dash) { stroke-dasharray: 1 3; }
.hl svg :where(.dot) { stroke: none; fill: var(--hairline-hi); }
.hl svg :where(.dot.m) { fill: var(--hairline-edge); }
.hl svg :where(.dot.off) { fill: var(--hairline-lo); }
.hl svg :where(.ghost path) { fill: none; stroke: var(--hairline-mid); }

html.dark .hl {
  --hairline-hi: #f0f0f2;
  --hairline-edge: rgba(240, 240, 242, 0.62);
  --hairline-mid: rgba(240, 240, 242, 0.34);
  --hairline-lo: rgba(240, 240, 242, 0.16);
}

/* --------------------------------------------------------------------------
   FAQ: one grouped list
   -------------------------------------------------------------------------- */

.faq-list {
  width: min(100%, 46rem);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  overflow: hidden;
}

.faq-item {
  position: relative;
  padding: 0 1.5rem;
  transition: background-color 0.3s ease;
}

.faq-item + .faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 0;
  height: 1px;
  background: var(--line);
}

/* Rows highlight under the finger, like a grouped list. */
.faq-item:has(.faq-q:active) {
  background: var(--press);
  transition-duration: var(--press-dur);
}

.faq-heading {
  font-size: inherit;
  font-weight: inherit;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  width: 100%;
  min-height: 3.6em;
  padding: 1.1em 0;
  text-align: left;
  font-size: 1.05em;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.faq-q-text {
  transition: opacity 0.2s;
}

@media (hover: hover) {
  .faq-q:hover .faq-q-text {
    opacity: 0.65;
  }
}

.faq-chevron {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--spring-dur) var(--spring);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(45deg);
}

/* The answer grows out of its question and can be reversed mid-flight. */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--muted);
  line-height: 1.55;
  opacity: 0;
  transition:
    grid-template-rows var(--spring-dur) var(--spring),
    opacity 0.25s ease;
}

.faq-a[hidden] {
  display: none;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
  opacity: 1;
}


/* --------------------------------------------------------------------------
   Theme toggle
   -------------------------------------------------------------------------- */

.theme-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 16px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s,
    transform var(--spring-dur) var(--spring);
}

.theme-toggle:active {
  transform: scale(0.9);
  transition-duration: 0.3s, 0.3s, 0.3s, 0.3s, var(--press-dur);
}

html.dark .theme-toggle {
  background: rgba(36, 36, 40, 0.7);
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.theme-icon {
  width: 20px;
  height: 20px;
}

html.dark .theme-icon.sun,
.theme-icon.moon {
  display: none;
}

html.dark .theme-icon.moon {
  display: block;
}

html.theme-anim.dark .theme-icon.moon,
html.theme-anim:not(.dark) .theme-icon.sun {
  animation: theme-icon-in var(--spring-dur) var(--spring);
}

@keyframes theme-icon-in {
  from { transform: rotate(-60deg) scale(0.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Theme change cross-fades instead of jumping in brightness. */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
  animation-timing-function: ease;
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .nav,
  .header-btn {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .header-inner {
    height: 64px;
  }

  .header.is-scrolled .header-inner {
    height: 56px;
  }

  .vsl {
    width: min(100%, 34rem);
  }

  /* Swipeable carousel. Native scroll keeps momentum and snapping; dots show position. */
  .bento {
    display: flex;
    gap: 12px;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .bento::-webkit-scrollbar {
    display: none;
  }

  .tile,
  .tile:nth-child(n) {
    flex: 0 0 min(84%, 24rem);
    scroll-snap-align: start;
  }

  .get-figure {
    width: min(100%, 11rem);
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 4px;
  }

  .carousel-dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
  }

  .carousel-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--line);
    transition: width var(--spring-dur) var(--spring), background-color 0.3s ease;
  }

  .carousel-dot[aria-current]::before {
    width: 22px;
    background: var(--ink);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .book-bar {
    position: fixed;
    left: 12px;
    right: 72px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 9998;
    display: flex;
    padding: 6px;
    border-radius: 999px;
    background: var(--material);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: inset 0 0 0 1px var(--material-edge), 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(calc(100% + 24px));
    visibility: hidden;
    transition:
      transform var(--spring-dur) var(--spring),
      opacity 0.25s ease,
      visibility 0s linear var(--spring-dur);
  }

  .book-bar.is-on {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }

  .menu-open .book-bar {
    opacity: 0;
    transform: translateY(calc(100% + 24px));
    visibility: hidden;
  }

  .book-bar-btn {
    flex: 1;
    justify-content: space-between;
    font-size: 1rem;
  }

  .theme-toggle {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 760px) {
  .versus,
  .cost-grid,
  .goals,
  .partners {
    grid-template-columns: 1fr;
  }

  .cost-visual {
    min-height: 0;
  }

  .hope-card:nth-child(2) { margin-left: 1rem; }
  .hope-card:nth-child(3) { margin-left: 2rem; }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Accessibility preferences
   -------------------------------------------------------------------------- */

/* Reduced motion keeps every piece of feedback, as fades rather than movement. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .vsl,
  .hero-btn {
    animation: hero-fade 0.4s ease both;
  }

  html.js [data-reveal] {
    transform: none;
    transition: opacity 0.4s ease;
  }

  .hl {
    pointer-events: none;
  }

  html.theme-anim .theme-icon {
    animation: none;
  }

  .btn,
  .btn-text,
  .btn-text-hover,
  .btn-icon,
  .btn-icon-hover,
  .faq-chevron,
  .menu-btn,
  .menu-bar,
  .theme-toggle,
  .nav-pill,
  .header-inner {
    transition: none;
  }

  .btn:active,
  .menu-btn:active,
  .theme-toggle:active {
    transform: none;
  }

  .mock-stamp,
  html.js .cost-tile:not(.is-revealed) .mock-stamp {
    transform: rotate(-6deg);
    transition: opacity 0.3s ease 0.3s;
  }

  .faq-a {
    transition: opacity 0.2s ease;
  }

  .mobile-menu {
    transition: visibility 0s linear 0.2s;
  }

  .mobile-menu.is-open {
    transition-delay: 0s;
  }

  .menu-sheet {
    transform: none;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .menu-scrim {
    transition: opacity 0.2s ease;
  }

  .mobile-menu.is-open .menu-sheet,
  .mobile-menu.is-open .menu-scrim {
    opacity: 1;
  }

  .book-bar,
  .book-bar.is-on,
  .menu-open .book-bar {
    transform: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }

  .book-bar.is-on {
    transition-delay: 0s;
  }
}

@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-transparency: reduce) {
  :root,
  html.dark {
    --material: var(--bg);
    --sheet: var(--bg);
  }

  .header.is-on-dark {
    --material: #0c0c0e;
  }

  .header,
  .menu-sheet,
  .theme-toggle,
  .book-bar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .theme-toggle {
    background: #fff;
  }

  html.dark .theme-toggle {
    background: #1c1c1e;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #4a4a4f;
    --line: rgba(0, 0, 0, 0.3);
    --material: var(--bg);
    --sheet: var(--bg);
    --material-edge: rgba(0, 0, 0, 0.45);
  }

  html.dark,
  .dark-band {
    --muted: #c7c7cc;
    --line: rgba(255, 255, 255, 0.35);
  }

  html.dark {
    --material: var(--bg);
    --sheet: var(--bg);
    --material-edge: rgba(255, 255, 255, 0.5);
  }

  .card {
    box-shadow: 0 0 0 1px var(--line);
  }

  html.js .story-line {
    opacity: 0.45;
  }

  .pull {
    background: none;
    color: var(--ink);
  }
}
