@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Stencil";
  src: url("../fonts/big-shoulders-stencil.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f3f4f1;
  --paper-2: #e4e6e1;
  --paper-3: #d6d9d2;
  --ink: #0b0b0c;
  --ink-2: #45474a;
  --mute: #8e928b;
  --red: #c8231a;
  --red-deep: #a91c14;
  --yellow: #f5b800;
  --green: #11773f;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-stencil: "Big Shoulders Stencil", "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-ui: "Manrope", "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --pad: clamp(16px, 3.2vw, 44px);
  --rule: 2px solid var(--ink);
  --hair: 1px solid rgb(11 11 12 / 0.16);
  --bar-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 12px);
  scrollbar-color: var(--ink) var(--paper-2);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--f-ui);
  font-feature-settings: "tnum" 1;
  caret-color: var(--red);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--yellow);
}

button,
input {
  font: inherit;
  color: inherit;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: currentColor;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Card primitives: perforation, eyelet, triage strips                 */
/* ------------------------------------------------------------------ */

.perf-y {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--ink) 1.7px, transparent 2.1px) center top / 10px 12px repeat-y;
}

.eyelet {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid currentColor;
  background: var(--paper);
  flex: none;
}

.strips {
  display: grid;
  grid-auto-rows: 1fr;
}
.strip--green {
  background: var(--green);
}

/* ------------------------------------------------------------------ */
/* Top bar (all pages)                                                 */
/* ------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.6vw, 40px);
  min-height: var(--bar-h);
  padding: 0 var(--pad);
  background: var(--paper);
  border-bottom: var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1.55rem/1 var(--f-stencil);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.brand .eyelet {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.topnav {
  min-width: 0;
}
.topnav ul {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.topnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  font: 700 0.93rem/1 var(--f-ui);
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.topnav a[aria-current="page"],
.topnav a.is-active {
  color: var(--ink);
}
.topnav a[aria-current="page"]::after,
.topnav a.is-active::after {
  transform: scaleX(1);
}
.topnav .icon {
  width: 1.05em;
  height: 1.05em;
}
@media (hover: hover) {
  .topnav a:hover {
    color: var(--ink);
  }
  .topnav a:hover::after {
    transform: scaleX(1);
  }
}

.topbar__end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.vswitch {
  display: inline-grid;
  grid-auto-flow: column;
  border: var(--rule);
}
.vswitch a {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 14px;
  font: 900 1.15rem/1 var(--f-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}
.vswitch a + a {
  border-left: var(--rule);
}
.vswitch a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
@media (hover: hover) {
  .vswitch a:not([aria-current="page"]):hover {
    background: var(--paper-2);
  }
}

.sos-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--red);
  color: #fff;
  font: 900 1.35rem/1 var(--f-display);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 140ms var(--ease-out);
}
.sos-btn .icon {
  width: 0.9em;
  height: 0.9em;
}
.sos-btn:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .sos-btn:hover {
    background: var(--red-deep);
  }
}

/* ------------------------------------------------------------------ */
/* Entry: the uncut ticket                                             */
/* ------------------------------------------------------------------ */

