/* Pershing AI House: sneak preview
   Built on the Pershing Design System tokens (Brand User Guide 2023).
   Headlines: Amarante (stand-in for licensed Robinson). Body: Rubik. */

@import url('https://fonts.googleapis.com/css2?family=Amarante&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  --trumpet-gold: #9A7611;
  --cosmic-blue: #00263E;
  --wax-black: #2D2926;
  --claw-white: #E5E1E6;
  --secret-green: #154734;
  --crown-violet: #3F2A56;

  --gold-bright: #C39A2A; /* gold lifted for dark grounds */
  --gold-deep: #7A5D0D; /* gold deepened so small type clears AA on claw */
  --gold-lit: #D8B24B; /* lighter gold: wax text on the fill, gold type on the tint */
  --surface-card: #EFECF1;

  --text-muted: rgba(45, 41, 38, 0.64);
  --text-muted-on-dark: rgba(229, 225, 230, 0.66);
  --border-subtle: rgba(45, 41, 38, 0.18);
  --border-subtle-on-dark: rgba(229, 225, 230, 0.2);

  --font-display: 'Amarante', Georgia, serif;
  --font-body: 'Rubik', -apple-system, sans-serif;

  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--wax-black);
  background: var(--claw-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--trumpet-gold); color: var(--wax-black); }

img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; position: relative; }

/* ---------- Type patterns ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--trumpet-gold);
  margin-bottom: 20px;
}
.dark .eyebrow, .dark-blue .eyebrow, .violet .eyebrow, .strip .eyebrow { color: var(--gold-bright); }

.display-xl, .display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.display-xl { font-size: clamp(32px, 10vw, 88px); }
.display-lg { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 28px; }

.lede {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  max-width: 640px;
}
.section-lede {
  font-size: 18px;
  max-width: 720px;
  margin-bottom: 56px;
}
.light .section-lede { color: var(--text-muted); }
.dark .section-lede, .dark-blue .section-lede, .violet .section-lede { color: var(--text-muted-on-dark); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 32px;
  background: var(--wax-black);
  border-bottom: 1px solid var(--border-subtle-on-dark);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { width: 184px; height: auto; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a {
  color: var(--claw-white);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.82;
  transition: opacity 0.25s ease;
}
.site-nav a:hover { opacity: 1; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-gold { background: var(--trumpet-gold); color: var(--wax-black); }
.btn-gold:hover { background: var(--gold-bright); }
.legal-page .btn-gold { background: var(--gold-bright); }
.legal-page .btn-gold:hover { background: var(--gold-lit); }
.btn-ghost { border-color: var(--border-subtle-on-dark); color: var(--claw-white); background: transparent; }
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-small { padding: 10px 20px; }

/* ---------- Sections ---------- */

.section { padding: 120px 0; position: relative; overflow: hidden; }
.light { background: var(--claw-white); color: var(--wax-black); }
.dark { background: var(--wax-black); color: var(--claw-white); }
.dark-blue { background: var(--cosmic-blue); color: var(--claw-white); }
.violet { background: var(--crown-violet); color: var(--claw-white); }

.pattern {
  position: absolute;
  inset: -140px; /* overscan so the drift never exposes an edge */
  background: url('/assets/icons/Listen-Icon_Trumpet-Gold.png') repeat;
  background-size: 104px;
  opacity: 0.06; /* fallback if animations don't run */
  pointer-events: none;
  animation:
    patternDrift 90s ease-in-out infinite alternate,
    patternBreath 11s ease-in-out infinite alternate;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 72px) 0 88px;
  position: relative;
  overflow: hidden;
}
.hero h1 { margin-bottom: 28px; }
.hero-lockup {
  display: block;
  width: min(560px, 80vw);
  height: auto;
}
.hero .lede { color: var(--claw-white); margin-bottom: 20px; }
.hero-line {
  font-size: 16px;
  color: var(--gold-bright);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-line-accent {
  display: block;
  text-align: center;
  font-size: 18px;
  margin-top: 10px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted-on-dark);
  border-top: 1px solid var(--border-subtle-on-dark);
  padding-top: 24px;
  max-width: 560px;
}

