/* =====================================================================
   MySol Holdings & Logistics · Year-End Function 2026 · Digital invite
   Styles for index.html
   ===================================================================== */

/* =====================================================================
   TOKENS
   ===================================================================== */
:root {
  /* MySol brand: official tokens from mysolholdings.co.za */
  --navy: #2e3192;
  --orange: #f1592a;
  --royal: #17287f;
  --blue-deep: #232873;
  /* Surfaces: deep navy night */
  --bg: #0f1338;
  --earth: #171c4a;
  --earth-deep: #0f1338;
  --panel: #1c2258;
  --panel-2: #1f2560;
  --ink: #0b0c22;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef0f8;
  --muted: #a7abc8;
  --chrome: #cfd4d9;
  /* Highlight colour (was safety yellow) */
  --accent: #f1592a;
  --accent-hi: #ff7d4d;
  --accent-deep: #a8380f;
  --danger: #ff6b7d;
  /* White page: countdown → footer. The intro and hero keep the navy night. */
  --page: #ffffff;
  --accent-ink: #c84416; /* brand orange, darkened so small text stays readable on white */
  --focus: #fff;
  --r: 14px;
  --ff-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --ff-body:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --metal: linear-gradient(
    176deg,
    #fff 0%,
    #e8ebee 22%,
    #a2a9b0 45%,
    #f8f9fa 53%,
    #bcc2c8 70%,
    #7c838a 100%
  );
  --hazard: repeating-linear-gradient(
    -45deg,
    #f1592a 0 10px,
    #0f1338 10px 20px
  );
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --rock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='turbulence' baseFrequency='.014' numOctaves='5' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
}

/* =====================================================================
   BASE
   ===================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.intro-active,
html.intro-active body {
  overflow: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
}
.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;
}

/* Dust / grain overlay on the dark intro + hero only (keeps the white page clean) */
.intro::after,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background-image: var(--noise);
  background-size: 180px;
  opacity: 0.07;
}

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.wrap--wide {
  max-width: 1080px;
}

