:root {
  --night: #0b0c22;
  --slab: #14162f;
  --slab-2: #1c1f3d;
  --slab-3: #262a4d;
  --rule: #2f3358;
  --rule-hot: #4d5288;
  --copy: #f4f5fb;
  --copy-dim: #b3b8d6;
  --blaze: #e8102f;
  --blaze-lift: #ff3d55;
  --blaze-deep: #b30d24;
  --blaze-ink: #ffffff;
  --blaze-run: linear-gradient(180deg, #ff3d55 0%, #d20d2b 100%);
  --blaze-run-lift: linear-gradient(180deg, #ff5c70 0%, #e8102f 100%);
  --plaque-run: linear-gradient(135deg, #ff3d55 0%, #a80d26 100%);
  --gild: #35d8f2;
  --plate: #f1f3f9;
  --plate-edge: #c6cbdf;
  --bend: 14px;
  --span: 1064px;
  --inset: 40px;
  --face: Verdana, "DejaVu Sans", Geneva, Tahoma, sans-serif;
  --face-head: "Trebuchet MS", "Segoe UI", Candara, Optima, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--face);
  color: var(--copy);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, span[role="link"]:focus-visible, label:focus-visible, input:focus-visible {
  outline: 3px solid var(--gild);
  outline-offset: 2px;
}
h1, h2, h3 {
  margin: 0 0 18px;
  font-family: var(--face-head);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 18px; overflow-wrap: break-word; }
ul, ol { margin: 0 0 18px; padding-left: 24px; }
li { margin-bottom: 8px; }
.steps li, .ticks li { padding-left: 2px; }
.ticks { list-style: square; }

.hull { display: flex; flex-direction: column; min-height: 100vh; }
.page { flex: 1 0 auto; }
.inner { width: 100%; max-width: calc(var(--span) + var(--inset) * 2); margin-inline: auto; padding-inline: var(--inset); }
.inner > * { min-width: 0; }
.jump { cursor: pointer; -webkit-user-select: none; user-select: none; }

@keyframes deck-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(232, 16, 47, 0); }
  50% { transform: scale(1.035); box-shadow: 0 0 26px rgba(232, 16, 47, 0.45); }
}
.pulse { animation: deck-breathe 2.8s ease-in-out infinite; will-change: transform; }
.pulse:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

.go-btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 12px 30px; border-radius: var(--bend);
  background: var(--blaze-run); color: var(--blaze-ink);
  font-family: var(--face-head); font-size: 17px; font-weight: 700;
  text-decoration: none; transition: background .2s, transform .1s;
}
.go-btn:hover { background: var(--blaze-run-lift); }
.go-btn:active { transform: scale(.98); }
.go-btn--calm {
  background: var(--slab-2); color: var(--copy); border: 2px solid var(--rule-hot);
}
.go-btn--calm:hover { background: var(--slab-3); border-color: var(--gild); }
.go-btn--wide { width: 100%; max-width: 360px; }

