/* ==========================================================================
   ZelKorVicQanix — a travelling magic-lantern show
   Rozha One (display) + Archivo (text). Motion is mechanical: discrete
   steps(2) clicks, 60–90ms, no easing.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  /* dark (the hall) */
  --ink:        #070818;
  --ink-2:      #13152b;
  --ink-line:   #2d304c;
  --halation:   #12163a;
  --halation-2: #1b1e3a;

  /* light (the sheet) */
  --paper:      #ebecf5;
  --paper-2:    #daddec;
  --paper-3:    #f5f6fc;
  --paper-line: #a0a3b8;

  /* text */
  --on-dark:      #f5f6fc;
  --on-dark-mute: #9397ab;
  --on-light:     #16182d;
  --on-light-mute:#56596f;

  /* the projector lamp */
  --accent:     #a39ef9;
  --accent-ink: #5d4fb9;

  /* measure */
  --shell:   1368px;
  --rail:    1192px;
  --gutter:  88px;
  --radius:  2px;

  /* the click */
  --click:      70ms;
  --click-slow: 90ms;
  --steps:      steps(2, end);

  --font-display: "Rozha One", "Times New Roman", serif;
  --font-text:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; background: var(--paper-3); color: var(--ink);
  font-weight: 700; font-size: 13px; letter-spacing: .09em; text-transform: uppercase;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* --- shell -------------------------------------------------------------- */
.page { max-width: var(--shell); margin-inline: auto; background: var(--paper); }
.rail { max-width: var(--rail); margin-inline: auto; width: 100%; }

.band { position: relative; overflow: hidden; padding: 78px var(--gutter) 84px; }
.band--dark  { background: var(--ink);    color: var(--on-dark); }
.band--paper { background: var(--paper);  color: var(--on-light); }
.band--paper2{ background: var(--paper-2);color: var(--on-light); }
.band--ink2  { background: var(--ink-2);  color: var(--on-dark); }

/* --- type --------------------------------------------------------------- */
.h1, .h2, .h3, .h4 { font-family: var(--font-display); font-weight: 400; }
.h1 { font-size: 68px; line-height: 1.02; letter-spacing: 0; }
.h2 { font-size: 40px; line-height: 1.06; }
.h3 { font-size: 30px; line-height: 1.04; }
.h4 { font-size: 23px; line-height: 1.16; }

.lede   { font-size: 17px; line-height: 1.68; }
.body   { font-size: 17px; line-height: 1.68; }
.small  { font-size: 15px; line-height: 1.68; }

/* the tiny letterpress caption above every plate */
.impression {
  font-size: 12px; font-weight: 700; line-height: 1.6;
  letter-spacing: .13em; text-transform: uppercase;
}
.band--dark  .impression, .band--ink2 .impression { color: var(--on-dark-mute); }
.band--paper .impression, .band--paper2 .impression { color: var(--on-light-mute); }

.eyebrow {
  font-size: 12px; font-weight: 700; line-height: 1.6;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}

.muted { color: var(--on-light-mute); }
.band--dark .muted, .band--ink2 .muted { color: var(--on-dark-mute); }

/* --- the carrier strip (sprocket rail) ---------------------------------- */
.carrier-strip {
  position: relative; height: 16px; width: 100%;
  border-top: 1.4px solid var(--ink-line);
}
.band--paper .carrier-strip, .band--paper2 .carrier-strip { border-top-color: var(--paper-line); }
/* each notch sits over the centre of the slide it holds */
.carrier-strip span {
  position: absolute; top: 0; left: var(--at); height: 10px;
  border-left: 1.4px solid var(--ink-line);
}
.band--paper .carrier-strip span, .band--paper2 .carrier-strip span { border-left-color: var(--paper-line); }
.carrier-strip span[data-gate] { height: 16px; border-left-width: 3px; }

/* --- the ruled margin down the side of every sheet ---------------------- */
/* A vertical rule 70px in from the plate's edge, ticked every 17px with a
   longer tick every fourth — drawn rather than marked up, so the pitch stays
   exact however tall the plate turns out to be. */
