/* =========================================================
   OPERIA · Private Members' Club, Mumbai
   Palette and type follow the Operia Typography & Brand Usage Guide v1.0
   ========================================================= */

:root {
  /* Brand palette */
  --burgundy:   #4A0E17;
  --oxblood:    #2A0910;
  --gold:       #D4AF37;
  --gold-light: #EBCF7E;
  --gold-deep:  #A8862A;
  --champagne:  #F5E9D9;
  --ivory:      #F8F5E8;
  --taupe:      #8B6B4F;
  --warm-grey:  #C9C4B8;
  --charcoal:   #2E2E2E;
  --night:      #1E060B;

  /* Roles */
  --text:       var(--champagne);
  --text-muted: rgba(245, 233, 217, .72);
  --text-faint: rgba(245, 233, 217, .45);
  --line:       rgba(212, 175, 55, .24);
  --error:      #F0A3AC;

  --gilt: linear-gradient(100deg, #B8892A 0%, #F3DC8B 42%, #D4AF37 62%, #B8892A 100%);

  /* Type */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", "Bodoni MT", Georgia, serif;
  --sans:  "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--oxblood);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Velvet grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--oxblood); }

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

.section { padding: var(--section) 0; position: relative; }
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -.005em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.1; }
h3 { font-size: 1.6rem; line-height: 1.25; }

h1 em, h2 em {
  font-style: italic;
  color: var(--gold);
  background: var(--gilt);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  margin: 24px 0 0;
  max-width: 34em;
  font-size: 1.125rem;
  color: var(--text-muted);
}
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 38px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-position .7s var(--ease), background-color .4s, color .4s, border-color .4s, transform .4s var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.btn:active { transform: translateY(1px); }

.btn--gold {
  color: var(--oxblood);
  background: linear-gradient(110deg, #B8892A 0%, #EBCF7E 30%, #D4AF37 50%, #F3DC8B 70%, #B8892A 100%);
  background-size: 220% 100%;
  background-position: 0 0;
}
.btn--gold:hover { background-position: 100% 0; }

.btn--ghost {
  color: var(--gold);
  border-color: rgba(212, 175, 55, .55);
  background: transparent;
}
.btn--ghost:hover { background-color: var(--gold); color: var(--oxblood); border-color: var(--gold); }

.btn--burgundy { color: var(--champagne); background: var(--burgundy); }
.btn--burgundy:hover { background: var(--oxblood); }

.btn--sm { padding: 11px 22px; font-size: .6875rem; }

.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  border-bottom: 1px solid transparent;
  transition: background-color .5s, border-color .5s, padding .5s var(--ease);
}
.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(30, 6, 11, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(212, 175, 55, .14);
}
.nav__inner { display: flex; align-items: center; gap: 40px; }

.nav__brand { opacity: 0; pointer-events: none; transition: opacity .5s; }
.nav__brand img { height: 44px; width: auto; }
.nav.is-scrolled .nav__brand { opacity: 1; pointer-events: auto; }

.nav__links { display: flex; gap: 36px; margin-left: auto; }
.nav__links a {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color .3s;
}
.nav__links a:hover { color: var(--gold); }
.nav__actions { display: flex; align-items: center; gap: 14px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter) clamp(150px, 20vh, 210px);
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse 65% 55% at 50% 38%, #5E1521 0%, var(--burgundy) 34%, var(--oxblood) 78%);
}

