/*
 * ORO Open Air launch site.
 * Designed at 1440px wide. Desktop values are design pixels multiplied by --u,
 * so the layout scales down from 1440px. Below 768px the mobile overrides at
 * the end take over.
 */

@font-face {
  font-family: "Bootzy New TM";
  src: url("../fonts/BootzyNewTM-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Tempel Grotesk Wide";
  src: url("../fonts/TempelGroteskWeb-Wide.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Slight Chance Mono";
  src: url("../fonts/SlightChanceMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  /* Colours */
  --black: #1d1d1d;
  --red: #f42e2d;
  --cream: #ede6e2;

  --font-display: "Bootzy New TM", "Times New Roman", serif;
  --font-wide: "Tempel Grotesk Wide", "Arial Black", Arial, sans-serif;
  --font-mono: "Slight Chance Mono", "Courier New", monospace;

  /* 1 design px at 1440 wide, scaling down with the viewport */
  --u: min(1px, 100vw / 1440);

  /* Type sizes */
  --fs-stats: calc(157.46 * var(--u));
  --fs-trail: calc(134.3 * var(--u));
  --fs-81: calc(81 * var(--u));
  --fs-72: calc(72.28 * var(--u));
  --fs-stack: calc(50.51 * var(--u));
  --fs-40: max(14px, calc(40 * var(--u)));
  --fs-33: max(17px, calc(33 * var(--u)));
  --fs-24: max(14px, calc(24 * var(--u)));
  --fs-22: max(11px, calc(22 * var(--u)));

  --gutter: max(16px, calc(42 * var(--u)));
  --radius: 15px;
  --radius-sm: 6px;

  /* Bootzy is stretched to 135% height (see .stretch / main.js) */
  --bootzy-stretch: 1.35;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/*
 * Centred, letter-spaced text: CSS adds the tracking after the last letter too,
 * which pushes each line left by half a letter-space. A matching left padding
 * puts the visible text back in the centre.
 */
.hero__title,
.stats__sub,
.signup__title,
.signup__sub,
.stack-title__top,
.feature__copy,
.trail__title,
.trail__date,
.about__copy { padding-left: .09em; }
.stats__line { padding-left: .08em; }

h1, h2, p { margin: 0; font-weight: 400; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }

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

.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: 0;
}

/* Forced line breaks: .br-t kept from tablet up, .br-d from 1100px up */
@media (max-width: 1099px) { .br-d { display: none; } }
@media (max-width: 767px) { .br-t { display: none; } }

.stretch {
  display: inline-block;
  transform: scaleY(var(--bootzy-stretch));
  transform-origin: 50% 50%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 47px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}
.btn--light { color: var(--cream); }
.btn--dark { color: var(--black); }
.btn--dark:focus-visible { background: var(--black); border-color: var(--black); color: var(--red); }
.btn--light:focus-visible { background: var(--cream); border-color: var(--cream); color: var(--black); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* "THE / EXPERIENCE" style stacked titles */
.stack-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--fs-stack);
}
.stack-title__top {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: .09em;
}
.stack-title__bottom {
  font-family: var(--font-wide);
  line-height: 1.05;
  letter-spacing: 0;
  margin-top: -.158em;
}

/* ------------------------------------------------------------------ */
/* Torn-paper sections                                                  */
/* Each .tear overlaps the section above by its edge height; the edge   */
/* shapes are masks in assets/img/edges/.                               */
/* ------------------------------------------------------------------ */
.tear {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--edge-h));
}
.tear__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--tear-fill, var(--black));
  background-image: var(--bg);
  background-position: var(--bg-pos, 50% 0);
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: var(--edge), linear-gradient(#000, #000);
  -webkit-mask-size: 100% var(--edge-h), 100% calc(100% - var(--edge-h) + 1px);
  -webkit-mask-position: 0 0, 0 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--edge), linear-gradient(#000, #000);
  mask-size: 100% var(--edge-h), 100% calc(100% - var(--edge-h) + 1px);
  mask-position: 0 0, 0 100%;
  mask-repeat: no-repeat;
}
@media (min-width: 800px) and (min-resolution: 2dppx) {
  .tear__bg { background-image: var(--bg2); }
}
.tear--black {
  --edge: url("../img/edges/black.svg");
  --edge-h: calc(101 * var(--u));
  --bg: url("../img/bg-black.webp");
  --bg2: url("../img/bg-black@2x.webp");
}
.tear--signup {
  --edge: url("../img/edges/signup.svg");
  --edge-h: calc(43 * var(--u));
  --bg: url("../img/bg-signup.webp");
  --bg2: url("../img/bg-signup@2x.webp");
  --bg-pos: 50% 50%;
  --tear-fill: var(--cream);
}
.tear--experience {
  --edge: url("../img/edges/experience.svg");
  --edge-h: calc(25 * var(--u));
  --bg: url("../img/experience-sky.webp");
  --bg2: url("../img/experience-sky@2x.webp");
  --bg-pos: 50% 17%;
}
.tear--place {
  --edge: url("../img/edges/place.svg");
  --edge-h: calc(47 * var(--u));
  --bg: url("../img/place-grounds.webp");
  --bg2: url("../img/place-grounds@2x.webp");
  --bg-pos: 50% 50%;
}
.tear--red {
  --edge: url("../img/edges/red.svg");
  --edge-h: calc(38 * var(--u));
  --bg: url("../img/bg-red.webp");
  --bg2: url("../img/bg-red@2x.webp");
  --tear-fill: var(--red);
}

