/* Zenthryx'26 — maroon & cream from the AMCC'26 poster, gold from the banner stripe,
   tabebuia pink from the school's flowering trees. Dark-first, single look. */
:root {
  --ink: #170203;
  --maroon-900: #2a0506;
  --maroon-800: #3d0709;
  --maroon: #5c0d10;
  --maroon-600: #7a1418;
  --cream: #f3e6cf;
  --cream-2: rgba(243, 230, 207, 0.72);
  --cream-3: rgba(243, 230, 207, 0.45);
  --line: rgba(243, 230, 207, 0.16);
  --gold: #d4a23a;
  --gold-2: #f0c46a;
  --pink: #f2b5c6;
  --paper: #fbf5e8;

  --f-display: "Josefin Sans", "Century Gothic", "Trebuchet MS", sans-serif;
  --f-body: "Figtree", "Noto Sans Sinhala", system-ui, sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(18px, 5vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) { html { overflow-x: clip; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(122, 20, 24, 0.55), transparent 70%),
    radial-gradient(ellipse 70% 60% at 10% 90%, rgba(92, 13, 16, 0.6), transparent 70%),
    url("../assets/grunge.jpg") center / cover;
  opacity: 0.85;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); position: relative; }

/* ───────── layers ───────── */
#webgl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--pink)); transform: scaleX(0); transform-origin: 0 50%; }

/* ───────── loader ───────── */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.loader-panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--maroon-900); }
.loader-panel.top { top: 0; border-bottom: 1px solid rgba(212, 162, 58, 0.25); }
.loader-panel.bot { bottom: 0; }
.loader-center { position: relative; display: grid; justify-items: center; gap: 22px; }
.loader-crest { width: 120px; animation: breathe 1.6s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5)); }
@keyframes breathe { 50% { transform: scale(1.06) rotate(-2deg); } }
.loader-meta { display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--f-display); }
#loader-num { font-size: 44px; font-weight: 300; font-variant-numeric: tabular-nums; }
#loader-num::after { content: "%"; font-size: 18px; margin-left: 2px; color: var(--gold); }
.loader-meta span:last-child { font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--cream-3); }

/* ───────── cursor ───────── */
#cursor { position: fixed; inset: 0; pointer-events: none; z-index: 120; }
.c-dot, .c-ring { position: fixed; top: 0; left: 0; border-radius: 50%; translate: -50% -50%; }
.c-dot { width: 6px; height: 6px; background: var(--cream); }
.c-ring {
  width: 38px; height: 38px; border: 1px solid rgba(243, 230, 207, 0.6);
  display: grid; place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s, border-color 0.35s;
}
#cursor.hover .c-ring { width: 62px; height: 62px; border-color: var(--gold); background: rgba(212, 162, 58, 0.12); }
#cursor.label .c-ring { width: 86px; height: 86px; background: var(--cream); border-color: var(--cream); }
.c-label { font: 700 11px var(--f-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--maroon); opacity: 0; transition: opacity 0.2s; }
#cursor.label .c-label { opacity: 1; }
/* custom cursor only on wide screens with a real mouse */
@media (max-width: 900px), (hover: none), (pointer: coarse) { #cursor { display: none !important; } }
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  html.webgl body, html.webgl a, html.webgl button { cursor: none; }
  html.webgl input, html.webgl textarea { cursor: text; }
  /* popups sit in the browser's top layer, above the custom cursor: use the real pointer there */
  html.webgl dialog, html.webgl dialog * { cursor: auto; }
  html.webgl dialog :is(a, button, label, summary, .mem) { cursor: pointer; }
  html.webgl dialog :is(input, textarea) { cursor: text; }
  body:has(dialog[open]) #cursor { opacity: 0; }
}

