/* ============================================================
   SORI MAMI TATTOO — site styles
   Built on colors_and_type.css foundations (extracted verbatim
   from the live Chroma theme). Mobile-first, fully responsive.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: var(--gold); color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--page-width); margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: var(--page-wide); }

section { position: relative; }
.section-pad { padding: 96px 0; }
@media (min-width: 768px) { .section-pad { padding: var(--section-pad) 0; } }

/* lang visibility — toggled by [data-lang] on <html> */
[data-lang="sl"] .en { display: none; }
[data-lang="en"] .sl { display: none; }
.lang-inline > span { } /* inline swap helper */

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  margin-bottom: 22px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease), transform .35s var(--ease);
}
.site-header.hidden { transform: translateY(-115%); }
.site-header.scrolled {
  background: var(--bg-08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--bd);
  padding: 14px 24px;
}
.site-header__brand { display: flex; flex-direction: column; line-height: 1; gap: 4px; text-decoration: none; }
.site-header__brand img { height: 40px; width: auto; mix-blend-mode: multiply; transition: height var(--dur) var(--ease); }
.site-header.scrolled .site-header__brand img { height: 32px; }
.site-header__tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--fg-light); }

.nav { display: none; align-items: center; gap: 34px; }
@media (min-width: 1000px) { .nav { display: flex; } }
.nav a {
  color: var(--ink); font-size: 14px; letter-spacing: 0.2px;
  position: relative; padding: 4px 0; text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 18px; }

/* language switch */
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 1px; }
.lang-switch button {
  background: none; border: none; cursor: pointer; color: var(--fg-light);
  text-transform: uppercase; letter-spacing: 1px; padding: 2px; transition: color var(--dur) var(--ease);
}
.lang-switch button.active { color: var(--ink); font-weight: 600; }
.lang-switch .sep { color: var(--bd-hover); }

/* hamburger */
.burger {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span { width: 24px; height: 1.5px; background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
body.menu-open .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.6rem); color: var(--ink);
  text-decoration: none; padding: 8px 0; transition: color var(--dur) var(--ease);
}
.mobile-nav a:hover { color: var(--gold); }

/* ============================================================
   HERO — fullscreen vizitka (logo splash)
   ============================================================ */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px; background: var(--bg);
}
.hero__logo {
  width: min(78vw, 680px); height: auto; mix-blend-mode: multiply;
}
.hero__sub {
  margin-top: 34px; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--fg-light);
}
.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--fg-light);
  text-decoration: none;
}
.scroll-cue .line { width: 1px; height: 46px; background: var(--bd-hover); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; left: 0; top: -60%; width: 100%; height: 60%; background: var(--gold); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 110%; } }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { margin: 0; }
.section-head p { margin-top: 18px; color: var(--fg); }

/* ============================================================
   ABOUT (studio) — offset image collage + text
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; gap: 80px; } .split--rev .split__media { order: 2; } }
.split__body h2 { margin-top: 0; }
.split__body p { color: var(--fg); }
.split__body .btn { margin-top: 14px; }

.collage { position: relative; }
.collage img { box-shadow: 0 30px 60px -30px var(--ink-50); }
.collage--studio { aspect-ratio: 4/3; }
.collage--studio .a { width: 82%; aspect-ratio: 3/2; object-fit: cover; }
.collage--studio .b { position: absolute; right: 0; bottom: -6%; width: 52%; aspect-ratio: 3/2; object-fit: cover; }
@media (max-width: 560px){ .collage--studio .b { bottom: -4%; } }

/* ============================================================
   ABOUT ME — dark band
   ============================================================ */
