/* ==========================================================================
   The Haus of Sir. thehausofsir.com (rebuild 2026-09-23, "title cards")

   Taken from the title cards of the ballroom documentary era: heavy Franklin
   caps, centred, soft white on a near-black ground, grain in everything, one
   idea per card, hard cuts between them. Measured off the real cards:
     type   ~#e3e3e3, grain std ~12 inside the letters, slightly soft edges
     ground near-black with faint grain
     face   Franklin Gothic Heavy -> here "Haus Heavy" (Libre Franklin 900,
            narrowed to 90% so widths land within 2% of the cards)
   Two faces: Haus Heavy for every card, Chivo Mono (a grotesque mono, same
   American-gothic lineage as Franklin) for reading and labels. Red only in
   touches: the eye, the cue dot on a button, what's current, a number. Grain is static (moving grain is banned). Cuts only, no fades.
   Content never depends on JS.
   ========================================================================== */

@font-face {
  font-family: 'Haus Heavy';
  src: url('../fonts/haus-heavy.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Haus Heavy Star';                /* Haus Heavy with a star cut into the O: the home title only */
  src: url('../fonts/haus-heavy-star.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Chivo Mono';
  src: url('../fonts/chivo-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #0c0c0b;                         /* slightly off black, never #000 */
  --ink: #e4e3df;                            /* the cards' soft white */
  --ink-80: rgba(228, 227, 223, .80);        /* 11.9:1 on ground: reading copy */
  --ink-60: rgba(228, 227, 223, .60);        /*  7.2:1: secondary */
  --ink-45: rgba(228, 227, 223, .45);        /*  4.6:1: small labels, still AA */
  --ink-20: rgba(228, 227, 223, .20);        /* rules */
  --red: #ff2a1f;                            /* touches only: never a field, never body text */
  --gold: #ffc400;                           /* the Legendary Child role colour, read from Discord */

  --heavy: 'Haus Heavy', 'Franklin Gothic Heavy', 'Libre Franklin', 'Arial Black', sans-serif;
  --text: 'Chivo Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(24px, 5vw, 72px);
  --read: 64ch;
}

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

html {
  background: var(--ground);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  font: 400 .95rem/1.75 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain, twice, fixed over everything. White specks on the ground (screen), and a grey
   tone multiplied in that breaks the white type up the way film does. Static. */
html::before, html::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background-size: 128px 128px;
}
html::before { background-image: url('../images/grain-tone.png'); mix-blend-mode: multiply; }
html::after { background-image: url('../images/grain-white.png'); mix-blend-mode: screen; opacity: .9; }
@media (max-resolution: 1.5dppx) { html::before, html::after { background-size: 256px 256px; } }   /* 1:1 grain on 1x screens */

::selection { background: var(--red); color: var(--ink); }   /* the family's signature: inversion */

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* the card voice: heavy caps, soft edge like an optical print */
.card-title, .chapter h2, .statement, .age-gate-title, .footer-list a, .step-num, .step-title, .faq-question, .btn {
  font-family: var(--heavy);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.01em;
  text-shadow: 0 0 1px rgba(228, 227, 223, .45);
}

/* --------------------------------------------------------------------------
   Header: logo left, the pages in the card voice in the middle, join on the right.
   Current page = a red cue dot. Hover = a hard cut to the red rule. Phone: the pages
   become one ruled row under the logo, evenly spread.
   -------------------------------------------------------------------------- */
.site-header {
  position: relative; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 1.35rem var(--gutter);
}
.site-logo { justify-self: start; display: block; line-height: 0; }
.site-logo img { height: clamp(15px, 1.45vw, 19px); width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.8vw, 2.4rem); }
.site-header-link {
  position: relative;
  font: 400 .98rem/1 var(--heavy);
  text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; color: var(--ink-60);
  padding: .5em 0 .45em;
  border-bottom: 2px solid transparent;
}
.site-header-link.active { color: var(--ink); }
.site-header-link.active::before {
  content: ""; position: absolute; left: -.8em; top: 50%; width: .42em; height: .42em; margin-top: -.26em;
  border-radius: 50%; background: var(--red);
}
.site-header-link:hover, .site-header-link:focus-visible { color: var(--ink); border-bottom-color: var(--red); outline: none; }
.site-header-join { justify-self: end; }
@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; row-gap: 0; padding-bottom: 0; }
  .site-nav {
    grid-column: 1 / -1; grid-row: 2; justify-content: space-between;
    margin-top: 1.1rem; padding: .35rem 0; border-top: 1px solid var(--ink-20); border-bottom: 1px solid var(--ink-20);
  }
  .site-header-link { font-size: .92rem; }
}

