/* ==========================================================================
   A privacy-first matchmaking platform — landing experience

   One visual world: a night sky that warms as the reader descends. Committed
   dark theme (§1). Gold is reserved for four things and nothing else:
   the primary action, the consent moment, the honest notes, and the light
   that appears at the end.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Ground */
  --space: #03050b;
  --midnight: #070c1a;
  --shelf: #0a1122;

  /* Text — neutrals carry a blue bias so they read as chosen, not inherited */
  --white: #f2f5fb;
  --silver: #dfe5f1;
  --silver-dim: #a6b0c7;
  --silver-faint: #8b95ad;

  /* The single accent */
  --gold: #c6a97a;
  --gold-lit: #e6cd9c;

  /* Surfaces */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-lit: rgba(255, 255, 255, 0.07);
  --hair: rgba(255, 255, 255, 0.085);
  --hair-lit: rgba(255, 255, 255, 0.17);

  /* Type */
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    "Times New Roman", ui-serif, serif;
  --body: "Segoe UI Variable Text", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --t-hero: clamp(2.7rem, 6.6vw, 6.1rem);
  --t-chapter: clamp(1.95rem, 3.7vw, 3.4rem);
  --t-sub: clamp(1.08rem, 1.5vw, 1.35rem);
  --t-body: clamp(1rem, 0.3vw + 0.95rem, 1.1rem);
  --t-small: 0.9rem;
  --t-label: 0.7rem;

  --measure: 60ch;
  --shell: min(1240px, 92vw);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Opaque-ish panels (the stuck nav, badges on photos, the rail arrows) and the
     ink that sits on gold. Flipped by the light theme below. */
  --panel: rgba(5, 8, 16, 0.72);
  --panel-strong: rgba(5, 8, 16, 0.78);
  --on-gold: #0a0d16;
  --media-a: #111a33;
  --media-b: #0a1122;
  --grain-opacity: 0.045;
  /* Script-owned: 0 at the top of the document, 1 at the bottom */
  --sp: 0;
}

/* The light theme: the same page on warm ivory. theme.js applies the saved choice
   before first paint; the switch in the nav flips it. Gold deepens a step so it
   still reads on white; the glass turns to soft shadow. */
html[data-theme="light"] {
  color-scheme: light;
  --space: #ffffff;
  --midnight: #ffffff;
  --shelf: #ffffff;
  --white: #171a2c;
  --silver: #2b3147;
  --silver-dim: #5b6379;
  --silver-faint: #8b93a8;
  --gold: #b08c47;
  --gold-lit: #c9a45c;
  --glass: rgba(198, 169, 122, 0.06);
  --glass-lit: rgba(198, 169, 122, 0.11);
  --hair: rgba(176, 140, 71, 0.38);
  --hair-lit: rgba(176, 140, 71, 0.62);
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --on-gold: #1c1607;
  --media-a: #fffaf0;
  --media-b: #fbf3e3;
  --grain-opacity: 0.02;
}

html[data-theme="light"] .glass {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 24px 50px -30px rgba(40, 30, 10, 0.35);
}

/* Pure white stays pure white: no deepening veil on the way down. */
html[data-theme="light"] .veil {
  opacity: 0;
}

html[data-theme="light"] .btn--gold {
  color: #fff;
  background: linear-gradient(180deg, #c9a45c, #a8813c);
  border-color: rgba(168, 129, 60, 0.6);
}

html[data-theme="light"] .hero__globe {
  filter: drop-shadow(0 30px 50px rgba(60, 40, 10, 0.3));
}

html[data-theme="light"] .rail__dot {
  background: rgba(23, 26, 44, 0.18);
}

html[data-theme="light"] .rail__dot.is-on {
  background: var(--gold);
}

/* 2. Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--space);
  color: var(--silver);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.68;
  letter-spacing: 0.006em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.019em;
  text-wrap: balance;
  color: var(--white);
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

svg {
  display: block;
}

::selection {
  background: rgba(198, 169, 122, 0.26);
  color: #fff;
}

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

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

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  background: var(--midnight);
  border: 1px solid var(--hair-lit);
  border-radius: 10px;
  transform: translateY(-180%);
  transition: transform 0.25s var(--ease);
}

.skip:focus-visible {
  transform: none;
}

/* 3. The sky --------------------------------------------------------------- */

.sky,
.veil,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.sky {
  z-index: -3;
  width: 100%;
  height: 100%;
}

/* Deepens the ground as the reader descends, so long passages stay quiet
   without ever hiding the sky entirely. */
.veil {
  z-index: -2;
  background: radial-gradient(125% 95% at 50% 0%, transparent 22%, var(--space) 80%);
  opacity: calc(var(--sp) * 0.66);
}

.grain {
  z-index: -1;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 4. Shared pieces --------------------------------------------------------- */

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.label {
  display: inline-block;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver-faint);
}

.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--hair);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 30px 70px -44px rgba(0, 0, 0, 0.95);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--hair), transparent);
}

