/* ==========================================================================
   Home: hero, vision word reveal, pillars, marquee, surfing pelican
   ========================================================================== */

/* ---------- Hero ---------- */

/* The section is tall; the stage pins while the page scrolls past it. */
.hero {
  position: relative;
  height: 300vh;
}

/*
  The hero art is a 16:9 image with the HackTulane logo in the middle: the clock tower's top sits
  at ~26% of the image height and the logo's underline at ~67%. --art-h is the image's rendered
  height and --art-top its top edge; the kicker and the text below are placed from these so they
  always clear the logo. The image is sized to 78% of the stage height (or 95% of the width on
  narrow screens, so the whole logo fits) and its edges fade into the stage colour.
*/
.hero__stage {
  --art-h: min(78%, 95vw);
  --art-top: calc(46% - var(--art-h) / 2);
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #00261a; /* matches the art's edges */
  transform-origin: 50% 100%;
  will-change: transform;
}
@media (max-aspect-ratio: 5/6) {
  .hero__stage {
    --art-top: calc(40% - var(--art-h) * 0.465);
  }
}

.hero__texture { display: none; }

.hero__art-wrap {
  position: absolute;
  inset: 0;
}
.hero__art {
  position: absolute;
  top: var(--art-top);
  left: 50%;
  width: auto;
  height: var(--art-h);
  max-width: none;
  transform: translateX(-50%);
  will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 62%, transparent);
  mask-image: radial-gradient(ellipse closest-side, #000 62%, transparent);
}

.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 45%, transparent 45%, rgba(3, 22, 13, 0.55) 100%),
    linear-gradient(to bottom, rgba(3, 22, 13, 0.4), transparent 22%, transparent 58%, rgba(3, 22, 13, 0.65));
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: #fff;
  text-align: center;
  will-change: transform, opacity;
}

/* Positioned from --art-top/--art-h (see .hero__stage) so they sit just above and below the logo. */
.hero__kicker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - var(--art-top) - var(--art-h) * 0.25 + 0.75rem);
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: 40rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  line-height: 1.25;
  opacity: 0.92;
}

.hero__bottom {
  position: absolute;
  top: calc(var(--art-top) + var(--art-h) * 0.67 + clamp(1rem, 2.5vh, 1.75rem));
  left: 0;
  right: 0;
  display: grid;
  justify-items: center;
  gap: clamp(0.75rem, 1.6vh, 1.1rem);
  padding: 0 var(--gutter);
}

.hero__title {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, min(3vw, 4.6vh), 2.9rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__title .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
  vertical-align: top;
}
.hero__title .w > span { display: inline-block; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}
.hero__meta span + span::before {
  content: "•";
  margin: 0 0.75em;
  color: var(--gold);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 2.5vh, 28px);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
  transform: translateX(-50%);
}
.hero__scroll i {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scroll-line 1.8s var(--ease-in-out) infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
@media (max-height: 640px) {
  .hero__scroll { display: none; }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--green-950);
  opacity: 0;
  pointer-events: none;
}

/* Entrance (after the preloader leaves) */
html.js .hero__art-wrap {
  opacity: 0;
  transform: scale(1.12);
  filter: blur(8px);
  transition: opacity 1.4s var(--ease-out), transform 1.8s var(--ease-out), filter 1.4s var(--ease-out);
}
html.js .hero__title .w > span {
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms + 350ms);
}
html.js [data-enter] {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 1s var(--ease-out), translate 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js .hero__scroll {
  opacity: 0;
  transition: opacity 1s var(--ease-out) 1.2s;
}

body.is-ready .hero__art-wrap {
  opacity: 1;
  transform: none;
  filter: none;
}
body.is-ready .hero__title .w > span { transform: none; }
body.is-ready [data-enter] {
  opacity: 0.92;
  translate: 0 0;
}
body.is-ready .hero__meta[data-enter] { opacity: 0.8; }
body.is-ready .hero__ctas[data-enter] { opacity: 1; }
body.is-ready .hero__scroll { opacity: calc(0.75 * var(--cue, 1)); }

/* ---------- Vision (curtain over the hero) ---------- */

.vision {
  position: relative;
  z-index: 10;
  margin-top: -100vh;
  background: var(--cream);
  color: var(--ink);
  border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0;
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, 0.45);
}

