/* --- Fonts --- */
@font-face {
  font-family: 'MedanosSectionCaps';
  src: url('fonts/MedanosSectionCaps-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- Variables --- */
:root {
  --bg: #0c0c0c;
  --bg-card: #141414;
  --text: #e8e6e3;
  --text-muted: #9a9590;
  --accent: #e63946;
  --accent-soft: #c1121f;
  --spotify: #1db954;
  --tidal: #000000;
  --ig: #e4405f;
  --yt: #ff0000;
  --apple: #fa243c;
  --tiktok: #000000;
  --border: #2a2a2a;
  --font-display: "Genos", "Bebas Neue", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-ep-title: "Permanent Marker", cursive;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  width: 100%;
}

/* --- Fixed site background video --- */
/* Sits behind everything at all times; main/footer are lifted into their
   own stacking context (position + z-index) so they paint above it even
   though it's position:fixed with no explicit higher z-index. */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}
.site-bg-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.site-bg-photo-bg,
.site-bg-photo-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  will-change: transform;
}
/* Two-layer parallax: the crowd silhouette (foreground) drifts a little
   further and faster than the stage behind it, so the photo reads as
   depth rather than a flat image — then both loop slowly, Ken-Burns
   style, so it keeps feeling like motion instead of a static frame. */
.site-bg-photo-bg {
  transform-origin: 50% 60%;
  animation: siteBgDrift 26s ease-in-out infinite alternate;
}
.site-bg-photo-fg {
  transform-origin: 50% 85%;
  animation: siteFgDrift 26s ease-in-out infinite alternate;
}
@keyframes siteBgDrift {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.07) translate(-1.4%, -1%); }
}
@keyframes siteFgDrift {
  0%   { transform: scale(1.03) translate(0, 0); }
  100% { transform: scale(1.14) translate(-2.6%, -1.8%); }
}
@media (prefers-reduced-motion: reduce) {
  .site-bg-photo-bg, .site-bg-photo-fg { animation: none; }
}
.site-bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(12, 12, 12, 0.45) 0%,
    rgba(12, 12, 12, 0.3) 30%,
    rgba(12, 12, 12, 0.5) 100%);
  pointer-events: none;
}
main { position: relative; z-index: 1; }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: 0.15em;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }
.nav-logo-3d {
  height: 100%;
  width: auto;
  aspect-ratio: 1200 / 610;
  display: block;
}
.nav-logo-3d[hidden] { display: none; }
.nav-logo-fallback {
  height: 100%;
  width: auto;
  display: block;
}
.nav-logo-fallback[hidden] { display: none; }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* Google Translate widget in header */
.translate-wrapper {
  display: flex;
  align-items: center;
}
.translate-wrapper .skiptranslate {
  font-size: 0.85rem;
}
.translate-wrapper select,
.translate-wrapper .goog-te-combo {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, rgba(230, 57, 70, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.4) 0%, rgba(12, 12, 12, 0.5) 50%, rgba(12, 12, 12, 0.6) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
  margin: 0 0 0.5rem;
  line-height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: min(43vw, 262px);
  gap: clamp(2px, 0.6vw, 6px);
  filter: drop-shadow(0 0 60px rgba(230, 57, 70, 0.2));
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sand-wind entrance: each letter drifts in from the left, blurred and
   scattered, while a grain texture (masked to that letter's own shape)
   fades out over it — like sand settling into the wordmark. Triggered
   once, left to right, when the visitor enters the site. */
.sand-letter {
  display: block;
  position: relative;
  height: 100%;
}
.sand-letter img {
  display: block;
  height: 100%;
  width: auto;
  opacity: 0;
  transform: translateX(-36px) translateY(8px) scale(0.92);
  filter: blur(9px);
  transition: opacity 1.15s ease-out, transform 1.2s ease-out, filter 1.2s ease-out;
  transition-delay: var(--d, 0s);
}
.sand-letter::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 90px 90px;
  -webkit-mask-image: var(--mask-src);
  mask-image: var(--mask-src);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mix-blend-mode: screen;
  opacity: 0.85;
  transition: opacity 1.2s ease-out;
  transition-delay: var(--d, 0s);
}
.hero-title.is-sanded .sand-letter img {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.hero-title.is-sanded .sand-letter::after { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .sand-letter img {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .sand-letter::after { opacity: 0; transition: none; }
}

.hero-tagline {
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-social {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.btn-icon svg {
  display: block;
}
.btn-spotify {
  background: var(--spotify);
  color: #0c0c0c;
}
.btn-spotify:hover { box-shadow: 0 6px 24px rgba(29, 185, 84, 0.4); }
.btn-tidal {
  background: var(--tidal);
  color: #ffffff;
  border: 1px solid var(--border);
}
.btn-tidal:hover { box-shadow: 0 6px 24px rgba(255, 255, 255, 0.15); }
.btn-ig {
  background: var(--ig);
  color: #ffffff;
  border: none;
}
.btn-ig:hover {
  box-shadow: 0 6px 24px rgba(228, 64, 95, 0.4);
}
.btn-yt {
  background: var(--yt);
  color: #ffffff;
  border: none;
}
.btn-yt:hover {
  box-shadow: 0 6px 24px rgba(255, 0, 0, 0.4);
}
.btn-apple {
  background: var(--apple);
  color: #ffffff;
}
.btn-apple:hover {
  box-shadow: 0 6px 24px rgba(250, 36, 60, 0.4);
}
.btn-tiktok {
  background: var(--tiktok);
  color: #ffffff;
  border: 1px solid var(--border);
}
.btn-tiktok:hover {
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.15);
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Sections --- */
.section {
  position: relative;
  padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.container {
  max-width: 700px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.25rem;
  letter-spacing: 0.15em;
  margin: 0 0 2rem;
  color: var(--text);
  text-transform: uppercase;
}

/* --- About --- */
.about-grid {
  display: grid;
  gap: 1.5rem;
}
.about-text {
  margin: 0;
  font-weight: 300;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.about-text-en { opacity: 0.9; }

/* --- Members --- */
.members-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.members-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.1rem;
}
.member-name {
  font-weight: 600;
  color: var(--text);
  min-width: 100px;
}
.role {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Section photo: one candid polaroid per section (About / Members /
   Merch), same size and same "slammed onto the table" reveal
   everywhere, so all three sections share one consistent visual beat.
   Sized generously so the photo detail actually reads on a phone. */
.section-row {
  display: flex;
  flex-direction: column;
}
.section-content { min-width: 0; }
.section-photo {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}
.polaroid-card {
  margin: 0;
  width: min(88vw, 420px);
}
.polaroid-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.55));
}

/* Desktop: side-by-side layout. About/Merch read content-then-photo;
   Members mirrors it (photo-then-content) via order, while every
   section keeps the same column proportions and photo size so the
   three feel like one consistent system. */
@media (min-width: 701px) {
  .about .container,
  .members .container,
  .merch .container {
    max-width: 1040px;
  }
  .section-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }
  .section-content { flex: 1 1 0; }
  .section-photo {
    flex: 1 1 0;
    justify-content: center;
    margin-top: 0;
  }
  .members .section-photo { order: -1; }
  .polaroid-card { width: min(90%, 460px); }
}

/* Slam-down reveal: starts high, slightly oversized and skewed, then
   drops hard and overshoots just past rest before settling — like a
   photo being slapped down onto a table. */
.polaroid-card {
  opacity: 0;
  transform: translateY(-70px) scale(1.14) rotate(-7deg);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.polaroid-card.is-slammed {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .polaroid-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Merch --- */
.merch-intro {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-weight: 300;
}
.btn-merch {
  background: var(--accent);
  color: #fff;
  border: none;
}
.btn-merch:hover { box-shadow: 0 6px 24px rgba(230, 57, 70, 0.4); }

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  margin: 0 0 1rem;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-social a:hover { color: var(--accent); }
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.footer-icon svg { display: block; }
.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.footer-credit:hover { color: var(--accent); }
.footer-credit strong { font-weight: 600; color: var(--text); }
.footer-credit:hover strong { color: var(--accent); }
.footer-credit-icon {
  height: 1.1rem;
  width: auto;
  display: block;
}

/* --- Mobile --- */
@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 220px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .hero-title { height: min(45vw, 212px); }
  .hero-tagline { letter-spacing: 0.15em; font-size: 0.95rem; }
  .section { padding: 3rem 1.5rem; }
  .section-title { font-size: 1.75rem; letter-spacing: 0.15em; }
  .members-list li { flex-direction: column; gap: 0.25rem; }
  .member-name { min-width: auto; }
  .role { min-width: auto; }
}

/* ==========================================================================
   Landing Gate — full-screen entry before the site
   ========================================================================== */

.gate-locked { overflow: hidden; height: 100dvh; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: #07080a;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
}
.gate.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-video-wrap { position: absolute; inset: 0; }
.gate-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: opacity 1.4s ease, filter 1.4s ease;
}

/* On narrow screens the same crop that reads as "the whole band" on
   desktop only fits one member at a time. Instead of a single static
   crop, slowly pan across each of them in turn — about 3s of hold per
   member — so the loop still reads as the full band on a phone. */
@media (max-width: 700px) {
  .gate-video {
    animation: gateVideoPanMobile 14s ease-in-out infinite;
  }
}
@keyframes gateVideoPanMobile {
  0%, 18%   { object-position: 15% 30%; }
  32%, 46%  { object-position: 38% 30%; }
  60%, 74%  { object-position: 58% 30%; }
  88%, 100% { object-position: 85% 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .gate-video { animation: none; }
}
/* Once the 3D logo lands, push the video back visually — it becomes the
   backdrop instead of the subject, so the logo's depth reads clearly. */
.gate.is-settled .gate-video {
  opacity: 0.62;
  filter: saturate(0.75) brightness(0.8) blur(1.5px);
}

/* Scrim: keeps the cosmic bokeh at the top breathing, darkens the lower
   third so the logo + button stay legible over any frame of the loop. */
.gate-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(7, 8, 10, 0.35) 0%,
      rgba(7, 8, 10, 0.25) 32%,
      rgba(7, 8, 10, 0.72) 62%,
      rgba(7, 8, 10, 0.94) 100%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(204, 132, 118, 0.16) 0%, transparent 60%);
  pointer-events: none;
}

.gate-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gate-content {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 2rem 1.5rem clamp(3.5rem, 9vh, 6rem);
  gap: clamp(1.75rem, 4vh, 2.75rem);
}

.gate-lockup { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }

/* 3D logo canvas: fixed aspect matching the model, drop-animated from JS via
   a translateY on the wrapper (transform, not layout, for smooth 60fps). */
.gate-logo-3d {
  width: min(78vw, 460px);
  max-width: 100%;
  aspect-ratio: 1200 / 610;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.6));
  will-change: transform;
}
.gate-logo-3d[hidden] { display: none; }