.section {
  position: relative;
  padding: 84px 0;
}
.section__head {
  text-align: center;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 6px;
  border-radius: 1px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 4px,
    #0f1338 4px 8px
  );
}
.section-title {
  font-family: var(--ff-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
.section-lead {
  margin: 14px auto 0;
  max-width: 34ch;
  color: var(--muted);
}

.metal {
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}
.hl {
  color: var(--accent);
}

/* ---------------------------------------------------------------------
   WHITE PAGE: every section below the hero (and the footer) sits on
   white, so text there switches to dark navy. The navy cards on it
   switch back to their light-on-dark text.
   --------------------------------------------------------------------- */
.section,
.footer {
  --text: #14183f;
  --muted: #585d7e;
  --chrome: #2b2f5c;
  --line: rgba(15, 19, 56, 0.1);
  --line-2: rgba(15, 19, 56, 0.18);
  --focus: var(--navy);
  --metal: linear-gradient(
    176deg,
    #4a50c4 0%,
    #2e3192 34%,
    #161b52 48%,
    #3d43b8 56%,
    #232873 74%,
    #0f1338 100%
  );
  color: var(--text);
}
.card,
.haul,
.stat,
.fdn,
.timecard {
  --text: #eef0f8;
  --muted: #a7abc8;
  --chrome: #cfd4d9;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --focus: #fff;
  --metal: linear-gradient(
    176deg,
    #fff 0%,
    #e8ebee 22%,
    #a2a9b0 45%,
    #f8f9fa 53%,
    #bcc2c8 70%,
    #7c838a 100%
  );
  color: var(--text);
}
.section__head .metal {
  filter: none;
}
.section-lead .hl {
  color: var(--accent-ink);
}
.fab {
  --focus: var(--navy);
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background-color 0.2s,
    border-color 0.2s;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--primary {
  color: #0b0c22;
  background: linear-gradient(
    180deg,
    #ff7d4d 0%,
    var(--accent) 48%,
    #d9481a 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    0 4px 0 var(--accent-deep),
    0 14px 28px -10px rgba(241, 89, 42, 0.5);
}
.btn--primary:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 1px 0 var(--accent-deep),
    0 6px 14px -8px rgba(241, 89, 42, 0.45);
}
.btn--ghost {
  color: var(--chrome);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(207, 212, 217, 0.35);
}
.btn--ghost:hover {
  border-color: var(--chrome);
  background: rgba(255, 255, 255, 0.07);
}
.btn--ghost:active {
  transform: translateY(2px);
}
.btn:focus-visible,
.linkbtn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.btn[disabled] {
  cursor: progress;
  opacity: 0.85;
}
.linkbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkbtn:hover {
  color: var(--text);
}

/* =====================================================================
   LOGO (sizes the logo in the intro, hero and footer)
   ===================================================================== */
.logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
}
.logo-plate img {
  width: 100%;
  height: auto;
}
.logo-plate--intro {
  width: min(250px, 64vw);
  padding: 16px 22px;
}
.logo-plate--hero {
  width: 150px;
  padding: 9px 13px;
  border-radius: 10px;
}
.logo-plate--footer {
  width: 130px;
  padding: 8px 12px;
  border-radius: 9px;
}

/* =====================================================================
   1a. PRELOADER: excavator loads a haul truck while the page loads
   ===================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: radial-gradient(
    120% 80% at 50% 50%,
    #232873 0%,
    #0f1338 58%,
    #070922 100%
  );
  transition:
    opacity 0.6s ease,
    visibility 0.6s;
}
.js.intro-active .preloader {
  display: flex;
}
.preloader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__brand {
  margin: 0;
  font-family: var(--ff-head);
  font-size: 0.76rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-hi);
}
.pre {
  width: min(92vw, 460px);
  height: auto;
  overflow: visible;
}
.preloader__pct {
  margin: 0;
  font-family: var(--ff-head);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.preloader__pct b {
  font-weight: 500;
  color: #fff;
}

/* Excavator joints. Each group's (0,0) is its pivot, so it turns around it. */
.xc,
.xc__boom,
.xc__stick,
.xc__bucket {
  transform-origin: 0 0;
  animation: 1.4s ease-in-out infinite;
}
.xc {
  animation-name: xcSwing;
}
.xc__boom {
  animation-name: xcBoom;
}
.xc__stick {
  animation-name: xcStick;
}
.xc__bucket {
  animation-name: xcBucket;
}
.xc__load {
  animation: xcLoad 1.4s linear infinite;
}
.pre__grains circle {
  fill: #e2a46c;
  opacity: 0;
  animation: preGrain 1.4s linear infinite;
}
.pre__grains circle:nth-child(2n) {
  animation-delay: 0.05s;
}
.pre__grains circle:nth-child(3n) {
  animation-delay: 0.1s;
}
.pre__beacon {
  animation: blink 0.9s steps(1) infinite;
}

/* Sand in the truck bed: JS scales it up with each scoop (load progress) */
.pre__heap {
  transform-origin: 264px 135px;
  transform: scaleY(0);
  transition: transform 0.45s var(--ease);
}
.pre__truck {
  transition: transform 1.1s cubic-bezier(0.55, 0, 0.75, 0.2);
}
.pre__dust circle {
  fill: #cdb59a;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.preloader.is-done .pre__truck {
  transform: translateX(300px);
}
.preloader.is-done .pre__dust circle {
  animation: preDust 0.7s ease-out infinite;
}
.preloader.is-done .pre__dust circle:nth-child(2) {
  animation-delay: 0.18s;
}
.preloader.is-done .pre__dust circle:nth-child(3) {
  animation-delay: 0.36s;
}
.preloader.is-done .pre__grains,
.preloader.is-done .xc__load {
  visibility: hidden;
}

.reader:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

/* =====================================================================
   1b. INTRO: mine-site access gate at dusk → invite card
   The scene is drawn on a 400 × 760 grid. --u is one grid unit in
   pixels (set by JS to fit the screen), so the countdown display and
   card reader stay locked onto the drawing at any screen size.
   ===================================================================== */
.intro {
  --u: min(0.25vw, 0.13158vh);
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #05071c 0%,
    #0b0e2e 32%,
    #171b4e 60%,
    #2a2258 82%,
    #2c2252 100%
  );
  transition:
    opacity 0.9s ease,
    visibility 0.9s;
}
@supports (height: 1dvh) {
  .intro {
    --u: min(0.25vw, 0.13158dvh);
  }
}
.js.intro-active .intro {
  display: block;
}
.intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate {
  position: absolute;
  inset: 0;
  transition: visibility 0s 1.3s;
}
.intro.is-card .gate {
  visibility: hidden;
}
.gate__stage {
  position: absolute;
  left: 50%;
  bottom: env(safe-area-inset-bottom);
  width: calc(var(--u) * 400);
  height: calc(var(--u) * 760);
  transform: translateX(-50%);
  transform-origin: 50% 79%;
  transition:
    transform 1.2s cubic-bezier(0.6, 0, 0.85, 0.35),
    opacity 0.8s ease 0.35s;
}
.intro.is-through .gate__stage {
  transform: translateX(-50%) scale(3.4);
  opacity: 0;
}
.gate__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Sign + booth lettering */
.gate__t1 {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 1.4px;
  fill: #fff;
}
.gate__t2 {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 3px;
  fill: #ff9b73;
}
.gate__sec {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 2px;
  fill: #cfd4d9;
}

.gate__logo {
  position: absolute;
  left: calc(var(--u) * 130);
  top: calc(var(--u) * 150);
  width: calc(var(--u) * 140);
  height: auto;
  opacity: 0.92;
}

/* Lights flicker on once the preloader hands over */
.gate__lamp,
.gate__cone,
.gate__pool {
  opacity: 0;
}
.intro.is-ready .gate__lamp,
.intro.is-ready .gate__cone,
.intro.is-ready .gate__pool {
  animation: lampOn 1.2s ease-out 0.25s forwards;
}
.gate__beacon {
  animation: blink 1.1s steps(1) infinite;
}
.gate__stars circle:nth-child(3n) {
  animation: twinkle 3.2s ease-in-out infinite;
}
.gate__stars circle:nth-child(3n + 1) {
  animation: twinkle 4.1s ease-in-out 1.2s infinite;
}

/* Boom barrier lifts on access */
.barrier__arm {
  transform-origin: 165px 598px;
  transition: transform 1.1s cubic-bezier(0.45, 0, 0.2, 1);
}
.intro.is-granted .barrier__arm {
  transform: rotate(-80deg);
}
.barrier__tip {
  animation: blink 0.8s steps(1) infinite;
}

/* Countdown on the booth's digital display */
.booth-clock {
  position: absolute;
  left: calc(var(--u) * 18);
  top: calc(var(--u) * 548);
  width: calc(var(--u) * 128);
  height: calc(var(--u) * 54);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--u) * 9);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.booth-clock__u {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.booth-clock__u b {
  display: flex;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: calc(var(--u) * 20);
  line-height: 1;
  color: #ff8a4d;
  text-shadow: 0 0 calc(var(--u) * 6) rgba(241, 89, 42, 0.8);
}
.booth-clock__u small {
  margin-top: calc(var(--u) * 4);
  font-family: var(--ff-body);
  font-size: calc(var(--u) * 6);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 190, 160, 0.6);
}
.booth-clock > i {
  font-style: normal;
  font-family: var(--ff-head);
  font-size: calc(var(--u) * 16);
  line-height: 1.1;
  margin: 0 calc(var(--u) * 1.5);
  color: rgba(255, 138, 77, 0.7);
  animation: blink 1s steps(1) infinite;
}

