/* ============================================================
   TOP TRACK — landing page
   Dark premium register · single primary CTA per viewport
   Type: Gambarino (display serif) + Satoshi (body sans)
============================================================ */

:root {
  --ink:        #0b0b0c;
  --ink-2:      #131316;
  --ink-3:      #1c1c20;
  --line:       #2a2a30;
  --bone:       #f5f1ea;
  --bone-2:     #e8e1d4;
  --mute:       #8a8a92;
  --gold:       #c8a96a;
  --gold-hi:    #d8bd7e;

  --maxw:       1280px;
  --gutter:     clamp(20px, 4vw, 56px);
  --section-y:  clamp(72px, 10vw, 160px);

  --t-display:  'Gambarino', 'Times New Roman', serif;
  --t-body:     'Satoshi', system-ui, -apple-system, sans-serif;

  --ease-out:   cubic-bezier(0.16, 0.84, 0.44, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--t-body);
  font-weight: 400;
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold); }

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

/* ---------- typography utilities ---------- */
.eyebrow {
  font-family: var(--t-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 24px 0;
}
/* Eyebrow on a bright photo background needs more lift */
.hero .eyebrow {
  color: var(--gold);
  text-shadow: 0 1px 16px rgba(0,0,0,0.45);
}
.display {
  font-family: var(--t-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  z-index: 50;
  transition: background 400ms var(--ease-out), border-color 400ms var(--ease-out), backdrop-filter 400ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); }
.nav__logo  { width: 22px; height: 22px; color: var(--gold); }
.nav__wordmark {
  font-family: var(--t-body); font-weight: 700;
  letter-spacing: 0.22em; font-size: 13px;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-size: 14px; color: var(--bone-2); font-weight: 500;
  transition: color 200ms;
}
.nav__links a:hover { color: var(--bone); }
.nav__secondary { color: var(--mute) !important; }
.nav__cta {
  background: var(--bone);
  color: var(--ink) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 200ms var(--ease-out), background 200ms;
}
.nav__cta:hover { background: var(--gold-hi); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============================================================
   HERO — mobile-first (IG-bio thumb is the primary viewport)
   Mobile: image slice on top, copy slice below, zero overlap.
   Desktop (≥ 820px): full-bleed, copy floats over dark gradient.
============================================================ */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--ink);
}

/* MOBILE-FIRST: image is its own block */
.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 56svh;
  width: 100%;
  flex-shrink: 0;
  margin-top: 64px; /* clear fixed nav */
  background: var(--ink);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  filter: saturate(1.02) contrast(1.04);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(11,11,12,0.20) 0%,
      rgba(11,11,12,0) 30%,
      rgba(11,11,12,0) 60%,
      rgba(11,11,12,0.85) 92%,
      var(--ink) 100%);
  pointer-events: none;
}

/* MOBILE-FIRST: copy is its own block below the image */
.hero__content {
  position: relative; z-index: 1;
  padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column;
  flex: 1;
}

/* DESKTOP: full-bleed image, copy floats over dark right gradient */
@media (min-width: 820px) {
  .hero {
    display: block;
    min-height: 100vh; min-height: 100svh;
    padding: clamp(110px, 14vw, 160px) var(--gutter) clamp(56px, 8vw, 110px);
  }
  .hero__media {
    position: absolute; inset: 0; z-index: 0;
    height: auto; min-height: 0; max-height: none;
    aspect-ratio: auto;
    margin-top: 0;
  }
  .hero__media img { object-position: 30% 50%; transform: scale(1.02); }
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.2) 22%, rgba(11,11,12,0.18) 45%, rgba(11,11,12,0.85) 82%, rgba(11,11,12,0.97) 100%),
      linear-gradient(270deg, rgba(11,11,12,0.88) 0%, rgba(11,11,12,0.6) 28%, rgba(11,11,12,0.2) 55%, rgba(11,11,12,0) 80%);
  }
  .hero__content {
    position: relative; z-index: 1;
    max-width: 640px;
    margin-left: auto;
    text-align: right;
    padding: 0;
    min-height: calc(100vh - clamp(166px, 22vw, 270px));
    justify-content: flex-end;
  }
  .hero__content .hero__sub { margin-left: auto; }
  .hero__content .hero__ctas { justify-content: flex-end; }
}

