/* ==========================================================
   America Week Gala 2027 — page-specific styles (loads after styles.css)
   ========================================================== */

body.gala-page { background: var(--ink); color: var(--parchment); }
body.gala-page::after { mix-blend-mode: overlay; }

/* ---------- Hero ---------- */
.g-hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  overflow: hidden; padding: 8rem var(--pad) 9rem; isolation: isolate;
}
.g-hero__media { position: absolute; inset: 0; z-index: -2; }
.g-hero__media video, .g-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.g-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(15,22,38,.35), rgba(15,22,38,.85) 75%),
    linear-gradient(180deg, rgba(15,22,38,.55), rgba(15,22,38,.15) 35%, rgba(15,22,38,.95));
}
.g-hero__frame { position: absolute; inset: clamp(.8rem, 2vw, 1.6rem); border: 1px solid rgba(215,185,127,.35); pointer-events: none; z-index: 1; }
.g-hero__frame::before, .g-hero__frame::after {
  content: "✦"; position: absolute; left: 50%; translate: -50% 0; color: var(--gold-light); font-size: .9rem;
  background: transparent; padding: 0 .8rem;
}
.g-hero__frame::before { top: -.65rem; }
.g-hero__frame::after { bottom: -.65rem; }
.g-hero__inner { max-width: 70rem; position: relative; z-index: 2; }
.g-hero__presents { font-family: var(--caps); font-size: clamp(.68rem, 1.2vw, .82rem); letter-spacing: .42em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 1.8rem; }
.g-hero__title { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .82; }
.g-hero__title .t1 { display: block; font-family: var(--caps); font-weight: 500; font-size: clamp(1.4rem, 3.6vw, 3.1rem); letter-spacing: .32em; margin-right: -.32em; }
.g-hero__title .t2 {
  display: block; font-style: italic; font-weight: 400; font-size: clamp(7rem, 24vw, 21rem); letter-spacing: -.03em; margin-top: .05em;
  background: linear-gradient(100deg, #b48f55 0%, #f6e7c1 22%, #c49a5a 40%, #fff3d6 55%, #b48f55 75%, #e8cf96 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gilt 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.45));
}
@keyframes gilt { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.g-hero__year { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin: 1.2rem 0 0; font-family: var(--caps); font-size: clamp(.9rem, 1.6vw, 1.2rem); letter-spacing: .5em; color: var(--parchment); }
.g-hero__year::before, .g-hero__year::after { content: ""; width: clamp(2rem, 8vw, 6rem); height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light)); }
.g-hero__year::after { transform: scaleX(-1); }
.g-hero__date { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin: 1.6rem 0 2.6rem; color: rgba(244,238,227,.9); }
.g-hero__cta { display: flex; justify-content: center; }
.g-hero__scroll { position: absolute; bottom: 2.6rem; left: 50%; translate: -50% 0; z-index: 2; font-family: var(--caps); font-size: .6rem; letter-spacing: .35em; color: rgba(244,238,227,.6); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.g-hero__scroll::after { content: ""; width: 1px; height: 2.6rem; background: linear-gradient(var(--gold-light), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.g-hero__reveal > * { opacity: 0; transform: translateY(24px); animation: up 1.2s var(--ease) forwards; }
.g-hero__reveal > *:nth-child(2) { animation-delay: .15s; }
.g-hero__reveal > *:nth-child(3) { animation-delay: .35s; }
.g-hero__reveal > *:nth-child(4) { animation-delay: .5s; }
.g-hero__reveal > *:nth-child(5) { animation-delay: .65s; }
@keyframes up { to { opacity: 1; transform: none; } }

/* ---------- Ticket CTA ---------- */
.ticket {
  --notch: 14px;
  position: relative; display: inline-grid; grid-template-columns: auto auto; align-items: stretch;
  text-decoration: none; color: var(--ink); filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
  transition: transform .6s var(--ease), filter .6s;
}
.ticket:hover { transform: translateY(-4px) rotate(-.6deg); filter: drop-shadow(0 28px 50px rgba(0,0,0,.55)); }
.ticket__stub, .ticket__main {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e9d3a1, #c9a465 45%, #e6cb92 70%, #b8935a);
}
.ticket__stub {
  padding: 1.2rem 1.4rem; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .15rem; text-align: center;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 50%, transparent 98%, #000) , radial-gradient(circle var(--notch) at 100% 50%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  border-right: 2px dashed rgba(15,22,38,.35);
}
.ticket__main {
  padding: 1.2rem 2.2rem 1.2rem 1.8rem; display: flex; align-items: center; gap: 1.4rem;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 50%, transparent 98%, #000), radial-gradient(circle var(--notch) at 100% 50%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.ticket__stub small { font-family: var(--caps); font-size: .56rem; letter-spacing: .3em; opacity: .75; }
.ticket__stub strong { font-family: var(--serif); font-size: 2.3rem; line-height: 1; font-weight: 600; }
.ticket__stub span { font-family: var(--caps); font-size: .62rem; letter-spacing: .22em; }
.ticket__main small { display: block; font-family: var(--caps); font-size: .58rem; letter-spacing: .32em; opacity: .75; }
.ticket__main b { display: block; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; }
.ticket__arrow { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(15,22,38,.5); display: grid; place-items: center; font-size: 1.2rem; transition: background .4s, color .4s, transform .5s var(--ease); flex-shrink: 0; }
.ticket:hover .ticket__arrow { background: var(--ink); color: var(--gold-light); transform: translateX(4px); }
.ticket__main::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.ticket--xl .ticket__stub { padding: 1.8rem 2rem; }
.ticket--xl .ticket__stub strong { font-size: 3.4rem; }
.ticket--xl .ticket__main { padding: 1.8rem 3rem 1.8rem 2.4rem; }
.ticket--xl .ticket__main b { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }

/* ---------- Intro ---------- */
.g-intro { position: relative; padding: clamp(6rem, 12vw, 10rem) var(--pad); background: var(--parchment); color: var(--text); overflow: hidden; }
.g-intro__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.g-intro__photos { position: relative; aspect-ratio: 4 / 4.6; }
.g-intro__photos figure { position: absolute; margin: 0; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(15,22,38,.6); }
.g-intro__photos figure img { width: 100%; height: 100%; object-fit: cover; }
.g-intro__p1 img { height: 116% !important; margin-top: -8%; }
.g-intro__p1 { inset: 0 18% 14% 0; border-radius: 999px 999px 0 0; }
.g-intro__p1::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(215,185,127,.7); border-radius: 999px 999px 0 0; }
.g-intro__p2 { width: 48%; aspect-ratio: 4 / 5; right: 0; bottom: 0; border: 8px solid var(--parchment); }
.g-intro__badge {
  position: absolute; left: -1rem; bottom: 8%; width: 8.5rem; height: 8.5rem; border-radius: 50%;
  background: var(--red); color: var(--parchment); display: grid; place-items: center; text-align: center;
  font-family: var(--caps); font-size: .6rem; letter-spacing: .2em; line-height: 1.5; z-index: 2;
  box-shadow: 0 0 0 6px var(--parchment), 0 0 0 7px rgba(155,28,31,.4);
  animation: spin 40s linear infinite;
}
.g-intro__badge b { display: block; font-family: var(--serif); font-size: 2.2rem; letter-spacing: 0; font-weight: 500; font-style: italic; line-height: 1; margin: .2rem 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.g-intro__badge > span { animation: spin 40s linear infinite reverse; display: block; }
.g-intro__copy .section-title { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.g-intro__copy p:not(.eyebrow) { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.5; color: var(--ink); margin: 0 0 1.4rem; }
.g-intro__copy p.g-intro__note { font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--muted); }

/* ---------- Countdown band ---------- */
.g-count { position: relative; padding: clamp(4.5rem, 9vw, 7rem) var(--pad); text-align: center; background: var(--red); overflow: hidden; isolation: isolate; }
.g-count::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 50% 0%, rgba(255,255,255,.12), transparent 60%), repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 46px); }
.g-count__label { font-family: var(--caps); font-size: .74rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-pale); margin: 0 0 2rem; }
.g-count__nums { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 3.5rem); }
.g-count__nums > div { min-width: clamp(4.5rem, 12vw, 9rem); }
.g-count__nums span { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(3.4rem, 10vw, 8.5rem); line-height: .9; font-variant-numeric: tabular-nums lining-nums; }
.g-count__nums small { font-family: var(--caps); font-size: .64rem; letter-spacing: .32em; color: var(--gold-pale); }
.g-count__sep { font-family: var(--serif); font-size: clamp(3rem, 8vw, 6rem); line-height: .9; color: rgba(239,224,189,.4); min-width: 0 !important; }

