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

html {
  font-size: 1.3vw;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
  background: var(--remu);
}

@media (min-width: 1600px) {
  html { font-size: 20px; }
}

@media (max-width: 1200px) {
  html { font-size: 15px; }
}

@media (max-width: 991px) {
  html { font-size: 14px; }
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-stopped {
  overflow: clip;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.25;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--text-display);
  line-height: 1.15;
}

h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--text-display);
  line-height: 1.15;
}

h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-book);
  font-size: var(--text-h3);
  line-height: 1.15;
}

a {
  color: inherit;
}

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

ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--banksia);
  color: var(--manuka);
}

:focus-visible {
  outline: 2px solid var(--banksia);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: var(--section-space) 0;
  scroll-margin-top: var(--jump-space);
}

.label {
  font-family: var(--font-body);
  font-weight: var(--weight-book);
  font-size: var(--text-label);
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.lead {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-lead);
  line-height: 1.25;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  /* Half a pixel more than chips: buttons have a 0.5px border, chips 1px. */
  padding: calc(var(--button-pad-y) + 0.5px) var(--button-pad-x);
  border: 0.5px solid transparent;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-weight: var(--weight-book);
  font-size: var(--button-font);
  line-height: var(--button-line);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-ui), color var(--duration-ui), border-color var(--duration-ui);
}

.button--primary {
  background: var(--banksia);
  color: var(--manuka);
}

@media (hover: hover) {
  .button--primary:hover {
    background: var(--remu);
    color: var(--manuka);
  }
}

.button--outline {
  border-color: var(--remu);
  color: var(--remu);
  background: transparent;
}

@media (hover: hover) {
  .button--outline:hover {
    background: var(--banksia);
    color: var(--manuka);
    border-color: var(--banksia);
  }
}

/* Large: the flights CTA. */
.button--large {
  min-height: var(--button-large-min);
  font-size: var(--button-large-font);
  line-height: 1;
}

/* ---------- Scene (fixed background) ---------- */
.scene {
  /* The sky fades from gradient a to gradient b by --sky-mix (js/sunset.js). */
  --sky-a-top: var(--light-sky);
  --sky-a-mid: #e0e6e3;
  --sky-a-low: var(--manuka);
  --sky-b-top: var(--light-sky);
  --sky-b-mid: #e0e6e3;
  --sky-b-low: var(--manuka);
  --sky-mix: 0;
  --photo-sky-opacity: 1;
  --stars-opacity: 0;
  --photo-y: 100%;
  --sun-x: 66vw;
  --sun-top: 48vh;
  /* The photo's width when it covers the screen (it's 2:3). */
  --photo-w: max(100vw, 66.667vh);
  --sun-y: 0px;
  --sun-opacity: 1;
  --land-y: 0px;
  --stars-land-y: 0px;
  --land-scale: 1;
  --land-brightness: 1.04;
  --land-saturate: 1.05;
  --land-sepia: 0.08;
  --grass-brightness: 1;
  --horizon: 74vh;

  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--remu);
}

/* Until js/scene.js measures the horizon, start it where the script will put
   it (HORIZON_ON_SCREEN and HORIZON_ON_SCREEN_PORTRAIT there), so the grass
   doesn't drop into place after the first paint, which counts as a layout
   shift. dvh matches the scene's height while a phone's toolbars show. */
@media (aspect-ratio < 4 / 5) {
  .scene {
    --horizon: 80vh;
  }
}

@supports (height: 1dvh) {
  .scene {
    --horizon: 74dvh;
  }

  @media (aspect-ratio < 4 / 5) {
    .scene {
      --horizon: 80dvh;
    }
  }

  /* Phones and tablets: the land sits low enough that the photo (1.5 times
     as tall as wide, 31.7% of it below the horizon) still reaches the bottom
     once the toolbars slide away (100lvh), as js/scene.js places it. */
  @media (hover: none) and (pointer: coarse) {
    .scene {
      --photo-w: max(100vw, 66.667dvh);
      --horizon: max(74dvh, calc(100lvh - var(--photo-w) * 1.5 * 0.317));
    }
  }

  @media (hover: none) and (pointer: coarse) and (aspect-ratio < 4 / 5) {
    .scene {
      --horizon: max(80dvh, calc(100lvh - var(--photo-w) * 1.5 * 0.317));
    }
  }
}

.scene > * {
  position: absolute;
  inset: 0;
}

.scene__sky {
  background: linear-gradient(
    to bottom,
    var(--sky-a-top) 0%,
    var(--sky-a-mid) 55%,
    var(--sky-a-low) 100%
  );
}

/* The next stage's sky, faded in over this one by opacity, which the GPU
   does without repainting (see updateSky in js/sunset.js). */
.scene__sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--sky-b-top) 0%,
    var(--sky-b-mid) 55%,
    var(--sky-b-low) 100%
  );
  opacity: var(--sky-mix);
  will-change: opacity;
}

