/* Mississauga Mayoral Debate */

:root {
  --bg: #ffffff;
  --ink: #0b0f1a;
  --ink-2: #2b3140;
  --muted: #5d6475;
  --line: #e4e6ea;
  --green: #00b33c;        /* brand green, display sizes only */
  --green-text: #067a2e;   /* accessible green for small text */

  --f-display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --f-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 69px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Sections lock into place: the page always settles with one section filling the screen */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-snap-type: y mandatory; }
html.snap-soft { scroll-snap-type: y proximity; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, p, dl, dd, figure, ol { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.label {
  font-family: var(--f-head); font-weight: 600; font-size: .8125rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.label::before {
  content: ""; display: inline-block; vertical-align: middle; height: 2px; width: 0; margin-right: 0;
  background: var(--green); transition: width .7s var(--ease) .15s, margin .7s var(--ease) .15s;
}
.label.is-in::before, .is-in > .label::before { width: 22px; margin-right: 10px; }

.h2 {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -.02em;
  max-width: 22ch; margin-top: 16px;
}
.lead {
  font-family: var(--f-head); font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.25; letter-spacing: -.015em;
}
.body { color: var(--ink-2); margin-top: 20px; max-width: 52ch; }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-head); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  padding: 1em 1.4em; border-radius: 4px;
  background: var(--ink); color: #fff;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--green-text);
  transform: translateX(-101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { font-size: .875rem; padding: .75em 1.1em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, transform .45s var(--ease);
  animation: navIn .8s var(--ease) both;
}
@keyframes navIn { from { transform: translateY(-100%); } }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 16px; }
.nav__tcmv { height: 40px; width: auto; }
.nav__rep { height: 24px; width: auto; }
.nav__sep { width: 1px; height: 28px; background: var(--line); }
.nav__links { display: flex; gap: 32px; margin-left: auto; margin-right: 8px; }
.nav__links a {
  position: relative; font-family: var(--f-head); font-weight: 500; font-size: .9375rem; text-decoration: none; color: var(--muted);
  transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--green);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--green);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Full-viewport sections ---------- */
.section, .hero {
  min-height: 100vh; min-height: 100svh;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; justify-content: safe center;
  /* equal space above and below, measured from under the nav, so content sits centred in what you see */
  padding: calc(var(--nav-h) + clamp(32px, 5vh, 64px)) 0 clamp(32px, 5vh, 64px);
}
.head { max-width: 640px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro .split { align-items: center; }
.intro__side { display: flex; flex-direction: column; gap: clamp(24px, 5vh, 48px); }
.stat { display: flex; flex-direction: column; gap: 12px; }
.stat__num {
  font-family: var(--f-display); font-size: clamp(5rem, min(11vw, 24vh), 10rem); line-height: .85;
  color: var(--green); text-transform: uppercase; white-space: nowrap;
}
.stat__cap { font-family: var(--f-head); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip;
  scroll-margin-top: var(--nav-h);
  min-height: calc(100svh - var(--nav-h));
  padding-top: clamp(32px, 6vh, 72px);
}
.hero__art {
  position: absolute; right: -60px; bottom: -1px; width: min(600px, 42vw); height: auto;
  color: #d5d9df; pointer-events: none;
}
.hero__art > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__inner { position: relative; perspective: 1600px; perspective-origin: 20% 40%; }

/* Title: a real 3D object. Each line is a face plus a stack of copies pushed back in Z.
   Layers are per line (about 30 in total) rather than per letter, which keeps compositing cheap. */
.title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.5rem, min(12.5vw, 15vh), 10rem); line-height: .9; letter-spacing: .005em;
  display: flex; flex-direction: column; align-items: flex-start;
  transform-style: preserve-3d; transform-origin: 0 50%;
  transform: rotateX(8deg) rotateY(-16deg);
}
.title__line { position: relative; display: block; transform-style: preserve-3d; }
.title__line > span { display: block; white-space: nowrap; }
.title__line--green { color: var(--green); }