/* Entrances are gated on the .js class the script adds, so a page whose script
   never runs shows every word instead of a screen of invisible content. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(6px);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 1.05s var(--expo), transform 1.15s var(--expo),
    filter 1.05s var(--expo);
  transition-delay: calc(var(--i, 0) * 95ms);
}

/* 5. Navigation — a floating island, not a bar ----------------------------- */

.nav {
  position: fixed;
  top: clamp(0.7rem, 1.6vh, 1.4rem);
  left: 50%;
  translate: -50% 0;
  z-index: 200;
  width: min(1240px, 94vw);
}

.nav__island {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.4vw, 2.2rem);
  padding: 0.55rem 0.7rem 0.55rem 1.15rem;
  border-radius: 999px;
  transition: background 0.6s var(--ease), border-color 0.6s var(--ease),
    padding 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.nav.is-stuck .nav__island {
  padding-block: 0.4rem;
  background: var(--panel);
  border-color: var(--hair-lit);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  padding-block: 0.2rem;
}

.brand__mark {
  width: 24px;
  height: 24px;
  flex: none;
}

.brand__word {
  font-family: var(--display);
  font-size: 1.04rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--white);
}

.nav__links {
  display: none;
  gap: clamp(0.7rem, 1.5vw, 1.6rem);
}

.nav__link {
  position: relative;
  padding-block: 0.3rem;
  font-size: 0.84rem;
  color: var(--silver-dim);
  transition: color 0.35s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--hair-lit);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--expo);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

.nav__actions {
  display: none;
  align-items: center;
  gap: 0.9rem;
}

.nav__small {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__theme {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hair-lit);
  border-radius: 50%;
  background: var(--glass);
  color: var(--silver);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav__theme:hover,
.nav__theme:focus-visible {
  color: var(--gold-lit);
  border-color: var(--gold);
}

/* Sun in the dark (it offers the light), moon in the light. */
.nav__theme-moon { display: none; }
html[data-theme="light"] .nav__theme-sun { display: none; }
html[data-theme="light"] .nav__theme-moon { display: block; }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border-radius: 999px;
}

.nav__toggle span {
  display: block;
  height: 1px;
  background: var(--silver);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

.nav__panel {
  display: grid;
  gap: 0.1rem;
  margin-top: 0.5rem;
  padding: 0 1.15rem;
  border-radius: 22px;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.55s var(--expo), visibility 0.55s,
    padding 0.55s var(--expo);
}

.nav__panel.is-open {
  max-height: 32rem;
  padding-block: 0.6rem 1.2rem;
  visibility: visible;
}

.nav__panel a {
  padding: 0.85rem 0.1rem;
  font-size: 1rem;
  color: var(--silver-dim);
  border-bottom: 1px solid var(--hair);
}

.nav__panel .btn {
  margin-top: 1rem;
}

@media (min-width: 1000px) {
  .nav__links,
  .nav__actions {
    display: flex;
  }

  .nav__small,
  .nav__panel {
    display: none;
  }
}

/* 6. Actions --------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.6rem;
  overflow: hidden;
  font-size: var(--t-small);
  letter-spacing: 0.028em;
  border-radius: 999px;
  border: 1px solid var(--hair-lit);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--expo), box-shadow 0.6s var(--ease),
    border-color 0.45s var(--ease), background 0.45s var(--ease);
  will-change: transform;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 22%,
    rgba(255, 255, 255, 0.13) 50%,
    transparent 78%
  );
  transform: translateX(-125%);
  transition: transform 1s var(--expo);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(125%);
}

/* Gold, use one of four: the primary action. */
.btn--gold {
  color: var(--on-gold);
  font-weight: 600;
  background: linear-gradient(180deg, var(--gold-lit), var(--gold));
  border-color: rgba(230, 205, 156, 0.55);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  box-shadow: 0 0 38px rgba(198, 169, 122, 0.32);
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
  border-color: var(--hair-lit);
  background: var(--glass-lit);
}

@media (hover: hover) {
  .btn:hover {
    transform: translate3d(0, -2px, 0);
  }
}

/* 7. Opening — the couple in the globe ------------------------------------- */

/* The 3D world (landing-scene.js) draws on this fixed canvas once WebGL boots
   and html.world-3d lands. Below the veil and the grain like the painted sky it
   replaces; the sky itself is hidden then, so two backdrops never fight. */
.world {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

html.world-3d .world {
  display: block;
  animation: world-in 700ms ease-out both;
}

html.world-3d .sky {
  display: none;
}

/* The fallback image keeps its box (the scene measures it) but not its paint. */
html.world-3d .hero__globe {
  visibility: hidden;
  animation: none;
}

html.world-3d .hero__halo {
  opacity: 0;
}

@keyframes world-in {
  from {
    opacity: 0;
  }
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(5.5rem, 14vh, 8rem) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  display: block;
}

.hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: clamp(1rem, 2.2vh, 1.5rem);
  max-width: 42rem;
}

.hero__title {
  display: grid;
  font-size: var(--t-hero);
  line-height: 1.02;
}

/* The second line in gold, as a gradient through the glyphs. Clip-text spans
   must never carry a text-shadow (it paints through the transparent glyphs). */
.hero__line--gold {
  background: linear-gradient(100deg, #f1dfb6 0%, var(--gold) 55%, var(--gold-lit) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 44ch;
  font-size: var(--t-sub);
  line-height: 1.55;
  color: var(--silver-dim);
}

/* The search dock (#51): the template's one-row pill - two age bounds, a
   location, and the button. Each cell is a label wrapping its select, so the
   whole cell is the hit target. */
.dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr) auto;
  align-items: stretch;
  width: min(100%, 46rem);
  padding: 0.45rem;
  border-radius: 999px;
}