.dark-band { background: var(--bg-dark); color: var(--fg-on-dark); }
.dark-band h2 { color: #fff; }
.dark-band .eyebrow { color: var(--gold-blend); }
.dark-band p { color: var(--fg-on-dark); }
.aboutme { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .aboutme { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.aboutme__img { position: relative; min-height: 420px; }
.aboutme__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.aboutme__img::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, transparent 55%, var(--bg-dark) 100%); }
@media (max-width: 899px){ .aboutme__img::after { background: linear-gradient(180deg, transparent 60%, var(--bg-dark) 100%); } }
.aboutme__body { padding: 64px 28px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 900px) { .aboutme__body { padding: 110px 8% 110px 64px; } }

/* ============================================================
   WORK collage
   ============================================================ */
.collage--work { aspect-ratio: 1/1; }
.collage--work .w1 { width: 60%; aspect-ratio: 3/4; object-fit: cover; margin-left: auto; }
.collage--work .w2 { position: absolute; left: 0; top: 30%; width: 46%; aspect-ratio: 1/1; object-fit: cover; }
.collage--work .w3 { position: absolute; right: -2%; bottom: -4%; width: 30%; aspect-ratio: 2/3; object-fit: cover; }

/* ---------- portfolio grid ---------- */
/* dynamic editorial grid — large/small rhythm, tessellates cleanly */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; gap: 12px; }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 18.5vw, 248px); gap: 16px; }
  /* feature tile (big), then a wide tile, two squares, two wide tiles */
  .gallery figure:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
  .gallery figure:nth-child(6n+2) { grid-column: span 2; }
  .gallery figure:nth-child(6n+5) { grid-column: span 2; }
  .gallery figure:nth-child(6n+6) { grid-column: span 2; }
}
.gallery figure { margin: 0; overflow: hidden; background: var(--bd); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter var(--dur) var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

/* clickable affordance for all "Moje delo" images */
.gallery figure { cursor: pointer; position: relative; }
.gallery figure::after {
  content: "\e8eb"; /* search/zoom glyph */
  font-family: "fontello"; speak: none; font-style: normal; font-weight: normal;
  position: absolute; bottom: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; background: var(--ink-50);
  opacity: 0; transform: scale(.85); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  backdrop-filter: blur(2px);
}
.gallery figure:hover::after { opacity: 1; transform: scale(1); }
.collage--work img { cursor: pointer; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 19, 17, 0.92);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  margin: 0; max-width: min(90vw, 900px); max-height: 86vh;
  display: flex; align-items: center; justify-content: center;
  transform: scale(.96); transition: transform .45s var(--ease);
}
.lightbox.is-open .lightbox__stage { transform: scale(1); }
.lightbox__stage img {
  max-width: 100%; max-height: 86vh; object-fit: contain;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
  background: var(--bg-dark);
}
.lightbox__stage img.is-swapping { opacity: 0; }
.lightbox__stage img { transition: opacity .3s var(--ease); }

.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); border-color: var(--gold); }
.lightbox__close {
  top: 24px; right: 24px; width: 46px; height: 46px; border-radius: 999px;
  font-size: 26px; line-height: 1; font-family: var(--font-body);
}
.lightbox__nav {
  top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 999px;
  font-size: 30px; line-height: 1; padding-bottom: 3px;
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__count {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,.7);
  font-family: var(--font-body);
}
@media (max-width: 640px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 24px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__close { top: 14px; right: 14px; }
}

/* ============================================================
   AFTERCARE — 9 cards
   ============================================================ */
.care-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--bd); border: 1px solid var(--bd); }
@media (min-width: 620px) { .care-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .care-grid { grid-template-columns: repeat(3, 1fr); } }
.care-card { background: var(--bg); padding: 40px 32px; transition: background var(--dur) var(--ease); }
.care-card:hover { background: var(--bg-alt); }
.care-card__num {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--gold-20); border-radius: 50%;
  margin-bottom: 22px;
}
.care-card h4 { margin: 0 0 16px; font-size: 1.25rem; }
.care-card ul li {
  position: relative; padding-left: 20px; margin-bottom: 9px; font-size: 0.95rem; color: var(--fg);
}
.care-card ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; background: var(--gold); }
.care-card ul li.warn { color: var(--clay); font-weight: 500; }