/* ---------- Layout helpers ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: start;
  margin-top: 16px;
}
.two-col p + p { margin-top: 18px; }
.light .two-col p { color: var(--text-muted); }
.light .two-col p:first-child { color: var(--wax-black); }

.card-grid { display: grid; gap: 20px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */

.card {
  padding: 30px 28px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
}
.dark .card, .dark-blue .card, .violet .card {
  background: transparent;
  border-color: var(--border-subtle-on-dark);
}
.card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.dark .card h4, .dark-blue .card h4, .violet .card h4 { color: var(--gold-bright); }
.card p { font-size: 15px; line-height: 1.6; }
.light .card p { color: var(--text-muted); }
.dark .card p, .dark-blue .card p, .violet .card p { color: var(--text-muted-on-dark); }

.card-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--trumpet-gold) !important;
  margin-bottom: 18px;
}
.dark .card-label, .dark-blue .card-label, .violet .card-label { color: var(--gold-bright) !important; }

.card-job {
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright) !important;
  margin: -6px 0 12px;
}

.rule-list { list-style: none; }
.rule-list li {
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  color: inherit;
}
.light .rule-list li { color: var(--wax-black); }
.dark .rule-list li, .dark-blue .rule-list li { border-color: var(--border-subtle-on-dark); color: var(--claw-white); }
.rule-list li:first-child { border-top: none; padding-top: 0; }
.rule-list li:last-child { padding-bottom: 0; }

.room-card { background: var(--wax-black); border-color: var(--wax-black); }
.light .room-card .rule-list li { color: var(--claw-white); border-color: var(--border-subtle-on-dark); }
.room-card .card-label { color: var(--gold-bright) !important; }

/* ---------- Transition morph (club within → is the club) ---------- */

.morph { margin-top: 8px; }
.morph-frame {
  position: relative;
  height: min(52vw, 460px);
  border: 1px solid var(--border-subtle-on-dark);
  overflow: hidden;
}
.morph-outer-label {
  position: absolute;
  top: 30px; left: 34px; right: 34px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.morph-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.15;
  color: var(--claw-white);
}
.morph-sub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted-on-dark);
}
.morph-date {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(195, 154, 42, 0.45);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.morph-inner {
  position: absolute;
  inset: 30% 16% 22% 16%;
  border: 1px solid var(--gold-bright);
  background: rgba(154, 118, 17, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.morph-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 28px;
}
.morph-face .morph-name { color: var(--gold-bright); }
.morph-face-b { opacity: 0; }

.morph-caption { position: relative; margin-top: 22px; min-height: 22px; }
.cap {
  position: absolute;
  left: 0; right: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted-on-dark);
}
.cap-b { opacity: 0; }

/* One slow loop, ~14s: hold the club-within (~4s) so it registers,
   expand over ~2.8s, hold "is the club" (~5s), ease back, repeat. */
.morph.visible .morph-inner { animation: morphInner 14s ease-in-out 0.8s infinite; }
.morph.visible .morph-outer-label { animation: morphOuter 14s ease-in-out 0.8s infinite; }
.morph.visible .morph-face-a,
.morph.visible .cap-a { animation: morphFaceA 14s ease-in-out 0.8s infinite; }
.morph.visible .morph-face-b,
.morph.visible .cap-b { animation: morphFaceB 14s ease-in-out 0.8s infinite; }

@keyframes morphInner {
  0%, 28% { inset: 30% 16% 22% 16%; background: rgba(154, 118, 17, 0.08); }
  48%, 82% { inset: 0; background: rgba(154, 118, 17, 0.14); }
  92%, 100% { inset: 30% 16% 22% 16%; background: rgba(154, 118, 17, 0.08); }
}
@keyframes morphOuter {
  0%, 28% { opacity: 1; }
  36%, 86% { opacity: 0; }
  94%, 100% { opacity: 1; }
}
@keyframes morphFaceA {
  0%, 30% { opacity: 1; }
  40%, 86% { opacity: 0; }
  94%, 100% { opacity: 1; }
}
@keyframes morphFaceB {
  0%, 46% { opacity: 0; }
  56%, 82% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

/* ---------- Values ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.value-icon { width: auto; height: 60px; margin-bottom: 20px; }
.value h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 8px;
}
.value p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* ---------- Membership ---------- */

.group-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 56px 0 20px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle-on-dark);
}
.group-label:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.composition {
  margin-top: 64px;
  border-top: 1px solid var(--border-subtle-on-dark);
  padding-top: 40px;
}
.stat-row { display: flex; flex-wrap: wrap; gap: 48px; }
.stat { display: flex; flex-direction: column; gap: 6px; min-width: 110px; }
.stat-num { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--gold-bright); }
.stat-label { font-size: 13px; color: var(--text-muted-on-dark); max-width: 150px; }