.hero__arch {
  position: absolute;
  top: 96px;
  bottom: 0;
  left: 50%;
  width: min(640px, 90vw);
  transform: translateX(-50%);
  border: 1px solid rgba(212, 175, 55, .26);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
  animation: archIn 2.2s var(--ease) both .2s;
}
.hero__arch::before {
  content: "";
  position: absolute;
  inset: 14px 14px 0;
  border: 1px solid rgba(212, 175, 55, .12);
  border-bottom: 0;
  border-radius: inherit;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__content > * { animation: rise 1.3s var(--ease) both; }
.hero__content > :nth-child(1) { animation-name: fadeIn; animation-duration: 1.8s; animation-delay: .1s; }
.hero__content > :nth-child(2) { animation-delay: .6s; }
.hero__content > :nth-child(3) { animation-delay: .8s; }
.hero__content > :nth-child(4) { animation-delay: 1s; }
.hero__content > :nth-child(5) { animation-delay: 1.2s; }

.hero__logo {
  width: clamp(190px, 21vw, 280px);
  height: auto;
  margin-bottom: clamp(28px, 4.5vh, 48px);
}

.hero h1 { margin-bottom: 24px; }
.hero__lede {
  margin: 0 auto 40px;
  max-width: 32em;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.necklace {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: clamp(120px, 22vh, 220px);
  z-index: 1;
  pointer-events: none;
}
.twinkle { animation: twinkle 3.6s ease-in-out infinite alternate; }
.twinkle--2 { animation-delay: -1.2s; }
.twinkle--3 { animation-delay: -2.4s; }

.hero__coords {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: 26px;
  margin: 0;
  font-size: .6875rem;
  letter-spacing: .24em;
  color: var(--text-faint);
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 22px;
  width: 1px;
  height: 56px;
  background: rgba(212, 175, 55, .2);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 20px;
  background: var(--gold);
  animation: scrollCue 2.4s var(--ease) infinite;
}

/* ---------- Manifesto ---------- */
.manifesto { background: var(--oxblood); }
.statement { font-size: clamp(2.6rem, 6.4vw, 4.75rem); line-height: 1.05; }

/* Wide photo band under the manifesto */
.band {
  position: relative;
  margin: clamp(56px, 8vw, 96px) 0 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--burgundy);
}
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2.4s var(--ease);
}
.band:hover img { transform: scale(1.03); }
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 85% at 50% 50%, transparent 55%, rgba(42, 9, 16, .55) 100%);
}
.band::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(212, 175, 55, .45);
}

.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 980px;
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars li {
  padding: 38px 24px;
  border-left: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--text-muted);
}
.pillars li:first-child { border-left: 0; }
.pillar__title {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.85rem;
  line-height: 1.2;
  color: var(--gold-light);
}

/* ---------- The Circle ---------- */
.circle {
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, rgba(122, 30, 45, .45), transparent 60%),
    var(--burgundy);
}
.circle::before, .circle::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .35), transparent);
}
.circle::before { top: 0; }
.circle::after { bottom: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head.center { margin-left: auto; margin-right: auto; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  padding: 44px 30px 38px;
  border: 1px solid rgba(212, 175, 55, .2);
  background: linear-gradient(180deg, rgba(42, 9, 16, .6), rgba(42, 9, 16, .2));
  transition: transform .6s var(--ease), border-color .6s, opacity 1s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .8s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(212, 175, 55, .45); }
.card:hover::before { width: 100%; }

.card__num {
  position: absolute;
  top: 24px; right: 26px;
  font-size: .6875rem;
  letter-spacing: .2em;
  color: rgba(212, 175, 55, .6);
}
.card__icon { width: 48px; height: 48px; margin-bottom: 40px; color: var(--gold); }
.card h3 { margin-bottom: 12px; }
.card p { margin: 0; font-size: .96875rem; line-height: 1.65; color: var(--text-muted); }

/* ---------- The Evenings ---------- */
.evenings { background: var(--oxblood); }

.section-head--split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px 72px;
  align-items: end;
  max-width: none;
}
.section-head--split .lede { margin: 0; }

.frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3.2vw, 44px);
}
.frame-item { margin: 0; }
.frame-item:nth-child(2) { margin-top: 72px; }

.frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: var(--burgundy);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.frame > svg,
.frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.frame-item:hover .frame > svg,
.frame-item:hover .frame > img { transform: scale(1.04); }

.frame-item figcaption { padding-top: 30px; }
.frame-item .num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}
.frame-item h3 { margin-bottom: 10px; }
.frame-item p { margin: 0; max-width: 24em; color: var(--text-muted); font-size: .96875rem; }