/* The layers the sunset fades or moves on every frame of scrolling each get
   their own compositing layer (will-change), so the browser can fade or move
   them without repainting. Safari paints on the CPU, where a full-screen
   repaint every frame showed as stutter while the ground lowers. */
.scene__photo-sky {
  opacity: var(--photo-sky-opacity);
  will-change: opacity;
}

/* Not given its own layer: Chrome then draws the star points visibly softer
   on standard (1x) screens, and the stars only fade near the bottom of the
   page. */
.scene__stars {
  opacity: var(--stars-opacity);
}

/* Once the stars start to show (js/sunset.js sets is-night), the layers
   above get no layers of their own either: together they changed how the
   stars and the grain blend, slightly. The smoothness they buy matters most
   at the top of the page. */
.scene.is-night .scene__photo-sky,
.scene.is-night .scene__grass,
.scene.is-night .scene__sky::after {
  will-change: auto;
}

.scene__photo-sky img,
.scene__stars img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* --photo-y is set by js/scene.js so the portrait photo keeps its horizon
   low on wide screens. */
.scene__photo-sky img {
  object-position: 50% var(--photo-y);
}

/* The land and grass are the photo with its empty sky cut off the top (see
   LAND_TOP and GRASS_TOP in scripts/build-scene.mjs), so they cost far less
   memory. They are sized like the full photo would be with object-fit: cover
   (--photo-w) and placed from the horizon, which on phones sits lower than
   the sky photo can go. Both come from js/scene.js; until it runs, the
   defaults here put them in the same place, so nothing shifts when it does.
   The box runs only to the bottom of the screen where the photo goes past
   it (--land-box-h, --grass-box-h from js/scene.js), with object-fit filling
   in the rest: Chrome resamples a photo drawn whole more softly than one it
   draws only part of, which is how the full-height photo was drawn before.
   Placed with top and left rather than a transform, which softens it too. */
.scene__land img,
.scene__grass img {
  position: absolute;
  /* 1.5 is the photo's height over its width; 0.683 is its horizon. */
  top: calc(var(--horizon) - var(--photo-w) * 1.5 * (0.683 - var(--crop-top)));
  left: calc(50% - var(--photo-w) / 2);
  width: var(--photo-w);
  max-width: none;
  object-fit: cover;
  object-position: 50% 0;
}

.scene__land img {
  --crop-top: 35 / 60;
  height: var(--land-box-h, auto);
}

.scene__grass img {
  --crop-top: 41 / 60;
  height: var(--grass-box-h, auto);
}

/* The night sky photo ends just above its own rock, so its teal glow is
   pinned to the horizon (following the land when the sunset lowers it). */
.scene__stars {
  bottom: auto;
  height: calc(var(--horizon) + var(--stars-land-y) + 2px);
}

.scene__stars img {
  object-position: 50% 100%;
}

/* Placed with a transform rather than top/left: js/scene.js measures the
   sun's spot after the first paint, and moving it with top/left counted as a
   layout shift (CLS) on every page load. */
.scene__sun {
  inset: 0 auto auto 0;
  width: clamp(90px, 9vw, 150px);
  aspect-ratio: 1;
  border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  background: var(--manuka);
  box-shadow: 0 0 60px 18px rgba(255, 204, 181, 0.6), 0 0 200px 80px rgba(251, 94, 0, 0.16);
  opacity: var(--sun-opacity);
  transform: translate3d(calc(var(--sun-x) - 50%), calc(var(--sun-top) + var(--sun-y)), 0);
  will-change: transform;
}

.scene__land {
  transform: translate3d(0, var(--land-y), 0) scale(var(--land-scale));
  transform-origin: 50% 100%;
  filter: brightness(var(--land-brightness)) saturate(var(--land-saturate)) sepia(var(--land-sepia));
  will-change: transform, filter;
}

.scene__grass {
  inset: var(--horizon) 0 0 0;
  overflow: hidden;
  transform: translate3d(0, var(--land-y), 0) scale(var(--land-scale));
  transform-origin: 50% 100%;
  will-change: transform, filter;
  /* --grass-brightness dims the pale dusk-lit grass further at night. */
  filter: brightness(var(--land-brightness)) saturate(var(--land-saturate)) sepia(var(--land-sepia)) brightness(var(--grass-brightness));
}

/* Exactly as tall as the scene (this box starts at the horizon), so it lines
   up with the land. 100lvh is taller than the scene in iOS Safari while its
   toolbars show, which slid the grass up over the foot of the rock. */
.scene__grass picture {
  position: absolute;
  inset: auto 0 0 0;
  height: calc(100% + var(--horizon));
}

