:root {
  --night: #15130f;
  --night-2: #1d1a16;
  --line: rgba(239, 232, 221, 0.14);
  --cream: #efe8dd;
  --cream-dim: rgba(239, 232, 221, 0.68);
  --accent: #ff3ea5;
  --magenta: #ff2fa8;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--night); }

/* subtle grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 50;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}

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

/* ---------- type ---------- */
.eyebrow {
  font: 600 13px/1.2 var(--body);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin: 0;
}
h2.display { font-size: clamp(30px, 5vw, 52px); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--cream-dim); max-width: 40ch; }

/* per-character reveal: random order within each word */
.reveal .ch { display: inline-block; opacity: 0; transform: translateY(0.18em); filter: blur(6px); }
.reveal.in .ch {
  opacity: 1; transform: none; filter: none;
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.9s ease;
  transition-delay: var(--d, 0s);
}
.reveal .word { display: inline-block; white-space: nowrap; }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.fade-up.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal .ch, .fade-up { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled { background: rgba(21, 19, 15, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand {
  font: 800 15px/1 var(--display); font-stretch: 72%;
  text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
}
.nav-links { display: flex; gap: clamp(14px, 3vw, 28px); }
.nav-links a {
  font: 600 12px/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--cream-dim); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--cream); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font: 700 13px/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid var(--accent); color: var(--accent);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent); color: var(--night); transform: translateY(-1px); }
.btn.solid { background: var(--accent); color: var(--night); }
.btn.solid:hover { background: var(--cream); border-color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  display: inline-block; padding: 6px 14px; border: 1.5px solid var(--accent); border-radius: 999px;
  font: 700 12px/1 var(--body); letter-spacing: 0.24em; color: var(--accent); text-transform: uppercase;
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px 0 clamp(48px, 9vh, 96px);
  overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -4% 0; z-index: -2;
  background: center 60% / cover no-repeat;
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(21,19,15,0.55) 0%, rgba(21,19,15,0) 30%, rgba(21,19,15,0.2) 55%, var(--night) 100%);
}
.hero h1 { font-size: clamp(72px, 17vw, 230px); }
.hero .eyebrow { margin-bottom: 22px; }
.hero .sub { margin: 26px 0 0; font: 600 clamp(12px, 1.5vw, 15px)/1.5 var(--body); letter-spacing: 0.28em; text-transform: uppercase; color: var(--cream-dim); }

/* soft pink glow, like the light totems on the dancefloor */
.glow { position: absolute; z-index: -1; width: 40vw; height: 40vw; border-radius: 50%; background: var(--magenta); filter: blur(120px); opacity: 0.16; pointer-events: none; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 12vw, 140px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 64px); }

/* ---------- next event card (home) ---------- */
.event-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--night-2); text-decoration: none;
  transition: border-color 0.3s, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.event-card:hover { border-color: rgba(255, 62, 165, 0.6); transform: translateY(-3px); }
.event-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.event-card .body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.event-card .date { font-size: clamp(40px, 6vw, 72px); }
.event-card .meta { margin: 0; color: var(--cream-dim); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; line-height: 1.9; }
.event-card .meta strong { color: var(--accent); font-weight: 600; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about p { margin: 0 0 1em; color: var(--cream-dim); }

/* ---------- event page ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 26px 22px 26px 0; }
.fact + .fact { padding-left: 22px; border-left: 1px solid var(--line); }
.fact .k { font: 600 11px/1 var(--body); letter-spacing: 0.26em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 12px; }
.fact .v { font: 800 clamp(17px, 2vw, 22px)/1.2 var(--display); font-stretch: 72%; text-transform: uppercase; }

.lineup { list-style: none; margin: 0; padding: 0; }
.lineup li {
  display: grid; grid-template-columns: 110px 1fr; align-items: baseline; gap: 20px;
  padding: clamp(18px, 2.6vw, 28px) 0; border-bottom: 1px solid var(--line);
}
.lineup li:first-child { border-top: 1px solid var(--line); }
.lineup .t { font: 600 15px/1 var(--body); letter-spacing: 0.16em; color: var(--accent); }
.lineup .n { font: 800 clamp(28px, 5.4vw, 60px)/1 var(--display); font-stretch: 72%; text-transform: uppercase; transition: color 0.25s, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lineup li:hover .n { color: var(--accent); transform: translateX(8px); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
.bring { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bring li { padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 15px; }
.prose p { margin: 0 0 1.1em; color: var(--cream-dim); }
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.note { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--night-2); }
.note h3 { margin: 0 0 10px; font: 800 15px/1.2 var(--display); font-stretch: 72%; text-transform: uppercase; letter-spacing: 0.02em; }
.note p { margin: 0; color: var(--cream-dim); font-size: 15px; }
.note.warn { border-color: rgba(255, 62, 165, 0.45); }
.note.warn h3 { color: var(--accent); }

.map-wrap { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--night-2); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.6) contrast(0.9); }

.flyer { border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); width: 100%; max-width: 520px; }

/* ---------- footer ---------- */
footer { position: relative; border-top: 1px solid var(--line); padding: clamp(56px, 9vw, 100px) 0 40px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: end; }
.foot .big { font-size: clamp(36px, 7vw, 84px); }
.foot-links { display: grid; gap: 10px; text-align: right; }
.foot-links a { text-decoration: none; color: var(--cream-dim); font-weight: 500; }
.foot-links a:hover { color: var(--accent); }
.fine { margin-top: 48px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(239,232,221,0.4); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .event-card, .about, .two-col { grid-template-columns: minmax(0, 1fr); }
  .event-card img { aspect-ratio: 4 / 3; object-position: center 40%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .lineup li { grid-template-columns: 76px 1fr; gap: 12px; }
  .foot-links { text-align: left; }
  .map-wrap { aspect-ratio: 4 / 5; }
}
@media (max-width: 480px) {
  .nav .brand span { display: none; }
}

/* ---------- textures ---------- */
.tex { isolation: isolate; overflow: hidden; }
.tex::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--tex) var(--pos, center) / cover no-repeat;
  opacity: var(--o, 0.5);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.tex-topo { --tex: url(/img/tex-topo.jpg); --o: 0.55; }
.tex-wave { --tex: url(/img/tex-wave.jpg); --o: 0.45; --pos: right center; }
.tex-sand { --tex: url(/img/tex-sand.jpg); --o: 0.9; --pos: center bottom; }
footer.tex::before { -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%); }
@media (max-width: 820px) { .tex-wave { --o: 0.4; } }
@media (max-width: 480px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 10.5px; letter-spacing: 0.16em; white-space: nowrap; }
}