.beacon { position: sticky; top: 0; z-index: 60; background: var(--slab); border-bottom: 1px solid var(--rule); }
.beacon__bar {
  width: 100%; max-width: calc(var(--span) + var(--inset) * 2); margin-inline: auto;
  padding-inline: var(--inset); min-height: 68px;
  display: flex; align-items: center; gap: 20px;
}
.signal { flex: none; }
.signal img { height: 34px; width: auto; }
.hatch-flag { position: absolute; opacity: 0; pointer-events: none; }
.hatch {
  display: none; width: 42px; height: 42px; padding: 9px; flex-direction: column;
  justify-content: space-between; cursor: pointer; border-radius: 10px;
  background: var(--slab-2); border: 1px solid var(--rule);
}
.hatch span { display: block; height: 3px; border-radius: 2px; background: var(--copy); transition: transform .25s, opacity .25s; }
.compass { display: flex; align-items: center; gap: 20px; flex: 1 1 auto; min-width: 0; }
.compass__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.compass__list li { margin: 0; }
.compass__list .jump {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px;
  background: var(--slab-2); border: 1px solid var(--rule);
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.compass__list .jump svg { width: 14px; height: 14px; fill: var(--gild); flex: none; }
.compass__list .jump:hover { background: var(--slab-3); border-color: var(--rule-hot); }
.compass__pair { display: none; }
.beacon__pair { display: flex; gap: 10px; margin-left: auto; flex: none; }
.keyway-btn, .enrol-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 17px;
  border-radius: 10px; font-family: var(--face-head); font-size: 14px; font-weight: 700;
  white-space: nowrap; text-decoration: none; transition: background .2s;
}
.keyway-btn { background: var(--slab-2); color: var(--copy); border: 1px solid var(--rule-hot); }
.keyway-btn:hover { background: var(--slab-3); }
.enrol-btn { background: var(--blaze-run); color: var(--blaze-ink); }
.enrol-btn:hover { background: var(--blaze-run-lift); }

.overture { padding-block: 34px 12px; }
.overture__crest { margin-bottom: 14px; text-align: center; }
.overture__lede { font-size: 17px; }
.overture__lede p:last-child { margin-bottom: 0; }
.overture__banner {
  display: block; margin-block: 22px 24px; border-radius: var(--bend);
  overflow: hidden; border: 1px solid var(--rule);
}
.overture__banner img { width: 100%; height: auto; }
.overture__act { display: flex; justify-content: center; margin-top: 6px; }

.dossier { margin-bottom: 46px; }
.dossier__cap {
  display: flex; align-items: center; justify-content: center; min-height: 68px;
  margin-bottom: 22px; padding: 14px 22px; border-radius: var(--bend);
  background: var(--plaque-run); color: var(--blaze-ink); text-align: center; font-size: 24px;
}

.brief, .rack, .scorecard, .queries, .weighup, .keel {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}
.brief {
  margin-bottom: 30px; padding: 30px 32px 16px;
  background: var(--slab); border: 1px solid var(--rule); border-radius: var(--bend);
}
.brief > * { min-width: 0; }
.brief__cap { text-align: center; }
.brief h3 { margin-top: 26px; color: var(--gild); }
.brief p, .brief li { font-size: 16.5px; }
.brief p { max-width: none; }
.brief > p, .brief > ul, .brief > ol { width: 100%; }

.figure-band { margin: 6px 0 24px; }
.figure-band img { width: 100%; border-radius: var(--bend); border: 1px solid var(--rule); }

.sheet-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 26px; }
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: var(--bend); overflow: hidden;
}
th, td { padding: 13px 15px; border: 1px solid var(--rule); text-align: left; vertical-align: top; font-size: 14.5px; }
th { background: var(--plaque-run); color: var(--blaze-ink); font-family: var(--face-head); font-weight: 700; }
td { background: var(--slab-2); }
tbody tr:nth-child(even) td { background: var(--slab-3); }
td:first-child { font-weight: 700; }