/* Card reader (the "Tap to enter" button) */
.reader {
  position: absolute;
  left: calc(var(--u) * 296);
  top: calc(var(--u) * 620);
  width: calc(var(--u) * 70);
  height: calc(var(--u) * 84);
  padding: 0;
  border: 0;
  border-radius: calc(var(--u) * 11);
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.reader svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.15s;
}
.reader:active svg {
  transform: scale(0.96);
}
.reader::before {
  content: "";
  position: absolute;
  inset: calc(var(--u) * -6);
  border-radius: calc(var(--u) * 16);
  border: 2px solid rgba(255, 70, 70, 0.75);
  opacity: 0;
  pointer-events: none;
}
.intro.is-ready:not(.is-granted) .reader::before {
  animation: readerRing 1.8s ease-out 1.2s infinite;
}
.reader__led,
.reader__glow {
  fill: #ff3b3b;
  transition: fill 0.15s;
}
.intro.is-granted .reader__led,
.intro.is-granted .reader__glow {
  fill: #2ee67a;
}
.reader__prompt {
  position: absolute;
  right: calc(var(--u) * 6);
  top: calc(var(--u) * 712);
  margin: 0;
  padding: calc(var(--u) * 5) calc(var(--u) * 12);
  white-space: nowrap;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: calc(var(--u) * 15);
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(7, 9, 31, 0.88);
  border: 1px solid rgba(241, 89, 42, 0.7);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(241, 89, 42, 0.35);
  pointer-events: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.intro.is-ready:not(.is-granted) .reader__prompt {
  animation: promptGlow 1.8s ease-in-out 1.2s infinite;
}
.intro.is-granted .reader__prompt {
  border-color: #2ee67a;
  box-shadow: 0 0 18px rgba(46, 230, 122, 0.45);
}

/* "Sound on" hint */
.gate__hint {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: 16px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  max-width: 52vw;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
}
.gate__hint svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Invite card, revealed after you pass through the gate */
.invite {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
}
.intro.is-card .invite {
  opacity: 1;
  visibility: visible;
}
.invite::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    70% 50% at 50% 45%,
    rgba(241, 89, 42, 0.18),
    transparent 70%
  );
}
.invite__card {
  position: relative;
  width: min(100%, 360px);
  padding: 34px 26px 28px;
  border-radius: 20px;
  text-align: center;
  color: #14183f;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
  transform: translateY(18px) scale(0.96);
  transition: transform 1s var(--ease);
}
.intro.is-card .invite__card {
  transform: none;
}
.invite__card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(46, 49, 146, 0.14);
  border-radius: 14px;
  pointer-events: none;
}
.invite__card > * {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.intro.is-card .invite__card > * {
  opacity: 1;
  transform: none;
}
.intro.is-card .invite__card > :nth-child(2) {
  transition-delay: 0.12s;
}
.intro.is-card .invite__card > :nth-child(3) {
  transition-delay: 0.24s;
}
.intro.is-card .invite__card > :nth-child(4) {
  transition-delay: 0.38s;
}
.intro.is-card .invite__card > :nth-child(5) {
  transition-delay: 0.5s;
}
.intro.is-card .invite__card > :nth-child(6) {
  transition-delay: 0.6s;
}
.intro.is-card .invite__card > :nth-child(7) {
  transition-delay: 0.75s;
}
.invite__logo {
  width: 118px;
  height: auto;
  margin: 0 auto 16px;
}
.invite__org {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
}
.invite__title {
  margin: 12px 0 10px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(3rem, 15vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #14183f;
}
.invite__text {
  margin: 0 auto;
  max-width: 26ch;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.35;
  color: #3a3f66;
}
.invite__rule {
  display: block;
  width: 44px;
  height: 2px;
  margin: 18px auto;
  background: var(--accent);
}
.invite__meta {
  margin: 0 0 22px;
  font-family: var(--ff-head);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #585d7e;
}
.invite__go {
  width: 100%;
  --focus: var(--navy);
}

/* =====================================================================
   SOUND TOGGLE + FLOATING RSVP
   ===================================================================== */
.sound {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 120;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(15, 19, 56, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.8);
}
.sound__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.sound__bars i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--accent);
}
.sound.is-playing .sound__bars i {
  animation: eq 1s ease-in-out infinite;
}
.sound.is-playing .sound__bars i:nth-child(2) {
  animation-delay: -0.45s;
}
.sound.is-playing .sound__bars i:nth-child(3) {
  animation-delay: -0.2s;
}
.sound.is-playing .sound__bars i:nth-child(4) {
  animation-delay: -0.7s;
}
.sound:not(.is-playing) .sound__bars {
  opacity: 0.5;
}
.sound:not(.is-playing)::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--chrome);
  transform: rotate(-45deg);
}

.fab {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 110;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  transform: translate(-50%, 160%);
  transition: transform 0.5s var(--ease);
}
.fab.is-shown {
  transform: translate(-50%, 0);
}
.fab.is-shown:active {
  transform: translate(-50%, 3px);
}

