/* ==========================================================================
   Hero · a comic page. A title panel on a sunburst, an art panel with a
   terminal and the mascot, and a strip of facts with the countdown.
   js/main.js feeds --px / --py (pointer, -1 to 1) for the parallax, types
   the terminal and runs the countdown; everything else is CSS.
   ========================================================================== */

/* Registered so the sunburst can turn */
@property --ray-turn {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.hero {
  --edge: clamp(10px, 1.3vw, 20px);
  --gap: clamp(10px, 1.1vw, 16px);
  --panel-shadow: 6px 6px 0 var(--ink);
  --px: 0;
  --py: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  /* A comic page, not a red field: a yellow sheet lit from the top, with the
     halftone dots over it, so the red and blue panels read as printed panels. */
  background-color: var(--hero-page);
  background-image:
    radial-gradient(rgba(12, 14, 15, 0.10) 1.1px, transparent 1.5px),
    radial-gradient(130% 100% at 50% 0%, var(--hero-page-lit) 0%, var(--hero-page) 58%, var(--hero-page-shade) 100%);
  background-size: 9px 9px, cover;
}

.hero__page {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "bar   bar"
    "main  art"
    "strip strip";
  gap: var(--gap);
  width: min(100%, 1480px);
  margin-inline: auto;
  padding: var(--edge);
}

.hero-panel {
  position: relative;
  isolation: isolate;
  min-width: 0;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--panel-shadow);
}

/* Bar ---------------------------------------------------------------------- */
.hero-bar {
  grid-area: bar;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  padding: 8px 8px 8px clamp(14px, 1.6vw, 22px);
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--panel-shadow);
  animation: hero-drop 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.hero-bar__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  min-width: 0;
  text-decoration: none;
  white-space: nowrap;
}
.hero-bar__partner {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.hero-bar__x { font-family: var(--font-tape); font-size: 1rem; color: var(--red); }
.hero-bar__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.9rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-bar__links {
  display: flex;
  gap: clamp(4px, 1.6vw, 28px);
  margin-left: auto;
}
.hero-bar__links a {
  position: relative;
  padding: 0.35em 0.2em;
  font-family: var(--font-tape);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
/* A marker stroke that draws in under the hovered link */
.hero-bar__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--tape);
  -webkit-mask: var(--swoosh) center / 100% 100% no-repeat;
  mask: var(--swoosh) center / 100% 100% no-repeat;
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.25s ease;
}
.hero-bar__links a:hover::after,
.hero-bar__links a:focus-visible::after { scale: 1 1; }

.hero-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.62em 1.1em;
  font-family: var(--font-tape);
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--pink);
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: translate 0.15s ease, box-shadow 0.15s ease;
}
.hero-bar__cta svg,
.hero-cta__arrow {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-bar__cta:hover { translate: -1px -1px; box-shadow: 4px 4px 0 var(--ink); }
.hero-bar__cta:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }

/* Title panel --------------------------------------------------------------- */
.hero-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(12px, 2svh, 22px);
  padding: clamp(22px, 3vw, 44px);
  overflow: hidden;
  background: var(--red);
}