/* ------------------------------------------------------------------ */
/* Hero: fills the browser height, between two layouts:                 */
/*   smallest  720 tall, logo 691 wide at top 64, title at 434          */
/*   full      902 tall, logo 1123 wide at top 26, title at 629         */
/* Everything in between is interpolated from --d (0 → 182).            */
/* The red runs on under the next section's 101px torn edge.            */
/* ------------------------------------------------------------------ */
.hero {
  --vh: 100vh;
  --hero-h: clamp(calc(720 * var(--u)), var(--vh), calc(902 * var(--u)));
  --d: calc(var(--hero-h) - 720 * var(--u));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: calc(var(--hero-h) + 101 * var(--u));
  background: var(--red);
  color: var(--black);
  text-align: center;
}
@supports (height: 100svh) {
  .hero { --vh: 100svh; }
}
/* Grain: the header is the only place with the overlay texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: url("../img/texture.webp") 0 0 / 821px 1206px repeat;
}
/* Top bar: social icons left, sign-up anchor right (above the grain) */
.hero__bar {
  position: absolute;
  z-index: 3;
  top: calc(52 * var(--u) - 20px); /* row centred 52 from the top */
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  /* icon glyphs start 41 from the left; links carry 7px of padding */
  padding: 0 calc(27 * var(--u)) 0 calc(41 * var(--u) - 7px);
}
.hero__cta { height: 40px; }