/* =====================================================================
   2. HERO
   ===================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(70px + env(safe-area-inset-top)) 0 170px;
  overflow: hidden;
  background: radial-gradient(
    110% 70% at 50% 18%,
    #232873 0%,
    #121745 52%,
    #0a0e2e 100%
  );
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: 0.5;
  filter: saturate(0.85) contrast(1.05);
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(
    180deg,
    rgba(15, 19, 56, 0.75) 0%,
    rgba(15, 19, 56, 0.35) 35%,
    rgba(15, 19, 56, 0.55) 70%,
    #0a0e2e 100%
  );
}
.hero__beam {
  position: absolute;
  z-index: -2;
  top: -12%;
  width: 42vw;
  max-width: 360px;
  height: 130%;
  transform-origin: 50% 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(190, 205, 255, 0.05) 42%,
    rgba(200, 214, 255, 0.09) 50%,
    rgba(190, 205, 255, 0.05) 58%,
    transparent
  );
}
.hero__beam--l {
  left: 2%;
  animation: sweepL 10s ease-in-out infinite alternate;
}
.hero__beam--r {
  right: 2%;
  animation: sweepR 12s ease-in-out infinite alternate;
}
.hero__dust {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.hero__dust i {
  position: absolute;
  bottom: -12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 180, 150, 0.65),
    transparent 70%
  );
  opacity: 0;
  animation: mote 15s linear infinite;
}
.hero__dust i:nth-child(1) {
  left: 6%;
  animation-delay: -1s;
}
.hero__dust i:nth-child(2) {
  left: 18%;
  width: 8px;
  height: 8px;
  animation-duration: 19s;
  animation-delay: -7s;
}
.hero__dust i:nth-child(3) {
  left: 31%;
  animation-duration: 13s;
  animation-delay: -4s;
}
.hero__dust i:nth-child(4) {
  left: 44%;
  width: 7px;
  height: 7px;
  animation-duration: 17s;
  animation-delay: -11s;
}
.hero__dust i:nth-child(5) {
  left: 57%;
  animation-delay: -9s;
}
.hero__dust i:nth-child(6) {
  left: 69%;
  width: 9px;
  height: 9px;
  animation-duration: 21s;
  animation-delay: -3s;
}
.hero__dust i:nth-child(7) {
  left: 80%;
  animation-duration: 14s;
  animation-delay: -12s;
}
.hero__dust i:nth-child(8) {
  left: 92%;
  width: 6px;
  height: 6px;
  animation-duration: 18s;
  animation-delay: -6s;
}
.hero__inner {
  text-align: center;
}
.hero__eyebrow {
  margin: 26px 0 8px;
  font-family: var(--ff-head);
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--ff-head);
  text-transform: uppercase;
  line-height: 0.92;
}
.hero__l1 {
  font-weight: 500;
  font-size: clamp(1.05rem, 4.8vw, 1.6rem);
  letter-spacing: 0.3em;
  color: var(--chrome);
  margin-bottom: 10px;
}
.hero__l2 {
  font-weight: 700;
  font-size: clamp(3rem, 14.5vw, 6.6rem);
  letter-spacing: 0.005em;
  background-image:
    linear-gradient(
      105deg,
      transparent 42%,
      rgba(255, 255, 255, 0.95) 50%,
      transparent 58%
    ),
    var(--metal);
  background-size:
    250% 100%,
    100% 100%;
  background-repeat: no-repeat;
  background-position:
    160% 0,
    0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.4));
}
.hero__l3 {
  font-weight: 700;
  font-size: clamp(3.6rem, 19vw, 8.4rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-top: 6px;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  text-shadow: 0 0 42px rgba(241, 89, 42, 0.28);
}
.hero__tagline {
  margin: 20px auto 0;
  max-width: 26ch;
  font-size: clamp(1.05rem, 4.4vw, 1.25rem);
  line-height: 1.45;
  color: #dcdff0;
}
.hero__tagline em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  margin: 18px 0 0;
  font-family: var(--ff-head);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome);
}
.hero__meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.hero__cta .btn {
  flex: 1 1 0;
  max-width: 190px;
  padding: 0 14px;
}
.hero__pit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: -1;
  width: 100%;
  height: 170px;
}
.hero__pit .beacon {
  animation: blink 1.1s steps(1) infinite;
}

.js .hero-anim {
  opacity: 0;
  transform: translateY(22px);
}
.is-open .hero-anim {
  opacity: 1;
  transform: none;
  transition:
    opacity 1.1s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.is-open .hero__l2 {
  animation: shine 2.6s 1.2s var(--ease) both;
}

/* =====================================================================
   3. COUNTDOWN: slim shift-clock with flip digits + haul-road line
   ===================================================================== */
.countdown {
  background: var(--page);
  padding-top: 64px;
}
.clock {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(2px, 1.4vw, 12px);
  font-variant-numeric: tabular-nums;
}
.clock__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.clock__num {
  display: flex;
  font-family: var(--ff-head);
  font-weight: 300;
  font-size: clamp(2.8rem, 14vw, 4.8rem);
  line-height: 1;
  color: var(--text);
}
.clock__sep {
  font-family: var(--ff-head);
  font-weight: 300;
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  line-height: 1.12;
  color: var(--accent);
}
.clock__lbl {
  margin-top: 10px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* One digit. A changing digit flips out while the new one flips in. */
.fd {
  position: relative;
  display: inline-block;
  width: 0.5em;
  text-align: center;
  perspective: 300px;
}
.fd__c {
  display: block;
  backface-visibility: hidden;
}
.fd__c.is-out {
  position: absolute;
  inset: 0;
  animation: fdOut 0.5s var(--ease) forwards;
}
.fd__c.is-in {
  animation: fdIn 0.55s var(--ease);
}

/* Haul road: the truck moves from "Invites out" to "Knock-off" */
.haulbar {
  --p: 0%;
  max-width: 420px;
  margin: 28px auto 0;
}
.haulbar__track {
  position: relative;
  height: 26px;
}
.haulbar__track::before,
.haulbar__done {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
}
.haulbar__track::before {
  right: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--line-2) 0 8px,
    transparent 8px 14px
  );
}
.haulbar__done {
  width: var(--p);
  background: var(--accent);
}
.haulbar__truck {
  position: absolute;
  bottom: 3px;
  left: clamp(18px, var(--p), calc(100% - 18px));
  width: 36px;
  height: 20px;
  transform: translateX(-50%);
  animation: truckBob 0.6s ease-in-out infinite alternate;
}
.haulbar__flag {
  position: absolute;
  right: -2px;
  bottom: 5px;
  width: 12px;
  height: 18px;
}
.haulbar__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.cd__when {
  margin: 22px 0 0;
  text-align: center;
  font-family: var(--ff-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--chrome);
}
.cd__when .hl {
  margin: 0 6px;
}
.cd__done {
  margin: 0 auto;
  max-width: 28ch;
  text-align: center;
  font-family: var(--ff-head);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* =====================================================================
   4. EVENT DETAILS
   ===================================================================== */
.details {
  background: var(--page);
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1f2560 0%, #161b4a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 60px -30px rgba(15, 19, 56, 0.5);
}
.card__hazard {
  height: 8px;
  background: var(--hazard);
}
.dlist {
  list-style: none;
  margin: 0;
  padding: 6px 22px;
}
.dlist li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line-2);
}
.dlist li:last-child {
  border-bottom: 0;
}
.dlist__ic {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: rgba(241, 89, 42, 0.09);
  border: 1px solid rgba(241, 89, 42, 0.28);
}
.dlist__ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dlist__k {
  display: block;
  margin-bottom: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.dlist__v {
  display: block;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  color: #fff;
}
.dlist__sub {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--muted);
}
.details__actions {
  display: grid;
  gap: 12px;
  padding: 4px 22px 22px;
}
.details__actions .linkbtn {
  justify-self: center;
}