.sheet-edge {
  position: absolute; left: 52px; top: 26px; bottom: 26px; width: 18px;
  border-right: 1px solid var(--paper-line); pointer-events: none; overflow: hidden;
}
.sheet-edge::before, .sheet-edge::after {
  content: ""; position: absolute; right: 0; top: 14px; bottom: 0;
}
.sheet-edge::before {
  width: 6px; opacity: .5;
  background: repeating-linear-gradient(var(--paper-line) 0 1px, transparent 1px 17px);
}
.sheet-edge::after {
  width: 13px; opacity: .8;
  background: repeating-linear-gradient(var(--paper-line) 0 1px, transparent 1px 68px);
}

/* --- halation (the lamp bleeding into the sheet) ------------------------ */
.halation {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: var(--paper-3); filter: blur(60px); opacity: .85;
}
.band--dark .halation, .band--ink2 .halation { background: var(--halation); opacity: .7; }

/* --- the mask marks (one aperture per genre) ---------------------------- */
/* Default to a text-sized mark; contexts below scale it up deliberately.
   Without a size the <svg> would stretch to fill whatever box it lands in. */
.mask-mark { display: inline-block; flex: none; width: 1.1em; height: 1.1em; color: var(--accent-ink); }
.mask-mark--lg { width: 28px; height: 28px; }
.band--dark .mask-mark, .band--ink2 .mask-mark { color: var(--accent); }
/* fill/stroke are inherited, so they reach the <path> inside the sprite's
   <symbol> through <use>; a descendant selector would not. */
.mask-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* a big ghost aperture drawn behind a plate */
.ghost-mark {
  position: absolute; pointer-events: none; opacity: .36; z-index: 0;
  color: var(--paper-line);
}
.band--dark .ghost-mark, .band--ink2 .ghost-mark { color: var(--ink-line); opacity: 1; }
.ghost-mark svg { width: 100%; height: 100%; }

/* --- links with an aperture bullet -------------------------------------- */
.link-mark {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; color: var(--accent-ink);
}
.band--dark .link-mark, .band--ink2 .link-mark { color: var(--on-dark); }
.link-mark .mask-mark { width: 15px; height: 15px; }
/* the design underlines these links at rest, not only on hover */
.link-mark span { border-bottom: 1px solid currentColor; }
.link-mark:hover span { border-bottom-color: transparent; }

/* ==========================================================================
   Header — the tab rail
   ========================================================================== */
.site-header { background: var(--ink); border-bottom: 1px solid var(--ink-line); }
.site-header--paper { background: var(--paper); border-bottom-color: var(--paper-line); }

.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--shell); margin-inline: auto;
  padding: 22px var(--gutter) 20px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo svg, .logo img { width: 32px; height: 32px; flex: none; }
.logo b {
  font-family: var(--font-display); font-weight: 400; font-size: 24px;
  line-height: 1.04; color: var(--on-dark);
}
.site-header--paper .logo b { color: var(--on-light); }

.tab-rail { display: flex; align-items: center; gap: 8px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 8px; border-radius: var(--radius);
  border: 1px solid var(--ink-line); color: var(--on-dark-mute);
  font-size: 13px; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase;
  transition: none;
}
.site-header--paper .tab { border-color: var(--paper-line); color: var(--on-light-mute); }
.tab:hover { color: var(--on-dark); border-color: var(--accent); }
.site-header--paper .tab:hover { color: var(--on-light); border-color: var(--accent-ink); }
/* the tab that is in the gate */
.tab[aria-current="page"] {
  background: var(--paper-3); border-color: var(--paper-3);
  color: var(--ink); font-weight: 700;
}
.site-header--paper .tab[aria-current="page"] {
  background: var(--on-light); border-color: var(--on-light); color: var(--paper-3);
}

.nav-toggle { display: none; }

/* ==========================================================================
   Hero — a slide in the gate, the view on the screen
   ========================================================================== */
.hero { position: relative; background: var(--ink); overflow: hidden; padding: 0 var(--gutter); }
/* Everything below is positioned in the design's own coordinates: the hero
   frame is 1368x1110 with a 1192 rail inside it, so an element at Figma x is
   at (x - 88) here. Offsets past the rail edge are deliberate — the screen and
   the hand both break out of it. */