/* Social icon list (shared) */
.social {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* 38px targets around 24px glyphs: 14px between icons */
.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: inherit;
}
.social__link svg { width: 24px; height: 24px; fill: currentColor; }
.social__link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.hero__presents {
  position: absolute;
  z-index: 1;
  top: calc(79 * var(--u));
  left: 50%;
  width: calc(355 * var(--u));
  height: auto;
  transform: translateX(-50%);
}
.hero__logo {
  position: absolute;
  z-index: 0;
  /* 691 → 1123 wide, 64 → 26 from the top; centre stays 27.5 left of middle */
  --logo-w: calc(691 * var(--u) + var(--d) * 432 / 182);
  top: calc(64 * var(--u) - var(--d) * 38 / 182);
  left: calc(50% - 27.5 * var(--u) - var(--logo-w) / 2);
  width: var(--logo-w);
  height: auto;
}
.hero__title {
  position: absolute;
  z-index: 1;
  top: calc(434 * var(--u) + var(--d) * 195 / 182);
  left: 0;
  right: 0;
  font-size: var(--fs-81);
  line-height: 1;
  letter-spacing: .09em;
  white-space: nowrap;
}
/* Corner labels: kept within the 1440 frame on wide screens */
.hero__corners {
  position: absolute;
  z-index: 1;
  top: calc(667 * var(--u) + var(--d) * 195 / 182);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 calc(27 * var(--u)) 0 calc(29 * var(--u));
}
.hero__corner {
  font-family: var(--font-mono);
  font-size: var(--fs-22);
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* 4 days / 4 stages over the video                                    */
/* ------------------------------------------------------------------ */
.stats {
  padding: calc(191 * var(--u)) 0 calc(170 * var(--u));
  color: var(--cream);
  text-align: center;
}
.stats__stage {
  position: relative;
  min-height: calc(557 * var(--u));
  padding-top: calc(113 * var(--u));
}
.stats__video {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: calc(846 * var(--u));
  height: calc(557 * var(--u));
  object-fit: cover;
  transform: translateX(-50%);
  background: #444;
}
.stats__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--fs-stats);
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
}
.stats__line + .stats__line { margin-top: calc(-9.46 * var(--u)); }
.stats__sub {
  margin-top: calc(-3 * var(--u));
  font-size: var(--fs-40);
  line-height: 1.1;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Signup on torn paper                                                */
/* ------------------------------------------------------------------ */
.signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(184 * var(--u)) var(--gutter) calc(160 * var(--u));
  color: var(--black);
  text-align: center;
}
.signup__title {
  font-size: var(--fs-81);
  line-height: 1;
  letter-spacing: .09em;
}
.signup__sub {
  margin-top: calc(25 * var(--u));
  font-size: var(--fs-33);
  line-height: 1.05;
  letter-spacing: .09em;
}
.signup__hl { font-weight: inherit; color: var(--red); }
.signup__sub--note { margin-top: calc(12 * var(--u)); }

/* Signup form (Tradable Bits) */
.signup-form {
  width: 873px;
  max-width: 100%;
  margin-top: calc(35 * var(--u));
  font-family: var(--font-mono);
  letter-spacing: 0;
  text-align: left;
}
.signup-form__fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  width: 841px;
  max-width: 100%;
}
.signup-form__field { grid-column: span 2; min-width: 0; }
.signup-form__field--half { grid-column: span 3; }
.signup-form__input {
  display: block;
  width: 100%;
  height: 47px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--cream);
  font: inherit;
  font-size: 16px;
  line-height: 1.05;
  -webkit-appearance: none;
  appearance: none;
}
.signup-form__input::placeholder { color: var(--cream); opacity: 1; }
.signup-form__input:focus::placeholder { opacity: .5; }
.signup-form__input:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.signup-form__input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red); }

/* Phone: one box holding the country code picker and the number */
.signup-form__phone {
  display: flex;
  align-items: center;
  height: 47px;
  border-radius: var(--radius-sm);
  background: var(--black);
}
.signup-form__phone:focus-within { outline: 2px solid var(--black); outline-offset: 2px; }
.signup-form__phone:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--red); }
.signup-form__cc {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px 0 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ede6e2' stroke-width='1.5'/%3E%3C/svg%3E") right 8px center / 10px 6px no-repeat;
  color: var(--cream);
  font-size: 16px;
  line-height: 1.05;
  white-space: nowrap;
}
.signup-form__cc-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* stops iOS zooming on focus */
}
.signup-form__cc-select option { background: var(--cream); color: var(--black); }
.signup-form__phone-input {
  flex: 1;
  min-width: 0;
  padding-left: 6px;
  background: transparent;
}
.signup-form__phone-input:focus-visible { outline: none; }
.signup-form__phone-input[aria-invalid="true"] { box-shadow: none; }