/* ============================================================
   DARILNI BON — gift voucher
   ============================================================ */
.bon-wrap { display: flex; justify-content: center; }
.bon {
  position: relative; width: min(100%, 760px); background: var(--bg-alt);
  border: 1px solid var(--bd); padding: 54px 40px; text-align: center; cursor: pointer;
  text-decoration: none; color: inherit; display: block;
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), border-color var(--dur) var(--ease);
  box-shadow: 0 24px 60px -40px var(--ink-50);
}
.bon::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid var(--gold-20);
  pointer-events: none; transition: inset var(--dur) var(--ease);
}
.bon:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px var(--ink-50); border-color: var(--gold); }
.bon:hover::before { inset: 10px; }
.bon__label { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); }
.bon h3 { margin: 14px 0 6px; font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: 2px; }
.bon__mascot { width: 150px; height: auto; margin: 18px auto 8px; }
.bon__tag { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--ink); }
.bon__cta { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.bon__cta .icon { color: var(--gold); transition: transform var(--dur) var(--ease); }
.bon:hover .bon__cta .icon { transform: translateX(5px); }

/* ============================================================
   BOOKING (Naročanje)
   ============================================================ */
.booking-cols { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 860px) { .booking-cols { grid-template-columns: repeat(3, 1fr); gap: 50px; } }
.booking-col h3 { text-align: center; margin: 0 0 8px; }
.booking-col .col-icon { display: block; text-align: center; font-size: 30px; color: var(--gold); margin-bottom: 14px; }
.booking-col ul li { position: relative; padding-left: 20px; margin-bottom: 12px; color: var(--fg); font-size: 0.96rem; }
.booking-col ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; background: var(--gold); }
.booking-col p { color: var(--fg); }

/* contact form */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; margin-top: 80px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; } }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-light); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--input-bg); border: none; border-bottom: 1px solid var(--input-bd);
  padding: 12px 0; color: var(--ink); font-family: var(--font-body); font-size: 1rem;
  transition: border-color var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--input-bd-hover); }
.field textarea { resize: vertical; min-height: 120px; }
/* invalid (empty, required) field + form shake on a blocked submit */
.field--invalid input, .field--invalid textarea, .field--invalid select { border-bottom-color: #b3402f; }
.field--invalid label { color: #b3402f; }
@keyframes formShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.shake { animation: formShake 0.4s var(--ease); }
.contact-info { font-size: 1rem; display: flex; flex-direction: column; }
.contact-info .row { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--bd); }
.contact-info .row .icon { color: var(--gold); font-size: 20px; width: 26px; text-align: center; }
.contact-info .row a { color: var(--ink); }
.contact-info .row a:hover { color: var(--gold); }
.contact-map { margin-top: 32px; flex: 1; display: flex; flex-direction: column; }
.contact-map iframe {
  display: block; width: 100%; flex: 1; min-height: 360px; border: 1px solid var(--bd);
  filter: grayscale(1) contrast(1.02); transition: filter var(--dur) var(--ease);
}
.contact-map iframe:hover { filter: grayscale(0); }
.map-link {
  display: inline-block; margin-top: 14px; font-size: .82rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 3px; transition: color var(--dur) var(--ease);
}
.map-link:hover { color: var(--gold); }

/* ============================================================
   INSTAGRAM FEED
   ============================================================ */
.ig-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 44px; }
.ig-handle { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.ig-handle .icon { color: var(--gold); font-size: 22px; }
.ig-handle:hover { color: var(--gold); }
/* horizontal scroll carousel */
.ig-carousel { position: relative; }
.ig-grid {
  display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px;
}
.ig-grid::-webkit-scrollbar { display: none; }
@media (min-width: 940px) { .ig-grid { gap: 12px; } }
.ig-cell {
  position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bd); text-decoration: none;
  flex: 0 0 calc((100% - 8px) / 2); scroll-snap-align: start;
}
@media (min-width: 640px) { .ig-cell { flex-basis: calc((100% - 16px) / 3); } }
@media (min-width: 940px) { .ig-cell { flex-basis: calc((100% - 54px) / 4.5); } }