.reveal {
  position: relative;
  height: 320vh;
}
.reveal__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem;
  overflow: clip;
}
.reveal__layout {
  display: grid;
  grid-template-columns: 2px minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4.5rem);
  width: min(100%, 88rem);
  margin-inline: auto;
}
.reveal__progress {
  width: 2px;
  height: min(64svh, 40rem);
  border-radius: 999px;
  background: rgba(15, 34, 25, 0.1);
  overflow: hidden;
}
.reveal__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--sky), var(--green), var(--gold));
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

.reveal__heading {
  margin: 0;
  max-width: 36ch;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, min(3.3vw, 4.9vh), 3.25rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.reveal__heading strong {
  font-weight: 600;
  color: var(--green);
}
.reveal__line { display: block; }
.reveal__line--spaced { margin-top: 0.7em; }

html.js .reveal .word { opacity: 0.14; }

/* ---------- Pillars ---------- */

.pillars {
  max-width: 88rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}
.pillars__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.pillars__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.75rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.pillars__lede {
  max-width: 34ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.pillars__grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.pillar {
  position: relative;
  padding: 1.75rem 1.5rem 2.25rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s;
}
.pillar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--green), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.pillar:hover::before { transform: scaleX(1); }

.pillar__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
}
.pillar h4 {
  margin: 2.25rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.pillar p {
  max-width: 30ch;
  margin: 0;
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { padding-left: 1.5rem; }
  .pillar:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .pillars__grid { grid-template-columns: repeat(4, 1fr); }
  .pillar { padding-top: 2rem; }
  .pillar:not(:last-child) { border-right: 1px solid var(--line); }
  .pillar:hover { background: rgba(0, 103, 71, 0.04); }
}

/* ---------- Numbers (curtain over the pillars) ---------- */

.numbers {
  position: relative;
  z-index: 11;
  margin-top: calc(-1 * clamp(20px, 3vw, 40px));
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(113, 197, 232, 0.16), transparent 70%),
    radial-gradient(50% 45% at 0% 100%, rgba(245, 168, 0, 0.1), transparent 70%),
    var(--green-900);
  color: #fff;
  border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0;
  box-shadow: 0 -30px 60px -24px rgba(0, 0, 0, 0.35);
}

.numbers__inner {
  max-width: 88rem;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}