/* ---------- House ---------- */

.foot-note {
  margin-top: 48px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted-on-dark);
  border-top: 1px solid var(--border-subtle-on-dark);
  padding-top: 28px;
  max-width: 880px;
}

/* ---------- Network strip ---------- */

.strip { padding: 88px 0; }
.green { background: var(--secret-green); }
.strip-line {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  color: var(--gold-bright);
  max-width: 880px;
}

/* ---------- Invitation ---------- */

.invite-form { max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.invite-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 20px;
}
.label-hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text-muted-on-dark);
  font-size: 12px;
}
.invite-form input, .invite-form textarea {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px 16px;
  background: transparent;
  border: 1px solid var(--border-subtle-on-dark);
  color: var(--claw-white);
  font: 400 16px var(--font-body);
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s ease;
}
.invite-form input:focus, .invite-form textarea:focus { border-color: var(--gold-bright); }
.invite-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-status { font-size: 14px; color: var(--claw-white); max-width: 420px; }

.closing-line {
  margin-top: 88px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  color: var(--gold-bright);
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--wax-black);
  border-top: 1px solid var(--border-subtle-on-dark);
  padding: 48px 0;
}
.footer-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer-logo { width: 120px; height: auto; }
.footer-text { font-size: 13px; color: var(--text-muted-on-dark); line-height: 1.7; }
.footer-text a { color: var(--gold-bright); text-decoration: none; }
.footer-text a:hover { text-decoration: underline; }
.footer-right { margin-left: auto; text-align: right; }

/* ---------- Motion (print-first: slow fades, standard easing, nothing flashy) ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Gentle stagger for grouped reveals */
.card-grid > .reveal:nth-child(2) { transition-delay: 0.12s; }
.card-grid > .reveal:nth-child(3) { transition-delay: 0.24s; }
.card-grid > .reveal:nth-child(4) { transition-delay: 0.36s; }
.values-grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
.values-grid > .reveal:nth-child(3) { transition-delay: 0.2s; }
.values-grid > .reveal:nth-child(4) { transition-delay: 0.3s; }
.values-grid > .reveal:nth-child(5) { transition-delay: 0.4s; }

/* The flame breathes: tiled icons drift a few pixels and swell/dim slowly */
@keyframes patternDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(96px, 48px, 0); }
}
@keyframes patternBreath {
  from { opacity: 0.045; }
  to { opacity: 0.08; }
}

/* The church-window arch draws itself once, on hero load */
.hero-arch {
  position: absolute;
  top: 50%;
  right: 4%;
  height: min(74vh, 600px);
  width: auto;
  color: var(--gold-bright);
  opacity: 0.16;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-arch path {
  stroke-dasharray: 960;
  stroke-dashoffset: 960;
  animation: archDraw 2.4s ease-out 0.4s forwards;
}
@keyframes archDraw { to { stroke-dashoffset: 0; } }

/* Hairline rule extends under each section headline as it reveals */
.display-lg::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin-top: 22px;
  background: var(--trumpet-gold);
  transform-origin: left;
  transition: transform 1s ease 0.35s;
}
.dark .display-lg::after, .dark-blue .display-lg::after, .violet .display-lg::after { background: var(--gold-bright); }
.display-lg.reveal:not(.visible)::after { transform: scaleX(0); }