.signup-form__checks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.signup-form__check {
  position: relative;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--black);
  cursor: pointer;
}
.signup-form__checkbox {
  position: absolute;
  top: 0; left: 0;
  width: 25px; height: 25px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.signup-form__box {
  position: relative;
  width: 25px;
  height: 25px;
  border-radius: var(--radius-sm);
  background: var(--black);
}
.signup-form__box::after {
  content: "";
  position: absolute;
  top: 5px; left: 9px;
  width: 6px; height: 11px;
  border: solid var(--cream);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .15s ease-out;
}
.signup-form__checkbox:checked + .signup-form__box::after { opacity: 1; }
.signup-form__checkbox:focus-visible + .signup-form__box { outline: 2px solid var(--black); outline-offset: 2px; }
.signup-form__checkbox[aria-invalid="true"] + .signup-form__box { box-shadow: 0 0 0 2px var(--red); }
.signup-form__legal {
  font-size: 10px;
  line-height: 13px;
}
.signup-form__legal a { text-decoration: underline; }

.signup-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 269px;
  max-width: 100%;
  height: 47px;
  margin-top: 22px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: var(--black);
  font: inherit;
  font-size: 16px;
  line-height: 1.05;
  cursor: pointer;
  transition: background-color .2s ease-out, color .2s ease-out;
}
.signup-form__submit:focus-visible { background: var(--black); color: var(--cream); outline: 2px solid var(--black); outline-offset: 3px; }
.signup-form__submit:disabled { cursor: progress; opacity: .6; }

.signup-form__status {
  margin-top: 16px;
  color: var(--black);
  font-size: 14px;
  line-height: 17px;
}
.signup-form__status:empty { display: none; }
.signup-form__status:focus { outline: none; }
.signup-form.is-done .signup-form__fields,
.signup-form.is-done .signup-form__checks,
.signup-form.is-done .signup-form__submit { display: none; }
.signup-form.is-done .signup-form__status { margin-top: 0; font-size: 16px; text-align: center; }

/* ------------------------------------------------------------------ */
/* The Experience and The Place                                         */
/* ------------------------------------------------------------------ */
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  text-align: center;
}
.feature--experience {
  padding-top: calc(188 * var(--u));
  padding-bottom: calc(212 * var(--u));
  color: var(--red);
}
.feature--place {
  min-height: calc(761 * var(--u));
  padding-top: calc(205 * var(--u));
  padding-bottom: calc(96 * var(--u));
  color: var(--cream);
}
.feature__copy {
  margin-top: calc(37 * var(--u));
  font-size: var(--fs-33);
  line-height: 1.15;
  letter-spacing: .09em;
}
/* Figma text box: 769 wide at 33px (23.3em) */
.feature--experience .feature__copy { max-width: 23.3em; text-wrap: balance; }
.feature--place .feature__copy { margin-top: calc(32 * var(--u)); }
.feature__note {
  margin-top: calc(28 * var(--u));
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: 0;
}
@media (max-width: 1099px) {
  .feature__copy { max-width: 820px; }
}

/* ------------------------------------------------------------------ */
/* The trail ends here + calendar                                       */
/* ------------------------------------------------------------------ */
.trail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: calc(114 * var(--u));
  background: var(--black) url("../img/bg-black.webp") 50% 0 / cover no-repeat;
  color: var(--cream);
  text-align: center;
}
.trail__coords {
  display: flex;
  justify-content: space-between;
  align-self: stretch;
  width: 100%;
  max-width: 1440px; /* kept within the 1440 frame on wide screens */
  margin: calc(-70 * var(--u)) auto 0;
  padding: 0 calc(29 * var(--u)) 0 calc(27 * var(--u));
}
.trail__coords img:first-child { width: calc(429.43 * var(--u)); height: auto; }
.trail__coords img:last-child { width: calc(426.09 * var(--u)); height: auto; }
.trail__title {
  margin-top: calc(15 * var(--u));
  font-size: var(--fs-trail);
  line-height: 1.1;
  letter-spacing: .09em;
  color: var(--red);
  white-space: nowrap;
}
.trail__date {
  margin-top: calc(70 * var(--u));
  font-size: var(--fs-40);
  line-height: 1.05;
  letter-spacing: .09em;
}
.trail__sep { font-family: var(--font-mono); }