.dock__cell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.45rem 1rem;
  border-right: 1px solid var(--hair);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s var(--ease);
}

.dock__cell--wide {
  border-right: 0;
}

.dock__cell:hover,
.dock__cell:focus-within {
  background: var(--glass-lit);
}

.dock__ic {
  flex: none;
  color: var(--gold);
}

.dock__text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.dock__k {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-faint);
}

.dock select {
  width: 100%;
  padding: 0 1.1rem 0 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6b0c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right center / 12px 12px;
  color: var(--white);
  font: 600 0.95rem/1.3 var(--body);
  cursor: pointer;
  outline: none;
}

.dock select option {
  background: var(--shelf);
  color: var(--silver);
  font-weight: 400;
}

.dock__go {
  gap: 0.5rem;
  min-height: 52px;
  padding-inline: 1.7rem;
}

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 48ch;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--silver-faint);
}

.hero__note svg {
  flex: none;
  margin-top: 0.22em;
  color: var(--gold);
}

/* The three assurances, divided by hairlines, as the template draws them. */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin-top: 0.3rem;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: 1.25rem;
  padding-right: 1.25rem;
  border-right: 1px solid var(--hair-lit);
  font-size: 0.9rem;
  color: var(--silver);
}

.trust li:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

.trust svg {
  flex: none;
  color: var(--gold);
}

/* The stage: where the globe lives - BEHIND the copy, in the hero's right half,
   no column of its own. The image is the no-WebGL presentation AND the slot the
   scene measures, so it stays in the document at every width. */
.hero__stage {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: -4vw;
  z-index: 0;
  display: grid;
  place-items: center;
  inline-size: min(44vw, 600px);
  translate: 0 -50%;
  pointer-events: none;
}

.hero__halo {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(230, 205, 156, 0.24),
    rgba(198, 169, 122, 0.08) 52%,
    transparent 74%
  );
  filter: blur(14px);
  transition: opacity 0.7s var(--ease);
}

.hero__globe {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.62));
  animation: globe-float 9s var(--ease) infinite alternate;
  will-change: transform;
}

@keyframes globe-float {
  to {
    transform: translate3d(0, -14px, 0) rotate(0.6deg);
  }
}

/* The footer's assurance pills (also used by the close). */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: 64rem;
  margin-top: 0.3rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
  color: var(--silver-dim);
  border-radius: 999px;
  animation: breathe 13s var(--ease) infinite alternate;
  animation-delay: calc(var(--i, 0) * -2.1s);
  will-change: transform;
}

.pill svg {
  flex: none;
  color: var(--silver-faint);
}

@keyframes breathe {
  to {
    transform: translate3d(0, -6px, 0);
  }
}

/* 7b. Featured profiles — the rail ------------------------------------------ */

.featured {
  position: relative;
  padding-block: clamp(2rem, 6vh, 4rem) clamp(1rem, 3vh, 2rem);
}

.featured__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.featured__title {
  margin-top: 0.35rem;
  font-size: var(--t-chapter);
}

.featured__lede {
  margin-top: 0.5rem;
  font-size: var(--t-small);
  color: var(--silver-dim);
}

.featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  padding-bottom: 0.35rem;
  font-size: 0.95rem;
  color: var(--silver);
  border-bottom: 1px solid var(--hair-lit);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), gap 0.35s var(--ease);
}

.featured__cta:hover,
.featured__cta:focus-visible {
  gap: 0.8rem;
  color: var(--gold-lit);
  border-color: var(--gold);
}

.rail-wrap {
  position: relative;
}

/* The track stays a plain scrollable row the browser owns - momentum, snap,
   wheel and touch are native; landing.js only reads scrollLeft and calls
   scrollTo. */
.rail {
  overflow: hidden;
}

.rail__track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.75rem 0 1.5rem;
}

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

/* One row of people: each tile keeps its width in the flex row. */
.rail__track > .pcard {
  flex: 0 0 18.5rem;
}

/* The band under the rail that leads to the real list: a sentence and one big
   gold button, on its own glass strip so it cannot be missed. */
.featured-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.2rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(198, 169, 122, 0.14), var(--glass) 55%);
}

.featured-more__text {
  display: grid;
  gap: 0.2rem;
  max-width: 60ch;
}

.featured-more__text b {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
}

.featured-more__text span {
  font-size: 0.9rem;
  color: var(--silver-dim);
}

.featured-more__btn {
  gap: 0.6rem;
  min-height: 52px;
  padding-inline: 1.8rem;
  font-size: 1rem;
  box-shadow: 0 14px 34px -14px rgba(198, 169, 122, 0.6);
}

