/* =========================================================
   ACE HIGH POKER — "Dark Room"
   Matte Obsidian + Royal Gold. Imperial Art-Deco.
   ========================================================= */

:root {
  --obsidian: #060606;
  --obsidian-2: #0C0C0D;
  --obsidian-3: #131315;
  --gold: #D4AF37;
  --gold-soft: #B89329;
  --gold-faint: rgba(212, 175, 55, 0.18);
  --gold-line: rgba(212, 175, 55, 0.35);
  --ivory: #ECEAE4;
  --ivory-mute: #A29F98;
  --mute: #65635E;
  --error: #C97A4C;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
  --serif: "Gill Sans MT", "Gill Sans", Calibri, "Trebuchet MS", sans-serif;
  --sans: "Gill Sans MT", "Gill Sans", Calibri, "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 200ms ease, opacity 200ms ease;
}
a:hover { color: var(--ivory); }

img { display: block; max-width: 100%; height: auto; }

::selection { background: var(--gold); color: var(--obsidian); }

/* ============== Typography ============== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--ivory);
}

p { margin: 0 0 1em; }

/* ============== Reusable: Deco Rule ============== */
.deco-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--gold);
  margin: 32px auto;
  max-width: 480px;
}
.deco-rule__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), var(--gold), var(--gold-line), transparent);
  position: relative;
}
.deco-rule__line::after {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 22%;
  height: 4px;
  background: radial-gradient(ellipse at center, rgba(244, 216, 128, 0.85) 0%, rgba(244, 216, 128, 0.25) 45%, transparent 75%);
  filter: blur(0.6px);
  pointer-events: none;
  opacity: 0;
  animation: line-shine 9s ease-in-out infinite;
}
.deco-rule__line:nth-of-type(2)::after,
.deco-rule__line + .deco-rule__mark + .deco-rule__line::after {
  animation-delay: 1.6s;
}
.deco-rule__mark {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--gold);
  transform: translateY(-1px);
  animation: mark-pulse 7s ease-in-out infinite;
}

@keyframes line-shine {
  0%   { transform: translateX(-30%); opacity: 0; }
  22%  { opacity: 0.7; }
  50%  { transform: translateX(330%); opacity: 0.7; }
  78%  { opacity: 0; }
  100% { transform: translateX(330%); opacity: 0; }
}
@keyframes mark-pulse {
  0%, 100% { opacity: 0.78; text-shadow: none; }
  50%      { opacity: 1; text-shadow: 0 0 8px rgba(212, 175, 55, 0.55); }
}

/* ============== Top Bar ============== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 6, 6, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-faint);
}
/* Full-width so the hamburger + title hug the left corner and the
   pilot-season tag hugs the right corner on desktop */
.topbar__inner {
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand__word {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.topbar__meta {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: auto;
}

/* ============== Mobile nav (hamburger) ============== */
.nav-toggle {
  display: block;
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--gold-faint);
  border-radius: 2px;
  cursor: pointer;
  flex: 0 0 auto;
  z-index: 31;
}
.nav-toggle__bar {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 220ms ease, opacity 180ms ease, top 220ms ease;
}
.nav-toggle__bar:nth-child(1) { top: 9px; }
.nav-toggle__bar:nth-child(2) { top: 15px; }
.nav-toggle__bar:nth-child(3) { top: 21px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--obsidian);
  border-bottom: 1px solid var(--gold-faint);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55);
  z-index: 25;
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}
.mobile-nav.is-open {
  max-height: 420px;
}

/* Desktop: constrain the dropdown to a discrete panel anchored under the hamburger */
@media (min-width: 601px) {
  .mobile-nav {
    left: var(--gutter);
    right: auto;
    width: 260px;
    max-width: calc(100vw - 32px);
    border: 1px solid var(--gold-faint);
    border-top: none;
  }
  .mobile-nav__list a {
    padding-left: 22px;
    padding-right: 22px;
  }
  .mobile-nav__list a[aria-current="page"] {
    padding-left: 19px;
  }
}
.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  text-align: left;
}
.mobile-nav__list li {
  margin: 0;
  border-top: 1px solid rgba(212, 175, 55, 0.08);
}
.mobile-nav__list li:first-child {
  border-top: none;
}
.mobile-nav__list a {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 16px var(--gutter);
  transition: background-color 160ms ease, color 160ms ease;
}
.mobile-nav__list a:hover,
.mobile-nav__list a:focus-visible {
  background-color: rgba(212, 175, 55, 0.06);
  outline: none;
}
.mobile-nav__list a[aria-current="page"] {
  background-color: rgba(212, 175, 55, 0.09);
  border-left: 3px solid var(--gold);
  padding-left: calc(var(--gutter) - 3px);
  color: var(--ivory);
}

/* ============== Hero ============== */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 160px) var(--gutter) clamp(56px, 8vw, 120px);
  overflow: hidden;
  background: var(--obsidian);
  isolation: isolate;
}
.hero__banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  /* darkened + slightly desaturated so the foreground text stays legible */
  filter: brightness(0.7) saturate(0.92);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(6, 6, 6, 0.40) 0%, rgba(6, 6, 6, 0.78) 60%, rgba(6, 6, 6, 0.95) 100%),
    radial-gradient(1200px 600px at 50% -10%, rgba(212, 175, 55, 0.08), transparent 70%);
  z-index: -1;
}
.hero__frame {
  position: absolute;
  inset: 36px var(--gutter);
  border-left: 1px solid var(--gold-faint);
  border-right: 1px solid var(--gold-faint);
  pointer-events: none;
}
.hero__frame::before,
.hero__frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
}
.hero__frame::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.hero__frame::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}
.hero__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
.hero__logo {
  display: block;
  margin: 0 auto 30px;
  width: clamp(174px, 36vw, 475px);
  height: auto;
}
.hero__eyebrow {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 28px;
}
.hero__headline {
  /* Container for the single headline line. fitHeadline() scales the
     line to fill this width so the title always renders at the right
     visual weight; the CSS clamp below is the no-JS fallback. */
  max-width: 780px;
  margin: 0 auto 18px;
}
.hero__headline-line {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 3.4vw, 38px);
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  color: var(--ivory);
}
.hero__subhead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 0.34em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--ivory-mute);
  /* "Inverted triangle" — narrower than the headline above it */
  max-width: 520px;
  margin: 0 auto 28px;
  text-align: center;
}
.hero__body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ivory-mute);
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}
.hero__body-cta {
  /* On desktop the "Apply for the Registry" link flows inline; on
     mobile it drops to its own line so the CTA sentence is more
     readable. */
}
.hero__body-link {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-faint);
  padding-bottom: 1px;
  transition: color 200ms ease, border-color 200ms ease;
}
.hero__body-link:hover {
  color: var(--ivory);
  border-bottom-color: var(--ivory);
}
.hero__cta {
  display: flex;
  gap: 14px;
  max-width: 660px;
  margin: 0 auto 44px;
}
/* equal-width buttons filling the same 660px column as the sub/body,
   so both outer edges line up with the text above */