/* ---------- The Evening (acts) ---------- */
.g-evening { padding: clamp(6rem, 12vw, 10rem) var(--pad); }
.g-evening__head { max-width: var(--max); margin: 0 auto clamp(3rem, 6vw, 5rem); text-align: center; }
.g-evening__head .lede { color: rgba(244,238,227,.7); margin: 0 auto; }
.acts { max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(4rem, 8vw, 7rem); }
.act { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.act:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.act:nth-child(even) .act__media { order: 2; }
.act__media { position: relative; aspect-ratio: 5 / 3.6; overflow: hidden; }
.act__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.act__media::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(215,185,127,.45); pointer-events: none; }
.act__num { font-family: var(--caps); font-size: clamp(4rem, 9vw, 7.5rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold); display: block; margin-bottom: 1rem; }
.act__kicker { font-family: var(--caps); font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 .8rem; }
.act h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; margin: 0 0 1.2rem; }
.act h3 em { color: var(--gold-light); }
.act p { color: rgba(244,238,227,.75); margin: 0; max-width: 30rem; }

/* ---------- Films ---------- */
.g-films { padding: clamp(5rem, 10vw, 8rem) var(--pad); }
.g-films .film-grid { grid-template-columns: 1fr 1fr; }

/* ---------- Gallery rail ---------- */
.g-gallery { padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem); background: var(--parchment); color: var(--text); }
.g-gallery__head { max-width: var(--max); margin: 0 auto 3rem; padding: 0 var(--pad); display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.g-gallery__head .lede { margin: 0; }
.rail-controls { display: flex; gap: .6rem; }
.rail-controls button { width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 1.3rem; color: var(--ink); transition: background .3s, color .3s; }
.rail-controls button:hover { background: var(--ink); color: var(--gold-light); }
.rail { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 1.4rem; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; cursor: grab; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail a { flex: 0 0 auto; height: clamp(18rem, 42vw, 34rem); scroll-snap-align: center; overflow: hidden; position: relative; }
.rail a.is-wide { aspect-ratio: 3 / 2; }
.rail a.is-tall { aspect-ratio: 2 / 3; }
.rail img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); -webkit-user-drag: none; user-select: none; }
.rail a:hover img { transform: scale(1.04); }
.g-gallery__venue { max-width: var(--max); margin: 2.5rem auto 0; padding: 0 var(--pad); font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--muted); text-align: center; }