.featured-more__btn:hover,
.featured-more__btn:focus-visible {
  box-shadow: 0 18px 40px -12px rgba(198, 169, 122, 0.7);
}

/* Two rows of people: columns flow sideways, so the native horizontal scroll,
   snap and the pager all keep working - each step is one two-card column. */
.rail__track.is-2row {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: 1fr 1fr;
  grid-auto-columns: 18.5rem;
  gap: 0.8rem;
}

/* The pager arrows sit in the page gutters, centred on the cards. Hidden on
   touch widths, where the swipe is the control. */
.rail__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  translate: 0 -50%;
  border: 1px solid var(--hair-lit);
  border-radius: 50%;
  background: var(--panel);
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), opacity 0.35s var(--ease);
}

.rail__btn--prev {
  left: max(0.5rem, calc((100vw - var(--shell)) / 2 - 3.6rem));
}

.rail__btn--next {
  right: max(0.5rem, calc((100vw - var(--shell)) / 2 - 3.6rem));
}

.rail__btn:hover:not(:disabled),
.rail__btn:focus-visible:not(:disabled) {
  background: var(--gold);
  border-color: transparent;
  color: var(--on-gold);
}

.rail__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.rail__foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.rail__foot .featured__cta {
  justify-self: end;
}

.rail__status {
  font-size: 0.8rem;
  color: var(--silver-faint);
}

.rail__dots {
  display: inline-flex;
  gap: 0.4rem;
}

.rail__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.rail__dot:hover {
  background: rgba(255, 255, 255, 0.42);
}

.rail__dot.is-on {
  width: 1.4rem;
  background: var(--gold);
}

/* The profile tile, in the shape the reference site's matches use: a small
   photo on the left, the person's facts on the right in three short lines, and
   icon actions along the foot - message, save, view. Glass, like every surface
   here; the pointer tilt (landing.js) feeds --rx/--ry and the tile eases back
   when the pointer leaves. Two rows of these fit a screen. */
.pcard {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr);
  min-height: 8.6rem;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pcard:not(:hover) {
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.55s var(--expo);
}

.pcard:hover {
  border-color: rgba(198, 169, 122, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 60px -32px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(198, 169, 122, 0.18);
}

/* The photo fills its column, top to bottom; the count sits on it. */
.pcard__photo {
  position: relative;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 22% 30%, rgba(230, 205, 156, 0.22), transparent 70%),
    linear-gradient(180deg, var(--media-a), var(--media-b));
}

.pcard__photo img {
  position: relative;
  display: block;
  width: 92%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

.pcard__count {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: var(--panel-strong);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--silver);
}

.pcard__body {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.6rem 0.65rem 0.55rem;
}

.pcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 0;
}

.pcard__name {
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pcard__badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.45rem 0.12rem 0.35rem;
  border: 1px solid rgba(198, 169, 122, 0.4);
  border-radius: 999px;
  background: rgba(198, 169, 122, 0.12);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-lit);
}

.pcard__line {
  overflow: hidden;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--silver-dim);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pcard__line--key {
  font-weight: 600;
  color: var(--silver);
}

/* The foot: three icon actions, the message in gold. Pinned to the bottom so
   every tile's actions line up across the rail. */
.pcard__actions {
  display: flex;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.pcard__act {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 1px solid var(--hair-lit);
  border-radius: 50%;
  background: var(--glass);
  color: var(--silver);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease), transform 0.3s var(--expo);
}

.pcard__act:hover,
.pcard__act:focus-visible {
  color: var(--gold-lit);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.pcard__act--gold {
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-lit), var(--gold));
  border-color: rgba(230, 205, 156, 0.55);
}

.pcard__act--gold:hover,
.pcard__act--gold:focus-visible {
  color: var(--on-gold);
  box-shadow: 0 0 22px rgba(198, 169, 122, 0.35);
}

html[data-theme="light"] .pcard__act--gold {
  color: #fff;
  background: linear-gradient(180deg, #c9a45c, #a8813c);
}

.pcard__act[aria-pressed="true"] {
  color: #f2a5b6;
  border-color: rgba(242, 165, 182, 0.55);
  background: rgba(242, 165, 182, 0.12);
}

/* 7c. The promise strip ------------------------------------------------------ */

.promise {
  padding-block: clamp(0.5rem, 2vh, 1.5rem) clamp(2rem, 6vh, 4rem);
}

.promise__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem clamp(1.2rem, 3vw, 2.4rem);
  border-radius: 28px;
}

.promise__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.4rem;
}

.promise__list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.promise__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid rgba(198, 169, 122, 0.32);
  border-radius: 50%;
  background: rgba(198, 169, 122, 0.14);
  color: var(--gold-lit);
}

.promise__text {
  display: grid;
  gap: 0.1rem;
}

.promise__text b {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--white);
}

.promise__text span {
  font-size: 0.82rem;
  color: var(--silver-faint);
}

.promise__script {
  flex: none;
  padding-left: 2rem;
  border-left: 1px solid var(--hair);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.1;
  color: var(--gold-lit);
  text-align: center;
}

.promise__script em {
  display: block;
}