.scene__grass.is-windy > picture {
  filter: url(#wind);
}

.scene__grain {
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: 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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  color: var(--ink);
  transition: transform 0.5s var(--ease-out), background-color var(--duration-ui);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(to bottom, rgba(38, 45, 41, 0.08), rgba(38, 45, 41, 0));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  transition: opacity var(--duration-ui);
}

.nav.is-scrolled::before {
  opacity: 1;
}

.nav.is-hidden {
  transform: translateY(-110%);
}

.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__wordmark {
  width: 84px;
  height: auto;
  color: var(--ink);
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav__links a {
  font-weight: var(--weight-book);
  font-size: 0.75rem;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--duration-ui);
}

@media (hover: hover) {
  .nav__links a:hover {
    opacity: 1;
  }
}

/* ---------- Mobile nav (js/mobile-nav.js) ---------- */
/* Full-screen banksia menu with big numbered links. The header button opens and closes it. */
.nav__menu,
.menu {
  display: none;
}

.nav__menu {
  align-items: center;
  margin: -1rem -1rem -1rem auto;
  padding: 1rem;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* Icon only; the label stays for screen readers. */
.nav__menu-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav__menu-icon {
  position: relative;
  width: 22px;
  height: 8px;
}

.nav__menu-icon::before,
.nav__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--duration-ui) var(--ease-out);
}

.nav__menu-icon::before {
  top: 0;
}

.nav__menu-icon::after {
  bottom: 0;
}

.nav__menu[aria-expanded="true"] .nav__menu-icon::before {
  transform: translateY(3.25px) rotate(45deg);
}

.nav__menu[aria-expanded="true"] .nav__menu-icon::after {
  transform: translateY(-3.25px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 19;
  visibility: hidden;
  transition: visibility 0s linear 0.6s;
}

.menu.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.menu__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(5.5rem + env(safe-area-inset-top)) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--banksia);
  color: var(--manuka);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-out);
}

.menu.is-open .menu__panel {
  clip-path: inset(0);
}

.menu__links {
  counter-reset: menu;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hairline-light);
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.1;
  text-decoration: none;
  counter-increment: menu;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s, transform 0.3s;
}

.menu__links a::before {
  content: counter(menu, decimal-leading-zero);
  min-width: 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-label);
  opacity: 0.7;
}

.menu.is-open .menu__links a {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(0.15s + var(--i, 0) * 0.06s);
}

.menu__foot {
  display: grid;
  gap: 0.6rem;
  padding-top: 2rem;
}

.menu__foot .label {
  color: var(--soft-light);
}

.menu__foot a {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--manuka);
}

.is-menu-open .nav,
.is-menu-open .nav__wordmark {
  color: var(--manuka);
}

.is-menu-open .nav::before {
  opacity: 0;
}

.is-menu-open .nav.is-hidden {
  transform: none;
}

@media (max-width: 900px) {
  .nav__menu {
    display: inline-flex;
  }

  .menu {
    display: block;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(6rem, 13vh, 10rem) var(--gutter) 2rem;
}

.hero__inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 14vh auto 0;
  text-align: center;
}

.hero__title {
  color: var(--ink);
  font-size: calc(var(--text-display) * 2);
}

.hero__meta {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-weight: var(--weight-book);
  font-size: 1.25rem;
  line-height: 1.25;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
}

.hero__scroll {
  margin: auto auto 0;
  padding-top: 2rem;
  color: var(--manuka);
  text-decoration: none;
  opacity: 0.85;
}

.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.5rem;
  margin: 0.75rem auto 0;
  background: currentColor;
  transform-origin: top;
  animation: scroll-cue 2.4s var(--ease-out) infinite;
}

@keyframes scroll-cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- About ---------- */
.about__intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 0.5rem;
  row-gap: 2rem;
}

.about__title {
  grid-column: 1 / span 6;
}

.about__body {
  grid-column: 8 / -1;
  align-self: end;
  display: grid;
  gap: 1.25rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-hairline);
}

.pillar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pillar__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, var(--text-big-number));
  line-height: 1;
  color: var(--banksia);
}

.pillar__icon {
  flex: none;
  width: clamp(3.25rem, 5.5vw, 5.5rem);
  aspect-ratio: 776 / 636;
  color: var(--banksia);
}

.pillar p {
  color: var(--ink-soft);
}

/* Pillar heads: icon only, number only, or a small number beside the icon. */
.pillars[data-head="icon"] .pillar__number,
.pillars[data-head="number"] .pillar__icon {
  display: none;
}

.pillars[data-head="icon"] .pillar__icon {
  width: clamp(4.5rem, 7vw, 6.75rem);
}

.pillars[data-head="both"] .pillar__head {
  align-items: flex-start;
}

.pillars[data-head="both"] .pillar__number {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
}

.pillars[data-head="both"] .pillar__icon {
  width: clamp(4rem, 6vw, 6rem);
}

/* Pillar layouts. "grid" is the base above. */
.pillars[data-layout="cards"] {
  gap: 0.5rem;
}

.pillars[data-layout="cards"] .pillar {
  gap: 1rem;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-top: 0;
  border-radius: var(--radius-card);
  background: rgba(247, 246, 227, 0.55);
}

.pillars[data-layout="cards"] .pillar__head {
  margin-bottom: clamp(1.5rem, 4vw, 3.5rem);
}

.pillars[data-layout="rows"] {
  grid-template-columns: 1fr;
  gap: 0;
}

