/* ═══════════════════════════════════════════════════════════════
   TELUS AI Innovation Challenge — stylesheet
   Tokens per DESIGN.md (TELUS identity: purple #4B286D, green
   #66CC00 decorative / #2B8000 accessible, white canvas).
   ═══════════════════════════════════════════════════════════════ */

:root {
  --purple: #4B286D;
  --purple-deep: #3A1D57;
  --purple-tint: #F4F0F9;
  --purple-mid: #7C53A5;
  --green: #66CC00;
  --green-access: #2B8000;
  --green-deep: #1F5C00;
  --ink: #2A2C2E;
  --ink-soft: #54595F;
  --white: #FFFFFF;
  --lavender: #C7B8DC;
  --hairline: #E4DEED;
  --error: #C12335;

  --font: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 16px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --z-ticker: 1;
  --z-nav: 40;
  --z-progress: 45;
  --z-menu: 50;
  --z-loader: 60;
}

/* ── Reset-ish ── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, dl, dd, figure, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-access); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
button { font: inherit; cursor: pointer; }
fieldset { border: 0; }
[hidden] { display: none !important; }

::selection { background: var(--green); color: var(--purple-deep); }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: calc(var(--z-loader) + 1);
  background: var(--purple); color: #fff; padding: 0.6rem 1.1rem; border-radius: 0 0 10px 10px;
  font-weight: 700; transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 0; color: #fff; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Chrome hidden until loader done (JS adds .is-loaded; noscript overrides) */
body:not(.is-loaded) .site-nav,
body:not(.is-loaded) main,
body:not(.is-loaded) footer { opacity: 0; visibility: hidden; }
body.is-loaded .site-nav, body.is-loaded main, body.is-loaded footer {
  opacity: 1; visibility: visible; transition: opacity 0.4s ease;
}

/* ═══ Loader ═══ */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--white);
  display: grid; place-content: center; gap: 1rem;
  text-align: center;
}
.loader.is-done { pointer-events: none; }
.loader-mark { position: relative; display: inline-block; }
.loader-word {
  display: block;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.loader-word--dim { color: var(--hairline); }
.loader-word--fill {
  position: absolute; inset: 0; color: var(--purple);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.3s linear;
}
.loader-word--fill::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3px;
  top: var(--fill-line, 100%);
  background: var(--green);
}
.loader-pct { color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ═══ Progress line ═══ */
.progress-line {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--green);
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: var(--z-progress);
}
.progress-line::after {
  content: ""; position: absolute; right: -2px; top: 50%; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green);
  transform: translateY(-50%);
  box-shadow: 0 0 8px 2px rgba(102, 204, 0, 0.55);
}