.promise__script svg {
  color: var(--gold);
  vertical-align: -0.15em;
}

/* 7e. Quick registration ------------------------------------------------------ */

.quick {
  padding-block: clamp(1rem, 3vh, 2rem) clamp(2rem, 5vh, 3rem);
}

.quick__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.quick__form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border-radius: 24px;
}

.quick__title {
  max-width: 24ch;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.quick__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1rem;
}

.quick__field {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.quick__field > span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-faint);
}

.quick__field small {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.quick__field input,
.quick__field select {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--hair-lit);
  border-radius: 12px;
  background: var(--glass);
  color: var(--white);
  font: 400 0.98rem/1.3 var(--body);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.quick__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6b0c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 12px 12px;
  cursor: pointer;
}

.quick__field select option {
  background: var(--shelf);
  color: var(--silver);
}

.quick__field input::placeholder {
  color: var(--silver-faint);
}

.quick__field input:focus-visible,
.quick__field select:focus-visible {
  outline: none;
  border-color: var(--gold);
  background: var(--glass-lit);
}

.quick__terms {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--silver-dim);
}

.quick__terms input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--gold);
}

.quick__terms a {
  color: var(--gold-lit);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.quick__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
}

.quick__alt {
  font-size: 0.9rem;
  color: var(--silver-dim);
}

.quick__alt a {
  color: var(--gold-lit);
}

.quick__why {
  display: grid;
  gap: 1.3rem;
}

.quick__why li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.quick__why .promise__text span {
  font-size: 0.86rem;
  line-height: 1.5;
}

/* 7f. Success stories ------------------------------------------------------------ */

.stories {
  padding-block: clamp(2rem, 6vh, 4rem) clamp(2rem, 6vh, 4rem);
}

.stories__head {
  max-width: 60ch;
  margin-bottom: 1.6rem;
}

.stories__title {
  margin-top: 0.35rem;
  font-size: var(--t-chapter);
}

.stories__lede {
  margin-top: 0.5rem;
  font-size: var(--t-small);
  color: var(--silver-dim);
}

/* Four compact tiles, the profile card's shape: the couple's picture on the
   left, names and a short quote on the right. Two abreast on a tablet, one on a
   phone. */
.stories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.story {
  position: relative;
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  min-height: 8.6rem;
  border-radius: 16px;
  overflow: hidden;
}

/* The couple, small: two prints leaning together on a tinted ground. */
.story__pic {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--story-sky), var(--story-ground));
}

.story__pic img {
  position: absolute;
  bottom: -4%;
  width: 62%;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.story__pic img:first-child {
  left: -4%;
  transform: rotate(-5deg);
}

.story__pic img:last-child {
  right: -4%;
  transform: rotate(5deg);
}

.story__pic--1 { --story-sky: #2a1f3d; --story-ground: #171226; }
.story__pic--2 { --story-sky: #1c2a3f; --story-ground: #111a2a; }
.story__pic--3 { --story-sky: #1f3330; --story-ground: #111f1d; }
.story__pic--4 { --story-sky: #3a2620; --story-ground: #221512; }

html[data-theme="light"] .story__pic--1 { --story-sky: #fbeef3; --story-ground: #f3d9e2; }
html[data-theme="light"] .story__pic--2 { --story-sky: #fbf4e6; --story-ground: #f0dfbf; }
html[data-theme="light"] .story__pic--3 { --story-sky: #eef8f2; --story-ground: #d4ecdd; }
html[data-theme="light"] .story__pic--4 { --story-sky: #fdf1ea; --story-ground: #f6d8c5; }

html[data-theme="light"] .story__pic img {
  filter: drop-shadow(0 8px 14px rgba(60, 40, 10, 0.3));
}

.story__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.6rem 0.7rem 0.6rem;
}

.story__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 0;
}

.story__names {
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.story__chip {
  flex: none;
  padding: 0.12rem 0.45rem;
  border: 1px solid rgba(198, 169, 122, 0.4);
  border-radius: 999px;
  background: rgba(198, 169, 122, 0.12);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-lit);
}

.story__meta {
  font-size: 0.72rem;
  color: var(--silver-faint);
}

/* The quote, clipped to three lines so the tiles stay level. */
.story__quote {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--silver);
}

.stories__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem 1.4rem;
  margin-top: 1.8rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--silver);
}

/* 7d. The opening, the rail and the strip at smaller widths ----------------- */

@media (max-width: 1100px) {
  .dock {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0.6rem;
    border-radius: 24px;
  }

  .dock__cell {
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--hair);
    border-radius: 16px;
  }

  .dock__cell--wide,
  .dock__go {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-block: 5.5rem 2.5rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  /* The globe behind the headline, faded, and the copy starts over its lower half. */
  .hero__stage {
    inset-block-start: 4.5rem;
    inset-inline-end: auto;
    inset-inline-start: 50%;
    inline-size: min(72vw, 320px);
    translate: -50% 0;
    opacity: 0.7;
  }

  /* The copy begins over the globe's bottom rim, not across its face. */
  .hero__copy {
    max-width: none;
    padding-top: min(72vw, 330px);
  }

  .hero__halo {
    inset: 4% 14%;
  }

  .quick__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .stories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero__copy {
    justify-items: center;
    text-align: center;
  }

  .hero__title {
    justify-items: center;
  }

  .hero__note {
    text-align: left;
  }

  .trust {
    justify-content: center;
  }

  .trust li {
    margin-right: 0.9rem;
    padding-right: 0.9rem;
    font-size: 0.82rem;
  }

  .featured__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .rail__btn {
    display: none;
  }

  .rail__foot {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .rail__foot .featured__cta {
    justify-self: center;
  }

  .rail__status {
    display: none;
  }

  .promise__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.4rem;
  }

  .promise__script {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: clamp(2.35rem, 11vw, 3.1rem);
  }

  .hero__lede {
    font-size: 1.02rem;
  }

  .dock__go {
    min-height: 48px;
  }

  .trust li {
    font-size: 0.78rem;
  }

  .rail__track.is-2row {
    grid-auto-columns: 16.25rem;
    gap: 0.6rem;
  }

  .rail__track > .pcard {
    flex-basis: 16.25rem;
  }

  .pcard {
    grid-template-columns: 5.6rem minmax(0, 1fr);
  }

  .promise__list {
    flex-direction: column;
    gap: 1rem;
  }

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

  .close__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

/* 8. Interlude ------------------------------------------------------------- */

.interlude {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding-block: clamp(4.5rem, 11vh, 8rem);
}

.interlude__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(740px, 90vw);
  min-height: 6rem;
}

.line {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-style: italic;
  line-height: 1.42;
  text-align: center;
  color: var(--silver);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--expo);
  pointer-events: none;
}

.line.is-active {
  opacity: 1;
  transform: none;
}

.dots {
  display: flex;
  gap: 0.1rem;
}

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

.dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hair-lit);
  transition: background 0.45s var(--ease), transform 0.45s var(--expo);
}

.dot[aria-current="true"]::before {
  background: var(--silver);
  transform: scale(1.5);
}

/* 9. Chapters -------------------------------------------------------------- */

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.2rem;
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(5rem, 13vh, 10rem);
  scroll-margin-top: 6rem;
}