.calendar {
  display: flex;
  flex-direction: column;
  width: 484px;
  max-width: 100%;
  margin-top: max(20px, calc(28 * var(--u)));
}
.calendar__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calendar__row + .calendar__row { margin-top: 10px; }
.calendar__row:nth-child(2) { margin-top: 23px; }
.calendar__row > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.05;
  color: var(--cream);
}
.calendar__row:first-child > span { height: 15px; }
.calendar__row > .is-fest {
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 50%;
}
.trail .btn { width: 157px; padding: 0; margin-top: max(24px, calc(33 * var(--u))); }

/* ------------------------------------------------------------------ */
/* Red closer + About DWP card                                          */
/* ------------------------------------------------------------------ */
.closer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(108 * var(--u)) var(--gutter) 0;
  color: var(--black);
  text-align: center;
}
.about {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: calc(1356 * var(--u));
  min-height: calc(709 * var(--u));
  margin-top: calc(22 * var(--u));
  padding: calc(217 * var(--u)) var(--gutter) calc(198 * var(--u));
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  color: var(--cream);
}
.about__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Tint over the photo so the logo and copy stay legible. */
.about::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(29 29 29 / .55);
  pointer-events: none;
}
.about__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Figma: wordmark 794 wide, copy box ~750 wide */
.about__logo { width: min(100%, max(260px, calc(794 * var(--u)))); height: auto; }
.about__copy {
  max-width: 750px;
  text-wrap: pretty;
  margin-top: max(20px, calc(39 * var(--u)));
  font-size: var(--fs-24);
  line-height: 1.15;
  letter-spacing: .09em;
}
.about .btn { width: 112px; padding: 0; margin-top: max(24px, calc(54 * var(--u))); }

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */
.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  max-width: 1440px; /* kept within the 1440 frame on wide screens */
  margin: 40px auto 0;
  padding: 0 40px 43px 42px;
  color: var(--red);
}
/* Front page: sits inside .tail, on the same red background as the closer */
.footer--red {
  margin: 0 auto;
  padding-top: calc(42 * var(--u));
  color: var(--black);
}
.footer a { text-decoration: none; }
.footer a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.footer__social { justify-self: start; margin-left: -7px; }
.footer__logo img { width: 96px; height: auto; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 29px;
}
.footer__nav a { white-space: nowrap; }

@media (max-width: 1100px) {
  .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 32px var(--gutter) 38px; }
  .footer__social { justify-self: center; order: 2; margin-left: 0; }
  .footer__logo { order: 1; }
  .footer__nav { order: 3; justify-content: center; gap: 0 29px; }
  .footer__nav a { padding: 6px 0; }
}

/* ------------------------------------------------------------------ */
/* Hover (pointer devices only)                                         */
/* ------------------------------------------------------------------ */
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { background: var(--cream); border-color: var(--cream); color: var(--black); }
  .btn--dark:hover { background: var(--black); border-color: var(--black); color: var(--red); }
  .social__link:hover { opacity: .8; }
  .signup-form__submit:not(:disabled):hover { background: var(--black); color: var(--cream); }
  .footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ------------------------------------------------------------------ */