.hero__cta .btn {
  flex: 1 1 0;
  white-space: normal;
  line-height: 1.3;
  letter-spacing: 0.16em;
  padding: 14px 18px;
}
.hero__launch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin: clamp(40px, 6vw, 72px) 0 0;
}
.hero__launch-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  display: inline-block;
  transform: rotate(45deg);
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 320ms ease;
  white-space: nowrap;
  user-select: none;
  background: transparent;
  color: var(--gold);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 240, 200, 0.0) 35%, rgba(255, 240, 200, 0.32) 50%, rgba(255, 240, 200, 0.0) 65%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 850ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}
.btn:hover::after { left: 160%; }
.btn:hover { box-shadow: 0 0 28px rgba(212, 175, 55, 0.22); }
.btn:hover {
  background: var(--gold);
  color: var(--obsidian);
}
/* Brushed-gold gradient finish — sideways sheen catching light at the
   centre, matching the logo's metallic tone. Used for every primary
   action (hero CTAs, form submits). */
.btn--primary {
  color: var(--obsidian);
  border-color: var(--gold);
  background:
    linear-gradient(
      90deg,
      #a47c2a 0%,
      #c79a3a 22%,
      #d4b256 50%,
      #c79a3a 78%,
      #a47c2a 100%
    );
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45);
}
.btn--primary:hover {
  color: var(--obsidian);
  border-color: var(--ivory);
  background:
    linear-gradient(
      90deg,
      #b88a30 0%,
      #d4a948 22%,
      #efcd6a 50%,
      #d4a948 78%,
      #b88a30 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 0 28px rgba(212, 175, 55, 0.32);
}
.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--gold-line);
}
.btn--ghost:hover {
  border-color: var(--gold);
  background: transparent;
  color: var(--gold);
}
.btn--lg {
  padding: 18px 36px;
  font-size: 13px;
}

/* ============== Trust trio (within the hero) ============== */
.trust__inner {
  position: relative;
  max-width: var(--max);
  margin: clamp(44px, 7vw, 84px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 60px);
}
.trust__item {
  text-align: center;
  color: var(--ivory);
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.trust__item:hover { transform: translateY(-4px); }
.trust__icon {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  object-fit: contain;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), filter 380ms ease;
}
.trust__item:hover .trust__icon {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.45));
}
.trust__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0 0 10px;
  white-space: nowrap;
}
.trust__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ivory-mute);
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 720px) {
  .trust__inner { grid-template-columns: 1fr; }
  /* on narrow phones the title can wrap rather than overflow */
  .trust__title { white-space: normal; }
}

/* ============== Sections ============== */
.section {
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}
.section--governance {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--obsidian);
}
.section--registry {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--obsidian);
}

.section__inner {
  max-width: 980px;
  margin: 0 auto;
}
.section__eyebrow {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  /* equal to .section__heading margin-bottom — even spacing
     eyebrow -> heading -> lede */
  margin: 0 0 30px;
  text-align: center;
}
.section__heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 30px;
}
.section__lede {
  text-align: justify;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.8;
  color: var(--ivory);
  max-width: 720px;
  margin: 0 auto 44px;
}
.section__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ivory-mute);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.section__columns p { margin: 0; }

@media (max-width: 820px) {
  .section__columns { grid-template-columns: 1fr; }
}

/* ============== Governance pillars (I / II / III) ============== */
.gov-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 56px);
  max-width: 1100px;
  margin: 0 auto;
}
.gov-pillar {
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  border-top: 1px solid var(--gold-faint);
  position: relative;
}
.gov-pillar__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin: 0 0 14px;
}
.gov-pillar__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(15px, 1.45vw, 17px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0 0 16px;
  line-height: 1.3;
}
.gov-pillar__body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ivory-mute);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  margin: 0;
}
@media (max-width: 820px) {
  .gov-pillars { grid-template-columns: 1fr; max-width: 560px; }
}

/* ============== Steps ============== */
.steps {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--gold-faint);
  border-bottom: 1px solid var(--gold-faint);
}
.steps__item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--gold-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.steps__item:last-child { border-right: none; }
.steps__num {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.steps__label {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory);
}
/* keep the three steps in one row across at every width, not stacked */
@media (max-width: 720px) {
  .steps__item { padding: 26px 8px; }
  .steps__label { font-size: 12px; letter-spacing: 0.06em; }
}

/* ============== Section background image (Governance / Registry) ============== */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.section-bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.section-bg::after {
  /* darken for text legibility, and fade the top & bottom edges
     softly into the page background */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--obsidian) 0%,
    rgba(6, 6, 6, 0.72) 15%,
    rgba(6, 6, 6, 0.72) 85%,
    var(--obsidian) 100%
  );
}
.form-cta {
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0 auto 30px;
  /* always a single line */
  white-space: nowrap;
  /* lands just below the sticky top bar when navigated to */
  scroll-margin-top: 84px;
}