/* =====================================================================
   5. PROGRAMME — HAUL ROAD
   ===================================================================== */
.programme {
  background: var(--page);
}
.haul {
  --road-x: 6px;
  --road-w: 54px;
  --gut: 82px;
  position: relative;
  margin-top: 8px;
  padding-bottom: 96px;
}
.haul__road {
  position: absolute;
  top: -18px;
  bottom: 0;
  left: var(--road-x);
  width: var(--road-w);
  border-radius: 8px 8px 4px 4px;
  background:
    linear-gradient(
      90deg,
      #454a7a 0 6px,
      transparent 6px calc(100% - 6px),
      #454a7a calc(100% - 6px)
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      rgba(0, 0, 0, 0.22) 24% 31%,
      transparent 31% 69%,
      rgba(0, 0, 0, 0.22) 69% 76%,
      transparent 76%
    ),
    var(--noise), linear-gradient(180deg, #2a2e50, #22264a);
  background-size: auto, auto, 120px, auto;
  background-blend-mode: normal, normal, overlay, normal;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 0 4px rgba(69, 74, 122, 0.25);
}
.haul__road::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: repeating-linear-gradient(
    180deg,
    rgba(241, 89, 42, 0.6) 0 16px,
    transparent 16px 34px
  );
}
.haul__lit {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  margin-left: -1.5px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(241, 89, 42, 0.8);
  transform-origin: 50% 0;
  transform: scaleY(0);
}
.truck {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  width: 44px;
  height: 88px;
  margin-left: -22px;
  will-change: transform;
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.55));
}
.truck .beacon {
  animation: blink 0.9s steps(1) infinite;
}

.haul__stops {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--gut);
}
.stop {
  position: relative;
  padding-bottom: 30px;
}
.stop__marker {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: calc(var(--road-x) + var(--road-w) / 2 - var(--gut) - 19px);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #9aa0c8;
  background: #0f1338;
  border: 2px solid #4b5088;
  transition:
    background-color 0.4s,
    border-color 0.4s,
    color 0.4s,
    box-shadow 0.4s,
    transform 0.4s var(--ease);
}
.stop__marker svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stop.is-passed .stop__marker {
  color: #0b0c22;
  background: var(--accent);
  border-color: #ffb08f;
  box-shadow:
    0 0 0 6px rgba(241, 89, 42, 0.14),
    0 0 22px rgba(241, 89, 42, 0.5);
  transform: scale(1.08);
}
.stop__card {
  position: relative;
  padding: 16px 18px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1f2560, #161b4a);
  box-shadow: 0 18px 40px -24px rgba(15, 19, 56, 0.55);
  transition: border-color 0.4s;
}
.stop__card::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -7px;
  width: 12px;
  height: 12px;
  background: #1f2560;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.stop.is-passed .stop__card {
  border-color: rgba(241, 89, 42, 0.3);
}
.stop__time {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 4px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #0b0c22;
  background: var(--accent);
  box-shadow:
    inset 0 0 0 2px var(--accent),
    inset 0 0 0 3.5px #0b0c22;
}
.stop__title {
  margin: 10px 0 4px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}
.stop__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.haul__end {
  position: absolute;
  bottom: 14px;
  left: calc(var(--road-x) + var(--road-w) + 16px);
}
.endsign {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 16px;
  border-radius: 6px;
  background: #f2f2ee;
  color: #0b0c22;
  box-shadow:
    inset 0 0 0 2px #f2f2ee,
    inset 0 0 0 4px #0b0c22,
    0 10px 20px -10px rgba(15, 19, 56, 0.4);
}
.endsign b {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
}
.endsign small {
  font-size: 0.78rem;
  color: #4b453f;
}

@media (min-width: 820px) {
  .haul {
    --road-w: 64px;
    --gut: 0px;
  }
  .haul__road {
    left: 50%;
    margin-left: calc(var(--road-w) / -2);
  }
  .haul__stops {
    padding-left: 0;
  }
  .stop {
    width: 50%;
    padding-bottom: 36px;
  }
  .stop:nth-child(n + 2) {
    margin-top: -60px;
  }
  .stop:nth-child(odd) {
    padding-right: calc(var(--road-w) / 2 + 40px);
  }
  .stop:nth-child(even) {
    margin-left: 50%;
    padding-left: calc(var(--road-w) / 2 + 40px);
  }
  .stop:nth-child(odd) .stop__marker {
    left: auto;
    right: -19px;
  }
  .stop:nth-child(even) .stop__marker {
    left: -19px;
  }
  .stop:nth-child(odd) .stop__card {
    text-align: right;
  }
  .stop:nth-child(odd) .stop__card::before {
    left: auto;
    right: -7px;
    border-left: 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }
  .haul__end {
    left: 50%;
    transform: translateX(calc(var(--road-w) / 2 + 18px));
  }
}

/* "Meet the line-up" link on the Entertainment stop */
.stop__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 2px;
  font-family: var(--ff-head);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-hi);
}
.stop__link:hover {
  color: #fff;
}
.stop__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.stop__link:hover svg {
  transform: translateX(3px);
}

/* =====================================================================
   5b. THE LINEUP: coverflow carousel of performers
   ===================================================================== */