.pillars[data-layout="rows"] .pillar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1.5rem;
  align-items: center;
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
}

.pillars[data-layout="rows"] .pillar:last-child {
  border-bottom: 1px solid var(--ink-hairline);
}

.pillars[data-layout="rows"] .pillar__head {
  grid-column: 1 / span 2;
  justify-content: flex-start;
}

.pillars[data-layout="rows"] .pillar__title {
  grid-column: 3 / span 5;
  font-size: var(--text-lead);
}

.pillars[data-layout="rows"] .pillar p {
  grid-column: 8 / -1;
}

/* ---------- Road to Uluru ---------- */
.road__header {
  max-width: 46rem;
  display: grid;
  gap: 1rem;
}

.road__track {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.road__line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.road__line path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.road__line-base {
  stroke: var(--mark-line);
  opacity: 0.28;
}

.road__line-draw {
  stroke: var(--mark-line);
}

.road__milestones {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.milestone {
  --dot-size: 30px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
  align-items: center;
}

.milestone__dot {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: var(--dot-size);
  aspect-ratio: 162 / 165;
  opacity: 0.28;
  transform: rotate(var(--turn, 0deg)) scale(0.72);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}

.milestone__dot svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.milestone__dot-fill {
  fill: var(--mark-line);
}

.milestone__dot-ring {
  fill: none;
  stroke: var(--mark-line);
  stroke-width: 20.67;
}

.milestone.is-active .milestone__dot {
  opacity: 1;
  transform: rotate(var(--turn, 0deg)) scale(1);
}

.milestone__card {
  grid-row: 1;
  display: grid;
  gap: 0.6rem;
  max-width: 26rem;
}

.milestone:nth-child(odd) .milestone__card {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.milestone:nth-child(even) .milestone__card {
  grid-column: 3;
  justify-self: start;
}

.milestone__date {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: 1;
}

.milestone__copy {
  color: var(--ink-soft);
}

.milestone__copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.milestone__action {
  justify-self: start;
  margin-top: 0.5rem;
}

.milestone:nth-child(odd) .milestone__action {
  justify-self: end;
}

.milestone--arrival .milestone__date {
  font-size: var(--text-display);
}

/* Timeline layouts. "winding" is the base above. */
@media (min-width: 901px) {
  /* Horizontal: the section pins and the track slides sideways. */
  .road[data-timeline="horizontal"] {
    overflow-x: clip;
  }

  .road[data-timeline="horizontal"] .road__track {
    width: max-content;
    margin-top: clamp(2.5rem, 5vw, 4rem);
  }

  .road[data-timeline="horizontal"] .road__milestones {
    display: flex;
    gap: 0;
  }

  .road[data-timeline="horizontal"] .milestone {
    width: clamp(17rem, 24vw, 22rem);
    height: clamp(22rem, 48vh, 28rem);
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto 1fr;
    row-gap: 1.75rem;
  }

  .road[data-timeline="horizontal"] .milestone__dot {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .road[data-timeline="horizontal"] .milestone:nth-child(n) .milestone__card {
    grid-column: 1;
    justify-self: start;
    max-width: none;
    padding-right: 2.5rem;
    text-align: left;
  }

  .road[data-timeline="horizontal"] .milestone:nth-child(odd) .milestone__card {
    grid-row: 1;
    align-self: end;
  }

  .road[data-timeline="horizontal"] .milestone:nth-child(even) .milestone__card {
    grid-row: 3;
    align-self: start;
  }

  /* Switchback: a grid the road zig-zags through, row by row. */
  .road[data-timeline="switchback"] .road__milestones {
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    row-gap: clamp(4rem, 8vw, 6.5rem);
  }

  .road[data-timeline="switchback"] .milestone {
    grid-template-columns: 1fr;
    align-content: start;
    row-gap: 1.5rem;
  }

  .road[data-timeline="switchback"] .milestone__dot {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .road[data-timeline="switchback"] .milestone:nth-child(n) .milestone__card {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
  }

  /* Itinerary: one column you can scan, dates set in their own column. */
  .road[data-timeline="itinerary"] .road__milestones {
    max-width: 62rem;
    gap: clamp(3.5rem, 6.5vw, 5.5rem);
  }

  .road[data-timeline="itinerary"] .milestone {
    grid-template-columns: 80px 1fr;
    align-items: start;
  }

  .road[data-timeline="itinerary"] .milestone__dot {
    grid-column: 1;
    margin-top: 0.4rem;
  }

  .road[data-timeline="itinerary"] .milestone:nth-child(n) .milestone__card {
    grid-column: 2;
    grid-template-columns: minmax(9rem, 14rem) 1fr;
    column-gap: 2rem;
    row-gap: 0.4rem;
    justify-self: stretch;
    max-width: none;
    text-align: left;
  }

  .road[data-timeline="itinerary"] .milestone__date {
    grid-row: 1 / span 2;
  }
}

.road[data-timeline="itinerary"] .milestone__date,
.road[data-timeline="horizontal"] .milestone__date,
.road[data-timeline="switchback"] .milestone__date {
  font-size: var(--text-h2);
}

.road[data-timeline="itinerary"] .milestone--arrival .milestone__date,
.road[data-timeline="horizontal"] .milestone--arrival .milestone__date,
.road[data-timeline="switchback"] .milestone--arrival .milestone__date {
  font-size: var(--text-display);
}

/* ---------- Key info (ticket layout) ---------- */
.key-info__panel {
  position: relative;
  display: grid;
  gap: clamp(2rem, 3.5vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-regular);
  background: rgba(38, 45, 41, 0.28);
  border: 1px solid var(--hairline-light);
  color: var(--manuka);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}

.key-info__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

/* When and Where stacked left of the perforation; the three details stacked right. */
.key-info__list {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: repeat(6, auto);
  gap: 2.5rem 2rem;
  margin: 0;
}

.key-info__item {
  grid-column: 2;
  grid-row: span 2;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline-light);
}

.key-info__item:nth-child(-n + 2) {
  grid-column: 1;
  grid-row: span 3;
  padding-right: 2rem;
  border-right: 1.5px dashed var(--hairline-light);
}

.key-info__item:nth-child(1) {
  grid-row: 1 / 4;
}

.key-info__item:nth-child(2) {
  grid-row: 4 / 7;
}

.key-info__item:nth-child(3) {
  grid-row: 1 / 3;
}

.key-info__item .label {
  color: var(--soft-light);
}

.key-info__item dd {
  margin: 0;
  font-size: var(--text-medium);
  line-height: 1.25;
}

.key-info__item:nth-child(-n + 2) dd {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-lead);
  line-height: 1.25;
}

.key-info__item a {
  text-underline-offset: 3px;
}

.key-info__place {
  display: block;
}

.key-info__meta {
  display: block;
  margin-top: 0.4rem;
  color: var(--soft-light);
  font-size: var(--text-body);
}

.key-info__flights {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: var(--text-body);
}

.key-info__flights li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.key-info__panel .button--outline {
  color: var(--manuka);
  border-color: var(--manuka);
}

@media (hover: hover) {
  .key-info__panel .button--outline:hover {
    background: var(--manuka);
    color: var(--remu);
    border-color: var(--manuka);
  }
}

/* ---------- Flight booking ---------- */
.key-info {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.flights {
  padding-top: 0;
  /* No top padding (it sits tight under Key info), so give nav jumps the
     same breathing room every other section gets from its padding. */
  scroll-margin-top: calc(var(--section-space) + var(--jump-space));
}

.flights__panel {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-areas:
    "intro deadline"
    "intro action";
  align-items: start;
  row-gap: 0;
  column-gap: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-regular);
  background: var(--manuka);
  color: var(--remu);
  box-shadow: 0 1.5rem 4rem rgba(38, 45, 41, 0.25);
}

.flights__intro {
  grid-area: intro;
}

.flights__copy {
  max-width: 34rem;
  margin-top: 0.75rem;
  font-size: var(--text-body);
  line-height: 1.25;
  color: var(--soft);
}

.flights__deadline {
  grid-area: deadline;
  display: grid;
  align-self: stretch;
  align-content: start;
  gap: 0.75rem;
  padding: 0 0 2rem clamp(2rem, 4vw, 3.5rem);
  border-left: 1.5px dashed var(--hairline);
}

.flights__deadline .label,
.flights__url {
  color: var(--soft);
}

.flights__date {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: 1.1;
}

.flights__action {
  grid-area: action;
  display: grid;
  justify-items: stretch;
  gap: 0.6rem;
  padding-left: clamp(2rem, 4vw, 3.5rem);
  border-left: 1.5px dashed var(--hairline);
  text-align: center;
}

.flights__url {
  font-size: var(--text-label);
}

/* ---------- Attendees and agenda ---------- */

.extra__header {
  max-width: 46rem;
  display: grid;
  gap: 1rem;
}

.extra__header .label {
  color: var(--banksia);
}

.group__list {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Location filter buttons above the grid. Chip sizes stop growing past a ~1366px-wide screen (the page's base size
   keeps scaling with the window, but the content width caps at --page-max),
   so on large monitors all the chips still fit on one line. */
.group__filters {
  display: flex;
  flex-wrap: wrap;
  gap: min(0.5rem, 9px);
  margin-bottom: 1.5rem;
}

.group__chip {
  display: inline-flex;
  align-items: center;
  gap: min(0.5rem, 9px);
  /* The shared small-button height (--button-pad-y, --button-line). The
     caps keep the chips on one line on large monitors. */
  padding: var(--button-pad-y) min(1rem, 18px);
  border: 1px solid var(--ink-hairline);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: min(0.6875rem, 13px);
  line-height: var(--button-line);
  cursor: pointer;
  transition: background-color var(--duration-ui), color var(--duration-ui), border-color var(--duration-ui);
}

@media (hover: hover) {
  .group__chip:hover {
    border-color: var(--ink-soft);
  }
}

.group__chip[aria-pressed="true"] {
  border-color: var(--manuka);
  background: var(--manuka);
  color: var(--remu);
}

.group__chip-count {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.group__chip[aria-pressed="true"] .group__chip-count {
  color: var(--banksia);
}

/* A frosted backdrop behind the attendees, blurring the sunset so the photos
   aren't competing with it. Fades in and out at the edges. */
.group {
  isolation: isolate;
}

.group::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(38 45 41 / 0.22);
  -webkit-backdrop-filter: blur(28px) saturate(0.85);
  backdrop-filter: blur(28px) saturate(0.85);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 160px, #000 calc(100% - 160px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 160px, #000 calc(100% - 160px), transparent);
  pointer-events: none;
}

.founder__button {
  display: grid;
  gap: 0.3rem;
  justify-items: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.founder__photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 0.7rem;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--ink-hairline);
}

.founder__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--wash-filter);
  transition: transform 0.6s var(--ease-out), filter 0.5s var(--ease-out);
}

/* Night sky duotone, so the grid sits calmly on the sky: near-black navy
   shadows (screen) and pale blue-white highlights (multiply), with more
   contrast. Colour returns on hover. */
body {
  --wash-filter: grayscale(1) contrast(1.2);
  --wash-highlight: #dbe4f0;
  --wash-shadow: #0e1830;
}

.founder__photo::before,
.founder__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

.founder__photo::before {
  z-index: 1;
  background: var(--wash-highlight);
  mix-blend-mode: multiply;
}

.founder__photo::after {
  z-index: 2;
  background: var(--wash-shadow);
  mix-blend-mode: screen;
}

.founder__button:focus-visible .founder__photo img {
  transform: scale(1.04);
  filter: none;
}

@media (hover: hover) {
  .founder__button:hover .founder__photo img {
    transform: scale(1.04);
    filter: none;
  }
}

.founder__button:focus-visible .founder__photo::before,
.founder__button:focus-visible .founder__photo::after {
  opacity: 0;
}

@media (hover: hover) {
  .founder__button:hover .founder__photo::before,
  .founder__button:hover .founder__photo::after {
    opacity: 0;
  }
}

.founder__button:focus-visible {
  outline: 2px solid var(--banksia);
  outline-offset: 4px;
  border-radius: var(--radius-card);
}

/* After airtree.vc/team: name 0.75rem semibold, role 0.6875rem Book. */
.founder__name {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.founder__meta {
  font-size: 0.6875rem;
  font-weight: var(--weight-book);
  line-height: 1.35;
}

.founder__meta,
.group__note {
  color: var(--ink-soft);
}

/* Profile dialog, after airtree.vc/companies: photo left, details right. */
.profile {
  width: min(100% - 2 * var(--gutter), 52rem);
  max-height: calc(100dvh - 2 * var(--gutter));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-regular);
  background: var(--manuka);
  color: var(--remu);
  overflow: auto;
  overscroll-behavior: contain;
}

/* The dialog itself never needs the focus ring; its buttons keep theirs. */
.profile:focus,
.profile:focus-visible {
  outline: none;
  border-radius: var(--radius-regular);
}

.profile__close:focus-visible {
  border-radius: 50%;
  outline-offset: -2px;
}

.profile::backdrop {
  background: rgb(38 45 41 / 0.6);
  backdrop-filter: blur(6px);
}

.profile[open] {
  animation: profile-in 0.45s var(--ease-out);
}

@keyframes profile-in {
  from { opacity: 0; transform: translateY(1.5rem); }
}

.profile__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding: 1rem;
}