/* ============== Form ============== */
/* Form shell: a transparent wrapper holding the paper card and,
   below it, the submit button sitting outside the card */
.form-block {
  max-width: 680px;
  margin: 0 auto;
}
.form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--obsidian-3);
  border: 1px solid var(--gold-faint);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  scroll-margin-top: clamp(72px, 12vh, 110px);
}
.form::before,
.form::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
}
.form::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.form::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.form__row { margin-bottom: 22px; }
.form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) {
  .form__row--split { grid-template-columns: 1fr; }
}
.form__row--interest {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}
.field {
  display: block;
}
.field__label {
  display: block;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.field__opt {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--mute);
  margin-left: 4px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gold-line);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ivory);
  outline: none;
  border-radius: 0;
  transition: border-color 200ms ease;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
  padding-top: 12px;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 14px) 18px, calc(100% - 8px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
  cursor: pointer;
}
.field select option { background: var(--obsidian-2); color: var(--ivory); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--gold);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--mute); }
.field.is-invalid textarea {
  border-bottom-color: var(--error);
}

.field.is-invalid input,
.field.is-invalid select {
  border-bottom-color: var(--error);
}
.field__error {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--error);
  margin-top: 7px;
  min-height: 1em;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.field__error.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.radio {
  position: relative;
  flex: 1 1 0;
  min-width: 120px;
}
.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio span {
  display: block;
  text-align: center;
  padding: 13px 16px;
  border: 1px solid var(--gold-line);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory-mute);
  cursor: pointer;
  transition: all 200ms ease;
}
.radio input:checked + span {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}
.radio span:hover {
  border-color: var(--gold);
  color: var(--ivory);
}
/* Clear error cue for chip groups (the hidden radios can't show a border) */
.field.is-invalid .radio span,
.field.is-invalid .checkbox span {
  border-color: var(--error);
}

/* Checkbox chips — share the radio chip look (Preferred Days / Time) */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.checkbox {
  position: relative;
  flex: 1 1 0;
  min-width: 72px;
}
.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkbox span {
  display: block;
  text-align: center;
  padding: 12px 8px;
  border: 1px solid var(--gold-line);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-mute);
  cursor: pointer;
  transition: all 200ms ease;
}
.checkbox input:checked + span {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}
.checkbox span:hover {
  border-color: var(--gold);
  color: var(--ivory);
}
.checkbox input:focus-visible + span {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.form__actions {
  margin-top: 32px;
  text-align: center;
}
/* submit button spans the full width of the form card */
.form__actions .btn {
  width: 100%;
}
/* "What you missed" summary shown when submit fails validation */
.form__summary {
  margin: 0 0 20px;
  padding: 13px 16px;
  border: 1px solid var(--error);
  background: rgba(201, 122, 76, 0.08);
  font-family: var(--sans);
  font-size: 12.5px;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--error);
  text-align: left;
}
.form__summary[hidden] {
  display: none;
}
.form__note {
  text-align: center;
  font-size: 11.5px;
  color: var(--mute);
  margin: 18px 0 0;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* Consent opt-in checkbox */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 0;
  cursor: pointer;
  text-align: left;
}
.form__consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.form__consent-box {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--gold-line);
  transition: all 200ms ease;
  position: relative;
}
.form__consent input:checked + .form__consent-box {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}
.form__consent input:checked + .form__consent-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form__consent:hover .form__consent-box {
  border-color: var(--gold);
}
.form__consent input:focus-visible + .form__consent-box {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}
.form__consent-text {
  font-size: 11.5px;
  color: var(--mute);
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* ============== Success State ============== */
.success {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 32px 56px;
  border: 1px solid var(--gold-faint);
  background: var(--obsidian-3);
  position: relative;
  overflow: hidden;
}
.success::before,
.success::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold);
}
.success::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.success::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* Envelope stage */
.success__stage {
  position: relative;
  width: clamp(220px, 50%, 280px);
  aspect-ratio: 3 / 2;
  margin: 0 auto 36px;
  perspective: 800px;
}
.success__envelope {
  position: relative;
  width: 100%;
  height: 100%;
  color: var(--gold);
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  animation: env-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.55));
}
.envelope__svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Draw-in lines for envelope */
.env-body,
.env-flap,
.env-fold,
.env-corner {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: env-draw 1.1s ease-out 0.25s forwards;
}
.env-flap { animation-delay: 0.55s; }
.env-fold { animation-delay: 0.7s; animation-duration: 0.7s; }
.env-corner { animation-delay: 0.15s; animation-duration: 0.6s; }

/* Wax seal */
.success__seal {
  position: absolute;
  top: 62%;
  left: 50%;
  width: 30%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--obsidian);
  border: 1px solid var(--gold-line);
  transform: translate(-50%, -50%) scale(2.6) rotate(-12deg);
  opacity: 0;
  animation: seal-stamp 0.5s cubic-bezier(0.34, 1.6, 0.64, 1) 1.25s forwards;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}
.success__seal img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

/* Diagonal shine sweep */
.success__shine {
  position: absolute;
  inset: -10%;
  background: linear-gradient(115deg,
    transparent 38%,
    rgba(244, 216, 128, 0.0) 42%,
    rgba(244, 216, 128, 0.55) 50%,
    rgba(244, 216, 128, 0.0) 58%,
    transparent 62%);
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: shine-sweep 1.6s ease-out 1.7s forwards;
  opacity: 0;
}

.success__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 16px 0 14px;
  opacity: 0;
  animation: success-fade-up 0.7s ease 1.9s forwards;
}
.success__body {
  color: var(--ivory-mute);
  font-size: 15px;
  line-height: 1.75;
  max-width: 460px;
  margin: 0 auto;
  text-align: justify;
  opacity: 0;
  animation: success-fade-up 0.7s ease 2.15s forwards;
}
.success .deco-rule {
  opacity: 0;
  animation: success-fade-up 0.6s ease 1.7s forwards;
}

