/* CodeCrunch 2027 landing page */

:root {
  --orange: #ff6500;
  --orange-lip: #b84900;
  --black: #080808;
  --white: #ffffff;
  --panel: #141414;
  --grey: #8a8a8a;
  --paper: #f3f1ee;

  --display: "Figtree", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 10vw, 140px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: var(--black);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

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

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

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--focus, var(--black));
  outline-offset: 4px;
  border-radius: 6px;
}

.eyebrow {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow--ink { color: var(--black); }
.eyebrow--dim { color: #b04600; } /* orange darkened to pass 4.5:1 on white */

/* ------------------------------------------------------------------ */
/* Keycaps. The face sits on a fixed lip. Hover drops the face a       */
/* little and pressing drops it almost to the base. Only the face      */
/* moves, so the lip can't lag behind it.                              */
/* ------------------------------------------------------------------ */

.key {
  --lip: 7px;
  --press: 0px;
  --radius: 12px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  padding: 0 0 var(--lip);
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  vertical-align: top;
}
.key::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: var(--lip);
  border-radius: var(--radius);
  background: var(--lip-color);
  box-shadow: var(--key-shadow, 0 10px 18px -8px rgba(0, 0, 0, 0.35));
  transition: box-shadow 0.11s ease-out;
}
.key__face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  border-radius: var(--radius);
  background: var(--face);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(var(--press));
  transition: transform 0.11s ease-out, background-color 0.2s;
  box-shadow:
    inset 0 2px 0 var(--shine, rgba(255, 255, 255, 0.14)),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
a.key:hover, button.key:hover, .key.is-hover { --press: 3px; }
a.key:active, button.key:active, .key.is-pressed {
  --press: calc(var(--lip) - 1px);
  --key-shadow: 0 3px 6px -3px rgba(0, 0, 0, 0.35);
}
.key:focus-visible { outline-offset: 5px; }

.key--black  { --face: #1c1c1c; --lip-color: #000; --ink: var(--white); }
.key--dark   { --face: #232323; --lip-color: #000; --ink: var(--white); --shine: rgba(255, 255, 255, 0.1); --key-shadow: 0 0 0 1px #2e2e2e; }
.key--white  { --face: var(--white); --lip-color: #1c1c1c; --ink: var(--black); --shine: #fff; }
.key--orange { --face: var(--orange); --lip-color: var(--orange-lip); --ink: var(--black); --shine: rgba(255, 255, 255, 0.35); }

.key--sm .key__face { padding: 12px 18px; font-size: 15px; }
.key--md .key__face { padding: 16px 22px; font-size: 17px; }
.key--lg { --lip: 9px; --radius: 14px; }
.key--lg .key__face { padding: 20px 28px; font-size: 19px; }

.key__arrow { transition: transform 0.2s; }
.key:hover .key__arrow { transform: translateX(3px); }

.play-glyph {
  width: 0; height: 0;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.spk {
  width: 16px; height: 14px;
  background: currentColor;
  clip-path: polygon(0 30%, 30% 30%, 65% 0, 65% 100%, 30% 70%, 0 70%);
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  --focus: var(--black);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.35); }

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 76px;
}
.nav-mark { display: block; }
.nav-mark img { width: 170px; height: auto; }
.nav .year { margin-right: auto; }


/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  background: var(--orange);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(56px, 7vw, 96px);
  min-height: min(calc(100svh - 76px), 960px);
  padding: clamp(64px, 8vw, 128px) 0 clamp(28px, 3vw, 40px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.year {
  display: flex;
  gap: 5px;
}
.key--cap { --lip: 4px; --radius: 7px; cursor: default; }
.key--cap .key__face {
  width: 28px; height: 28px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
}
.key--cap:hover { --press: 2px; }

.hero h1 {
  font-size: clamp(52px, 6.9vw, 100px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  max-width: 9.5ch;
}

.hero__lede {
  margin-top: 28px;
  max-width: 30em;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.45;
}

/* Bottom strip of the hero: where it is, and who runs it */
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  width: 100%;
}
.hero__place {
  font-weight: 800;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
}
.hero__hosts {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Both logos sit on tiles built to the Griffith ICT Club spec, so they share a height */
.host { display: block; border-radius: 12px; transition: transform 0.15s ease-out; }
.host:hover { transform: translateY(-2px); }
.host img { width: auto; height: 64px; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero__art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mascot-btn {
  display: block;
  width: 100%;
  max-width: 600px;
  padding: 6% 8% 4% 2%;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 24px;
  -webkit-tap-highlight-color: transparent;
}
.mascot-svg { width: 100%; height: auto; overflow: visible; }

.hero__hint {
  margin-top: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--black);
}

/* The crunch. The key squashes from its bottom edge like a pressed key,
   the eyes squint, the hexagon gets bitten and the crumbs fly off, then
   everything springs back. */

.mascot-svg #mascot,
.mascot-svg #highlights-and-eyes {
  transform-box: view-box;
  transform-origin: 239px 441px;
}
.mascot-svg #left-eye,
.mascot-svg #right-eye {
  transform-box: fill-box;
  transform-origin: 50% 65%;
}
.mascot-svg #hexagon-bite,
.mascot-svg #upper-crumb,
.mascot-svg #right-crumb {
  transform-box: fill-box;
  transform-origin: center;
}
.mascot-shadow {
  fill: rgba(0, 0, 0, 0.16);
  transform-box: fill-box;
  transform-origin: center;
}

/* Idle: a blink every few seconds, with a double blink now and then. */
.js .mascot-svg:not(.chomp) #left-eye,
.js .mascot-svg:not(.chomp) #right-eye { animation: blink 6.5s infinite; }
@keyframes blink {
  0%, 44%, 47%, 100%  { transform: none; }
  45.5%               { transform: scaleY(0.1); }
  86%, 88.5%, 91%     { transform: none; }
  87.2%, 89.8%        { transform: scaleY(0.1); }
}

.chomp #mascot,
.chomp #highlights-and-eyes { animation: squash 0.78s cubic-bezier(0.3, 0.6, 0.3, 1) both; }
.chomp #left-eye,
.chomp #right-eye { animation: squint 0.78s ease-out both; }
.chomp #hexagon-bite { animation: bitten 0.78s cubic-bezier(0.3, 0.6, 0.3, 1) both; }
.chomp #upper-crumb { animation: crumb-up 1.1s ease-out both; }
.chomp #right-crumb { animation: crumb-right 1.1s ease-out both; }
.chomp .mascot-shadow { animation: shadow 0.78s ease-out both; }

@keyframes squash {
  0%   { transform: none; }
  20%  { transform: scale(1.06, 0.84); }
  46%  { transform: scale(0.97, 1.05); }
  68%  { transform: scale(1.01, 0.985); }
  100% { transform: none; }
}
@keyframes squint {
  0%, 100% { transform: none; }
  14%, 38% { transform: scaleY(0.2); }
  56%      { transform: scaleY(1.1); }
}
@keyframes bitten {
  0%   { transform: none; }
  20%  { transform: translate(-10px, 16px) scale(0.82) rotate(-10deg); }
  46%  { transform: translate(2px, -4px) scale(1.06) rotate(3deg); }
  100% { transform: none; }
}
@keyframes crumb-up {
  0%, 12% { transform: none; opacity: 1; }
  34%     { transform: translate(34px, -40px) rotate(70deg) scale(0.9); opacity: 0; }
  35%     { transform: translate(-30px, 30px) scale(0); opacity: 0; }
  62%     { transform: translate(3px, -3px) scale(1.2); opacity: 1; }
  78%     { transform: scale(0.95); }
  100%    { transform: none; opacity: 1; }
}
@keyframes crumb-right {
  0%, 14% { transform: none; opacity: 1; }
  36%     { transform: translate(46px, 14px) rotate(-60deg) scale(0.9); opacity: 0; }
  37%     { transform: translate(-36px, 10px) scale(0); opacity: 0; }
  66%     { transform: translate(3px, 1px) scale(1.2); opacity: 1; }
  82%     { transform: scale(0.95); }
  100%    { transform: none; opacity: 1; }
}
@keyframes shadow {
  0%, 100% { transform: none; }
  20% { transform: scale(1.08, 1.2); }
}

/* ------------------------------------------------------------------ */
/* Countdown                                                           */
/* ------------------------------------------------------------------ */

.countdown {
  --focus: var(--orange);
  background: var(--black);
  color: var(--white);
  padding: clamp(64px, 8vw, 110px) 0;
}
.countdown__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.clock {
  display: flex;
  justify-content: center;
}
.clock .key--digit .key__face {
  width: clamp(64px, 9vw, 116px);
  height: clamp(80px, 11vw, 140px);
  font-size: clamp(42px, 6vw, 78px);
}
.clock__keys { gap: clamp(8px, 1.2vw, 14px); }
.clock__label { font-size: 15px; }
.clock__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.clock__keys { display: flex; gap: 8px; }
.clock__label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--grey);
}