.hero-inner {
  position: relative; max-width: var(--rail); margin-inline: auto;
  min-height: 1110px; padding-top: 56px;
}

/* the beam thrown from the lantern — the shape is lifted straight from the
   design, so it keeps its exact angle whatever the viewport does */
.cone {
  position: absolute; left: 50%; top: 0; width: 1368px; height: 790px;
  transform: translateX(-50%); pointer-events: none; z-index: 0;
}
.cone svg { width: 100%; height: 100%; }

/* the beam again, this time across the dark plate */
.plate-cone {
  position: absolute; left: 50%; top: 0; width: 1428px; height: 687px;
  transform: translateX(-50%); pointer-events: none; z-index: 0;
}
.plate-cone svg { width: 100%; height: 100%; }

.hero-halation {
  position: absolute; right: -150px; top: 20px; width: 620px; height: 560px;
  background: var(--halation); border-radius: 50%; filter: blur(70px);
  pointer-events: none; z-index: 0;
}
/* the hard edge of the lamp's spill, sitting just behind the screen */
.hero-halation-edge {
  position: absolute; right: -52px; top: 50px; width: 512px; height: 462px;
  background: var(--halation-2); transform: rotate(-1.5deg);
  pointer-events: none; z-index: 1;
}

.hero-text { position: relative; z-index: 3; width: 560px; display: grid; gap: 22px; }
.hero-text .h1 { color: var(--on-dark); }
.hero-text .lede { color: var(--on-dark-mute); max-width: 486px; }
.hero-meta {
  font-size: 12px; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--on-dark-mute);
}

/* the screen the lantern projects onto */
.screen {
  position: absolute; right: -42px; top: 60px; z-index: 2;
  width: 490px; height: 440px; padding: 24px;
  background: var(--paper-3); outline: 1px solid var(--paper-line);
  transform: rotate(-1.5deg);
}
.screen img { width: 100%; height: 100%; object-fit: contain; }
.screen-caption {
  position: absolute; right: -28px; top: 534px; z-index: 3;
  font-size: 12px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--on-dark-mute);
}
/* the lanternist reaches in from the left and points along the carrier */
.hero-hand {
  position: absolute; left: -152px; top: 604px; width: 330px; height: auto;
  z-index: 3; transform: rotate(-8deg); pointer-events: none;
}

/* the lanternist points at the address on the contact plate */
.plate-hand {
  position: absolute; left: calc(50% - 298px); top: 136px; width: 240px; height: auto;
  z-index: 0; pointer-events: none;
}
/* the design underlines the address placeholder */
.plate-email { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }

/* the carrier along the bottom of the hero */
/* Vertical rhythm straight off the design: the text block ends at 441, the
   label sits at 682, the rail at 742, and the highest slide hangs at 768 —
   which also puts the pointing hand (604–769) just clear of the slides. */
.carrier { position: static; z-index: 2; margin-top: 241px; }
.carrier-label {
  margin-left: 212px; margin-bottom: 39px;
  font-size: 13px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--accent);
}
.carrier .carrier-strip { margin-bottom: 10px; }
/* Slides hang at slightly different depths, each tilted its own way — the
   drop and the angle come from the design, per slide, as --drop / --rot. */
.carrier-slots {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px;
  align-items: start;
}
.slot { padding-top: var(--drop, 0px); }
.mount { width: var(--mw, 100%); margin-inline: auto; transform: rotate(var(--rot, 0deg)); }
.slot a:hover .mount, .slot a:focus-visible .mount {
  transform: rotate(var(--rot, 0deg)) translateY(-4px);
}

