/* Montenegro 2027 — "The Full Monte"
   Palette and type straight from the printed invite. Ink + Charcoal Brown
   carry structure; Golden Pollen marks accents on dark; Amber Honey is
   reserved for primary buttons and filled progress. Two background colours
   per section, no more. */

:root {
  --ink: #070614;
  --brown: #454235;
  --gold: #FDCF5D;          /* Golden Pollen — kickers / accents on dark */
  --amber: #E6AD01;         /* Amber Honey — primary buttons, filled progress */
  --paper: #FEFEFE;
  --cream: #F7F4EE;

  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Montserrat", system-ui, sans-serif;
  --font-script: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--brown);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--brown); }
a:hover { color: var(--amber); }

/* honoured even against class rules that set display (e.g. .siteheader__auth) */
[hidden] { display: none !important; }

.page {
  container-type: inline-size;
  overflow-x: hidden;
  width: 100%;
  background: var(--paper);
}

.eyebrow {
  font: 600 clamp(9.5px, 1.1cqw, 11px) / 1 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(25px, 3.1cqw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}

/* ---- buttons ---------------------------------------------------------- */

.btn {
  font: inherit;
  cursor: pointer;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--primary {
  min-height: 56px;
  padding: 0 24px;
  background: var(--amber);
  color: var(--ink);
  font: 700 clamp(11.5px, 1.2cqw, 13px) var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.btn--primary:hover { background: var(--gold); }

.btn--ghost-gold {
  min-height: 36px;
  padding: 0 16px;
  background: none;
  border: 1px solid rgba(253, 207, 93, 0.55);
  color: var(--gold);
  font: 600 10.5px var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.btn--ghost-gold:hover { background: var(--gold); color: var(--ink); }

.btn--ghost-light {
  min-height: 36px;
  padding: 0 14px;
  background: none;
  border: 1px solid rgba(254, 254, 254, 0.32);
  color: rgba(254, 254, 254, 0.75);
  font: 600 10.5px var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.btn--ghost-light:hover { border-color: var(--gold); color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---- header --------------------------------------------------------- */

.siteheader { background: var(--ink); position: relative; z-index: 20; }

.border-band {
  height: clamp(24px, 4.4cqw, 44px);
  background: url(/img/invite-border.png) center top / auto 44px repeat-x;
}
.border-band--flip { transform: rotate(180deg); }

.siteheader__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 1.6cqw, 52px);
  padding: clamp(13px, 2cqw, 22px) clamp(16px, 4cqw, 44px) clamp(6px, 1cqw, 10px);
}
.siteheader__logos img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  flex: 0 1 auto;
  min-width: 0;
}
.logo-lords { max-height: clamp(20px, 3cqw, 34px); }
.logo-app { max-height: clamp(18px, 2.7cqw, 30px); }
.logo-hrp { max-height: clamp(20px, 3cqw, 34px); }
.logo-urs { max-height: clamp(22px, 3.3cqw, 38px); }
.siteheader__rule {
  width: 1px;
  height: clamp(20px, 3cqw, 34px);
  background: rgba(253, 207, 93, 0.5);
  display: block;
  flex: none;
}

.siteheader__bar {
  padding: 0 clamp(16px, 4cqw, 44px) clamp(14px, 1.8cqw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.siteheader__tag {
  font: 500 clamp(9px, 1.1cqw, 10.5px) var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, 0.5);
}
.siteheader__auth { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.siteheader__whoami { font: 400 11.5px var(--font-body); color: rgba(254, 254, 254, 0.55); }

/* ---- hero: signed out ---------------------------------------------- */

.hero-out {
  position: relative;
  min-height: clamp(560px, 78vh, 720px);
  background:
    linear-gradient(180deg, rgba(7, 6, 20, 0.55) 0%, rgba(7, 6, 20, 0.18) 36%, rgba(7, 6, 20, 0.9) 100%),
    url(/img/perast-sunset.jpg) center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(18px, 4cqw, 44px);
}
.hero-out__inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 8cqw, 90px) 0 clamp(26px, 4cqw, 38px);
}
.hero-out__kicker {
  color: rgba(254, 254, 254, 0.72);
  margin-bottom: clamp(12px, 1.6cqw, 18px);
}
.hero-out__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 9.4cqw, 132px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--paper);
  margin-bottom: clamp(8px, 1.2cqw, 14px);
}
.hero-out__script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(34px, 4.4cqw, 58px);
  line-height: 1;
  color: var(--gold);
  margin-bottom: clamp(16px, 2cqw, 22px);
}
.hero-out__blurb {
  max-width: 56ch;
  font: 400 clamp(15px, 1.5cqw, 20px) / 1.55 var(--font-body);
  color: rgba(254, 254, 254, 0.9);
  text-wrap: pretty;
}
.hero-out__cta {
  margin: clamp(24px, 3cqw, 30px) auto 0;
  width: 100%;
  max-width: 52ch;
}