.entry {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.choose {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(16px, 3.2vh, 36px);
  padding: clamp(20px, 4vh, 48px) var(--pad) clamp(20px, 4vh, 44px);
}

.phrase {
  margin: 0;
  font: 900 clamp(2.4rem, min(6.2vw, 9vh), 6rem) / 1 var(--f-display);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 24ch;
}

.tickets {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0 minmax(0, 1fr);
  min-height: clamp(250px, 50vh, 600px);
  background: var(--paper-2);
}

/* Perforation with punched notches at both ends */
.tickets__perf {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.tickets__perf::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: -5px;
  width: 10px;
  background: radial-gradient(circle, var(--ink) 1.6px, transparent 2px) center top / 10px 12px repeat-y;
  transition: opacity 200ms ease-out;
}
.tickets__perf::after {
  content: "";
  position: absolute;
  inset: -14px auto -14px -14px;
  width: 28px;
  background:
    radial-gradient(circle at center 0, var(--paper) 13px, transparent 13.5px) top / 28px 28px no-repeat,
    radial-gradient(circle at center 28px, var(--paper) 13px, transparent 13.5px) bottom / 28px 28px no-repeat;
}

.ticket {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: clamp(18px, 2.6vw, 36px) clamp(18px, 2.6vw, 36px) calc(clamp(18px, 2.6vw, 36px) + 8px);
  color: var(--ink);
  text-decoration: none;
  transition:
    background-color 240ms ease,
    color 240ms ease,
    transform 160ms var(--ease-out);
}
.ticket:active {
  transform: scale(0.99);
}

.ticket__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ticket__data {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ticket__no {
  font: 800 clamp(1.5rem, 2.2vw, 2.1rem) / 1 var(--f-stencil);
  letter-spacing: 0.04em;
}

.ticket__word {
  align-self: center;
  font: 900 clamp(4.2rem, min(13.5vw, 25vh), 15rem) / 0.82 var(--f-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ticket__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.ticket__fact {
  max-width: 26ch;
  font: 600 0.92rem/1.4 var(--f-ui);
  color: var(--ink-2);
  transition: color 240ms ease;
}
.ticket__go {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  background: var(--ink);
  color: var(--paper);
  transition:
    background-color 240ms ease,
    color 240ms ease,
    transform 260ms var(--ease-out);
}
.ticket__go .icon {
  width: 24px;
  height: 24px;
}

.ticket__strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 6px;
}
.ticket__strip i:nth-child(1) { background: var(--ink); }
.ticket__strip i:nth-child(2) { background: var(--red); }
.ticket__strip i:nth-child(3) { background: var(--yellow); }
.ticket__strip i:nth-child(4) { background: var(--green); }

@media (hover: hover) {
  .ticket:hover {
    background: var(--ink);
    color: var(--paper);
  }
  .ticket:hover .ticket__fact {
    color: var(--paper-3);
  }
  .ticket:hover .ticket__go {
    background: var(--paper);
    color: var(--ink);
    transform: translateX(6px);
  }
  .ticket:hover .eyelet {
    background: var(--ink);
  }
}

/* The tear: the chosen half rips away from the perforation */
.is-tearing .ticket {
  pointer-events: none;
}
.is-tearing .ticket:not(.is-chosen) {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 240ms ease-out,
    transform 320ms var(--ease-out);
}
.is-tearing .ticket.is-chosen {
  background: var(--ink);
  color: var(--paper);
  transform: translate(var(--tear-x, 0), -10px) rotate(var(--tear-r, 0deg));
  transition:
    transform 420ms var(--ease-out),
    background-color 120ms ease,
    color 120ms ease;
}
.is-tearing .ticket.is-chosen .ticket__fact {
  color: var(--paper-3);
}
.is-tearing .ticket--moto {
  --tear-x: -22px;
  --tear-r: -1.4deg;
}
.is-tearing .ticket--carro {
  --tear-x: 22px;
  --tear-r: 1.4deg;
}
.is-tearing .tickets {
  background: transparent;
  transition: background-color 160ms ease-out;
}
.is-tearing .tickets__perf {
  opacity: 0;
  transition: opacity 160ms ease-out;
}

/* ------------------------------------------------------------------ */
/* Footer: one line, sources open upward in place                      */
/* ------------------------------------------------------------------ */

.foot {
  position: relative;
  border-top: var(--rule);
  padding: 12px var(--pad);
  font: 500 0.8rem/1.5 var(--f-ui);
  color: var(--ink-2);
}
.foot__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
}
.foot__line strong {
  font: 800 0.95rem/1 var(--f-stencil);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.sources-pop summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  font: 800 0.78rem/1 var(--f-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}
.sources-pop summary::-webkit-details-marker {
  display: none;
}
.sources-pop summary .icon {
  width: 14px;
  height: 14px;
  transition: transform 220ms var(--ease-out);
}
.sources-pop[open] summary {
  background: var(--ink);
  color: var(--paper);
}
.sources-pop[open] summary .icon {
  transform: rotate(180deg);
}
@media (hover: hover) {
  .sources-pop:not([open]) summary:hover {
    background: var(--paper-2);
  }
}

.sources-pop__panel {
  position: absolute;
  right: var(--pad);
  bottom: calc(100% + 10px);
  z-index: 40;
  width: min(580px, calc(100vw - 2 * var(--pad)));
  max-height: min(62vh, 520px);
  overflow: auto;
  padding: 18px 20px 14px;
  background: var(--paper);
  border: var(--rule);
  transform-origin: bottom right;
}
.sources-pop[open] .sources-pop__panel {
  animation: pop-up 200ms var(--ease-out) both;
}
@keyframes pop-up {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.sources-pop__title {
  margin: 0 0 10px;
  font: 900 1.4rem/1.1 var(--f-display);
  text-transform: uppercase;
  color: var(--ink);
}
.sources {
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 0.86rem/1.45 var(--f-ui);
  color: var(--ink-2);
}
.sources li {
  padding: 8px 0;
  border-top: var(--hair);
}

/* ------------------------------------------------------------------ */
/* Vehicle view: the torn stub                                         */
/* ------------------------------------------------------------------ */

.vhero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: calc(78dvh - var(--bar-h));
  border-bottom: var(--rule);
}
.vhero > .perf-y {
  left: 53.5%;
}
.vhero__word {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: var(--pad);
}
.vhero__word .eyelet {
  width: 30px;
  height: 30px;
}
.vhero__word span {
  align-self: end;
  font: 900 clamp(6rem, 21vw, 22rem) / 0.76 var(--f-display);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-left: -0.04em;
}
.vhero__claim {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  padding: var(--pad);
  padding-left: clamp(24px, 4.5vw, 64px);
}
.vhero__claim h1 {
  align-self: end;
  margin: 0;
  font: 900 clamp(2.6rem, 5vw, 5.4rem) / 1.16 var(--f-display);
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 12ch;
}

.is-arriving .vhero__word span {
  animation: seat 640ms var(--ease-out) both;
}
.is-arriving .vhero__claim h1 {
  animation: rise 560ms 90ms var(--ease-out) both;
}
@keyframes seat {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-24px) rotate(-1.2deg); }
  to { clip-path: inset(0 0 -10% 0); transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* Band sections */
.band {
  --band: var(--ink);
  --band-ink: var(--paper);
  border-bottom: var(--rule);
}
.band--red { --band: var(--red); --band-ink: #fff; }
.band--yellow { --band: var(--yellow); --band-ink: var(--ink); }
.band--paper { --band: var(--paper-2); --band-ink: var(--ink); }
.band--green { --band: var(--green); --band-ink: #fff; }

.band__head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad) 18px;
  background: var(--band);
  color: var(--band-ink);
}
.band__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 6px, transparent 6px 11px);
}
.band__head h2 {
  margin: 0;
  font: 900 clamp(2rem, 4.2vw, 3.6rem) / 1.14 var(--f-display);
  text-transform: uppercase;
  text-wrap: balance;
}
.band__body {
  padding: clamp(32px, 6vw, 88px) var(--pad);
}

.statement {
  margin: 0 0 clamp(24px, 4vw, 44px);
  font: 800 clamp(2rem, 4.4vw, 4rem) / 1.12 var(--f-display);
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 20ch;
}
.statement em {
  font-style: normal;
  color: var(--red);
}

/* Unit chart: one mark per person */
.units {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10px, 1fr));
  gap: 2px;
  margin: 0;
}
.units i {
  display: block;
  aspect-ratio: 1;
  background: var(--mute);
}
.units i.u-a { background: var(--ink); }
.units i.u-b { background: var(--red); }
.units.is-pre i.u-a,
.units.is-pre i.u-b {
  background: var(--mute);
}
.units.is-in i.u-a,
.units.is-in i.u-b {
  transition: background-color 180ms ease-out;
  transition-delay: calc(var(--i) * 0.45ms);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font: 600 0.9rem/1.3 var(--f-ui);
}
.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend i {
  width: 14px;
  height: 14px;
  background: var(--mute);
}
.legend i.u-a { background: var(--ink); }
.legend i.u-b { background: var(--red); }
.legend b {
  font: 800 1.15rem/1 var(--f-stencil);
  letter-spacing: 0.03em;
}