/* Pilot light beside the founding-cohort date */
.beacon {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  margin-right: 12px;
  transform: translateY(-1px);
  animation: beaconPulse 3.4s ease-in-out infinite;
}
@keyframes beaconPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(195, 154, 42, 0.45); }
  50% { opacity: 0.6; box-shadow: 0 0 0 7px rgba(195, 154, 42, 0); }
}

/* Quiet hover affordances */
.site-nav a { position: relative; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

.card { transition: border-color 0.35s ease; }
.card:hover { border-color: rgba(154, 118, 17, 0.55); }
.dark .card:hover, .dark-blue .card:hover, .violet .card:hover,
.light .room-card:hover { border-color: rgba(195, 154, 42, 0.55); }

@media (max-width: 760px) {
  .hero-arch { right: -18%; height: 52vh; opacity: 0.12; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pattern, .beacon, .hero-arch path { animation: none !important; }
  .hero-arch path { stroke-dashoffset: 0 !important; }
  .display-lg::after { transform: none !important; transition: none !important; }
  .site-nav a::after, .card { transition: none !important; }
  /* Morph settles on its final state with no animation */
  .morph * { animation: none !important; transition: none !important; }
  .morph-outer-label, .morph-face-a, .cap-a { opacity: 0 !important; }
  .morph-face-b, .cap-b { opacity: 1 !important; }
  .morph-inner { inset: 0 !important; background: rgba(154, 118, 17, 0.14) !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .card-grid.three, .card-grid.four { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .morph-frame { height: 92vw; }
  .morph-inner { inset: 26% 9% 19% 9%; }
  .morph-outer-label { top: 22px; left: 24px; right: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-right { margin-left: 0; text-align: left; }
  .hero { min-height: 0; }
  .stat-row { gap: 32px; }
}

@media (max-width: 640px) {
  .site-header { gap: 20px; padding: 0 20px; }
  .brand-logo { width: 148px; }
  .site-header .btn { display: none; } /* hero carries the primary CTA */
  .wrap { padding: 0 24px; }
}


/* ---------- Hero B — cinematic variant (/hero-b) ---------- */

.hero-b { overflow: hidden; }

/* The Pershing reel: four scenes crossfade under a flat cosmic-blue veil.
   36s loop, 9s per frame, ~1.4s crossfades; each frame settles in with a slow zoom. */
.hero-b-reel {
  position: absolute;
  inset: 0;
}
.hero-b-reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 38, 62, 0.76);
  z-index: 1;
}
.hero-b-photo {
  position: absolute;
  inset: 0;
  background: center 38% / cover no-repeat;
  opacity: 0;
  animation: heroBReel 36s ease-in-out infinite both;
}
.hero-b-photo.p1 { background-image: url('/assets/photos/hall-show-crowd.webp'); animation-delay: 0s; }
.hero-b-photo.p2 { background-image: url('/assets/photos/lawn-movie-night.webp'); animation-delay: 9s; }
.hero-b-photo.p3 { background-image: url('/assets/photos/courtyard-night.webp'); animation-delay: 18s; }
.hero-b-photo.p4 { background-image: url('/assets/photos/long-table-dinner.webp'); animation-delay: 27s; }
@keyframes heroBReel {
  0%    { opacity: 0; transform: scale(1); }
  4%    { opacity: 1; }
  25%   { opacity: 1; }
  29%   { opacity: 0; transform: scale(1.05); }
  100%  { opacity: 0; transform: scale(1.05); }
}

.hero-b .wrap { z-index: 2; }
.hero-b .hero-arch { opacity: 0.14; }

/* Four elements only: eyebrow, the lockup (one beat), one button, the date. */
.hero-b-eyebrow { opacity: 0; animation: heroBFade 0.9s ease 0.2s both; }
.hero-b-h1 { margin: 0; }
.hero-b-lockup {
  display: block;
  width: min(520px, 78vw);
  height: auto;
  opacity: 0;
  transform: translateY(18px);
  animation: heroBRise 1.3s ease 0.7s both;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-b-foot {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 48px;
  opacity: 0;
  animation: heroBFade 1s ease 1.9s both;
}
.hero-b-date {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* Hairline scroll cue, pulsing quietly. */
.hero-b-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 52px;
  background: var(--gold-bright);
  opacity: 0.35;
  animation: heroBCue 3.6s ease-in-out 3s infinite;
  z-index: 2;
}
@keyframes heroBCue {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.55; }
}

@keyframes heroBRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroBFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-b-photo, .hero-b-eyebrow, .hero-b-lockup, .hero-b-foot, .hero-b-cue {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  /* Static first frame only — the rest of the reel stays hidden. */
  .hero-b-photo { opacity: 0 !important; }
  .hero-b-photo.p1 { opacity: 1 !important; }
  .hero-b-cue { opacity: 0.35 !important; }
}


/* ---------- Events schedule (#events) ---------- */

.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.schedule th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--trumpet-gold);
  text-align: left;
  padding: 0 20px 12px 0;
}
.schedule td {
  padding: 18px 20px 18px 0;
  border-top: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-muted);
}
.schedule td.event-name { color: var(--wax-black); font-weight: 500; }
.schedule .event-note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.schedule .tbd { color: var(--text-muted); font-style: italic; font-size: 13px; }