/* Mobile                                                               */
/* ------------------------------------------------------------------ */
@media (max-width: 767px) {
  /* One side margin for everything on phones; --cw is the content width */
  :root { --gutter: 24px; --cw: calc(100vw - 2 * var(--gutter)); }

  .hero {
    height: auto;
    padding: calc(78px + 50vw) var(--gutter) calc(101 * var(--u) + 56px);
  }
  .hero__bar { top: 14px; padding: 0 var(--gutter) 0 calc(var(--gutter) - 6px); }
  .hero__cta { height: 36px; padding: 0 12px; font-size: 14px; }
  .social__link { width: 32px; height: 32px; }
  .social__link svg { width: 20px; height: 20px; }
  .hero__presents { top: 72px; width: 200px; }
  .hero__logo { top: 84px; left: 50%; width: var(--cw); transform: translateX(-51%); }
  .hero__title { position: relative; top: auto; font-size: 26px; line-height: 1.05; white-space: normal; }
  .hero__corners { top: auto; bottom: calc(101 * var(--u) + 20px); padding: 0 var(--gutter); }

  .stats { padding: 48px 0 calc(43 * var(--u) + 56px); }
  /* Video and copy share one grid area; the 1fr rows centre the copy over the video */
  .stats__stage { display: grid; grid-template-rows: 1fr auto auto 1fr; min-height: 0; padding: 0 var(--gutter); }
  /* Full-width lines sized to fit the content width */
  .stats__title { grid-row: 2; grid-column: 1; font-size: calc(var(--cw) * 157.46 / 1380); }
  .stats__video { grid-row: 1 / -1; grid-column: 1; position: relative; left: auto; transform: none; width: 100%; height: auto; aspect-ratio: 846 / 557; }
  .stats__sub { grid-row: 3; grid-column: 1; margin-top: 8px; font-size: 16px; white-space: normal; }

  .signup { padding: calc(43 * var(--u) + 48px) var(--gutter) calc(25 * var(--u) + 64px); }
  .signup__title { font-size: 40px; }
  .signup__sub { margin-top: 12px; font-size: 18px; line-height: 1.15; }
  .signup-form { margin-top: 28px; }
  .signup-form__field,
  .signup-form__field--half { grid-column: 1 / -1; }
  .signup-form__submit { width: 100%; }

  .feature--experience { padding-top: calc(25 * var(--u) + 72px); padding-bottom: calc(47 * var(--u) + 72px); }
  .feature--place { min-height: 0; padding-top: calc(47 * var(--u) + 72px); padding-bottom: 96px; }
  .stack-title { font-size: 34px; }
  .feature__copy { margin-top: 24px; font-size: 18px; }
  .feature__note { margin-top: 24px; }

  .trail { padding-bottom: calc(38 * var(--u) + 64px); }
  .trail__coords { padding: 0 var(--gutter); }
  .trail__coords img:first-child { width: calc(var(--cw) * 429.43 / 1384); }
  .trail__coords img:last-child { width: calc(var(--cw) * 426.09 / 1384); }
  .trail__title { margin-top: 12px; font-size: calc(var(--cw) * 134.3 / 1400); }
  .trail__date { margin-top: 40px; padding: 0 var(--gutter); font-size: 20px; line-height: 1.2; }
  .trail__sep { display: block; height: 0; overflow: hidden; }
  .calendar { margin-top: 24px; padding: 0 var(--gutter); }
  .calendar__row > span { width: 36px; height: 36px; font-size: 13px; }

  .closer { padding-top: calc(38 * var(--u) + 48px); }
  .about { min-height: 0; margin-top: 24px; padding: 56px var(--gutter); }
  .about__logo { width: min(100%, 300px); }
  .about__copy { margin-top: 28px; font-size: 16px; }
}

/*
 * Film grain over the whole site (after css-tricks.com/snippets/css/animated-grainy-texture/).
 * An oversized fixed noise layer jumps between offsets in steps, so the grain
 * flickers like film. Tune strength with --grain-opacity.
 */
:root { --grain-opacity: .65; }
body::after {
  content: "";
  position: fixed;
  top: -100%;
  left: -50%;
  z-index: 9999;
  width: 300%;
  height: 300%;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background: url("../img/texture.webp") 0 0 / 821px 1206px repeat;
  animation: grain 8s steps(10) infinite;
  will-change: transform;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  body::after { animation: none; }
}

/* Inner pages (index.php fallback for any other page) */
.page { max-width: 820px; margin: 0 auto; padding: 48px var(--gutter) 96px; }
.page__logo { display: block; width: 180px; margin: 0 auto 64px; }
.page__title { font-size: max(30px, calc(44 * var(--u))); line-height: 1.1; text-transform: uppercase; color: var(--red); }
.page__content { margin-top: 32px; font-family: var(--font-wide); font-size: 16px; line-height: 1.6; }
.page__content > * + * { margin-top: 1em; }
.page__content h2, .page__content h3 { font-family: var(--font-display); line-height: 1.2; margin-top: 1.6em; }
.page__content a { color: var(--red); text-underline-offset: 3px; }