.src {
  display: block;
  margin-top: 8px;
  font: 500 0.78rem/1.4 var(--f-ui);
  color: var(--ink-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(48px, 7vw, 104px);
}
.split h3 {
  margin: 0 0 18px;
  font: 900 clamp(1.5rem, 2.4vw, 2.2rem) / 1.04 var(--f-display);
  text-transform: uppercase;
}

/* Fixed-scale year bars */
.years {
  display: grid;
  gap: 14px;
  margin: 0;
}
.years__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) 4.2rem;
  align-items: center;
  gap: 12px;
}
.years__row dt {
  font: 700 0.85rem/1.2 var(--f-ui);
}
.years__row dt small {
  display: block;
  font-weight: 500;
  color: var(--ink-2);
}
.years__track {
  position: relative;
  height: 26px;
  background:
    repeating-linear-gradient(90deg, rgb(11 11 12 / 0.28) 0 1px, transparent 1px calc(100% / 1546 * 250)),
    var(--paper-2);
}
.years__track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) / 1546 * 100%);
  background: var(--ink);
  transform-origin: left;
}
.years__row--part .years__track span {
  background: repeating-linear-gradient(135deg, var(--ink) 0 5px, var(--ink-2) 5px 8px);
}
.years.is-pre .years__track span {
  transform: scaleX(0);
}
.years.is-in .years__track span {
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--n) * 110ms);
}
.years__row dd {
  margin: 0;
  text-align: right;
  font: 800 1.3rem/1 var(--f-stencil);
  letter-spacing: 0.03em;
}
.years__axis {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) 4.2rem;
  gap: 12px;
  font: 600 0.7rem/1 var(--f-ui);
  color: var(--ink-2);
}
.years__axis span {
  display: flex;
  justify-content: space-between;
}

/* Ledger */
.ledger {
  margin: 0;
  border-top: var(--rule);
}
.ledger div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 4px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
}
.ledger dt {
  font: 800 clamp(1.7rem, 2.6vw, 2.2rem) / 0.95 var(--f-stencil);
  letter-spacing: 0.01em;
}
.ledger dd {
  margin: 0;
  font: 500 0.95rem/1.45 var(--f-ui);
}