/* --- a slide in its mount ----------------------------------------------- */
.slot { display: grid; gap: 14px; justify-items: center; }
.mount {
  position: relative; width: 100%;
  padding: 10px 10px 9px; background: var(--paper-2);
  border: 1px solid var(--ink-line); border-radius: var(--radius);
  box-shadow: 0 2px 0 rgba(0,0,0,.35);
  display: grid; gap: 8px;
  /* one mechanical click up on hover */
  transition: transform var(--click) var(--steps);
}
.mount-window {
  background: var(--ink-2); display: flex; place-items: center;
  aspect-ratio: 1 / 1; overflow: hidden;
}
.mount-window img { width: 100%; height: 100%; object-fit: contain; }
.spine {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: var(--on-light-mute);
}
.spine b { font-family: var(--font-display); font-weight: 400; font-size: 13px; line-height: 1.04; }
.spine span { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

/* the slide currently in the gate */
.slot--gate .mount {
  background: var(--paper-3); border: 2px solid var(--accent);
}
.slot--gate .spine b { color: var(--accent-ink); }
/* the gate brackets that clamp it */
.slot--gate .mount::before,
.slot--gate .mount::after {
  content: ""; position: absolute; top: -8px; bottom: -8px; width: 13px;
  border: 2px solid var(--accent);
  opacity: 0; transition: opacity var(--click) var(--steps);
}
.slot--gate .mount::before { left: -13px; border-right: 0; }
.slot--gate .mount::after  { right: -13px; border-left: 0; }
.slot--gate .mount::before,
.slot--gate .mount::after { opacity: 1; }

.slot-caption { display: grid; gap: 4px; text-align: center; }
.slot-caption b { font-size: 15px; font-weight: 700; line-height: 1.28; color: var(--on-dark); }
.slot-caption span {
  font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--accent);
  text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px;
}

/* ==========================================================================
   Plates (the numbered sections)
   ========================================================================== */
.plate { position: relative; }
/* the design sets this label bottom-right, on the rail's right edge */
.plate > .impression {
  position: absolute; right: var(--gutter); bottom: 15px; z-index: 2;
}
/* the dark plate carries a floor strip, so its label sits above it */
.plate--floor > .impression { bottom: 33px; }
.plate-inner { position: relative; z-index: 1; }

.section-head { display: grid; gap: 18px; max-width: 860px; }
.section-head .carrier-strip { max-width: 148px; }
/* the dark plate stands the rail on the floor of the hall */
.plate-floor {
  position: absolute; left: 50%; bottom: 4px; width: 100%; max-width: var(--rail);
  transform: translateX(-50%); z-index: 1;
}
.section-head p { max-width: 720px; }

.split { display: grid; grid-template-columns: 430px 1fr; gap: 64px; align-items: start; }
.split > div { display: grid; gap: 20px; }
.split .body { max-width: 600px; }
/* the lantern room runs a wider heading column and a shorter measure */
.split--wide { grid-template-columns: 460px 1fr; }
.split--wide .body { max-width: 560px; }

/* --- programme entries (the six guides) --------------------------------- */
.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.entry {
  display: grid; gap: 14px; padding: 14px 14px 16px;
  background: var(--paper-3); border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  transition: transform var(--click) var(--steps), border-color var(--click) var(--steps);
}
.entry:hover, .entry:focus-within { transform: translateY(-4px); border-color: var(--accent-ink); }
.entry-window {
  background: var(--ink-2); display: flex; justify-content: center; align-items: center;
  height: 210px; overflow: hidden;
}
.entry-window img { max-height: 100%; width: auto; object-fit: contain; }
.entry-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.entry-head b { font-family: var(--font-display); font-weight: 400; font-size: 15px; color: var(--accent-ink); }
.genre { display: inline-flex; align-items: center; gap: 8px; }
.genre .mask-mark { width: 15px; height: 15px; }
.genre span { font-size: 12px; font-weight: 700; letter-spacing: .09em; color: var(--on-light-mute); }
.entry .genre span { text-transform: uppercase; }
.entry .h4 { color: var(--on-light); }
.entry p { font-size: 15px; line-height: 1.68; color: var(--on-light); }

/* --- the six masks (genre key) ------------------------------------------ */
.masks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.mask-card {
  display: grid; gap: 14px; padding: 20px 20px 22px;
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius);
}
.mask-card-head { display: flex; align-items: center; gap: 12px; }
.mask-card-head .mask-mark { width: 36px; height: 36px; }
.mask-card-head b {
  font-family: var(--font-display); font-weight: 400; font-size: 26px;
  line-height: 1.04; color: var(--on-dark);
}
.mask-card p { font-size: 15px; line-height: 1.68; color: var(--on-dark-mute); }

