/* ==========================================================================
   The Line — the novella. A score of leavings and returns, one sheet of
   paper on a lamp-lit table, and the people who carried it.
   ========================================================================== */

.line {
  /* the lamp: the only warm room on the site */
  --lamp: #110e0b;
  --lamp-2: #1a140e;
  --w-salt: #eee6d8;
  --w-mist: #bcb09b;
  --w-haze: #978a73;
  --w-rule: rgba(238, 222, 196, 0.12);

  /* the three threads */
  --th-object: #e4d6b8;
  --th-atoll: #c17f52;
  --th-sky: #8fc3c6;
}

/* ---------- the notation glyph ---------- */
.glyph { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.glyph .glyph-fill { fill: currentColor; stroke: none; }

/* ---------- head: the score ---------- */
.ln-head {
  padding-top: calc(var(--head) + clamp(3.5rem, 8vw, 7rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(180deg, var(--abyss) 0%, var(--night) 100%);
  overflow: hidden;
}
.ln-kicker { color: var(--signal); }
.ln-title { font-size: var(--t-mega); font-weight: 200; line-height: 0.82; margin-top: 1.25rem; }
.ln-deck { color: var(--mist); max-width: 34rem; margin-top: 1.6rem; }

.score {
  --g: clamp(2.25rem, 5.4vw, 5rem);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
}
/* the waterline the score is written on: above it the summit, below it the sea */
.score::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--g) / 2);
  height: calc(var(--g) / 2 + 2.5rem);
  background: linear-gradient(180deg, rgba(47, 116, 128, 0.36), rgba(47, 116, 128, 0));
  border-top: 1px solid rgba(143, 195, 198, 0.55);
  pointer-events: none;
}
.score-clef {
  display: grid;
  grid-template-rows: calc(var(--g) / 2) calc(var(--g) / 2);
  font-family: var(--f-mono);
  font-size: var(--t-xxs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
.score-clef span:first-child { align-self: end; padding-bottom: 0.55rem; color: var(--haze); }
.score-clef span:last-child { align-self: start; padding-top: 0.55rem; color: var(--spray); }
.notation { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.notation a {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.35rem;
  padding-bottom: 0.5rem;
  text-decoration: none;
  color: var(--salt);
  text-align: center;
}
.notation .glyph { width: var(--g); height: var(--g); margin-bottom: 0.8rem; stroke-width: 1.35; transition: color 0.25s, transform 0.35s var(--ease); }
.notation a:hover .glyph, .notation a:focus-visible .glyph { color: var(--signal); }
.notation-n { font-family: var(--f-display); font-weight: 300; font-size: var(--t-m); line-height: 1; }
.notation-m { font-family: var(--f-mono); font-size: var(--t-xxs); letter-spacing: 0.08em; color: var(--mist); line-height: 1.35; max-width: 9rem; text-wrap: balance; }
.notation-key { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; color: var(--mist); font-style: italic; }
.notation-key .label { color: var(--haze); font-style: normal; }
@media (max-width: 44rem) {
  .score { grid-template-columns: minmax(0, 1fr); }
  .score-clef, .notation-m { display: none; }
  .notation .glyph { margin-bottom: 0.6rem; }
}

/* ---------- the family that knows ---------- */
.knows { background: var(--night); padding-block: clamp(5rem, 10vw, 9rem); }
.knows-k { color: var(--haze); }
.knows-title { font-size: var(--t-xl); margin-top: 1rem; }
.mirror {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 2rem clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  align-items: stretch;
}
.mirror-side { padding-block: 0.25rem; }
.mirror-side:last-child { text-align: right; }
.mirror-when { color: var(--signal); }
.mirror-big { font-family: var(--f-display); font-weight: 300; font-size: var(--t-l); line-height: 1.02; margin-top: 1.1rem; text-wrap: balance; }
.mirror-why { margin-top: 1rem; color: var(--mist); font-style: italic; }
.mirror-axis {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(7rem, 12vw, 10rem);
}
.mirror-axis::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(180deg, transparent, rgba(143, 195, 198, 0.45) 20%, rgba(143, 195, 198, 0.45) 80%, transparent); }
.mirror-axis span {
  position: relative;
  background: var(--night);
  padding: 0.8rem 0;
  font-family: var(--f-mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
  color: var(--spray);
}
.knows-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: 3rem clamp(3rem, 7vw, 8rem);
  align-items: center;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(143, 195, 198, 0.12);
}
.knows-prose { font-size: var(--t-m); line-height: 1.45; color: var(--mist); max-width: 40rem; }
.knows-turn { color: var(--salt); font-style: italic; }
/* the verso of a book whose pages do not exist yet: an outline of a page */
.verso {
  aspect-ratio: 5 / 7.4;
  border: 1px solid rgba(143, 195, 198, 0.3);
  box-shadow: 10px 10px 0 -1px var(--night), 10px 10px 0 0 rgba(143, 195, 198, 0.14);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
}
.verso-title { font-family: var(--f-display); font-weight: 300; font-size: 2.25rem; line-height: 1; }
.verso-sub { font-style: italic; color: var(--mist); font-size: var(--t-s); }
.verso-dl { display: grid; gap: 0.85rem; margin-top: 1.4rem; }
.verso-dl dt { font-family: var(--f-mono); font-size: var(--t-xxs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--haze); }
.verso-dl dd { font-size: 0.875rem; line-height: 1.45; color: var(--salt); margin-top: 0.15rem; }
.verso-status { margin-top: 1.4rem; font-size: 0.8125rem; line-height: 1.45; color: var(--spray); font-style: italic; max-width: 15rem; }
.verso-status .label { display: block; font-style: normal; font-size: var(--t-xxs); color: var(--haze); margin-bottom: 0.2rem; }
@media (max-width: 52rem) {
  .mirror { grid-template-columns: minmax(0, 1fr); }
  .mirror-side:last-child { text-align: left; }
  .mirror-axis { width: auto; justify-items: start; }
  .mirror-axis::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; background: linear-gradient(90deg, rgba(143, 195, 198, 0.45), transparent); }
  .mirror-axis span { padding: 0 1rem 0 0; text-align: left; }
  .knows-grid { grid-template-columns: minmax(0, 1fr); }
  .verso { max-width: 22rem; width: 100%; justify-self: center; }
}

/* ---------- the object ---------- */
.object {
  position: relative;
  background: linear-gradient(180deg, var(--lamp) 0%, var(--lamp-2) 55%, var(--lamp) 100%);
  color: var(--w-salt);
  padding-block: clamp(5rem, 10vw, 9rem) clamp(4.5rem, 9vw, 8rem);
}
.object::before {
  /* the edge of the lamplight at the top of the room */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 169, 59, 0.3), transparent);
}
.object-k { color: var(--signal); }
.object-title { font-size: var(--t-xl); margin-top: 1rem; max-width: 17ch; }
.object-lede { margin-top: 1.4rem; color: var(--w-mist); max-width: 32rem; }
.object-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 clamp(3rem, 7vw, 8rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* the stage: the page on the table, held while the sections pass */
.object-stage {
  position: sticky;
  top: calc(var(--head) + 1.5rem);
  align-self: start;
  height: calc(100vh - var(--head) - 3rem);
  height: calc(100svh - var(--head) - 3rem);
  max-height: 58rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.5rem;
  padding-block: 1.5rem 1rem;
}
.object-page { position: relative; min-height: 0; }
.object-page::before {
  content: "";
  position: absolute;
  inset: -8% -12%;
  background: radial-gradient(closest-side, rgba(255, 196, 110, 0.16), rgba(255, 196, 110, 0.05) 60%, transparent);
  pointer-events: none;
}
.object-page .pg { position: absolute; inset: 0; margin: auto; height: 100%; width: auto; max-width: 100%; max-height: 44rem; }
.object-cap { display: grid; gap: 0.45rem; justify-items: center; text-align: center; min-height: 4.9rem; }
.object-cap .label { color: var(--signal); }
.object-cap-text { font-style: italic; color: var(--w-mist); font-size: var(--t-s); max-width: 26rem; text-wrap: balance; }
.stage-ticks { display: flex; gap: 6px; margin-bottom: 0.35rem; }
.stage-ticks i { width: 18px; height: 2px; background: rgba(238, 222, 196, 0.2); transition: background-color 0.4s; }
.stage-ticks i[data-on] { background: var(--signal); }

/* the seven sections */
/* room below the last section, so it reaches the middle of the screen while the page is still held */
.object-grid > .sections { display: grid; padding-bottom: 14vh; }
.sec {
  min-height: 82vh;
  padding-block: 14vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  border-top: 1px solid var(--w-rule);
  scroll-margin-top: var(--head);
  transition: opacity 0.6s var(--ease);
}
.sec:first-child { border-top: 0; }
.sec-head { display: flex; align-items: center; gap: 1rem; }
.sec .glyph { width: 2.6rem; height: 2.6rem; flex: none; color: var(--signal); stroke-width: 1.6; }
.sec-meta { color: var(--w-haze); }
.sec-move { font-size: var(--t-xl); font-weight: 250; color: var(--w-salt); }
.sec-text { max-width: 34rem; color: var(--w-salt); text-wrap: pretty; }
.sec-page {
  display: grid;
  gap: 0.35rem;
  max-width: 30rem;
  margin-top: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(242, 169, 59, 0.28);
  font-style: italic;
  color: var(--w-mist);
}
.sec-page .label { font-style: normal; color: var(--signal-dim); font-size: var(--t-xxs); }
.sec-inline { display: none; }
@media (min-width: 60.01rem) {
  .js .sec:not(.is-active) { opacity: 0.3; }
}
@media (max-width: 60rem) {
  .object-grid { grid-template-columns: minmax(0, 1fr); }
  .object-stage { display: none; }
  .sec { min-height: 0; padding-block: 3.5rem; }
  .sec-inline {
    display: block;
    position: relative;
    width: min(72%, 18rem);
    margin: 1.25rem auto 0.5rem;
  }
  .sec-inline::before {
    content: "";
    position: absolute;
    inset: -10% -18%;
    background: radial-gradient(closest-side, rgba(255, 196, 110, 0.14), transparent);
  }
  .sec-inline .pg { position: relative; width: 100%; height: auto; }
}

.object-end { margin-top: clamp(4rem, 8vw, 7rem); }
.object-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 1.1rem;
  font-family: var(--f-display);
  font-weight: 250;
  font-size: var(--t-xl);
  line-height: 1;
}
.object-chain span:last-child { color: #d7a98a; }
.object-chain .arr { font-size: 0.4em; color: var(--signal); transform: translateY(-0.5em); }
.object-end-text { margin-top: 1.75rem; max-width: 36rem; color: var(--w-mist); font-style: italic; font-size: var(--t-m); line-height: 1.4; }

/* ---------- the page itself, in seven states ---------- */
.pg { overflow: visible; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.55)); transition: transform 1s var(--ease), filter 1s; }
.pg * { transition: opacity 0.9s var(--ease), fill 0.9s var(--ease), stroke 0.9s var(--ease); }
.pg-sheet { fill: #f5f4ee; }
.pg-sheet--torn, .pg-grain--torn { opacity: 0; }
.pg-grain { opacity: 0.25; }
.pg-fold { fill: none; stroke: #6d5a40; stroke-width: 0.8; opacity: 0; }
.pg-stain { opacity: 0; }
.pg-h { font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.08em; fill: #1c2328; }
.pg-h--big { font-size: 17px; font-weight: 600; letter-spacing: 0.02em; }
.pg-rule { stroke: #1c2328; stroke-width: 1.2; }
.pg-bar { fill: #5b6468; opacity: 0.55; }
.pg-field { font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.02em; fill: #1c2328; }
.pg-status { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; fill: #1c2328; }
.pg-circle { fill: none; stroke: #9e2e23; stroke-width: 2.2; stroke-linecap: round; opacity: 0; }
.pg-lamp { opacity: 0; mix-blend-mode: soft-light; }
.pg-tag { opacity: 0; }
.pg-string { fill: none; stroke: #8c7a5c; stroke-width: 1; }
.pg-tag-card { fill: #efe6cf; stroke: #a08c68; stroke-width: 0.8; }
.pg-tag-hole { fill: #7b6a4c; }
.pg-tag-t { font-family: var(--f-mono); font-size: 8.5px; font-weight: 600; letter-spacing: 0.1em; fill: #3a2c18; }
.pg-skin { opacity: 0; }
.pg-skin-line { fill: none; stroke: #6e3f25; stroke-width: 1.4; stroke-opacity: 0.22; }
.pg-map { opacity: 0; }
.pg-map-line { fill: none; stroke: #2a1a0d; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease), stroke 0.9s var(--ease); }
.pg-map-line--thin { stroke-width: 1.3; }
.pg-map-star { fill: #2a1a0d; }
.pg-map-fix { fill: none; stroke: #2a1a0d; stroke-width: 1.8; }
.pg-map-dot { fill: #2a1a0d; }

/* II: proof. Folded, carried, the status circled by someone who understood it */
.pg.s-2 { transform: rotate(-1.2deg); }
.s-2 .pg-sheet { fill: #efe9d9; }
.s-2 .pg-grain { opacity: 0.45; }
.s-2 .pg-fold { opacity: 0.45; }
.s-2 .pg-circle { opacity: 1; }

/* III: family paper, half legible */
.pg.s-3 { transform: rotate(1.4deg); }
.s-3 .pg-sheet { fill: #e5d6b1; }
.s-3 .pg-grain { opacity: 0.75; }
.s-3 .pg-fold { opacity: 0.7; }
.s-3 .pg-stain--a { opacity: 1; }
.s-3 .pg-text > * { opacity: 0.5; }
.s-3 .pg-text > .pg-bar { opacity: 0.3; }
.s-3 .pg-text > .pg-bar--b { opacity: 0; }
.s-3 .pg-circle { opacity: 0.55; }

/* IV: a relic nobody can read */
.pg.s-4 { transform: rotate(-2.4deg); }
.s-4 .pg-sheet--whole, .s-4 .pg-grain--whole { opacity: 0; }
.s-4 .pg-sheet--torn { opacity: 1; fill: #c9ae84; }
.s-4 .pg-grain--torn { opacity: 1; }
.s-4 .pg-fold { opacity: 0.85; }
.s-4 .pg-stain { opacity: 1; }
.s-4 .pg-text > * { opacity: 0.13; fill: #3b2a18; }
.s-4 .pg-text > .pg-bar--b { opacity: 0; }
.s-4 .pg-circle { opacity: 0.22; }

/* V: identified, and read aloud by the lamp */
.pg.s-5 { transform: rotate(-1deg); }
.s-5 .pg-sheet--whole, .s-5 .pg-grain--whole { opacity: 0; }
.s-5 .pg-sheet--torn { opacity: 1; fill: #d2b688; }
.s-5 .pg-grain--torn { opacity: 1; }
.s-5 .pg-fold { opacity: 0.85; }
.s-5 .pg-stain { opacity: 1; }
.s-5 .pg-text > * { opacity: 0.16; fill: #3b2a18; }
.s-5 .pg-text > .pg-bar--b { opacity: 0; }
.s-5 .pg-text > .pg-field, .s-5 .pg-text > .pg-h--big { opacity: 0.85; }
.s-5 .pg-text > .pg-status { opacity: 0.55; }
.s-5 .pg-circle { opacity: 0.35; }
.s-5 .pg-lamp, .s-5 .pg-tag { opacity: 1; }

/* VI: it becomes the map */
.pg.s-6 { transform: rotate(0.8deg); }
.s-6 .pg-sheet--whole, .s-6 .pg-grain--whole { opacity: 0; }
.s-6 .pg-sheet--torn { opacity: 1; fill: #c3a578; }
.s-6 .pg-grain--torn { opacity: 1; }
.s-6 .pg-fold { opacity: 0.85; }
.s-6 .pg-stain { opacity: 1; }
.s-6 .pg-text > * { opacity: 0.08; fill: #3b2a18; }
.s-6 .pg-text > .pg-bar--b { opacity: 0; }
.s-6 .pg-circle { opacity: 0.12; }
.s-6 .pg-map { opacity: 1; }
.s-6 .pg-map-line, .s-7 .pg-map-line { stroke-dashoffset: 0; }

/* VII: Enola's back. The paper is gone; the fix is carried in the skin */
.pg.s-7 { transform: none; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45)); }
.s-7 .pg-paper, .s-7 .pg-text, .s-7 .pg-circle { opacity: 0; }
.s-7 .pg-skin { opacity: 1; }
.s-7 .pg-map { opacity: 0.88; }
.s-7 .pg-map-line, .s-7 .pg-map-fix { stroke: #22394a; }
.s-7 .pg-map-star, .s-7 .pg-map-dot { fill: #22394a; }

/* ---------- not blood ---------- */
.blood {
  background: linear-gradient(180deg, var(--abyss) 0%, var(--night) 100%);
  padding-block: clamp(5rem, 10vw, 9rem);
}
.blood-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.strands svg { width: 100%; height: auto; overflow: visible; }
.strand { fill: none; stroke: var(--spray); stroke-width: 1.15; stroke-linecap: round; }
.strand--ends { stroke: var(--haze); }
.strand-stop { fill: var(--haze); opacity: 0.8; }
.strand-end { fill: var(--signal); filter: drop-shadow(0 0 8px rgba(242, 169, 59, 0.8)); }
.strand-leader { stroke: var(--haze); stroke-width: 1; stroke-dasharray: 2 3; }
.strand-t { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; fill: var(--mist); }
.strand-t--signal { fill: var(--signal); font-size: 13px; letter-spacing: 0.24em; }
.strand-t--dim { fill: var(--haze); letter-spacing: 0.06em; }
.strands .caption { margin-top: 1.25rem; }
.blood-k { color: var(--signal); }
.blood-title { font-size: var(--t-l); margin-top: 1rem; }
.blood-prose { margin-top: 1.75rem; color: var(--mist); }
.blood-prose p:first-child { color: var(--salt); }
@media (max-width: 56rem) {
  .blood-grid { grid-template-columns: minmax(0, 1fr); }
  .strands { order: 2; }
}

/* ---------- the custom of leaving ---------- */
.custom {
  position: relative;
  background: linear-gradient(180deg, #0f2a35 0%, #174050 58%, #235463 100%);
  padding-block: clamp(5rem, 10vw, 9rem);
  overflow: hidden;
}
.custom-k { color: var(--foam); }
.custom-title { font-size: var(--t-xl); margin-top: 1rem; max-width: 20ch; }
.custom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr);
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
.custom-why { color: var(--foam); }
.custom-times { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 2.25rem; }
/* the horizon each of them goes out toward */
.custom-times::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0;
  right: -100vw;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 226, 226, 0.7), rgba(201, 226, 226, 0.15));
}
.custom-times li { position: relative; display: grid; gap: 0.4rem; align-content: start; color: var(--foam); font-size: var(--t-s); line-height: 1.5; }
.custom-times li::before {
  content: "";
  position: absolute;
  top: -2.25rem;
  left: 0;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 1.5px solid var(--foam);
  background: #174050;
}
.custom-times li:first-child::before { background: var(--foam); }
.custom-times li:last-child::before { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 14px rgba(242, 169, 59, 0.6); }
.custom-times .num { font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--spray); }
.custom-times b { display: block; font-family: var(--f-display); font-weight: 300; font-size: 1.6rem; line-height: 1.05; color: var(--salt); }
.custom-after {
  grid-column: 2;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-m);
  line-height: 1.2;
  color: var(--salt);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(201, 226, 226, 0.2);
}
@media (max-width: 52rem) {
  .custom-grid { grid-template-columns: minmax(0, 1fr); }
  .custom-after { grid-column: 1; }
}
@media (max-width: 36rem) {
  .custom-times { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 2rem; gap: 2rem; }
  .custom-times::before { top: 0.5rem; bottom: 0.5rem; left: 0.45rem; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(201, 226, 226, 0.7), rgba(201, 226, 226, 0.2)); }
  .custom-times li::before { top: 0.2rem; left: -2rem; }
}

/* ---------- the Mariner ---------- */
.mariner {
  position: relative;
  background: linear-gradient(180deg, #164452 0%, #0c2b37 38%, #071722 72%, var(--abyss) 100%);
  padding-block: clamp(5.5rem, 11vw, 10rem);
  overflow: hidden;
}
.mariner::before {
  /* light through the surface, from below */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 22rem;
  background:
    repeating-linear-gradient(104deg, rgba(201, 226, 226, 0.05) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(76deg, rgba(201, 226, 226, 0.04) 0 1px, transparent 1px 61px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
  pointer-events: none;
}
.mariner-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 3.5rem clamp(3rem, 8vw, 9rem);
  align-items: start;
}
.mariner-k { color: var(--spray); }
.mariner-title { font-size: var(--t-xl); margin-top: 1rem; max-width: 14ch; }
.mariner-prose { margin-top: 2rem; color: var(--mist); }
.mariner-prose p:first-child { color: var(--salt); font-size: var(--t-m); line-height: 1.4; }
.mariner-end { border-left: 2px solid var(--signal); padding-left: 1.1rem; color: var(--salt); font-style: italic; }

/* descent, not pedigree: a sounding line from the release to the film */
.gens { padding-top: 1rem; }
.gens-list { position: relative; display: grid; gap: 0; padding-left: 2rem; }
.gens-list::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  bottom: 0.8rem;
  left: 0.5rem;
  width: 1px;
  background: linear-gradient(180deg, var(--spray), rgba(143, 195, 198, 0.35) 60%, var(--signal));
}
.gens-list li { position: relative; display: grid; gap: 0.15rem; padding-block: 0.55rem; }
.gens-list li::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.95rem;
  width: 0.5rem;
  height: 1px;
  background: rgba(143, 195, 198, 0.55);
}
.gens-list .num { font-size: var(--t-xs); letter-spacing: 0.08em; color: var(--haze); }
.gens-first, .gens-last { padding-block: 0.9rem !important; }
.gens-first::before, .gens-last::before {
  left: -1.95rem !important;
  top: 1.2rem !important;
  width: 0.9rem !important;
  height: 0.9rem !important;
  border-radius: 50%;
}
.gens-first::before { background: var(--spray) !important; }
.gens-last::before { background: var(--signal) !important; box-shadow: 0 0 16px rgba(242, 169, 59, 0.7); }
.gens-first .num, .gens-last .num { color: var(--spray); letter-spacing: 0.14em; text-transform: uppercase; }
.gens-last .num { color: var(--signal); }
.gens-first span:last-child, .gens-last span:last-child { font-family: var(--f-display); font-weight: 300; font-size: 1.9rem; line-height: 1.05; color: var(--salt); }
.gens .caption { margin-top: 1.5rem; padding-left: 2rem; }
@media (max-width: 56rem) {
  .mariner-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- the braid ---------- */
.threads { background: var(--night); padding-block: clamp(5rem, 10vw, 8.5rem); }
.threads-k { color: var(--haze); }
.threads-title { font-size: var(--t-xl); margin-top: 1rem; }
.braid { width: 100%; height: clamp(4.5rem, 10vw, 8rem); margin-top: clamp(2.5rem, 5vw, 4rem); overflow: visible; }
.braid path { fill: none; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.braid .braid-gap { stroke: var(--night); stroke-width: 9; }
.braid-a { stroke: var(--th-object); }
.braid-b { stroke: var(--th-atoll); }
.braid-c { stroke: var(--th-sky); }
.threads-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 4rem); margin-top: 2.5rem; }
.threads-list li { display: grid; gap: 0.5rem; padding-top: 1.1rem; border-top: 2px solid var(--th, var(--mist)); }
.threads-list li:nth-child(1) { --th: var(--th-object); }
.threads-list li:nth-child(2) { --th: var(--th-atoll); }
.threads-list li:nth-child(3) { --th: var(--th-sky); }
.thread-name { font-family: var(--f-display); font-weight: 300; font-size: var(--t-l); line-height: 1; }
.thread-what { font-style: italic; color: var(--mist); }
@media (max-width: 44rem) {
  .threads-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- rules, and what is still open ---------- */
.rules { background: linear-gradient(180deg, var(--night), var(--abyss)); padding-block: clamp(5rem, 10vw, 9rem); }
.rules-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 3.5rem clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.rules-k { color: var(--signal); }
.rules-title { font-size: var(--t-xl); margin-top: 1rem; }
.rules-list { margin-top: clamp(2rem, 4vw, 3rem); counter-reset: none; }
.rules-list li {
  display: grid;
  grid-template-columns: clamp(3.5rem, 7vw, 6rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(143, 195, 198, 0.14);
}
.rules-list li:last-child { border-bottom: 1px solid rgba(143, 195, 198, 0.14); }
.rules-n { font-family: var(--f-display); font-weight: 200; font-size: clamp(3rem, 6vw, 5rem); line-height: 0.8; color: var(--signal); }
.rules-list p { max-width: 38rem; text-wrap: pretty; }
.open {
  position: sticky;
  top: calc(var(--head) + 2rem);
  border: 1px dashed rgba(143, 195, 198, 0.35);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: clamp(0rem, 8vw, 7.5rem);
}
.open-k { color: var(--spray); }
.open-list { display: grid; gap: 1rem; margin-top: 1.4rem; }
.open-list li { position: relative; padding-left: 1.85rem; color: var(--mist); font-size: var(--t-s); line-height: 1.5; }
.open-list li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 0.8rem; height: 0.8rem; border: 1px solid var(--spray); }
@media (max-width: 56rem) {
  .rules-grid { grid-template-columns: minmax(0, 1fr); }
  .open { position: static; margin-top: 0; }
}
.mariner-xref { margin-top: 2rem; color: var(--spray); }