/* --------------------------------------------------------------------------
   Cards: a held screen with one thing on it
   -------------------------------------------------------------------------- */
main { flex: 1; position: relative; z-index: 1; }

.card {
  container-type: inline-size;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(3.5rem, 12svh, 9rem) var(--gutter);
}
.card--tall { min-height: 62svh; }

.card-title { line-height: .9; color: var(--ink); }
.card-title > span { display: block; }
.js .card-title > span, .js .chapter h2 > span { white-space: nowrap; }   /* main.js shrinks any line that would spill */
.card-title.xl { font-size: clamp(3.6rem, 21cqi, 15rem); }
.card-title.l  { font-size: clamp(3rem, 15cqi, 11rem); }
.card-title.m  { font-size: clamp(2.4rem, 11cqi, 8rem); }

/* the chapter card between sections */
.chapter {
  container-type: inline-size;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(3.5rem, 11svh, 7rem) var(--gutter);
}
.chapter h2 { font-size: clamp(2.2rem, 9cqi, 6.4rem); line-height: .92; }
.chapter h2 > span { display: block; }

/* a sentence set as a card, like the three-line category cards */
.statement {
  font-size: clamp(1.45rem, 4.4cqi, 3.3rem);
  line-height: 1.02;
  max-width: 17em;
  margin-inline: auto;
  text-wrap: balance;
  color: var(--ink);
}
.statement a { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .12em; }
.statement a:hover { background: var(--ink); color: var(--ground); text-decoration: none; }

.stack { display: grid; justify-items: center; gap: clamp(1.3rem, 3.6svh, 2.6rem); }