/* ---- hero: signed in (dashboard) --------------------------------- */

.hero-in {
  position: relative;
  background:
    linear-gradient(180deg, rgba(7, 6, 20, 0.82), rgba(7, 6, 20, 0.95)),
    url(/img/bay-of-kotor.jpg) center / cover no-repeat;
  padding: clamp(30px, 5cqw, 72px) clamp(18px, 4cqw, 44px) clamp(28px, 4cqw, 56px);
  color: var(--paper);
}
.hero-in__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4cqw, 64px);
  align-items: start;
}
.hero-in__eyebrow {
  color: rgba(254, 254, 254, 0.55);
  margin-bottom: clamp(12px, 1.6cqw, 20px);
}
.hero-in__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(25px, 3.6cqw, 46px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--paper);
  text-wrap: pretty;
}
.hero-in__headline .gold { color: var(--gold); }
.hero-in__note {
  margin-top: clamp(18px, 2.4cqw, 26px);
  max-width: 46ch;
  font: 400 clamp(14.5px, 1.4cqw, 16px) / 1.65 var(--font-body);
  color: rgba(254, 254, 254, 0.68);
}

.dash__stats {
  max-width: var(--maxw);
  margin: clamp(24px, 3cqw, 40px) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(254, 254, 254, 0.16);
  border: 1px solid rgba(254, 254, 254, 0.16);
}
.stat { background: var(--ink); padding: 16px 14px; }
/* a lone tile on the last row fills the width rather than leaving a bare gap */
.dash__stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
@container (min-width: 760px) {
  .dash__stats .stat:last-child:nth-child(odd) { grid-column: auto; }
}
.stat__label {
  font: 600 9px var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, 0.45);
  margin-bottom: 6px;
}
.stat__value { font: 600 15px var(--font-body); color: var(--paper); }
.stat__value--gold { color: var(--gold); }
.stat__value--date { font-size: 13px; }

/* ---- progress meter (the depth-sounding strip) ------------------- */

.meter {
  font-family: var(--font-body);
  background: var(--ink);
  border: 1px solid rgba(254, 254, 254, 0.16);
  padding: 26px 24px 20px;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.meter__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.meter__eyebrow {
  font: 400 10.5px var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, 0.55);
}
.meter__chip {
  font: 400 10px var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid rgba(230, 173, 1, 0.55);
  color: var(--gold);
  white-space: nowrap;
}
.meter__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6cqw, 54px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.meter__sub {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(254, 254, 254, 0.72);
  margin-bottom: 26px;
  max-width: 34ch;
}
.meter__track {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 30px;
  margin-bottom: 6px;
}
.meter__tick {
  flex: 1 1 0;
  min-width: 2px;
  height: 17px;
  background: rgba(254, 254, 254, 0.16);
  transition: background 120ms linear;
}
.meter__tick--major { height: 30px; }
.meter__tick--filled { background: var(--amber); }
.meter__tick--filled.meter__tick--major { border-top: 3px solid var(--gold); }
.meter--qualified .meter__tick--filled { background: var(--gold); }
.meter__marker {
  position: absolute;
  top: -6px;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: translateX(-1px);
  transition: left 120ms linear;
}
.meter__labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font: 400 11px var(--font-body);
  letter-spacing: 0.08em;
  color: rgba(254, 254, 254, 0.6);
  padding-top: 8px;
}
.meter__pct { font-weight: 600; letter-spacing: 0.06em; color: var(--gold); }
.meter__divider {
  height: 1px;
  background: rgba(254, 254, 254, 0.14);
  margin: 16px 0 12px;
}
.meter__fresh {
  font: 400 10.5px var(--font-body);
  letter-spacing: 0.1em;
  color: rgba(254, 254, 254, 0.45);
}

