/* ==========================================================================
   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);

  /* Script-owned: 0 at the top of the document, 1 at the bottom */
  --sp: 0;
}

/* 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: 0.045;
  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: rgba(5, 8, 16, 0.72);
  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__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__toggle,
  .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: #0a0d16;
  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 --------------------------------------------------------------- */

.opening {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 6rem clamp(9rem, 24vh, 15rem);
  text-align: center;
  overflow: hidden;
}

.opening__inner {
  position: relative;
  /* Above .portrait: an absolutely positioned layer would otherwise paint over
     in-flow text even at z-index 0. */
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(1.05rem, 2vh, 1.8rem);
  width: var(--shell);
}

/* Answers "what is this?" before the headline has been read. */
.statement {
  max-width: 30ch;
  font-family: var(--display);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--silver-dim);
}

.creds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.55rem;
  max-width: 58ch;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-faint);
}

.creds i {
  font-style: normal;
  color: var(--gold);
  opacity: 0.55;
}

.opening__title {
  font-size: var(--t-hero);
  max-width: 21ch;
}

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

.opening__lede {
  max-width: 54ch;
  font-size: var(--t-sub);
  line-height: 1.56;
  color: var(--silver-dim);
}

.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);
  }
}

.opening__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

/* ---------------------------------------------------------------------------
   The couple portrait: a photograph, dissolved into the sky.

   The asset is an alpha cutout — the sunset background is already gone before
   the browser sees it. A mask can only soften an edge, it cannot remove a
   background, so pointing this at the untouched photograph would put a warm
   rectangle on a midnight page. See README.

   Three layers do the merging:
     1. `mask-image`   feathers the frame edges, hardest at the bottom and left
                       where the photo is cropped through the subjects.
     2. `filter`       cools and darkens the sunset grade into the page palette
                       while keeping the faces legible.
     3. `__wash`       a violet veil over the top, so the warm skin tones sit in
                       the same air as the starfield rather than on top of it.
   --------------------------------------------------------------------------- */
.portrait {
  position: absolute;
  top: clamp(4.5rem, 11vh, 8.5rem);
  left: clamp(-1rem, 1.2vw, 2.5rem);
  z-index: 0;
  width: clamp(215px, 24vw, 380px);
  aspect-ratio: 780 / 666;
  pointer-events: none;
  /* "Only at the tip of the page": gone within a fifth of a screen of scroll. */
  opacity: calc(1 - var(--sp) * 5);
  will-change: opacity;
}

/* One radial on the parent does both jobs: it dissolves the corners AND fades
   the bottom, where the frame crops through their bodies. Sizing matters — the
   ellipse must be small enough that the box corners fall PAST the transparent
   stop. At 118% they land at only ~0.72 of the gradient radius, which leaves
   them ~44% opaque and the whole thing reads as a pale rectangle. */
.portrait {
  -webkit-mask-image: radial-gradient(
    56% 62% at 50% 34%,
    #000 52%,
    rgba(0, 0, 0, 0.5) 78%,
    transparent 96%
  );
  mask-image: radial-gradient(
    56% 62% at 50% 34%,
    #000 52%,
    rgba(0, 0, 0, 0.5) 78%,
    transparent 96%
  );
}