/* Static PNG fallback: shown instantly for no-WebGL / reduced-motion */
.gate-logo {
  width: min(78vw, 460px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 40px rgba(0, 0, 0, 0.55));
}
.gate-logo-fallback[hidden] { display: none; }

.gate-tagline {
  margin: 0;
  font-family: 'Genos', var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: rgba(232, 230, 227, 0.75);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gate-tagline.is-visible { opacity: 1; transform: translateY(0); }

/* Ticket-stub button: solid fill, clipped corners, VHS glitch on hover */
.gate-btn {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transform: rotate(-1deg);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.gate-btn.is-visible { opacity: 1; }
.gate-btn[hidden] { display: none; }

.gate-btn-face,
.gate-btn-glitch {
  display: block;
  padding: 0.65rem 1.4rem;
  font-family: 'Genos', var(--font-display);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.7vw, 1.05rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.gate-btn-face {
  background: #e8e6e3;
  color: #0c0c0c;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}
.gate-btn-glitch {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: #e8e6e3;
  color: #0c0c0c;
}
.gate-btn:hover .gate-btn-face,
.gate-btn:focus-visible .gate-btn-face {
  background: var(--accent, #e63946);
  color: #e8e6e3;
  transform: translateY(-2px);
}
.gate-btn:hover .gate-btn-glitch,
.gate-btn:focus-visible .gate-btn-glitch {
  animation: gateGlitch 0.6s steps(2, end) infinite;
}
.gate-btn:focus-visible { outline: 2px solid #cc8476; outline-offset: 6px; }

@keyframes gateGlitch {
  0%   { opacity: 0; transform: translate(0, 0); }
  10%  { opacity: 0.7; transform: translate(-2px, 1px); color: #e63946; clip-path: inset(0 0 60% 0); }
  30%  { opacity: 0.6; transform: translate(2px, -1px); color: #83a4c3; clip-path: inset(40% 0 0 0); }
  55%  { opacity: 0.5; transform: translate(-1px, 0); color: #cc8476; clip-path: inset(20% 0 30% 0); }
  100% { opacity: 0; transform: translate(0, 0); }
}

@media (min-width: 640px) {
  .gate-content { justify-content: center; padding-bottom: clamp(2rem, 6vh, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .gate-btn:hover .gate-btn-glitch,
  .gate-btn:focus-visible .gate-btn-glitch { animation: none; opacity: 0; }
  .gate { transition: none; }
}

/* ==========================================================================
   Motion layer (js/motion.js). Every hidden "before" state is scoped to
   html.motion-ready, which the script only sets when motion is allowed,
   so with JS off or reduced motion the page renders fully static.
   ========================================================================== */

/* Sand wind canvas: sits above the photo + scrim, below all content */
.sand-wind {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Scroll progress, drawn along the bottom edge of the header */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #cc8476, var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Nav: indicator slides under the active section's link */
@media (min-width: 701px) { .nav-links { position: relative; } }
.nav-links a { transition: color 0.3s ease; }
.nav-links a.is-active { color: var(--text); }
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: 0;
  background: #cc8476;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), width 0.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
  pointer-events: none;
}
.nav-indicator.is-on { opacity: 1; }
@media (max-width: 700px) { .nav-indicator { display: none; } }

/* Hero: tagline tracks in, then the platform icons pop in one by one,
   both cued off the sand logo finishing (.is-sanded) */
.hero { --tag-ls: 0.25em; }
@media (max-width: 700px) { .hero { --tag-ls: 0.15em; } }
.motion-ready .hero-tagline { opacity: 0; }
.motion-ready .hero-title.is-sanded ~ .hero-tagline {
  animation: tagTrackIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both;
}
@keyframes tagTrackIn {
  from { opacity: 0; letter-spacing: 0.9em; filter: blur(6px); }
  to   { opacity: 1; letter-spacing: var(--tag-ls); filter: blur(0); }
}
.motion-ready .hero-links .btn-social { opacity: 0; }
.motion-ready .hero-title.is-sanded ~ .hero-links .btn-social {
  animation: iconPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(1.7s + var(--n, 0) * 0.09s);
}
.hero-links .btn-social:nth-child(1) { --n: 0; }
.hero-links .btn-social:nth-child(2) { --n: 1; }
.hero-links .btn-social:nth-child(3) { --n: 2; }
.hero-links .btn-social:nth-child(4) { --n: 3; }
.hero-links .btn-social:nth-child(5) { --n: 4; }
.hero-links .btn-social:nth-child(6) { --n: 5; }
@keyframes iconPop {
  from { opacity: 0; scale: 0.3; translate: 0 22px; }
  to   { opacity: 1; scale: 1; translate: 0 0; }
}
.btn-social .btn-icon { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn-social:hover .btn-icon { transform: scale(1.18) rotate(-8deg); }

/* Section titles: letters rise out of a clipped baseline, then a short
   terracotta rule draws in underneath */
.section-title {
  background: linear-gradient(#cc8476, #cc8476) no-repeat 0 100% / 0 2px;
  padding-bottom: 0.35em;
}
.title-char { display: inline-block; }
.motion-ready .section-title { overflow: hidden; }
.motion-ready .section-title .title-char {
  transform: translateY(110%);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 0.045s);
}
.motion-ready .section-title.is-in .title-char { transform: translateY(0); }
.motion-ready .section-title.is-in {
  background-size: 3.5rem 2px;
  transition: background-size 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}
.section-title:not(.reveal) { background-size: 3.5rem 2px; }

/* Body copy and lists: rise out of a soft blur, lists staggered */
.motion-ready .reveal:not(.section-title) {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
  transition-delay: calc(0.15s + var(--ri, 0) * 0.08s);
}
.motion-ready .members-list li.reveal { transform: translateX(32px); }
.motion-ready .reveal.is-in:not(.section-title) {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Polaroids: 3D tilt toward the cursor (desktop), springy return */
.polaroid-card { perspective: 900px; }
.polaroid-card img {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.polaroid-card.is-tilting img { transition: transform 0.12s ease-out; }

/* Merch CTA: periodic light sweep */
.btn-merch { position: relative; overflow: hidden; }
.btn-merch::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  animation: merchShine 3.8s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes merchShine {
  0%, 70% { left: -60%; }
  100%    { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-merch::after { animation: none; display: none; }
  .btn-social:hover .btn-icon { transform: none; }
}
