/* =========================================================================
   Faenjarnnova — signal-book landing page
   Design frame: 1368 × 7560, 72px gutter, 1224px content column
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  /* paper & ink */
  --paper:      #f4efe3;
  --paper-warm: #eae2cf;
  --ink:        #1c2028;
  --ink-soft:   #474c56;
  --rule:       #c9c0ab;
  --white:      #ffffff;

  /* flags */
  --red:        #c62f28;
  --red-deep:   #a8261f;
  --gold:       #f2be22;
  --blue:       #1d3f8f;

  /* type */
  --display: "Rokkitt", Georgia, "Times New Roman", serif;
  --text:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* metrics */
  --gutter:  72px;
  --content: 1224px;
  --frame:   1368px;
  --section-y: 108px;
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; font-weight: 600; font-size: 15px;
}
.skip-link:focus { left: 0; }

/* ---------- layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  container-type: inline-size;
}

.section { padding: var(--section-y) var(--gutter); scroll-margin-top: 72px; }

.section__head {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 792px;
  margin-bottom: 48px;
}
.section__head--tight { gap: 0; }

/* ---------- type scale ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.015em;
}

.lede {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 648px;
}

.eyebrow {
  font-family: var(--text);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--dim  { color: var(--rule); }

.link {
  font-family: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-position: from-font;
  text-decoration-thickness: from-font;
  transition: color .15s ease;
}
.link:hover { color: var(--red); }
.link--soft { color: var(--ink-soft); }
.link--gold { color: var(--gold); }
.link--on-blue:hover { color: var(--gold); }

/* ---------- hoist (pairs of signal flags) ---------- */
.hoist { display: flex; align-items: center; gap: 10px; }
.hoist__flags { display: flex; align-items: flex-start; gap: 2px; flex: none; }
.hoist__flags img { width: 22px; height: 22px; flex: none; }
.hoist__flags--md img { width: 20px; height: 20px; }
.hoist__flags--sm img { width: 18px; height: 18px; }
.hoist__label {
  font-weight: 700; font-size: 13px; line-height: 1.55;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}

/* =========================================================================
   header
   ========================================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
  padding-inline: var(--gutter);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__flag { width: 30px; height: 30px; flex: none; }
.logo__word {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(22px, 2vw, 26px); line-height: 1.05; letter-spacing: -0.01em;
}

.menu-button { display: flex; align-items: center; gap: 12px; }
.menu-button__label { font-weight: 600; font-size: 15px; line-height: 1.55; }
.menu-button__icon {
  width: 44px; height: 44px; flex: none;
  border: 1.5px solid var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background .15s ease;
}
.menu-button__icon .bar {
  width: 18px; height: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-button:hover .menu-button__icon { background: var(--gold); }
.menu-button[aria-expanded="true"] .menu-button__icon { background: var(--gold); }
.menu-button[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =========================================================================
   hero
   ========================================================================= */
.hero { background: var(--paper); overflow: hidden; }
.hero__inner {
  position: relative;
  max-width: var(--frame);
  margin-inline: auto;
  height: min(57.9vw, 792px);
  min-height: 640px;
}

/* 72px module grid at 50% opacity */
.hero__grid {
  position: absolute; inset: 0;
  opacity: .5;
  background-image:
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 72px);
  background-position: 72px 72px, 72px 72px;
  pointer-events: none;
}

.hero__word {
  position: absolute;
  left: -2.485%;
  top: -2.742%;
  font-family: var(--display);
  font-weight: 900;
  font-size: min(34.85vw, 476.8px);
  line-height: .76;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--ink);
  pointer-events: none;
}

/* halyard: the vertical line and the flags strung on it */
.halyard { position: absolute; inset: 0; pointer-events: none; }
.halyard__line {
  position: absolute; top: 0; bottom: 0;
  left: 74.63%; width: 2px; background: var(--ink);
}
.halyard__flag {
  --flag: min(8.48vw, 116px);
  position: absolute;
  width: calc(var(--flag) * 154 / 116);
  height: calc(var(--flag) * 154 / 116);
  /* the exported SVG carries a drop shadow: content sits at 19/12 inside 154 */
  translate: -50% calc(-50% + var(--flag) * 7 / 116);
}
.halyard__toggle {
  position: absolute;
  width: min(.73vw, 10px); height: min(.73vw, 10px);
  min-width: 8px; min-height: 8px;
  translate: -50% -50%;
}