/* ---- marketing sections ----------------------------------------- */

.section { padding: clamp(40px, 6cqw, 88px) clamp(18px, 4cqw, 44px); }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .h-display { color: var(--paper); }

.section__kicker { color: var(--gold); margin-bottom: clamp(12px, 1.6cqw, 18px); }
.section--cream .section__kicker,
.section--paper .section__kicker { color: var(--brown); }

/* blurb */
.blurb {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(22px, 4cqw, 56px);
  align-items: start;
}
.blurb__figure { display: grid; gap: 12px; align-content: start; }
.blurb__img {
  height: clamp(260px, 32cqw, 440px);
  background: url(/img/regent-dusk.jpeg) center / cover no-repeat;
}
.blurb__caption { font: 400 12px / 1.5 var(--font-body); color: var(--brown); }
.blurb__body { max-width: 62ch; display: grid; gap: 18px; align-content: start; }
.blurb__body p {
  font: 400 clamp(15px, 1.5cqw, 16.5px) / 1.7 var(--font-body);
  color: var(--brown);
  text-wrap: pretty;
}
.blurb__body p.lead { font-weight: 500; color: var(--ink); }

/* sponsors */
.sponsors__title {
  font: 600 clamp(10px, 1.1cqw, 11px) var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(24px, 3cqw, 36px);
  text-align: center;
}
.sponsors__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6cqw, 34px);
  max-width: 1000px;
  margin: 0 auto;
}
.sponsors__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4cqw, 26px) clamp(24px, 4.4cqw, 52px);
}
.sponsors__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(26px, 3.6cqw, 44px);
}
.sponsors__cell img {
  max-width: clamp(110px, 13cqw, 150px);
  max-height: clamp(26px, 3.6cqw, 44px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.sponsors__cell--pair { gap: clamp(14px, 2.2cqw, 26px); }
.sponsors__cell--pair img { max-width: clamp(150px, 20cqw, 260px); max-height: clamp(15px, 2.2cqw, 26px); }
.sponsors__cell--pair span {
  width: 2px;
  height: clamp(16px, 2.2cqw, 27px);
  display: block;
  flex: none;
  background: var(--paper);
}

/* checklist */
.checklist { max-width: var(--maxw); margin: 0 auto; }
.checklist__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(26px, 4cqw, 64px);
  align-items: start;
  margin-top: clamp(22px, 3cqw, 40px);
}
.checklist__item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(69, 66, 53, 0.2);
}
.checklist__item::before {
  content: "✓";
  color: var(--amber);
  font-size: 15px;
  line-height: 1.5;
}
.checklist__item div { display: flex; flex-direction: column; gap: 4px; }
.checklist__item b {
  font: 600 clamp(14.5px, 1.5cqw, 16px) / 1.4 var(--font-body);
  color: var(--ink);
}
.checklist__item span {
  font: 400 clamp(13px, 1.3cqw, 14px) / 1.55 var(--font-body);
  color: var(--brown);
}
.notincluded { background: var(--cream); padding: clamp(22px, 2.6cqw, 30px); align-self: start; }
.notincluded h3 {
  font: 600 clamp(10px, 1.1cqw, 11px) var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 16px;
}
.notincluded ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.notincluded li {
  font: 400 clamp(14px, 1.4cqw, 15px) / 1.55 var(--font-body);
  color: var(--brown);
  padding-left: 17px;
  position: relative;
}
.notincluded li::before { content: "–"; position: absolute; left: 0; top: 0; color: rgba(69, 66, 53, 0.5); }