.chapter__aside {
  position: relative;
}

.chapter__mark {
  display: grid;
  gap: 0.35rem;
}

.chapter__no {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--silver-faint);
  font-variant-numeric: tabular-nums;
}

.chapter__name {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.chapter__body {
  display: grid;
  gap: clamp(1.5rem, 2.8vw, 2.4rem);
  min-width: 0;
}

.chapter__title {
  font-size: var(--t-chapter);
  max-width: 23ch;
}

.chapter__lede {
  max-width: var(--measure);
  color: var(--silver-dim);
}

@media (min-width: 900px) {
  .chapter {
    grid-template-columns: 12rem minmax(0, 1fr);
    column-gap: clamp(2.5rem, 5vw, 5.5rem);
  }

  .chapter__aside::before {
    content: "";
    position: absolute;
    inset-block: -1rem 0;
    right: 0;
    width: 1px;
    background: linear-gradient(
      180deg,
      transparent,
      var(--hair) 12%,
      var(--hair) 88%,
      transparent
    );
  }

  .chapter__mark {
    position: sticky;
    top: 42vh;
    padding-right: 1.6rem;
    text-align: right;
  }

  .chapter__mark::after {
    content: "";
    position: absolute;
    top: 0.5em;
    right: -1px;
    width: 0.7rem;
    height: 1px;
    background: var(--hair-lit);
    transform-origin: right;
    transition: transform 0.8s var(--expo);
  }

  .js .chapter:not(.is-in) .chapter__mark::after {
    transform: scaleX(0);
  }
}

/* Chapter 1 — truths set on hairlines, not in cards */
.truths {
  display: grid;
}

.truth {
  display: grid;
  gap: 0.5rem;
  padding-block: clamp(1.2rem, 2.4vw, 1.9rem);
  border-top: 1px solid var(--hair);
}

.truth:last-child {
  border-bottom: 1px solid var(--hair);
}

.truth__title {
  font-family: var(--display);
  font-size: 1.32rem;
  color: var(--white);
}

.truth__text {
  max-width: 56ch;
  font-size: var(--t-small);
  color: var(--silver-faint);
}

@media (min-width: 760px) {
  .truth {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 1.8rem;
    align-items: baseline;
  }
}

/* Illustration — sample profile cards, sitting between Chapter I and Chapter
   II. Not a chapter itself: no number, no aside rail, same shell/label
   language as the rest of the page. */
.lens {
  display: grid;
  gap: 1.3rem;
}

.lens__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lens__tab {
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  font-size: var(--t-small);
  color: var(--silver-faint);
  border: 1px solid var(--hair);
  border-radius: 999px;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}

.lens__tab:hover {
  color: var(--white);
}

.lens__tab[aria-selected="true"] {
  color: var(--white);
  border-color: var(--hair-lit);
  background: var(--glass-lit);
}

.lens__panel {
  padding: clamp(1.3rem, 3vw, 2.1rem);
  border-radius: 20px;
}

.lens__panel[hidden] {
  display: none;
}

.lens__who {
  max-width: 54ch;
  margin-bottom: 1.2rem;
  font-size: var(--t-small);
  color: var(--silver-faint);
}

.fields {
  display: grid;
}

.field {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.72rem;
  border-top: 1px solid var(--hair);
  font-size: var(--t-small);
}

.field__key {
  color: var(--silver-faint);
}

.field__val {
  color: var(--silver);
}

.field--sealed .field__val {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--silver-faint);
}