/* Post-RSVP calendar nudge , fades in last, once the envelope has settled */
.success__calendar {
  text-align: center;
  margin-top: clamp(22px, 4.5vw, 32px);
  opacity: 0;
  animation: success-fade-up 0.7s ease 2.7s forwards;
}
.success__calendar-label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ivory-mute);
  margin: 0 0 14px;
}
/* a touch larger than the inline event-detail link , it's the main nudge here */
.success__cal-link {
  font-size: 11px;
  padding: 12px 22px;
}

@keyframes env-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes env-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes seal-stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(2.6) rotate(-10deg); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(0.92) rotate(-2deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
@keyframes shine-sweep {
  0% { opacity: 0; transform: translateX(-120%) skewX(-12deg); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%) skewX(-12deg); }
}
@keyframes success-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== Footer ============== */
.footer {
  background: var(--obsidian);
  border-top: 1px solid var(--gold-faint);
  padding: clamp(56px, 7vw, 96px) var(--gutter) 28px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 820px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
}
.footer__mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 14px;
}
.footer__location {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.footer__heading {
  font-family: var(--serif);
  font-size: 10.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer__nav ul,
.footer__social ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__nav li {
  margin: 0 0 10px;
}
.footer__nav a {
  color: var(--ivory-mute);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.footer__nav a:hover { color: var(--gold); }

.social {
  display: flex;
  gap: 14px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.social a:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--obsidian);
  transform: translateY(-2px);
}

.footer__base {
  max-width: var(--max);
  margin: 56px auto 0;
}
.footer__legal {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 16px 0 0;
}

/* ============== Mobile polish ============== */
@media (max-width: 600px) {
  /* Topbar — keep the pilot-season tag visible on mobile, just compress */
  .topbar__inner {
    padding: 12px 16px;
    gap: 10px;
  }
  .brand__word { font-size: 11.5px; letter-spacing: 0.22em; }
  .topbar__meta {
    font-size: 9px;
    letter-spacing: 0.26em;
    text-align: right;
    flex-shrink: 1;
    min-width: 0;
  }

  /* Hero — tighten letter-spacing and downsize so the long second line of the headline fits */
  .hero__frame { inset: 22px 14px; }
  .hero__inner { padding: 0 4px; }
  .hero__eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.34em;
    margin-bottom: 22px;
  }
  .hero__logo { width: min(76vw, 382px); margin-bottom: 22px; }
  /* allow the long single-line headline to wrap on narrow phones
     instead of overflowing the viewport */
  .hero__headline-line {
    white-space: normal;
    letter-spacing: 0.06em;
  }
  .hero__headline { margin-bottom: 20px; }
  .hero__subhead {
    font-size: 11.5px;
    letter-spacing: 0.28em;
    margin-bottom: 22px;
  }
  .hero__body {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 32px;
  }
  /* drop the "Apply for the Registry" link onto its own line on mobile */
  .hero__body-cta {
    display: block;
    margin-top: 8px;
  }
  .hero__launch {
    font-size: 9.5px;
    letter-spacing: 0.28em;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    line-height: 1.5;
    text-align: center;
  }

  /* Buttons */
  .btn {
    white-space: normal;
    line-height: 1.35;
    text-align: center;
    letter-spacing: 0.22em;
    padding: 13px 20px;
    font-size: 11px;
  }
  .btn--lg {
    padding: 15px 22px;
    font-size: 11.5px;
    width: 100%;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero__cta .btn { width: 100%; padding: 20px 18px; }

  /* Section headings + body copy: keep everything centered on mobile for visual coherence */
  .section { padding: clamp(56px, 12vw, 96px) var(--gutter); }
  .section__heading {
    font-size: clamp(21px, 5vw, 30px);
    letter-spacing: 0.03em;
    margin-bottom: 26px;
  }
  .section__eyebrow { font-size: 10.5px; letter-spacing: 0.34em; margin-bottom: 26px; }
  .section__lede {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 36px;
  }
  .section__columns {
    text-align: justify;
    max-width: 460px;
    margin: 0 auto;
    font-size: 14.5px;
  }

  /* About page hero */
  .page-hero { padding: clamp(72px, 14vw, 140px) var(--gutter) clamp(40px, 8vw, 80px); }
  .page-hero__headline {
    font-size: clamp(24px, 7vw, 36px);
    letter-spacing: 0.03em;
    margin: 22px 0 20px;
  }
  .page-hero__sub { font-size: 14px; line-height: 1.7; }

  /* Contact email link */
  .contact-email a {
    font-size: clamp(15px, 4vw, 19px);
    letter-spacing: 0.06em;
  }

  /* Team frame internal spacing */
  .team__hint { font-size: 12.5px; }

  /* Form: tighter on mobile */
  .form { padding: 28px 20px; }
  /* Drop "(Select all that apply)" onto its own line under the field label */
  .field__opt {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
  /* keep the CTA heading on one line */
  .form-cta {
    font-size: clamp(13px, 4.8vw, 22px);
    letter-spacing: 0.05em;
  }
}

/* Smallest phones — center the footer too */
@media (max-width: 480px) {
  .footer__inner { text-align: center; }
  .footer__brand,
  .footer__nav,
  .footer__social { margin-inline: auto; }
  .footer__mark { margin-left: auto; margin-right: auto; }
  .social { justify-content: center; }
  .footer__nav ul { padding: 0; }
}

/* Very narrow phones — tighten topbar padding */
@media (max-width: 380px) {
  .topbar__inner {
    gap: 8px;
    padding: 10px 14px;
  }
}

/* ============== About / Contact Page ============== */
.page-hero {
  position: relative;
  padding: clamp(80px, 13vw, 160px) var(--gutter) clamp(48px, 7vw, 90px);
  background: var(--obsidian);
  text-align: center;
  overflow: hidden;
}
.page-hero__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.page-hero__headline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 28px 0 24px;
}
.page-hero__sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.7;
  color: var(--ivory-mute);
  max-width: 560px;
  margin: 0 auto 28px;
  text-align: justify;
}

.section--about { background: var(--obsidian); }

/* Team portrait placeholder */
.team {
  margin: 56px auto 0;
  max-width: 720px;
}
.team__frame {
  position: relative;
  background: var(--obsidian-3);
  border: 1px solid var(--gold-faint);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  text-align: center;
}
.team__frame::before,
.team__frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
}
.team__frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.team__frame::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.team__silhouette {
  width: clamp(180px, 42%, 280px);
  height: auto;
  color: var(--gold);
  opacity: 0.35;
  margin: 0 auto 24px;
  display: block;
}
.team__label {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.team__hint {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ivory-mute);
  max-width: 380px;
  margin: 0 auto;
  text-align: justify;
}