/* ---------- Next evening (light) ---------- */
.next {
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, var(--ivory), transparent 70%),
    var(--champagne);
  color: var(--charcoal);
}
.invite {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(52px, 7vw, 92px) clamp(24px, 6vw, 84px);
  text-align: center;
  background: var(--ivory);
  border: 1px solid rgba(212, 175, 55, .85);
  box-shadow: 0 40px 90px -50px rgba(74, 14, 23, .45);
}
.invite::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 175, 55, .45);
  pointer-events: none;
}
.eyebrow--dark { color: var(--burgundy); }
.invite__edition {
  margin: 0 0 18px;
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--taupe);
}
.invite__title {
  margin-bottom: 14px;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.05;
  color: var(--burgundy);
}
.invite__title em {
  font-style: italic;
  color: var(--burgundy);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.invite__by {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--taupe);
}
.invite__rule { width: 64px; height: 1px; margin: 38px auto; background: var(--gold); }
.invite__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 46px;
}
.invite__details dt {
  margin-bottom: 6px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--taupe);
}
.invite__details dd { margin: 0; font-size: .96875rem; font-weight: 500; color: var(--charcoal); }
.invite__note { margin: 22px 0 0; font-size: .8125rem; color: var(--taupe); }

/* ---------- How it works ---------- */
.steps { background: var(--oxblood); }
.steps__list {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin: 0;
  padding: 0;
}
.steps__list::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.steps__list li { position: relative; text-align: center; }
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px; height: 88px;
  margin: 0 auto 34px;
  border: 1px solid rgba(212, 175, 55, .5);
  border-radius: 50%;
  background: var(--oxblood);
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-light);
}
.step__num::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(212, 175, 55, .14);
  border-radius: 50%;
}
.steps__list h3 { margin-bottom: 12px; }
.steps__list p { margin: 0 auto; max-width: 22em; color: var(--text-muted); font-size: .96875rem; }

/* ---------- Application ---------- */
.apply {
  background: radial-gradient(ellipse 80% 70% at 12% 18%, #5E1521 0%, var(--burgundy) 45%, #3A0B13 100%);
}
.apply__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.apply__intro { position: relative; }

/* Door photo under the assurances */
.door {
  position: relative;
  max-width: 240px;
  margin: 40px 0 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: var(--oxblood);
}
.door img { width: 100%; height: 100%; object-fit: cover; }
.door::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.apply__assurances {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.apply__assurances li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--text-muted);
}
.apply__assurances li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.form-panel {
  padding: clamp(28px, 5vw, 60px);
  background: rgba(30, 6, 11, .55);
  border: 1px solid rgba(212, 175, 55, .22);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 32px;
}
.field { position: relative; display: flex; flex-direction: column; min-width: 0; }
.field--full, .form__actions { grid-column: 1 / -1; }

.field > label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245, 233, 217, .72);
  transition: color .3s;
}
.field:focus-within > label { color: var(--gold); }
.opt { font-weight: 500; letter-spacing: .14em; color: var(--text-faint); }

.field input,
.field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(245, 233, 217, .26);
  border-radius: 0;
  background: transparent;
  color: var(--champagne);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(245, 233, 217, .3); }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--gold); }
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--champagne);
  -webkit-box-shadow: 0 0 0 100px #2E0A11 inset;
  caret-color: var(--champagne);
}

.field > .consent {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--text-muted);
  cursor: pointer;
}
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  margin: 3px 0 0;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, .6);
  background: transparent;
  cursor: pointer;
}
.consent input[type="checkbox"]::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.consent input[type="checkbox"]:checked::after { transform: scale(1); }
.consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.field__error { display: none; margin-top: 8px; font-size: .8125rem; color: var(--error); }
.was-validated .field input:invalid,
.was-validated .field textarea:invalid { border-bottom-color: var(--error); }
.was-validated .field input:invalid ~ .field__error,
.was-validated .field textarea:invalid ~ .field__error,
.was-validated .field:has(input[type="checkbox"]:invalid) .field__error { display: block; }
.was-validated .consent input[type="checkbox"]:invalid { border-color: var(--error); }