.schedule-group td {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--trumpet-gold);
}
.schedule-group + tr td { border-top: none; }

.partner-chip {
  display: inline-flex;
  align-items: center;
  margin: 2px 14px 2px 0;
  vertical-align: middle;
}
.partner-chip img { height: 18px; width: auto; }

.events-cta {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.events-cta p { max-width: 520px; color: var(--text-muted); }

@media (max-width: 760px) {
  .schedule thead { display: none; }
  .schedule, .schedule tbody, .schedule tr, .schedule td { display: block; width: 100%; }
  .schedule tr { border-top: 1px solid var(--border-subtle); padding: 16px 0; }
  .schedule td { border-top: none; padding: 3px 0; }
  .schedule td[data-label="Est. guests"]::before {
    content: "Est. guests · ";
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .schedule td[data-label="Presenting partners"] { padding-top: 10px; }
  .schedule td[data-label="Date"] { font-weight: 500; color: var(--wax-black); }
  .schedule-group { border-top: 1px solid var(--border-subtle); }
  .schedule-group td { padding: 20px 0 8px; }
}
.partner-chip a { display: inline-flex; }
.partner-chip a:hover img { opacity: 0.7; }


/* ---------- Opening — full-viewport photo section (the House at dusk) ---------- */

.opening-photo {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 64px;
}
.opening-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/photos/house-dusk.webp') center / cover no-repeat;
}
.opening-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 38, 62, 0.72);
}
.opening-photo .wrap { z-index: 2; }
.opening-photo .display-lg { margin-bottom: 20px; }
.opening-photo .two-col { gap: 48px; margin-top: 8px; }
.opening-photo .room-card {
  background: rgba(45, 41, 38, 0.88);
  border-color: var(--border-subtle-on-dark);
  padding: 24px 24px;
}
.opening-photo .room-card .rule-list {
  columns: 2;
  column-gap: 24px;
  margin-top: 10px;
}
.opening-photo .room-card .rule-list li {
  break-inside: avoid;
  font-size: 13.5px;
  padding: 8px 0;
}
@media (max-width: 900px) {
  .opening-photo .room-card .rule-list { columns: 1; }
}


/* ---------- What Stays — Hall show, black & white, under the veil ---------- */

.stays-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/photos/hall-show-bw.webp') center / cover no-repeat;
}
.stays-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 38, 62, 0.8);
}
.stays-photo .wrap { z-index: 2; }
.stays-photo .value p { color: var(--text-muted-on-dark); }