.profile__photo {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--hairline);
}

.profile__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.75rem;
}

/* City and name sit on the photo, over a soft dark fade. */
.profile__photo {
  position: relative;
}

.profile__photo figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 0.35rem;
  padding: 4rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgb(38 45 41 / 0.75), transparent);
  color: var(--manuka);
}

.profile__city {
  color: var(--soft-light);
}

.profile__name {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--text-h2);
  line-height: 1.1;
}

/* The company's logo heads the text side: quiet and not a link. */
.profile__brand {
  display: flex;
  align-items: center;
  align-self: flex-start;
  height: 2rem;
}

.profile__brand img {
  display: block;
  width: auto;
  max-width: 9.5rem;
  height: 100%;
  object-fit: contain;
  opacity: 0.4;
}

/* The facesheet bio, word for word. */
.profile__about {
  padding-right: 3rem;
  font-size: 1rem;
  line-height: 1.35;
}

/* The company link in the bio: underlined in the text colour at rest;
   orange, with the arrow, on hover. */
.profile__company {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--duration-ui);
}

.profile__company-arrow {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
  opacity: 0;
  transform: translate(-0.2em, 0.2em);
  transition: max-width var(--duration-ui) var(--ease-out), opacity var(--duration-ui), transform var(--duration-ui) var(--ease-out);
}