.numbers__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.numbers__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.75rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.numbers__lede {
  max-width: 36ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(16px, 2vw, 24px);
  background: rgba(255, 255, 255, 0.12); /* shows through the 1px gaps as grid lines */
  overflow: hidden;
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: clamp(9rem, 16vw, 13rem);
  padding: clamp(1.1rem, 2vw, 1.75rem);
  background: var(--green-900);
  transition: background-color 0.4s;
}
.stat:hover { background: #0a3424; }

.stat__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}
.stat:not(.stat--feature) .stat__value { order: 2; }
.stat:not(.stat--feature) .stat__label {
  order: 1;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.stat:nth-child(2) .stat__value,
.stat:nth-child(5) .stat__value { color: var(--sky); }
.stat:nth-child(4) .stat__value,
.stat--wide .stat__value { color: var(--gold); }

/* Last card spans two columns so the grid ends flush. */
.stat--wide { grid-column: span 2; }

/* Featured stat: gradient card like HackUTD's interest tile */
.stat--feature {
  grid-column: span 2;
  min-height: clamp(16rem, 30vw, 26rem);
  background: linear-gradient(135deg, var(--sky) 0%, #2f9c8a 38%, var(--green) 70%, #0b4a31 100%);
  overflow: hidden;
}
.stat--feature:hover { background: linear-gradient(135deg, var(--sky) 0%, #2f9c8a 38%, var(--green) 70%, #0b4a31 100%); }
.stat__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.45), transparent 30%);
  transition: transform 1.2s var(--ease-out);
  pointer-events: none;
}
.stat--feature:hover .stat__glow { transform: translate(-6%, 6%); }
.stat__tag {
  position: relative;
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(3, 22, 13, 0.25);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.stat--feature .stat__value {
  position: relative;
  font-size: clamp(4rem, 11vw, 9.5rem);
  letter-spacing: -0.06em;
}
.stat--feature .stat__label {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

/* Cells stay put (they draw the grid lines); their contents rise in. */
html.js .numbers__grid[data-inview] {
  opacity: 1;
  transform: none;
}
html.js .numbers__grid .stat > * {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js .numbers__grid .stat > .stat__glow { translate: 0 0; }
html.js .numbers__grid.is-in .stat > * {
  opacity: 1;
  translate: 0 0;
}

@media (min-width: 1024px) {
  /* Feature card fills the left two columns; five stats fill the right three. */
  .numbers__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stat--feature { grid-row: span 2; }
  .stat:not(.stat--feature) { min-height: clamp(12rem, 17vw, 15rem); }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: clamp(1.1rem, 2.5vw, 1.75rem) 0;
  background: var(--green-900);
  color: #fff;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  width: max-content;
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.marquee__track i {
  font-style: normal;
  color: var(--gold);
  font-size: clamp(1rem, 2vw, 1.6rem);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Upcoming events: pelican journey ---------- */

.journey {
  position: relative;
  z-index: 12;
  margin-top: calc(-1 * clamp(20px, 3vw, 40px));
  background: var(--cream);
  color: var(--ink);
  border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0;
  box-shadow: 0 -30px 60px -24px rgba(0, 0, 0, 0.35);
}

/* Tall track; the stage pins while the pelican rides the route. */
.journey__track {
  position: relative;
  height: 380vh;
}
.journey__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(70% 55% at 100% 100%, rgba(113, 197, 232, 0.18), transparent 70%),
    radial-gradient(50% 40% at 0% 0%, rgba(245, 168, 0, 0.08), transparent 70%);
}

.journey__head {
  position: absolute;
  top: calc(var(--nav-h) + clamp(1rem, 4vh, 3rem));
  left: var(--gutter);
  z-index: 3;
  max-width: 34rem;
}
.journey__head .kicker { margin-bottom: 1rem; }
.journey__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 4.25rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.journey__lede {
  max-width: 32ch;
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

/* Side-by-side: heading centred on the left, route beside it. */
.journey__stage.is-side .journey__head {
  top: 50%;
  width: clamp(20rem, 28vw, 30rem);
  translate: 0 -50%;
}
.journey__stage.is-side .journey__title { font-size: clamp(2.4rem, 3.6vw, 4rem); }

.journey__viewport {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--route-left, 0px);
  overflow: hidden;
}
/* Pelican and wake fade out as they ride off toward the heading. */
.journey__stage.is-side .journey__viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 90px);
  mask-image: linear-gradient(90deg, transparent, #000 90px);
}

.journey__world {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  will-change: transform;
}
.journey__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.journey__waves path {
  fill: none;
  stroke: rgba(0, 103, 71, 0.08);
  stroke-width: 1.5;
  animation: journey-drift 9s linear infinite;
}
.journey__waves path:nth-child(2) { animation-duration: 13s; stroke: rgba(113, 197, 232, 0.22); }
.journey__waves path:nth-child(3) { animation-duration: 17s; }
@keyframes journey-drift {
  to { transform: translateX(var(--period, 240px)); }
}

.journey__route {
  fill: none;
  stroke: rgba(15, 34, 25, 0.28);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 0.1 10;
}
.journey__wake-glow { fill: rgba(113, 197, 232, 0.55); }
.journey__wake-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* WebGL water wake (js/water-trail.js): over the dotted route, under the stops and pelican. */
.journey__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.journey__pelican {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: clamp(120px, 12vw, 180px);
  height: auto;
  max-width: none;
  transform-origin: 62% 78%;
  filter: drop-shadow(0 14px 16px rgba(15, 34, 25, 0.28));
  will-change: transform;
}

/* ---------- Stops ---------- */

.stop {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 0;
  height: 0;
}
.stop__node {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(15, 34, 25, 0.3);
  transition: box-shadow 0.5s var(--ease-out), background-color 0.5s;
}
.stop__node::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--sky);
  opacity: 0;
}
.stop.is-active .stop__node {
  background: var(--green);
  box-shadow: inset 0 0 0 4px var(--cream), 0 0 0 2px var(--green);
}
.stop.is-active .stop__node::after { animation: node-ping 1.1s var(--ease-out); }
@keyframes node-ping {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(4.5); }
}

.stop__note {
  position: absolute;
  top: 22px;
  left: 0;
  display: grid;
  gap: 0.1rem;
  white-space: nowrap;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
  opacity: 0.45;
  transition: opacity 0.6s var(--ease-out);
}
.stop__note strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stop.is-active .stop__note { opacity: 1; }
.stop--end .stop__node { box-shadow: inset 0 0 0 2px rgba(15, 34, 25, 0.3), 0 0 0 6px rgba(113, 197, 232, 0.18); }

.stop__stem {
  position: absolute;
  left: -1px;
  width: 2px;
  height: 34px;
  background: linear-gradient(var(--green), var(--sky));
  transform: scaleY(0);
  transition: transform 0.5s var(--ease-out);
}
.stop--above .stop__stem { bottom: 10px; height: calc(var(--stem, 104px) - 10px); transform-origin: bottom; }
.stop--below .stop__stem { top: 10px; height: calc(var(--stem, 44px) - 10px); transform-origin: top; }
.stop.is-active .stop__stem { transform: scaleY(1); }

/* ---------- Ticket cards ---------- */

.ticket {
  --stub-w: 5.25rem;
  --notch: 10px;
  position: absolute;
  left: 0;
  display: grid;
  grid-template-columns: var(--stub-w) minmax(0, 1fr);
  width: min(25rem, calc(100vw - 2 * var(--gutter)));
  border-radius: 18px;
  background: var(--green-900);
  color: #fff;
  box-shadow: 0 30px 60px -28px rgba(6, 40, 26, 0.65), 0 2px 0 rgba(255, 255, 255, 0.06) inset;
  opacity: 0;
  translate: -50% 0;
  transform: translateY(var(--rise, 18px)) scale(0.94) rotate(var(--tilt, 0deg));
  transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out);
}
.stop--above .ticket { bottom: var(--stem, 104px); --rise: 24px; --tilt: -1.5deg; transform-origin: 50% 100%; }
.stop--below .ticket { top: var(--stem, 44px); --rise: -24px; --tilt: 1.5deg; transform-origin: 50% 0; }
/* Side layout: offset tickets away from the neighbouring stops instead of centring them. */
.journey__stage.is-side .stop--above .ticket { translate: calc(-100% + 3rem) 0; transform-origin: 100% 100%; }
.journey__stage.is-side .stop--below .ticket { translate: -3rem 0; transform-origin: 0 0; }
.stop.is-active .ticket {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(var(--tilt));
  transition-delay: 0.12s;
}
.ticket:hover { --tilt: 0deg; }