/* ---------- Network — reciprocal club grids (Secret Green) ---------- */

.network-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.network .display-lg { color: var(--gold-bright); margin-bottom: 32px; }
.network p { color: var(--text-muted-on-dark); max-width: 440px; margin-bottom: 16px; }

/* The punch number */
.network-stat {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle-on-dark);
}
.network-stat-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 84px);
  line-height: 1;
  color: var(--gold-bright);
}
.network-stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--claw-white);
}

/* Two club grids, staggered like tear sheets */
.network-clubs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.network-clubs img {
  border: 1px solid var(--border-subtle-on-dark);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.network-clubs img:nth-child(2) { transform: translateY(56px); }
.network-clubs { margin-bottom: 56px; }

/* Part two: events & music (slide 8) — copy rail left, photo band right */
.network-events {
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--border-subtle-on-dark);
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: 56px;
  align-items: center;
}
.network-events-copy p:not(.eyebrow) { max-width: 380px; }
.network-event-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.network-event-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border-subtle-on-dark);
}
@media (max-width: 900px) {
  .network-grid { grid-template-columns: 1fr; gap: 40px; }
  .network-clubs { max-width: 560px; }
  .network-events { grid-template-columns: 1fr; gap: 32px; margin-top: 64px; }
  .network-events-copy p:not(.eyebrow) { max-width: 640px; }
}
@media (max-width: 700px) {
  .network-event-photos { grid-template-columns: 1fr 1fr; }
  .network-clubs img:nth-child(2) { transform: none; }
  .network-clubs { margin-bottom: 0; }
}


/* ---------- Public legal pages ---------- */

.legal-page .site-nav { margin-left: auto; }
.legal-page .site-nav a[aria-current="page"] { opacity: 1; }
@media (max-width: 1020px) {
  .legal-page .site-nav { display: flex; }
}

.legal-main {
  padding: calc(var(--header-h) + 72px) 0 96px;
}
.legal-prose { max-width: 720px; }
.legal-prose h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.legal-prose .legal-lede {
  color: rgba(45, 41, 38, 0.72);
  margin-bottom: 40px;
  font-size: 16px;
}
.legal-prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  margin: 40px 0 12px;
}
.legal-prose p,
.legal-prose li {
  font-size: 16px;
  line-height: 1.65;
}
.legal-prose p + p { margin-top: 16px; }
.legal-prose ol {
  margin: 8px 0 0;
  padding-left: 1.35em;
}
.legal-prose li + li { margin-top: 14px; }
.legal-prose a {
  color: var(--trumpet-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-prose .legal-end {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Staff enrollment (/team/enroll) ---------- */

.enroll-page .header-signout {
  margin-left: auto;
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.enroll-page .header-signout:hover { text-decoration: underline; }
.enroll-page .site-nav { margin-left: auto; }
@media (max-width: 1020px) {
  .enroll-page .site-nav { display: flex; }
}

.enroll-page .enroll-main {
  padding: calc(var(--header-h) + 48px) 0 64px;
}
.enroll-page .enroll-main .wrap {
  max-width: 624px;
}
.enroll-page .enroll-form {
  max-width: 560px;
  margin: 0 auto;
}
.enroll-page .enroll-form .form-row {
  grid-template-columns: 1fr;
}
.enroll-page .display-lg {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}
.enroll-page .display-lg::after { margin-top: 14px; }
.enroll-page .section-lede {
  font-size: 16px;
  margin-bottom: 28px;
}
.enroll-page .eyebrow { margin-bottom: 12px; }

.enroll-page .enroll-form :is(input:not([type="checkbox"]), textarea) {
  min-height: 44px;
  font-size: 16px;
}
.enroll-page .enroll-form textarea { min-height: 4.5em; }
.enroll-page .enroll-form input[name="staff_initials"] {
  max-width: 8em;
  text-transform: uppercase;
}

.enroll-form .enroll-consent {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 15px;
  color: var(--claw-white);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
}
.enroll-form .enroll-consent input {
  display: inline-block;
  width: auto;
  margin: 4px 0 0;
  padding: 0;
  border: none;
  flex-shrink: 0;
  accent-color: var(--trumpet-gold);
}
.enroll-page .enroll-form .enroll-consent {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
}
.enroll-page .enroll-form .enroll-consent input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  min-width: 22px;
  margin: 2px 0 0;
}
.enroll-preview-banner {
  margin: 32px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--gold-bright);
  color: var(--claw-white);
  font-size: 15px;
  line-height: 1.5;
}
.enroll-form :is(input, textarea, button):disabled {
  opacity: 0.75;
  cursor: not-allowed;
}
.enroll-fine {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted-on-dark);
  margin: -8px 0 20px;
  overflow-wrap: anywhere;
}
.enroll-fine a { color: var(--gold-bright); }
.say-script {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--gold-bright);
  color: var(--claw-white);
  font-size: 15px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.say-script summary {
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 14px;
  color: var(--gold-bright);
}
.say-script p { margin-top: 10px; }
.phone-preview {
  display: block;
  margin-top: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text-muted-on-dark);
  min-height: 1.2em;
}
.enroll-form input[readonly] { opacity: 0.75; }
.enroll-page .enroll-form .form-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 8px;
}
.enroll-page .enroll-form .form-foot .btn {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
}
.enroll-page .enroll-form .form-status {
  max-width: none;
  min-height: 1.4em;
}
.form-status.is-ok,
.form-status.is-dup { color: var(--gold-bright); }
.form-status.is-err { color: #D98F7E; }
.notes-count {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text-muted-on-dark);
}