/* side arrows — echo the lightbox nav buttons */
.ig-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; cursor: pointer;
  width: 48px; height: 48px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--bd); color: var(--ink); font-size: 20px;
  box-shadow: 0 14px 34px -18px var(--ink-50);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.ig-arrow:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.ig-arrow--prev { left: 10px; }
.ig-arrow--next { right: 10px; }
.ig-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .ig-arrow { width: 42px; height: 42px; font-size: 18px; }
  .ig-arrow--prev { left: 6px; }
  .ig-arrow--next { right: 6px; }
}
.ig-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.ig-cell::after {
  content: "\e9c9"; font-family: "fontello"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; background: var(--ink-50); opacity: 0; transition: opacity var(--dur) var(--ease);
}
.ig-cell:hover img { transform: scale(1.07); }
.ig-cell:hover::after { opacity: 1; }
.ig-note { text-align: center; margin-top: 28px; }
/* live feed states */
.ig-grid--loading { opacity: .55; transition: opacity var(--dur) var(--ease); }
.ig-cell--video::before {
  content: ""; position: absolute; top: 11px; right: 11px; z-index: 2;
  width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 1px 3px rgba(16,15,23,.6)); pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-dark); color: var(--fg-on-dark); padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; } }
.site-footer img.flogo { height: 40px; mix-blend-mode: screen; filter: invert(1) brightness(2); width: auto; margin-bottom: 20px; }
.site-footer h5 { color: #fff; font-family: var(--font-body); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 20px; }
.site-footer a { color: var(--fg-on-dark); text-decoration: none; transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: var(--gold-blend); }
.footer-links li { margin-bottom: 12px; }
.footer-contact .row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.footer-contact .icon { color: var(--gold-blend); margin-top: 2px; }
.footer-social { display: flex; gap: 14px; margin-top: 6px; }
.footer-social a { width: 42px; height: 42px; border: 1px solid var(--bd-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.footer-social a:hover { border-color: var(--gold-blend); color: var(--gold-blend); }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--bd-dark); display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; font-size: 13px; color: var(--fg-on-dark-light); }
@media (min-width: 700px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* reveal-on-scroll — content always visible; entrance is a pure, optional
   enhancement applied via .reveal.in only where supported. Never hides content. */
.reveal { opacity: 1; transform: none; }

/* studio desk small img helper */
.muted { color: var(--fg-light); }

/* ============================================================
   GIFT CARD CONTACT MODAL
   ============================================================ */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal__backdrop {
  position: absolute; inset: 0; background: var(--ink-50);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 1; transition: opacity .25s var(--ease);
}
.modal__panel {
  position: relative; z-index: 1; width: calc(100% - 40px); max-width: 480px;
  margin: 0 auto; top: 50%; transform: translateY(-50%);
  max-height: calc(100vh - 56px); overflow-y: auto;
  background: #fff; border: 1px solid var(--bd); padding: 48px 44px 44px;
  box-shadow: 0 30px 60px -30px rgba(16,15,23,.5);
  opacity: 1; transition: transform .3s var(--ease);
}
.modal.open .modal__panel { animation: modalRise .3s var(--ease); }
@keyframes modalRise { from { transform: translateY(calc(-50% + 16px)); } to { transform: translateY(-50%); } }
.modal__panel .eyebrow { margin-bottom: 10px; }
.modal__panel h3 { margin: 0 0 10px; }
.modal__sub { margin: 0 0 28px; font-size: .95rem; }
.modal__close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--bd); color: var(--ink); cursor: pointer;
  font-size: 16px; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.modal__close:hover { border-color: var(--gold); color: var(--gold); }
.modal__panel .field:last-of-type { margin-bottom: 30px; }
.modal__panel .btn { width: 100%; }
@media (max-width: 520px) { .modal__panel { padding: 42px 24px 32px; } }