.lineup {
  background: var(--page);
  overflow: hidden;
}
.lineup__carousel {
  --cw: clamp(220px, 64vw, 300px); /* centre card width; cards are 3:4 */
}
.lineup__stage {
  position: relative;
  height: calc(var(--cw) * 4 / 3 + 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  perspective: 1100px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.lineup__stage.is-dragging {
  cursor: grabbing;
}
.lc {
  position: absolute;
  top: 4px;
  left: 50%;
  width: var(--cw);
  aspect-ratio: 3 / 4;
  margin-left: calc(var(--cw) / -2);
  transition:
    transform 0.7s var(--ease),
    opacity 0.7s var(--ease);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.lineup__stage.is-dragging .lc,
.lineup__stage.is-dragging .lc__dim {
  transition: none;
}
.lc__card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #0f1338;
  box-shadow: 0 26px 44px -22px rgba(15, 19, 56, 0.6);
  transform: translateZ(0); /* keeps the rounded corners clipping in Safari */
}
/* Shown until the photo loads, and for good if it's missing */
.lc__ph {
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400'%3E%3Cdefs%3E%3CradialGradient id='s' cx='.5' cy='0' r='.85'%3E%3Cstop offset='0' stop-color='%23fff3c4' stop-opacity='.3'/%3E%3Cstop offset='1' stop-color='%23fff3c4' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M110 0h80l100 400H10z' fill='url(%23s)'/%3E%3Cg fill='%230b0e2b' fill-opacity='.8'%3E%3Ccircle cx='150' cy='178' r='40'/%3E%3Cpath d='M64 400c0-94 36-148 86-148s86 54 86 148z'/%3E%3Crect x='223' y='232' width='6' height='168'/%3E%3Cellipse cx='212' cy='214' rx='10' ry='16' transform='rotate(-32 212 214)'/%3E%3C/g%3E%3C/svg%3E")
      center bottom / 100% auto no-repeat,
    linear-gradient(180deg, #2e3192 0%, #1a1f5c 55%, #11153d 100%);
  transition: transform 2.4s var(--ease);
}
.lc__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%; /* keep faces in frame when a photo is cropped */
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 2.4s var(--ease);
}
.lc.is-loaded .lc__img {
  opacity: 1;
}
.lc.is-missing .lc__img {
  display: none;
}
.lc__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 34, 0) 38%,
    rgba(11, 12, 34, 0.55) 66%,
    rgba(11, 12, 34, 0.94) 100%
  );
}
.lc__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 7px;
  border-radius: 4px;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(11, 12, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lc__tag::before {
  content: "";
  width: 14px;
  height: 8px;
  border-radius: 1px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 3px,
    #0f1338 3px 6px
  );
}
.lc__info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  color: #fff;
  transition: transform 0.6s var(--ease);
}
.lc__name {
  margin: 0;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 8.6vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.lc__role {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffb08f;
}
.lc__role:empty {
  display: none;
}
.lc__dim {
  position: absolute;
  inset: 0;
  background: #0b0c22;
  opacity: var(--dim, 0);
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
}
/* Thin hazard-stripe edge on the centre card */
.lc__haz {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background-color: #0f1338;
  background-image: linear-gradient(
    -45deg,
    #f1592a 25%,
    transparent 25%,
    transparent 50%,
    #f1592a 50%,
    #f1592a 75%,
    transparent 75%
  );
  background-size: 12px 12px;
  opacity: 0;
  transition: opacity 0.4s;
}
.lc.is-active .lc__haz {
  opacity: 1;
}
/* Hover (mouse) or tap (touch): the photo slowly zooms, the name slides up */
@media (hover: hover) {
  .lc.is-active:hover .lc__img,
  .lc.is-active:hover .lc__ph {
    transform: scale(1.08);
  }
  .lc.is-active:hover .lc__info {
    transform: translateY(-8px);
  }
}
.lc.is-active.is-zoom .lc__img,
.lc.is-active.is-zoom .lc__ph {
  transform: scale(1.08);
}
.lc.is-active.is-zoom .lc__info {
  transform: translateY(-8px);
}

.lineup__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.lineup__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(46, 49, 146, 0.3);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.2s,
    transform 0.15s;
}
.lineup__btn:hover {
  border-color: var(--navy);
}
.lineup__btn:active {
  transform: scale(0.94);
}
.lineup__btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.lineup__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lineup__btn--play {
  width: 44px;
  height: 44px;
  border-color: transparent;
  color: var(--muted);
}
.lineup__icon-play,
.lineup__btn--play.is-paused .lineup__icon-pause {
  display: none;
}
.lineup__btn--play.is-paused .lineup__icon-play {
  display: block;
  fill: currentColor;
}
.lineup__count {
  margin: 0;
  min-width: 92px;
  text-align: center;
  font-family: var(--ff-head);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lineup__count b {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--accent);
}
.lineup__bars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 10px;
}
/* Position indicators (not buttons: the arrows, swipe and card taps do the moving) */
.lineup__bar {
  position: relative;
  width: 26px;
  height: 14px;
}
.lineup__bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5px;
  right: 5px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--line-2);
  transition:
    background-color 0.3s,
    left 0.3s,
    right 0.3s;
}
.lineup__bar.is-on::before {
  left: 0;
  right: 0;
  background: var(--accent);
}

/* =====================================================================
   6. YEAR IN NUMBERS
   ===================================================================== */
