/* ==========================================================================
   Adventurous Treads — shared styles (tokens, layout, header, footer, UI)
   ========================================================================== */

:root {
  --ink: #0c1218;
  --ink-2: #111a22;
  --ink-3: #1a2530;
  --ink-line: rgba(255, 255, 255, 0.1);

  --paper: #f5f2ec;
  --paper-2: #ece7de;
  --card: #ffffff;
  --line: #dcd5c8;

  --text: #161b20;
  --muted: #5d636a;
  --on-dark: #eef0f2;
  --on-dark-muted: #a9b1b9;

  --accent: #d8a657;        /* brass gold */
  --accent-hi: #e7bd7c;
  --accent-deep: #9a6a26;   /* gold that passes contrast on paper */
  --on-accent: #15100a;

  --success: #3aa672;
  --warn: #e0953a;
  --danger: #d9534f;

  /* Editorial serif for display, clean sans for everything else */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-head: "Fraunces", Georgia, "Times New Roman", serif;
  --f-cond: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-script: "Caveat", "Segoe Script", cursive;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(12, 18, 24, 0.35);
  --shadow-soft: 0 1px 2px rgba(12, 18, 24, .04), 0 14px 34px -20px rgba(12, 18, 24, .28);
  --shadow-lift: 0 2px 4px rgba(12, 18, 24, .04), 0 38px 70px -32px rgba(12, 18, 24, .5);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);

  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(216, 166, 87, .35); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }

.dark { background: var(--ink); color: var(--on-dark); }
.topo {
  background-color: var(--ink);
  background-image: url("../img/topo.svg");
  background-size: 900px auto;
}

