/* ============================================================
   CKLAD × MIXOLOGIA — Amazonia
   Mobile-first, built 1:1 from the 375px Figma frames.
   Every size is expressed in --u (1 design px at 375px width),
   so the layout scales proportionally on any phone. On wider
   screens the page stays a centred mobile column.
   ============================================================ */

@font-face { font-family: 'Unbounded'; font-weight: 200 900; font-display: swap;
  src: url('fonts/Unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 200 900; font-display: swap;
  src: url('fonts/Unbounded-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-weight: 200 900; font-display: swap;
  src: url('fonts/Unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap;
  src: url('fonts/Inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap;
  src: url('fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap;
  src: url('fonts/Montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap;
  src: url('fonts/Montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --w: min(100vw, 480px);
  --u: calc(var(--w) / 375);

  --green:      #002b23;
  --green-deep: #00251e;
  --wine:       #52071c;
  --white:      #ffffff;

  --display: 'Unbounded', 'Arial', sans-serif;
  --text:    'Inter', 'Arial', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Width unit from the real page width (container units) rather than 100vw:
   vw drifts from the layout width under Safari page zoom, leaving side bars. */
@supports (container-type: inline-size) {
  body { container-type: inline-size; }
  :root { --w: min(100cqw, 480px); }
}

/* iOS Safari tints the status-bar / toolbar areas with the page background:
   match the top edge of the hero photo so no dark band shows. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #243630;
}

body {
  background: #243630;
  color: var(--white);
  font-family: var(--display);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.page {
  position: relative;
  width: var(--w);
  margin: 0 auto;
  overflow: hidden;   /* clip decorative overflow — no horizontal page scroll */
}

section { position: relative; overflow: hidden; }

/* Absolute-layout helper: children placed with design coordinates */
.hero > *, .about > *, .artists > *, .tickets > *, .dress > *, .rules > * { position: absolute; }

/* ============================================================
   Shared: outline button, dots, ticker, reveal
   ============================================================ */
.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  border: calc(1.2 * var(--u)) solid var(--white);
  font-weight: 300;
  color: var(--white);
  white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.btn-outline:active { background: var(--white); color: #000; }
@media (hover: hover) { .btn-outline:hover { background: var(--white); color: #000; } }

.dots {
  display: flex;
  gap: calc(2.769 * var(--u));
  left: 0; right: 0;
  justify-content: center;
  height: calc(5.538 * var(--u));
}
.dots button {
  width: calc(5.538 * var(--u));
  height: calc(5.538 * var(--u));
  border-radius: calc(2.77 * var(--u));
  background: #737373;
  transition: width .35s var(--ease-out), background-color .35s;
  position: relative;
}
.dots button::after { content: ''; position: absolute; inset: calc(-10 * var(--u)) calc(-3 * var(--u)); } /* bigger tap target */
.dots button.is-active { width: calc(11.077 * var(--u)); background: var(--white); }
.dots--dark button.is-active { background: #000; }

.ticker { left: 0; right: 0; overflow: hidden; pointer-events: none; }
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker var(--ticker-time, 22s) linear infinite;
}
.ticker__track--reverse { animation-direction: reverse; }
.ticker__set { display: flex; align-items: center; flex-shrink: 0; }
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }

.reveal {
  opacity: 0;
  translate: 0 calc(24 * var(--u));
  transition: opacity .9s var(--ease-out), translate .9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; translate: 0 0; }

.float { animation: float 6s ease-in-out infinite; }
.float--alt { animation-duration: 7.5s; animation-delay: -2s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 calc(-7 * var(--u)); }
}

/* ============================================================
   Hero — 375×812 frame, content split top / bottom so it fits
   short in-app viewports.
   ============================================================ */
.hero {
  /* Full large viewport: the photo runs under Safari's translucent bars,
     so the next block never peeks out below the hero. */
  height: calc(812 * var(--u));
  height: max(calc(640 * var(--u)), 100vh);
  height: max(calc(640 * var(--u)), 100lvh);
  background: #000;
}

.hero__bg {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  animation: heroZoom 2.4s var(--ease-out) both;
}
@keyframes heroZoom { from { transform: scale(1.08); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.hero__head {
  top: 0; left: 0; right: 0;
  height: calc(90 * var(--u));
  z-index: 2;
}

.logos {
  position: absolute;
  left: calc(16 * var(--u));
  top: calc(22 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(12.085 * var(--u));
  height: calc(60.849 * var(--u));
}
.logos__cklad { width: calc(50.68 * var(--u)); height: calc(52.629 * var(--u)); }
.logos__x     { width: calc(8.527 * var(--u)); height: calc(8.522 * var(--u)); }
.logos__m     { width: calc(36.625 * var(--u)); height: calc(60.849 * var(--u)); }

.hero__menu {
  position: absolute;
  right: calc(16 * var(--u));
  top: calc(39.92 * var(--u));
  font-weight: 300;
  font-size: calc(20 * var(--u));
  line-height: calc(25 * var(--u));
  padding: calc(10 * var(--u)) 0 calc(10 * var(--u)) calc(16 * var(--u));
  margin-top: calc(-10 * var(--u));
}

.hero__brand {
  top: calc(177 * var(--u));
  left: calc(21 * var(--u));
  width: calc(334 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(11.419 * var(--u));
}
.hero__wordmark { line-height: 0; }
.hero__wordmark img { width: calc(334 * var(--u)); height: calc(89.271 * var(--u)); }
.hero__tagline {
  font-size: calc(11.419 * var(--u));
  line-height: calc(14 * var(--u));
  letter-spacing: calc(12.5607 * var(--u));
  margin-right: calc(-12.5607 * var(--u)); /* letter-spacing trails the last glyph */
  text-transform: uppercase;
}

.hero__info {
  left: calc(95 * var(--u));
  width: calc(185 * var(--u));
  bottom: calc(238.95 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__date { font-weight: 300; font-size: calc(16 * var(--u)); line-height: calc(20 * var(--u)); }
.hero__mixologia { width: calc(149 * var(--u)); height: calc(27.054 * var(--u)); margin-top: calc(12 * var(--u)); }
.hero__city {
  font-family: var(--text);
  font-weight: 300;
  font-size: calc(14 * var(--u));
  line-height: calc(17 * var(--u));
  margin-top: calc(3 * var(--u));
}

.hero__cta {
  left: calc(56 * var(--u));
  width: calc(264 * var(--u));
  height: calc(51 * var(--u));
  bottom: calc(112 * var(--u));
  font-size: calc(18 * var(--u));
}

.intro { animation: introUp 1.2s var(--ease-out) .25s both; }
.intro--2 { animation-delay: .5s; }
.intro--3 { animation-delay: .7s; }
@keyframes introUp { from { opacity: 0; translate: 0 calc(20 * var(--u)); } to { opacity: 1; translate: 0 0; } }

/* ============================================================
   About — 375×1050
   ============================================================ */
.about {
  height: calc(1050 * var(--u));
  background: var(--green) url('assets/amazonia/about_pattern.webp') 0 0 / 100% 100% no-repeat;
}

.about__title {
  left: calc(16 * var(--u));
  top: calc(77.19 * var(--u));
  width: calc(343 * var(--u));
  font-weight: 400;
  font-size: calc(34.765 * var(--u));
  line-height: calc(43 * var(--u));
  text-transform: uppercase;
  text-align: justify;
  white-space: pre-wrap;
}

.about__orchid { z-index: 1; pointer-events: none; }
.about__orchid--1 {
  left: calc(5.155 * var(--u));
  top: calc(231.36 * var(--u));
  width: calc(104.652 * var(--u));
  height: calc(69.768 * var(--u));
  rotate: 9.76deg;
}
.about__orchid--2 {
  left: calc(221.67 * var(--u));
  top: calc(91.17 * var(--u));
  width: calc(97.471 * var(--u));
  height: calc(97.471 * var(--u));
  rotate: 20.88deg;
}

.about__text {
  left: calc(16 * var(--u));
  top: calc(320 * var(--u));
  width: calc(304 * var(--u)); /* Figma box is 300; browsers set Unbounded a hair wider */
  font-weight: 300;
  font-size: calc(16 * var(--u));
  line-height: calc(20 * var(--u));
}
.about__text p + p { margin-top: calc(20 * var(--u)); }
.about__text strong { font-weight: 500; }

.about__photo {
  left: 0;
  top: calc(584 * var(--u));
  width: calc(375 * var(--u));
  height: calc(466 * var(--u));
  object-fit: cover;
  object-position: 50% 0;
}

.about__ticker { top: calc(990 * var(--u)); height: calc(39.152 * var(--u)); --ticker-time: 18s; }
.about__ticker .ticker__set { gap: calc(25.334 * var(--u)); padding-right: calc(25.334 * var(--u)); }
.ticker__m   { width: calc(23.566 * var(--u)); height: calc(39.152 * var(--u)); }
.ticker__sun { width: calc(27.637 * var(--u)); height: calc(28.7 * var(--u)); }
.ticker__text {
  display: block;
  width: calc(104.789 * var(--u));
  font-size: calc(15.011 * var(--u));
  line-height: calc(18.6 * var(--u));
  text-align: justify;
  text-align-last: justify;
  font-variant-numeric: lining-nums tabular-nums;
}

/* ============================================================
   Artists — 375×812
   ============================================================ */
.artists {
  height: calc(812 * var(--u));
  background: var(--green) url('assets/amazonia/artists_bg.svg') 0 0 / 100% 100% no-repeat;
}

.slider { overflow: hidden; }
.slider__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex-shrink: 0; scroll-snap-align: start; scroll-snap-stop: always; }

.artists__slider { left: 0; top: calc(16 * var(--u)); width: 100%; height: calc(749 * var(--u)); }
.artist {
  position: relative;
  width: calc(375 * var(--u));
  height: 100%;
  padding: 0 calc(16 * var(--u));
}
.artist__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 41% 100%;
}
/* Dark fade under the name, as in the design photo */
.artist::after {
  content: '';
  position: absolute;
  left: calc(16 * var(--u));
  right: calc(16 * var(--u));
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.artist__name { z-index: 1; }
.artist__name {
  position: absolute;
  left: 0; right: 0;
  top: calc(667 * var(--u));
  font-weight: 400;
  font-size: calc(49.694 * var(--u));
  line-height: calc(62 * var(--u));
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.artists__dots { top: calc(775.23 * var(--u)); }

/* ============================================================
   Tickets — 375×812
   ============================================================ */
.tickets { height: calc(812 * var(--u)); background: var(--wine); }

.tickets__label {
  left: calc(16 * var(--u));
  top: calc(76 * var(--u));
  font-weight: 400;
  font-size: calc(27.682 * var(--u));
  line-height: calc(34 * var(--u));
  text-transform: uppercase;
}
.tickets__meta {
  left: calc(16 * var(--u));
  top: calc(140 * var(--u));
  width: calc(343 * var(--u));
  font-family: var(--text);
  font-weight: 500;
  font-size: calc(16 * var(--u));
  line-height: calc(19 * var(--u));
}
.tickets__meta--place { top: calc(280.906 * var(--u)); }
.tickets__title {
  left: calc(16 * var(--u));
  top: calc(161 * var(--u));
  width: calc(343 * var(--u));
  font-size: calc(49.178 * var(--u));
  line-height: calc(58.953 * var(--u));
  text-transform: uppercase;
  text-align: justify;
}
.tickets__orchid {
  left: calc(214.4 * var(--u));
  top: calc(131.4 * var(--u));
  width: calc(122.756 * var(--u));
  height: calc(122.756 * var(--u));
  rotate: 27.48deg;
  pointer-events: none;
}

.ticket-card {
  left: calc(16 * var(--u));
  top: calc(323 * var(--u));
  width: calc(343 * var(--u));
  height: calc(308 * var(--u));
  background: var(--white);
  color: var(--green);
}
.ticket-card > * { position: absolute; }
.ticket-card__price {
  left: calc(16 * var(--u));
  top: calc(7.885 * var(--u));
  font-size: calc(48 * var(--u));
  line-height: calc(60 * var(--u));
  white-space: nowrap;
}
.ticket-card__bird {
  left: calc(16 * var(--u));
  top: calc(82 * var(--u));
  width: calc(116 * var(--u));
  height: calc(121 * var(--u));
  object-fit: cover;
}
.ticket-card__left {
  left: calc(16 * var(--u));
  top: calc(217 * var(--u));
  font-weight: 300;
  font-size: calc(16 * var(--u));
  line-height: calc(20 * var(--u));
  white-space: nowrap;
}
.ticket-card__cta {
  left: calc(16 * var(--u));
  top: calc(243 * var(--u));
  width: calc(311 * var(--u));
  height: calc(49 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wine);
  color: var(--white);
  font-weight: 300;
  font-size: calc(16 * var(--u));
  transition: opacity .2s, transform .2s;
}
.ticket-card__cta:active { transform: scale(.98); }
.ticket-card__cta.is-disabled { opacity: .5; pointer-events: none; }

.tickets__tables {
  left: calc(16 * var(--u));
  top: calc(675 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(2.053 * var(--u));
  text-transform: uppercase;
}
.tickets__tables-label {
  width: calc(162.842 * var(--u));
  font-size: calc(9.579 * var(--u));
  line-height: calc(12 * var(--u));
}
.tickets__tables-link {
  font-size: calc(15.62 * var(--u));
  line-height: calc(19 * var(--u));
  text-decoration: underline;
  text-underline-offset: .12em;
  text-decoration-thickness: .06em;
  white-space: nowrap;
}

/* ============================================================
   Dress code — 375×833
   ============================================================ */
.dress {
  height: calc(833 * var(--u));
  background: #fff url('assets/amazonia/dress_pattern.webp') 0 0 / 100% 100% no-repeat;
  color: var(--wine);
}
.dress__head {
  left: calc(16 * var(--u));
  top: calc(41 * var(--u));
  width: calc(359 * var(--u));
  text-transform: uppercase;
}
.dress__label { font-weight: 400; font-size: calc(27.682 * var(--u)); line-height: calc(34 * var(--u)); }
.dress__title {
  font-size: calc(73.636 * var(--u));
  line-height: calc(80 * var(--u));
  margin-top: calc(-3 * var(--u));
}
.dress__text {
  left: calc(16 * var(--u));
  top: calc(237 * var(--u));
  width: calc(306 * var(--u));
  font-family: var(--text);
  font-size: calc(16 * var(--u));
  line-height: calc(19 * var(--u));
  text-align: justify;
}
/* Slider is wider than the screen: snapped slide starts 41px off-canvas, next one peeks in */
.dress__slider { left: calc(-41 * var(--u)); top: calc(328 * var(--u)); width: calc(416 * var(--u)); height: calc(464.054 * var(--u)); }
.dress__slider .slider__track { gap: calc(7 * var(--u)); padding-right: calc(56.5 * var(--u)); }
.dress__slide { width: calc(352.537 * var(--u)); height: 100%; }
.dress__slide img { width: 100%; height: 100%; object-fit: cover; }
.dress__dots { top: calc(803 * var(--u)); }

/* ============================================================
   Rules — 375×812
   ============================================================ */
.rules { height: calc(812 * var(--u)); background: #1c1206; }
.rules__bg { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

.rules__ticker--top { top: calc(30 * var(--u)); height: calc(41.246 * var(--u)); --ticker-time: 16s; }
.rules__ticker--top .ticker__set { gap: calc(25 * var(--u)); padding-right: calc(25 * var(--u)); }
.rules__ticker--top img { width: calc(40 * var(--u)); height: calc(41.246 * var(--u)); }

.rules__cklad { left: calc(107 * var(--u)); top: calc(102 * var(--u)); width: calc(160 * var(--u)); height: calc(42.764 * var(--u)); }

.rules__list {
  left: 0; right: 0;
  top: calc(346 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(13.689 * var(--u));
  font-weight: 300;
  font-size: calc(22 * var(--u));
  line-height: calc(27 * var(--u));
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.rules__mixologia { left: calc(43 * var(--u)); top: calc(645 * var(--u)); width: calc(288 * var(--u)); height: calc(52.291 * var(--u)); }

.rules__ticker--bottom { top: calc(728 * var(--u)); height: calc(54.458 * var(--u)); --ticker-time: 16s; }
.rules__ticker--bottom .ticker__set { gap: calc(25 * var(--u)); padding-right: calc(25 * var(--u)); }
.rules__ticker--bottom img { width: calc(32.779 * var(--u)); height: calc(54.458 * var(--u)); }

/* ============================================================
   Menu — full-screen overlay
   ============================================================ */
.menu {
  position: fixed;
  z-index: 50;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--w);
  margin-left: calc(var(--w) / -2);
  background: var(--wine);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-out), visibility 0s linear .6s;
  overscroll-behavior: contain;
}
.menu.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .6s var(--ease-out), visibility 0s; }

.menu__close {
  position: absolute;
  left: calc(20 * var(--u));
  top: calc(20 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
  font-weight: 300;
  font-size: calc(20 * var(--u));
  line-height: calc(25 * var(--u));
}
.menu__close img { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }

.menu__nav {
  position: absolute;
  left: calc(20 * var(--u));
  top: calc(50% + 1 * var(--u));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: calc(25 * var(--u));
}
.menu__link {
  font-size: calc(50 * var(--u));
  line-height: calc(62 * var(--u));
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: calc(2 * var(--u));
  text-underline-offset: calc(6 * var(--u));
  transition: text-decoration-color .3s, opacity .5s var(--ease-out), translate .5s var(--ease-out);
  opacity: 0;
  translate: 0 calc(20 * var(--u));
}
.menu__link.is-current { text-decoration-color: currentColor; }
@media (hover: hover) { .menu__link:hover { text-decoration-color: currentColor; } }
.menu.is-open .menu__link { opacity: 1; translate: 0 0; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 0s, .15s, .15s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0s, .2s, .2s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0s, .25s, .25s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0s, .3s, .3s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: 0s, .35s, .35s; }

.menu__foot {
  position: absolute;
  left: calc(20 * var(--u));
  right: calc(18 * var(--u));
  bottom: calc(20 * var(--u));
  bottom: max(calc(20 * var(--u)), env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.menu__partner {
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', var(--text);
  font-size: calc(10 * var(--u));
  line-height: calc(12 * var(--u));
}
.menu__partner span {
  font-family: 'Times New Roman', Times, serif;
  font-size: calc(13.553 * var(--u));
  line-height: 1.022;
}
.menu__insta {
  font-weight: 300;
  font-size: calc(20 * var(--u));
  line-height: calc(25 * var(--u));
  text-decoration: underline;
  text-underline-offset: .15em;
  text-decoration-thickness: .05em;
}

body.is-locked { overflow: hidden; }

/* ============================================================
   Purchase modal
   ============================================================ */
.buy-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  transition: visibility 0s linear .4s;
}
.buy-modal.is-open { visibility: visible; transition: none; }
.buy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  opacity: 0;
  transition: opacity .4s;
}
.buy-modal.is-open .buy-modal__backdrop { opacity: 1; }

.buy-modal__box {
  position: relative;
  width: var(--w);
  max-height: 100%;
  overflow-y: auto;
  background: var(--white);
  color: var(--green);
  padding: calc(28 * var(--u)) calc(16 * var(--u));
  padding-bottom: max(calc(28 * var(--u)), env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .45s var(--ease-out);
}
.buy-modal.is-open .buy-modal__box { transform: none; }

.buy-modal__close {
  position: absolute;
  top: calc(16 * var(--u));
  right: calc(16 * var(--u));
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
  display: grid;
  place-items: center;
}
.buy-modal__close img { width: calc(18 * var(--u)); height: calc(18 * var(--u)); filter: invert(1); }

.buy-modal__title {
  font-weight: 400;
  font-size: calc(27.682 * var(--u));
  line-height: calc(34 * var(--u));
  text-transform: uppercase;
  color: var(--wine);
}
.buy-modal__tier {
  margin-top: calc(8 * var(--u));
  font-family: var(--text);
  font-weight: 500;
  font-size: calc(16 * var(--u));
}
.buy-modal__form { margin-top: calc(24 * var(--u)); display: flex; flex-direction: column; gap: calc(16 * var(--u)); }
.buy-modal__input {
  width: 100%;
  height: calc(49 * var(--u));
  padding: 0 calc(14 * var(--u));
  border: 1px solid var(--green);
  border-radius: 0;
  background: #fff;
  color: var(--green);
  font-family: var(--text);
  font-size: max(16px, calc(16 * var(--u))); /* ≥16px stops iOS zoom-on-focus */
  -webkit-appearance: none;
  appearance: none;
}
.buy-modal__input:focus { outline: 2px solid var(--wine); outline-offset: -2px; }
.buy-modal__qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 300;
  font-size: calc(16 * var(--u));
}
.buy-modal__qty-controls { display: flex; align-items: center; gap: calc(14 * var(--u)); }
.buy-modal__qty-btn {
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  border: 1px solid var(--green);
  font-size: calc(20 * var(--u));
  line-height: 1;
}
.buy-modal__qty-btn:disabled { opacity: .3; cursor: default; }
.buy-modal__qty-value { min-width: calc(16 * var(--u)); text-align: center; font-size: calc(18 * var(--u)); }
.buy-modal__total { font-weight: 300; font-size: calc(16 * var(--u)); }
.buy-modal__total strong { font-weight: 500; }
.buy-modal__submit {
  height: calc(49 * var(--u));
  background: var(--wine);
  color: var(--white);
  font-weight: 300;
  font-size: calc(16 * var(--u));
}
.buy-modal__submit:disabled { opacity: .6; }
.buy-modal__error { min-height: calc(18 * var(--u)); font-family: var(--text); font-size: calc(14 * var(--u)); color: #c70000; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .intro { opacity: 1; translate: none; }
}