/* ───────── buttons ───────── */
.btn {
  --bg: transparent; --fg: var(--cream); --bd: rgba(243, 230, 207, 0.55);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); overflow: hidden; isolation: isolate;
  font: 700 13px/1 var(--f-display); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: color 0.4s var(--ease), border-color 0.4s;
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: var(--gold); transform: translateY(102%); transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { color: var(--ink); border-color: var(--gold); }
.btn-cream { --bg: var(--cream); --fg: var(--maroon); --bd: var(--cream); }
.btn-ghost { --bg: rgba(243, 230, 207, 0.04); }
.btn-sm { padding: 11px 18px; font-size: 11px; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.loading span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { background: none; border: 0; padding: 0; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ───────── nav ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  transition: background 0.4s, transform 0.5s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(23, 2, 3, 0.72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav.hide { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-crest { width: 38px; height: 38px; object-fit: contain; transition: transform 0.6s var(--ease); }
.brand:hover .brand-crest { transform: rotate(-12deg) scale(1.08); }
.brand-word { height: 24px; width: auto; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav-links a { position: relative; text-decoration: none; font: 600 12px var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-2); padding-block: 6px; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.auth-btn {
  display: inline-flex; align-items: center; gap: 8px; max-width: 180px;
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font: 600 12px var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.auth-btn:hover { border-color: var(--cream-3); }
.auth-btn .avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-weight: 700; letter-spacing: 0; }
.auth-btn .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0.02em; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; position: relative; cursor: pointer; }
.menu-btn i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--cream); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn i:first-child { top: 17px; }
.menu-btn i:last-child { top: 25px; }
.menu-open .menu-btn i:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { top: 21px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 45; display: none; flex-direction: column; justify-content: center; gap: 6px;
  padding: 100px var(--gutter) 40px; background: rgba(42, 5, 6, 0.97);
}
.menu a { font: 600 clamp(34px, 10vw, 56px)/1.15 var(--f-display); text-decoration: none; text-transform: uppercase; letter-spacing: 0.02em; overflow: hidden; }
.menu-open .menu { display: flex; }

/* ───────── hero ───────── */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: 120px var(--gutter) 120px; overflow: hidden;
}
.hero-bg, .hero-shade { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); filter: saturate(0.9); }
.hero-shade {
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(92, 13, 16, 0.35), rgba(42, 5, 6, 0.85) 75%),
    linear-gradient(to bottom, rgba(23, 2, 3, 0.55), rgba(92, 13, 16, 0.25) 40%, var(--ink) 100%);
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-kicker { display: flex; gap: 14px; margin: 0 0 18px; font: 600 11px var(--f-display); letter-spacing: 0.4em; text-transform: uppercase; color: var(--cream-2); }
.hero-kicker span + span::before { content: "·"; margin-right: 14px; color: var(--gold); }
.crest-anchor { width: clamp(120px, 15vw, 190px); aspect-ratio: 1008 / 1200; margin-bottom: 18px; }
.crest-fallback { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55)); }
html.webgl:not(.no-crest3d) .crest-fallback { visibility: hidden; }
.wordmark { position: relative; margin: 0; line-height: 0; width: min(90vw, 900px); color: var(--cream); filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45)); }
.wordmark svg { width: 100%; height: auto; overflow: visible; }
.wordmark .wm-l { transform-box: fill-box; transform-origin: 50% 100%; }
.wordmark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 220, 150, 0.95) 50%, transparent 60%) 0 0 / 260% 100% no-repeat;
  -webkit-mask: url("../assets/wordmark-cream.svg") center / 100% 100% no-repeat;
  mask: url("../assets/wordmark-cream.svg") center / 100% 100% no-repeat;
}
.wordmark.shine::after { opacity: 1; animation: shine 5.5s 0.3s ease-in-out infinite; }
@keyframes shine { 0% { background-position: 130% 0; } 45%, 100% { background-position: -40% 0; } }
.tagline { display: flex; align-items: center; gap: 18px; width: min(92vw, 860px); margin: 22px 0 0; }
.tagline i { flex: 1; height: 1px; background: var(--cream); opacity: 0.8; transform-origin: center; }
.tagline span { font: 600 clamp(10px, 1.5vw, 15px) var(--f-display); letter-spacing: 0.2em; white-space: nowrap; }
.hero-school { margin: 36px 0 0; font: 400 clamp(16px, 2.6vw, 28px) var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; }
.hero-batch { margin: 6px 0 0; font: italic 500 clamp(18px, 2.4vw, 24px) var(--f-serif); color: var(--pink); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.hero-meta {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 34px; margin: 0;
  display: flex; justify-content: space-between; font: 600 11px var(--f-display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-2);
}
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 26px; translate: -50% 0; display: grid; justify-items: center; gap: 8px; font: 600 10px var(--f-display); letter-spacing: 0.35em; text-transform: uppercase; color: var(--cream-3); }
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--cream), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ───────── marquee ───────── */
.marquee { position: relative; z-index: 2; padding-block: 34px; transform-origin: center; overflow-x: hidden; overflow-x: clip; }
.marquee-row { overflow: hidden; background: var(--cream); color: var(--maroon); transform: rotate(-2deg); margin-inline: -4vw; padding-block: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.marquee-row.alt { background: var(--gold); color: var(--ink); transform: rotate(1.5deg); margin-top: -10px; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 34px; padding-right: 34px; font: 700 clamp(22px, 3.4vw, 44px)/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.marquee-row.alt .marquee-track { font-size: clamp(16px, 2.2vw, 26px); letter-spacing: 0.08em; }
.marquee-track b { font-size: 0.6em; color: var(--maroon-600); }

/* ───────── sections ───────── */
.section { position: relative; z-index: 2; padding-block: clamp(100px, 14vw, 190px); overflow-x: clip; }
main, .footer { max-width: 100vw; overflow-x: clip; }
.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { margin: 0 0 16px; font: 700 12px var(--f-display); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
h2 { margin: 0; font: 700 clamp(44px, 8vw, 108px)/0.95 var(--f-display); letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance; }
h2 .wd { display: inline-block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; vertical-align: top; }
h2 .ch { display: inline-block; }
.lead { margin: 24px 0 0; font: 400 clamp(18px, 1.8vw, 21px)/1.6 var(--f-body); color: var(--cream-2); max-width: 60ch; }
.sec-head.center .lead { margin-inline: auto; }

/* ───────── details ───────── */
.details-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1200px; }
.detail { min-width: 0; }
.detail-in {
  position: relative; height: 100%; min-height: 280px; padding: 28px 26px; border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(160deg, rgba(122, 20, 24, 0.75), rgba(42, 5, 6, 0.85));
  border: 1px solid var(--line); transform-style: preserve-3d; will-change: transform;
}
.detail-in::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(240, 196, 106, 0.28), transparent 55%);
}
.detail-in:hover::before { opacity: 1; }
.detail-k { font: 700 11px var(--f-display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.detail-v { margin-top: auto; font: 700 clamp(56px, 6vw, 84px)/1 var(--f-display); font-variant-numeric: tabular-nums; transform: translateZ(40px); }
.detail-v small { font-size: 0.32em; margin-inline: 4px; letter-spacing: 0.1em; }
.detail-v-sm { font-size: clamp(30px, 3vw, 40px); line-height: 1.05; }
.detail-s { font-size: 14px; color: var(--cream-2); transform: translateZ(20px); }
.detail-s.link { color: var(--gold-2); text-decoration: none; }
.detail-s.link:hover { text-decoration: underline; }
.detail-ico { position: absolute; top: 24px; right: 24px; width: 46px; height: 46px; fill: none; stroke: var(--cream-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: translateZ(30px); }
.detail-gold .detail-in { background: linear-gradient(160deg, #e9bd5f, #b7802a); color: var(--ink); border-color: transparent; }
.detail-gold .detail-k, .detail-gold .detail-s { color: rgba(23, 2, 3, 0.75); }
.detail-gold .detail-ico { stroke: rgba(23, 2, 3, 0.5); }

/* ───────── countdown ───────── */
.clock { display: flex; justify-content: center; gap: clamp(10px, 2.4vw, 28px); perspective: 1000px; }
.flip { --ch: clamp(92px, 17vw, 200px); display: grid; justify-items: center; gap: 14px; }
.flip .card {
  position: relative; width: calc(var(--ch) * 0.88); height: var(--ch); perspective: 700px;
  font: 700 calc(var(--ch) * 0.62) var(--f-display); font-variant-numeric: tabular-nums;
}
.flip .card::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; translate: 0 -1px; background: var(--ink); z-index: 5; }
.flip .card > span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: linear-gradient(180deg, var(--maroon-600), var(--maroon)); }
.flip .card > span b { position: absolute; left: 0; width: 100%; height: var(--ch); line-height: calc(var(--ch) * 1.08); text-align: center; font-weight: 700; }
.flip .upper, .flip .flap.up { top: 0; border-radius: 16px 16px 0 0; }
.flip .lower, .flip .flap.down { bottom: 0; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, var(--maroon), var(--maroon-800)) !important; }
.flip .upper b, .flip .flap.up b { top: 0; }
.flip .lower b, .flip .flap.down b { bottom: 0; }
.flip .flap { opacity: 0; backface-visibility: hidden; z-index: 3; }
.flip .flap.up { transform-origin: 50% 100%; }
.flip .flap.down { transform-origin: 50% 0; transform: rotateX(90deg); }
.flip.go .flap { opacity: 1; }
.flip.go .flap.up { animation: flap-up 0.3s ease-in forwards; }
.flip.go .flap.down { animation: flap-down 0.3s 0.3s ease-out forwards; }
@keyframes flap-up { to { transform: rotateX(-90deg); } }
@keyframes flap-down { to { transform: rotateX(0deg); } }
.flip .card { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); border-radius: 16px; }
.flip-l { font: 700 12px var(--f-display); letter-spacing: 0.35em; text-transform: uppercase; color: var(--cream-2); }
.clock-note { text-align: center; color: var(--cream-2); margin: 36px auto 0; max-width: 60ch; }

/* ───────── school (pinned horizontal) ───────── */
.school { position: relative; z-index: 2; height: 100vh; height: 100svh; overflow: hidden; }
.shots { display: flex; align-items: center; gap: clamp(36px, 6vw, 110px); height: 100%; padding-inline: var(--gutter) 12vw; width: max-content; will-change: transform; }
.school-intro { width: min(440px, 82vw); flex: none; }
.school-intro h2 { font-size: clamp(48px, 7vw, 96px); }
.school-intro p:not(.eyebrow) { color: var(--cream-2); margin: 22px 0 0; }
.school-arrow { display: inline-block; margin-top: 28px; font-size: 40px; color: var(--gold); animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(14px); } }
.shot { flex: none; width: clamp(270px, 36vw, 560px); margin: 0; }
.shot-low { margin-top: 16vh; }
.shot:not(.shot-low) { margin-bottom: 10vh; }
.shot-img { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; }
html.webgl .shot-img img { opacity: 0; }
html.webgl .shot-img { overflow: visible; }
.shot-cap { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; font: italic 500 22px var(--f-serif); }
.shot-i { font: 700 12px var(--f-display); letter-spacing: 0.2em; color: var(--gold); font-style: normal; }