/* itinerary */
.itinerary { max-width: var(--maxw); margin: 0 auto; }
.itinerary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 3cqw, 40px);
}
.itinerary__when {
  font: 500 clamp(9.5px, 1.1cqw, 11px) var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, 0.55);
}
.itinerary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 2.4cqw, 22px);
}
.day__img { height: clamp(180px, 17cqw, 210px); background-position: center; background-size: cover; margin-bottom: 14px; }
.day__date {
  font: 600 10.5px var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.day h3 { font: 600 clamp(16px, 1.7cqw, 18px) / 1.25 var(--font-body); margin-bottom: 8px; }
.day p { font: 400 14px / 1.6 var(--font-body); color: rgba(254, 254, 254, 0.7); }

/* gallery */
.gallery { max-width: var(--maxw); margin: 0 auto; }
.gallery__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 4cqw, 56px);
  margin-bottom: clamp(24px, 3cqw, 40px);
  align-items: end;
}
.gallery__intro {
  font: 400 clamp(14.5px, 1.5cqw, 15.5px) / 1.7 var(--font-body);
  color: var(--brown);
  text-wrap: pretty;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2cqw, 20px);
}
.gallery__img { height: clamp(210px, 20cqw, 250px); background-position: center; background-size: cover; }
.gallery__caption { margin-top: 10px; font: 400 12.5px / 1.5 var(--font-body); color: var(--brown); }

/* how to qualify */
.qualify { max-width: var(--maxw); margin: 0 auto; }
.qualify__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3cqw, 36px) clamp(20px, 2.6cqw, 32px);
}
.step { border-top: 1px solid rgba(254, 254, 254, 0.24); padding-top: 18px; }
.step__num { font: 600 11px var(--font-body); letter-spacing: 0.2em; color: var(--gold); margin-bottom: 12px; }
.step h3 { font: 600 clamp(16.5px, 1.7cqw, 18px) var(--font-body); margin-bottom: 8px; }
.step p { font: 400 clamp(14px, 1.4cqw, 14.5px) / 1.6 var(--font-body); color: rgba(254, 254, 254, 0.72); }
.step a, .qualify__fine a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.step__linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--paper); font: inherit;
  text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px;
}
.step__linkbtn:hover { color: var(--gold); }
.qualify__fine {
  margin: clamp(28px, 3.4cqw, 44px) 0 0;
  max-width: 88ch;
  font: 400 clamp(13.5px, 1.4cqw, 14.5px) / 1.7 var(--font-body);
  color: rgba(254, 254, 254, 0.62);
  border-top: 1px solid rgba(254, 254, 254, 0.16);
  padding-top: 22px;
}

/* faq */
.faq {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 4cqw, 64px);
  align-items: start;
}
.faq__list { display: grid; }
.faq__item { border-top: 1px solid rgba(69, 66, 53, 0.22); }
.faq__item:last-child { border-bottom: 1px solid rgba(69, 66, 53, 0.22); }
.faq__q {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  padding: 18px 0;
  cursor: pointer;
  text-align: left;
  font: 600 clamp(15px, 1.6cqw, 16.5px) / 1.35 var(--font-body);
  color: var(--ink);
}
.faq__sign { font: 400 20px var(--font-body); color: var(--amber); flex: none; }
.faq__a {
  margin: 0;
  padding: 0 0 20px;
  max-width: 74ch;
  font: 400 clamp(14px, 1.4cqw, 15px) / 1.7 var(--font-body);
  color: var(--brown);
}