/* ---------- Partners ---------- */
.g-sponsors { background: var(--parchment); color: var(--text); padding: clamp(6rem, 12vw, 9rem) var(--pad); position: relative; overflow: hidden; isolation: isolate; }
.g-sponsors::before { content: ""; position: absolute; inset: 0 0 auto; height: 20px; background: var(--meander) repeat-x center / auto 20px; opacity: .6; }
.g-sponsors::after { content: ""; position: absolute; z-index: -1; width: 60rem; height: 60rem; left: 50%; top: 55%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(215,185,127,.28), transparent 65%); }
.g-sponsors__inner { max-width: var(--max); margin: 0 auto; }
.g-sponsors__head { text-align: center; max-width: 52rem; margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
.g-sponsors__head .lede { margin: 0 auto; }
.bubbles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; align-items: start; }
.bubble { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; }
.bubble__disc {
  width: clamp(9rem, 14vw, 12rem); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(180,143,85,.45), 0 0 0 9px #fbf8f2, 0 0 0 10px rgba(180,143,85,.35), 0 30px 50px -25px rgba(15,22,38,.45);
  margin-bottom: 1.6rem; animation: bob 6s ease-in-out infinite; transition: transform .6s var(--ease), box-shadow .6s;
}
.bubble:nth-child(2) .bubble__disc { animation-delay: -1.5s; }
.bubble:nth-child(3) .bubble__disc { animation-delay: -3s; }
.bubble:nth-child(4) .bubble__disc { animation-delay: -4.5s; }
.bubble:hover .bubble__disc { transform: scale(1.06); box-shadow: 0 0 0 1px var(--gold), 0 0 0 9px #fbf8f2, 0 0 0 10px var(--gold), 0 36px 60px -25px rgba(15,22,38,.55); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.bubble__disc img { width: 78%; height: 78%; object-fit: contain; }
.bubble__disc--dark { background: #000; }
.bubble__disc--dark img { width: 100%; height: 100%; object-fit: cover; }
.bubble__disc--wide img { width: 84%; }
.bubble--feature .bubble__disc { width: clamp(10.5rem, 16vw, 13.5rem); margin-top: -.75rem; }
.bubble__tier { font-family: var(--caps); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--red); }
.bubble__name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; color: var(--ink); max-width: 15rem; }
.g-sponsors__thanks { text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); max-width: 40rem; margin: clamp(3rem, 6vw, 4rem) auto; }
.g-sponsors__cta {
  max-width: 62rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 2.2rem 2.6rem; border: 1px solid var(--gold); background: #fbf8f2; position: relative;
}
.g-sponsors__cta::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(180,143,85,.35); pointer-events: none; }
.g-sponsors__cta-kicker { font-family: var(--caps); font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--red); margin: 0 0 .4rem; }
.g-sponsors__cta h3 { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.1; margin: 0 0 .4rem; color: var(--ink); }
.g-sponsors__cta p:not(.g-sponsors__cta-kicker) { margin: 0; color: var(--muted); font-size: .98rem; }
.g-sponsors__cta .btn { flex-shrink: 0; }