/* ───────── tickets ───────── */
.tickets-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ticket-col { min-width: 0; align-self: stretch; }
.ticket-sticky { position: sticky; top: 110px; }
.ticket-anchor { width: 100%; aspect-ratio: 2000 / 707; perspective: 1200px; }
.ticket-flat { width: 100%; height: auto; border-radius: 12px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); }
.ticket-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.hint { font-size: 13px; color: var(--cream-3); max-width: 34ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; min-width: 0; }
.step { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; }
.step-n { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 700 22px var(--f-display); background: var(--cream); color: var(--maroon); box-shadow: 0 0 0 6px rgba(243, 230, 207, 0.08); }
.step-body { min-width: 0; padding: 26px; border-radius: 24px; background: rgba(42, 5, 6, 0.78); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.step-body h3 { margin: 4px 0 8px; font: 700 22px/1.2 var(--f-display); letter-spacing: 0.02em; text-transform: uppercase; }
.step-body > p { margin: 0 0 18px; color: var(--cream-2); font-size: 15px; }
.bank-card { border-radius: 16px; padding: 18px 20px; background: linear-gradient(135deg, rgba(212, 162, 58, 0.18), rgba(243, 230, 207, 0.04)); border: 1px solid rgba(212, 162, 58, 0.35); }
.bank-card dl { margin: 0; display: grid; gap: 10px; }
.bank-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; align-items: center; }
.bank-row dt { font: 700 11px var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-3); }
.bank-row dd { margin: 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bank-note { margin: 12px 0 0; font-size: 14px; color: var(--cream-2); }
.bank-card dl + .bank-note { border-top: 1px dashed var(--line); padding-top: 12px; }
.copy { flex: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font: 600 11px var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.copy:hover { border-color: var(--gold); color: var(--gold-2); }
.contacts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contacts li { display: flex; align-items: stretch; gap: 8px; }
.contact-call {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 14px;
  background: rgba(243, 230, 207, 0.05); border: 1px solid var(--line); color: var(--cream); text-decoration: none;
  transition: border-color 0.3s, background 0.3s;
}
.contact-call b { font: 700 13px var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; }
.contact-call small { font-size: 12px; color: var(--cream-3); }
.contacts .phone { color: var(--gold-2); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact-wa {
  flex: none; width: 46px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(127, 212, 155, 0.1); border: 1px solid rgba(127, 212, 155, 0.35); color: #9fe3b4;
  transition: background 0.3s, color 0.3s;
}
@media (hover: hover) {
  .contact-call:hover { border-color: rgba(212, 162, 58, 0.55); background: rgba(243, 230, 207, 0.09); }
  .contact-wa:hover { background: #25d366; color: #fff; }
}

/* forms */
.pay-form, .composer { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend, .field .label { font: 700 11px var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-2); padding: 0; }
.field small { text-transform: none; letter-spacing: 0.02em; color: var(--cream-3); font-weight: 400; }
input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(243, 230, 207, 0.18);
  background: rgba(243, 230, 207, 0.05); color: var(--cream); font: 500 16px var(--f-body);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: rgba(243, 230, 207, 0.32); }
input:focus, textarea:focus { outline: none; border-color: var(--gold); background: rgba(243, 230, 207, 0.08); box-shadow: 0 0 0 4px rgba(212, 162, 58, 0.15); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.9); }
.field.invalid input, .field.invalid textarea { border-color: #ff8a80; box-shadow: 0 0 0 4px rgba(255, 138, 128, 0.15); }
.form-error { margin: 0; min-height: 1.2em; color: #ffb4a9; font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 7px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(243, 230, 207, 0.22); font: 600 13px var(--f-body); transition: all 0.3s var(--ease); }
.chips label:hover span { border-color: var(--cream-3); }
.chips input:checked + span { background: var(--cream); color: var(--maroon); border-color: var(--cream); transform: translateY(-2px); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid rgba(243, 230, 207, 0.18); border-radius: 12px; overflow: hidden; width: fit-content; }
.stepper button { width: 46px; height: 48px; background: rgba(243, 230, 207, 0.06); border: 0; font-size: 22px; cursor: pointer; }
.stepper button:hover { background: rgba(212, 162, 58, 0.25); }
.stepper output { min-width: 52px; text-align: center; font: 700 20px var(--f-display); font-variant-numeric: tabular-nums; }
.sub { font-size: 13px; color: var(--cream-3); }
.sub b { color: var(--cream); }
.drop {
  display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed rgba(243, 230, 207, 0.3); background: rgba(243, 230, 207, 0.03); position: relative;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.drop:hover, .drop.over { border-color: var(--gold); background: rgba(212, 162, 58, 0.08); }
.drop.over { transform: scale(1.02); }
.drop:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.drop-thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: rgba(243, 230, 207, 0.08) center / cover no-repeat; font: 700 14px var(--f-display); color: var(--gold); }
.drop-thumb:empty:not([style*="url"])::before { content: "+"; font-size: 30px; font-weight: 300; color: var(--cream-2); }
.drop.has-file .drop-thumb::before, .drop.has-photo .drop-thumb::before { content: none; }
.drop-text { display: grid; gap: 2px; min-width: 0; }
.drop-text b { font: 700 14px var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; }
.drop-text span { font-size: 13px; color: var(--cream-3); overflow-wrap: anywhere; }
.drop.busy .drop-thumb { animation: breathe 0.8s infinite; }
.drop-clear { display: none; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(243, 230, 207, 0.15); font-size: 18px; cursor: pointer; }
.drop.has-photo .drop-clear { display: block; }
.pay-success { text-align: left; }
.pay-success h4 { margin: 0 0 8px; font: 700 34px var(--f-display); text-transform: uppercase; }
.pay-success p { margin: 0 0 10px; color: var(--cream-2); }
.pay-success .small { font-size: 14px; margin: 14px 0 18px; }
.ref-box { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--cream); color: var(--maroon); }
.ref-box code { font: 700 clamp(22px, 3vw, 30px) var(--f-display); letter-spacing: 0.12em; flex: 1; user-select: all; }
.ref-box .copy { border-color: rgba(92, 13, 16, 0.3); color: var(--maroon); }
.status-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
#s-result { margin-top: 14px; }
.status-msg { margin: 0; color: var(--cream-2); font-size: 15px; }
.status-card { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(243, 230, 207, 0.05); }
.status-card p { margin: 6px 0 0; font-size: 15px; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font: 700 11px var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; }
.status-pending .pill { background: #f0c46a; color: var(--ink); }
.status-approved .pill { background: #7fd49b; color: #062312; }
.status-rejected .pill { background: #ff8a80; color: #2b0300; }

/* ───────── memories ───────── */
.composer-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-bottom: clamp(70px, 9vw, 120px); }
.composer { padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: rgba(42, 5, 6, 0.8); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35); }
.identity { margin: 0; font-size: 14px; color: var(--cream-2); }
.identity .tag { margin-left: 4px; }
.count { justify-self: end; font-size: 12px; color: var(--cream-3); font-variant-numeric: tabular-nums; }
.count.over { color: #ffb4a9; }
.inks { display: flex; gap: 12px; align-items: center; }
.inks legend { margin-bottom: 8px; width: 100%; }
.ink { cursor: pointer; }
.ink input { position: absolute; opacity: 0; }
.ink span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--inkc); border: 3px solid rgba(243, 230, 207, 0.25); transition: transform 0.3s var(--ease), border-color 0.3s; }
.ink input:checked + span { border-color: var(--cream); transform: scale(1.18); }
.ink input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.preview-col { position: sticky; top: 110px; display: grid; gap: 4px; justify-items: center; }
.m-preview { width: min(100%, 380px); padding: 20px 10px; }
.m-preview .mem { margin: 0; }

.ink-blue { --inkc: #1f3a93; }
.ink-black { --inkc: #1f1b1c; }
.ink-red { --inkc: #a3161b; }
.ink-green { --inkc: #17663a; }

.wall-bar { display: flex; justify-content: center; margin-bottom: 40px; }
.wall-filter { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(243, 230, 207, 0.06); border: 1px solid var(--line); }
.wall-filter button { border: 0; background: none; padding: 10px 18px; border-radius: 999px; font: 600 12px var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; color: var(--cream-2); transition: background 0.3s, color 0.3s; }
.wall-filter button[aria-pressed="true"] { background: var(--cream); color: var(--maroon); }
.wall-grid { columns: 4 250px; column-gap: 30px; }
.wall-empty { text-align: center; padding: 40px 0; color: var(--cream-2); font: italic 500 24px var(--f-serif); }
.wall-more { display: flex; justify-content: center; margin-top: 30px; }

.mem {
  --tilt: 0deg;
  position: relative; break-inside: avoid; display: block; margin: 0 0 34px; cursor: pointer;
  color: var(--inkc); transform: rotate(var(--tilt));
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15), 0 18px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.mem:hover, .mem:focus-visible { transform: rotate(0deg) translateY(-8px) scale(1.025); box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15), 0 34px 60px rgba(0, 0, 0, 0.45); z-index: 3; }
.mem-note { padding: 34px 24px 16px; border-radius: 3px; background-color: var(--paper); }
.paper-lined { background-image: linear-gradient(90deg, transparent 34px, rgba(196, 64, 64, 0.35) 34px 36px, transparent 36px), repeating-linear-gradient(transparent 0 33px, rgba(70, 100, 170, 0.22) 33px 34px); background-position: 0 0, 0 8px; padding-left: 50px; }
.paper-grid { background-image: linear-gradient(rgba(70, 100, 170, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 100, 170, 0.12) 1px, transparent 1px); background-size: 22px 22px; }
.paper-plain { background-image: linear-gradient(160deg, #fffaf0, #f3e7cc); }
.pin { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8b8b, #b3121a 60%, #6d0a0f); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35); }
.mem-photo { padding: 14px 14px 16px; background: #fdfaf3; border-radius: 3px; }
.mem-img { overflow: hidden; background: #e8dcc6; }
.mem-img img { width: 100%; height: auto; transition: transform 0.8s var(--ease); }
.mem:hover .mem-img img { transform: scale(1.05); }
.mem-video { position: relative; }
.mem-video .play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: rgba(23, 2, 3, 0.62); border: 2px solid rgba(251, 245, 232, 0.9); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); transition: transform 0.4s var(--ease);
}
.mem-video .play::before { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fbf5e8; }
.mem:hover .mem-video .play { transform: scale(1.1); }
.mem-video video { display: block; width: 100%; max-height: 72vh; background: #000; }
.mem-video.loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  border: 3px solid rgba(251, 245, 232, 0.35); border-top-color: #fbf5e8; animation: spin 0.9s linear infinite;
}
.mem-video.loading .play { opacity: 0; }
.mem-photo .hw { margin-top: 12px; }
.tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; translate: -50% 0; rotate: -4deg; z-index: 2; background: rgba(240, 222, 170, 0.78); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 45%); }
.hw { margin: 0; filter: url(#ink); overflow-wrap: anywhere; }
.hw .w { display: inline-block; transform: rotate(var(--r)) translateY(var(--y)); }
.sig { margin: 10px 0 0; text-align: right; filter: url(#ink); }
.hw-a .hw { font: 500 27px/34px "Caveat", "Abhaya Libre", cursive; }
.hw-a .sig { font: 700 25px "Caveat", cursive; }
.hw-b .hw { font: 400 19px/34px "Kalam", "Abhaya Libre", cursive; }
.hw-b .sig { font: 700 19px "Kalam", cursive; }
.hw-c .hw { font: 400 22px/34px "Patrick Hand", "Abhaya Libre", cursive; }
.hw-c .sig { font: 400 22px "Patrick Hand", cursive; }
.hw-si .hw { font: 500 25px/34px "Abhaya Libre", "Caveat", serif; }
.hw-si .sig { font: 600 22px "Abhaya Libre", "Caveat", serif; }
.paper-lined .hw { padding-top: 0; }
.mem-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(60, 20, 20, 0.18); font: 600 11px var(--f-body); color: rgba(50, 15, 15, 0.6); }
.mem-meta .date { margin-left: auto; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(92, 13, 16, 0.08); color: var(--maroon); font: 700 10px var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; }
.identity .tag-verified, .tag-verified { background: #1d7a46; color: #fff; }
.tag-sample { background: var(--gold); color: var(--ink); }
.mem-del { border: 0; background: none; padding: 0; color: #a3161b; font: 700 11px var(--f-body); cursor: pointer; text-decoration: underline; }
.mem-big { max-width: min(560px, 88vw); margin: 0; transform: none; cursor: default; }
.mem-big:hover { transform: none; }
.mem-big .hw-a .hw, .mem-big.hw-a .hw { font-size: 34px; line-height: 42px; }

/* ───────── venue + faq ───────── */
.venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 7vw, 120px); }
.venue-grid > * { min-width: 0; }
.venue-grid h2 { font-size: clamp(40px, 6vw, 78px); }
.venue-list { margin: 0 0 34px; display: grid; }
.venue-list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.venue-list div:last-child { border-bottom: 1px solid var(--line); }
.venue-list dt { font: 700 11px var(--f-display); letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); padding-top: 5px; }
.venue-list dd { margin: 0; font-size: 18px; }
.venue-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0; font: 600 21px/1.3 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-weight: 300; font-size: 22px; color: var(--gold); transition: transform 0.5s var(--ease), background 0.3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: rgba(212, 162, 58, 0.15); }
.faq-body { overflow: hidden; }
.faq-body p { margin: 0 0 22px; color: var(--cream-2); max-width: 60ch; }

/* ───────── footer ───────── */
.footer { position: relative; z-index: 2; padding-block: 90px 40px; border-top: 1px solid var(--line); background: linear-gradient(to bottom, transparent, rgba(23, 2, 3, 0.9)); overflow: hidden; }
.footer .wrap { display: grid; justify-items: center; text-align: center; gap: 18px; }
.footer-crest { width: 70px; }
.footer-wordmark { width: min(92vw, 1100px); height: auto; }
.footer-line { margin: 0; font: 600 13px var(--f-display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--cream-2); }
.footer-credit { margin: 6px 0 0; font-size: 11px; letter-spacing: 0.08em; color: var(--cream-3); opacity: 0.8; }
.footer-credit b { font-weight: 600; color: var(--cream-2); }
.footer-meta { margin-top: 40px; width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--cream-3); }

/* ───────── dialogs, toasts, banner ───────── */
dialog { border: 0; padding: 0; background: none; color: var(--cream); max-width: calc(100vw - 32px); }
dialog::backdrop { background: rgba(10, 0, 0, 0.72); backdrop-filter: blur(6px); }
.auth-card { position: relative; width: min(440px, calc(100vw - 32px)); padding: 36px 30px 28px; border-radius: 28px; background: linear-gradient(170deg, var(--maroon-600), var(--maroon-900)); border: 1px solid var(--line); text-align: center; display: grid; gap: 14px; }
.auth-crest { width: 64px; justify-self: center; }
.auth-card h3 { margin: 0; font: 700 30px var(--f-display); text-transform: uppercase; }
.auth-card p { margin: 0; color: var(--cream-2); font-size: 15px; }
.auth-card form { display: grid; gap: 10px; }
.auth-msg { min-height: 1.2em; color: var(--gold-2) !important; font-weight: 600; }
.x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.lightbox { overflow: visible; }
.lightbox .x { top: -50px; right: 0; }
#lightbox-body { display: grid; place-items: center; }
.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 110; display: grid; gap: 8px; justify-items: center; width: min(92vw, 440px); }
.toast { padding: 13px 20px; border-radius: 14px; background: var(--cream); color: var(--maroon); font-weight: 600; font-size: 15px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); transform: translateY(20px) scale(0.96); opacity: 0; transition: all 0.45s var(--ease); }
.toast.in { transform: none; opacity: 1; }
.toast-err { background: #ffb4a9; color: #3b0300; }
.demo-banner { position: fixed; z-index: 70; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: min(460px, calc(100vw - 32px)); display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px 12px 16px; border-radius: 14px; background: rgba(23, 2, 3, 0.92); border: 1px solid rgba(212, 162, 58, 0.5); font-size: 13px; color: var(--cream-2); backdrop-filter: blur(10px); }
.demo-banner b { color: var(--gold-2); }
.demo-banner code { font-size: 12px; color: var(--cream); }
.demo-banner button { flex: none; background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; color: var(--cream-2); }

/* ───────── responsive ───────── */
@media (max-width: 1080px) {
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .wall-grid { columns: 3 230px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-block; }
  .nav-cta { display: none; }
  .tickets-grid, .composer-wrap, .venue-grid { grid-template-columns: minmax(0, 1fr); }
  .ticket-sticky, .preview-col { position: static; }
  .preview-col { order: -1; }
  .hero-meta { justify-content: center; gap: 18px; flex-wrap: wrap; bottom: 80px; }
  .scroll-hint { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .auth-btn .who { display: none; }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .field-row, .status-form { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step-n { width: 44px; height: 44px; font-size: 18px; }
  .step-body { padding: 20px 18px; }
  .bank-row { grid-template-columns: 1fr; gap: 2px; }
  .shot { width: 78vw; }
  .shot-low { margin-top: 10vh; }
  .wall-grid { columns: 2 150px; column-gap: 14px; }
  .mem { margin-bottom: 20px; }
  .mem-note { padding: 28px 14px 12px; }
  .paper-lined { padding-left: 30px; background-image: linear-gradient(90deg, transparent 20px, rgba(196, 64, 64, 0.35) 20px 22px, transparent 22px), repeating-linear-gradient(transparent 0 27px, rgba(70, 100, 170, 0.22) 27px 28px); }
  .hw-a .hw { font-size: 21px; line-height: 28px; }
  .hw-b .hw { font-size: 15px; line-height: 28px; }
  .hw-c .hw { font-size: 17px; line-height: 28px; }
  .hw-si .hw { font-size: 18px; line-height: 28px; }
  .hw-a .sig, .hw-b .sig, .hw-c .sig, .hw-si .sig { font-size: 17px; }
  .mem-meta .date { margin-left: 0; }
  .wall-filter button { padding: 9px 12px; font-size: 10px; letter-spacing: 0.1em; }
  .tagline span { white-space: normal; }
  .flip { --ch: clamp(64px, 19vw, 100px); }
  .crest-anchor { margin-bottom: 30px; }
  .demo-banner { right: 16px; font-size: 12px; }
  .flip-l { font-size: 10px; letter-spacing: 0.2em; }
}
@media (max-width: 380px) {
  .wall-grid { columns: 1; }
}

/* ═════════════ bento tickets ═════════════ */
.bento {
  display: grid; gap: 16px; perspective: 1400px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "ticket ticket ticket price"
    "ticket ticket ticket when"
    "form   form   form   steps"
    "form   form   form   status"
    "outlets outlets outlets help";
  align-items: stretch;
}
.tile {
  position: relative; min-width: 0; border-radius: 26px; padding: 24px; overflow: hidden; isolation: isolate;
  background: rgba(42, 5, 6, 0.8); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.4s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 196, 106, 0.16), transparent 60%);
}
@media (hover: hover) { .tile:hover { border-color: rgba(212, 162, 58, 0.45); } .tile:hover::before { opacity: 1; } }
.tile-k { margin: 0 0 14px; display: flex; align-items: center; gap: 8px; font: 700 11px var(--f-display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.tile-s { margin: 0; font-size: 14px; color: var(--cream-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd49b; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 212, 155, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(127, 212, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 212, 155, 0); } }

/* the 3D ticket is drawn by WebGL behind this tile, so the tile stays see-through */
.tile-ticket {
  grid-area: ticket; display: flex; flex-direction: column; gap: 18px; min-height: 400px;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-style: dashed; border-color: rgba(243, 230, 207, 0.22);
}
.tile-ticket::before { display: none; }
.tile-ticket .ticket-anchor { margin: auto 0; }
.tile-ticket { justify-content: center; }
.tile-ticket .ticket-actions { margin-top: 0; }

.tile-price, .tile-when { display: flex; flex-direction: column; gap: 6px; min-height: 190px; container-type: inline-size; }
.tile-price { grid-area: price; background: linear-gradient(155deg, #efc66b, #b37a25); border-color: transparent; color: var(--ink); }
.tile-price .tile-k, .tile-price .tile-s { color: rgba(23, 2, 3, 0.72); }
.big-price { margin: auto 0 0; display: flex; align-items: baseline; gap: 6px; font: 700 clamp(34px, 27cqi, 92px)/0.95 var(--f-display); font-variant-numeric: tabular-nums; }
.big-price small { font-size: 0.3em; letter-spacing: 0.08em; }
.tile-when { grid-area: when; }
.when { margin: auto 0 0; display: flex; align-items: center; gap: 12px; }
.when b { font: 700 clamp(44px, 30cqi, 96px)/0.9 var(--f-display); }
.when span { font: 700 clamp(13px, 8cqi, 22px)/1.1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); }
.tile-steps { grid-area: steps; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 15px; }
.mini-steps b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--maroon); font: 700 15px var(--f-display); }
.tile-bank { grid-area: bank; }
.tile-bank .bank-card { background: none; border: 0; padding: 0; }
.tile-form { grid-area: form; padding: clamp(20px, 3vw, 34px); }
.tile-status { grid-area: status; }
.tile-status .status-form { grid-template-columns: 1fr; }
.tile-help { grid-area: help; }

/* ticket outlets: three stubs with punched notches */
.tile-outlets {
  grid-area: outlets; display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(120deg, rgba(92, 13, 16, 0.92), rgba(42, 5, 6, 0.9));
}
.outlets-head .tile-k { margin-bottom: 8px; }
.outlets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.outlet {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 18px 22px;
  background: linear-gradient(155deg, var(--cream), #e4cfa8); color: var(--maroon-900); border-radius: 14px;
  -webkit-mask: radial-gradient(circle 11px at left center, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at right center, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at left center, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at right center, #0000 97%, #000) right / 51% 100% no-repeat;
  transition: transform 0.4s var(--ease);
}
.outlet::after { content: ""; position: absolute; top: 14px; bottom: 14px; right: 34px; border-left: 2px dashed rgba(92, 13, 16, 0.28); }
.outlet-n { flex: none; font: 700 30px/1 var(--f-display); color: var(--maroon-600); opacity: 0.55; }
.outlet b { font: 700 clamp(15px, 1.5vw, 19px)/1.15 var(--f-display); letter-spacing: 0.07em; text-transform: uppercase; padding-right: 24px; }
@media (hover: hover) { .outlet:hover { transform: translateY(-4px) rotate(-1deg); } }
.outlet small { display: none; }
/* desktop: the outlets share a row with the contacts tile, so the stubs stand tall */
@media (min-width: 1081px) {
  .outlets { flex: 1; }
  .outlet { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px; }
  .outlet-n { font-size: 40px; }
  .outlet b { font-size: 20px; margin-top: auto; }
  .outlet small { display: block; margin: -10px 0 0; font: 700 10px var(--f-display); letter-spacing: 0.3em; text-transform: uppercase; color: rgba(92, 13, 16, 0.55); }
}
@media (max-width: 1080px) {
  .tile-outlets { gap: 16px; }
}
@media (max-width: 700px) {
  .outlets { grid-template-columns: 1fr; gap: 10px; }
  .outlet { min-height: 70px; padding: 14px 22px; }
  .outlet-n { font-size: 24px; }
  .outlet b { font-size: 16px; }
}
.muted { color: var(--cream-2); font-size: 14px; margin: 0; }

/* sign-in dialog */
.google-btn { gap: 12px; }
.google-btn svg { flex: none; background: #fff; border-radius: 50%; padding: 2px; width: 22px; height: 22px; }
.or { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--cream-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* details cards scale their numbers to the card, not the screen */
.detail-in { container-type: inline-size; }
.detail-v { font-size: clamp(28px, 29cqi, 84px); }
.detail-v-sm { font-size: clamp(17px, 13cqi, 40px); }

/* touch: no sticky hover states, comfortable taps */
a, button, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (hover: none) {
  .mem:hover { transform: rotate(var(--tilt)); box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15), 0 18px 36px rgba(0, 0, 0, 0.35); }
  .mem:hover .mem-img img { transform: none; }
  .btn:hover::before { transform: translateY(102%); }
  .btn:hover { color: var(--fg); border-color: var(--bd); }
  .grain { animation: none; }
}

@media (max-width: 1080px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "ticket ticket" "price when" "steps steps" "form form" "status help" "outlets outlets";
  }
  .tile-ticket { min-height: 0; }
}

@media (max-width: 600px) {
  .section { padding-block: 84px; }
  .sec-head { margin-bottom: 36px; }
  .lead { font-size: 16px; }
  .nav { padding-block: calc(10px + env(safe-area-inset-top, 0px)) 10px; gap: 10px; }
  .brand { gap: 8px; }
  .brand-word { height: 16px; }
  .brand-crest { width: 32px; height: 32px; }
  .auth-btn { padding: 7px 12px; font-size: 11px; }
  .menu-btn { width: 40px; height: 40px; }
  .menu-btn i { left: 12px; right: 12px; }
  .menu-btn i:first-child { top: 15px; }
  .menu-btn i:last-child { top: 23px; }
  .menu-open .menu-btn i:first-child, .menu-open .menu-btn i:last-child { top: 19px; }

  .hero { padding: 96px 16px 120px; }
  .hero-kicker { font-size: 10px; letter-spacing: 0.3em; }
  .tagline { gap: 10px; }
  .tagline span { font-size: 11px; letter-spacing: 0.12em; text-align: center; }
  .hero-school { font-size: 15px; letter-spacing: 0.1em; margin-top: 26px; }
  .hero-cta { width: 100%; flex-direction: column; align-items: stretch; margin-top: 28px; }
  .hero-meta { bottom: 28px; font-size: 10px; letter-spacing: 0.2em; gap: 6px 14px; }
  .marquee { padding-block: 20px; }
  .marquee-row { padding-block: 10px; }

  .details-grid { gap: 10px; }
  .detail-in { min-height: 170px; padding: 18px 16px; border-radius: 18px; }
  .detail-v { font-size: clamp(26px, 28cqi, 60px); }
  .detail-v-sm { font-size: clamp(16px, 13cqi, 28px); }
  .detail-s { font-size: 12px; }
  .detail-ico { width: 28px; height: 28px; top: 16px; right: 16px; }

  .school-intro { width: 84vw; }
  .shot { width: 80vw; }
  .shot-low { margin-top: 8vh; }
  .shot:not(.shot-low) { margin-bottom: 6vh; }
  .shot-cap { font-size: 18px; }

  .bento { gap: 12px; grid-template-areas: "ticket ticket" "price when" "steps steps" "form form" "status status" "help help" "outlets outlets"; }
  .tile { padding: 18px; border-radius: 20px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(42, 5, 6, 0.93); }
  .tile-ticket { padding: 16px 6px; background: transparent; }
  .tile-ticket .tile-k, .tile-ticket .ticket-actions { padding-inline: 10px; }
  .tile-price, .tile-when { min-height: 150px; }
  .tile-price { background: linear-gradient(155deg, #efc66b, #b37a25); }
  .ref-box code { font-size: 20px; }

  .composer { padding: 20px 16px; border-radius: 22px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(42, 5, 6, 0.93); }
  .chips span { padding: 10px 14px; }
  .wall-filter { width: 100%; justify-content: space-between; }
  .wall-filter button { flex: 1; min-height: 40px; padding: 8px 6px; }
  .copy { min-height: 34px; }

  .lightbox .x { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
  .demo-banner { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 10px 12px; }
  .footer { padding-block: 64px 32px; }
  .footer-meta { justify-content: center; text-align: center; }
}

/* ═════════════ venue showcase ═════════════ */
.venue-gallery { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(22px, 3vw, 44px); align-items: start; }
.vshot { margin: 0; min-width: 0; }
.vshot-tall { grid-row: span 2; }
.vshot-img { position: relative; border-radius: 22px; overflow: hidden; background: rgba(243, 230, 207, 0.04); }
.vshot-tall .vshot-img { aspect-ratio: 2 / 3; }
.vshot-wide .vshot-img { aspect-ratio: 16 / 9; }
.vshot-img img { width: 100%; height: 100%; object-fit: cover; }
html.webgl .vshot-img { overflow: visible; background: none; }
html.webgl .vshot-img img { opacity: 0; }
.vshot figcaption { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; font: italic 500 21px var(--f-serif); }
.vshot figcaption span { font: 700 12px var(--f-display); font-style: normal; letter-spacing: 0.2em; color: var(--gold); }
.venue-info { padding: clamp(22px, 3vw, 34px); border-radius: 24px; background: rgba(42, 5, 6, 0.82); border: 1px solid var(--line); }
.venue-info .venue-list { margin-bottom: 26px; }

/* ═════════════ dress code ═════════════ */
.palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto clamp(40px, 6vw, 64px); }
.sw { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; background: rgba(243, 230, 207, 0.06); border: 1px solid var(--line); font: 700 12px var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; }
.sw i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28), 0 4px 10px rgba(0, 0, 0, 0.3); }
.dress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.look { position: relative; min-width: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(170deg, rgba(122, 20, 24, 0.8), rgba(42, 5, 6, 0.92)); }
.look-girls { background: linear-gradient(170deg, rgba(212, 162, 58, 0.3), rgba(92, 13, 16, 0.85) 45%, rgba(42, 5, 6, 0.92)); }
.look-photos { position: relative; height: clamp(320px, 34vw, 470px); }
.look-ph { position: absolute; margin: 0; border-radius: 16px; overflow: hidden; border: 6px solid var(--paper); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); transition: rotate 0.6s var(--ease), translate 0.6s var(--ease); background: #2a0506; }
.look-ph img { width: 100%; height: 100%; object-fit: cover; }
.look-ph-a { width: 52%; height: 84%; left: 9%; top: 9%; rotate: -4deg; z-index: 2; }
.look-ph-b { width: 42%; height: 68%; right: 8%; top: 20%; rotate: 5deg; }
@media (hover: hover) {
  .look:hover .look-ph-a { rotate: -7deg; translate: -8px -6px; }
  .look:hover .look-ph-b { rotate: 8deg; translate: 8px 4px; }
}
.look-body { padding: clamp(22px, 3vw, 34px); }
.look-k { margin: 0 0 8px; font: 700 12px var(--f-display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.look h3 { margin: 0 0 18px; font: 700 clamp(22px, 2.4vw, 30px)/1.15 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tips li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; color: var(--cream-2); }
.tips b { font: 700 11px var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); padding-top: 3px; }
.dress-note { margin: clamp(36px, 5vw, 56px) auto 0; max-width: 46ch; text-align: center; font: italic 500 clamp(20px, 2.2vw, 26px)/1.4 var(--f-serif); color: var(--pink); }
.credit { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--cream-3); }

/* outfit illustrations */
.look-art {
  position: relative; height: clamp(300px, 30vw, 420px); display: grid; place-items: center;
  background: radial-gradient(circle at 50% 55%, rgba(240, 196, 106, 0.22), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.look-art::before {
  content: ""; position: absolute; width: min(70%, 300px); aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(240, 196, 106, 0.35); animation: spin 40s linear infinite;
}
.outfit { position: relative; height: 86%; width: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45)); transition: transform 0.7s var(--ease); }
@media (hover: hover) { .look:hover .outfit { transform: translateY(-8px) rotate(-2deg) scale(1.03); } }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(23, 2, 3, 0.75); border: 1px solid var(--line); backdrop-filter: blur(6px);
  font: 700 11px var(--f-display); letter-spacing: 0.14em; text-transform: uppercase;
}
.chip::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3); }
.chip-a { left: 8%; top: 22%; animation: bob 4s ease-in-out infinite; }
.chip-b { right: 8%; bottom: 20%; animation: bob 4s 1.2s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* simple dress code */
.dress-simple { max-width: 820px; text-align: center; }
.dress-simple .sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.dress-item { display: grid; justify-items: center; gap: 16px; }
.dress-item + .dress-item { margin-top: clamp(48px, 7vw, 72px); }
.dress-item h3 { margin: 0; font: 700 clamp(26px, 3vw, 34px)/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; }
.dress-item p { margin: 0; max-width: 58ch; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.75; color: var(--cream-2); }

/* FAQ on its own */
.faq-sec .faq { max-width: 860px; }

@media (max-width: 900px) {
  .venue-gallery { grid-template-columns: minmax(0, 1fr); }
  .vshot-tall { grid-row: auto; }
  .vshot-tall .vshot-img { aspect-ratio: 4 / 5; }
  .dress-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .look-art { height: 300px; }
  .chip { font-size: 10px; }
  .look-photos { height: 330px; }
  .look-ph { border-width: 4px; }
  .tips li { grid-template-columns: 1fr; gap: 2px; }
  .sw { font-size: 11px; padding-right: 12px; }
  .sw i { width: 24px; height: 24px; }
  .vshot figcaption { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  /* keep the site's animations, drop only the constant background shimmer */
  .grain { display: none; }
}