/* ---------- Smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.scroll-progress {
  position: fixed; inset: 0 0 auto; z-index: 70; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-hi));
  transform: scaleX(0); transform-origin: left;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--ink); color: var(--on-dark);
  transition: opacity .9s var(--ease-out), visibility .9s;
  animation: preloader-failsafe .6s ease 9s forwards; /* never trap the page if the script fails */
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { display: grid; justify-items: center; gap: 26px; animation: preloader-in .9s var(--ease-out) backwards; transition: scale .9s var(--ease-out), opacity .6s ease; }
.preloader.is-done .preloader__inner { scale: .96; opacity: 0; }
/* only transform/opacity animate here, so the ring spins on the compositor and stays smooth while photos decode */
.preloader__ring { position: relative; width: 58px; height: 58px; }
.preloader__ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .07); }
.preloader__spin { position: absolute; inset: 0; border-radius: 50%; will-change: transform; animation: preloader-spin 1.1s linear infinite; }
.preloader__spin::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(216, 166, 87, 0) 0deg, rgba(216, 166, 87, 0) 70deg, rgba(216, 166, 87, .85) 330deg, #f4e6cc 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
}
.preloader__spin::after { content: ""; position: absolute; top: 0; left: 50%; width: 2.5px; height: 2.5px; margin-left: -1.25px; border-radius: 50%; background: #f4e6cc; box-shadow: 0 0 10px 2px rgba(216, 166, 87, .55); }
.preloader__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.2; letter-spacing: -0.02em; color: #f4e6cc; animation: preloader-breathe 2.8s ease-in-out infinite; }
.preloader__title em { font-style: italic; font-weight: 300; color: var(--accent); }
@keyframes preloader-spin { to { transform: rotate(360deg); } }
@keyframes preloader-breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes preloader-in { from { opacity: 0; translate: 0 10px; } }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.no-js .preloader { display: none; }
html.is-loading, html.is-loading body { overflow: hidden; }
/* keep the page unpainted behind the curtain so nothing competes with the spinner */
html.is-loading body > :not(.preloader) { visibility: hidden; animation: preloader-reveal-failsafe 0s linear 9s forwards; }
@keyframes preloader-reveal-failsafe { to { visibility: visible; } }

/* ---------- Icons ---------- */
.ic { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic--fill { fill: currentColor; stroke: none; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .7; }
.dark .eyebrow, .on-dark .eyebrow { color: var(--accent); }
.h2 {
  font-family: var(--f-head);
  font-weight: 420;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-optical-sizing: auto;
}
.h2 em { font-style: italic; font-weight: 300; color: var(--accent-deep); }
.dark .h2 em, .on-dark .h2 em { color: var(--accent); }
.h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.script { font-family: var(--f-script); font-weight: 500; line-height: 0.95; }
.lead { font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--muted); }
.dark .lead { color: var(--on-dark-muted); }
.tagline {
  font-family: var(--f-cond);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.dark .tagline { color: var(--on-dark-muted); }

/* Section head: title — rule — tagline — link */
.sec-head { display: flex; align-items: flex-end; gap: 20px 28px; margin-bottom: clamp(28px, 3.4vw, 44px); flex-wrap: wrap; }
.sec-head__title { display: grid; gap: 12px; justify-items: start; }
.sec-head__rule { flex: 1 1 60px; height: 1px; background: var(--line); margin-bottom: 0.9em; min-width: 40px; transform-origin: left; }
.dark .sec-head__rule { background: var(--ink-line); }
.sec-head__meta { display: flex; align-items: center; gap: 28px; margin-bottom: 0.55em; }
.motion .sec-head.reveal .sec-head__rule { transform: scaleX(0); transition: transform 1.4s var(--ease-out) .25s; }
.motion .sec-head.reveal.is-in .sec-head__rule { transform: none; }
@media (max-width: 760px) {
  .sec-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .sec-head__rule { display: none; }
  .sec-head__meta { margin: 0; gap: 16px; flex-wrap: wrap; }
  .tagline { white-space: normal; letter-spacing: 0.18em; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--f-body); font-weight: 600; font-size: 0.93rem; line-height: 1.2; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.btn .ic { width: 1.05em; height: 1.05em; transition: transform .4s var(--ease-out); }
.btn:hover .ic { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hi); box-shadow: 0 10px 26px -10px rgba(216, 166, 87, .8); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(12, 18, 24, .2); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.btn--outline { border-color: var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--on-accent); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(12, 18, 24, .7); }
.btn--sm { padding: 0.6em 1.1em; font-size: 0.84rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { background: #d6d3ce; color: #807b73; cursor: not-allowed; box-shadow: none; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9rem; color: var(--accent-deep);
  padding-bottom: 3px; border-bottom: 1.5px solid currentColor; white-space: nowrap;
}
.link-arrow .ic { width: 1em; height: 1em; transition: transform .4s var(--ease-out); }
.link-arrow:hover .ic { transform: translateX(4px); }
.dark .link-arrow { color: var(--accent); }

.pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--f-cond); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease), height .45s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 12, 16, .6), rgba(8, 12, 16, 0));
  transition: opacity .45s;
}
.site-header.is-scrolled { background: rgba(12, 18, 24, .82); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--ink-line); --header-h: 64px; }
.site-header.is-scrolled::before { opacity: 0; }
.site-header__inner { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__badge { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(216, 166, 87, .55); transition: width .45s var(--ease), height .45s var(--ease); }
.is-scrolled .brand__badge { width: 38px; height: 38px; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.01em; color: #f4e6cc; font-variation-settings: "opsz" 48; }
.brand__sub { margin-top: 6px; font-family: var(--f-cond); font-weight: 500; font-size: 0.56rem; letter-spacing: 0.32em; color: var(--accent); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); margin-left: auto; }
.nav a { position: relative; font-size: 0.9rem; font-weight: 500; padding-block: 6px; color: rgba(255, 255, 255, .82); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav a:hover, .nav a[aria-current="page"], .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: flex; align-items: center; gap: 22px; }
.header-motto { display: flex; align-items: center; gap: 12px; font-family: var(--f-cond); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.28em; line-height: 1.6; color: var(--accent); text-transform: uppercase; }
.header-motto .ic { width: 28px; height: 28px; stroke-width: 1.2; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; background: rgba(12, 18, 24, .35); color: #fff; cursor: pointer; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) { .header-motto { display: none; } }
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px;
    background: rgba(12, 18, 24, .98); border-top: 1px solid var(--ink-line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .35s var(--ease-out), visibility .25s;
  }
  .nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--ink-line); }
  .nav a::after { display: none; }
  .nav .btn { display: flex; margin-top: 18px; border-bottom: 0; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { background: rgba(12, 18, 24, .98); }
}
@media (min-width: 961px) { .nav .nav__mobile-cta { display: none; } }
@media (max-width: 420px) { .brand__name { font-size: 1.05rem; } .brand__badge { width: 40px; height: 40px; } }