/* Sunburst behind the wordmark, turning slowly, fading out toward the edges */
.hero-main__rays {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-conic-gradient(from var(--ray-turn) at 34% 40%, #F4592F 0deg 6deg, #E53A1B 6deg 12deg);
  -webkit-mask-image: radial-gradient(120% 100% at 34% 40%, #000 30%, rgba(0, 0, 0, 0.35) 100%);
  mask-image: radial-gradient(120% 100% at 34% 40%, #000 30%, rgba(0, 0, 0, 0.35) 100%);
  animation: hero-rays 90s linear infinite;
}
/* Halftone shading in the lower corner */
.hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(12, 14, 15, 0.3) 1.6px, transparent 2px);
  background-size: 10px 10px;
  -webkit-mask-image: linear-gradient(135deg, transparent 55%, #000 100%);
  mask-image: linear-gradient(135deg, transparent 55%, #000 100%);
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.3em 0.9em 0.3em 0.3em;
  font-family: var(--font-tape);
  font-size: clamp(0.7rem, 0.62rem + 0.32vw, 0.92rem);
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  animation: hero-rise 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) 0.05s both;
}
.hero-kicker__ed {
  padding: 0.35em 0.75em;
  color: var(--ink);
  background: var(--tape);
  border-radius: 999px;
}

.hero-title {
  width: 100%;
  margin: 0;
  line-height: 0;
  animation: hero-pop 0.75s cubic-bezier(0.2, 1.3, 0.4, 1) 0.1s both;
}
.hero-logo {
  width: auto;
  max-width: min(100%, 720px);
  height: auto;
  max-height: clamp(120px, 28svh, 250px);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(5px 6px 0 rgba(12, 14, 15, 0.35));
}

.hero-tagline {
  padding: 0.42em 0.8em 0.46em;
  font-family: var(--font-tape);
  font-size: clamp(1.02rem, 0.72rem + 1.25vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink);
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink);
  width: max-content;
  max-width: 100%;
  rotate: -1.6deg;
  animation: hero-rise 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) 0.2s both;
}
.hero-tagline mark {
  padding: 0 0.12em;
  color: inherit;
  background: linear-gradient(transparent 12%, var(--tape) 12%, var(--tape) 88%, transparent 88%);
}

.hero-sub {
  font-family: var(--font-tape);
  font-size: clamp(0.84rem, 0.74rem + 0.42vw, 1.12rem);
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--ink);
  animation: hero-rise 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) 0.28s both;
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: clamp(0px, 0.6svh, 8px);
  animation: hero-rise 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) 0.36s both;
}

.hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.68em 1.1em 0.68em 1.35em;
  font-family: var(--font-tape);
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.75rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--pink);
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: translate 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  animation: hero-nudge 5s ease-in-out 2.4s infinite;
}
/* Action lines, comic style, off the left edge */
.hero-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  width: 30px;
  height: 46px;
  translate: 0 -50%;
  background: var(--white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 46'%3E%3Cg stroke='%23000' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M26 6 12 2M24 23H4M26 40l-14 4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 46'%3E%3Cg stroke='%23000' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M26 6 12 2M24 23H4M26 40l-14 4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.hero-cta__arrow { width: 0.9em; height: 0.9em; stroke-width: 3.4; transition: translate 0.2s cubic-bezier(0.2, 1.4, 0.4, 1); }
.hero-cta:hover { translate: -2px -2px; background: #F98FC0; box-shadow: 8px 8px 0 var(--ink); animation-play-state: paused; }
.hero-cta:hover .hero-cta__arrow { translate: 3px -3px; }
.hero-cta:active { translate: 4px 4px; box-shadow: 2px 2px 0 var(--ink); }
.hero-cta:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }

.hero-link {
  font-family: var(--font-tape);
  font-size: clamp(0.88rem, 0.8rem + 0.3vw, 1.05rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--tape);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--ink);
  transition: text-underline-offset 0.2s ease;
}
.hero-link::after { content: " \2192"; }
.hero-link:hover { text-underline-offset: 9px; }
.hero-link:focus-visible { outline-color: var(--white); }

/* Art panel ----------------------------------------------------------------- */
.hero-art {
  grid-area: art;
  min-height: 0;
  overflow: hidden;
  container-type: size;
  background-color: var(--blue);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.2) 1.4px, transparent 1.8px),
    radial-gradient(120% 90% at 50% 30%, rgba(255, 255, 255, 0.16), transparent 70%);
  background-size: 12px 12px, 100% 100%;
  animation: hero-rise 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) 0.15s both;
}

/* A square-ish scene, anchored to the bottom of the panel. Everything inside
   is sized in cqw of this box, so the drawing scales as one piece. */
.hero-art__stage {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100cqw, 108cqh);
  aspect-ratio: 1 / 0.93;
  translate: -50% 0;
  container-type: inline-size;
}