/* ---------- short text hero (rental, guidelines) ---------- */
.hero.short { min-height: 62svh; }
.hero.short h1 { font-size: clamp(56px, 12vw, 150px); }
.hero.short .lead { margin: 24px 0 0; }

/* ---------- price ---------- */
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-size: clamp(72px, 13vw, 160px); color: var(--accent); }
.price .cur { font: 800 clamp(28px, 4vw, 48px)/1 var(--display); font-stretch: 72%; color: var(--accent); align-self: flex-start; margin-top: 0.4em; }
.included { list-style: none; margin: 0; padding: 0; }
.included li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--cream-dim); }
.included li:first-child { border-top: 1px solid var(--line); }
.note ul { margin: 12px 0 0; padding: 0 0 0 18px; color: var(--cream-dim); font-size: 15px; }
.note ul li + li { margin-top: 4px; }
.note .sub { margin: -4px 0 0; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

/* ---------- numbered rows (guidelines) ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); }
.rows li:first-child { border-top: 1px solid var(--line); }
.rows .num { font: 600 15px/1.4 var(--body); letter-spacing: 0.16em; color: var(--accent); }
.rows h3 { margin: 0 0 10px; font: 800 clamp(26px, 4vw, 44px)/1 var(--display); font-stretch: 72%; text-transform: uppercase; }
.rows p { margin: 0; color: var(--cream-dim); max-width: 60ch; }
.bring.no li { color: var(--cream-dim); text-decoration: line-through; text-decoration-color: rgba(255, 62, 165, 0.6); }
.bring.yes li { border-color: rgba(255, 62, 165, 0.5); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--cream-dim); max-width: 70ch; }

@media (max-width: 820px) {
  .rows li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
/* 2x Gigapixel textures: AVIF where supported, smaller 1x JPEGs on phones */
@supports (background-image: image-set(url("x.avif") type("image/avif"))) {
  .tex-topo { --tex: image-set(url(/img/tex-topo.avif) type("image/avif"), url(/img/tex-topo.jpg) type("image/jpeg")); }
  .tex-wave { --tex: image-set(url(/img/tex-wave.avif) type("image/avif"), url(/img/tex-wave.jpg) type("image/jpeg")); }
  .tex-sand { --tex: image-set(url(/img/tex-sand.avif) type("image/avif"), url(/img/tex-sand.jpg) type("image/jpeg")); }
}
@media (max-width: 820px) {
  .tex-topo { --tex: url(/img/tex-topo-sm.jpg); }
  .tex-wave { --tex: url(/img/tex-wave-sm.jpg); }
  .tex-sand { --tex: url(/img/tex-sand-sm.jpg); }
}

/* ---------- full moon page: layered moonrise hero ---------- */
.hero.moonrise { background: #0d1520; }
.hero.moonrise::before {
  z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,21,32,0.35) 0%, rgba(13,21,32,0) 22%, rgba(21,19,15,0) 52%, rgba(21,19,15,0.55) 78%, var(--night) 100%);
}
.hero.moonrise .wrap { position: relative; z-index: 2; }
.hero.moonrise { --py: 72%; }
.hero.moonrise h1 { font-size: clamp(60px, 9.5vw, 148px); text-shadow: 0 2px 30px rgba(10, 14, 22, 0.35); }
.hero.moonrise .layer {
  position: absolute; left: 0; right: 0; top: 0; height: 112%;
  background: var(--src) 50% var(--py, 64%) / cover no-repeat;
  will-change: transform;
}
.hero.moonrise .sky   { --src: url(/img/rr/sky.webp); z-index: -3; }
.hero.moonrise .moon  { z-index: -2; }
.hero.moonrise .rocks { --src: url(/img/rr/rocks.webp); z-index: -1; }
.hero.moonrise .moon .rise {
  position: absolute; inset: 0;
  background: url(/img/rr/moon.webp) 50% var(--py, 64%) / cover no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 70px);
          mask-image: linear-gradient(transparent, #000 70px);
  animation: moonrise 7s cubic-bezier(0.37, 0, 0.18, 1) 0.3s both, moonglow 7s ease-in-out 7.4s infinite;
}
@keyframes moonrise {
  from { translate: 0 var(--rise, 24%); filter: brightness(0.7); }
  to   { translate: 0 0;   filter: brightness(1); }
}
@keyframes moonglow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0 rgba(255, 228, 196, 0)); }
  50%      { filter: brightness(1.06) drop-shadow(0 0 28px rgba(255, 228, 196, 0.22)); }
}
@media (max-width: 820px) {
  .hero.moonrise .sky        { --src: url(/img/rr/sky-sm.webp); }
  .hero.moonrise .rocks      { --src: url(/img/rr/rocks-sm.webp); }
  .hero.moonrise .moon .rise { background-image: url(/img/rr/moon-sm.webp); }
}