/* ---------- Join / details ---------- */
.g-join { position: relative; padding: clamp(6rem, 12vw, 10rem) var(--pad); overflow: hidden; isolation: isolate; text-align: center; }
.g-join__bg { position: absolute; inset: 0; z-index: -2; }
.g-join__bg img { width: 100%; height: 120%; margin-top: -10%; object-fit: cover; }
.g-join::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 80% at 50% 50%, rgba(15,22,38,.55), rgba(15,22,38,.88)); }
.g-join__card { max-width: 52rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem); border: 1px solid rgba(215,185,127,.4); background: rgba(15,22,38,.55); backdrop-filter: blur(6px); position: relative; }
.g-join__card::before, .g-join__card::after { content: ""; position: absolute; width: 2.4rem; height: 2.4rem; border: 1px solid var(--gold-light); }
.g-join__card::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.g-join__card::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.g-join h2 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(3rem, 7vw, 5.6rem); line-height: .95; margin: 0 0 1.6rem; }
.g-join h2 span { color: var(--gold-light); }
.g-join p { color: rgba(244,238,227,.82); font-size: 1.08rem; margin: 0 auto 1.3rem; max-width: 38rem; }
.g-join p strong { color: var(--gold-pale); font-weight: 600; }
.g-join .ticket { margin-top: 1.6rem; }

.g-facts { max-width: 60rem; margin: 0 auto; padding: clamp(4rem, 8vw, 6rem) var(--pad); display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.fact { border-top: 1px solid rgba(215,185,127,.35); padding-top: 1.6rem; }
.fact__label { font-family: var(--caps); font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 .8rem; }
.fact h3 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; line-height: 1.1; margin: 0 0 .7rem; }
.fact p { margin: 0; color: rgba(244,238,227,.7); font-size: .98rem; }
.fact a { color: var(--gold-light); text-underline-offset: 3px; }


/* ---------- Finale ---------- */
.g-finale { padding: clamp(6rem, 12vw, 10rem) var(--pad); text-align: center; border-top: 1px solid rgba(215,185,127,.2); background: radial-gradient(60% 80% at 50% 100%, rgba(155,28,31,.35), transparent 70%); }
.g-finale__title { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 9vw, 8rem); line-height: .92; margin: 0 0 1rem; }
.g-finale__title em { color: var(--gold-light); }
.g-finale p { color: rgba(244,238,227,.7); margin: 0 auto 3rem; max-width: 34rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .g-intro__grid { grid-template-columns: 1fr; }
  .g-intro__photos { max-width: 34rem; }
  .act, .act:nth-child(even) { grid-template-columns: 1fr; }
  .act:nth-child(even) .act__media { order: 0; }
  .g-films .film-grid { grid-template-columns: 1fr; }
  .g-facts { grid-template-columns: 1fr; }
  .bubbles { grid-template-columns: repeat(2, 1fr); }
  .g-sponsors__cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket__stub { border-right: 0; border-bottom: 2px dashed rgba(15,22,38,.35); flex-direction: row; gap: .8rem; padding: .9rem 1.2rem; -webkit-mask: none; mask: none; }
  .ticket__stub strong { font-size: 1.8rem; }
  .ticket__main { padding: 1rem 1.3rem; justify-content: space-between; -webkit-mask: none; mask: none; }
  .ticket--xl .ticket__stub { padding: 1rem 1.2rem; }
  .ticket--xl .ticket__stub strong { font-size: 2rem; }
  .ticket--xl .ticket__main { padding: 1.2rem 1.4rem; }
  .g-intro__badge { width: 6.5rem; height: 6.5rem; left: -.4rem; }
  .g-intro__badge b { font-size: 1.6rem; }
  .g-count__sep { display: none; }
  .g-count__nums { gap: .6rem; }
  .g-hero__scroll { display: none; }
  .bubble__disc, .bubble--feature .bubble__disc { width: 8.4rem; margin-top: 0; }
  .bubble__name { font-size: 1.2rem; }
  .bubbles { gap: 2rem 1rem; }
}