.halyard__flag--g { left: 74.52%; top:  3.09%; rotate:  2.5deg; }
.halyard__flag--u { left: 74.82%; top: 20.01%; rotate: -1.5deg; }
.halyard__flag--i { left: 74.63%; top: 37.75%; rotate:  1deg;   }
.halyard__flag--d { left: 74.85%; top: 54.79%; rotate: -2deg;   }
.halyard__flag--e { left: 74.59%; top: 72.66%; rotate:  1.5deg; }

.halyard__toggle--1 { left: 74.71%; top: 11.49%; }
.halyard__toggle--2 { left: 74.71%; top: 28.91%; }
.halyard__toggle--3 { left: 74.71%; top: 46.34%; }
.halyard__toggle--4 { left: 74.71%; top: 63.76%; }
.halyard__toggle--5 { left: 74.71%; top: 81.19%; }

.hero__text {
  position: absolute;
  left: 5.263%; top: 44.55%;
  width: 57.89%;
  display: flex; flex-direction: column; gap: 24px;
}
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: min(6.43vw, 88px);
  line-height: .96; letter-spacing: -0.02em;
}
.hero__standfirst { display: flex; flex-direction: column; gap: 22px; max-width: 576px; }
.hero__standfirst p { font-size: clamp(17px, 1.46vw, 20px); line-height: 1.5; }
.hero__links { display: flex; flex-wrap: wrap; gap: 32px; font-size: 18px; }

.code-key {
  position: absolute;
  left: 82.16%; top: 58.18%;
  width: 16.84%;
  min-width: 190px;
}
.code-key .eyebrow { margin-bottom: 10px; }
.code-key__list li {
  display: flex; align-items: center; gap: 14px;
  padding-block: 9px;
  border-bottom: 1px solid var(--rule);
}
.code-key__list img { width: 22px; height: 22px; flex: none; }
.code-key__list b {
  font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1;
}
.code-key__list span { font-size: 14px; color: var(--ink-soft); }

/* =========================================================================
   G games — the signal table
   ========================================================================= */
.section--games { padding-top: 72px; }

.signal-table { border-top: 1.5px solid var(--ink); }

.signal-table__head,
.signal-row {
  display: grid;
  grid-template-columns: 264px 180px 360px 180px 1fr;
  gap: 24px;
  align-items: center;
}

.signal-table__head {
  padding-block: 12px;
  border-bottom: 1px solid var(--ink);
  font-weight: 700; font-size: 12px; line-height: 1.55;
  letter-spacing: 0.1em; text-transform: uppercase;
  align-items: start;
}

.signal-row {
  padding-block: 20px;
  border-bottom: 1px solid var(--rule);
  /* cover + title share the first 264px track */
  grid-template-columns: 264px 180px 360px 180px 1fr;
}
.signal-row__cover {
  grid-column: 1; grid-row: 1;
  width: 104px; height: 104px;
  border: 1.5px solid var(--ink);
  object-fit: cover;
  background: var(--paper-warm);
}
.signal-row__title {
  grid-column: 1; grid-row: 1;
  justify-self: end; align-self: center;
  width: 136px;
  font-family: var(--display); font-weight: 700;
  font-size: 28px; line-height: 1; letter-spacing: -0.01em;
}
.signal-row .col-genre    { grid-column: 2; }
.signal-row .col-what     { grid-column: 3; font-size: 16px; color: var(--ink-soft); }
.signal-row .col-controls { grid-column: 4; font-size: 14px; }
.signal-row .col-link     { grid-column: 5; justify-self: end; align-self: center; font-size: 15px; white-space: nowrap; }

/* =========================================================================
   M methodology
   ========================================================================= */
.section--methodology { background: var(--paper-warm); }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--ink);
}
.step {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px 28px 8px;
  border-left: 1px solid var(--rule);
}
.step:first-child { padding-left: 0; border-left: 0; }
.step__pennant { width: 54.4px; height: 34px; }
.step__title {
  font-family: var(--display); font-weight: 700;
  font-size: 24px; line-height: 1.1;
}
.step__text { font-size: 16px; color: var(--ink-soft); }

/* =========================================================================
   U controls
   ========================================================================= */
.controls-table { border-top: 1.5px solid var(--ink); }

.controls-row {
  display: flex; gap: 24px; align-items: flex-start;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
}
.controls-row__game {
  display: flex; align-items: center; gap: 12px;
  width: 288px; flex: none;
}
.controls-row__game h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 22px; line-height: 1.1;
}
.controls-row__keys {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  flex: 1 1 0; min-width: 0;
}
.pair { display: flex; align-items: center; gap: 8px; }
.pair span { font-size: 15px; color: var(--ink-soft); white-space: nowrap; }

