/* ==========================================================================
   31 Labels — Mumbai Pop-Up landing page
   ========================================================================== */

:root {
  --ink: #141210;
  --ink-2: #2a2622;
  --paper: #f6f2ec;
  --paper-2: #eee8df;
  --stone: #e3dbcf;
  --muted: #625b52;
  --taupe: #75644f;
  --line: rgba(20, 18, 16, .14);
  --line-light: rgba(246, 242, 236, .22);
  --error: #a3271c;
  --success: #2f6b45;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --section: clamp(80px, 12vw, 168px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.01em;
  font-size: clamp(2.6rem, 7.4vw, 6.4rem);
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 400; }
.display--lg { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.04; }
.display--md { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.06; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75em; flex-wrap: wrap;
  font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: rgba(246, 242, 236, .86); }
.eyebrow__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.lede { font-size: clamp(1rem, 1.25vw, 1.125rem); font-weight: 300; color: var(--muted); max-width: 34em; margin-top: 1.6rem; }
.lede--center { margin-inline: auto; text-align: center; }

.text-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.text-link--light { color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  min-height: 56px; padding: 0 2rem;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  border-radius: var(--radius);
  font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --bg: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn--dark { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--light:hover { --bg: #fff; --bd: #fff; }
.btn--ghost-light { --bg: transparent; --fg: var(--paper); --bd: rgba(246, 242, 236, .55); }
.btn--ghost-light:hover { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 1.15rem; font-size: .7rem; }
.btn--block { width: 100%; }
.btn__arrow, .btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .35s var(--ease); flex: none; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn__spinner {
  position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  border: 1.5px solid rgba(246, 242, 236, .35); border-top-color: var(--paper); border-radius: 50%;
  opacity: 0; animation: spin .8s linear infinite; pointer-events: none;
}
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading .btn__spinner { opacity: 1; }
.btn[disabled] { cursor: not-allowed; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Media with graceful fallback ---------- */
.media { position: relative; overflow: hidden; background: var(--stone); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { opacity: 0; }
.media.is-missing::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255, 255, 255, .55), transparent 60%),
    linear-gradient(160deg, #e9e1d4 0%, #d9cdbb 55%, #c9baa4 100%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-h);
  color: var(--paper);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header__inner {
  height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; color: inherit; }
.brand__logo { width: 92px; height: 28px; fill: currentColor; }
.site-header.is-solid {
  background: rgba(246, 242, 236, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .btn--ghost-light { --fg: var(--ink); --bd: var(--ink); }
.site-header.is-solid .btn--ghost-light:hover { --bg: var(--ink); --fg: var(--paper); }

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--paper); background: var(--ink);
  padding: calc(var(--header-h) + 32px) 0 clamp(56px, 9vh, 104px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.hero__media img { animation: heroZoom 14s var(--ease) both; }
.hero__media.is-missing::after {
  background:
    radial-gradient(90% 70% at 78% 18%, rgba(196, 176, 150, .28), transparent 60%),
    radial-gradient(70% 60% at 10% 90%, rgba(117, 100, 79, .35), transparent 60%),
    linear-gradient(180deg, #221e1a, #141210);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 18, 16, .55) 0%, rgba(20, 18, 16, 0) 22%),
    linear-gradient(0deg, rgba(20, 18, 16, .92) 0%, rgba(20, 18, 16, .62) 38%, rgba(20, 18, 16, .12) 70%);
}
.hero__content { position: relative; }
.hero__title { max-width: 13ch; }
.hero__lede { font-weight: 300; font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 36em; margin-top: 1.6rem; color: rgba(246, 242, 236, .86); }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin-top: 2.2rem; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
}
.hero__facts > div { padding: 1rem 2.2rem 1rem 0; }
.hero__facts > div + div { padding-left: 2.2rem; border-left: 1px solid var(--line-light); }
.hero__facts dt { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(246, 242, 236, .6); margin-bottom: .25rem; }
.hero__facts dd { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }

.hero__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero__note { font-size: .78rem; letter-spacing: .04em; color: rgba(246, 242, 236, .7); }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 9vh, 104px);
  width: 1px; height: 72px; background: var(--line-light); overflow: hidden;
}
.hero__scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--paper); animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }

@media (max-width: 767px) {
  .hero { padding-bottom: 40px; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .hero__lede { font-size: .98rem; margin-top: 1.1rem; }
  .hero .eyebrow { letter-spacing: .2em; gap: .6em; }
  .hero .eyebrow__dot { display: none; }
  .hero__facts { grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }
  .hero__facts > div { padding: .75rem 0; }
  .hero__facts > div + div { padding-left: 1rem; }
  .hero__facts > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .hero__facts dd { font-size: 1.05rem; }
  .hero__actions { margin-top: 1.5rem; gap: .8rem; }
  .hero__actions .btn { width: 100%; }
  .hero__note { width: 100%; text-align: center; }
  .hero__scroll { display: none; }
}

/* ---------- 2 · Experience ---------- */
.experience__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.pillars { margin-top: 3rem; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.pillar__num { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--taupe); line-height: 1.6; }
.pillar__title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.2; margin-bottom: .35rem; }
.pillar p { color: var(--muted); font-weight: 300; max-width: 30em; }

.experience__media { position: relative; padding-bottom: 18%; }
.media--tall { aspect-ratio: 4 / 5; width: 82%; margin-left: auto; }
.media--offset { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5; box-shadow: 0 0 0 10px var(--paper); }

@media (max-width: 899px) {
  .experience__grid { grid-template-columns: 1fr; }
  .experience__media { order: -1; padding-bottom: 22%; }
  .media--tall { width: 78%; }
  .media--offset { width: 48%; box-shadow: 0 0 0 6px var(--paper); }
}

/* ---------- 3 · Discover ---------- */
.discover { background: var(--paper-2); padding-bottom: calc(var(--section) * .8); }
.discover__head { text-align: center; max-width: 920px; margin-inline: auto; }
.discover__head .eyebrow { justify-content: center; }
.discover__head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

.discover__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px);
  margin-top: clamp(48px, 7vw, 96px);
}
.look { position: relative; }
.look .media { aspect-ratio: 3 / 4; }
.look:nth-child(2) { transform: translateY(clamp(24px, 5vw, 72px)); }
.look figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: .9rem; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.look figcaption span:first-child { font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-style: italic; }
.look .media img { transition: transform 1.2s var(--ease); }
.look:hover .media img { transform: scale(1.04); }