.rack { margin-bottom: 34px; }
.rack__cap { text-align: center; }
.rack__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 0 0 22px; padding: 0; }
.rack__nav li { margin: 0; }
.rack__tab {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 9px; min-height: 50px;
  padding: 8px 12px; border-radius: 10px; background: var(--slab-2); border: 1px solid var(--rule);
  color: var(--copy); font-family: var(--face-head); font-size: 15px; font-weight: 700;
  text-decoration: none; text-align: center; transition: background .2s;
}
.rack__tab svg { width: 19px; height: 19px; fill: var(--gild); flex: none; }
.rack__tab:hover { background: var(--slab-3); border-color: var(--rule-hot); }
.rack__tab.lit { background: var(--slab-3); border-color: var(--gild); }
.rack__pane { display: none; }
.rack__pane.lit { display: block; }
.rack__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 16px; }
.rack__grid > * { min-width: 0; }
.card-slot { display: block; text-decoration: none; color: var(--copy); }
.card-slot__shot {
  display: block; aspect-ratio: 288 / 378; border-radius: 10px; overflow: hidden;
  background: var(--slab-2); border: 1px solid var(--rule);
}
.card-slot__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card-slot:hover .card-slot__shot img { transform: scale(1.05); }
.card-slot:hover .card-slot__shot { border-color: var(--rule-hot); }
.card-slot__label { display: block; margin-top: 9px; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.card-slot__maker { display: block; font-size: 11.5px; color: var(--copy-dim); }

.wall__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 24px; }
.wall__cell {
  display: flex; align-items: center; justify-content: center; min-height: 62px; padding: 10px;
  border-radius: 10px; background: var(--plate); border: 1px solid var(--plate-edge);
  transition: background .2s, border-color .2s;
}
.wall__cell img { max-height: 30px; width: auto; }
.wall__cell:hover { background: #ffffff; border-color: var(--blaze-lift); }

.coin-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-bottom: 24px; }
.coin-row__cell {
  display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 8px;
  border-radius: 10px; background: var(--plate); border: 1px solid var(--plate-edge);
  transition: background .2s, border-color .2s;
}
.coin-row__cell img { max-height: 30px; width: auto; }
.coin-row__cell:hover { background: #ffffff; border-color: var(--blaze-lift); }

.weighup { margin-bottom: 30px; padding: 30px 32px 16px; background: var(--slab); border: 1px solid var(--rule); border-radius: var(--bend); }
.weighup__cap { text-align: center; }
.weighup__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.weighup__grid > * { min-width: 0; }
.weighup__side { padding: 22px 24px; border-radius: 10px; background: var(--slab-2); border: 1px solid var(--rule); }
.weighup__side h3 { margin-top: 0; }
.weighup__side ul { margin: 0; padding: 0; list-style: none; }
.weighup__side li { position: relative; padding-left: 26px; }
.weighup__side li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; }
.weighup__side--up li::before { background: var(--gild); }
.weighup__side--down li::before { background: var(--blaze-lift); }