/* Survival rules */
.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule);
}
.rules li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 10px clamp(24px, 5vw, 80px);
  padding: clamp(20px, 2.6vw, 32px) 0;
}
.rules li + li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: radial-gradient(circle, var(--ink) 1.3px, transparent 1.6px) left center / 10px 2px repeat-x;
}
.rules h3 {
  margin: 0;
  font: 900 clamp(1.9rem, 3.6vw, 3.3rem) / 1.12 var(--f-display);
  text-transform: uppercase;
  text-wrap: balance;
}
.rules p {
  margin: 0;
  align-self: center;
  max-width: 52ch;
  font-size: 1.02rem;
}

/* Reels */
.reels {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
}
.reels .reel:first-child {
  grid-row: span 2;
}
.reels .reel:first-child .reel__frame {
  aspect-ratio: 16 / 9;
}
.reels .reel:first-child .reel__name {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}
.reels .reel:first-child .reel__badge {
  left: 18px;
  bottom: 18px;
  font-size: 0.85rem;
}
.reels .reel:first-child .reel__badge .dot {
  width: 52px;
  height: 52px;
}
.reels .reel:first-child .reel__dur {
  right: 18px;
  bottom: 18px;
  font-size: 1.15rem;
}
.reel {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}
.reel__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  height: 100%;
  width: 100%;
}
.reel__play {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto auto;
  width: 100%;
  padding: clamp(18px, 2.4vw, 30px);
  border: 0;
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms ease;
}
.reel__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgb(243 244 241 / 0.3);
  gap: 6px 12px;
  font: 700 0.72rem/1.3 var(--f-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.reel__title {
  align-self: end;
  margin: 0;
  font: 900 clamp(1.5rem, 2.6vw, 2.5rem) / 1.04 var(--f-display);
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 18ch;
}
.reel__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font: 800 0.85rem/1 var(--f-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.reel__cta .dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  color: var(--ink);
  transition: transform 160ms var(--ease-out);
}
@media (hover: hover) {
  .reel__play:hover { background: #1b1c1e; }
  .reel__play:hover .dot { transform: scale(1.08); }
}
.reel__play:active .dot {
  transform: scale(0.94);
}
.reel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.reel__out {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--paper);
  color: var(--ink);
  font: 700 0.75rem/1 var(--f-ui);
  text-decoration: none;
}
.reel.is-playing .reel__out {
  display: inline-flex;
}
.reels__note {
  margin: 14px 0 0;
  font: 500 0.82rem/1.45 var(--f-ui);
  color: var(--ink-2);
  max-width: 70ch;
}
.reels__note a {
  font-weight: 800;
  color: var(--ink);
}

/* ------------------------------------------------------------------ */
/* Learning library                                                    */
/* ------------------------------------------------------------------ */

.lhero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px clamp(24px, 5vw, 80px);
  padding: clamp(32px, 6vh, 72px) var(--pad) clamp(24px, 4vh, 44px);
  border-bottom: var(--rule);
}
.lhero h1 {
  margin: 0;
  font: 900 clamp(3rem, 7vw, 6rem) / 1 var(--f-display);
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 14ch;
}
.lhero__count {
  display: grid;
  justify-items: end;
  margin: 0;
  font: 600 0.9rem/1.3 var(--f-ui);
  color: var(--ink-2);
}
.lhero__count b {
  font: 800 clamp(3rem, 6vw, 5rem) / 0.9 var(--f-stencil);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.filters {
  position: sticky;
  top: var(--bar-h);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px var(--pad);
  overflow-x: auto;
  background: var(--paper);
  border-bottom: var(--hair);
  scrollbar-width: none;
}
.filters::-webkit-scrollbar {
  display: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  background: transparent;
  font: 700 0.92rem/1 var(--f-ui);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 140ms var(--ease-out);
}
.chip b {
  font: 800 1rem/1 var(--f-stencil);
  letter-spacing: 0.04em;
  color: var(--ink-2);
  transition: color 160ms ease;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.chip[aria-pressed="true"] b {
  color: var(--paper-3);
}
.chip:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .chip[aria-pressed="false"]:hover {
    background: var(--paper-2);
  }
}
.filters__status {
  margin-left: auto;
  padding-left: 12px;
  font: 600 0.85rem/1 var(--f-ui);
  color: var(--ink-2);
  white-space: nowrap;
}

.library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 10px;
  margin: 0;
  padding: clamp(20px, 3vw, 40px) var(--pad) clamp(28px, 4vw, 56px);
  list-style: none;
}
.library .reel__frame {
  aspect-ratio: auto;
  height: auto;
}
.library .reel__play {
  position: relative;
  min-height: clamp(230px, 22vw, 290px);
}
.library .reel.is-playing .reel__frame {
  aspect-ratio: 16 / 9;
}
.library .reel__title {
  font-size: clamp(1.5rem, 2vw, 2rem);
}
.library__foot {
  padding: 0 var(--pad) clamp(28px, 4vw, 56px);
}