.field--sealed .field__val::before {
  content: "";
  width: 2.6rem;
  height: 0.6rem;
  border-radius: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--hair-lit) 0 3px,
    transparent 3px 7px
  );
}

@media (max-width: 560px) {
  .field {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
}

/* Chapter 3 — verification as a descent, one step at a time */
.ladder {
  display: grid;
  counter-reset: rung;
}

.rung {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding: 0 0 clamp(1.7rem, 3.4vw, 2.6rem) 2.6rem;
  counter-increment: rung;
}

.rung::before {
  content: counter(rung, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--silver-faint);
  font-variant-numeric: tabular-nums;
}

.rung::after {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 2em;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--hair), transparent);
}

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

.rung:last-child::after {
  display: none;
}

.rung__title {
  font-family: var(--display);
  font-size: 1.28rem;
  color: var(--white);
}

.rung__text {
  max-width: 58ch;
  font-size: var(--t-small);
  color: var(--silver-faint);
}

/* Gold, use two of four: an honest limit stated plainly. */
.honest {
  display: grid;
  gap: 0.4rem;
  max-width: var(--measure);
  padding: 1.1rem 1.4rem;
  border-left: 1px solid var(--gold);
  background: linear-gradient(90deg, rgba(198, 169, 122, 0.065), transparent 72%);
  font-size: var(--t-small);
  color: var(--silver-dim);
}

.honest strong {
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-lit);
}

/* Chapter 4 — the consent chain. Gold, use three of four. */
.chain {
  display: grid;
  gap: 1.5rem;
}

.chain__track {
  position: relative;
  display: none;
  height: 1px;
  background: var(--hair);
}

.chain__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), rgba(150, 190, 240, 0.5));
  transform-origin: left;
  transition: transform 2s var(--expo);
}

.js .chain:not(.is-in) .chain__fill {
  transform: scaleX(0);
}

.chain__stages {
  display: grid;
  gap: 1rem;
}

.chain__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
}

.chain__dot {
  width: 11px;
  height: 11px;
  margin-top: 0.42rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--gold);
  box-shadow: 0 0 14px rgba(198, 169, 122, 0.45);
  transition: background 0.7s var(--ease), box-shadow 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 190ms);
}

.js .chain:not(.is-in) .chain__dot {
  background: var(--space);
  box-shadow: none;
}

.chain__name {
  display: block;
  font-family: var(--display);
  font-size: 1.08rem;
  color: var(--white);
}

.chain__note {
  font-size: var(--t-small);
  color: var(--silver-faint);
}

@media (min-width: 860px) {
  .chain__track {
    display: block;
  }

  .chain__stages {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .chain__stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }

  .chain__dot {
    margin-top: -1.6rem;
  }
}

/* Chapter 5 — a conversation, shown rather than described */
.talk {
  display: grid;
  max-width: 44rem;
  border-top: 1px solid var(--hair);
}

.turn {
  display: grid;
  gap: 0.3rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--hair);
}

.turn__who {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-faint);
}

.turn__said {
  font-family: var(--display);
  font-size: 1.18rem;
  color: var(--silver);
}

.turn--held .turn__who {
  color: var(--gold);
}

.turn--held .turn__said {
  font-family: var(--body);
  font-size: var(--t-small);
  color: var(--silver-faint);
}

.turn--held .turn__said b {
  font-weight: 400;
  color: var(--silver);
}

/* Chapter 6 — security as plain statements */
.terms {
  display: grid;
  max-width: 52rem;
}

.term {
  display: grid;
  gap: 0.4rem;
  padding-block: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--hair);
}

.term:last-of-type {
  border-bottom: 1px solid var(--hair);
}

.term dt {
  font-family: var(--display);
  font-size: 1.16rem;
  color: var(--white);
}

.term dd {
  max-width: 60ch;
  font-size: var(--t-small);
  color: var(--silver-faint);
}

@media (min-width: 760px) {
  .term {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 1.8rem;
    align-items: baseline;
  }
}

/* Membership ---------------------------------------------------------------- */

.plans {
  padding-block: clamp(5rem, 13vh, 10rem);
  scroll-margin-top: 6rem;
}

.plans__head {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}

.plans__title {
  font-size: var(--t-chapter);
}

.plans__lede {
  max-width: 52ch;
  color: var(--silver-dim);
}

.plans__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: start;
}

.plan {
  position: relative;
  display: grid;
  gap: 1.3rem;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  border-radius: 22px;
  transition: transform 0.7s var(--expo), box-shadow 0.7s var(--ease),
    border-color 0.7s var(--ease);
  will-change: transform;
}