/* Notches punched where the stub tears off. */
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  left: calc(var(--stub-w) - var(--notch));
  width: calc(var(--notch) * 2);
  height: calc(var(--notch) * 2);
  border-radius: 50%;
  background: var(--cream);
}
.ticket::before { top: calc(-1 * var(--notch)); }
.ticket::after { bottom: calc(-1 * var(--notch)); }

.ticket__stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 1rem 0.5rem;
  border-radius: 18px 0 0 18px;
  border-right: 2px dashed rgba(6, 40, 26, 0.35);
  color: var(--green-950);
}
.ticket--gold .ticket__stub { background: var(--gold); }
.ticket--sky .ticket__stub { background: var(--sky); }

.ticket__month {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.ticket__year {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ticket__body {
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem 1.25rem 1.1rem;
}
.ticket__tag {
  justify-self: start;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.ticket__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.ticket__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
}
.ticket__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.3rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}
.ticket__place {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
}
.ticket__place svg { width: 15px; height: 15px; }
.ticket__cta {
  font-weight: 700;
  color: var(--gold);
  transition: color 0.3s;
}
.ticket--sky .ticket__cta { color: var(--sky); }
.ticket__cta span {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}
/* The whole ticket is clickable when its CTA links to an event page. */
.ticket__cta[href$=".html"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.ticket__cta:hover { color: #fff; }
.ticket__cta:hover span { transform: translateX(3px); }

@media (max-width: 719px) {
  .journey__lede { display: none; }
  .ticket { --stub-w: 4.5rem; }
  .ticket__month { font-size: 1.6rem; }
  .ticket__text { font-size: 0.84rem; }
}

/* ---------- Moments from past events ---------- */

.moments {
  position: relative;
  z-index: 13;
  margin-top: calc(-1 * clamp(20px, 3vw, 40px));
  background: var(--green-950);
  color: #fff;
  border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0;
  box-shadow: 0 -30px 60px -24px rgba(0, 0, 0, 0.4);
}

/* Tall track; the stage pins while the hero photo zooms out into the mosaic. */
.moments__track {
  position: relative;
  height: 300vh;
}
.moments__stage {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(0.75rem, 2vh, 1.25rem);
  height: 100vh;
  height: 100svh;
  padding: calc(var(--nav-h) + clamp(0.5rem, 2vh, 1.25rem)) var(--gutter) clamp(1rem, 3vh, 1.75rem);
  overflow: hidden;
  border-radius: inherit;
}

.moments__bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.moments__bar .kicker { margin-bottom: 0.5rem; }
.moments__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.moments__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--gold);
}
.moments__sub {
  max-width: 46ch;
  margin: 0.5rem 0 0;
  font-size: clamp(0.8rem, 1vw, 0.92rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}
.moments__hint {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Mosaic: the first photo sits in the middle (f); ten more surround it. */
.moments__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "a a b b c d"
    "e f f f f g"
    "e f f f f h"
    "i i j k k h";
  gap: clamp(6px, 0.8vw, 12px);
  min-height: 0;
}
/* Six photos: tall tiles flank the hero, one wide tile sits beneath it. */
.moments__grid[data-layout="6"] {
  grid-template-areas:
    "a f f f f c"
    "a f f f f c"
    "b f f f f d"
    "b e e e e d";
}

.moment {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0b2a1d;
  color: #fff;
  font: inherit;
  text-align: left;
  will-change: transform, opacity;
}
button.moment { cursor: zoom-in; }
.moment--hero { z-index: 3; }

.moment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.moment:hover img { transform: scale(1.05); }

/* Placeholder: a tinted halftone panel until a real photo is added. */
.moment__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: var(--tint, #0f4a33);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.4px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 60%);
  background-size: 8px 8px, 100% 100%;
  color: rgba(255, 255, 255, 0.45);
}
.moment__placeholder svg { width: clamp(22px, 2.4vw, 34px); height: auto; }

.moment__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 0.1rem;
  padding: 2.5rem 0.9rem 0.8rem;
  background: linear-gradient(to top, rgba(3, 22, 13, 0.85), transparent);
  font-size: 0.82rem;
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.4s var(--ease-out), translate 0.4s var(--ease-out);
}
.moment__caption strong {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.moment__caption span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.moment:hover .moment__caption,
.moment:focus-visible .moment__caption { opacity: 1; translate: 0 0; }
.moments__grid.is-settled .moment--hero .moment__caption { opacity: 1; translate: 0 0; }

/* Big title over the full-screen photo at the start; fades as the zoom-out begins. */
.moments__intro {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.25rem;
  padding: 0 var(--gutter);
  text-align: center;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 50%, rgba(3, 22, 13, 0.45), transparent 75%);
}
.moments__intro span {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 10rem);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.06em;
}
.moments__intro em {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.4vw, 3rem);
  color: var(--gold);
}