.ln {
  --side-a: #aab1be; --side-b: #4b5366;
  position: relative; transform-style: preserve-3d; transform-origin: 50% 100%;
  animation: flipIn 1.2s var(--ease) both; animation-delay: var(--line-d, 0s);
}
.title__line--green .ln { --side-a: #0c9a3a; --side-b: #045a22; }
.ln__f { position: relative; display: block; }
.ln__l {
  position: absolute; left: 0; top: 0;
  transform: translateZ(calc(var(--k) * -.015em));
  color: color-mix(in srgb, var(--side-b), var(--side-a) calc(100% - var(--k) * 8%));
}
.ln__l:first-child { text-shadow: 0 .02em .06em rgba(11, 15, 26, .25); }
.title__line:nth-child(1) { --line-d: .05s; }
.title__line:nth-child(3) { --line-d: .5s; }
@keyframes flipIn {
  from { translate: 0 .35em; rotate: x -92deg; }
  to { translate: 0 0; rotate: x 0deg; }
}

/* MAYORAL is uncovered by a green block that sweeps across */
.title__line--green .ln { animation: lnShow .01s linear both; animation-delay: .8s; }
@keyframes lnShow { from { visibility: hidden; } to { visibility: visible; } }
.title__line--green::after {
  content: ""; position: absolute; left: 0; right: 0; top: .08em; bottom: .02em; background: var(--green);
  transform: translateZ(.02em);
  clip-path: inset(0 100% 0 0); animation: wipe 1s cubic-bezier(.76, 0, .24, 1) .3s both;
}
@keyframes wipe {
  0% { clip-path: inset(0 100% 0 0); }
  48%, 52% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}
/* Touch devices: a slow idle sway so the depth still reads (paused once the hero is off screen) */
@media (hover: none) {
  .title { animation: sway 10s ease-in-out 1.6s infinite alternate; }
  .hero.is-away .title { animation-play-state: paused; }
  @keyframes sway {
    from { transform: rotateX(9deg) rotateY(-20deg); }
    to { transform: rotateX(5deg) rotateY(-10deg); }
  }
}

.facts {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  margin-top: clamp(32px, 5vh, 64px); padding-top: 24px;
  max-width: 860px;
}
.facts dt { font-family: var(--f-head); font-weight: 600; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-family: var(--f-head); font-weight: 500; font-size: 1.125rem; line-height: 1.4; margin-top: 6px; }
.facts > div, .hero__cta { opacity: 0; animation: fade .9s var(--ease) forwards; }
.facts > div:nth-child(1) { animation-delay: 1s; }
.facts > div:nth-child(2) { animation-delay: 1.1s; }
.facts > div:nth-child(3) { animation-delay: 1.2s; }
.hero__cta { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: clamp(24px, 4vh, 40px); animation-delay: 1.35s; }
.hero__note { color: var(--muted); font-size: .9375rem; }
.hero__inner { margin-block: auto; }
.hero__sponsors {
  position: relative; display: flex; align-items: center; gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 5vh, 56px); padding-top: clamp(16px, 2.5vh, 24px);
  opacity: 0; animation: fade .9s var(--ease) 1.5s forwards;
}
/* Divider spans the content width, not the side padding */
.hero__sponsors::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.hero__sponsors .label { white-space: nowrap; }
.hero__sponsors .sponsors { height: clamp(52px, 8.5vh, 76px); gap: clamp(20px, 3.5vw, 48px); }
.hero__sponsors .sponsors img { height: clamp(52px, 8.5vh, 76px); }
.hero__sponsors .sponsors .is-wide { height: clamp(31px, 4.8vh, 46px); }
.hero__sponsors img { filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s; }
.hero__sponsors img:hover { filter: none; opacity: 1; }
.hero__sponsors .is-gold { filter: grayscale(1) brightness(.72) contrast(1.1); }
.hero__sponsors .is-gold:hover { filter: brightness(.72) saturate(1.4) contrast(1.1); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- One-time entrance details (IntersectionObserver adds .is-in) ---------- */
[data-line] { position: relative; }
[data-line]::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease);
}
[data-line].is-in::before { transform: scaleX(1); }
.facts[data-line]::before { transition-delay: .8s; }
.footer__base[data-line]::before { background: var(--line); }