.portrait__img,
.portrait__wash {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* The violet veil is masked by the cutout's own alpha, so it tints the couple
   and never paints a tinted box over empty sky. */
.portrait__wash {
  -webkit-mask-image: url("/img/couple-hero.png");
  mask-image: url("/img/couple-hero.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}

.portrait__img {
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(0.62) contrast(1.02) brightness(0.74) hue-rotate(-6deg);
  opacity: 0.92;
}

.portrait__wash {
  background: linear-gradient(
    202deg,
    rgba(74, 66, 122, 0.5) 0%,
    rgba(20, 26, 56, 0.34) 46%,
    rgba(198, 169, 122, 0.14) 100%
  );
}

/* Below the point where the pair would crowd the centred type, it goes. The
   opening's vertical budget is too tight to shuffle it elsewhere. */
@media (max-width: 1080px) {
  .portrait {
    display: none;
  }
}

/* The horizon: a dark ridge with two figures under the sky. Landscape, not
   subject — the universe stays larger than the people. */
.horizon {
  position: absolute;
  inset: auto 0 0;
  height: clamp(120px, 21vh, 240px);
  pointer-events: none;
  will-change: transform;
}

.horizon__glow {
  position: absolute;
  inset: auto 0 0;
  height: 200%;
  background: radial-gradient(
    66% 100% at 70% 100%,
    rgba(198, 169, 122, 0.19),
    rgba(64, 58, 104, 0.11) 44%,
    transparent 76%
  );
}

.horizon__land,
.horizon__pair {
  position: absolute;
}

.horizon__land {
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Sits on the plateau the land path holds flat between 55% and 74% width, set
   off-centre so the figures never crowd the centred type. */
.horizon__pair {
  left: 70%;
  bottom: 48%;
  width: clamp(165px, 17vw, 268px);
  height: auto;
  translate: -50% 0;
}

/* The couple are alive, barely. Transform and opacity only, so every one of
   these stays on the compositor. */
.pair__breathe {
  animation: breath 8.5s ease-in-out infinite alternate;
  transform-origin: 105px 131px;
  will-change: transform;
}

/* The dupatta sways from where it is pinned at her shoulder, so the train
   moves and the part over her head stays put. */
.pair__gown {
  animation: hem 11s ease-in-out infinite alternate;
  transform-origin: 116px 52px;
  will-change: transform;
}

.pair__hair {
  animation: strand 7.5s ease-in-out infinite alternate;
  transform-origin: 114px 50px;
}

.pair__rim {
  opacity: 0.3;
  animation: catchlight 13s ease-in-out infinite alternate;
  transition: opacity 2.4s var(--ease), stroke 2.4s var(--ease);
}

.pair__seat {
  opacity: 0.55;
  transition: opacity 2.4s var(--ease);
}

@keyframes breath {
  from {
    transform: scaleY(1) translateY(0);
  }
  to {
    transform: scaleY(1.008) translateY(-0.6px);
  }
}

@keyframes hem {
  from {
    transform: rotate(-0.55deg);
  }
  to {
    transform: rotate(0.7deg);
  }
}

@keyframes strand {
  from {
    transform: rotate(-1deg);
  }
  to {
    transform: rotate(1.2deg);
  }
}

@keyframes catchlight {
  from {
    opacity: 0.24;
  }
  to {
    opacity: 0.42;
  }
}

/* When the two lights meet, the light reaches the horizon too. */
.horizon.is-lit .pair__rim {
  opacity: 0.72;
  animation: none;
}

.horizon.is-lit .pair__seat {
  opacity: 1;
}

.horizon.is-lit .horizon__glow {
  opacity: 1.35;
}

.horizon__glow {
  transition: opacity 2.8s var(--ease);
}

.cue {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  font-size: var(--t-label);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--silver-faint);
  opacity: calc(1 - var(--sp) * 14);
}

.cue span {
  width: 1px;
  height: 3rem;
  background: linear-gradient(180deg, var(--hair-lit), transparent);
  transform-origin: top;
  animation: sink 3.4s var(--ease) infinite;
}

@keyframes sink {
  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.35;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* 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;
  }
}

/* Chapter 2 — the disclosure lens */
.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: rgba(3, 5, 11, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pills--close {
  justify-content: center;
  max-width: 70rem;
  margin-inline: auto;
  margin-bottom: 2.2rem;
}

.close__creed {
  max-width: 46ch;
  margin: 0 auto clamp(2.6rem, 6vw, 4rem);
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.6;
  text-align: center;
  color: var(--silver);
}

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

.close__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.2rem;
  padding-bottom: 2.4rem;
  border-top: 1px solid var(--hair);
  padding-top: 2.6rem;
}

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

.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 {
  color: var(--white);
}

.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);
}

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

/* The opening must hold the label, headline, promise, six assurances, two
   actions and a horizon inside one phone screen. */
@media (max-width: 600px) {
  .opening {
    padding-block: 5rem clamp(7.5rem, 19vh, 9.5rem);
  }

  .opening__inner {
    gap: 0.95rem;
  }

  .opening__lede {
    font-size: 1.01rem;
    line-height: 1.5;
  }

  .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;
  }

  .horizon {
    height: clamp(104px, 15vh, 140px);
  }

  .cue {
    bottom: 1rem;
  }
}

/* 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,
  .veil,
  .grain,
  .nav,
  .cue,
  .horizon {
    display: none;
  }

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