@media (hover: hover) {
  .plan:hover {
    transform: translate3d(0, -8px, 0);
    border-color: var(--hair-lit);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 44px 90px -46px rgba(0, 0, 0, 0.98);
  }
}

.plan__head {
  display: grid;
  gap: 0.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--hair);
}

.plan__name {
  font-family: var(--display);
  font-size: 1.42rem;
  color: var(--white);
}

.plan__price {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--silver);
}

.plan__price small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--body);
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-faint);
}

.plan__list {
  display: grid;
  gap: 0.68rem;
  font-size: var(--t-small);
  color: var(--silver-dim);
}

.plan__list li {
  display: grid;
  grid-template-columns: 0.95rem minmax(0, 1fr);
  gap: 0.65rem;
}

.plan__list li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--hair-lit);
}

.plan__act {
  justify-self: start;
  margin-top: 0.3rem;
}

/* Gold, use four of four: the recommended membership. */
.plan--feature {
  border-color: rgba(198, 169, 122, 0.4);
  background: linear-gradient(180deg, rgba(198, 169, 122, 0.09), var(--glass) 60%);
  animation: plan-glow 7s var(--ease) infinite alternate;
}

.plan--feature .plan__price {
  color: var(--gold-lit);
}

.plan--feature .plan__list li::before {
  background: var(--gold);
}

@keyframes plan-glow {
  from {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 0 0 rgba(198, 169, 122, 0);
  }
  to {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 46px -6px rgba(198, 169, 122, 0.26);
  }
}

.plan__ribbon {
  position: absolute;
  top: -0.72rem;
  left: clamp(1.6rem, 2.6vw, 2.2rem);
  padding: 0.3rem 0.85rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #14100a;
  background: linear-gradient(100deg, var(--gold-lit), var(--gold));
  border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgba(198, 169, 122, 0.7);
}

.plan--lux {
  border-color: rgba(223, 229, 241, 0.16);
  background: linear-gradient(180deg, rgba(223, 229, 241, 0.05), var(--glass) 60%);
}

.plans__trust {
  max-width: 62ch;
  margin: clamp(2.4rem, 5vw, 3.6rem) auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hair);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  text-align: center;
  color: var(--silver);
}

.plans__fine {
  max-width: 56ch;
  margin: 1rem auto 0;
  font-size: var(--t-label);
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--silver-faint);
}

/* Chapter 7 — arrival */
.arrival {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding-block: clamp(8rem, 24vh, 16rem);
  text-align: center;
  scroll-margin-top: 6rem;
}

.arrival__title {
  font-size: clamp(2.1rem, 4.9vw, 4.2rem);
  max-width: 24ch;
}

.arrival__lede {
  max-width: 46ch;
  color: var(--silver-dim);
}

.arrival__note {
  max-width: 52ch;
  font-size: var(--t-small);
  color: var(--silver-faint);
}

/* 10. Close ---------------------------------------------------------------- */

.close {
  padding-block: clamp(3rem, 7vh, 5rem) 2.4rem;
  border-top: 1px solid var(--hair);
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.close__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
  padding-bottom: 2.4rem;
}

.close__col--brand {
  display: grid;
  justify-items: start;
  gap: 0.8rem;
  max-width: 34ch;
}

.close__tag {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--white);
}

.close__tag em {
  font-style: italic;
  color: var(--gold-lit);
}

.close__blurb {
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--silver-dim);
}

.close__cta {
  margin-top: 0.3rem;
}

.close__title {
  margin-bottom: 1rem;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.close__col ul {
  display: grid;
  gap: 0.62rem;
  font-size: var(--t-small);
}

.close__col a {
  color: var(--silver-dim);
  transition: color 0.35s var(--ease);
}

.close__col a:hover,
.close__col a:focus-visible {
  color: var(--gold-lit);
}

.pills--close {
  justify-content: center;
  max-width: 70rem;
  margin: 0 auto 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--hair);
}

.close__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--hair);
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  color: var(--silver-faint);
}

/* 10b. Footer and stories at smaller widths (after the footer rules they override) -- */
@media (max-width: 900px) {
  .close__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
  }

  .close__col--brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .close__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .stories__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }
}

/* 11. Small screens -------------------------------------------------------- */

@media (max-width: 600px) {


  .pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0.9rem;
    width: 100%;
    justify-items: start;
    text-align: left;
  }

  .pill {
    align-items: start;
    padding: 0;
    font-size: 0.73rem;
    line-height: 1.3;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }

  .pill::before {
    content: none;
  }

  .pill svg {
    margin-top: 0.16em;
  }


}

/* 12. Motion and print preferences ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal],
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .js .chain:not(.is-in) .chain__fill {
    transform: scaleX(1);
  }

  .js .chain:not(.is-in) .chain__dot {
    background: var(--gold);
    box-shadow: 0 0 14px rgba(198, 169, 122, 0.45);
  }

  .js .chapter:not(.is-in) .chapter__mark::after {
    transform: scaleX(1);
  }

  .veil {
    opacity: 0.8;
  }
}

@media print {
  .sky,
  .world,
  .veil,
  .grain,
  .nav,
  .rail__btn {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