/* Phones (and reduced motion): no pinning or zoom; a two-column mosaic that fades in. */
.moments.is-static .moments__track { height: auto; }
.moments.is-static .moments__stage {
  position: relative;
  height: auto;
  padding-top: clamp(4rem, 12vw, 6rem);
  padding-bottom: clamp(4rem, 12vw, 6rem);
}
.moments.is-static .moments__intro { display: none; }
.moments.is-static .moments__hint { display: none; }
.moments.is-static .moments__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: clamp(7.5rem, 32vw, 11rem);
  grid-template-areas:
    "f f"
    "f f"
    "a b"
    "c d"
    "e g"
    "h i"
    "j k";
}
.moments.is-static .moments__grid[data-layout="6"] {
  grid-template-areas:
    "f f"
    "f f"
    "a b"
    "c d"
    "e e";
}
.moments.is-static .moment__caption { opacity: 1; translate: 0 0; padding-top: 1.75rem; }
html.js .moments.is-static .moment {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out);
}
html.js .moments.is-static .moment.is-in { opacity: 1; translate: 0 0; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3, 22, 13, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin: 0;
  min-width: 0;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  transform: scale(0.96);
  transition: transform 0.45s var(--ease-out);
}
.lightbox.is-open .lightbox__figure img { transform: none; }
.lightbox__figure figcaption {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.lightbox__figure figcaption strong { color: #fff; font-weight: 600; }
.lightbox__nav,
.lightbox__close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background-color 0.3s;
}
.lightbox__nav:hover,
.lightbox__close:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__nav svg,
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
}
@media (max-width: 640px) {
  .lightbox { grid-template-columns: minmax(0, 1fr); }
  .lightbox__nav {
    position: absolute;
    bottom: 1.25rem;
  }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
}

/* ---------- Where they are now ---------- */

.alumni {
  position: relative;
  z-index: 14;
  margin-top: calc(-1 * clamp(20px, 3vw, 40px));
  background:
    radial-gradient(55% 45% at 100% 0%, rgba(113, 197, 232, 0.12), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(245, 168, 0, 0.07), transparent 70%),
    var(--green-900);
  color: #fff;
  border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0;
  box-shadow: 0 -30px 60px -24px rgba(0, 0, 0, 0.35);
}

.alumni__inner {
  width: min(100%, 88rem);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(5rem, 10vw, 8rem);
}