@media (max-width: 640px) {
  .enroll-page .enroll-main {
    padding: calc(var(--header-h) + 16px) 0 132px;
  }
  .enroll-page .display-lg {
    font-size: 26px;
    margin-bottom: 8px;
  }
  .enroll-page .display-lg::after { margin-top: 10px; }
  .enroll-page .section-lede {
    font-size: 15px;
    margin-bottom: 18px;
  }
  .enroll-page .eyebrow { margin-bottom: 8px; }
  .enroll-page .enroll-form label { margin-bottom: 16px; }
  .enroll-page .enroll-form .form-foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    margin: 0;
    padding: 10px 24px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--crown-violet);
    border-top: 1px solid var(--border-subtle-on-dark);
  }
}

/* Public SMS opt-in sits on the light legal layout. */
.legal-page .invite-form { margin-top: 8px; }
.legal-page .eyebrow { color: var(--gold-deep); }
.legal-page .invite-form label { color: var(--gold-deep); }
.legal-page .invite-form input {
  color: var(--wax-black);
  border-color: var(--border-subtle);
}
.legal-page .label-hint,
.legal-page .phone-preview,
.legal-page .notes-count { color: rgba(45, 41, 38, 0.72); }
.legal-page .enroll-form .enroll-consent { color: var(--wax-black); }
.legal-page .enroll-fine { color: rgba(45, 41, 38, 0.72); }
.legal-page .enroll-fine a { color: var(--gold-deep); }
.legal-page .form-status { color: var(--wax-black); }
.legal-page .form-status.is-ok,
.legal-page .form-status.is-dup { color: var(--gold-deep); }
.legal-page .form-status.is-err { color: #8B3A2F; }

.sms-phone {
  max-width: 380px;
  margin: 8px 0 36px;
  padding: 18px 14px 22px;
  background: var(--wax-black);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
}
.sms-phone-number {
  text-align: center;
  color: var(--claw-white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}
.sms-thread { display: flex; flex-direction: column; gap: 10px; }
.sms-bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  margin: 0;
}
.sms-bubble.out {
  align-self: flex-end;
  background: var(--trumpet-gold);
  color: var(--wax-black);
  border-bottom-right-radius: 6px;
}
.sms-bubble.in {
  align-self: flex-start;
  background: #4A4541;
  color: var(--claw-white);
  border-bottom-left-radius: 6px;
}
@media (max-width: 640px) {
  .sms-phone { max-width: 100%; }
}