/* ---------- Page hero shell (shared) ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 12, 16, .5) 0%, rgba(8, 12, 16, 0) 32%),
    linear-gradient(90deg, rgba(8, 12, 16, .82) 0%, rgba(8, 12, 16, .5) 45%, rgba(8, 12, 16, .08) 75%),
    linear-gradient(0deg, rgba(8, 12, 16, .75) 0%, rgba(8, 12, 16, 0) 38%);
}
.side-words {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: 10px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .35);
  font-family: var(--f-cond); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.hero__script { position: absolute; color: #fff; opacity: .95; text-shadow: 0 2px 14px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .5); font-size: clamp(1.6rem, 2.4vw, 2.2rem); transform: rotate(-10deg); text-align: center; }
@media (max-width: 960px) { .side-words, .hero__script { display: none; } }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 4px; cursor: pointer; list-style: none; font-weight: 500; font-size: 0.96rem;
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-deep); }
.faq .plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out); }
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq details p { padding: 0 4px 18px; color: var(--muted); font-size: 0.92rem; max-width: 62ch; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-block: 56px 28px; }
.footer__top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px 48px; padding-bottom: 26px; border-bottom: 1px solid var(--ink-line); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px clamp(20px, 3.5vw, 56px); font-size: 0.92rem; color: var(--on-dark-muted); }
.footer__nav a { transition: color .25s; }
.footer__nav a:hover { color: var(--accent); }
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ink-line); color: #fff; transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--spring); }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-3px); }
.socials .ic { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; padding-top: 22px; font-size: 0.86rem; color: var(--on-dark-muted); }
.footer__contact { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.footer__contact a, .footer__contact span { display: inline-flex; align-items: center; gap: 10px; }
.footer__contact .ic { color: var(--accent); }
.footer__contact a:hover { color: #fff; }
.footer__legal { display: grid; gap: 4px; text-align: right; font-size: 0.8rem; }
.footer__legal nav { display: flex; gap: 20px; justify-content: flex-end; }
.footer__legal a:hover { color: var(--accent); }
.footer__script { position: absolute; right: var(--gutter); top: 36px; color: var(--accent); font-size: 1.9rem; transform: rotate(-12deg); opacity: .85; }
@media (max-width: 1300px) { .footer__script { display: none; } }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__legal { text-align: left; }
  .footer__legal nav { justify-content: flex-start; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 0.8rem; font-weight: 500; }
.field label .req { color: var(--accent); }
.input {
  width: 100%; padding: 0.78em 1em;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-size: 0.92rem;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #9aa0a6; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(216, 166, 87, .25); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%235d636a' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

/* ---------- Motion: reveal on scroll ---------- */
/* `translate` (not `transform`) so reveals compose with each element's own transforms */
.reveal { opacity: 0; translate: 0 32px; transition: opacity 1s var(--ease-out) var(--d, 0s), translate 1.2s var(--ease-out) var(--d, 0s); }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* Headings split into words that rise out of a mask */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
[data-split] .w > span { display: inline-block; transform: translateY(112%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0s)); }
[data-split].is-in .w > span { transform: none; }

/* Page-load intro */
@keyframes intro-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
.motion .intro { opacity: 0; }
.motion.is-ready .intro { animation: intro-rise 1.2s var(--ease-out) var(--d, 0s) both; }

.no-js .reveal { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  [data-split] .w > span { transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 120;
  width: min(420px, calc(100vw - 32px)); transform: translateX(-50%);
  display: grid; pointer-events: none;
}
.toast-stack > * { grid-area: 1 / 1; }
.toast {
  position: relative; overflow: hidden; pointer-events: auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 12px 10px 12px 12px; border-radius: 18px;
  background: rgba(17, 23, 30, .88); color: #fff;
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .65), 0 4px 12px -4px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0; transform: translateY(18px) scale(.96);
  transition: opacity .35s var(--ease-out), transform .6s var(--spring);
}
.toast.is-show { opacity: 1; transform: none; }
.toast__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: linear-gradient(145deg, rgba(216, 166, 87, .22), rgba(216, 166, 87, .06)); box-shadow: inset 0 0 0 1px rgba(216, 166, 87, .25); }
.toast__icon .ic { width: 20px; height: 20px; stroke-width: 1.7; }
.toast__body { display: grid; gap: 2px; min-width: 0; }
.toast__title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-weight: 600; font-size: .92rem; line-height: 1.3; letter-spacing: -0.005em; }
.toast__chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-hi); }
.toast__chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(216, 166, 87, .6); animation: toast-pulse 1.8s ease-out infinite; }
.toast__msg { font-size: .82rem; line-height: 1.45; color: var(--on-dark-muted); }
.toast__close { width: 32px; height: 32px; align-self: start; border: 0; border-radius: 10px; background: transparent; color: var(--on-dark-muted); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.toast__close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.toast__close .ic { width: 16px; height: 16px; }
.toast__bar { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-deep), var(--accent-hi)); transform-origin: left; animation: toast-bar var(--dur, 4s) linear forwards; opacity: .8; }
.toast.is-paused .toast__bar { animation-play-state: paused; }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes toast-pulse { 0% { box-shadow: 0 0 0 0 rgba(216, 166, 87, .6); } 80%, 100% { box-shadow: 0 0 0 6px rgba(216, 166, 87, 0); } }