.hero__headline {
  font-family: var(--t-display);
  font-weight: 400;
  font-size: clamp(38px, 11vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 18px 0;
}
@media (min-width: 820px) {
  .hero__headline {
    font-size: clamp(56px, 6.4vw, 92px);
    line-height: 0.98;
    margin-bottom: 28px;
  }
}
.hero__sub {
  max-width: 540px;
  font-size: clamp(15px, 4.1vw, 18px);
  color: var(--bone-2);
  margin: 0 0 24px 0;
  line-height: 1.5;
}
@media (min-width: 820px) {
  .hero__sub { font-size: 18px; margin-bottom: 32px; }
}
.hero__ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hero__trust {
  margin: 40px 0 0; font-size: 13px; color: var(--mute);
  letter-spacing: 0.04em;
}
.hero__trust strong { color: var(--gold); font-weight: 700; }

.hero__scroll {
  display: none;
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 22px; height: 38px; border: 1px solid rgba(245,241,234,0.35);
  border-radius: 12px; z-index: 2;
  justify-content: center; padding-top: 6px;
}
@media (min-width: 820px) {
  .hero__scroll { display: flex; }
}
.hero__scroll span {
  width: 2px; height: 8px; background: var(--bone);
  border-radius: 2px; animation: scrollDot 1.8s var(--ease-out) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0);  opacity: 1; }
  60%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-family: var(--t-body); font-weight: 700;
  font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 220ms var(--ease-out), background 220ms, color 220ms, box-shadow 220ms;
  cursor: pointer; border: none;
}
.btn--primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 28px -10px rgba(200, 169, 106, 0.6);
}
.btn--primary:hover {
  background: var(--gold-hi);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(200, 169, 106, 0.75);
}
.btn--primary:active { transform: translateY(0) scale(0.98); }
.btn--ghost {
  background: transparent; color: var(--bone-2);
  border-bottom: 1px solid rgba(245,241,234,0.3);
  border-radius: 0; padding: 6px 0; letter-spacing: 0.04em;
  text-transform: none; font-weight: 500; font-size: 14px;
}
.btn--ghost:hover { color: var(--bone); border-bottom-color: var(--bone); }
.btn--xl { padding: 22px 42px; font-size: 15px; }
.btn--block {
  display: flex; width: 100%;
  justify-content: center; text-align: center;
  padding: 20px 28px; font-size: 15px;
}
@media (min-width: 820px) {
  .btn--block { display: inline-flex; width: auto; }
}

/* ============================================================
   SECTIONS — generic
============================================================ */
section { position: relative; }

.why, .pillars, .proof, .faq, .final {
  padding: var(--section-y) var(--gutter);
}

/* ---------- WHY / problem ---------- */
.why__inner { max-width: 1000px; margin: 0 auto; text-align: left; }
.why__body {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--bone-2);
  max-width: 720px;
  margin: 32px 0 0 0;
  line-height: 1.6;
}

/* ---------- PILLARS ---------- */
.pillars__head { max-width: var(--maxw); margin: 0 auto clamp(48px, 7vw, 80px); }
.pillars__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; gap: clamp(48px, 9vw, 140px);
}
.pillar {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.pillar--reverse .pillar__img { order: 2; }
.pillar__img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink-2);
}
.pillar__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out);
}
.pillar:hover .pillar__img img { transform: scale(1.03); }