/* Contact email — secondary option below the form */
.contact-email {
  text-align: center;
  margin: clamp(32px, 5vw, 52px) 0 0;
}
.contact-email__label {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ivory-mute);
  margin-bottom: 12px;
}
.contact-email a {
  font-family: var(--serif);
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: 0.1em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-faint);
  padding: 4px 2px;
  transition: border-color 220ms ease, color 220ms ease;
}
.contact-email a:hover {
  border-bottom-color: var(--gold);
  color: var(--ivory);
}

/* =========================================================
   CONFIRM ENTRY , "Genesis" private RSVP landing page
   Mobile-first, dead-end page (no nav / no footer links).
   ========================================================= */

/* Darkened cinematic full-page background */
.cg-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--obsidian);
}
.cg-bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* This source is already very dark, so only a light lift is needed to
     keep the gold chips visible while text stays legible. */
  filter: brightness(0.92) contrast(1.05) saturate(1.0);
}
.cg-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 22%, rgba(212, 175, 55, 0.12), transparent 60%),
    linear-gradient(to bottom, rgba(6, 6, 6, 0.55) 0%, rgba(6, 6, 6, 0.32) 42%, rgba(6, 6, 6, 0.82) 100%);
}

/* Prevent any rogue horizontal scroll on this focused page.
   Transparent so the fixed .cg-bg (z-index:-2) is not occluded by the
   body's own opaque background , <html> keeps the obsidian fallback. */
.cg-page {
  overflow-x: hidden;
  background: transparent;
}

/* Single centred column , compact so the page targets one phone screen */
.cg {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 48px) var(--gutter) clamp(24px, 5vw, 48px);
}

.cg__logo {
  width: min(98px, 27%);
  margin: 0 auto clamp(8px, 2.5vw, 14px);
}

/* "You're in" badge */
.cg-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto clamp(10px, 2.5vw, 14px);
  padding: 6px 14px;
  border: 1px solid var(--gold-line);
  background: rgba(212, 175, 55, 0.06);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.cg-badge svg { flex: none; }

/* Gold-gradient hero headline */
.cg__headline {
  font-family: var(--serif);
  font-weight: 700;
  /* sized to stay on a single line across phone widths and within the fixed-width column */
  font-size: clamp(15px, 5.7vw, 26px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  margin: 0 0 10px;
  /* Solid gold first — if background-clip:text is unsupported (or fails) the
     title stays gold instead of going transparent/brown. The clipped gradient
     is layered on top only where supported, via @supports below. */
  color: var(--gold);
  background: linear-gradient(180deg, #f6dd8a 0%, #e8c766 28%, #d4af37 58%, #c79a32 100%);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .cg__headline {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.cg__subhead {
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(10px, 2.7vw, 12px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ivory);
  line-height: 1.5;
  max-width: 54ch;
  margin: 0 auto clamp(16px, 4vw, 22px);
}

/* ===== Event Intelligence chip (the review-first block) =====
   Deliberately warmer/gold so it reads as the "invitation" panel,
   visually distinct from the dark Secure Entry form below it. */
.cg-event {
  position: relative;
  border: 1px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.17) 0%, rgba(212, 175, 55, 0.07) 100%);
  box-shadow: inset 0 0 36px rgba(212, 175, 55, 0.10);
  padding: clamp(14px, 4vw, 22px) clamp(16px, 4.5vw, 26px);
  margin-bottom: clamp(16px, 4vw, 24px);
}
.cg-event::before,
.cg-event::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid var(--gold);
}
.cg-event::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.cg-event::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.cg-event__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 clamp(14px, 3.5vw, 18px);
}
.cg-event__rule {
  height: 1px;
  width: clamp(20px, 12vw, 56px);
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
}
.cg-event__grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 0;
}
.cg-event__cell { min-width: 0; padding-right: 16px; }
.cg-event__cell + .cg-event__cell {
  padding-right: 0;
  padding-left: 16px;
  border-left: 1px solid var(--gold-line);
}
.cg-event__label {
  display: block;
  font-family: var(--serif);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
/* date + venue name share one size so they read as a matched pair */
.cg-event__value {
  display: block;
  color: var(--ivory);
}
.cg-event__value--date,
.cg-event__value--venue {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(15px, 4.3vw, 19px);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.cg-event__addr {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ivory-mute);
  margin-top: 4px;
}

/* both action buttons sit on one shared, aligned row under the details */
.cg-event__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: clamp(10px, 3vw, 16px);
  margin-top: clamp(14px, 3.5vw, 18px);
  padding-top: clamp(14px, 3.5vw, 18px);
  border-top: 1px solid var(--gold-line);
}
/* outlined pill buttons that fill gold on hover */
.cg-eventlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(6, 6, 6, 0.34);
  border: 1px solid var(--gold-line);
  padding: 10px 16px;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.cg-eventlink svg { flex: none; }
.cg-eventlink:hover {
  color: var(--obsidian);
  background: var(--gold);
  border-color: var(--gold);
}
.cg-event__teaser {
  font-style: italic;
  font-size: clamp(10px, 2.9vw, 12px);
  line-height: 1.5;
  color: var(--ivory-mute);
  text-align: center;
  margin: clamp(12px, 3vw, 16px) 0 0;
}