/* The desk, running past the scene to both panel edges */
.hero-art__stage::before {
  content: "";
  position: absolute;
  left: -60cqw;
  right: -60cqw;
  bottom: 0;
  height: 16cqw;
  background: #2F63D6;
  background-image: repeating-linear-gradient(90deg, transparent 0 7cqw, rgba(12, 14, 15, 0.1) 7cqw 7.6cqw);
  border-top: var(--line) solid var(--ink);
}

/* Parallax: each layer drifts with the pointer by its own depth */
.crt,
.hero-sticky,
.hero-burst,
.hero-mug,
.mascot-corner--hero {
  translate: calc(var(--px) * var(--depth, 1) * 1.4cqw) calc(var(--py) * var(--depth, 1) * 1cqw);
}

/* Monitor */
.crt {
  --depth: 0.4;
  position: absolute;
  left: 29cqw;
  bottom: 11cqw;
  width: 56cqw;
  rotate: -2deg;
  transition: translate 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.crt__body {
  position: relative;
  padding: 4.4cqw 4.4cqw 0;
  background: linear-gradient(160deg, #FBF1DC 0%, #EFDFC0 60%, #E2CDA6 100%);
  border: var(--line) solid var(--ink);
  border-radius: 6cqw 6cqw 3.5cqw 3.5cqw;
  box-shadow: 1.8cqw 1.8cqw 0 var(--ink), inset -1.2cqw -1.2cqw 0 rgba(12, 14, 15, 0.08);
}
.crt__screen {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 4cqw 4.2cqw;
  overflow: hidden;
  background: radial-gradient(120% 100% at 45% 35%, #1D3027 0%, #0C1511 72%);
  border: var(--line) solid var(--ink);
  border-radius: 4cqw / 5cqw;
  box-shadow: inset 0 0 0 0.9cqw #2B3430, inset 0 0 5cqw rgba(0, 0, 0, 0.75);
}
/* Scanlines and a glass glare */
.crt__screen::before,
.crt__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.crt__screen::before {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px);
}
.crt__screen::after {
  background: radial-gradient(60% 40% at 25% 18%, rgba(255, 255, 255, 0.14), transparent 70%);
}

.crt__lines {
  font-family: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 3.05cqw;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  color: #B9F7CB;
  text-shadow: 0 0 1.4cqw rgba(120, 255, 170, 0.55);
}
.crt__lines li::before { content: "> "; color: var(--tape); }
.crt__lines li.crt__out { color: var(--tape); text-shadow: 0 0 1.4cqw rgba(255, 226, 58, 0.5); }
.crt__lines li.crt__out::before { content: none; }
/* Block cursor: after the last line when static, after the line being typed when live */
.crt__lines li:last-child::after,
.crt__lines.is-live li::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  margin-left: 0.2em;
  vertical-align: -0.18em;
  background: currentColor;
  animation: hero-blink 1s steps(1) infinite;
}
.crt__lines.is-live li::after { display: none; }
.crt__lines.is-live li.is-active::after { display: inline-block; }

.crt__chin {
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 2.3cqw 1cqw 2.6cqw;
}
.crt__label {
  font-family: var(--font-tape);
  font-size: 2.2cqw;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.crt__vents {
  flex: 1;
  height: 2.2cqw;
  background: repeating-linear-gradient(90deg, rgba(12, 14, 15, 0.55) 0 0.5cqw, transparent 0.5cqw 1.4cqw);
  border-radius: 1cqw;
}
.crt__led {
  flex: none;
  width: 2.3cqw;
  height: 2.3cqw;
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 1.6cqw rgba(34, 172, 95, 0.9);
  animation: hero-led 2.4s ease-in-out infinite;
}
.crt__neck {
  width: 20cqw;
  height: 4.6cqw;
  margin: calc(var(--line) * -1) auto 0;
  background: linear-gradient(90deg, #E2CDA6, #D2BB91);
  border: var(--line) solid var(--ink);
  border-top: 0;
}
.crt__base {
  width: 44cqw;
  height: 3.6cqw;
  margin: calc(var(--line) * -1) auto 0;
  background: linear-gradient(180deg, #F5E8CD, #E2CDA6);
  border: var(--line) solid var(--ink);
  border-radius: 2cqw 2cqw 1cqw 1cqw;
  box-shadow: 1.2cqw 1.2cqw 0 var(--ink);
}

/* Sticky note */
.hero-sticky {
  --depth: 1;
  position: absolute;
  top: 4cqw;
  right: 4cqw;
  display: grid;
  place-items: center;
  width: 27cqw;
  aspect-ratio: 1;
  padding: 2.6cqw;
  rotate: 6deg;
  background: var(--tape);
  border: var(--line) solid var(--ink);
  box-shadow: 1.4cqw 1.4cqw 0 var(--ink);
  transition: translate 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.hero-sticky p {
  font-family: var(--font-tape);
  font-size: 2.9cqw;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: left;
}
.hero-sticky u {
  text-decoration-color: var(--red);
  text-decoration-thickness: 0.7cqw;
  text-underline-offset: 1cqw;
}
.hero-sticky__tape {
  position: absolute;
  top: -2.4cqw;
  left: 50%;
  width: 12cqw;
  height: 4.4cqw;
  translate: -50% 0;
  rotate: -6deg;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(12, 14, 15, 0.25);
}

/* Burst sticker */
.hero-burst {
  --depth: 1.3;
  position: absolute;
  top: 4cqw;
  left: 3cqw;
  display: grid;
  place-items: center;
  width: 22cqw;
  aspect-ratio: 1;
  transition: translate 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.hero-burst > * { grid-area: 1 / 1; }
.hero-burst svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: var(--pink);
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linejoin: round;
  filter: drop-shadow(1cqw 1cqw 0 var(--ink));
  animation: hero-spin 24s linear infinite;
}
.hero-burst span {
  font-family: var(--font-display);
  font-size: 5.2cqw;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  rotate: -12deg;
}

/* Mug of hackathon fuel */
.hero-mug {
  --depth: 1.2;
  position: absolute;
  right: 6cqw;
  bottom: 5cqw;
  width: 12cqw;
  transition: translate 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.hero-mug__cup {
  position: relative;
  display: grid;
  place-items: center;
  height: 14cqw;
  font-family: var(--font-tape);
  font-size: 3.4cqw;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 0.8cqw 0.8cqw 3cqw 3cqw;
  box-shadow: 1cqw 1cqw 0 var(--ink);
}
.hero-mug__cup::after {
  content: "";
  position: absolute;
  top: 2.6cqw;
  left: 100%;
  width: 4.4cqw;
  height: 6.4cqw;
  border: var(--line) solid var(--ink);
  border-left: 0;
  border-radius: 0 3cqw 3cqw 0;
}
.hero-mug__steam {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 9cqw;
  height: 10cqw;
  translate: -50% -1cqw;
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  animation: hero-steam 2.8s ease-in-out infinite;
}

/* Mascot, standing on the desk. The shared .mascot-corner styles and
   js/main.js handle its hover flipbook and click quips. */
.mascot-corner--hero {
  --depth: 1.6;
  left: 3cqw;
  bottom: 3cqw;
  transition: translate 0.5s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mascot-corner--hero { align-items: flex-start; }
.mascot-corner--hero .mascot-img { width: 29cqw; }
.mascot-corner--hero .mascot-bubble { font-size: max(0.66rem, 2.8cqw); rotate: -4deg; }
.mascot-corner--hero:hover { transform: rotate(-4deg) scale(1.05); }

/* Twinkles */
.hero-spark {
  position: absolute;
  width: var(--s, 5cqw);
  aspect-ratio: 1;
  background: var(--c, var(--tape));
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
  animation: hero-twinkle 2.6s ease-in-out infinite;
}
.hero-spark--a { top: 32cqw; left: 6cqw; --s: 4.5cqw; animation-delay: 0.4s; }
.hero-spark--b { top: 38cqw; right: 2.5cqw; --s: 5.5cqw; --c: var(--white); animation-delay: 1.1s; }
.hero-spark--c { top: 6cqw; left: 47cqw; --s: 4cqw; --c: var(--pink); animation-delay: 1.8s; }

/* Fact strip ---------------------------------------------------------------- */
.hero-strip {
  grid-area: strip;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--gap);
  animation: hero-rise 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) 0.3s both;
}

.hero-when {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 14px;
  padding: 14px clamp(12px, 1.4vw, 22px);
  background: var(--paper);
}
.hero-fact {
  display: flex;
  align-items: center;
  gap: 0.75em;
}
.hero-fact + .hero-fact {
  padding-left: clamp(12px, 1.4vw, 22px);
  border-left: var(--line) solid var(--ink);
}
.hero-fact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.7em;
  aspect-ratio: 1;
  background: var(--tape);
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
}
.hero-fact__icon svg {
  width: 60%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-fact__text {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.05rem + 0.8vw, 1.95rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-fact__text time { font: inherit; }
.hero-fact__text small {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

/* Countdown ------------------------------------------------------------------ */
.hero-count {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--tape);
}
.countdown__label,
.countdown__deadline {
  font-family: var(--font-tape);
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.countdown__label { font-size: clamp(0.72rem, 0.66rem + 0.24vw, 0.9rem); }
.countdown__deadline { font-size: 0.68rem; opacity: 0.7; }
.countdown__deadline time { font: inherit; }

.countdown__units {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 0.8vw, 12px);
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  min-width: clamp(50px, 4.6vw, 70px);
  padding: 0.3em 0.4em 0.35em;
  background: var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 rgba(12, 14, 15, 0.3);
}
.countdown__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--tape);
}
.countdown__name {
  font-family: var(--font-tape);
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.8;
}

/* Once the deadline passes, the digits go and the label says so */
.countdown.is-over .countdown__units,
.countdown.is-over .countdown__deadline { display: none; }
.countdown.is-over .countdown__label {
  padding: 0.5em 1.1em;
  font-size: clamp(0.8rem, 0.7rem + 0.4vw, 1rem);
  color: var(--tape);
  background: var(--ink);
  border-radius: 999px;
}

/* Prize --------------------------------------------------------------------- */
.hero-prize {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  padding: 12px clamp(14px, 1.6vw, 24px);
  text-decoration: none;
  background: var(--pink);
  overflow: hidden;
  transition: translate 0.15s ease, box-shadow 0.15s ease;
}
/* Coin-stack rays in the corner */
.hero-prize::before {
  content: "";
  position: absolute;
  right: -40px;
  top: 50%;
  z-index: -1;
  width: 150px;
  aspect-ratio: 1;
  translate: 0 -50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.3) 0deg 10deg, transparent 10deg 20deg);
  border-radius: 50%;
  animation: hero-spin 30s linear infinite;
}
.hero-prize__label {
  font-family: var(--font-tape);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-prize__amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--tape);
  -webkit-text-stroke: 0.08em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.05em 0.06em 0 var(--ink);
}
.hero-prize__note {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}
.hero-prize__note::after { content: " \2192"; }
.hero-prize:hover { translate: -2px -2px; box-shadow: 8px 8px 0 var(--ink); }
.hero-prize:active { translate: 3px 3px; box-shadow: 3px 3px 0 var(--ink); }

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

/* Laptops: the strip panels get narrow, so the date and venue stack */
@media (max-width: 1320px) {
  .hero-when { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
  .hero-fact + .hero-fact { padding-left: 0; border-left: 0; }
  .hero-fact__icon { width: 2.3em; }
}

/* Short desktop windows: tighten the title panel so the page fits one screen */
@media (min-width: 861px) and (max-height: 800px) {
  .hero-main { gap: 12px; padding-block: 18px; }
  .hero-logo { max-height: 25svh; }
  .hero-tagline { font-size: clamp(0.95rem, 0.7rem + 1vw, 1.4rem); }
  .hero-sub { display: none; }
  .hero-cta { font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.4rem); }
  .hero-count { gap: 6px; padding-block: 10px; }
  .countdown__value { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); }
}