/* Placeholder for missing pillar image */
.pillar__img--placeholder {
  background:
    repeating-linear-gradient(135deg, var(--ink-2), var(--ink-2) 12px, var(--ink-3) 12px, var(--ink-3) 24px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  color: var(--mute);
}
.placeholder__mark {
  font-family: var(--t-display);
  font-size: clamp(72px, 9vw, 120px);
  line-height: 1;
  color: var(--gold);
  opacity: 0.55;
}
.placeholder__label {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
}
.pillar__num {
  font-family: var(--t-body); font-size: 12px;
  letter-spacing: 0.24em; color: var(--gold);
  font-weight: 500; margin: 0 0 18px 0;
}
.pillar__body h3 {
  font-family: var(--t-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  margin: 0 0 22px 0;
  letter-spacing: -0.005em;
}
.pillar__body p { color: var(--bone-2); font-size: 17px; max-width: 480px; }

@media (max-width: 820px) {
  .pillar, .pillar--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pillar--reverse .pillar__img { order: 0; }
  .pillar__img { aspect-ratio: 4/3.4; max-height: 56svh; border-radius: 6px; }
  /* Lifestyle pillar: keep "LIFE TIME" signage in frame */
  .pillar:nth-of-type(3) .pillar__img img { object-position: 50% 35%; }
  /* Business (Hermes portrait): center on Joshua */
  .pillar:nth-of-type(2) .pillar__img img { object-position: 50% 30%; }
  /* BODY placeholder is wasted space on mobile — shrink to a marker strip */
  .pillar__img--placeholder {
    aspect-ratio: auto;
    height: 96px;
    max-height: 96px;
    border-radius: 6px;
  }
  .pillar__img--placeholder .placeholder { flex-direction: row; gap: 18px; align-items: center; }
  .pillar__img--placeholder .placeholder__mark { font-size: 56px; opacity: 0.55; }
  .pillar__img--placeholder .placeholder__label { letter-spacing: 0.28em; font-size: 11px; }
  .pillar__body h3 { font-size: clamp(24px, 6.4vw, 32px); margin-bottom: 14px; }
  .pillar__body p { font-size: 16px; }
  .pillar__num { margin-bottom: 12px; }
}

/* ---------- PROOF ---------- */
.proof { background: var(--ink-2); }
.proof__inner { max-width: var(--maxw); margin: 0 auto; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin: clamp(48px, 7vw, 72px) 0 clamp(56px, 8vw, 96px);
  padding: clamp(32px, 5vw, 48px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--t-display);
  font-size: clamp(54px, 7vw, 88px);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; padding: 32px 0; gap: 32px; }
}

.testimonial {
  max-width: 880px; margin: 0 auto;
  text-align: center; padding: 0 12px;
}
.testimonial blockquote {
  font-family: var(--t-display);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.25;
  margin: 0 0 24px 0;
  color: var(--bone);
  letter-spacing: -0.005em;
  font-style: italic;
}
.testimonial figcaption {
  font-size: 13px; color: var(--mute);
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- BREAK ---------- */
.break {
  position: relative;
  height: clamp(380px, 64svh, 720px);
  overflow: hidden;
}
.break img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.break::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.55), rgba(11,11,12,0.85));
}
.break__caption {
  position: absolute; left: var(--gutter); bottom: clamp(40px, 6vw, 80px);
  z-index: 2; max-width: 560px;
}
.break__caption .eyebrow { color: var(--gold); margin-bottom: 16px; }
.break__line {
  font-family: var(--t-display);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.2; color: var(--bone);
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq__head { max-width: var(--maxw); margin: 0 auto 64px; }
.faq__list { max-width: 840px; margin: 0 auto; }
.faq__item {
  border-top: 1px solid var(--line);
  padding: 28px 4px;
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  font-family: var(--t-display);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--bone);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  transition: color 200ms;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-family: var(--t-body); font-weight: 400;
  font-size: 28px; color: var(--gold);
  transition: transform 300ms var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  margin: 18px 0 0 0;
  color: var(--bone-2);
  font-size: 16px; max-width: 680px;
  line-height: 1.6;
}
.faq__item a { color: var(--gold); border-bottom: 1px solid rgba(200,169,106,0.4); }