kbd {
  font-family: var(--text); font-weight: 700;
  font-size: 13px; line-height: 1.55; letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 6px 10px;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(28, 32, 40, .18);
}

/* =========================================================================
   A about
   ========================================================================= */
.section--about { background: var(--gold); }

.about { display: flex; gap: 72px; align-items: flex-start; }
.about__hoist { display: flex; flex-direction: column; gap: 4px; flex: none; }
.about__hoist img { width: 100.8px; height: 100.8px; }
.about__text { display: flex; flex-direction: column; gap: 20px; max-width: 864px; }
.about__body {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25;
}
.about .link { font-size: 18px; }

/* =========================================================================
   N log
   ========================================================================= */
.log { display: flex; gap: 72px; align-items: flex-start; }
.log__head { display: flex; flex-direction: column; gap: 18px; width: 360px; flex: none; }
.log__head .lede { max-width: 360px; }
.log__list { flex: 1 1 0; min-width: 0; border-top: 1.5px solid var(--ink); }
.log__entry {
  display: flex; gap: 32px; align-items: flex-start;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
}
.log__entry time {
  width: 216px; flex: none;
  font-weight: 600; font-size: 15px; color: var(--red-deep);
}
.log__entry p { flex: 1 1 0; min-width: 0; font-size: 16px; }

/* =========================================================================
   T marquee
   ========================================================================= */
.marquee {
  background: var(--red);
  height: 72px;
  display: flex; align-items: center;
  overflow: hidden;
  user-select: none;
}
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee__group li { display: flex; align-items: center; gap: 28px; flex: none; }
.marquee__group span {
  font-family: var(--display); font-weight: 700;
  font-size: 28px; line-height: 1.05; letter-spacing: 0.02em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--paper);
}
.marquee__group img { width: 22px; height: 22px; flex: none; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================================
   Q verdicts
   ========================================================================= */
.verdicts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--ink);
}
.verdict {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px 28px 32px;
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.verdict:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.verdict blockquote {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: 23px; line-height: 1.25;
}
.verdict figcaption { font-size: 15px; }
.verdicts__sign { margin-top: 48px; font-size: 15px; color: var(--ink-soft); }

/* =========================================================================
   K contact
   ========================================================================= */
.section--contact { background: var(--blue); color: var(--white); }
.contact { display: flex; gap: 72px; align-items: flex-start; justify-content: space-between; }
.contact__text { display: flex; flex-direction: column; gap: 18px; max-width: 576px; }
.contact__text p { font-size: 18px; }
.contact__email { display: flex; flex-direction: column; gap: 14px; width: 504px; flex: none; }
.contact__address a {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.1;
  text-decoration: underline; text-underline-position: from-font;
  overflow-wrap: anywhere;
  transition: color .15s ease;
}
.contact__address a:hover { color: var(--gold); }
.contact .link { font-size: 16px; }

/* =========================================================================
   F faq
   ========================================================================= */
.faq { display: flex; gap: 72px; align-items: flex-start; }
.faq__head { width: 360px; flex: none; }
.acc { flex: 1 1 0; min-width: 0; border-top: 1.5px solid var(--ink); }

.acc__item { border-bottom: 1px solid var(--rule); }
.acc__item.is-open { border-bottom-color: var(--ink); }
.acc__item h3 { margin: 0; font: inherit; }

.acc__trigger {
  display: flex; align-items: center; gap: 20px;
  width: 100%; padding-block: 22px;
  text-align: left;
}
.acc__flag { width: 26px; height: 26px; flex: none; }
.acc__flag--open { display: none; }
.acc__item.is-open .acc__flag--open   { display: block; }
.acc__item.is-open .acc__flag--closed { display: none; }

.acc__q {
  flex: 1 1 0; min-width: 0;
  font-family: var(--display); font-weight: 500;
  font-size: 22px; line-height: 1.15;
  transition: color .15s ease;
}
.acc__item.is-open .acc__q { font-weight: 700; }
.acc__trigger:hover .acc__q { color: var(--red); }

/* plus / minus */
.acc__sign { position: relative; width: 18px; height: 18px; flex: none; }
.acc__sign::before,
.acc__sign::after { content: ""; position: absolute; background: var(--ink); }
.acc__sign::before { left: 0; top: 8px; width: 18px; height: 2px; }
.acc__sign::after  { left: 8px; top: 0; width: 2px; height: 18px; transition: opacity .2s ease, transform .2s ease; }
.acc__item.is-open .acc__sign::after { opacity: 0; transform: scaleY(0); }

.acc__body {
  display: flex; flex-direction: column; gap: 12px;
  padding: 0 0 6px 46px; margin-top: -8px;
}
.acc__body p { font-size: 18px; max-width: 792px; }

/* =========================================================================
   footer
   ========================================================================= */
.footer {
  background: var(--ink); color: var(--paper);
  padding: 72px var(--gutter) 32px;
}
.footer .wrap { display: flex; flex-direction: column; gap: 56px; }

.footer__links { display: flex; gap: 36px; align-items: flex-start; }
.footer__about { display: flex; flex-direction: column; gap: 16px; width: 432px; flex: none; font-size: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; flex: 1 1 0; min-width: 0; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 16px; text-decoration: none; white-space: nowrap; transition: color .15s ease; }
.footer__col a:hover { color: var(--gold); }

.footer__wordmark { display: flex; gap: 20px; align-items: flex-end; overflow: hidden; }
.footer__word {
  font-family: var(--display); font-weight: 900;
  font-size: calc(12.43cqw - 2.7px);
  line-height: .8; letter-spacing: -0.02em;
  white-space: nowrap;
}
.footer__flag { width: 5.3cqw; height: 5.3cqw; max-width: 64.8px; max-height: 64.8px; flex: none; }

.footer__legal {
  display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap;
  border-top: 1px solid var(--ink-soft);
  padding-top: 16px;
  font-size: 15px; color: var(--rule);
}

/* =========================================================================
   responsive
   ========================================================================= */

/* ---- ≤ 1180px: tables start to give ---- */
@media (max-width: 1180px) {
  :root { --gutter: 48px; --section-y: 88px; }

  .signal-table__head { display: none; }
  .signal-row {
    grid-template-columns: 104px 1fr;
    gap: 16px 20px;
    align-items: start;
    padding-block: 24px;
  }
  .signal-row__cover { grid-column: 1; grid-row: 1 / span 5; }
  .signal-row__title { grid-column: 2; grid-row: 1; width: auto; justify-self: start; font-size: 26px; }
  .signal-row .col-genre    { grid-column: 2; grid-row: 2; }
  .signal-row .col-what     { grid-column: 2; grid-row: 3; }
  .signal-row .col-controls { grid-column: 2; grid-row: 4; color: var(--ink-soft); }
  .signal-row .col-link     { grid-column: 2; grid-row: 5; justify-self: start; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); padding-bottom: 28px; }

  .verdicts { grid-template-columns: repeat(2, 1fr); }
  .verdict:nth-child(3n + 1) { padding-left: 28px; border-left: 1px solid var(--rule); }
  .verdict:nth-child(2n + 1) { padding-left: 0; border-left: 0; }

}