/* --- the key sheet ------------------------------------------------------ */
.control-sheet {
  background: var(--paper-3); border: 1px solid var(--paper-line);
  border-radius: var(--radius); padding: 10px 26px 20px;
}
.control-row {
  display: flex; align-items: flex-start; gap: 20px; padding: 14px 0;
  border-top: 1px solid var(--paper-line);
}
.control-row:first-child { border-top: 0; }
.control-game { display: flex; align-items: center; gap: 10px; width: 300px; flex: none; }
.control-game b { font-family: var(--font-display); font-weight: 400; font-size: 14px; color: var(--accent-ink); }
.control-game span { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--on-light); }
.keys { display: flex; flex-wrap: wrap; gap: 8px; }
.key {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px;
  background: var(--paper-2); border: 1px solid var(--paper-line);
  border-radius: var(--radius); font-size: 12px; line-height: 1.6;
}
.key b { font-weight: 700; color: var(--on-light); }
.key span { color: var(--on-light-mute); }

/* --- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 26px; }
.faq-item {
  display: grid; grid-template-columns: 420px 1fr; gap: 34px;
  padding-bottom: 24px; border-bottom: 1px solid var(--paper-line);
}
.faq-item:last-child { border-bottom: 0; }
.faq-q { display: flex; align-items: flex-start; gap: 12px; }
.faq-q b { font-family: var(--font-display); font-weight: 400; font-size: 15px; color: var(--accent-ink); }
.faq-q h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--on-light); }
.faq-item p { font-size: 16px; line-height: 1.66; color: var(--on-light-mute); }

/* ==========================================================================
   Footer — the marquee band
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--on-dark); }

.marquee {
  background: var(--ink-2); height: 58px; display: flex; align-items: center;
  overflow: hidden; white-space: nowrap;
}
.marquee-line { display: inline-flex; }
/* The loop shifts by exactly one repeat of the band, so the reset is
   invisible at any width. main.js measures that repeat and hands over both
   custom properties; until it does, the line simply sits still. */
.marquee-line[data-marquee-run] {
  will-change: transform;
  animation: marquee var(--marquee-duration, 18s) linear infinite;
}
.marquee:hover .marquee-line,
.marquee:focus-within .marquee-line { animation-play-state: paused; }
.marquee b {
  font-size: 15px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); padding-right: 0;
}
/* two tones, alternating — which makes the colour repeat on the same
   period as the shift, so the tint never jumps when the loop comes round */
.marquee b:nth-child(even) { color: var(--on-dark-mute); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-shift, 0)); }
}

.footer-body {
  max-width: var(--shell); margin-inline: auto;
  padding: 50px var(--gutter) 40px; display: grid; gap: 34px;
}
.footer-head { display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; }
.footer-brand { display: grid; gap: 14px; max-width: 400px; }
.footer-brand .logo svg, .footer-brand .logo img { width: 38px; height: 38px; }
.footer-brand .logo b { font-size: 26px; }
.footer-brand p { font-size: 16px; color: var(--on-dark-mute); }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: grid; gap: 11px; align-content: start; }
/* the design fixes each column's measure so the block keeps its rhythm */
.footer-col--pages     { width: 150px; }
.footer-col--legal     { width: 190px; }
.footer-col--elsewhere { width: 210px; }
.footer-col h2 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.footer-col a, .footer-col span {
  font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--on-dark);
}
.footer-col a { position: relative; border-bottom: 1px solid currentColor; justify-self: start; }
/* "X" is ten pixels of type. The rule keeps hugging the word, but the
   thing you actually have to hit is padded out to a comfortable size. */
.footer-col a::after { content: ""; position: absolute; inset: -3px -7px; }
.footer-col a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.footer-col .dim { color: var(--on-dark-mute); }
.footer-col .strong { font-weight: 700; }
.footer-hairline { height: 1px; background: var(--ink-line); }
.footer-bottom { display: grid; gap: 6px; }
.footer-bottom p { font-size: 14px; line-height: 1.6; color: var(--on-dark-mute); }
.footer-bottom p:first-child { font-weight: 500; }

/* ==========================================================================
   Page head (inner pages)
   ========================================================================== */
.page-head { position: relative; background: var(--paper-2); overflow: hidden;
  padding: 34px var(--gutter) 56px; }