/* ---------- FINAL ---------- */
.final {
  position: relative;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(200,169,106,0.08), transparent 70%),
    var(--ink);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.final__bg {
  position: absolute; inset: 0;
  z-index: -1;
  overflow: hidden;
}
.final__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
  opacity: 0.18;
  filter: grayscale(0.4) contrast(0.95) brightness(0.7);
}
.final::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(11,11,12,0.55) 35%, rgba(11,11,12,0.55) 65%, var(--ink) 100%);
  z-index: -1;
}
.final__inner { position: relative; max-width: 880px; margin: 0 auto; }
.final__headline {
  font-family: var(--t-display);
  font-weight: 400;
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 28px 0;
}
.final__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--bone-2);
  max-width: 560px; margin: 0 auto 48px;
}
.final__alt { margin: 36px 0 0; color: var(--mute); font-size: 14px; }
.final__alt a { color: var(--bone-2); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.final__alt a:hover { color: var(--bone); border-bottom-color: var(--bone); }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--gutter);
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.22em; font-size: 12px;
  color: var(--bone);
}
.footer__logo { width: 18px; height: 18px; color: var(--gold); }
.footer__meta { color: var(--mute); font-size: 13px; margin: 0; }
.footer__ig { color: var(--bone-2); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.footer__ig:hover { color: var(--gold); }

/* ============================================================
   REVEAL ON SCROLL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PORTRAIT PILLAR IMAGE VARIANT (tall sources e.g. body photo)
   - Source is 944x2046 (~1:2.17). Wrapper must stay tall enough
     that object-fit: cover doesn't crop the subject horizontally
     and make proportions look squashed.
============================================================ */
.pillar__img--portrait {
  aspect-ratio: 3 / 4;
  max-height: 720px;
  background: var(--ink-2);
}
.pillar__img--portrait img { object-position: 50% 20%; }
@media (max-width: 820px) {
  /* Use a portrait ratio close to the source so we crop top/bottom
     only, never sides. Cap height so it doesn't dominate the screen. */
  .pillar__img--portrait {
    aspect-ratio: 3 / 4.6;
    max-height: 70svh;
  }
  .pillar__img--portrait img { object-position: 50% 15%; }
}

/* ============================================================
   STICKY MOBILE CTA BAR
   - Appears below hero on mobile only
   - Hides when final CTA is in view
============================================================ */
.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 11, 12, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid rgba(232, 226, 213, 0.08);
  transform: translateY(120%);
  transition: transform 320ms var(--ease-out), opacity 200ms ease;
  opacity: 0;
  pointer-events: none;
  display: none;
}
.stickybar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.stickybar__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stickybar__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.stickybar__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 106, 0.18);
  flex: 0 0 auto;
}
.stickybar__label {
  font-size: 13px;
  color: var(--bone-2);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stickybar__label strong {
  color: var(--bone);
  font-weight: 600;
  margin-right: 2px;
}
.stickybar__cta {
  padding: 12px 20px;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  flex: 0 0 auto;
}
/* Only show on mobile/tablet */
@media (max-width: 820px) {
  .stickybar { display: block; }
  body.has-stickybar { padding-bottom: 76px; }
}

/* ============================================================
   BOOKING MODAL
============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: stretch;
  justify-content: center;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 9, 0.78);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__panel {
  position: relative;
  margin: auto;
  width: min(960px, calc(100vw - 32px));
  height: min(820px, calc(100vh - 32px));
  background: var(--bone);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.985);
  opacity: 0;
  transition: transform 320ms var(--ease-out), opacity 240ms var(--ease-out);
}
.modal.is-open .modal__panel {
  transform: none;
  opacity: 1;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(11, 11, 12, 0.08);
  background: var(--bone);
  flex: 0 0 auto;
}
.modal__eyebrow {
  color: var(--gold);
  font-size: 11px;
  margin: 0 0 4px;
}
.modal__title {
  font-family: var(--t-display);
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.modal__close {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(11, 11, 12, 0.14);
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 160ms ease, border-color 160ms ease;
}
.modal__close:hover { background: rgba(11, 11, 12, 0.06); border-color: rgba(11, 11, 12, 0.28); }
.modal__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.modal__body {
  position: relative;
  flex: 1 1 auto;
  background: var(--bone);
  min-height: 0;
}
.modal__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11, 11, 12, 0.45);
}
.modal__iframe {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 720px) {
  .modal__panel {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
  }
  .modal__head { padding: 14px 16px 12px; }
  .modal__title { font-size: 16px; }
  .modal__close { width: 36px; height: 36px; }
}

body.modal-open { overflow: hidden; }