/* ---- ≤ 1024px: hero unstacks, side-by-side blocks wrap ---- */
@media (max-width: 1024px) {
  .hero { padding: 0 var(--gutter) 72px; }
  .hero__inner { height: auto; min-height: 0; display: flex; flex-direction: column; gap: 32px; }
  .hero__grid { display: none; }

  .hero__word {
    position: static;
    font-size: clamp(88px, 22vw, 260px);
    margin-top: 24px;
  }

  .halyard {
    position: static;
    display: flex; align-items: center; gap: 4px;
    flex-wrap: wrap;
    order: 3;
  }
  .halyard__line { display: none; }
  .halyard__flag {
    --flag: clamp(56px, 13vw, 96px);
    position: static; translate: none; rotate: none;
    margin: calc(var(--flag) * -12 / 116) calc(var(--flag) * -19 / 116);
  }
  .halyard__toggle { display: none; }

  .hero__text { position: static; width: auto; order: 2; }
  .hero__title { font-size: clamp(40px, 7.4vw, 72px); }
  .hero__standfirst { max-width: 640px; }

  .code-key { position: static; width: 100%; max-width: 360px; order: 4; }

  .about { flex-direction: column; gap: 32px; }
  .about__hoist { flex-direction: row; gap: 4px; }

  .log, .faq { flex-direction: column; gap: 32px; }
  .log__head, .faq__head { width: auto; }
  .log__head .lede { max-width: 648px; }

  .contact { flex-direction: column; gap: 40px; }
  .contact__email { width: 100%; }

  .footer__links { flex-wrap: wrap; gap: 32px 36px; }
  .footer__about { width: 100%; }
  .footer__col { flex: 1 1 180px; }
}