.profile__company:focus-visible {
  color: var(--banksia);
}

@media (hover: hover) {
  .profile__company:hover {
    color: var(--banksia);
  }
}

.profile__company:focus-visible .profile__company-arrow {
  max-width: 1.2em;
  padding-left: 0.2em;
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
  .profile__company:hover .profile__company-arrow {
    max-width: 1.2em;
    padding-left: 0.2em;
    opacity: 1;
    transform: none;
  }
}

/* LinkedIn and the arrows share the last row, level with the photo's foot. */
.profile__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.profile__nav {
  width: var(--icon-button);
  height: var(--icon-button);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--manuka);
  color: var(--remu);
  font: inherit;
  font-size: var(--icon-button-font);
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--duration-ui), color var(--duration-ui);
}

@media (hover: hover) {
  .profile__nav:hover {
    background: var(--remu);
    color: var(--manuka);
  }
}

/* Same thin crossed lines as the mobile nav's close icon. */
.profile__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: var(--icon-button);
  height: var(--icon-button);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--remu);
  cursor: pointer;
  transition: opacity var(--duration-ui);
}

@media (hover: hover) {
  .profile__close:hover {
    opacity: 0.6;
  }
}

.profile__close-icon {
  position: relative;
  width: 16px;
  height: 8px;
}