/* ═══ Nav ═══ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--container); margin-inline: auto; padding: 0.8rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.6rem;
  text-decoration: none; color: var(--purple);
}
.wordmark-telus { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.015em; }
.wordmark-rule { width: 1.5px; height: 1.15rem; background: var(--hairline); align-self: center; }
.wordmark-sub { font-weight: 600; font-size: 0.86rem; letter-spacing: 0.01em; color: var(--ink-soft); }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a {
  position: relative; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 0.95rem; padding: 0.35rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px;
  background: var(--green); border-radius: 2px;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--purple); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

.menu-btn {
  display: none; background: none; border: 0; padding: 0.5rem;
  align-items: center; justify-content: center;
}
.menu-btn-box { display: grid; gap: 5px; width: 22px; }
.menu-btn-box i { height: 2.5px; background: var(--purple); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.menu-btn[aria-expanded="true"] .menu-btn-box i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-box i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ═══ Mobile menu overlay ═══ */
.menu-overlay {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--purple);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
  padding: 5rem var(--gutter) 3rem;
}
.menu-list { display: grid; gap: 0.4rem; text-align: center; }
.menu-list a {
  color: #fff; text-decoration: none; font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.2rem); letter-spacing: -0.02em;
  padding: 0.25rem 0.5rem; border-radius: 8px;
}
.menu-list a:hover { color: var(--green); }
.menu-list a:focus-visible { outline-color: var(--green); }
.menu-list .menu-cta { color: var(--green); }
.menu-foot { color: var(--lavender); font-weight: 600; }

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.9rem; border-radius: 999px;
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s;
  will-change: transform;
}
.btn--green { background: var(--green-access); color: #fff; }
.btn--green:hover { background: var(--green-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(43, 128, 0, 0.55); }
.btn--ghost-purple { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn--ghost-purple:hover { background: var(--purple); color: #fff; transform: translateY(-2px); }
.btn--nav { padding: 0.55rem 1.25rem; font-size: 0.93rem; }
.btn--submit { width: 100%; padding: 1.05rem 2rem; font-size: 1.08rem; }

/* ═══ Shared section bits ═══ */
.section { padding-block: clamp(5rem, 11vh, 8.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.section-title {
  color: var(--purple); font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.06; letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-lede { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.11rem; max-width: 62ch; text-wrap: pretty; }
.section-lede strong { color: var(--ink); }

/* char-split scaffolding (states driven by JS) */
.line { display: block; overflow: clip; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; }

/* Edge fades, applied ONLY where the subject genuinely runs off its frame.
   The critters' backgrounds are pure #FFFFFF, so they already dissolve into the
   page with no mask at all — a blanket radial "feather" here was a measurable
   no-op (with 115% radii even the corners land at 61.5% of the ray, inside the
   66% fully-opaque stop) and only risked eating real subject pixels.
   Masking the WRAPPER covers the still and its video in one pass. */
.judging-critter .critter-media {   /* the owl's branch runs edge to edge */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.hero-critter .critter-media {      /* the meerkat's legs continue past the bottom */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
/* NB the sign-up critter gets no edge fade — it sits on the tinted section, so it
   is a deliberate white photo card (see below) that pairs with the form card. */

/* ── Cinemagraph layer ──
   Each critter is a still <img> (the accessible, always-visible base) with its
   looping video stacked exactly on top. The video only downloads and fades in
   when JS decides to play it, so no-JS / no-video / reduced-motion all keep the
   still. The wrapper owns the box (width + aspect-ratio → deterministic height,
   never circular); both media absolutely fill it, so they align to the pixel. */
.critter-media {
  position: relative; display: block;
  margin-inline: auto;
  width: min(100%, var(--critter-w, 22rem));
  aspect-ratio: var(--critter-ar, 1);
}
.critter-media > img, .critter-media > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.critter-vid {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.critter-vid.is-playing { opacity: 1; }
/* the still stays underneath — no cross-fade gap if the video stalls */

/* critter captions */
.critter-tag {
  display: inline-block; margin-top: 0.9rem;
  background: var(--purple-tint); color: var(--purple);
  font-size: 0.86rem; font-weight: 700;
  padding: 0.42rem 0.95rem; border-radius: 999px;
}
.critter-tag--onpurple { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ═══ 1 · Hero ═══ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(5.5rem, 12vh, 8rem);
  padding-bottom: 4.5rem;
  background: var(--white);
}
.hero-inner {
  /* image column widened from 5fr so the meerkat reads bigger; copy still holds
     the 3-line headline comfortably at the clamp's max size */
  display: grid; grid-template-columns: 6.6fr 5.4fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; width: 100%;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--purple-tint); color: var(--purple);
  font-weight: 700; font-size: 0.88rem;
  padding: 0.5rem 1.05rem; border-radius: 999px;
  margin-bottom: 1.6rem;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero-title {
  color: var(--purple); font-weight: 800;
  font-size: clamp(2.6rem, min(6.6vw, 10.5svh), 5.4rem);
  line-height: 1.02; letter-spacing: -0.032em;
  text-wrap: balance;
}
.hero-title em { font-style: normal; }
.u-sweep { position: relative; display: inline-block; z-index: 0; /* own stacking context so the -1 bar stays inside */ }
.u-sweep::after {
  content: ""; position: absolute; left: 0.02em; right: 0.02em; bottom: 0.04em;
  height: 0.12em; background: var(--green); border-radius: 4px;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.7s var(--ease-out) 0.15s;
  z-index: -1;
}
.is-swept .u-sweep::after, .u-sweep.is-swept::after { transform: scaleX(1); }
.hero-sub { margin-top: 1.5rem; color: var(--ink-soft); font-size: 1.17rem; max-width: 54ch; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }
.hero-meta {
  /* column-gap is budgeted so all four stats hold ONE row in the copy column —
     a second row costs ~80px and pushes the hero past 100svh. */
  display: flex; flex-wrap: wrap;
  column-gap: clamp(1rem, 2vw, 1.5rem); row-gap: 1.1rem;
  margin-top: 2.2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.hero-meta dt { font-size: 0.82rem; font-weight: 700; color: var(--green-access); letter-spacing: 0.02em; }
.hero-meta dd { font-weight: 700; color: var(--purple); font-size: 1.04rem; }

.hero-critter { position: relative; }
/* 3:4 art: cap by HEIGHT as well as width (h * 0.75 = w) so the aspect box
   never fights a short viewport — playbook's height-capped art rule. */
.hero-critter .critter-media {
  --critter-ar: 3 / 4;
  width: min(100%, 34rem, min(74svh, 40rem) * 0.75);
}
.critter-tag--hero { position: absolute; left: 50%; transform: translateX(-50%); bottom: -0.6rem; margin: 0; white-space: nowrap; }
.spark { position: absolute; color: var(--green); font-size: 1.5rem; }
.spark--1 { top: 6%; left: 4%; }
.spark--2 { bottom: 16%; right: 2%; font-size: 1.1rem; }
.spark--3 { top: 22%; right: 8%; color: var(--purple-mid); font-size: 0.8rem; }

.scroll-cue {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.1rem;
  color: var(--ink-soft); font-size: 0.88rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.5rem;
}
.scroll-cue-chev { color: var(--green-access); font-size: 1.1rem; animation: cue-bob 1.8s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* ═══ 2 · Challenge drench ═══ */
.challenge { height: 230svh; background: var(--purple); }
.challenge-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center; overflow: clip;
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-deep) 100%);
}
.challenge-inner { position: relative; z-index: 2; width: 100%; }
.challenge-kicker { color: var(--green); font-weight: 700; font-size: 1rem; margin-bottom: 1.4rem; }
.challenge-q {
  color: #fff; font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 1.06; letter-spacing: -0.03em;
}
.q-line { display: block; overflow: clip; }
.q-hot { font-style: normal; color: var(--green); }
.challenge-sub {
  margin-top: 2rem; color: var(--lavender); font-size: 1.15rem; max-width: 56ch; text-wrap: pretty;
}
.challenge-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(42% 42% at 62% 40%, rgba(102, 204, 0, 0.28), rgba(102, 204, 0, 0) 70%);
  opacity: 0; pointer-events: none; z-index: 1;
}

/* ═══ 3 · Scope ═══ */
.scope-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.scope-col-title {
  color: var(--purple); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.015em;
  padding-bottom: 0.9rem; border-bottom: 2.5px solid var(--purple);
  margin-bottom: 0.4rem;
}
.tick-list li {
  display: flex; gap: 0.85rem; align-items: baseline;
  padding: 0.95rem 0; border-bottom: 1px solid var(--hairline);
  font-weight: 600; color: var(--ink); font-size: 1.06rem;
}
.tick { color: var(--green-access); flex: none; font-size: 0.95rem; }
.tick--p { color: var(--purple-mid); font-weight: 800; }
.tick-list--rules li { font-weight: 400; color: var(--ink-soft); }

/* ═══ 4 · Ticker ═══ */
.ticker {
  background: var(--purple);
  padding-block: 1.05rem;
  overflow: clip;
  position: relative; z-index: var(--z-ticker);
}
.ticker-track { display: flex; width: max-content; will-change: transform; }
.ticker-group { display: flex; flex: none; align-items: center; }
.ticker-item {
  color: #fff; font-weight: 800; font-size: 1.02rem; letter-spacing: 0.06em;
  white-space: nowrap; padding-inline: 1.3rem;
  display: inline-flex; align-items: center; gap: 2.6rem;
}
.ticker-item::after { content: "✦"; color: var(--green); font-size: 0.85rem; }

/* ═══ 5 · Ideas slider ═══ */
.ideas { padding-bottom: clamp(5rem, 11vh, 8.5rem); }
.slider { --edge: max(var(--gutter), (100vw - var(--container)) / 2 + var(--gutter)); }
.slider-vp {
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--edge);
  scrollbar-width: none;
}
.slider-vp::-webkit-scrollbar { display: none; }
.slider-track {
  display: flex; width: max-content; gap: 1.1rem;
  padding-inline: var(--edge) var(--gutter);
}
.idea-card {
  flex: none; scroll-snap-align: start;
  width: min(24rem, 82vw);
  background: var(--purple-tint);
  border-radius: var(--radius);
  padding: 1.9rem 1.9rem 1.7rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.idea-card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px -20px rgba(75, 40, 109, 0.4); }
.idea-area {
  align-self: flex-start;
  background: var(--purple); color: #fff;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.32rem 0.8rem; border-radius: 999px;
}
.idea-title { color: var(--purple); font-weight: 800; font-size: 1.42rem; letter-spacing: -0.02em; line-height: 1.15; }
.idea-what { color: var(--ink); }
.idea-tools { margin-top: auto; padding-top: 0.6rem; color: var(--green-access); font-weight: 700; font-size: 0.88rem; }
.slider-nav { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.8rem; }
.slider-arrows { display: flex; gap: 0.6rem; }
.slider-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--purple); background: #fff; color: var(--purple);
  font-size: 1.15rem; font-weight: 700;
  display: grid; place-content: center;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s, transform 0.2s var(--ease-out);
}
.slider-arrow:hover:not(:disabled) { background: var(--purple); color: #fff; transform: translateY(-2px); }
.slider-arrow:disabled { opacity: 0.3; cursor: default; }
.slider-dots { display: flex; gap: 0.55rem; }
.slider-dot {
  width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0;
  background: var(--hairline);
  transition: background-color 0.25s, width 0.25s var(--ease-out);
}
.slider-dot.is-active { background: var(--green-access); width: 26px; }

/* ═══ 6 · Essentials ═══ */
.essentials { background: var(--purple-tint); }
.fact-rows { display: grid; }
.fact-row {
  display: grid; grid-template-columns: minmax(9rem, 16rem) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: 1.7rem;
  border-bottom: 1px solid #DCD2EA;
}
.fact-row:first-child { border-top: 1px solid #DCD2EA; }
.fact-row dt { color: var(--purple); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.015em; }
.fact-row dd { color: var(--ink-soft); max-width: 62ch; }
.fact-row dd strong { color: var(--ink); }

/* ═══ 7 · Judging ═══ */
.judging-grid {
  /* owl column widened from 5fr — the criteria bars still have ample room */
  display: grid; grid-template-columns: 6fr 7fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.judging-critter .critter-media { --critter-w: 30rem; }
.judging-critter { text-align: center; }
.criteria { margin-top: 2.4rem; display: grid; gap: 1.55rem; }
.criterion-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.criterion-head h3 { color: var(--purple); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.01em; }
.criterion-w { color: var(--purple); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.criterion-note { color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.15rem; max-width: 56ch; }
.bar { height: 10px; border-radius: 999px; background: var(--purple-tint); margin-top: 0.65rem; overflow: clip; }
.bar-fill {
  height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--green-access), var(--green));
  width: calc(var(--w) * 1%);
}

/* ═══ 8 · Prizes drench ═══ */
.prizes { height: 240svh; background: var(--purple); }
.prizes-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center; overflow: clip;
  background: linear-gradient(200deg, var(--purple) 0%, var(--purple-deep) 100%);
}
.prizes-inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: 6.4fr 5.6fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.prizes-kicker { color: var(--green); font-weight: 700; margin-bottom: 1.2rem; }
.prizes-title {
  color: #fff; font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance;
}
.prize-big { margin-top: 2rem; }
.prize-number {
  color: var(--green); font-weight: 800;
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.prize-label { color: var(--lavender); font-weight: 700; font-size: 1.1rem; margin-top: 0.4rem; }
.prize-list { margin-top: 2.2rem; display: grid; gap: 1rem; max-width: 56ch; }
.prize-list li { color: var(--lavender); padding-left: 1.6rem; position: relative; }
.prize-list li::before { content: "✦"; position: absolute; left: 0; top: 0.15rem; color: var(--green); font-size: 0.9rem; }
.prize-list strong { color: #fff; }
.prizes-critter { text-align: center; }
.prizes-panel {
  background: var(--white); border-radius: calc(var(--radius) + 8px);
  padding: 1rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
}
.prizes-panel .critter-media { --critter-w: 100%; border-radius: var(--radius); overflow: clip; }
.prizes-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(45% 45% at 30% 55%, rgba(102, 204, 0, 0.3), rgba(102, 204, 0, 0) 70%);
  opacity: 0; pointer-events: none; z-index: 1;
}

/* ═══ 9 · Timeline ═══ */
.tl { position: relative; padding-left: clamp(1.6rem, 5vw, 3rem); }
.tl-line {
  position: absolute; left: 6px; top: 0.6rem; bottom: 0.6rem; width: 3px;
  background: var(--hairline); border-radius: 2px;
}
.tl-line-fill {
  position: absolute; inset: 0;
  background: var(--green);
  transform-origin: 50% 0; transform: scaleY(1);
  border-radius: inherit;
}
.tl-list { display: grid; gap: clamp(1.8rem, 4vh, 2.6rem); }
.tl-item {
  position: relative;
  display: grid; grid-template-columns: minmax(6.5rem, 8rem) 1fr;
  gap: clamp(1rem, 3vw, 2.2rem);
}
.tl-item::before {
  content: ""; position: absolute;
  left: calc(-1 * clamp(1.6rem, 5vw, 3rem) - 0.5px);
  top: 0.5rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3.5px solid var(--purple);
  transform: translateX(-4.75px);
}
.tl-item.is-lit::before { background: var(--green); border-color: var(--purple); }
.tl-date { color: var(--green-access); font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums; padding-top: 0.1rem; }
.tl-body h3 { color: var(--purple); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.015em; }
.tl-body p { color: var(--ink-soft); margin-top: 0.3rem; max-width: 58ch; }

/* ═══ 10 · FAQ ═══ */
.faq-grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.faq-side { position: sticky; top: 6rem; }
.faq-critter { margin-top: 2rem; text-align: center; }
.faq-critter .critter-media { --critter-w: 24rem; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:first-child { border-top: 1px solid var(--hairline); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.25rem 0.2rem;
  color: var(--purple); font-weight: 700; font-size: 1.12rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--purple-deep); }
.faq-mark { position: relative; flex: none; width: 18px; height: 18px; }
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; background: var(--green-access); border-radius: 2px;
  transition: transform 0.35s var(--ease-out);
}
.faq-mark::before { left: 0; right: 0; top: 8px; height: 2.5px; }
.faq-mark::after { top: 0; bottom: 0; left: 8px; width: 2.5px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-out); }
.faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-body p {
  overflow: hidden; min-height: 0;
  color: var(--ink-soft); max-width: 60ch;
  padding-bottom: 0; transition: padding-bottom 0.4s var(--ease-out);
}
.faq-item.is-open .faq-body p { padding-bottom: 1.4rem; }

/* ═══ 11 · Sign up ═══ */
.signup { background: var(--purple-tint); }
.signup-grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.signup-critter { margin-top: 2rem; }
/* The sign-up section is tinted, and the critter footage carries a white studio
   background — so instead of an accidental white rectangle, make it an intentional
   white photo card that mirrors the form card beside it. */
.signup-critter .critter-media {
  --critter-w: 26rem;
  background: var(--white);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 24px 50px -30px rgba(75, 40, 109, 0.35);
  overflow: clip;
}
.signup-form {
  background: var(--white); border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: 0 24px 50px -30px rgba(75, 40, 109, 0.35);
  display: grid; gap: 1.25rem;
  position: relative;
}
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-weight: 700; color: var(--purple); font-size: 0.98rem; }
.field label em, .field legend em { font-style: normal; font-weight: 400; color: var(--ink-soft); font-size: 0.88rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  font: inherit; color: var(--ink);
  border: 1.5px solid #D8D0E4; border-radius: 12px;
  padding: 0.78rem 0.95rem; background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 5.2rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(75, 40, 109, 0.14);
}
.field input::placeholder, .field textarea::placeholder { color: #6E6A75; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.field-err { color: var(--error); font-size: 0.88rem; font-weight: 600; min-height: 0; }
.field-count { color: var(--ink-soft); font-size: 0.85rem; text-align: right; font-variant-numeric: tabular-nums; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.2rem; }
.radio {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid #D8D0E4; border-radius: 999px;
  padding: 0.55rem 1.1rem; cursor: pointer;
  font-weight: 600; color: var(--ink); font-size: 0.97rem;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.radio:has(input:checked) { border-color: var(--purple); background: var(--purple); color: #fff; }
.radio:has(input:focus-visible) { outline: 3px solid var(--purple); outline-offset: 2px; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; color: var(--ink-soft); font-size: 0.97rem; }
.check input {
  flex: none; width: 20px; height: 20px; margin-top: 0.15rem;
  accent-color: var(--green-access);
}
.form-fine { color: var(--ink-soft); font-size: 0.88rem; }
.form-success {
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--white);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.9rem;
  text-align: center; padding: 2rem;
}
.form-success[hidden] { display: none; }
.success-big { color: var(--purple); font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.02em; }
.form-success p:not(.success-big) { color: var(--ink-soft); max-width: 44ch; }

/* confetti */
.confetti-piece {
  position: fixed; top: -12px; width: 9px; height: 14px; z-index: var(--z-menu);
  pointer-events: none; border-radius: 2px;
}

/* ═══ 12 · Lineup ═══ */
.lineup { padding: clamp(3rem, 8vh, 6rem) 0 0; background: var(--white); position: relative; overflow: clip; }

/* the meerkat peeking over the purple footer: anchored past the section's bottom
   edge; overflow:clip cuts the body exactly at the white/purple boundary.
   CSS default = peeked (no-JS / reduced motion); JS scrubs it up on scroll. */
.peek {
  position: absolute; z-index: 0;
  right: clamp(1.2rem, 9vw, 8rem);
  bottom: 0;
  width: clamp(88px, 11vw, 140px);
  pointer-events: none;
  animation: peek-sway 5.5s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.peek img { display: block; width: 100%; height: auto; transform: translateY(55%); }
@keyframes peek-sway {
  0%, 100% { rotate: -1.5deg; }
  50% { rotate: 1.5deg; }
}
.lineup-figure { text-align: center; max-width: 68rem; margin-inline: auto; padding-inline: var(--gutter); }
.lineup-figure img { margin-inline: auto; }
.lineup .critter-tag { margin-block: 1.2rem 3rem; }

/* ═══ Footer ═══ */
.site-footer { background: var(--purple); color: var(--lavender); margin-top: 0; }
.footer-inner { padding-block: 3.2rem 2.4rem; display: grid; gap: 1.8rem; }
.wordmark--footer { color: #fff; }
.wordmark--footer .wordmark-telus { color: #fff; }
.wordmark--footer .wordmark-rule { background: rgba(255, 255, 255, 0.3); }
.wordmark--footer .wordmark-sub { color: var(--lavender); }
.footer-tag { color: var(--green); font-weight: 700; margin-top: 0.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.96rem; }
.footer-links a:hover { color: var(--green); }
.footer-links a:focus-visible { outline-color: var(--green); }
.footer-fine { color: var(--lavender); font-size: 0.88rem; }

/* ═══ Critter life ═══
   The six main critters are now looping cinemagraph VIDEOS (see .critter-vid),
   so their motion comes from the footage — no CSS idle loop on top, which would
   fight the filmed movement. What stays in CSS: the still-image critters (footer
   crew, footer peeker) and the hover/tap reactions, which work on img or video
   alike. Writer split still holds: GSAP owns figure-level reveals, CSS owns the
   media element's own transform. */

/* the whole crew (footer): calm synchronized breathing */
.lineup-figure img { animation: crew-breathe 6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes crew-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012); }
}

/* No hover OR click reaction on the critters — both read as a glitch rather than
   delight on a photograph. The animals already move on their own (cinemagraphs);
   that IS the delight, and it needs no pointer input to be noticed. */

/* positioning context for the media wrappers + captions */
.judging-critter, .faq-critter, .signup-critter,
.prizes-panel, .lineup-figure { position: relative; }
.spark { animation: spark-pulse 3.4s ease-in-out infinite; }
.spark--2 { animation-delay: 1.1s; }
.spark--3 { animation-delay: 2s; }
@keyframes spark-pulse {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}

/* ═══ Responsive ═══ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { padding-top: 6.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-critter .critter-media { width: min(100%, 34rem, 52svh * 0.75); }
  .judging-grid, .faq-grid, .signup-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; }
  .faq-critter { margin-top: 0; }
  .faq-critter .critter-media { --critter-w: min(44vw, 17rem); }
  .prizes-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  /* explicit width, not max-width: `margin-inline:auto` on a grid item disables
     stretch, so a max-width-only box shrinks to fit-content — which here was the
     CAPTION's width, collapsing the piglet panel to ~205px. */
  .prizes-critter { width: min(100%, 22rem); margin-inline: auto; }
  .signup-critter { display: flex; align-items: center; gap: 1.2rem; }
  /* flex: none — as a flex item the media would shrink below its own width to
     make room for the caption (it collapsed to ~103px on a 375px screen). */
  .signup-critter .critter-media { --critter-w: min(46vw, 18rem); flex: none; }
}
@media (max-width: 640px) {
  .scope-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .form-row--split { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .tl-item { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero-meta { gap: 1.1rem 1.8rem; }
  .wordmark-sub { display: none; }
  .wordmark-rule { display: none; }
}

/* Reduced-motion document class (set by JS): unpin the drench chapters */
.rm .challenge, .rm .prizes { height: auto; }
.rm .challenge-sticky, .rm .prizes-sticky { position: static; height: auto; padding-block: clamp(5rem, 11vh, 8.5rem); }

/* ═══ Reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-cue-chev, .spark, .peek, .lineup-figure img { animation: none !important; }
  /* cinemagraphs never fade in — JS also never calls play() */
  .critter-vid { opacity: 0 !important; }
  html { scroll-behavior: auto; }
}