/* Buttons, in the card language. Not a box: the words themselves, heavy caps on a hairline, led
   by a red cue dot (the dot that flashes in the corner of a reel before the changeover). Hover is a
   hard cut: the rule turns red and the arrow steps 4px on. */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  letter-spacing: .03em;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  padding: .55em 0 .6em;
  border-bottom: 2px solid var(--ink);
}
.btn::before { content: ""; width: .52em; height: .52em; border-radius: 50%; background: var(--red); flex: none; transform: translateY(-.04em); }
.btn-arrow { width: 1.3em; height: .78em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.btn:hover, .btn:focus-visible { border-bottom-color: var(--red); outline: none; }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow { transform: translateX(4px); color: var(--red); }
.btn--sm { font-size: .88rem; gap: .5em; padding: .45em 0 .5em; border-bottom-width: 1.5px; }
.magnet { display: inline-block; }

/* --------------------------------------------------------------------------
   Reading copy
   -------------------------------------------------------------------------- */
.prose {
  width: 100%;
  max-width: calc(var(--read) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.prose p { color: var(--ink-80); margin: 0 0 1.15em; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.prose a:hover { background: var(--ink); color: var(--ground); text-decoration: none; }
.prose strong { color: var(--ink); font-weight: 600; }
.lede p { font-size: clamp(1.12rem, 1.6vw, 1.28rem); line-height: 1.62; color: var(--ink); }

.role-gold { color: var(--gold); font-weight: 600; white-space: nowrap; }
.role { color: var(--ink); font-weight: 600; white-space: nowrap; }
.chap-body a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.chap-body a:hover { background: var(--ink); color: var(--ground); text-decoration: none; }

/* the only colour on the site: the flags, on the words they belong to */
.trans-word span:nth-child(5n+1) { color: #5bcefa; }
.trans-word span:nth-child(5n+2) { color: #f5a9b8; }
.trans-word span:nth-child(5n+3) { color: #ffffff; }
.trans-word span:nth-child(5n+4) { color: #f5a9b8; }
.trans-word span:nth-child(5n+5) { color: #5bcefa; }
.pride-word span:nth-child(6n+1) { color: #e40303; }
.pride-word span:nth-child(6n+2) { color: #ff8c00; }
.pride-word span:nth-child(6n+3) { color: #ffed00; }
.pride-word span:nth-child(6n+4) { color: #008026; }
.pride-word span:nth-child(6n+5) { color: #3d6bff; }
.pride-word span:nth-child(6n+6) { color: #9b4dff; }

/* --------------------------------------------------------------------------
   Home: one held screen
   -------------------------------------------------------------------------- */
.home-card { padding-top: clamp(1rem, 3svh, 2.5rem); padding-bottom: clamp(1rem, 3svh, 2.5rem); }
.home-card .stack { gap: clamp(1rem, 2.7svh, 2rem); }
.home-card .card-title { font-family: 'Haus Heavy Star', var(--heavy); font-size: clamp(3.4rem, min(19cqi, 13svh), 12rem); }
.home-card .statement { font-size: clamp(1.2rem, 3.1cqi, 2.35rem); max-width: 22em; }
.home-foot {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1.5rem;
  padding: 0 var(--gutter) 1.4rem;
}

/* small tracked credits, like the end roll */
.home-foot, .footer-small, .footer-legal, .footer-credit, .legal__switch {
  font: 500 .7rem/1.5 var(--text);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.home-foot a, .footer-small a, .footer-legal a, .legal__switch a { color: var(--ink-60); text-decoration: none; padding: .3em .15em; }
.home-foot a:hover, .footer-small a:hover, .footer-legal a:hover, .legal__switch a:hover { background: var(--ink); color: var(--ground); }
.home-foot nav, .footer-small, .footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.4rem; }
@media (max-width: 620px) { .home-foot { justify-content: center; text-align: center; } }

/* --------------------------------------------------------------------------
   Footer, after pop.thevault.locker's: white wordmarks between red stars, dimmed until hovered
   (hard cut, no fade), then the credits in the same star rhythm.
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: 1.1rem;
  text-align: center;
  margin-top: clamp(4rem, 12svh, 8rem);
  padding: 2.2rem var(--gutter) 2.4rem;
  border-top: 1px solid var(--ink-20);
}
.footer-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .9rem 1.15rem; }
.footer-links a { display: flex; align-items: center; opacity: .55; text-decoration: none; color: #fff; }
.footer-links a:hover, .footer-links a:focus-visible { opacity: 1; outline: none; }
.footer-sep { color: var(--red); font-size: 1.05rem; line-height: 1; user-select: none; }
.wordmark img { width: auto; height: 12px; }
.wordmark--haus img { height: 11px; }
.wordmark--goonbate img { height: 15px; }
.wordmark--chunk img { height: 14px; position: relative; top: -1.5px; }   /* x-height = the Haus caps (11px), baselines level */
.wordmark sup { font-size: 8px; line-height: 1; margin-left: 1px; align-self: flex-start; }
.wordmark--type { font: 400 .92rem/1 var(--heavy); text-transform: uppercase; letter-spacing: .02em; }
.icon-link svg { width: 16px; height: 16px; fill: #fff; }
.footer-icons { display: inline-flex; gap: 1rem; }
@media (max-width: 520px) { .footer-links { gap: .8rem .85rem; } .wordmark--type { font-size: .8rem; } }
.footer-copy { font: 500 .66rem/1.9 var(--text); color: var(--ink-45); letter-spacing: .02em; }
.footer-copy a { color: var(--ink-60); text-decoration: none; }
.footer-copy a:hover { color: var(--ink); }
.copy-sep { color: var(--red); font-size: .6rem; display: inline-block; margin: 0 .5rem; vertical-align: 1px; user-select: none; }
.home-card + .site-footer { margin-top: 0; }

/* --------------------------------------------------------------------------
   Help: numbered steps
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: clamp(3rem, 9svh, 5.5rem); }
.step { display: grid; grid-template-columns: clamp(4.2rem, 11vw, 7.5rem) 1fr; gap: 0 clamp(1rem, 3vw, 2.2rem); align-items: start; }
.step-num { font-size: clamp(4.4rem, 11vw, 8rem); line-height: .78; text-align: right; }
.step-title { font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: .98; margin: .1em 0 .55em; }
.step p { color: var(--ink-80); }
.copy-box {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  width: 100%; margin-top: .75rem; text-align: left;
  font: 500 .98rem/1.3 var(--text); color: var(--ink);
  border: 1px solid var(--ink-20);
  padding: .95rem 1rem;
  overflow-wrap: anywhere;
}
.copy-box::after { content: "copy"; flex: none; font: 500 .66rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); }
.copy-box:hover { border-color: var(--ink); }
.copy-box.copied { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.copy-box.copied::after { content: "copied"; color: var(--ground); }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; }
  .step-num { text-align: left; margin-bottom: .4rem; }
}

/* --------------------------------------------------------------------------
   FAQ: numbered rows. The question in the card voice, the answer hung under the
   question (not under the number), a drawn plus that turns into a red minus. Hard cuts.
   -------------------------------------------------------------------------- */
.faq-wrap { width: 100%; max-width: calc(880px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.faq-list { border-bottom: 1px solid var(--ink-20); }
.faq-item { border-top: 1px solid var(--ink-20); }
.faq-question {
  display: grid; grid-template-columns: 3.2rem 1fr 1.5rem; align-items: baseline; column-gap: .6rem;
  width: 100%; text-align: left;
  padding: 1.35rem 0 1.25rem;
  color: var(--ink-80);
}
.faq-no { font: 500 .74rem/1 var(--text); letter-spacing: .12em; color: var(--red); text-shadow: none; }
.faq-q { font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.02; }
.faq-marker { position: relative; width: 1rem; height: 1rem; justify-self: end; align-self: center; }
.faq-marker::before, .faq-marker::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; background: currentColor; }
.faq-marker::after { transform: rotate(90deg); }
.faq-question:hover, .faq-question:focus-visible { color: var(--ink); outline: none; }
.faq-question:hover .faq-marker, .faq-question:focus-visible .faq-marker { color: var(--red); }
.faq-item.open .faq-question { color: var(--ink); }
.faq-item.open .faq-marker { color: var(--red); }
.faq-item.open .faq-marker::after { display: none; }
.faq-answer { padding: .15rem 2.1rem 2.1rem 3.8rem; }
.faq-answer p { max-width: 60ch; font-size: 1rem; line-height: 1.8; color: var(--ink); }
.faq-answer a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.faq-answer a:hover { background: var(--ink); color: var(--ground); text-decoration: none; }
.js .faq-answer { display: none; }                 /* closed only once the script can open them */
.js .faq-item.open .faq-answer { display: block; }
@media (max-width: 620px) {
  .faq-question { grid-template-columns: 2.3rem 1fr 1.2rem; }
  .faq-answer { padding: .1rem 0 1.8rem 2.9rem; }
  .faq-answer p { font-size: .9rem; line-height: 1.75; }
}

/* --------------------------------------------------------------------------
   Age gate: the first title card
   -------------------------------------------------------------------------- */
.age-gate {
  position: fixed; inset: 0; z-index: 900;
  display: none;
  container-type: inline-size;
  place-items: center;
  align-content: center;
  gap: clamp(2rem, 6svh, 3.5rem);
  text-align: center;
  padding: var(--gutter);
  background: var(--ground);
}
html.gate-open .age-gate { display: grid; }
html.gate-open body { overflow: hidden; }
.age-gate-title { font-size: clamp(1.7rem, 5.4cqi, 3.9rem); line-height: 1.01; max-width: 15em; text-wrap: balance; }
.age-gate-actions { display: flex; gap: clamp(1.5rem, 6vw, 4rem); }
.age-gate-actions button {
  display: inline-flex; align-items: center; gap: .18em;
  font: 400 clamp(3.2rem, 10cqi, 7.5rem)/.85 var(--heavy);
  text-transform: uppercase; letter-spacing: -.01em;
  text-shadow: 0 0 1px rgba(228, 227, 223, .45);
  padding: .08em 0 .1em;
  border-bottom: 3px solid var(--ink-20);
}
.age-gate-actions .age-gate-yes { border-bottom-color: var(--ink); }
.age-gate-actions .age-gate-yes::before { content: ""; width: .2em; height: .2em; border-radius: 50%; background: var(--red); margin-right: .08em; }
.age-gate-actions button:hover, .age-gate-actions button:focus-visible { border-bottom-color: var(--red); outline: none; }
.age-gate-fine { font: 500 .68rem/1.6 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); max-width: 34em; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.lost .statement { font-size: clamp(1.2rem, 3cqi, 2.1rem); max-width: 20em; }

/* --------------------------------------------------------------------------
   Hard cuts in: the page holds on black, then the card is simply there.
   Only with motion allowed; the resting state is the finished page.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .cut { animation: cut-in 0s steps(1, end) both; animation-delay: var(--at, .28s); }
  @keyframes cut-in { from { visibility: hidden; } to { visibility: visible; } }
}

@media print {
  html::before, html::after, .site-header, .site-footer, .age-gate { display: none; }
  html, body { background: #fff; color: #000; }
}
.steps-wrap { margin-top: clamp(4rem, 12svh, 7rem); }
.steps { list-style: none; }

/* --------------------------------------------------------------------------
   The eye. The one thing on the site that isn't white: like the documentary's own
   title card, which is the only card not set in white. Ringed by circular text
   (React Bits CircularText, ported) that ticks round like a second hand instead of spinning.
   -------------------------------------------------------------------------- */
.seal { position: relative; width: var(--seal, 168px); aspect-ratio: 1; display: grid; place-items: center; }
.seal img { width: 44%; height: auto; }
.circular-text {
  position: absolute; inset: 0;
  font: 500 calc(var(--seal, 168px) * .088)/1 var(--text);
  letter-spacing: 0; text-transform: uppercase; color: var(--ink-80);
  border-radius: 50%;
}
.circular-text span { position: absolute; inset: 0; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .circular-text { animation: tick 60s steps(60, end) infinite; }
  .seal:hover .circular-text { animation-duration: 15s; }      /* the component's speedUp, kept */
}
@keyframes tick { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   About: an opening statement, two chapters set as rows, the list card, the welcome
   -------------------------------------------------------------------------- */
.kicker { font: 500 .72rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-60); margin-bottom: clamp(1.4rem, 4svh, 2.4rem); }
.statement--lg { font-size: clamp(1.9rem, 6.2cqi, 4.6rem); line-height: .98; max-width: 15em; }
.about-open { min-height: calc(100svh - 5.5rem); padding-top: 2rem; padding-bottom: 2rem; }
.chap { width: 100%; max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.chap-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
  border-top: 1px solid var(--ink-20);
  padding: clamp(2.4rem, 7svh, 4.5rem) 0;
}
.chap-row:last-child { border-bottom: 1px solid var(--ink-20); }
.chap-no { display: block; font: 500 .74rem/1 var(--text); letter-spacing: .12em; color: var(--red); margin-bottom: 1.1rem; }
.chap-word { font: 400 clamp(2.4rem, 5vw, 4.6rem)/.9 var(--heavy); text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 0 1px rgba(228, 227, 223, .45); }
.chap-word span { display: block; }
.chap-body p { font-size: clamp(1.08rem, 1.45vw, 1.24rem); line-height: 1.62; color: var(--ink); text-wrap: pretty; }
@media (max-width: 760px) { .chap-row { grid-template-columns: 1fr; } }

/* the stacked list card: one short line per row, centred, like a roll of house names */
.house-list { list-style: none; display: grid; justify-items: center; }
.house-list li { font: 400 clamp(1.5rem, 9.5cqi, 6.6rem)/.96 var(--heavy); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; text-shadow: 0 0 1px rgba(228, 227, 223, .45); }
.welcome .seal { --seal: clamp(150px, 20vw, 210px); }

/* Decrypted text (React Bits DecryptedText, ported): the small tracked links scramble and resolve on hover */
[data-decrypt] { display: inline-block; }
.gate-eye { width: clamp(64px, 8vw, 96px); height: auto; }
.site-header-join { font-size: .84rem; }
.about ~ .site-footer .footer-eye { display: none; }   /* the About page ends on the eye already */
.chap-body p + p { margin-top: 1.1em; }

/* a role, shown the way Discord shows it: the role's own colour on a tint of itself (colours read from the server) */
.role-mention { color: color-mix(in srgb, var(--c) 72%, #ffffff); background: color-mix(in srgb, var(--c) 22%, transparent); font-weight: 600; padding: .05em .3em; border-radius: 3px; white-space: nowrap; }
.chap-body .chap-link { margin-top: 1.6em; }
.chap-body .btn { text-decoration: none; }
.chap-body .btn:hover { background: none; color: var(--ink); }

/* --------------------------------------------------------------------------
   Opening (owner, 2026-09-23, v2): 4 seconds on every load. Title cards, the film's way: the eye
   alone (a still copy, the animated one misdraws its first frames), then one word per card cut
   in on the beat (WE / GREW / UP / IN / HIS), HOUSE on a red card, then a hard cut to the page. Cuts only, grain static
   (the page's own grain sits over it). Each card is opaque and later cards stack on top, so a card
   only needs switching ON. Only exists when the head script sets html.intro; a CSS failsafe
   removes it even if the script dies.
   -------------------------------------------------------------------------- */
.intro-screen { display: none; }
html.intro .intro-screen {
  display: block; position: fixed; inset: 0; z-index: 950; overflow: hidden; background: var(--ground);
  animation: intro-failsafe 0s 5s forwards;
}
html.intro body { overflow: hidden; }
@keyframes intro-failsafe { to { visibility: hidden; } }
.intro-card {
  position: absolute; inset: 0; display: grid; place-items: center; background: var(--ground);
  visibility: hidden; animation: intro-cut 0s var(--in) forwards;
}
@keyframes intro-cut { to { visibility: visible; } }
.intro-word {
  font: 400 min(26vw, 62svh)/.8 var(--heavy); text-transform: uppercase; letter-spacing: -.01em;
  color: var(--ink); text-shadow: 0 0 1px rgba(228, 227, 223, .45); white-space: nowrap;
}
.intro-card--red { background: #ff0000; }
.intro-card--red .intro-word { color: var(--ground); text-shadow: none; }
.intro-eye {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);   /* first card: the eye alone; the word cards cover it */
  width: min(24vmin, 190px); line-height: 0; pointer-events: none;
}
.intro-eye img { width: 100%; height: auto; }

/* keyboard: jump past the header */
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 1100; font: 500 .8rem/1 var(--text); background: var(--ink); color: var(--ground); padding: .8em 1em; text-decoration: none; }
.skip:focus { top: 1rem; }