.form__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; margin-top: 6px; }
.form__status { margin: 0; font-size: .875rem; color: var(--error); }
.form__status:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { padding: 48px 0; text-align: center; outline: none; }
.form-success svg { width: 64px; height: 64px; margin: 0 auto 28px; color: var(--gold); }
.form-success h3 { margin-bottom: 14px; font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.form-success p { margin: 0 auto; max-width: 26em; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 44px;
  background: var(--night);
  border-top: 1px solid rgba(212, 175, 55, .14);
  text-align: center;
}
.footer__mark { width: auto; height: 72px; margin: 0 auto 28px; }
.footer__tag {
  margin: 0 0 28px;
  font-size: .6875rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-wrap: balance;
}
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }
.icon-link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 50%;
  color: var(--gold);
  transition: background-color .35s, color .35s, border-color .35s, transform .35s var(--ease);
}
.icon-link svg { width: 20px; height: 20px; }
.icon-link--sm { width: 42px; height: 42px; }
.icon-link--sm svg { width: 18px; height: 18px; }
.icon-link:hover { background: var(--gold); border-color: var(--gold); color: var(--oxblood); transform: translateY(-2px); }
.icon-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.footer__legal { margin: 0; font-size: .75rem; color: var(--text-faint); }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), border-color .6s;
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal.is-visible:hover { transform: translateY(-6px); transition-delay: 0ms; }

/* ---------- Keyframes ---------- */
@keyframes rise   { from { opacity: 0; transform: translateY(18px); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(.97); } }
@keyframes archIn { from { opacity: 0; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes twinkle { from { opacity: .1; } to { opacity: 1; } }
@keyframes scrollCue { 0% { transform: translateY(-20px); } 100% { transform: translateY(56px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }

  /* Evenings: three even columns on tablet */
  .frames { gap: 20px; }
  .frame-item:nth-child(2) { margin-top: 0; }
  .frame-item figcaption { padding-top: 22px; }
  .frame-item h3 { font-size: 1.35rem; }
  .frame-item p { font-size: .9375rem; }
  .apply__grid { grid-template-columns: 1fr; }
  .apply__intro {
    display: grid;
    grid-template-columns: 1fr minmax(180px, 32%);
    column-gap: clamp(28px, 5vw, 56px);
    align-items: start;
  }
  .apply__intro > :not(.door) { grid-column: 1; }
  .door { grid-column: 2; grid-row: 1 / span 4; margin: 0; max-width: none; }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }

  .section-head--split { grid-template-columns: 1fr; gap: 0; }
  .section-head--split .lede { margin-top: 24px; }


  .steps__list { grid-template-columns: 1fr; gap: 56px; }
  .steps__list::before { display: none; }

  .hero__scroll { display: none; }
  .hero__coords { left: 0; right: 0; text-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }

  .band { aspect-ratio: 4 / 3; }
  .band::after { inset: 8px; }

  /* Apply: door photo sits centred below the intro on phones */
  .apply__intro { display: block; }
  .door { width: 64%; max-width: 260px; margin: 40px auto 0; }

  /* Evenings: stacked rows, arch on the left and caption beside it */
  .frames { grid-template-columns: 1fr; gap: 32px; }
  .frame-item {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 20px;
    align-items: center;
  }
  .frame::after { inset: 6px; }
  .frame-item figcaption { padding-top: 0; }
  .frame-item .num { margin-bottom: 6px; }
  .frame-item h3 { font-size: 1.3rem; margin-bottom: 8px; }
  .frame-item p { font-size: .875rem; line-height: 1.6; }

  .pillars { grid-template-columns: 1fr; }
  .pillars li { border-left: 0; border-top: 1px solid var(--line); padding: 28px 12px; }
  .pillars li:first-child { border-top: 0; }
  .invite__details { grid-template-columns: 1fr; gap: 18px; }
  .form { grid-template-columns: 1fr; gap: 26px; }
  .form__actions .btn { width: 100%; }
  .hero h1 br { display: none; }
  .btn:not(.btn--sm) { padding: 17px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