/* organisers */
.organisers {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(26px, 4cqw, 64px);
  align-items: center;
}
.organisers h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4cqw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 14px;
}
.organisers p { font: 400 clamp(14px, 1.4cqw, 14.5px) / 1.7 var(--font-body); color: rgba(254, 254, 254, 0.65); }
.organisers a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.organisers__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6cqw, 44px);
  flex-wrap: wrap;
}
.organisers__logos img {
  width: auto; height: auto; object-fit: contain; display: block; flex: 0 1 auto; min-width: 0;
}
.organisers__logos .logo-lords { max-height: clamp(22px, 2.6cqw, 36px); }
.organisers__logos .logo-app { max-height: clamp(20px, 2.3cqw, 30px); }
.organisers__logos .logo-hrp { max-height: clamp(22px, 2.6cqw, 34px); }
.organisers__logos .logo-urs { max-height: clamp(24px, 2.9cqw, 38px); }
.organisers__logos .siteheader__rule { height: clamp(22px, 2.6cqw, 36px); }

/* ---- footer ------------------------------------------------------ */

.sitefooter { background: var(--ink); }
.sitefooter__row {
  padding: clamp(20px, 2.6cqw, 30px) clamp(18px, 4cqw, 44px) clamp(24px, 3cqw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(254, 254, 254, 0.6);
}
.sitefooter__brand {
  font: 500 clamp(9.5px, 1.1cqw, 11px) var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sitefooter__links {
  display: flex;
  gap: clamp(18px, 2.4cqw, 26px);
  flex-wrap: wrap;
  align-items: center;
  font: 500 clamp(9.5px, 1.1cqw, 11px) var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sitefooter__links a { color: rgba(254, 254, 254, 0.6); text-decoration: none; }
.sitefooter__links a:hover { color: var(--gold); }

/* ---- sign-in modal --------------------------------------------- */

#signinModal {
  border: 1px solid rgba(254, 254, 254, 0.16);
  padding: 0;
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  background: var(--ink);
  color: var(--paper);
  overflow: auto;
}
#signinModal::backdrop { background: rgba(7, 6, 20, 0.72); backdrop-filter: blur(2px); }

.modal__hero {
  position: relative;
  height: 132px;
  background: url(/img/perast-sunset.jpg) center 60% / cover no-repeat;
}
.modal__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 6, 20, 0.3), var(--ink));
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 6, 20, 0.6);
  border: 1px solid rgba(254, 254, 254, 0.28);
  color: var(--paper);
  font: 400 18px / 1 var(--font-body);
  cursor: pointer;
}
.modal__close:hover { border-color: var(--gold); color: var(--gold); }

.modal__body { padding: 2px clamp(20px, 5cqw, 28px) 28px; }
.modal__kicker {
  font: 600 10px var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 12px 0;
}
.modal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 6cqw, 27px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.modal__text { font: 400 14px / 1.6 var(--font-body); color: rgba(254, 254, 254, 0.72); margin-bottom: 20px; }
.modal__text strong { color: var(--paper); }
.modal__label {
  display: block;
  font: 500 10px var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, 0.6);
  margin-bottom: 8px;
}
.modal__input {
  width: 100%;
  min-height: 48px;
  background: rgba(254, 254, 254, 0.06);
  border: 1px solid rgba(254, 254, 254, 0.32);
  color: var(--paper);
  padding: 0 14px;
  font: 400 15px var(--font-body);
  margin-bottom: 14px;
}
.modal__submit { width: 100%; min-height: 52px; }
.modal__aside {
  border-top: 1px solid rgba(254, 254, 254, 0.18);
  padding-top: 16px;
  display: grid;
  gap: 10px;
  font: 400 13.5px / 1.55 var(--font-body);
  color: rgba(254, 254, 254, 0.62);
}
.modal__actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.modal__actions .btn { flex: 1 1 130px; min-height: 46px; }

/* ---- callback page -------------------------------------------- */

.callback {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: var(--ink);
  color: var(--paper);
}
.callback p {
  font: 400 clamp(15px, 1.5cqw, 17px) / 1.6 var(--font-body);
  max-width: 40ch;
}
.callback a { color: var(--gold); }

/* ---- motion ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