/* Tablets and phones: one column. Title first, then the facts, then the art. */
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero__page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "bar"
      "main"
      "strip"
      "art";
  }

  .hero-bar__links { display: none; }
  .hero-bar__cta { display: none; }

  .hero-main {
    align-items: center;
    text-align: center;
    padding: clamp(22px, 6vw, 40px) clamp(16px, 5vw, 36px) clamp(26px, 7vw, 44px);
  }
  .hero-main__rays {
    background: repeating-conic-gradient(from var(--ray-turn) at 50% 34%, #F4592F 0deg 6deg, #E53A1B 6deg 12deg);
    -webkit-mask-image: radial-gradient(130% 90% at 50% 34%, #000 30%, rgba(0, 0, 0, 0.35) 100%);
    mask-image: radial-gradient(130% 90% at 50% 34%, #000 30%, rgba(0, 0, 0, 0.35) 100%);
  }
  .hero-logo { max-height: none; margin-inline: auto; object-position: center; }
  .hero-actions { flex-direction: column; align-self: stretch; gap: 16px; }
  .hero-cta { align-self: stretch; }
  .hero-cta::before { display: none; }

  .hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "count count"
      "when  prize";
  }
  .hero-count { grid-area: count; }
  .hero-when { grid-area: when; }
  .hero-prize { grid-area: prize; }

  .hero-art { height: min(88vw, 520px); }
}

@media (max-width: 480px) {
  .hero { --panel-shadow: 4px 4px 0 var(--ink); }
  .hero-bar { padding-left: 12px; }
  .hero-bar__partner { font-size: 1.05rem; }
  .hero-bar__name { font-size: 1.2rem; }
  .hero-bar__cta { padding: 0.55em 0.8em; font-size: 0.82rem; }

  .hero-kicker { font-size: 0.64rem; gap: 0.5em; }
  .hero-tagline { font-size: clamp(0.95rem, 4.6vw, 1.25rem); }
  .hero-sub { font-size: 0.78rem; letter-spacing: 0.05em; }
  .hero-cta { font-size: 1.3rem; box-shadow: 5px 5px 0 var(--ink); }

  .hero-when { padding: 12px; }
  .hero-fact { gap: 0.55em; }
  .hero-fact__icon { width: 2em; border-radius: 8px; box-shadow: 2px 2px 0 var(--ink); }
  .hero-fact__text { font-size: 1.3rem; }
  .hero-fact__text small { font-size: 0.66rem; }
  .countdown__units { justify-self: stretch; }
  .countdown__unit { flex: 1; min-width: 0; }
  .countdown__value { font-size: 2rem; }
  .hero-count { padding: 12px; }
  .hero-prize { padding: 12px; }
  .hero-prize__amount { font-size: 1.85rem; }
  .hero-prize__note { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-main__rays,
  .hero-burst svg,
  .hero-prize::before,
  .hero-mug__steam,
  .hero-spark,
  .crt__led,
  .hero-cta { animation: none; }
}

/* Keyframes ----------------------------------------------------------------- */
@keyframes hero-rays { to { --ray-turn: 360deg; } }
@keyframes hero-spin { to { rotate: 360deg; } }
@keyframes hero-blink { 50% { opacity: 0; } }
@keyframes hero-led { 50% { box-shadow: 0 0 0.4cqw rgba(34, 172, 95, 0.4); } }
@keyframes hero-twinkle {
  0%, 100% { scale: 1; opacity: 1; }
  50% { scale: 0.55; opacity: 0.6; }
}
@keyframes hero-steam {
  0% { opacity: 0; translate: -50% 1cqw; }
  40% { opacity: 1; }
  100% { opacity: 0; translate: -50% -3cqw; }
}
/* A short wiggle every few seconds, so the CTA keeps catching the eye */
@keyframes hero-nudge {
  0%, 84%, 100% { rotate: 0deg; }
  87% { rotate: -3deg; }
  90% { rotate: 3deg; }
  93% { rotate: -2deg; }
  96% { rotate: 1deg; }
}
@keyframes hero-rise {
  from { opacity: 0; translate: 0 18px; }
}
@keyframes hero-drop {
  from { opacity: 0; translate: 0 -14px; }
}
@keyframes hero-pop {
  from { opacity: 0; scale: 0.7; rotate: -4deg; }
}