/* Library cards with a YouTube preview */
.library > li {
  display: grid;
}
.reel--thumb {
  display: grid;
  grid-template-rows: auto 1fr;
}
.reel--thumb .reel__frame {
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  background: #1b1c1e;
}
.reel--thumb .reel__play {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.reel__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 500ms var(--ease-out),
    filter 300ms ease;
}
.reel--thumb .reel__play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(11 11 12 / 0.18);
  transition: background-color 300ms ease;
}
.reel__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 14px;
  background: var(--ink);
  color: var(--paper);
  font: 800 0.78rem/1 var(--f-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.reel__badge .dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--yellow);
  color: var(--ink);
  transition: transform 160ms var(--ease-out);
}
.reel__dur {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 5px 8px;
  background: var(--ink);
  color: var(--paper);
  font: 800 0.95rem/1 var(--f-stencil);
  letter-spacing: 0.05em;
}
@media (hover: hover) {
  .reel--thumb .reel__play:hover .reel__thumb {
    transform: scale(1.04);
  }
  .reel--thumb .reel__play:hover::after {
    background: rgb(11 11 12 / 0.05);
  }
  .reel--thumb .reel__play:hover .dot {
    transform: scale(1.08);
  }
}
.reel--thumb .reel__play:active .dot {
  transform: scale(0.94);
}
.reel__info {
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 16px 18px 14px;
}
.reel__name {
  margin: 0;
  font: 900 clamp(1.35rem, 1.7vw, 1.7rem) / 1.1 var(--f-display);
  text-transform: uppercase;
  text-wrap: balance;
}
.reel__source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgb(243 244 241 / 0.3);
  font: 700 0.72rem/1.3 var(--f-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.reel__source a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--paper);
  text-decoration: none;
}
@media (hover: hover) {
  .reel__source a:hover {
    text-decoration: underline;
  }
}

/* Footer credit */
.credit {
  white-space: nowrap;
}
.credit__heart {
  width: 0.95em;
  height: 0.95em;
  margin: 0 0.1em;
  vertical-align: -0.12em;
  fill: var(--red);
}
.credit a {
  font-weight: 700;
  color: var(--ink);
}

/* ------------------------------------------------------------------ */
/* Scrollbar: a tyre seen from above, rolling down its lane            */
/* ------------------------------------------------------------------ */

html.has-wheelbar {
  scrollbar-width: none;
}
html.has-wheelbar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.wheelbar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 22px;
  z-index: 60;
  pointer-events: none;
}
.wheelbar__lane {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--ink) 0 10px, transparent 10px 22px);
  opacity: 0.22;
}
.wheelbar__wheel {
  position: absolute;
  top: 0;
  left: 50%;
  width: 15px;
  height: 38px;
  margin-left: -7.5px;
  transform: translateY(var(--wheel-y, 0px));
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.wheelbar__wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: var(--ink);
}
.wheelbar__wheel:active {
  cursor: grabbing;
}
.wheelbar__tread {
  position: absolute;
  inset: 3px 1.5px;
  border-radius: 2px;
  background-color: #17181a;
  background-image:
    repeating-linear-gradient(180deg, rgb(243 244 241 / 0.5) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(90deg, transparent 0 3px, rgb(11 11 12 / 0.9) 3px 4.5px, transparent 4.5px 7.5px, rgb(11 11 12 / 0.9) 7.5px 9px, transparent 9px 12px);
  background-size: 100% 9px, 100% 100%;
  background-position: 0 var(--tread, 0px), 0 0;
}
.wheelbar__wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgb(243 244 241 / 0.22);
  border-radius: 3px;
}

@media (max-width: 767px) {
  .wheelbar {
    width: 16px;
  }
  .wheelbar__wheel {
    width: 12px;
    height: 30px;
    margin-left: -6px;
  }
}

/* ------------------------------------------------------------------ */
/* Course: modules, progress and the certificate                       */
/* ------------------------------------------------------------------ */

.progress {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding: 14px var(--pad);
  border-bottom: var(--hair);
  font: 700 0.9rem/1.3 var(--f-ui);
}
.progress__bar {
  flex: 1;
  min-width: 120px;
  height: 10px;
  background: var(--paper-2);
}
.progress__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--green);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform 700ms var(--ease-out);
}