.page-head-inner { position: relative; z-index: 1; max-width: var(--rail); margin-inline: auto; display: grid; gap: 22px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a, .breadcrumb span {
  font-size: 12px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--on-light-mute);
}
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb [aria-current] { font-weight: 700; color: var(--on-light); text-decoration: none; }
.breadcrumb i { font-style: normal; font-size: 13px; color: var(--on-light-mute); }
.page-head .h1 { font-size: 48px; line-height: 1.04; color: var(--on-light); max-width: 900px; }
.page-head .lede { font-size: 19px; line-height: 1.64; color: var(--on-light-mute); max-width: 720px; }
.byline { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.page-head .genre .mask-mark { width: 17px; height: 24px; }
.page-head .genre span { font-size: 13px; }

/* ==========================================================================
   Game page
   ========================================================================== */
.mount-row { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.mount--gate {
  padding: 10px 10px 9px; background: var(--paper-3);
  border: 2px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 2px 0 rgba(0,0,0,.35); display: grid; gap: 8px;
}
.facts { display: grid; }
.fact {
  display: grid; grid-template-columns: 160px 1fr; gap: 18px;
  padding: 10px 0; border-top: 1px solid var(--ink-line);
}
.fact:first-child { border-top: 0; }
.fact dt { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--on-dark-mute); line-height: 1.52; }
.fact dd { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.52; color: var(--on-dark); }
.band--paper .fact, .band--paper2 .fact { border-top-color: var(--paper-line); }
/* a detail that is reachable — an address, a profile — reads as a link
   rather than as a value, the same way it does in the running text */
.fact dd a { color: var(--accent-ink); border-bottom: 1px solid currentColor; }
.band--dark .fact dd a, .band--ink2 .fact dd a { color: var(--accent); }
.fact dd a:hover { border-bottom-color: transparent; }
.band--paper .fact dt, .band--paper2 .fact dt { color: var(--on-light-mute); }
.band--paper .fact dd, .band--paper2 .fact dd { color: var(--on-light); }

/* --- guide tabs --------------------------------------------------------- */
.tab-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-btn {
  padding: 9px 14px 8px; border: 1px solid var(--paper-line); border-radius: var(--radius);
  font-size: 13px; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--on-light-mute);
}
.tab-btn:hover { color: var(--on-light); border-color: var(--accent-ink); }
.tab-btn[aria-selected="true"] {
  background: var(--on-light); border-color: var(--on-light);
  color: var(--paper-3); font-weight: 700;
}
.panel {
  display: grid; gap: 20px; padding: 28px 30px 32px;
  background: var(--paper-3); border: 1px solid var(--paper-line); border-radius: var(--radius);
}
.panel[hidden] { display: none; }
.panel-head { display: flex; align-items: center; gap: 12px; }
.panel-head .mask-mark { width: 24px; height: 24px; }
.panel-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.12; color: var(--on-light); }
.panel p { font-size: 17px; line-height: 1.68; color: var(--on-light); max-width: 820px; }
.panel .note-list { display: grid; gap: 12px; }
.panel .note-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  font-size: 17px; line-height: 1.68; color: var(--on-light);
}
.panel .note-list li b { font-family: var(--font-display); font-weight: 400; color: var(--accent-ink); }
.panel .q { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--paper-line); }
.panel .q:last-child { border-bottom: 0; padding-bottom: 0; }
.panel .q h4 { font-family: var(--font-text); font-size: 16px; font-weight: 700; color: var(--on-light); }
.panel .q p { font-size: 16px; color: var(--on-light-mute); }