@media (max-width: 767px) {
  .discover__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none;
  }
  .discover__grid::-webkit-scrollbar { display: none; }
  .look { scroll-snap-align: start; }
  .look:nth-child(2) { transform: none; }
}

.marquee {
  margin-top: clamp(72px, 10vw, 144px);
  border-block: 1px solid var(--line);
  padding-block: 1.4rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); font-style: italic; white-space: nowrap; padding-inline: 1.4rem; display: inline-flex; align-items: center; gap: 2.8rem; }
.marquee__item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--taupe); opacity: .7; margin-left: 1.4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(56px, 7vw, 96px); }
.promise h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; margin-bottom: .6rem; }
.promise li { border-top: 1px solid var(--ink); padding-top: 1.4rem; }
.promise p { color: var(--muted); font-weight: 300; font-size: .95rem; }
@media (max-width: 767px) { .promise { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 4 · Details ---------- */
.details { background: var(--ink); color: var(--paper); }
.details__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.details__date { display: flex; align-items: flex-end; gap: 1rem; margin-top: 2.6rem; font-family: var(--serif); }
.details__day { font-size: clamp(7rem, 16vw, 13rem); line-height: .78; font-weight: 400; letter-spacing: -.03em; }
.details__month { font-size: clamp(1.2rem, 2vw, 1.6rem); font-style: italic; line-height: 1.15; color: rgba(246, 242, 236, .75); padding-bottom: .4rem; }
.details__list { border-top: 1px solid var(--line-light); }
.details__row { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line-light); }
.details__row dt { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(246, 242, 236, .6); padding-top: .45rem; }
.details__row dd { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.35; }
.details__sub { display: block; font-family: var(--sans); font-size: .9rem; font-weight: 300; color: rgba(246, 242, 236, .7); margin-top: .35rem; line-height: 1.5; }
.details__row .text-link { display: inline-block; margin-top: .8rem; }
.details__cta { padding-top: 2rem; }
@media (max-width: 899px) {
  .details__grid { grid-template-columns: 1fr; }
  .details__date { margin-top: 1.6rem; }
}
@media (max-width: 520px) {
  .details__row { grid-template-columns: 1fr; gap: .2rem; padding: 1.2rem 0; }
  .details__row dt { padding-top: 0; }
  .details__cta .btn { width: 100%; }
}

/* ---------- 5 · Offer ---------- */
.offer { background: var(--paper); }
.offer__card {
  position: relative; text-align: center; max-width: 880px; margin-inline: auto;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px);
  border: 1px solid var(--line);
}
.offer__card::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }
.offer__card .eyebrow { justify-content: center; }
.offer__card .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.offer__figure {
  display: flex; justify-content: center; align-items: flex-start; gap: .3rem;
  font-family: var(--serif); font-weight: 400; line-height: .85; letter-spacing: -.03em;
  font-size: clamp(6rem, 18vw, 11rem); margin-bottom: 1.6rem;
}
.offer__figure small { font-size: .2em; font-style: italic; letter-spacing: 0; padding-top: .5em; }
.offer__card .btn { margin-top: 2.4rem; }
.offer__terms { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); text-align: left; max-width: 520px; margin-inline: auto; }
.offer__terms-title { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); font-weight: 500; margin-bottom: .6rem; text-align: center; }
.offer__terms li, .modal__terms li { position: relative; padding-left: 1rem; font-size: .82rem; color: var(--muted); line-height: 1.6; }
.offer__terms li::before, .modal__terms li::before { content: "–"; position: absolute; left: 0; }
@media (max-width: 520px) { .offer__card .btn { width: 100%; padding-inline: 1rem; } .btn { letter-spacing: .14em; } }