.branch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.branch__label {
  margin-right: 2px;
  font: 800 0.72rem/1 var(--f-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.branch__btn {
  min-height: 34px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  background: transparent;
  font: 800 0.8rem/1 var(--f-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 140ms var(--ease-out);
}
.branch__btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.branch__btn:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .branch__btn[aria-pressed="false"]:hover {
    background: var(--paper-2);
  }
}
.branch-note {
  margin: 0;
  padding: 14px var(--pad) 0;
  max-width: 78ch;
  font: 600 0.92rem/1.45 var(--f-ui);
  color: var(--ink-2);
}

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 10px;
  margin: 0;
  padding: clamp(20px, 3vw, 40px) var(--pad);
  list-style: none;
}
.module-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: clamp(18px, 2vw, 24px);
  border: var(--rule);
  background: var(--paper);
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 160ms var(--ease-out);
}
.module-card__no {
  font: 800 clamp(2.4rem, 3.4vw, 3.4rem) / 0.9 var(--f-stencil);
  letter-spacing: 0.03em;
}
.module-card h2 {
  margin: 0;
  font: 900 clamp(1.4rem, 1.9vw, 1.8rem) / 1.08 var(--f-display);
  text-transform: uppercase;
  text-wrap: balance;
}
.module-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font: 500 0.88rem/1.4 var(--f-ui);
  color: var(--ink-2);
  transition: color 180ms ease;
}
.module-card__state {
  justify-self: start;
  padding: 7px 11px;
  border: 2px solid var(--ink);
  font: 800 0.72rem/1 var(--f-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.module-card__state[data-state="passed"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.module-card__state[data-state="failed"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
@media (hover: hover) {
  .module-card:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
  }
  .module-card:hover ul {
    color: var(--paper-3);
  }
}

.lesson {
  display: grid;
  gap: 10px;
  margin: 0 0 clamp(28px, 4vw, 48px);
  padding: 0;
  list-style: none;
  border-top: var(--rule);
}
.lesson li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 6px clamp(20px, 4vw, 64px);
  padding: 16px 0 0;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 16px;
}
.lesson h3 {
  margin: 0;
  font: 900 clamp(1.3rem, 2vw, 1.9rem) / 1.08 var(--f-display);
  text-transform: uppercase;
}
.lesson p {
  margin: 0;
  max-width: 62ch;
  font-size: 1rem;
}

/* Marking after checking a module */
.q__opts label.is-key {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.q.is-wrong .q__opts label.is-chosen:not(.is-key) {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
@media (hover: hover) {
  .q__opts label.is-key:hover,
  .q.is-wrong .q__opts label.is-chosen:not(.is-key):hover {
    filter: brightness(1.08);
  }
}
.q__answer p[data-why] {
  padding-left: 12px;
  border-left: 2px solid var(--ink);
}

.cert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.cert__state {
  margin: 0 0 14px;
  font: 900 clamp(1.4rem, 2.2vw, 2rem) / 1.1 var(--f-display);
  text-transform: uppercase;
}
.cert__list {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font: 700 0.95rem/1.35 var(--f-ui);
}
.cert__list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  color: var(--ink-2);
}
.cert__list li::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--paper-3);
}
.cert__list li[data-done="true"] {
  color: var(--ink);
}
.cert__list li[data-done="true"]::before {
  background: var(--green);
}
.cert__legal {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--red);
  font: 500 0.88rem/1.5 var(--f-ui);
  color: var(--ink-2);
  max-width: 60ch;
}
.cert__form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 30px);
  border: var(--rule);
  background: #fff;
}
.cert[data-locked="true"] .cert__form {
  opacity: 0.55;
}
.cert__note {
  margin: 0;
  font: 500 0.82rem/1.45 var(--f-ui);
  color: var(--ink-2);
}

/* Quiz */
.quiz {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule);
}
.q {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 14px clamp(24px, 5vw, 72px);
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--ink);
}
.q fieldset {
  display: contents;
}
.q legend {
  float: left;
  width: 100%;
  padding: 0;
  font: 900 clamp(1.5rem, 2.6vw, 2.3rem) / 1.2 var(--f-display);
  text-transform: uppercase;
  text-wrap: balance;
}
.q__opts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}
.q__opts label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 14px;
  border: var(--rule);
  font: 700 0.95rem/1.2 var(--f-ui);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 140ms var(--ease-out);
}
.q__opts input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.q__opts label:has(input:checked) {
  background: var(--ink);
  color: var(--paper);
}
.q__opts label:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--yellow);
}
.q__opts label:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .q__opts label:hover { background: var(--paper-2); }
  .q__opts label:has(input:checked):hover { background: var(--ink); color: var(--paper); }
}
.q__reveal {
  grid-column: 2;
  display: grid;
  gap: 10px;
}
.btn-reveal {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  background: transparent;
  font: 800 0.78rem/1 var(--f-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}
.btn-reveal:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.btn-reveal[aria-expanded="true"] {
  background: var(--yellow);
}
.q__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms var(--ease-out);
}
.q__answer > div {
  overflow: hidden;
}
.q__answer p {
  margin: 0;
  max-width: 56ch;
}
.q__answer.is-open {
  grid-template-rows: 1fr;
}