.scorecard { margin-bottom: 30px; padding: 30px 32px 20px; background: var(--slab); border: 1px solid var(--rule); border-radius: var(--bend); }
.scorecard__cap { text-align: center; }
.scorecard__meter {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 18px 22px; margin-bottom: 22px; border-radius: 10px;
  background: var(--slab-2); border: 1px solid var(--rule);
}
.scorecard__label { font-size: 13px; color: var(--copy-dim); margin-bottom: 4px; }
.scorecard__score { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scorecard__score b { font-family: var(--face-head); font-size: 27px; }
.scorecard__score small { color: var(--copy-dim); font-size: 13px; }
.pip-row { display: inline-flex; gap: 3px; }
.pip-row svg { width: 18px; height: 18px; fill: var(--blaze-lift); }
.scorecard__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px;
  border-radius: 10px; background: var(--blaze-run); color: var(--blaze-ink);
  font-family: var(--face-head); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.scorecard__btn:hover { background: var(--blaze-run-lift); }
.scorecard__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
.scorecard__grid > * { min-width: 0; }
.note { padding: 20px 22px; border-radius: 10px; background: var(--slab-2); border: 1px solid var(--rule); }
.note__who { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.note__badge {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; background: var(--plaque-run); color: var(--blaze-ink);
  font-family: var(--face-head); font-weight: 700; font-size: 18px;
}
.note__namebox b { display: block; font-size: 14.5px; }
.note__namebox small { color: var(--copy-dim); font-size: 12px; }
.note__pips { margin-bottom: 9px; }
.note__body { margin: 0; font-size: 14.5px; }

.queries { margin-bottom: 30px; padding: 30px 32px 18px; background: var(--slab); border: 1px solid var(--rule); border-radius: var(--bend); }
.queries__cap { text-align: center; }
.queries__row { padding: 18px 22px; margin-bottom: 12px; border-radius: 10px; background: var(--slab-2); border: 1px solid var(--rule); }
.queries__row h3 { margin: 0 0 8px; font-size: 17.5px; color: var(--copy); }
.queries__row p { margin: 0; font-size: 15.5px; }

.timestamp { margin-bottom: 34px; }
.timestamp__panel {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px;
  border-radius: var(--bend); background: var(--slab); border: 1px solid var(--rule);
  font-size: 15px; color: var(--copy-dim);
}
.timestamp__panel svg { width: 26px; height: 26px; fill: var(--gild); flex: none; margin-top: 2px; }
.timestamp__panel p { margin: 0; }
.timestamp__panel time { color: var(--copy); font-weight: 700; }

.keel { background: var(--slab); border-top: 1px solid var(--rule); }
.keel__main { padding-block: 40px 30px; }
.keel__grid { display: grid; grid-template-columns: 320px 1fr; gap: 44px; }
.keel__grid > * { min-width: 0; }
.keel__brand img { height: 44px; width: auto; margin-bottom: 16px; }
.keel__blurb { font-size: 13.5px; color: var(--copy-dim); }
.keel__cap { font-family: var(--face-head); font-size: 14px; font-weight: 700; margin-bottom: 12px; letter-spacing: .02em; }
.keel__social { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.keel__social a {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 10px; background: var(--slab-2); border: 1px solid var(--rule);
}
.keel__social svg { width: 19px; height: 19px; fill: var(--copy-dim); }
.keel__social a:hover { background: var(--slab-3); border-color: var(--rule-hot); }
.keel__social a:hover svg { fill: var(--gild); }
.keel__apps p { font-size: 13.5px; color: var(--copy-dim); margin-bottom: 12px; }
.keel__app-row { display: flex; flex-wrap: wrap; gap: 10px; }
.keel__app-btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px;
  border-radius: 10px; background: var(--slab-2); border: 1px solid var(--rule-hot);
  font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.keel__app-btn svg { width: 20px; height: 20px; fill: var(--copy); flex: none; }
.keel__app-btn:hover { background: var(--slab-3); }
.keel__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.keel__cols > * { min-width: 0; }
.keel__list { list-style: none; margin: 0; padding: 0; }
.keel__list li { margin-bottom: 9px; }
.keel__list .jump, .keel__list a { font-size: 13.5px; text-decoration: none; color: var(--copy-dim); }
.keel__list .jump:hover, .keel__list a:hover { color: var(--copy); text-decoration: underline; }
.keel__coins { padding-block: 22px; border-top: 1px solid var(--rule); }
.keel__coins .coin-row { margin-bottom: 0; }
.keel__seals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: center; padding-block: 22px; border-top: 1px solid var(--rule); }
.keel__seals a, .keel__seals span { display: flex; align-items: center; justify-content: center; min-height: 66px; }
.keel__seals img { max-height: 52px; width: auto; opacity: .92; }
.keel__seals a:hover img { opacity: 1; }
.keel__seals .on-plate {
  padding: 7px; border-radius: 10px; background: var(--plate); border: 1px solid var(--plate-edge);
  flex: 0 0 auto; margin-inline: auto; transition: background .2s, border-color .2s;
}
.keel__seals .on-plate:hover { background: #ffffff; border-color: var(--blaze-lift); }
.keel__foot { border-top: 1px solid var(--rule); }
.keel__legal { padding-block: 22px; font-size: 12.5px; line-height: 1.65; color: var(--copy-dim); }
.keel__legal p { margin: 0 0 10px; }
.keel__legal p:last-child { margin-bottom: 0; }

.lift-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--rule-hot); border-radius: 12px; background: var(--slab-2);
  cursor: pointer; padding: 0;
}
.lift-btn svg { width: 22px; height: 22px; fill: var(--copy); }
.lift-btn.lit { display: flex; }
.lift-btn:hover { background: var(--slab-3); }

@media (max-width: 1100px) {
  :root { --inset: 30px; }
  .beacon__bar { gap: 14px; }
  .signal img { height: 30px; }
  .compass { gap: 14px; }
  .compass__list { gap: 5px; }
  .compass__list .jump { padding: 6px 8px; font-size: 11.5px; gap: 4px; }
  .compass__list .jump svg { width: 12px; height: 12px; }
  .keyway-btn, .enrol-btn { padding: 0 13px; font-size: 13px; }
  .keel__grid { grid-template-columns: 280px 1fr; gap: 30px; }
}
@media (max-width: 1000px) {
  .hatch { display: flex; order: 1; }
  .signal { order: 2; }
  .beacon__pair { order: 3; }
  .compass {
    order: 4; display: none; position: absolute; left: 0; right: 0; top: 68px;
    padding: 14px var(--inset) 20px; background: var(--slab); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 14px;
  }
  .hatch-flag:checked ~ .compass { display: flex; }
  .hatch-flag:checked ~ .hatch span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .hatch-flag:checked ~ .hatch span:nth-child(2) { opacity: 0; }
  .hatch-flag:checked ~ .hatch span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .compass__list { flex-direction: column; gap: 8px; }
  .compass__list .jump { width: 100%; font-size: 15px; padding: 11px 14px; }
  .compass__pair { display: flex; gap: 10px; }
  .compass__pair > * { flex: 1; }
  .rack__grid { grid-template-columns: repeat(4, 1fr); }
  .keel__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --inset: 24px; --bend: 12px; }
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  h3 { font-size: 18px; }
  .brief, .weighup, .scorecard, .queries { padding: 24px 22px 12px; }
  .brief p, .brief li, .overture__lede { font-size: 16px; }
  .dossier__cap { font-size: 19px; min-height: 58px; }
  th, td { padding: 10px 11px; font-size: 13px; }
  .wall__grid { grid-template-columns: repeat(3, 1fr); }
  .coin-row { grid-template-columns: repeat(4, 1fr); }
  .weighup__grid { grid-template-columns: 1fr; }
  .scorecard__grid { grid-template-columns: repeat(2, 1fr); }
  .keel__cols { grid-template-columns: repeat(2, 1fr); }
  .keel__seals { grid-template-columns: repeat(2, 1fr); }
  .go-btn--wide { max-width: 100%; }
}
@media (max-width: 620px) {
  .beacon__bar { gap: 10px; }
  .beacon__pair .keyway-btn { display: none; }
  .beacon__pair { margin-left: auto; }
}
@media (max-width: 560px) {
  .rack__grid { grid-template-columns: repeat(3, 1fr); gap: 14px 12px; }
  .rack__nav { grid-template-columns: 1fr; gap: 8px; }
  .rack__tab { min-height: 44px; font-size: 14px; }
  .scorecard__grid { grid-template-columns: 1fr; }
  .keel__cols { grid-template-columns: 1fr; }
  .scorecard__meter { flex-direction: column; align-items: flex-start; }
  .scorecard__btn { width: 100%; }
}
@media (max-width: 380px) {
  :root { --inset: 14px; }
  .rack__grid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
  .wall__grid { grid-template-columns: repeat(2, 1fr); }
  .coin-row { grid-template-columns: repeat(2, 1fr); }
  .signal img { height: 26px; }
  .beacon__bar { gap: 8px; min-height: 62px; }
  .hatch { width: 38px; height: 38px; padding: 8px; }
  .compass { top: 62px; }
  .keyway-btn, .enrol-btn { height: 38px; padding: 0 12px; font-size: 13px; }
  .lift-btn { right: 12px; bottom: 12px; width: 42px; height: 42px; }
  .card-slot__label { font-size: 12.5px; }
}