/* ---- ≤ 760px: single column throughout ---- */
@media (max-width: 760px) {
  :root { --gutter: 24px; --section-y: 64px; }

  .header { position: static; }
  .menu-button__label { display: none; }


  .hero__standfirst p { font-size: 17px; }
  .hero__links { gap: 12px; flex-direction: column; font-size: 16px; }

  .signal-row { grid-template-columns: 80px 1fr; }
  .signal-row__cover { width: 80px; height: 80px; }
  .signal-row__title { font-size: 22px; }

  .steps { grid-template-columns: 1fr; }
  .step { padding: 24px 0 8px; border-left: 0; }
  .step:not(:last-child) { border-bottom: 1px solid var(--rule); padding-bottom: 24px; }

  .controls-row { flex-direction: column; gap: 14px; }
  .controls-row__game { width: auto; }
  .controls-row__keys { gap: 10px 20px; }
  .pair span { white-space: normal; }

  .about__hoist img { width: 72px; height: 72px; }

  .log__entry { flex-direction: column; gap: 4px; }
  .log__entry time { width: auto; }

  .marquee { height: 56px; }
  .marquee__group span { font-size: 20px; }
  .marquee__group, .marquee__group li { gap: 18px; }

  .verdicts { grid-template-columns: 1fr; }
  .verdict,
  .verdict:nth-child(3n + 1),
  .verdict:nth-child(2n + 1) { padding: 24px 0 28px; border-left: 0; }
  .verdict blockquote { font-size: 20px; }

  .acc__trigger { gap: 14px; }
  .acc__q { font-size: 19px; }
  .acc__body { padding-left: 40px; }
  .acc__body p { font-size: 16px; }

  .footer { padding-top: 56px; }
  .footer .wrap { gap: 40px; }
  .footer__legal { flex-direction: column; gap: 8px; }
}

/* =========================================================================
   shared page furniture — added for the full site
   ========================================================================= */

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

.linkish {
  font: inherit; color: inherit;
  text-decoration: underline; text-underline-position: from-font;
  cursor: pointer;
}
.linkish:hover { color: var(--red); }

.h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1; letter-spacing: -0.015em;
}

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 15px; line-height: 1.55;
}
.crumbs a { color: var(--ink-soft); text-decoration: underline; text-underline-position: from-font; }
.crumbs a:hover { color: var(--red); }
.crumbs__sep { color: var(--ink-soft); }
.crumbs [aria-current] { font-weight: 600; }

/* ---------- page intro (catalogue, guide, about) ---------- */
.page-intro { padding: 54px var(--gutter) 72px; }
.page-intro .wrap { display: flex; flex-direction: column; gap: 28px; }
.page-intro__row { display: flex; gap: 72px; align-items: flex-start; }
.page-intro__head { display: flex; flex-direction: column; gap: 18px; max-width: 864px; }
.page-intro__hoist { display: flex; flex-direction: column; gap: 4px; flex: none; }
.page-intro__hoist img { width: 108px; height: 108px; }

/* ---------- genre key ---------- */
.genre-key { border-top: 1.5px solid var(--ink); padding-top: 16px; }
.genre-key ul { display: flex; flex-wrap: wrap; gap: 12px 32px; }

/* =========================================================================
   code book — full-screen menu overlay
   ========================================================================= */
.code-book {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper-warm);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.code-book[hidden] { display: none; }
.code-book__bar {
  background: var(--paper-warm);
  border-bottom: 1.5px solid var(--ink);
  padding-inline: var(--gutter);
  flex: none;
}
.code-book__body {
  display: flex; gap: 72px; align-items: flex-start;
  padding: 72px var(--gutter);
  width: 100%; max-width: calc(var(--content) + var(--gutter) * 2);
}
.code-book__list {
  width: 720px; flex: none;
  display: flex; flex-direction: column;
  border-top: 1.5px solid var(--ink);
}
.code-book__nav {
  display: flex; align-items: center; gap: 28px;
  padding-block: 18px;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(40px, 7vw, 96px); line-height: .95; letter-spacing: -0.02em;
  transition: color .15s ease;
}
.code-book__nav:hover,
.code-book__nav.is-current { color: var(--red-deep); }
.code-book__flag { flex: none; width: 64px; height: 64px; display: block; }
.code-book__flag img { width: 64px; height: 64px; }
/* the G hoist ships with its drop shadow baked in: 64px of art inside an 84px box */
.code-book__flag--shadowed { overflow: visible; }
.code-book__flag--shadowed img {
  width: 84px; height: 84px;
  margin: -6px -10px -14px -10px;
}