.numbers {
  background: var(--page);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat {
  position: relative;
  overflow: hidden;
  padding: 24px 12px 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1c2258, #141943);
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.8s var(--ease);
}
.stat.is-counted::before {
  transform: scaleX(1);
}
.stat__num {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2.7rem, 12.5vw, 4.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stat__sfx {
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
}
.stat__lbl {
  display: block;
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 820px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.gallery {
  display: flex;
  gap: 12px;
  margin: 34px -20px 0;
  padding: 0 20px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar {
  display: none;
}
.gallery figure {
  position: relative;
  flex: 0 0 80%;
  max-width: 380px;
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #171c4a;
  scroll-snap-align: center;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  font-family: var(--ff-head);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}
.gallery-hint {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}
@media (min-width: 820px) {
  .gallery figure {
    flex-basis: 32%;
  }
  .gallery-hint {
    display: none;
  }
}

/* =====================================================================
   7. MYSOL FOUNDATION
   ===================================================================== */
.foundation {
  background: var(--page);
  padding-top: 24px;
}
.fdn {
  padding: 36px 24px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(
      120% 90% at 50% 0%,
      rgba(241, 89, 42, 0.09),
      transparent 60%
    ),
    linear-gradient(180deg, #232873, #17287f);
}
.fdn__emblem {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  color: var(--accent);
}
.fdn__title {
  margin: 2px 0 12px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: clamp(1.55rem, 6.6vw, 2.2rem);
  line-height: 1.1;
  text-transform: uppercase;
}
.fdn__text {
  margin: 0 auto;
  max-width: 40ch;
  color: #dfe2f5;
}
.fdn .eyebrow {
  color: var(--accent-hi);
}
.fdn .eyebrow::before,
.fdn .eyebrow::after {
  background: repeating-linear-gradient(
    -45deg,
    var(--accent-hi) 0 4px,
    #17287f 4px 8px
  );
}

/* =====================================================================
   8. RSVP — TIME CARD + HARD-HAT BADGE
   ===================================================================== */
.rsvp {
  background: var(--page);
}
.timecard {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1f2560, #161b4a);
  box-shadow: 0 30px 60px -30px rgba(15, 19, 56, 0.5);
}
.timecard__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #0b0c22;
  border-bottom: 2px solid var(--accent);
  font-family: var(--ff-head);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.timecard__head span:last-child {
  color: var(--muted);
}
.timecard__body {
  padding: 22px 20px 22px;
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 31px,
    rgba(255, 255, 255, 0.025) 31px 32px
  );
}
.field {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field__label {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--ff-head);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chrome);
}
.field__opt {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0b0f30;
  color: #fff;
  font-size: 16px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.input::placeholder {
  color: #6f7499;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(241, 89, 42, 0.22);
}
.input[aria-invalid="true"] {
  border-color: var(--danger);
}
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F15A29' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
select.input option {
  background: #0b0f30;
  color: #fff;
}
.input + .input {
  margin-top: 10px;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.seg__opt {
  position: relative;
  cursor: pointer;
}
.seg__opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.seg__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0b0f30;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.seg__opt svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.seg__opt input:checked + span {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(241, 89, 42, 0.12);
}
.seg__opt--no input:checked + span {
  color: #fff;
  border-color: var(--chrome);
  background: rgba(255, 255, 255, 0.07);
}
.seg__opt input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.field__err {
  margin: 7px 0 0;
  font-size: 0.86rem;
  color: var(--danger);
}
.field__err:empty,
.form__err:empty {
  display: none;
}
.form__err {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #ffd6dc;
  background: rgba(255, 107, 125, 0.12);
  border: 1px solid rgba(255, 107, 125, 0.4);
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.btn--clock {
  width: 100%;
  min-height: 62px;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
}
.btn--clock svg {
  width: 24px;
  height: 24px;
}
.btn--clock .clock-hand {
  transform-box: view-box;
  transform-origin: 12px 12px;
}
.btn--clock.is-loading .clock-hand {
  animation: spin 0.8s linear infinite;
}
.rsvp__note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Personal ACCESS PASS (lanyard badge) shown after clocking in.
   Kept to plain colours and gradients so "Download pass" saves it faithfully. */
.rsvp__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pass-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.pass-hang {
  position: relative;
  width: min(340px, 100%);
  padding-top: 78px;
  transform-origin: 50% 0;
}
.pass-hang.is-anim {
  animation: swing 1.4s var(--ease) both;
}
.pass-strap {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 26px;
  height: 90px;
  margin-left: -13px;
  border-radius: 3px 3px 0 0;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 8px,
    #0f1338 8px 16px
  );
}
.pass-clip {
  position: absolute;
  top: 82px;
  left: 50%;
  z-index: 3;
  width: 34px;
  height: 16px;
  margin-left: -17px;
  border-radius: 5px;
  background: linear-gradient(180deg, #eef0f2, #9aa1a8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.pass {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  text-align: center;
  color: #14183f;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(15, 19, 56, 0.08),
    0 34px 60px -24px rgba(15, 19, 56, 0.45);
}
.pass:focus {
  outline: none;
}
.pass__band {
  position: relative;
  padding: 32px 18px 20px;
  color: #fff;
  background: linear-gradient(160deg, #2e3192 0%, #232873 60%, #17287f 100%);
}
.pass__band::after,
.pass__foot {
  /* Hazard stripes as tiled plain gradients (the PNG export can't draw repeating ones) */
  background-color: #0f1338;
  background-image: linear-gradient(
    -45deg,
    #f1592a 25%,
    transparent 25%,
    transparent 50%,
    #f1592a 50%,
    #f1592a 75%,
    transparent 75%
  );
  background-size: 14px 14px;
}
.pass__band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
}
.pass__slot {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 52px;
  height: 10px;
  margin-left: -26px;
  border-radius: 5px;
  background: var(--page);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.35);
}
.pass__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pass__hat {
  width: 40px;
  height: auto;
}
.pass__title {
  margin: 0;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.pass__org {
  margin: 8px 0 0;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffb08f;
}
.pass__body {
  padding: 20px 22px 18px;
}
.pass__name {
  margin: 0;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  word-break: break-word;
}
.pass__site {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: #585d7e;
}
.pass__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0 0;
  padding: 12px 0;
  border-top: 1px dashed #d5d7e3;
  border-bottom: 1px dashed #d5d7e3;
}
.pass__meta dt {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7d82a0;
}
.pass__meta dd {
  margin: 2px 0 0;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
}
.pass__qr {
  width: 172px;
  margin: 16px auto 0;
}
.pass__qr canvas {
  display: block;
  width: 172px;
  height: 172px;
  image-rendering: pixelated;
}
.pass__qr-msg {
  display: none;
  margin: 0;
  padding: 20px 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #585d7e;
  border: 1px dashed #d5d7e3;
  border-radius: 10px;
}
.pass__qr.is-missing canvas {
  display: none;
}
.pass__qr.is-missing .pass__qr-msg {
  display: block;
}
.pass__code {
  margin: 10px 0 0;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  color: var(--navy);
}
.pass__bar {
  display: block;
  width: 200px;
  height: 40px;
  margin: 10px auto 0;
}
.pass__fine {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: #7d82a0;
}
.pass__foot {
  height: 10px;
}
.pass__actions {
  display: grid;
  gap: 10px;
  width: min(340px, 100%);
  margin-top: 22px;
}
.pass__actions .btn {
  min-height: 50px;
  padding: 0 14px;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}
.btn--line {
  color: var(--navy);
  background: #fff;
  border: 1.5px solid rgba(46, 49, 146, 0.35);
}
.btn--line:hover {
  border-color: var(--navy);
}
.btn--line:active {
  transform: translateY(2px);
}
.pass__note {
  margin: 12px 0 0;
  min-height: 1.4em;
  max-width: 34ch;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Not attending */
.sorry {
  width: min(360px, 100%);
  padding: 30px 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(15, 19, 56, 0.4);
}
.sorry:focus {
  outline: none;
}
.sorry.is-anim {
  animation: fadeUp 0.8s var(--ease) both;
}
.sorry__ic {
  width: 72px;
  height: auto;
  margin: 0 auto 6px;
}
.sorry__title {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--text);
}
.sorry__text {
  margin: 10px 0 0;
  color: var(--muted);
}
.rsvp__edit {
  margin-top: 16px;
}
.rsvp__notice {
  max-width: 340px;
  margin: 18px auto 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: rgba(241, 89, 42, 0.07);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: left;
  color: var(--muted);
}

/* =====================================================================
   9. FOOTER
   ===================================================================== */
.footer {
  position: relative;
  padding: 0 0 calc(96px + env(safe-area-inset-bottom));
  background: var(--page);
  text-align: center;
}
.footer__hazard {
  height: 8px;
  background: var(--hazard);
  margin-bottom: 44px;
}
.footer .logo-plate {
  margin-bottom: 22px;
  padding: 0;
  background: none;
  box-shadow: none;
}
.footer__q {
  margin: 0;
  font-family: var(--ff-head);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome);
}
.footer__q a {
  display: inline-block;
  padding: 10px 2px;
  color: var(--accent-ink);
  text-decoration: none;
  white-space: nowrap;
}
.footer__q a:hover {
  text-decoration: underline;
}
.footer__small {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer__credit {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer__credit a {
  display: inline-block;
  padding: 13px 2px;
  color: var(--chrome);
  text-underline-offset: 3px;
}

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   KEYFRAMES
   ===================================================================== */
/* Preloader excavator: one 1.4s dig → lift → swing → dump → return loop.
   The JS (CONFIG area → "Intro") expects the dump at ~68% of the loop. */
@keyframes xcSwing {
  0%,
  40% {
    transform: scaleX(1);
  }
  52%,
  74% {
    transform: scaleX(-1);
  }
  86%,
  100% {
    transform: scaleX(1);
  }
}
@keyframes xcBoom {
  0% {
    transform: rotate(15deg);
  }
  18% {
    transform: rotate(10deg);
  }
  30% {
    transform: rotate(14deg);
  }
  42%,
  72% {
    transform: rotate(55deg);
  }
  86% {
    transform: rotate(35deg);
  }
  100% {
    transform: rotate(15deg);
  }
}
@keyframes xcStick {
  0% {
    transform: rotate(18deg);
  }
  18% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-14deg);
  }
  42% {
    transform: rotate(0deg);
  }
  56%,
  72% {
    transform: rotate(25deg);
  }
  86% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(18deg);
  }
}
@keyframes xcBucket {
  0% {
    transform: rotate(-3deg);
  }
  18% {
    transform: rotate(-30deg);
  }
  30% {
    transform: rotate(-90deg);
  }
  42% {
    transform: rotate(-145deg);
  }
  56% {
    transform: rotate(-170deg);
  }
  64%,
  72% {
    transform: rotate(-20deg);
  }
  86% {
    transform: rotate(-15deg);
  }
  100% {
    transform: rotate(-3deg);
  }
}
@keyframes xcLoad {
  0%,
  22% {
    opacity: 0;
  }
  27%,
  60% {
    opacity: 1;
  }
  64%,
  100% {
    opacity: 0;
  }
}
@keyframes preGrain {
  0%,
  60% {
    opacity: 0;
    transform: translateY(-4px);
  }
  63% {
    opacity: 1;
  }
  76% {
    opacity: 1;
    transform: translateY(14px);
  }
  80%,
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes preDust {
  from {
    opacity: 0.55;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: translateX(-14px) scale(1.6);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
/* Gate */
@keyframes lampOn {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  16% {
    opacity: 0.1;
  }
  30% {
    opacity: 1;
  }
  38% {
    opacity: 0.35;
  }
  52%,
  100% {
    opacity: 1;
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
@keyframes readerRing {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}
@keyframes promptGlow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(241, 89, 42, 0.25);
  }
  50% {
    box-shadow: 0 0 24px rgba(241, 89, 42, 0.6);
  }
}
/* Countdown */
@keyframes fdIn {
  from {
    opacity: 0;
    transform: translateY(-45%) rotateX(75deg);
  }
}
@keyframes fdOut {
  to {
    opacity: 0;
    transform: translateY(45%) rotateX(-75deg);
  }
}
@keyframes truckBob {
  to {
    transform: translateX(-50%) translateY(-1px);
  }
}
@keyframes eq {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 16px;
  }
}
@keyframes sweepL {
  from {
    transform: rotate(-32deg);
  }
  to {
    transform: rotate(-12deg);
  }
}
@keyframes sweepR {
  from {
    transform: rotate(32deg);
  }
  to {
    transform: rotate(12deg);
  }
}
@keyframes mote {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    transform: translate(40px, -95vh);
    opacity: 0;
  }
}
@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.15;
  }
}
@keyframes shine {
  from {
    background-position:
      160% 0,
      0 0;
  }
  to {
    background-position:
      -60% 0,
      0 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes swing {
  0% {
    opacity: 0;
    transform: translateY(-50px) rotate(-7deg);
  }
  35% {
    opacity: 1;
    transform: rotate(5deg);
  }
  55% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(1.5deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 110px 0;
  }
  .hero {
    padding-bottom: 250px;
  }
  .hero__pit {
    height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal,
  .js .hero-anim {
    opacity: 1;
    transform: none;
  }
  .hero__beam,
  .hero__dust {
    display: none;
  }
  /* Calmer intro: no swinging excavator, no zoom through the gate */
  .pre__grains,
  .pre__dust,
  .xc__load {
    display: none;
  }
  .intro.is-through .gate__stage {
    transform: translateX(-50%);
  }
  .haulbar__truck {
    animation: none;
  }
}