.alumni__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.alumni__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.alumni__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--sky);
}
.alumni__lede {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
}

/* Two rows that drift in opposite directions; the loop itself comes from .logo-row (sponsors). */
.alumni__rows {
  display: grid;
  gap: clamp(0.25rem, 0.6vw, 0.5rem);
}
.alumni__item {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(170px, 15vw, 240px);
  aspect-ratio: 5 / 2;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.55);
  transition: background-color 0.4s, border-color 0.4s, color 0.4s;
}
.alumni__item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(113, 197, 232, 0.5);
  color: #fff;
}

.alumni__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.alumni__logo svg { width: 1.6em; height: 1.6em; flex: none; }
/* Real logos: knocked out to white so every brand sits at the same weight. */
.alumni__logo img {
  max-width: 100%;
  max-height: 2.4rem;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.4s;
}
.alumni__item:hover .alumni__logo img { opacity: 1; }
.alumni__logo .alumni__mark { width: 2.2rem; height: 2.2rem; flex: none; }
/* Linked tiles: the whole card is the click target. */
a.alumni__logo {
  width: 100%;
  height: 100%;
  justify-content: center;
  border-radius: 12px;
}
a.alumni__logo:focus-visible { outline: 2px solid rgba(113, 197, 232, 0.8); outline-offset: 4px; }

/* Rows fade in when the section arrives */
html.js .alumni__rows .logo-row {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
}
html.js .alumni__rows .logo-row + .logo-row { transition-delay: 0.12s; }
html.js .alumni__rows.is-in .logo-row {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Past sponsors ---------- */

.sponsors {
  --panel: #ece5d6;
  position: relative;
  z-index: 15;
  margin-top: calc(-1 * clamp(20px, 3vw, 40px));
  background: var(--panel);
  color: var(--ink);
  border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0;
  box-shadow: 0 -24px 50px -26px rgba(15, 34, 25, 0.35);
}

.sponsors__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 92rem);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(4rem, 8vw, 7rem);
}

.sponsors__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.sponsors__title span,
.sponsors__title em { display: block; }
.sponsors__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--green);
}
.sponsors__lede {
  max-width: 34ch;
  margin: 1.1rem 0 0;
  color: var(--ink-muted);
}

/* ---------- Pelican ride between groups ---------- */

.ride { display: none; }