.code-book__side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.code-book__guides { display: flex; flex-direction: column; gap: 12px; }
.code-book__guides a {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; text-decoration: none;
  transition: color .15s ease;
}
.code-book__guides a:hover { color: var(--red); }
.hoist__flags--xs img { width: 14px; height: 14px; }
.code-book__legal-head { margin-top: 12px; }
.code-book__legal { font-size: 15px; }
.code-book__legal a { text-decoration: none; }
.code-book__legal a:hover { color: var(--red); text-decoration: underline; }
.menu-button--close .menu-button__icon { gap: 0; }
.menu-button--close .menu-button__icon img { width: 18px; height: 18px; }

body.is-locked { overflow: hidden; }

/* =========================================================================
   cookie banner
   ========================================================================= */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 90;
  width: min(500px, calc(100vw - 48px));
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 0 12px 32px rgba(28, 32, 40, .22);
}
.cookie[hidden] { display: none; }
.cookie__head { display: flex; align-items: center; gap: 12px; }
.cookie__head img { width: 26px; height: 26px; flex: none; }
.cookie__title {
  font-family: var(--display); font-weight: 700;
  font-size: 26px; line-height: 1.1; margin: 0;
}
.cookie__text { font-size: 15px; }
.cookie__manage { display: flex; flex-direction: column; gap: 10px; }
.cookie__option { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.cookie__option input { margin-top: 4px; flex: none; }
.cookie__actions { display: flex; gap: 10px; align-items: stretch; }
.cookie__button {
  flex: 1 1 0; min-width: 0;
  background: var(--white);
  border: 1.5px solid var(--ink);
  padding: 13px 12px;
  font-weight: 700; font-size: 15px; line-height: 1.55; text-align: center;
  transition: background .15s ease;
}
.cookie__button:hover { background: var(--gold); }
.cookie__button[hidden] { display: none; }
.cookie__policy {
  font-size: 14px; color: var(--ink-soft);
  text-decoration: underline; text-underline-position: from-font;
}
.cookie__policy:hover { color: var(--red); }

.footer__manage {
  font-size: 16px; text-align: left;
  color: var(--paper);
  transition: color .15s ease;
}
.footer__manage:hover { color: var(--gold); }

/* =========================================================================
   catalogue sheets
   ========================================================================= */
.sheet {
  position: relative;
  display: flex; gap: 72px; align-items: center;
  min-height: 720px;
  padding: 72px var(--gutter);
  border-top: 1.5px solid var(--ink);
  overflow: hidden;
}
.sheet--alt { background: var(--paper-warm); }
.sheet__cover {
  flex: none; display: block;
  width: 504px; height: 504px;
  border: 1.5px solid var(--ink);
  box-shadow: 0 14px 36px rgba(28, 32, 40, .2);
  transition: transform .18s ease-out, box-shadow .18s ease-out;
}
.sheet__cover img { width: 100%; height: 100%; object-fit: cover; }
.sheet__cover:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(28, 32, 40, .26); }
.sheet__text { width: 576px; flex: none; display: flex; flex-direction: column; gap: 22px; }
.eyebrow--soft { color: var(--ink-soft); }
.sheet__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(38px, 5.3vw, 72px); line-height: .95; letter-spacing: -0.02em;
}
.sheet__title a { text-decoration: none; }
.sheet__title a:hover { text-decoration: underline; text-underline-position: from-font; }
.sheet__desc { font-size: 18px; }
.sheet__facts { border-top: 1px solid var(--ink); margin: 0; }
.sheet__fact {
  display: flex; gap: 16px; align-items: flex-start;
  padding-block: 9px;
  border-bottom: 1px solid var(--rule);
}
.sheet__fact dt {
  width: 120px; flex: none;
  font-weight: 700; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.sheet__fact dd { margin: 0; flex: 1 1 0; min-width: 0; font-size: 15px; }
.sheet__link { font-size: 18px; }

.sheet__edge {
  position: absolute; left: 93.16%; top: -21.5px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  pointer-events: none;
}
.sheet__edge-line { width: 2px; height: 20px; background: var(--ink); flex: none; }
/* 144px of art inside a 190px box that carries the drop shadow */
.sheet__edge-flag {
  --ef: 144px;
  width: calc(var(--ef) * 190 / 144); height: calc(var(--ef) * 190 / 144);
  margin: calc(var(--ef) * -14 / 144) calc(var(--ef) * -23 / 144) calc(var(--ef) * -32 / 144);
  flex: none;
}

/* =========================================================================
   guide page
   ========================================================================= */
.guide-intro { align-items: flex-start; }
.guide-intro__text { width: 720px; flex: none; display: flex; flex-direction: column; gap: 22px; }
.guide-intro__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(40px, 5.85vw, 80px); line-height: .95; letter-spacing: -0.02em;
}
.guide-intro__desc { font-size: clamp(18px, 1.54vw, 21px); line-height: 1.5; }
.guide-intro__byline { font-size: 15px; color: var(--ink-soft); }
.guide-intro__aside { flex: 1 1 0; min-width: 0; display: flex; gap: 18px; align-items: flex-start; }
.guide-intro__cover {
  width: 360px; height: 360px; flex: none; object-fit: cover;
  border: 1.5px solid var(--ink);
  box-shadow: 0 12px 30px rgba(28, 32, 40, .2);
}
.guide-intro__hoist { display: flex; flex-direction: column; gap: 4px; flex: none; }
.guide-intro__hoist img { width: 56px; height: 56px; }