.result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px clamp(20px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 44px);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 800 0.9rem/1 var(--f-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 140ms var(--ease-out),
    opacity 160ms ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
@media (hover: hover) {
  .btn:not(:disabled):hover { background: var(--red); border-color: var(--red); color: #fff; }
  .btn--ghost:not(:disabled):hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
}
.result__msg {
  margin: 0;
  font: 600 0.95rem/1.4 var(--f-ui);
  color: var(--ink-2);
}
.verdict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 40px;
  margin-top: 28px;
  padding: clamp(22px, 3.4vw, 44px);
  background: var(--ink);
  color: var(--paper);
}
.verdict[data-color="green"] { background: var(--green); color: #fff; }
.verdict[data-color="yellow"] { background: var(--yellow); color: var(--ink); }
.verdict[data-color="red"] { background: var(--red); color: #fff; }
.verdict[data-color="black"] { background: var(--ink); color: var(--paper); }
.verdict h3 {
  margin: 0;
  font: 900 clamp(2.4rem, 5.4vw, 5rem) / 1 var(--f-display);
  text-transform: uppercase;
}
.verdict p {
  margin: 0;
  align-self: end;
  font-size: 1.05rem;
  max-width: 48ch;
}
.verdict a {
  font-weight: 800;
}
.verdict.is-new {
  animation: stamp 320ms var(--ease-out) both;
}
@keyframes stamp {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: none; }
}

/* Pledge */
.pledge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.pledge__form {
  display: grid;
  gap: 22px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label,
.promises legend {
  font: 800 0.78rem/1 var(--f-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field input {
  min-height: 56px;
  padding: 0 16px;
  border: var(--rule);
  border-radius: 0;
  background: #fff;
  font: 700 1.1rem/1 var(--f-ui);
}
.field input::placeholder {
  color: #6b6e69;
}
.promises {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.promises legend {
  margin-bottom: 8px;
}
.promises label {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: var(--rule);
  font: 700 1rem/1.3 var(--f-ui);
  cursor: pointer;
  transition: background-color 160ms ease;
}
.promises input {
  appearance: none;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 2px solid var(--ink);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.promises input::after {
  content: "";
  width: 14px;
  height: 8px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translateY(-2px) rotate(-45deg) scale(0);
  transition: transform 160ms var(--ease-out);
}
.promises input:checked {
  background: var(--green);
  border-color: var(--green);
}
.promises input:checked::after {
  transform: translateY(-2px) rotate(-45deg) scale(1);
}
@media (hover: hover) {
  .promises label:hover { background: var(--paper-2); }
}
.form-error {
  margin: 0;
  min-height: 1.4em;
  font: 700 0.9rem/1.4 var(--f-ui);
  color: var(--red);
}

.signed {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  border: var(--rule);
  background: #fff;
}
.signed__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.signed h3 {
  margin: 0;
  font: 900 clamp(2.4rem, 4.8vw, 4.4rem) / 1 var(--f-display);
  text-transform: uppercase;
}
.signed ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font: 700 0.98rem/1.35 var(--f-ui);
}
.signed ul li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
}
.signed ul li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 4px;
  background: var(--green);
}
.signed__who {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--ink);
  font: 600 0.85rem/1.3 var(--f-ui);
  color: var(--ink-2);
}
.signed__who b {
  display: block;
  font: 800 1.35rem/1.1 var(--f-ui);
  color: var(--ink);
}
.signed .strips {
  grid-auto-rows: 14px;
  margin: 4px calc(clamp(22px, 3vw, 36px) * -1) calc(clamp(22px, 3vw, 36px) * -1);
}
.stamp {
  position: absolute;
  top: 34%;
  right: 6%;
  padding: 8px 14px;
  border: 4px solid var(--green);
  color: var(--green);
  font: 800 clamp(1.6rem, 3vw, 2.4rem) / 1 var(--f-stencil);
  letter-spacing: 0.08em;
  transform: rotate(-9deg);
  opacity: 0;
  pointer-events: none;
}
.signed.is-signed .stamp {
  opacity: 1;
  animation: stamp-down 260ms var(--ease-out) both;
}
@keyframes stamp-down {
  from { opacity: 0; transform: rotate(-9deg) scale(1.5); }
  to { opacity: 1; transform: rotate(-9deg) scale(1); }
}
.share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.share .btn {
  flex: 1 1 auto;
}
.share__status {
  flex-basis: 100%;
  margin: 2px 0 0;
  font: 600 0.85rem/1.3 var(--f-ui);
  color: var(--ink-2);
  min-height: 1.3em;
}

/* Emergency */
.sos {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  border-bottom: var(--rule);
}
.sos__call {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  padding: clamp(20px, 3vw, 40px) var(--pad);
  background: var(--red);
  color: #fff;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.sos__call b {
  font: 900 clamp(5rem, 11vw, 9rem) / 0.8 var(--f-display);
  letter-spacing: -0.01em;
}
.sos__call span {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 0.82rem/1 var(--f-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (hover: hover) {
  .sos__call:hover { background: var(--red-deep); }
}
.sos__steps {
  margin: 0;
  padding: clamp(20px, 3vw, 40px) var(--pad);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px clamp(20px, 3vw, 48px);
  align-content: center;
}
.sos__steps h3 {
  margin: 0 0 6px;
  font: 900 clamp(1.4rem, 2.2vw, 2rem) / 1.04 var(--f-display);
  text-transform: uppercase;
}
.sos__steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .topnav .nav-long {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --bar-h: 108px;
  }
  .topbar {
    flex-wrap: wrap;
    row-gap: 0;
    padding-top: 10px;
  }
  .topnav {
    order: 5;
    flex-basis: calc(100% + 2 * var(--pad));
    margin: 8px calc(var(--pad) * -1) 0;
    padding: 0 calc(var(--pad) - 8px);
    overflow-x: auto;
    border-top: var(--hair);
    scrollbar-width: none;
  }
  .topnav::-webkit-scrollbar {
    display: none;
  }
  .topbar--simple {
    padding-top: 0;
    flex-wrap: nowrap;
  }
  .topbar--simple .topnav {
    order: 0;
    flex-basis: auto;
    margin: 0;
    padding: 0;
    border-top: 0;
  }

  .split,
  .pledge {
    grid-template-columns: 1fr;
  }
  .rules li,
  .q {
    grid-template-columns: 1fr;
  }
  .q__reveal {
    grid-column: 1;
  }
  .reels {
    grid-template-columns: 1fr;
  }
  .reels .reel:first-child {
    grid-row: auto;
    grid-template-rows: auto 1fr;
  }
  .reels .reel:first-child .reel__frame {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .sos {
    grid-template-columns: 1fr;
  }
  .sos__steps {
    grid-template-columns: 1fr;
  }
  .verdict {
    grid-template-columns: 1fr;
  }
  .cert {
    grid-template-columns: 1fr;
  }
  .lesson li {
    grid-template-columns: 1fr;
  }
  .progress {
    flex-wrap: wrap;
  }
  .lhero {
    grid-template-columns: 1fr;
  }
  .lhero__count {
    justify-items: start;
  }
}

@media (max-width: 767px) {
  .topbar {
    gap: 10px;
  }
  .topbar--simple .topnav {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .topbar--simple .topnav::-webkit-scrollbar {
    display: none;
  }
  .brand {
    font-size: 1.3rem;
  }
  .vswitch a {
    min-height: 38px;
    padding: 0 10px;
    font-size: 1.05rem;
  }
  .sos-btn {
    min-height: 40px;
    padding: 0 10px;
    font-size: 1.2rem;
  }
  .sos-btn .icon {
    display: none;
  }

  .tickets {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 0 minmax(0, 1fr);
    min-height: 0;
  }
  .tickets__perf::before {
    top: -5px;
    bottom: auto;
    left: 18px;
    right: 18px;
    width: auto;
    height: 10px;
    background: radial-gradient(circle, var(--ink) 1.6px, transparent 2px) left center / 12px 10px repeat-x;
  }
  .tickets__perf::after {
    inset: -14px -14px auto -14px;
    width: auto;
    height: 28px;
    background:
      radial-gradient(circle at 0 center, var(--paper) 13px, transparent 13.5px) left / 28px 28px no-repeat,
      radial-gradient(circle at 28px center, var(--paper) 13px, transparent 13.5px) right / 28px 28px no-repeat;
  }
  .ticket {
    min-height: max(200px, calc((100dvh - 330px) / 2));
  }
  .ticket__word {
    font-size: clamp(4rem, 23vw, 7rem);
  }
  .ticket--moto .ticket__strip {
    display: none;
  }
  .ticket__go {
    width: 48px;
    height: 48px;
  }
  .is-tearing .ticket--moto {
    --tear-x: 0px;
    --tear-r: -1.2deg;
  }
  .is-tearing .ticket--carro {
    --tear-x: 0px;
    --tear-r: 1.2deg;
  }

  .vhero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .vhero > .perf-y {
    display: none;
  }
  .vhero__word {
    min-height: 30vh;
  }
  .vhero__word span {
    font-size: clamp(6rem, 36vw, 11rem);
  }
  .vhero__claim {
    padding-left: var(--pad);
    background: radial-gradient(circle, var(--ink) 1.7px, transparent 2.1px) left top / 12px 10px repeat-x;
    padding-top: calc(var(--pad) + 8px);
  }
  .years__row,
  .years__axis {
    grid-template-columns: 5.6rem minmax(0, 1fr) 3.6rem;
  }
  .ledger div {
    grid-template-columns: 1fr;
  }
  .q__opts {
    grid-template-columns: 1fr;
  }
  .result {
    grid-template-columns: 1fr;
  }
  .stamp {
    position: static;
    justify-self: end;
    margin: -4px 6px 0;
    font-size: 1.5rem;
  }
  .filters__status {
    display: none;
  }
  .sources-pop__panel {
    right: var(--pad);
    left: var(--pad);
    width: auto;
  }
}

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