.key--digit {
  --lip: 9px;
  --radius: 14px;
  --face: #202020;
  --lip-color: #000;
  --ink: var(--white);
  --shine: rgba(255, 255, 255, 0.12);
  --key-shadow: 0 0 0 1.5px #2f2f2f;
  cursor: default;
}
.key--digit .key__face {
  width: clamp(38px, 5.4vw, 78px);
  height: clamp(48px, 6.6vw, 94px);
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 52px);
  font-variant-numeric: tabular-nums;
  transition: transform 0.09s ease-out;
}
.clock__group--secs .key--digit {
  --face: var(--orange);
  --lip-color: var(--orange-lip);
  --ink: var(--black);
  --shine: rgba(255, 255, 255, 0.35);
  --key-shadow: none;
}

.clock__done {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.03em;
  color: var(--orange);
}

/* ------------------------------------------------------------------ */
/* How it works                                                        */
/* ------------------------------------------------------------------ */

.how {
  --focus: var(--black);
  background: var(--white);
  padding: var(--section-y) 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step__key {
  --press: 0px;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 30px;
}
.step__key::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: 14px;
  border-radius: 26px;
  background: var(--black);
}
.step__face {
  position: relative;
  aspect-ratio: 5 / 3.5;
  display: grid;
  place-items: center;
  padding: 28px 22px 18px;
  border: 3px solid var(--black);
  border-radius: 26px;
  background: var(--paper);
  transform: translateY(var(--press));
  transition: transform 0.14s ease-out, background-color 0.2s;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.05), inset 0 3px 0 #fff;
}
.step:hover .step__key { --press: 6px; }
.step:hover .step__face { background: #fff4ea; }

.step__num {
  position: absolute;
  top: 16px; left: 20px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
}

.illo { width: 100%; height: auto; overflow: visible; }
.illo .win rect:first-child { fill: #fff; stroke: var(--black); stroke-width: 4; }
.illo .win line { stroke: var(--black); stroke-width: 3; }
.illo .dot { fill: #d6d3cf; }
.illo .dot--on { fill: var(--orange); }
.illo .code { fill: #dedad5; }
.illo .code--hot { fill: var(--black); }
.illo text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  fill: var(--black);
}
.illo .wire {
  stroke: var(--black);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0.1 10;
}
.hex-orange { color: var(--orange); fill: var(--orange); --hole: var(--black); }
.hex-ink { color: var(--black); fill: var(--black); --hole: var(--white); }
.bite-orange { fill: var(--orange); }

.packet {
  animation: packet 2.8s cubic-bezier(0.6, 0, 0.4, 1) infinite alternate;
}
@keyframes packet {
  0%, 12% { transform: translateX(-26px); }
  88%, 100% { transform: translateX(26px); }
}

.illo .orbit {
  fill: none;
  stroke: var(--black);
  stroke-width: 3;
  stroke-dasharray: 0.1 9;
  stroke-linecap: round;
}
.illo .arrow {
  fill: none;
  stroke: var(--black);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.swap-spin {
  transform-origin: 180px 84px;
  animation: spin 4s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
.swap-a { transform-origin: 118px 84px; animation: unspin 4s cubic-bezier(0.7, 0, 0.3, 1) infinite; }
.swap-b { transform-origin: 242px 84px; animation: unspin 4s cubic-bezier(0.7, 0, 0.3, 1) infinite; }
@keyframes spin {
  0%, 30% { transform: rotate(0); }
  50%, 80% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}
@keyframes unspin {
  0%, 30% { transform: rotate(0); }
  50%, 80% { transform: rotate(-180deg); }
  100% { transform: rotate(-360deg); }
}

.illo .cipher { font-size: 15px; fill: #9b958e; }
.illo .plain { font-size: 15px; fill: #b04600; }
.crack-mascot {
  transform-origin: 145px 176px;
}
.step:hover .crack-mascot { animation: mini-squash 0.6s cubic-bezier(0.3, 0.6, 0.3, 1); }
@keyframes mini-squash {
  0%, 100% { transform: none; }
  30% { transform: scale(1.05, 0.86); }
  60% { transform: scale(0.98, 1.04); }
}

.step__title {
  font-size: clamp(40px, 4vw, 60px);
  letter-spacing: -0.04em;
}
.step__lead {
  margin-top: 14px;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
}
.step__body {
  margin-top: 8px;
  color: #444;
  font-size: 17px;
  max-width: 26em;
}

/* ------------------------------------------------------------------ */
/* The rule                                                            */
/* ------------------------------------------------------------------ */

.rule {
  --focus: var(--black);
  background: var(--orange);
  padding: clamp(64px, 8vw, 110px) 0;
}
.rule__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px 72px;
}
.rule h2 { font-size: clamp(46px, 6vw, 88px); }
.rule__sub { display: inline-block; margin-top: 8px; font-size: 0.72em; font-weight: 800; white-space: nowrap; }

.strikes {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.strikes li {
  position: relative;
  padding: 20px 26px;
  border-radius: 14px;
  background: var(--black);
  box-shadow: 0 7px 0 #000, 0 16px 24px -12px rgba(0, 0, 0, 0.4);
  color: var(--white);
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(16px, 1.7vw, 22px);
  overflow: hidden;
}
.strikes li:nth-child(2) { margin-left: 28px; }
.strikes li:nth-child(3) { margin-left: 56px; }
.strikes code { position: relative; font: inherit; color: #c9c9c9; }
.strikes .ln {
  display: inline-block;
  width: 2.4em;
  color: var(--grey);
  font-size: 0.72em;
}
.strikes code::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  height: 5px;
  width: calc(100% + 12px);
  margin-top: -2px;
  border-radius: 3px;
  background: var(--orange);
  transform-origin: left center;
  transform: rotate(var(--tilt, -1.5deg)) scaleX(1);
}
.strikes li:nth-child(2) code::after { --tilt: 1deg; }
.strikes li:nth-child(3) code::after { --tilt: -0.8deg; }

.js .strikes code::after { transform: rotate(var(--tilt, -1.5deg)) scaleX(0); transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1); }
.js .strikes li:nth-child(2) code::after { transition-delay: 0.25s; }
.js .strikes li:nth-child(3) code::after { transition-delay: 0.5s; }
.js .strikes.is-in code::after { transform: rotate(var(--tilt, -1.5deg)) scaleX(1); }

/* ------------------------------------------------------------------ */
/* Promo                                                               */
/* ------------------------------------------------------------------ */

.promo {
  --focus: var(--orange);
  background: var(--black);
  color: var(--white);
  padding: var(--section-y) 0;
}
.promo__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.promo .window { width: min(100%, 1040px); }
.promo__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.window {
  margin: 0;
  border: 2px solid #e8e8e8;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 2px solid #e8e8e8;
}
.window__bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3a3a3a;
}
.window__bar i:first-child { background: var(--orange); }
.window__bar span {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
}
.window__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--orange); object-fit: cover; }

.player { position: relative; }
.player.is-started .window__video { cursor: pointer; }

/* Before playback the whole poster is the play button, with a keycap in the corner */
.player__start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: clamp(14px, 2.4vw, 28px);
  border: 0;
  background: none;
  cursor: pointer;
}
.player__start[hidden] { display: none; }
.player__start:hover .player__key { --press: 3px; }
.player__start:active .player__key { --press: calc(var(--lip) - 1px); }
.player__glyph { width: 18px; height: 18px; fill: var(--orange); }

.player__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.player__bar[hidden] { display: none; }
.player:hover .player__bar,
.player:focus-within .player__bar,
.player.is-paused .player__bar { opacity: 1; }
@media (hover: none) { .player__bar { opacity: 1; } }

.player__btn {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 10px;
  background: rgba(8, 8, 8, 0.75);
  color: var(--white);
  cursor: pointer;
}
.player__btn:hover { background: var(--black); }
.player__btn svg { width: 22px; height: 22px; fill: currentColor; }
.player .i-play, .player .i-muted { display: none; }
.player.is-paused .i-play, .player.is-muted .i-muted { display: block; }
.player.is-paused .i-pause, .player.is-muted .i-sound { display: none; }

.player__progress {
  flex: 1;
  height: 4px;
  margin-left: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.player__progress span { display: block; width: 0; height: 100%; background: var(--orange); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  --focus: var(--orange);
  background: var(--black);
  color: var(--white);
  padding: 0 0 48px;
}
.footer__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid #262626;
}
.footer__brand img { width: 220px; height: auto; }
.footer__brand p { margin-top: 12px; color: var(--grey); font-size: 16px; }
.footer__mascot { width: 64px; height: auto; }

/* ------------------------------------------------------------------ */
/* Register modal                                                      */
/* ------------------------------------------------------------------ */

.modal {
  --focus: var(--black);
  width: min(460px, calc(100% - 40px));
  padding: 40px 36px 36px;
  border: 3px solid var(--black);
  border-radius: 26px;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 10px 0 var(--black);
  text-align: center;
}
.modal::backdrop { background: rgba(8, 8, 8, 0.6); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
}
.modal__close {
  position: absolute;
  top: 12px; right: 14px;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--black);
  font: 400 30px/1 var(--display);
  cursor: pointer;
}
.modal__close:hover { background: var(--paper); }
.modal__mascot { width: 110px; height: auto; margin: 0 auto 18px; }
.modal h2 { font-size: clamp(32px, 5vw, 42px); }
.modal__text { margin: 12px auto 28px; max-width: 24em; font-size: 18px; color: #333; }
.modal__cta { width: 100%; }
.modal__cta .key__face { width: 100%; }

/* ------------------------------------------------------------------ */
/* Scroll reveal                                                       */
/* ------------------------------------------------------------------ */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.js .reveal.is-in { opacity: 1; transform: none; }

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

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .mascot-btn { max-width: 420px; }
  .steps { grid-template-columns: 1fr; max-width: 560px; }
  .rule__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { height: 64px; gap: 16px; }
  .mascot-btn { max-width: 320px; padding-top: 2%; }
  .nav { gap: 12px; }
  .nav-mark img { width: 128px; }
  .key--cap .key__face { width: 22px; height: 23px; font-size: 12px; }
  .year { gap: 3px; }
  .hero__cta .key { flex: 1 1 100%; }
  .hero__cta .key__face { width: 100%; }

  .strikes li:nth-child(n) { margin-left: 0; }
}

@media (max-width: 600px) {
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .host img { height: 48px; }
}

@media (max-width: 420px) {
  .nav-mark img { width: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .mascot-svg #left-eye, .js .mascot-svg #right-eye { animation: none; }
}