.signal-card { background: var(--paper-warm); padding: 43.2px var(--gutter); }
.signal-card .wrap { display: flex; flex-direction: column; gap: 16px; }
.card__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--ink);
  margin: 0;
}
.card__fact {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 14px 16px;
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.card__fact:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.card__fact dt {
  font-weight: 700; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.card__fact dd { margin: 0; font-weight: 500; font-size: 16px; }

.guide-sections { padding: 72px var(--gutter); }
.guide-body { display: flex; gap: 72px; align-items: flex-start; }
.acc--guide { width: 864px; flex: none; }
.acc--guide .acc__q { font-size: 26px; }
.acc__count { font-size: 15px; color: var(--ink-soft); flex: none; }

.desk-note {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
  border-top: 1.5px solid var(--ink);
  padding-top: 22px;
}
.desk-note blockquote {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: 26px; line-height: 1.25;
}
.desk-note__sign { font-size: 15px; color: var(--ink-soft); }

.where {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 28px;
  max-width: 864px;
  color: var(--ink-soft);
}
.where p { font-size: 16px; max-width: 720px; }
.where .link { font-size: 16px; color: var(--ink-soft); }
.where .link:hover { color: var(--red); }

.tips { display: flex; flex-direction: column; gap: 12px; counter-reset: tip; }
.tips li {
  display: flex; gap: 14px;
  font-size: 18px; line-height: 1.55;
  counter-increment: tip;
}
.tips li::before {
  content: counter(tip);
  flex: none; width: 26px;
  font-family: var(--display); font-weight: 800; font-size: 20px;
  color: var(--red-deep);
}

.related { display: flex; flex-direction: column; gap: 14px; }
.related a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.related a span { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.related a:hover span { color: var(--red); text-decoration: underline; }
.related p { font-size: 16px; color: var(--ink-soft); }

.qa-list { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.qa dt { font-weight: 700; font-size: 17px; }
.qa dd { margin: 4px 0 0; font-size: 17px; color: var(--ink-soft); }

/* =========================================================================
   about + legal — two-column rows
   ========================================================================= */
.row-sections { padding: 0 var(--gutter) 72px; }
.row-table { border-top: 1.5px solid var(--ink); }
.row-sec {
  display: flex; gap: 72px; align-items: flex-start;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule);
}
.row-sec h2 {
  width: 360px; flex: none;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1;
}
.row-sec__body { width: 720px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.row-sec__body p { font-size: 18px; }

.reasons { display: flex; flex-direction: column; gap: 12px; }
.reasons li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.reasons img { width: 14px; height: 14px; flex: none; }

.contact-rows { border-top: 1px solid var(--ink); margin: 0; }
.contact-rows > div {
  display: flex; gap: 16px; align-items: flex-start;
  padding-block: 10px;
  border-bottom: 1px solid var(--rule);
}
.contact-rows dt {
  width: 110px; flex: none;
  font-weight: 700; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.contact-rows dd { margin: 0; flex: 1 1 0; min-width: 0; font-weight: 600; font-size: 16px; }

.page-intro--legal { padding-bottom: 54px; }
.page-intro--legal .wrap { gap: 24px; }
.legal__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(40px, 6.4vw, 88px); line-height: .95; letter-spacing: -0.02em;
}
.legal__updated { font-weight: 600; font-size: 15px; color: var(--red-deep); }
.legal__lede { font-size: clamp(18px, 1.54vw, 21px); line-height: 1.5; max-width: 792px; }

/* =========================================================================
   motion — hero hoist, marquee, row hover
   ========================================================================= */

/* the hoist runs up the halyard one flag at a time, then rests */
.halyard__flag {
  --ty: calc(-50% + var(--flag) * 7 / 116);
  translate: -50% var(--ty);
  animation: flag-rise .62s cubic-bezier(.22, .68, .35, 1) backwards;
}
.halyard__flag--g { animation-delay: .10s; }
.halyard__flag--u { animation-delay: .24s; }
.halyard__flag--i { animation-delay: .38s; }
.halyard__flag--d { animation-delay: .52s; }
.halyard__flag--e { animation-delay: .66s; }

@keyframes flag-rise {
  from { translate: -50% calc(var(--ty) + 128px); opacity: 0; }
  to   { translate: -50% var(--ty); opacity: 1; }
}

.halyard__toggle { animation: toggle-in .3s ease-out backwards .8s; }
@keyframes toggle-in { from { opacity: 0; } to { opacity: 1; } }

/* the running line stops when you want to read it */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* game row: band tint, hoist rises 8px, title underlines — 180ms ease-out */
.signal-row { position: relative; transition: background .18s ease-out, border-color .18s ease-out; }
.signal-row__link { position: absolute; inset: 0; z-index: 1; }
.signal-row .hoist__flags,
.signal-row__title { transition: transform .18s ease-out; }
.signal-row:hover,
.signal-row:focus-within {
  background: var(--paper-warm);
  border-bottom-color: var(--ink);
  border-bottom-width: 1.5px;
}
.signal-row:hover .hoist__flags,
.signal-row:focus-within .hoist__flags { transform: translateY(-8px); }
.signal-row:hover .signal-row__title,
.signal-row:focus-within .signal-row__title { text-decoration: underline; text-underline-position: from-font; }

@media (prefers-reduced-motion: reduce) {
  .halyard__flag, .halyard__toggle { animation: none; opacity: 1; }
  .marquee__track { animation: none; }
  .sheet__cover:hover { transform: none; }
}

/* =========================================================================
   responsive — the pages added above
   ========================================================================= */
@media (max-width: 1180px) {
  .code-book__list { width: 46%; }
  .sheet__cover { width: 40vw; height: 40vw; }
  .sheet__text { width: auto; flex: 1 1 0; min-width: 0; }
  .guide-intro__text { width: 58%; }
  .guide-intro__cover { width: 280px; height: 280px; }
  .acc--guide { width: auto; flex: 1 1 0; min-width: 0; }
  .card__grid { grid-template-columns: repeat(2, 1fr); }
  .card__fact:nth-child(4n + 1) { padding-left: 14px; border-left: 1px solid var(--rule); }
  .card__fact:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .row-sec h2 { width: 280px; }
  .row-sec__body { width: auto; flex: 1 1 0; min-width: 0; }
}

@media (max-width: 1024px) {
  .page-intro__row, .guide-intro { flex-direction: column; gap: 32px; }
  .page-intro__hoist { flex-direction: row; }
  .guide-intro__text { width: auto; }
  .guide-intro__aside { width: 100%; }

  .code-book__body { flex-direction: column; gap: 40px; padding-block: 40px; }
  .code-book__list { width: 100%; }
  .code-book__flag, .code-book__flag img { width: 44px; height: 44px; }
  .code-book__flag--shadowed img {
    width: 58px; height: 58px;
    margin: -4px -7px -10px -7px;
  }

  .sheet { flex-direction: column; align-items: flex-start; gap: 32px; min-height: 0; }
  .sheet__cover { width: 100%; max-width: 504px; height: auto; aspect-ratio: 1; }
  .sheet__edge { display: none; }

  .guide-body { flex-direction: column; gap: 40px; }
  .desk-note { width: 100%; }
}

@media (max-width: 760px) {
  .page-intro { padding: 32px var(--gutter) 48px; }
  .page-intro--legal { padding-bottom: 32px; }
  .guide-sections { padding: 48px var(--gutter); }
  .row-sections { padding-bottom: 48px; }

  .guide-intro__aside { flex-direction: column; }
  .guide-intro__hoist { flex-direction: row; }

  .card__grid { grid-template-columns: 1fr; }
  .card__fact,
  .card__fact:nth-child(4n + 1),
  .card__fact:nth-child(2n + 1) { padding-left: 0; border-left: 0; }

  .row-sec { flex-direction: column; gap: 14px; }
  .row-sec h2 { width: auto; }

  .cookie { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 20px; }
  .cookie__actions { flex-direction: column; }

  .acc--guide .acc__q { font-size: 20px; }
  .acc__count { display: none; }
  .tips li { font-size: 16px; }
  .where p, .where .link { font-size: 15px; }
}