.table > div { position: relative; }
.table > div::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) calc(var(--d, 0s) + .1s);
}
.table > div.is-in::after { transform: scaleX(1); }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 35ms); }
[data-split].is-in .w > span { transform: none; }

[data-words] .lw { color: #c5c9d0; transition: color .35s ease; }
[data-words] .lw.on { color: var(--ink); }

/* Fallback reveal for browsers without scroll-driven animations */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Moderators ---------- */
.mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); max-width: 620px; justify-self: end; width: 100%; }
.mod__img { overflow: hidden; border-radius: 2px; background: var(--green); clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease) var(--d, 0s); }
.mod__img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; transform-origin: 50% 0; transform: scale(1.3); transition: transform 1.8s var(--ease) var(--d, 0s); }
.mod.is-in .mod__img { clip-path: inset(0); }
.mod.is-in .mod__img img { transform: scale(1.02); }
.mod:hover .mod__img img { transform: scale(1.07); transition-duration: .8s; transition-delay: 0s; }
.mod figcaption { display: flex; flex-direction: column; margin-top: 16px; }
.mod strong { font-family: var(--f-head); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.mod span { color: var(--muted); font-size: .9375rem; }

/* ---------- Details ---------- */
.links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.links a {
  font-family: var(--f-head); font-weight: 600; font-size: .9375rem; text-decoration: none; padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .2s;
}
.links a:hover { color: var(--green-text); background-size: 0 1px; background-position: 100% 100%; }
.table > div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 12px 0; }
.table dt { font-family: var(--f-head); font-weight: 600; font-size: .9375rem; color: var(--muted); }
.table dd { font-family: var(--f-head); font-weight: 500; }
.table dd small { display: block; margin-top: 2px; font-family: var(--f-body); font-weight: 400; font-size: .875rem; line-height: 1.4; color: var(--muted); }

/* ---------- Register ---------- */
.aside { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 44ch; color: var(--ink-2); font-size: .9375rem; }
.aside__title { font-family: var(--f-head); font-weight: 600; color: var(--ink); margin-bottom: 4px; font-size: 1rem; }
/* Flyer with the ticket button underneath */
.flyer { display: flex; flex-direction: column; gap: 20px; max-width: min(560px, 62vh); justify-self: end; width: 100%; }
.flyer img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.flyer__btn { justify-content: center; }

/* ---------- Questions page (/questions) ---------- */
html.no-snap { scroll-snap-type: none; }
.qpage { padding: clamp(40px, 7vh, 88px) 0 clamp(56px, 8vh, 96px); }
.qpage__split { align-items: start; }
.qpage__head { position: sticky; top: calc(var(--nav-h) + 32px); }
.qpage__notes { margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--ink-2); font-size: .9375rem; max-width: 46ch; }
.qpage__notes li { position: relative; padding-left: 20px; }
.qpage__notes li + li { margin-top: 8px; }
.qpage__notes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--green); }

.qform-wrap { max-width: 620px; width: 100%; justify-self: end; }
.qform__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.qform__group + .qform__group { margin-top: 40px; }
.qform__group > legend { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; margin-bottom: 20px; }
.qform__count { margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--green-text); }