.stars { position: absolute; left: 0; right: 0; top: 0; height: 42%; }
.stars i {
  position: absolute; border-radius: 50%; background: #fff6e8;
  opacity: var(--to); animation: twinkle var(--tw) ease-in-out var(--td) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: var(--to); transform: scale(1); } 50% { opacity: 0.08; transform: scale(0.6); } }

/* ---------- moon icons ---------- */
.moon-icon { display: inline-block; width: 30px; height: 30px; flex: none; }
.moon-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.moon-icon.inline { width: 0.9em; height: 0.9em; margin-right: 0.4em; vertical-align: -0.08em; }
.lineup li { grid-template-columns: 110px 1fr auto; }
.lineup li .moon-icon { width: clamp(22px, 3vw, 34px); height: clamp(22px, 3vw, 34px); opacity: 0.85; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s; }
.lineup li:hover .moon-icon { transform: rotate(-18deg) scale(1.15); filter: drop-shadow(0 0 10px rgba(255, 62, 165, 0.55)); }
.lineup li:last-child .moon-icon svg { filter: drop-shadow(0 0 8px rgba(255, 228, 196, 0.45)); }

/* scroll moon: waxes from crescent to full as you read down the page */
.moon-tracker {
  position: fixed; right: clamp(14px, 2.4vw, 28px); top: 50%; z-index: 45;
  width: 40px; height: 40px;
  opacity: 0; translate: 24px -50%; scale: 0.6;
  transition: opacity 0.5s ease, translate 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), scale 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.moon-tracker.on { opacity: 1; translate: 0 -50%; scale: 1; }
.moon-tracker svg { width: 100%; height: 100%; display: block; transition: filter 0.6s ease; }
.moon-tracker.full svg { filter: drop-shadow(0 0 10px rgba(255, 228, 196, 0.6)) drop-shadow(0 0 22px rgba(255, 62, 165, 0.45)); animation: fullpulse 2.4s ease-in-out infinite; }
@keyframes fullpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.moon-label {
  position: absolute; right: calc(100% + 12px); top: 50%; translate: 8px -50%;
  white-space: nowrap; font: 600 10.5px/1 var(--body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent);
  opacity: 0; transition: opacity 0.4s ease, translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.moon-tracker.show-label .moon-label { opacity: 1; translate: 0 -50%; }
@media (max-width: 820px) {
  .moon-tracker { top: auto; bottom: 18px; right: 16px; width: 34px; height: 34px; translate: 0 24px; }
  .moon-tracker.on { translate: 0 0; }
  .moon-label { translate: 8px -50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero.moonrise .moon .rise, .stars i, .moon-tracker.full svg { animation: none !important; }
}

/* portrait phones: lift the moon above the title */
@media (max-aspect-ratio: 4/5) {
  .hero.moonrise { --rise: 14%; }
  .hero.moonrise .layer, .hero.moonrise .moon .rise { background-size: auto 140%; background-position: 44% 100%; }
}