/* ===== Secure Entry card (one unified form) ===== */
.cg-card {
  position: relative;
  border: 1px solid var(--gold-faint);
  background: rgba(10, 10, 11, 0.74);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  padding: clamp(18px, 4.5vw, 28px);
}
.cg-card::before,
.cg-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
}
.cg-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.cg-card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.cg-card__title {
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(16px, 4.4vw, 20px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0 0 3px;
}
.cg-card__eyebrow {
  text-align: center;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 clamp(14px, 3.5vw, 18px);
}

/* Boxed form fields (override the site's underline style within .cg) */
.cg .field { margin-bottom: 12px; }
.cg .field__label { margin-bottom: 6px; }
.cg .field input {
  border: 1px solid var(--gold-line);
  background: rgba(6, 6, 6, 0.55);
  padding: 12px 14px;
}
.cg .field input:focus {
  border-color: var(--gold);
  background: rgba(6, 6, 6, 0.8);
}
.cg .field.is-invalid input { border-color: var(--error); }

/* Format selection , inside the form card */
.cg-toggle {
  border: none;
  padding: 0;
  margin: 0 0 12px;
}
.cg-toggle .radio-group { margin-top: 8px; gap: 8px; align-items: stretch; }
/* three equal-width / equal-height pills; text centres and wraps inside */
.cg-toggle .radio { min-width: 0; flex: 1 1 0; display: flex; }
.cg-toggle .radio span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 8px 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.25;
}

/* Consent , inside the form card, directly above the button */
.cg-consent { margin-top: 4px; }
.cg-consent .form__consent { margin-top: 0; }
.cg-consent .form__consent-text { font-size: 11px; line-height: 1.55; }
.cg-privacy-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.cg-privacy-link:hover { color: var(--ivory); }

.cg .form__actions { margin-top: 16px; }
.cg .btn--lg { padding: 14px 28px; }

/* Link-free footer , brand statement moved here */
.cg-footer {
  margin-top: clamp(28px, 7vw, 48px);
  text-align: center;
}
.cg-footer .deco-rule { margin: 0 auto clamp(16px, 4vw, 22px); }
.cg-footer__brand {
  font-size: 12px;
  line-height: 1.7;
  color: var(--mute);
  max-width: 52ch;
  margin: 0 auto clamp(16px, 4vw, 20px);
}
.cg-footer__legal {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-mute);
  margin: 0 0 6px;
}
.cg-footer__note {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}

/* =========================================================
   CONFIRM ENTRY , cinematic intro + envelope reveal
   Plays once on load. JS adds .cg-cinematic to <html>; it is
   skipped for no-JS and reduced-motion visitors, who simply see
   the finished page. Sequence:
     1. Fullscreen seal: a gold ring + tick draw in, then
        "Credentials Authenticated" rises.
     2. The overlay lifts away as the hero (logo / headline / the
        small permanent badge) rises , the tick "becomes" the badge.
     3. The Event Intelligence box unfolds open from a sealed seam
        (the inverse of the success-envelope draw-then-seal), then
        its details, the form and footer fade up.
   ========================================================= */

/* ---- Fullscreen authentication overlay ---- */
.cg-intro { display: none; }

.cg-cinematic .cg-intro {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, rgba(212, 175, 55, 0.10), transparent 62%),
    var(--obsidian);
  /* hold opaque on the seal, then lift away and hand off to the page */
  animation: cg-intro-out 0.65s ease 3.0s forwards;
}
.cg-intro__inner {
  text-align: center;
  animation: cg-intro-inner-out 0.65s cubic-bezier(0.4, 0, 0.2, 1) 3.0s forwards;
}
.cg-intro__eyebrow {
  display: block;
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  margin: 0 0 clamp(20px, 5vw, 30px);
  animation: cg-fade-in 0.6s ease 0.15s forwards;
}
.cg-intro__seal {
  position: relative;
  width: clamp(96px, 26vw, 130px);
  aspect-ratio: 1;
  margin: 0 auto;
  color: var(--gold);
}
.cg-intro__svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 22px rgba(212, 175, 55, 0.25));
}
.cg-intro__ring {
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transform-origin: 60px 60px;
  transform: rotate(-90deg);
  animation: cg-draw 0.7s ease-out 0.3s forwards;
}
.cg-intro__check {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: cg-draw 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.85s forwards;
}
.cg-intro__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  opacity: 0;
  animation: cg-intro-pulse 1.1s ease-out 1.1s 1;
}
.cg-intro__label {
  font-family: var(--serif);
  font-size: clamp(13px, 4vw, 17px);
  line-height: 1.5;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: clamp(22px, 5.5vw, 32px) 0 0;
  opacity: 0;
  animation: cg-fade-up 0.6s ease 1.3s forwards;
}