.field + .field { margin-top: 18px; }
.field label, .qitem__label { display: block; font-family: var(--f-head); font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.field__hint { font-size: .8125rem; color: var(--muted); margin-top: 6px; }
.qform input, .qform textarea {
  display: block; width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #c9cdd4; border-radius: 4px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.qform textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.qform input::placeholder { color: #9aa0ab; }
.qform input:hover, .qform textarea:hover { border-color: #9aa0ab; }
.qform input:focus, .qform textarea:focus { outline: none; border-color: var(--green-text); box-shadow: 0 0 0 3px rgba(0, 179, 60, .18); }
.is-invalid input, .is-invalid textarea { border-color: #c62828; }
.is-invalid input:focus, .is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }

.qlist { list-style: none; padding: 0; margin: 0; }
.qitem + .qitem { margin-top: 16px; }
.qitem { animation: fade .5s var(--ease) both; }
.qitem__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.qitem__remove {
  font: inherit; font-family: var(--f-head); font-weight: 500; font-size: .875rem; color: var(--muted);
  background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.qitem__remove:hover { color: #c62828; }
.qitem__chars { font-size: .8125rem; color: var(--muted); text-align: right; min-height: 0; margin-top: 4px; }
.qitem__chars:empty { display: none; }

.qadd {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px;
  font: inherit; font-family: var(--f-head); font-weight: 600; font-size: .9375rem; color: var(--ink);
  background: none; border: 1px dashed #b4b9c2; border-radius: 4px; padding: 14px; cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.qadd:hover { border-color: var(--green-text); color: var(--green-text); background: rgba(0, 179, 60, .04); }
.qadd svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qform__error { margin-top: 24px; padding: 12px 14px; border-left: 3px solid #c62828; background: #fdf2f2; color: #8e1c1c; font-size: .9375rem; }
.qform__submit { margin-top: 32px; width: 100%; justify-content: center; border: 0; cursor: pointer; }
.qform__submit:disabled { opacity: .6; cursor: progress; }
.qdone { outline: none; scroll-margin-top: calc(var(--nav-h) + 24px); animation: fade .7s var(--ease) both; }
.qdone .h2 { max-width: 18ch; }
.footer.footer--slim { padding: 0 0 calc(32px + env(safe-area-inset-bottom)); border-top: 0; }
.footer--slim .footer__base { margin-top: 0; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.footer { padding: clamp(56px, 8vw, 96px) 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); scroll-snap-align: end; }
.credits { display: grid; grid-template-columns: auto auto auto; justify-content: start; align-items: stretch; }
.credits__group { padding: 0 clamp(28px, 3.5vw, 48px); }
.credits__group:first-child { padding-left: 0; }
.credits__group + .credits__group { border-left: 1px solid var(--line); }
.credits__group .label { margin-bottom: 20px; white-space: nowrap; }
.credits__row { display: flex; align-items: center; gap: 32px; height: 80px; }
.credits__row img { flex: none; max-width: none; }
.credits__row > a, .sponsors a { display: block; flex: none; }
.credits__tcmv { height: 80px; width: auto; }
.credits__rep { height: 34px; width: auto; }
.credits__mntv { height: 64px; width: auto; }
.sponsors { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(24px, 3vw, 40px); height: 80px; }
.sponsors li { height: 100%; display: flex; align-items: center; flex: none; }
.sponsors img { height: 74px; width: auto; max-width: none; }
.sponsors .is-wide { height: 44px; }
.credits img { filter: grayscale(1); opacity: .7; transition: filter .4s, opacity .4s, transform .4s var(--ease); }
.credits img:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.sponsors .is-gold { filter: grayscale(1) brightness(.72) contrast(1.1); }
.sponsors .is-gold:hover { filter: brightness(.72) saturate(1.4) contrast(1.1); }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 24px;
  font-size: .9375rem; color: var(--ink-2);
}
.footer__meta { color: var(--muted); }

/* ==========================================================================
   Scroll-driven content transitions.
   Runs on the browser's animation engine, tied to scroll position: content
   rises and fades in as it arrives and drifts up and out as it leaves.
   ========================================================================== */
@supports (animation-timeline: view()) {
  @keyframes fxIn { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
  @keyframes fxOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-32px); } }
  @keyframes heroOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6vh); } }
  @keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  .section [data-reveal], .section [data-split], .section [data-line] {
    opacity: 1; transform: none; transition: none;
    animation: fxIn linear both, fxOut linear forwards;
    animation-timeline: view(), view();
    animation-range: entry 0% entry 100%, exit 0% exit 100%;
  }
  /* Rows inside a list move with their list */
  .section [data-line] [data-reveal] { animation: none; opacity: 1; transform: none; }

  .hero__inner, .hero__sponsors {
    animation: heroOut linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
    transform-origin: 20% 0;
  }

  /* Nav progress bar follows page scroll */
  .nav__progress { animation: bar linear both; animation-timeline: scroll(root); }
}

/* ---------- Responsive ---------- */
/* Footer: "Presented by" gets its own row once the three groups no longer fit side by side */
@media (max-width: 1199px) {
  .credits { grid-template-columns: auto auto; }
  .credits__group:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .split { grid-template-columns: 1fr; align-items: start; }
  .mods { justify-self: start; }
  /* Register stacks: size the flyer to whatever height is left so the section fits one screen */
  .register .split { gap: 24px; }
  .register .aside { margin-top: 20px; padding-top: 14px; }
  .flyer { justify-self: start; width: min(100%, calc(100svh - 450px)); max-width: none; gap: 12px; }
  .qpage__head { position: static; }
  .qform-wrap { justify-self: start; }
}

@media (max-width: 640px) {
  :root { --nav-h: 61px; }
  body { font-size: 1rem; }
  .nav__inner { padding-top: 12px; padding-bottom: 12px; }
  .nav__tcmv { height: 34px; }
  .nav__rep { height: 20px; }
  .nav__brand { gap: 12px; }
  .title { font-size: min(16.5vw, 12vh); }
  .hero__art { display: none; }
  .hero { padding-top: 24px; padding-bottom: 24px; }
  .facts { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; padding-top: 16px; }
  .facts dd { font-size: 1rem; margin-top: 2px; }
  .hero__cta { margin-top: 20px; gap: 10px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__sponsors { margin-top: 20px; padding-top: 14px; gap: 16px; }
  .hero__sponsors .label { font-size: .6875rem; letter-spacing: .08em; }
  .hero__sponsors .label::before { display: none; }
  .hero__sponsors .sponsors { gap: 16px; height: 40px; }
  .hero__sponsors .sponsors img { height: 40px; }
  .hero__sponsors .sponsors .is-wide { height: 24px; }
  /* Fit every section in one screen on phones */
  .section { padding: calc(var(--nav-h) + 16px) 0 16px; }
  .h2 { font-size: 1.5rem; margin-top: 10px; }
  .body { margin-top: 12px; }
  .lead { font-size: 1.3rem; }
  .split { gap: 20px; }
  .table > div { grid-template-columns: 104px 1fr; gap: 12px; padding: 7px 0; font-size: .9375rem; }
  .table dt { font-size: .875rem; }
  .table dd small { font-size: .8125rem; margin-top: 0; }
  .links { margin-top: 14px; }
  .register .aside { font-size: .875rem; }
  .flyer { width: min(100%, calc(100svh - 400px)); }
  .footer__base { margin-top: 0; }
  .qpage { padding-top: 28px; }
  .qpage__notes { margin-top: 20px; padding-top: 16px; }
  .qform__group + .qform__group { margin-top: 32px; }
  .mods { gap: 12px; }
  .mod strong { font-size: 1.0625rem; }
  .credits { grid-template-columns: 1fr; }
  .credits__group, .credits__group:first-child { padding: 32px 0; }
  .credits__group:first-child { padding-top: 0; }
  .credits__group + .credits__group, .credits__group:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); margin-top: 0; }
  .credits__row { height: 64px; }
  .credits__tcmv { height: 64px; }
  .sponsors { gap: 24px; }
  .sponsors img { height: 52px; }
  .sponsors .is-wide { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .title { transform: none; }
  .title__line--green::after { display: none; }
  .facts > div, .hero__cta, .hero__sponsors { opacity: 1; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-split] .w > span, .mod__img img { transform: none; }
  .mod__img { clip-path: none; }
  [data-line]::before, .table > div::after { transform: none; }
  [data-words] .lw { color: var(--ink); }
}