/* --- others in the carrier ---------------------------------------------- */
.others { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
/* a sideways card: the slide on the left, the note beside it */
.other {
  display: flex; align-items: flex-start; gap: 16px; padding: 14px 16px;
  background: var(--ink); border: 1px solid var(--ink-line); border-radius: var(--radius);
  transition: transform var(--click) var(--steps), border-color var(--click) var(--steps);
}
.other:hover { transform: translateY(-4px); border-color: var(--accent); }
.other-window {
  flex: none; width: 86px; height: 86px; background: var(--ink-2);
  display: grid; place-items: center; overflow: hidden;
}
.other-window img { width: 100%; height: 100%; object-fit: contain; }
.other-text { display: grid; gap: 7px; }
.other b { font-size: 17px; font-weight: 700; color: var(--on-dark); }
.other .muted { font-size: 15px; line-height: 1.5; color: var(--on-dark-mute); }
.other em {
  font-style: normal; font-size: 13px; font-weight: 700; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
}

/* --- the play call ------------------------------------------------------ */
.play-cta { display: grid; gap: 20px; justify-items: start; }
/* The design keeps this as an informational link — the game lives elsewhere,
   so it is not dressed up as the site's own call to action. */
.poki-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; color: var(--accent);
}
.poki-link .mask-mark { width: 26px; height: 18px; color: var(--accent); }
.poki-link span { text-decoration: underline; text-underline-offset: 3px; }
.poki-link:hover span { text-decoration-thickness: 2px; }

/* ==========================================================================
   Catalogue (games index)
   ========================================================================== */
.genre-key { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.genre-key li { display: inline-flex; align-items: center; gap: 10px; }
.genre-key .mask-mark { width: 24px; height: 24px; }
.genre-key span { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--on-dark); }

.catalogue { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }

/* ==========================================================================
   Legal documents
   ========================================================================== */
.summary-band { background: var(--ink); color: var(--on-dark); padding: 52px var(--gutter) 56px; position: relative; overflow: hidden; }
.summary-list { display: grid; gap: 14px; max-width: var(--rail); margin-inline: auto; }
.summary-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  font-size: 16px; line-height: 1.66; color: var(--on-dark-mute);
}
.summary-list li b { font-family: var(--font-display); font-weight: 400; color: var(--accent); }