/* ---- Page content: held hidden until the overlay hands off ---- */
.cg-cinematic .cg__logo,
.cg-cinematic .cg__headline,
.cg-cinematic .cg__subhead,
.cg-cinematic .cg-form,
.cg-cinematic .cg-footer {
  opacity: 0;
  animation: cg-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cg-cinematic .cg__logo     { animation-delay: 3.35s; }
.cg-cinematic .cg__headline { animation-delay: 3.50s; }
.cg-cinematic .cg__subhead  { animation-delay: 3.78s; }
/* extra ~1s beat after the event details before the form appears */
.cg-cinematic .cg-form      { animation-delay: 7.05s; }
.cg-cinematic .cg-footer    { animation-delay: 7.25s; }

/* ---- Event Intelligence: emerges from a drawn envelope ----
   Same gold line-art envelope as the success animation: it draws
   itself in, then lifts away as the details slide up out of it. */
.cg-letter { position: relative; }

/* the envelope graphic (only shown during the cinematic intro) */
.cg-letter__env { display: none; }
.cg-cinematic .cg-letter__env {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(300px, 88%);
  aspect-ratio: 3 / 2;
  color: var(--gold);
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
  animation:
    cg-fade-in 0.45s ease 4.1s forwards,
    cg-le-lift 0.7s cubic-bezier(0.4, 0, 0.2, 1) 5.2s forwards;
}
.cg-letter__svg { width: 100%; height: 100%; display: block; }

/* draw-in strokes for the envelope (mirrors the success env-draw) */
.cg-cinematic .cg-le-body,
.cg-cinematic .cg-le-flap,
.cg-cinematic .cg-le-fold,
.cg-cinematic .cg-le-corner {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: cg-draw 0.75s ease-out 4.2s forwards;
}
.cg-cinematic .cg-le-corner { animation-duration: 0.5s; animation-delay: 4.15s; }
.cg-cinematic .cg-le-flap   { animation-delay: 4.45s; animation-duration: 0.55s; }
.cg-cinematic .cg-le-fold   { animation-delay: 4.6s;  animation-duration: 0.5s; }

/* the event card = the letter, sliding up out of the envelope */
.cg-cinematic .cg-event {
  z-index: 2;
  opacity: 0;
  transform: translateY(46px) scale(0.96);
  transform-origin: top center;
  clip-path: inset(40% 0 0 0);
  animation: cg-letter-rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) 5.15s forwards;
}
/* the details ride in once the letter is clear of the envelope */
.cg-cinematic .cg-event__inner {
  opacity: 0;
  animation: cg-fade-up 0.55s ease 5.85s forwards;
}

@keyframes cg-draw   { to { stroke-dashoffset: 0; } }
@keyframes cg-fade-in { to { opacity: 1; } }
@keyframes cg-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cg-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cg-intro-pulse {
  0%   { opacity: 0.7; transform: scale(0.72); }
  100% { opacity: 0;   transform: scale(1.5); }
}
@keyframes cg-intro-out {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes cg-intro-inner-out {
  to { opacity: 0; transform: translateY(-26px) scale(0.82); }
}
@keyframes cg-letter-rise {
  0%   { opacity: 0; transform: translateY(46px) scale(0.96); clip-path: inset(40% 0 0 0); }
  45%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0)    scale(1);    clip-path: inset(0 0 0 0); }
}
@keyframes cg-le-lift {
  to { opacity: 0; transform: translate(-50%, -120%) scale(1.04); }
}

/* ============== Modal (AHP Elite Privacy Standard) ============== */
body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 40px);
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 240ms ease;
}
.modal.is-open .modal__overlay { opacity: 1; }
.modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--obsidian-2);
  border: 1px solid var(--gold-line);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 280ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.is-open .modal__dialog { opacity: 1; transform: translateY(0) scale(1); }
.modal__dialog::before,
.modal__dialog::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.modal__dialog::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.modal__dialog::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.modal__head {
  position: sticky;
  top: 0;
  flex: none;
  padding: 22px 56px 16px;
  border-bottom: 1px solid var(--gold-faint);
  background: var(--obsidian-2);
}
.modal__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(15px, 4.6vw, 20px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold-line);
  background: transparent;
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.modal__close:hover { background: var(--gold); color: var(--obsidian); border-color: var(--gold); }
.modal__close:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }

.modal__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(22px, 5vw, 34px);
  text-align: left;
  scrollbar-color: var(--gold-line) transparent;
}
.modal__body::-webkit-scrollbar { width: 10px; }
.modal__body::-webkit-scrollbar-track { background: transparent; }
.modal__body::-webkit-scrollbar-thumb {
  background: var(--gold-line);
  border: 3px solid var(--obsidian-2);
}

/* Shared privacy typography (used inside the modal) */
.privacy__h {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 28px 0 10px;
}
.privacy__h:first-child { margin-top: 0; }
.privacy__p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ivory-mute);
  margin: 0 0 12px;
}
.privacy__p--foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--gold-faint);
  font-style: italic;
  font-size: 13px;
}
.privacy__list {
  margin: 0 0 12px;
  padding-left: 20px;
  list-style: none;
}
.privacy__list li {
  position: relative;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ivory-mute);
  margin-bottom: 10px;
  padding-left: 4px;
}
.privacy__list li::before {
  content: "\25C6";
  position: absolute;
  left: -18px;
  top: 1px;
  font-size: 8px;
  color: var(--gold);
}
.privacy__list strong { color: var(--ivory); font-weight: 600; }

/* =========================================================
   EVENTS , upcoming events carousel + RSVP modal
   (standalone page; not yet linked in the main nav)
   ========================================================= */

/* Tighter vertical rhythm than the About page , the carousel doesn't
   need the big editorial whitespace around the hero. */
.events-page .page-hero {
  padding-top: clamp(40px, 7vw, 78px);
  padding-bottom: clamp(18px, 3.5vw, 32px);
}
.events-page .section--registry {
  padding-top: clamp(10px, 2.5vw, 24px);
  padding-bottom: clamp(40px, 7vw, 80px);
}

.ev-section__intro {
  text-align: center;
  color: var(--ivory-mute);
  font-size: 15px;
  line-height: 1.7;
  max-width: 54ch;
  margin: clamp(-12px, -1vw, -4px) auto clamp(28px, 5vw, 44px);
}

/* horizontal swipe carousel */
.ev-carousel {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}
.ev-carousel[hidden] { display: none; }