.ride__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ride__route {
  fill: none;
  stroke: rgba(15, 34, 25, 0.3);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 0.1 9;
}
.ride__stop {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  color: rgba(15, 34, 25, 0.45);
  transition: color 0.4s;
}
.ride__node {
  flex: none;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: inset 0 0 0 1.5px rgba(15, 34, 25, 0.4);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.ride__label {
  display: grid;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.ride__label small {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}
.ride__stop:hover { color: var(--ink); }
.ride__stop.is-active { color: var(--green); }
.ride__stop.is-active .ride__node {
  background: var(--green);
  box-shadow: inset 0 0 0 3px var(--panel), 0 0 0 1.5px var(--green);
}

/* Kept small: it is a guide here, not the headline. */
.ride__pelican {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 76px;
  height: auto;
  max-width: none;
  pointer-events: none;
  transform-origin: 62% 78%;
  filter: drop-shadow(0 8px 8px rgba(15, 34, 25, 0.25));
  will-change: transform;
}

/* Active group readout under the river */
.sponsors__detail { display: none; }
.sponsors__detail-count {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}
.sponsors__detail-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.sponsors__detail-text {
  max-width: 38ch;
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.sponsors__detail.is-swapping > * { animation: detail-in 0.6s var(--ease-out) both; }
.sponsors__detail.is-swapping > :nth-child(2) { animation-delay: 0.05s; }
.sponsors__detail.is-swapping > :nth-child(3) { animation-delay: 0.1s; }
@keyframes detail-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.sponsors__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
}
.btn--dark {
  background: var(--green-900);
  color: #fff;
}
.btn--dark:hover {
  background: var(--green);
  box-shadow: 0 12px 26px -12px rgba(0, 103, 71, 0.7);
}
.sponsors__contact .footer__link { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }

/* ---------- Phone tab strip ---------- */

.sponsors__tabs {
  position: sticky;
  top: var(--nav-h);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 2rem calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.sponsors__tabs a {
  padding: 0.9rem 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.3s;
}
.sponsors__tabs a.is-active { color: var(--green); }
.sponsors__tabs-bar {
  position: absolute;
  left: var(--gutter);
  bottom: -1px;
  width: calc((100% - 2 * var(--gutter)) / 2);
  height: 2px;
  background: var(--green);
  transform: translateX(calc(var(--tab, 0) * 100%));
  transition: transform 0.5s var(--ease-out);
}

/* ---------- Groups and tiles ---------- */

.sgroup {
  padding-top: 2.5rem;
  scroll-margin-top: calc(var(--nav-h) + 3.5rem);
}
.sgroup + .sgroup { margin-top: clamp(2.5rem, 6vw, 5rem); }

.sgroup__head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.sgroup__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}
.sgroup__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}
/* Two auto-scrolling rows per group; each holds two identical tracks so the loop is seamless. */
.tiles {
  display: grid;
  gap: clamp(0.25rem, 0.6vw, 0.5rem);
}
.logo-row {
  --gap: clamp(0.6rem, 1.2vw, 1rem);
  display: flex;
  overflow: hidden;
  /* Vertical room so a lifted tile's shadow isn't clipped. */
  padding: 14px 0;
  margin: -14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-row__track {
  display: flex;
  flex: none;
  gap: var(--gap);
  margin: 0;
  padding: 0 var(--gap) 0 0;
  list-style: none;
  animation: logo-scroll var(--dur, 36s) linear infinite;
}
.logo-row--right .logo-row__track { animation-direction: reverse; }
.logo-row:hover .logo-row__track { animation-play-state: paused; }
@keyframes logo-scroll {
  to { transform: translateX(-100%); }
}

/* A tile is pressed into the panel at rest; on hover the card lifts out and tilts toward the cursor. */
.tile {
  --rx: 0deg;
  --ry: 0deg;
  flex: none;
  width: clamp(150px, 13vw, 210px);
  perspective: 700px;
}
.tile__card {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: var(--panel);
  color: rgba(15, 34, 25, 0.42);
  box-shadow:
    inset 2px 2px 5px rgba(15, 34, 25, 0.11),
    inset -2px -2px 5px rgba(255, 255, 255, 0.75),
    0 0 0 rgba(15, 34, 25, 0),
    0 0 0 rgba(15, 34, 25, 0);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  transition:
    transform 0.6s var(--ease-out),
    box-shadow 0.6s var(--ease-out),
    background-color 0.4s,
    color 0.4s,
    opacity 0.4s;
}
.tile__logo {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 0.75rem;
  text-align: center;
  transform: translateZ(0);
  transition: transform 0.6s var(--ease-out);
}
.tile__logo svg { width: clamp(26px, 2.6vw, 34px); height: auto; }
.tile__logo:has(img) { width: 100%; height: 100%; place-items: center; grid-template-columns: 100%; }
.tile__logo img {
  max-width: 72%;
  max-height: 46px;
  object-fit: contain;
}
/* Sized by js/sponsors.js from each logo's shape; the inline width does the work. */
.tile__logo img.is-sized { max-width: none; max-height: none; height: auto; }
/* Real logos sit on white so logos with a baked-in white background blend in;
   logos with a solid colour background set --tile-bg to that colour instead. */
.tile.tile--logo .tile__card,
.tile.tile--logo:hover .tile__card { background: var(--tile-bg, #fff); }
.tile--logo .tile__card[style] .tile__logo img { max-width: 84%; max-height: 62%; }
.tile__name {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .tile:hover .tile__card {
    background: #f6f2e9;
    box-shadow:
      inset 0 0 0 rgba(15, 34, 25, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 22px 34px -16px rgba(15, 34, 25, 0.38),
      0 4px 10px -4px rgba(15, 34, 25, 0.16);
    transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(26px);
    transition-duration: 0.35s;
  }
  .tile:hover .tile__logo { transform: translateZ(22px); }
  .logo-row:hover .tile:not(:hover) .tile__card { opacity: 0.6; }

  [data-sgroup="sponsors"] .tile:hover .tile__card { color: var(--green); }
  [data-sgroup="partners"] .tile:hover .tile__card { color: #c58800; }
}

/* Rows fade in when their group arrives */
html.js .tiles .logo-row {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
}
html.js .tiles .logo-row + .logo-row { transition-delay: 0.12s; }
html.js .tiles.is-in .logo-row {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Desktop: pinned pelican ride beside the tile walls ---------- */

@media (min-width: 1024px) {
  .sponsors__inner {
    grid-template-columns: minmax(20rem, 0.82fr) minmax(0, 1.18fr);
    column-gap: clamp(3rem, 6vw, 6rem);
  }

  .sponsors__aside {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(1rem, 3vh, 2rem);
    height: calc(100vh - var(--nav-h) - 4rem);
    height: calc(100svh - var(--nav-h) - 4rem);
    min-height: 34rem;
  }
  .ride {
    position: relative;
    display: block;
    height: clamp(15rem, 36vh, 22rem);
  }
  .sponsors__detail { display: block; }
  .sponsors__contact { margin-top: 0; }
  .sponsors__tabs { display: none; }

  .sponsors__groups { padding-top: 1rem; }
  .sgroup:first-child { padding-top: 0; }
  /* The group being read stays bright; the others recede. */
  html.js .sgroup { transition: opacity 0.6s var(--ease-out); }
  html.js .sgroup:not(.is-active) { opacity: 0.45; }
}

/* ---------- Surfing pelican overlay ---------- */

.surf {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
}
.surf__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* WebGL water ribbon (js/water-trail.js); sits under the pelican, over the SVG fallback. */
.surf__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.surf__pelican {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(130px, 14vw, 210px);
  height: auto;
  max-width: none;
  opacity: 0;
  /* The wave behind the board is where the trail attaches. */
  transform-origin: 62% 78%;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.3));
  will-change: transform, opacity;
}

.surf__splash {
  position: absolute;
  top: 0;
  left: 0;
}
.surf__splash i {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid var(--sky);
  border-radius: 50%;
  opacity: 0;
}
.surf__splash.is-splashing i { animation: splash 0.9s var(--ease-out) forwards; }
.surf__splash.is-splashing i:last-child { animation-delay: 0.14s; }
@keyframes splash {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(7); }
}

/* ---------- Reduced motion: no pinning, no flight, text fully shown ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; }
  .vision { margin-top: 0; }
  .reveal { height: auto; }
  .reveal__stage {
    position: relative;
    height: auto;
    min-height: 100svh;
  }
  .reveal__progress span { transform: none; }
  html.js .reveal .word { opacity: 1; }
  .surf { display: none; }
  .journey__track { height: auto; }
  .journey__stage {
    position: relative;
    height: 100svh;
    min-height: 720px;
  }
}

/* ---------- Custom cursor: a drop of liquid gold (js/home-cursor.js) ---------- */

html.tu-cursor-on,
html.tu-cursor-on * { cursor: none !important; }
html.tu-cursor-on input,
html.tu-cursor-on textarea { cursor: text !important; }
.tu-cursor { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.tu-cursor.is-on { opacity: 1; }
.tu-cursor.is-text .tu-cursor__drop { opacity: 0; }
.tu-cursor__drop { position: fixed; top: 0; left: 0; width: 0; height: 0; transition: opacity 0.2s; }
/* The drop is drawn centred on the point; its size changes between states,
   its stretch (rotate + scale) is set from JS every frame. */
.tu-cursor__body {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4 0, #ffc93a 28%, var(--gold) 55%, #c97f00 100%);
  box-shadow: 0 0 0 1px rgba(15, 34, 25, 0.25), 0 4px 14px rgba(245, 168, 0, 0.45);
  transition: left 0.45s var(--ease-out), top 0.45s var(--ease-out), width 0.45s var(--ease-out), height 0.45s var(--ease-out), background 0.3s, box-shadow 0.3s;
}
/* Over something clickable: a soft glassy lens of gold */
.tu-cursor.is-link .tu-cursor__body {
  left: -28px;
  top: -28px;
  width: 56px;
  height: 56px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 243, 196, 0.55), rgba(245, 168, 0, 0.22) 60%, rgba(245, 168, 0, 0.35));
  box-shadow: inset 0 0 0 1.5px rgba(245, 168, 0, 0.9), 0 6px 22px rgba(245, 168, 0, 0.25);
  backdrop-filter: blur(1.5px) saturate(1.4);
}
.tu-cursor.is-label .tu-cursor__body { left: -42px; top: -42px; width: 84px; height: 84px; }
.tu-cursor.is-down .tu-cursor__body { scale: 0.75; }
.tu-cursor__body { transition-property: left, top, width, height, background, box-shadow, scale; }
.tu-cursor__label {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  font: 600 0.85rem/1 var(--font-sans);
  white-space: nowrap;
  translate: -50% -50%;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.25s, scale 0.35s var(--ease-out);
}
.tu-cursor.is-label .tu-cursor__label { opacity: 1; scale: 1; }
.tu-splash {
  position: fixed;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(245, 168, 0, 0.6);
}