.document { display: grid; gap: 44px; max-width: 900px; }
.doc-section { display: grid; gap: 14px; }
.doc-section h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.06; color: var(--on-light); }
.doc-section h3 { font-size: 17px; font-weight: 700; color: var(--on-light); }
.doc-section p, .doc-section li { font-size: 16px; line-height: 1.66; color: var(--on-light-mute); }
.doc-section ul { display: grid; gap: 8px; }
.doc-section ul li { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.doc-section ul li::before { content: "·"; color: var(--accent-ink); font-weight: 700; }
.doc-section a { color: var(--accent-ink); border-bottom: 1px solid currentColor; }

/* ==========================================================================
   Cookie notice
   ========================================================================== */
.cookie-notice {
  position: fixed; left: 24px; bottom: 24px; z-index: 50; width: 500px; max-width: calc(100vw - 32px);
  background: var(--paper-3); border: 1px solid var(--paper-line); border-radius: var(--radius);
  box-shadow: 0 8px 0 rgba(7,8,24,.35);
  padding: 20px 22px; display: grid; gap: 14px;
}
.cookie-notice[hidden] { display: none; }
.cookie-head { display: flex; align-items: center; gap: 12px; }
.cookie-head img { width: 54px; height: 27px; object-fit: contain; }
.cookie-head b { font-family: var(--font-display); font-weight: 400; font-size: 21px; color: var(--on-light); }
.cookie-notice p { font-size: 14px; line-height: 1.6; color: var(--on-light-mute); }
.cookie-notice a { color: var(--accent-ink); border-bottom: 1px solid currentColor; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
  padding: 10px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 700;
  border: 2px solid var(--on-light); background: var(--on-light); color: var(--paper-3);
  transition: transform var(--click) var(--steps);
}
.cookie-actions button.ghost { background: none; color: var(--on-light); }
.cookie-actions button:hover { transform: translateY(-4px); }

/* ==========================================================================
   Dust in the beam
   ========================================================================== */
.dust { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.dust i {
  position: absolute; display: block; border-radius: 50%;
  background: var(--on-dark-mute); opacity: .35;
}

/* ==========================================================================
   Responsive — 1368 → 360
   ========================================================================== */
@media (max-width: 1200px) {
  :root { --gutter: 48px; }
  .hero-inner { min-height: 0; padding-top: 64px; }
  .screen { position: static; width: 100%; max-width: 490px; margin-top: 40px; transform: none; }
  .screen-caption { position: static; margin-top: 12px; }
  .hero-hand, .hero-halation-edge { display: none; }
  .hero-text { width: 100%; }
  .cone, .plate-cone, .ghost-mark, .plate-hand { display: none; }
  .carrier-label { margin-left: 0; }
  .carrier-slots { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .slot { padding-top: calc(var(--drop, 0px) / 2); }
  .others { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .entries, .masks, .catalogue { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide { grid-template-columns: 1fr; gap: 28px; }
  .mount-row { grid-template-columns: 1fr; gap: 28px; }
  .faq-item { grid-template-columns: 1fr; gap: 12px; }
  .control-row { flex-direction: column; gap: 10px; }
  .control-game { width: auto; }
  .h1 { font-size: 46px; }
  .page-head .h1 { font-size: 38px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }
  .band { padding: 40px var(--gutter) 44px; }
  .plate > .impression { position: static; margin-bottom: 18px; }
  .sheet-edge, .plate-floor { display: none; }
  .plate--floor > .impression { bottom: auto; }
  .footer-col--pages, .footer-col--legal, .footer-col--elsewhere { width: auto; }

  .header-row { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px var(--gutter); }
  .logo svg, .logo img { width: 28px; height: 28px; }
  .logo b { font-size: 20px; }
  .tab-rail { gap: 7px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .tab-rail::-webkit-scrollbar { display: none; }
  .tab { flex: none; font-size: 12px; padding: 9px 14px 8px; }

  .hero { padding: 0 var(--gutter); }
  .hero-inner { padding-top: 40px; }
  .h1 { font-size: 34px; }
  .hero-text { gap: 18px; }
  .hero-text .lede, .lede { font-size: 16px; }
  .screen { height: 300px; padding: 16px; }
  .carrier { margin-top: 44px; }
  .carrier-slots { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  /* no room to stagger or tilt at this width */
  .slot { padding-top: 0; }
  .mount { width: 100%; transform: none; }
  .slot a:hover .mount, .slot a:focus-visible .mount { transform: translateY(-4px); }

  .entries, .masks, .catalogue, .others { grid-template-columns: 1fr; gap: 20px; }
  .h2 { font-size: 28px; }
  .h3 { font-size: 24px; }
  .page-head { padding: 24px var(--gutter) 36px; }
  .page-head .h1 { font-size: 30px; }
  .page-head .lede { font-size: 16px; }
  .control-sheet { padding: 8px 16px 16px; }
  .panel { padding: 20px 18px 24px; }
  .panel p, .panel .note-list li { font-size: 16px; }
  .footer-body { padding: 36px var(--gutter) 32px; gap: 26px; }
  .footer-head { flex-direction: column; gap: 28px; }
  .footer-links { gap: 28px; flex-direction: column; }
  .cookie-notice { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px; }
  .cookie-head img { width: 46px; height: 23px; }
}

/* ==========================================================================
   prefers-reduced-motion — everything lands in its final state
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee-line { animation: none !important; transform: none !important; }
  .slot a:hover .mount, .entry:hover, .other:hover, .btn:hover,
  .cookie-actions button:hover { transform: none !important; }
}

/* --- contact: what lands in the inbox ----------------------------------- */
.inbox-list { display: grid; gap: 12px; }
.inbox-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  font-size: 16px; line-height: 1.6; color: var(--on-light);
}
.inbox-list .mask-mark { width: 16px; height: 16px; margin-top: 3px; }

/* --- about: section heads and method steps ------------------------------ */
.about-head { display: flex; align-items: center; gap: 14px; }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.method-step {
  display: grid; gap: 8px; align-content: start; padding: 14px;
  background: var(--ink); border: 1px solid var(--ink-line); border-radius: var(--radius);
}
.method-step em {
  font-family: var(--font-display); font-style: normal; font-size: 22px;
  line-height: 1.04; color: var(--accent);
}
.method-step b { font-size: 14px; font-weight: 700; color: var(--on-dark); }
.method-step span { font-size: 13px; line-height: 1.6; color: var(--on-dark-mute); }
.editorial-aside {
  display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--ink-line);
}
.editorial-aside p { flex: 1 1 260px; }
@media (max-width: 900px) {
  .method-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .method-steps { grid-template-columns: 1fr; }
}

.also-link { padding: 10px 0; border-top: 1px solid var(--paper-line); }