.ev-track {
  display: flex;
  gap: clamp(16px, 3vw, 24px);
  overflow-x: auto;
  /* proximity (not mandatory) so wheel scrolling stays smooth and only
     settles onto a card when you come to rest near one */
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 6px;
  padding: 8px 6px 16px;
  /* visible slim gold scrollbar , doubles as a "how many events" indicator */
  scrollbar-width: thin;
  scrollbar-color: var(--gold-line) rgba(212, 175, 55, 0.08);
}
.ev-track::-webkit-scrollbar { height: 8px; }
.ev-track::-webkit-scrollbar-track {
  background: rgba(212, 175, 55, 0.08);
  border-radius: 4px;
}
.ev-track::-webkit-scrollbar-thumb {
  background: var(--gold-line);
  border-radius: 4px;
}
.ev-track::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.ev-card {
  position: relative;
  flex: 0 0 min(340px, 82vw);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.17) 0%, rgba(212, 175, 55, 0.07) 100%);
  box-shadow: inset 0 0 36px rgba(212, 175, 55, 0.10);
  padding: clamp(22px, 4.5vw, 30px);
}
.ev-card::before,
.ev-card::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid var(--gold);
}
.ev-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.ev-card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.ev-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 clamp(12px, 3vw, 16px);
}
.ev-card__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
}
.ev-card__date {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 5vw, 26px);
  letter-spacing: 0.02em;
  color: var(--ivory);
  text-align: center;
  margin: 0 0 clamp(16px, 4vw, 22px);
}
.ev-card__venue {
  text-align: center;
  padding: clamp(14px, 3.5vw, 18px) 0;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  margin-bottom: clamp(14px, 3.5vw, 18px);
}
.ev-card__venue-label {
  display: block;
  font-family: var(--serif);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
.ev-card__venue-name {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(15px, 4vw, 18px);
  color: var(--ivory);
  line-height: 1.25;
}
.ev-card__venue-addr {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ivory-mute);
  margin-top: 5px;
}
.ev-card__teaser {
  font-style: italic;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ivory-mute);
  text-align: center;
  margin: 0 0 clamp(16px, 4vw, 20px);
}
.ev-card__teaser[hidden] { display: none; }
/* button hugs the bottom so every card's CTA aligns */
.ev-card__rsvp {
  width: 100%;
  margin-top: auto;
}

/* spec list (prizepool / buy-in / blinds / capacity …) , shared by card + modal */
.ev-card__specs,
.ev-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 0;
}
.ev-card__specs[hidden],
.ev-specs[hidden] { display: none; }
.ev-card__specs dt,
.ev-specs dt {
  font-family: var(--serif);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  padding: 9px 16px 9px 0;
  border-top: 1px solid var(--gold-faint);
  align-self: center;
}
.ev-card__specs dd,
.ev-specs dd {
  margin: 0;
  text-align: right;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  color: var(--ivory);
  padding: 9px 0;
  border-top: 1px solid var(--gold-faint);
  align-self: center;
}
/* on the card, sit between the venue block and the teaser/button */
.ev-card__specs { margin-bottom: clamp(14px, 3.5vw, 18px); }
/* in the modal, separate from the venue/date grid above */
.ev-specs { margin-top: clamp(14px, 3.5vw, 18px); }

.ev-empty {
  text-align: center;
  color: var(--ivory-mute);
  font-size: 15px;
  padding: clamp(20px, 5vw, 40px) var(--gutter);
}
.ev-empty[hidden] { display: none; }

/* ----- Event RSVP modal contents ----- */
.ev-detail {
  border: 1px solid var(--gold-line);
  background: rgba(212, 175, 55, 0.05);
  padding: clamp(16px, 4vw, 22px);
  margin-bottom: clamp(22px, 5vw, 30px);
}
.ev-detail[hidden] { display: none; }
.ev-detail__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
}
.ev-detail__cell { min-width: 0; padding-right: 16px; }
.ev-detail__cell + .ev-detail__cell {
  padding-right: 0;
  padding-left: 16px;
  border-left: 1px solid var(--gold-line);
}
.ev-detail__label {
  display: block;
  font-family: var(--serif);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.ev-detail__value {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(15px, 4vw, 18px);
  color: var(--ivory);
  line-height: 1.25;
}
.ev-detail__addr {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ivory-mute);
  margin-top: 5px;
}
.ev-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 3vw, 16px);
  margin-top: clamp(14px, 3.5vw, 18px);
  padding-top: clamp(14px, 3.5vw, 18px);
  border-top: 1px solid var(--gold-line);
}
.ev-detail__actions .cg-eventlink { flex: 1 1 auto; }
.ev-detail__teaser {
  font-style: italic;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ivory-mute);
  text-align: center;
  margin: clamp(12px, 3vw, 16px) 0 0;
}
.ev-detail__teaser[hidden] { display: none; }

.ev-form__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 clamp(16px, 4vw, 22px);
}
.ev-form .field { margin-bottom: clamp(16px, 4vw, 20px); }
.ev-form[hidden] { display: none; }

.ev-success {
  text-align: center;
  padding: clamp(8px, 3vw, 20px) 0;
}
.ev-success[hidden] { display: none; }
.ev-success .deco-rule { margin: 0 auto clamp(14px, 3vw, 20px); }

/* ============== Scroll-triggered fade-up ============== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 950ms cubic-bezier(0.16, 1, 0.3, 1), transform 950ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-up.is-in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-stagger] > .fade-up:nth-child(1) { transition-delay: 0ms; }
[data-stagger] > .fade-up:nth-child(2) { transition-delay: 140ms; }
[data-stagger] > .fade-up:nth-child(3) { transition-delay: 280ms; }
[data-stagger] > .fade-up:nth-child(4) { transition-delay: 420ms; }

/* Scroll lock while the cinematic intro overlay is on screen */
html.cg-lock,
html.cg-lock body { overflow: hidden; }

/* ============== Reduced Motion ============== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Defensive: never trap a reduced-motion visitor behind the overlay
     or a frozen-hidden element (the intro is normally skipped for them). */
  .cg-intro,
  .cg-letter__env { display: none !important; }
  .cg-cinematic .cg__logo,
  .cg-cinematic .cg__headline,
  .cg-cinematic .cg__subhead,
  .cg-cinematic .cg-form,
  .cg-cinematic .cg-footer,
  .cg-cinematic .cg-event,
  .cg-cinematic .cg-event__inner {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  /* Success state animates in via opacity:0 + keyframes; with animations off
     it must still be shown (incl. the post-RSVP calendar nudge). */
  .success__title,
  .success__body,
  .success .deco-rule,
  .success__calendar {
    opacity: 1 !important;
    transform: none !important;
  }
}