/* ---------- 6 · Register ---------- */
.register { background: var(--paper-2); outline: none; }
.register__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 112px); align-items: stretch; }
.register__media { min-height: 560px; }
.register__badge {
  position: absolute; left: 24px; bottom: 24px; z-index: 1;
  display: flex; align-items: center; gap: .9rem;
  background: var(--paper); color: var(--ink); padding: 1rem 1.3rem; border-radius: var(--radius);
}
.register__badge span { font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.register__badge small { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1.5; color: var(--muted); }
.register__panel { align-self: center; max-width: 560px; }

.form { margin-top: 2.6rem; display: grid; gap: 1.35rem; }
.field label { display: block; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin-bottom: .55rem; }
.field input {
  width: 100%; height: 56px; padding: 0 1.1rem;
  font: 400 1rem/1 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #9a9187; }
.field input:hover { border-color: rgba(20, 18, 16, .35); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 18, 16, .08); background: #fff; }
.field.is-invalid input { border-color: var(--error); box-shadow: 0 0 0 3px rgba(163, 39, 28, .08); }
.field.is-valid input { border-color: rgba(47, 107, 69, .55); }
.field__phone { position: relative; }
.field__phone input { padding-left: 4rem; }
.field__prefix {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3.1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: var(--muted); border-right: 1px solid var(--line);
}
.field__error { font-size: .8rem; color: var(--error); margin-top: .45rem; min-height: 0; }
.field__error:empty { display: none; }

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

.form__status { font-size: .88rem; padding: .9rem 1rem; border-left: 2px solid var(--error); background: rgba(163, 39, 28, .06); color: var(--error); }
.form .btn { margin-top: .4rem; min-height: 60px; }
.form__consent { font-size: .76rem; line-height: 1.6; color: var(--muted); }
.form__consent a { color: var(--ink); }

@media (max-width: 899px) {
  .register__grid { grid-template-columns: 1fr; }
  .register__media { display: none; }
  .register__panel { max-width: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246, 242, 236, .75); padding: 72px 0 calc(48px + env(safe-area-inset-bottom)); text-align: center; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.site-footer__logo { width: 120px; height: 37px; fill: var(--paper); }
.site-footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--paper); }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.8rem; margin-top: .6rem; }
.site-footer__links a { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.site-footer__links a:hover { color: var(--paper); }
.site-footer__legal { font-size: .72rem; color: rgba(246, 242, 236, .5); margin-top: 1rem; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .7rem .7rem 1.1rem;
  background: rgba(246, 242, 236, .96); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 12px 32px rgba(20, 18, 16, .16);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.sticky-cta strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.05rem; line-height: 1.2; }
.sticky-cta span { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.sticky-cta.is-visible { transform: none; }
@media (max-width: 899px) { .sticky-cta { display: flex; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 18, 16, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .4s var(--ease) both; }
.modal__dialog {
  position: relative; width: 100%; max-width: 500px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--paper); color: var(--ink); text-align: center;
  padding: clamp(40px, 6vw, 56px) clamp(22px, 5vw, 48px) clamp(28px, 5vw, 40px);
  border-radius: 4px; box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
  animation: rise .6s var(--ease) both;
}
.modal__dialog::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; border-radius: 2px; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 1; width: 44px; height: 44px;
  display: grid; place-items: center; background: none; border: 0; cursor: pointer; border-radius: 50%;
}
.modal__close:hover { background: rgba(20, 18, 16, .06); }
.modal__close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.modal__logo { width: 78px; height: 24px; fill: currentColor; margin: 0 auto 1.4rem; display: block; }
.modal__preview { display: inline-block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; background: #f3e3c3; color: #6b4b12; padding: .3rem .6rem; margin-bottom: 1rem; }
.modal h2 { outline: none; }
.modal__copy { color: var(--muted); font-weight: 300; margin-top: 1rem; font-size: .98rem; }

.code-card { margin-top: 1.8rem; padding: 1.6rem 1.3rem 1.2rem; background: #fff; border: 1px dashed rgba(20, 18, 16, .3); border-radius: 2px; }
.code-card__label { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; color: var(--taupe); }
.code-card__code {
  font-family: var(--sans); font-weight: 500; font-size: clamp(1.7rem, 7vw, 2.3rem); letter-spacing: .14em;
  margin: .7rem 0 1.2rem; word-break: break-all; user-select: all; -webkit-user-select: all;
}
.code-card__status { font-size: .8rem; color: var(--success); min-height: 1.3em; margin-top: .7rem; }
.modal__small { font-size: .82rem; color: var(--muted); margin-top: 1.3rem; }
.modal__terms { margin-top: .6rem; text-align: left; display: inline-block; }
.modal__when { margin-top: 1rem; }
.modal__when strong { font-weight: 500; color: var(--ink); }
.modal__back { margin-top: 1.4rem; font-size: .7rem; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }

.noscript { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: var(--paper); padding: 12px; text-align: center; z-index: 99; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