.profile__close-icon::before,
.profile__close-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
}

.profile__close-icon::before {
  top: 0;
  transform: translateY(3.25px) rotate(45deg);
}

.profile__close-icon::after {
  bottom: 0;
  transform: translateY(-3.25px) rotate(-45deg);
}

.profile__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.profile__count {
  min-width: 3.25rem;
  text-align: center;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .profile__panel {
    grid-template-columns: 1fr;
  }

  /* Stacked: the pop-up narrows to a card and the square photo spans it, so
     there's no gap beside the photo and the X always sits on it. */
  .profile {
    width: min(100% - 2 * var(--gutter), 26rem);
  }

  .profile__photo {
    width: 100%;
  }

  .profile__body {
    padding: 0 0.25rem 0.25rem;
  }

  /* The X sits on the photo here: drawn light, with a soft shadow so it
     reads on any photo without a container behind it. */
  .profile__close {
    top: 1.25rem;
    right: 1.25rem;
    color: var(--manuka);
    filter: drop-shadow(0 1px 2px rgb(38 45 41 / 0.5));
  }

  /* The X sits on the photo here, so the text needs no room kept for it. */
  .profile__about {
    padding-right: 0;
  }

  .profile__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0, rgb(38 45 41 / 0.45), transparent 7rem);
    pointer-events: none;
  }
}

.group__note {
  margin-top: 2rem;
}

.agenda__body {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.agenda__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.agenda__tabs {
  display: flex;
  gap: 0.5rem;
}

.agenda__tab {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--ink-hairline);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--duration-ui), color var(--duration-ui), border-color var(--duration-ui);
}

@media (hover: hover) {
  .agenda__tab:hover {
    border-color: var(--ink-soft);
  }
}

.agenda__tab-day {
  font-size: var(--text-label);
  color: var(--ink-soft);
}

.agenda__tab[aria-selected="true"] {
  background: var(--manuka);
  border-color: var(--manuka);
  color: var(--remu);
}

.agenda__tab[aria-selected="true"] .agenda__tab-day {
  color: var(--banksia);
}

.agenda__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agenda__arrow {
  width: var(--icon-button);
  height: var(--icon-button);
  border: 1px solid var(--ink-hairline);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--icon-button-font);
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--duration-ui), color var(--duration-ui), opacity var(--duration-ui);
}

@media (hover: hover) {
  .agenda__arrow:hover:not(:disabled) {
    background: var(--manuka);
    color: var(--remu);
  }
}

.agenda__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.agenda__count {
  min-width: 3rem;
  text-align: center;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.agenda__days {
  display: grid;
  grid-template-columns: 1fr;
}

.day:not(.is-active) {
  display: none;
}

.day {
  display: grid;
  grid-template-columns: 4fr 7fr;
  align-items: start;
  align-content: start;
  gap: clamp(2rem, 4vw, 4rem);
  padding-top: 2.5rem;
}

.day__head {
  display: grid;
  gap: 0.5rem;
}

.day__date {
  display: none;
}

.day__title {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--text-display);
}

.day__sessions {
  display: grid;
}

.session {
  position: relative;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--ink-hairline);
}

.session__time {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.session__body {
  display: grid;
  gap: 0.75rem;
}

.session__who {
  display: block;
  font-weight: var(--weight-medium);
}

/* ---------- FAQ ---------- */
.faq__layout {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.faq__header {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 1.25rem;
}

.faq__header a {
  text-underline-offset: 3px;
}

.faq__item {
  border-top: 1px solid var(--ink-hairline);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--ink-hairline);
}

.faq__item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-family: var(--font-body);
  font-weight: var(--weight-book);
  font-size: 1rem;
  line-height: 1.15;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--ink-hairline);
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 11px no-repeat;
  transition: transform 0.4s var(--ease-out), background-color var(--duration-ui);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  overflow: hidden;
}

.faq__answer p {
  max-width: 40rem;
  padding-bottom: 1.25rem;
  color: var(--ink-soft);
}

.faq__answer a {
  color: inherit;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--section-space) 0 2rem;
  color: var(--manuka);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer .label {
  color: var(--soft-light);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline-light);
}

.footer__tagline {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--text-display);
  line-height: 1.15;
  letter-spacing: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.6fr;
  gap: 2rem;
}

.footer__grid > div {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.footer__grid a {
  text-underline-offset: 3px;
}

.footer__wordmark {
  width: 120px;
  height: auto;
  color: var(--manuka);
}

.footer__ack p:not(.label) {
  max-width: 30rem;
  color: var(--soft-light);
}

.footer__legal {
  margin-top: auto;
}

/* ---------- Intro ---------- */
.intro {
  display: none;
}

.intro-pending .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--banksia);
  will-change: transform;
}

.intro-pending,
.intro-pending body {
  overflow: hidden;
}

.intro__mark {
  width: min(22vw, 30vh, 240px);
  min-width: 120px;
}

.intro .brandmark {
  visibility: hidden;
}

.intro__mark svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.intro__wordmark {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 5vh, 3rem);
  width: 72px;
  height: auto;
  color: var(--manuka);
  transform: translateX(-50%);
}

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}

/* ---------- 12-column grid (desktop) ---------- */
/* After airtree.vc: sections are spans of one 12-column grid with 0.5rem
   gutters. Agenda and FAQ put the title in columns 1–4 and the content from
   column 6; the footer's columns start at 1, 6 and 9 to line up with them. */
@media (min-width: 901px) {
  .day,
  .faq__layout,
  .footer__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 0.5rem;
  }

  .day__head,
  .faq__header {
    grid-column: 1 / span 4;
  }

  .day__sessions,
  .faq__list {
    grid-column: 6 / -1;
  }

  .footer__grid > :nth-child(1) {
    grid-column: 1 / span 4;
  }

  .footer__grid > :nth-child(2) {
    grid-column: 6 / span 3;
  }

  .footer__grid > :nth-child(3) {
    grid-column: 9 / -1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .about__title,
  .about__body {
    grid-column: 1 / -1;
  }

  .pillars[data-layout="rows"] .pillar {
    grid-template-columns: 1fr;
    row-gap: 0.9rem;
    align-items: start;
  }

  .pillars[data-layout="rows"] .pillar:nth-child(n) > * {
    grid-column: 1;
  }

  .group__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .day {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .agenda__tabs {
    width: 100%;
  }

  .agenda__tab {
    flex: 1;
  }

  .key-info__list {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: none;
  }

  .key-info__item:nth-child(n) {
    grid-column: span 2;
    grid-row: auto;
  }

  .key-info__item:nth-child(-n + 2) {
    grid-column: 1 / -1;
    padding-right: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .key-info__item:nth-child(3) {
    grid-column: 1 / -1;
  }

  .key-info__item:nth-child(n + 4) {
    grid-column: span 3;
  }

  .faq__layout {
    grid-template-columns: 1fr;
  }

  .faq__header {
    position: static;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__ack {
    grid-column: 1 / -1;
  }

  .milestone {
    grid-template-columns: 4.5rem 1fr;
    column-gap: 2.25rem;
  }

  .milestone__dot {
    grid-column: 1;
  }

  .milestone:nth-child(n) .milestone__card {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .milestone:nth-child(n) .milestone__action {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .key-info__list {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .key-info__item:nth-child(n) {
    grid-column: 1 / -1;
  }

  .key-info__item:nth-child(2) {
    padding-bottom: 0;
  }

  .flights__panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "deadline"
      "action";
  }

  .flights__intro {
    margin-bottom: 2rem;
  }

  .flights__deadline,
  .flights__action {
    padding-left: 0;
    border-left: 0;
  }

  .flights__deadline {
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
    border-top: 1.5px dashed var(--hairline);
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 7.5rem;
  }

  .hero__actions .button {
    flex: 1 1 100%;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .milestone {
    grid-template-columns: 52px 1fr;
    column-gap: 1.5rem;
  }
}

/* Phones, after airtree.vc at 375px: small text grows to stay legible
   (airtree's labels, buttons and team names scale up on phones), and the
   hero title comes down to airtree's 2.5rem phone heading. */
@media (max-width: 767px) {
  .hero__title {
    font-size: 2.5rem;
  }

  /* Regular buttons stay compact on phones (--button-font); the hero's
     full-width button takes the large height as the first call to action. */
  .hero__actions .button {
    min-height: var(--button-large-min);
  }

  .group__chip {
    font-size: 0.9rem;
  }

  .group__grid {
    row-gap: 4rem;
  }

  .founder__name {
    font-size: 0.95rem;
  }

  .founder__meta {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__scroll::after {
    animation: none;
  }
}
