/* ============================================================
   Sculpted India — design system
   Warm-stone ground, verdigris patina accent, Cinzel/Lora/Inter.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #f9f9f8;
  --bg-soft: #f0efe9;
  --bg-deep: #dfded3;
  --ink: #232722;
  --ink-soft: #4a5146;
  /* --muted and --patina-soft are tuned for WCAG AA on --bg/--bg-soft only;
     they fail on dark grounds — dark sections use --stone-light instead */
  --muted: #6f6d5c;
  --patina: #4a5d55;
  --patina-soft: #65766e;
  --patina-deep: #23302d;
  --stone-light: #8ba196;
  --stone-dark: #151a18;
  --hairline: rgba(35, 39, 34, 0.14);
  --glass: rgba(249, 249, 248, 0.82);

  --display: "Cinzel", "Times New Roman", serif;
  --body: "Lora", Georgia, serif;
  --ui: "Inter", system-ui, -apple-system, sans-serif;

  --fs-h1: clamp(2rem, 4.2vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 3.2vw, 2.6rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.6rem);
  --fs-body: 1.11rem;
  --fs-eyebrow: 0.72rem;
  --track-eyebrow: 0.28em;

  --s2: 8px; --s3: 16px; --s4: 24px;
  --s5: 40px; --s6: 64px; --s7: 104px; --s8: 168px;

  --max: 1280px;
  --max-text: 720px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--patina); color: var(--bg); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1.35em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.text-measure { max-width: var(--max-text); }

/* ---------- utilities ---------- */
.eyebrow {
  display: block;
  font-family: var(--ui);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--patina-soft);
  margin-bottom: var(--s3);
}
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s3);
  z-index: 2100;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--ui);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 20px;
}
.skip-link:focus-visible { top: var(--s3); }
.backlink { color: inherit; text-decoration: none; }
.backlink:focus-visible { outline: 2px solid var(--patina); outline-offset: 4px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* buttons */
.btn {
  display: inline-block;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 14px 30px;
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover, .btn:focus-visible {
  background: var(--patina);
  border-color: var(--patina);
  color: var(--bg);
}
.btn--light {
  color: var(--bg);
  border-color: rgba(249, 249, 248, 0.6);
}
.btn--light:hover, .btn--light:focus-visible {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--patina-deep);
}

/* film grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* reveal on scroll (scoped to html.js so content is never hidden without JS) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-solid {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline);
}
.site-header__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-header__brand img { height: 26px; width: auto; }
.site-nav ul {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav a[aria-current] {
  color: var(--ink);
  border-bottom-color: var(--patina);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
    z-index: -1;
  }
  .site-nav ul { flex-direction: column; text-align: center; gap: var(--s5); }
  .site-nav a { font-size: 1rem; letter-spacing: 0.3em; }
  body.nav-open .site-nav { opacity: 1; visibility: visible; z-index: 999; }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter would make the fixed overlay position against the header
     instead of the viewport — disable it while the menu is open */
  body.nav-open .site-header,
  body.nav-open .site-header.is-solid {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg);
  }
  body.nav-open .nav-toggle { z-index: 1001; }
  body.nav-open .site-header__brand { z-index: 1001; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg-soft);
  padding: var(--s5) 0 var(--s4);
  margin-top: var(--s7);
}
.site-footer__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.site-footer__brand img { width: 180px; }
.site-footer__contact {
  font-family: var(--ui);
  font-size: 0.85rem;
  line-height: 2;
  color: var(--ink-soft);
}
.site-footer__contact a { text-decoration: none; color: inherit; }
.site-footer__contact a:hover, .site-footer__contact a:focus-visible { color: var(--patina); }
.site-footer__meta {
  width: 100%;
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--hairline);
  font-family: var(--ui);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- home hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg) 70%);
  padding-top: var(--header-h);
  overflow: hidden;
}
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* now-showing strip (home) */
.event-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--s2) var(--s4);
  border-block: 1px solid var(--hairline);
  padding: var(--s4) var(--gutter);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.35s var(--ease);
}
.event-strip:hover { background: var(--bg-soft); }
.event-strip .eyebrow { margin-bottom: 0; }
.event-strip__title { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.06em; }
.event-strip__meta {
  font-family: var(--ui);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.event-strip__arrow { color: var(--patina); transition: transform 0.35s var(--ease); }
.event-strip:hover .event-strip__arrow { transform: translateX(6px); }

/* no-JS / failed-module fallback inside the 3D hero */
model-viewer:defined .mv-fallback { display: none; }
.mv-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  text-align: center;
  color: var(--ink-soft);
  padding: var(--s5);
}
@media (max-width: 960px) {
  .hero { min-height: 0; }
}

/* centred hero variant (home) */
.hero--center__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--s4) var(--gutter) var(--s6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero--center model-viewer {
  width: min(760px, 100%);
  height: min(64vh, 600px);
  --poster-color: transparent;
  background: transparent;
  /* hide model-viewer's built-in loading progress bar */
  --progress-bar-color: transparent;
  --progress-bar-height: 0px;
  --progress-mask: transparent;
}
.hero__strapline {
  margin: var(--s5) 0 0;
  font-family: var(--ui);
  font-size: clamp(0.6rem, 0.9vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 1080px) {
  .hero__strapline { white-space: normal; }
}
@media (max-width: 640px) {
  .hero--center model-viewer { height: 48vh; }
}

/* ---------- newsletter ---------- */
.newsletter {
  border-top: 1px solid var(--hairline);
  margin-top: var(--s8);
  padding: var(--s7) 0 var(--s6);
}
.callout + .newsletter { border-top: 0; margin-top: 0; }
main:has(.newsletter) + .site-footer { margin-top: 0; }
.newsletter__inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(var(--s5), 5vw, var(--s7));
  align-items: center;
}
.newsletter h2 { margin-bottom: var(--s2); }
.newsletter p { color: var(--ink-soft); margin: 0; }
.newsletter__form { display: flex; align-items: flex-end; gap: var(--s3); }
.newsletter__form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.newsletter__form input[type="email"]:focus-visible {
  outline: none;
  border-bottom-color: var(--patina);
  box-shadow: 0 1px 0 0 var(--patina); /* reads as a 2px rule, no layout shift */
}
@media (max-width: 860px) {
  .newsletter__inner { grid-template-columns: 1fr; }
  .newsletter__form { flex-wrap: wrap; }
}

/* ---------- sections ---------- */
.section--first { padding-top: var(--s7); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(var(--s5), 6vw, var(--s7));
  align-items: start;
}
.about-grid__aside { position: sticky; top: calc(var(--header-h) + var(--s5)); }
.about-grid__aside img { width: min(300px, 70%); }
.about-grid__body p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 3.2em;
  line-height: 0.85;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--patina);
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid__aside { position: static; }
}

/* flagship callout band */
.callout {
  background: linear-gradient(150deg, var(--patina-deep), var(--stone-dark));
  color: var(--bg);
  padding: var(--s7) 0;
  margin-top: var(--s8);
}
.callout .eyebrow { color: var(--stone-light); }
.callout h2 { color: var(--bg); max-width: 22ch; }
.callout p { color: rgba(249, 249, 248, 0.78); max-width: 58ch; }
.callout .btn { margin-top: var(--s4); }

/* ---------- page header (inner pages) ---------- */
.page-head {
  padding: calc(var(--header-h) + var(--s7)) 0 var(--s6);
  border-bottom: 1px solid var(--hairline);
}
.page-head p { color: var(--ink-soft); max-width: 60ch; margin-top: var(--s3); }

/* ---------- artists index (typographic, no images) ---------- */
.artist-index { padding-block: var(--s5) 0; }
.artist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: var(--s2) var(--s4);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding: var(--s4) 0;
}
.artist-row__name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}
.artist-row__sub {
  font-family: var(--ui);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.artist-row__arrow {
  font-family: var(--body);
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.artist-row:hover .artist-row__name,
.artist-row:focus-visible .artist-row__name { color: var(--patina); }
.artist-row:hover .artist-row__arrow,
.artist-row:focus-visible .artist-row__arrow { transform: translateX(8px); color: var(--patina); }
@media (max-width: 640px) {
  .artist-row { grid-template-columns: minmax(0, 1fr) auto; }
  .artist-row__arrow { grid-column: 2; grid-row: 1; }
  .artist-row__sub { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- artist detail ---------- */
.artist-head {
  padding: calc(var(--header-h) + var(--s6)) 0 var(--s5);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
}
.artist-head__sub {
  font-family: var(--ui);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--s2);
}
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  font-family: var(--ui);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pager a {
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
  padding: 10px 18px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.pager a:hover, .pager a:focus-visible { border-color: var(--patina); color: var(--patina); }
.artist-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(var(--s5), 5vw, var(--s7));
  align-items: start;
  padding-top: var(--s5);
  border-top: 1px solid var(--hairline);
}
.artist-body__media { position: sticky; top: calc(var(--header-h) + var(--s5)); }
.artist-body__media img { width: 100%; }
.artist-body__media figcaption {
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--s3);
  line-height: 1.8;
}
.artist-body__bio p:first-of-type {
  font-size: 1.28rem;
  line-height: 1.6;
  color: var(--ink);
}
.artist-body__bio .pager { margin-top: var(--s6); }
@media (max-width: 860px) {
  .artist-body { grid-template-columns: minmax(0, 1fr); }
  .artist-body__media { position: static; }
}

/* ---------- events ---------- */
.event-list { display: grid; gap: var(--s7); padding-block: var(--s6) 0; }
.event-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(var(--s4), 4vw, var(--s6));
  align-items: center;
}
.event-card__media {
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 3 / 2;
}
.event-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.event-card:hover .event-card__media img { transform: scale(1.03); }
.event-card__meta {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: grid;
  gap: 6px;
  margin: var(--s3) 0 var(--s4);
}
.event-card__meta .date { color: var(--patina); font-weight: 500; }
.event-card p { color: var(--ink-soft); max-width: 56ch; }
.event-card .btn { margin-top: var(--s4); }
@media (max-width: 860px) {
  .event-card { grid-template-columns: 1fr; }
}

/* ---------- event detail ---------- */
.event-detail {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(var(--s5), 5vw, var(--s7));
  align-items: start;
  padding-top: var(--s6);
}
.event-detail__media { position: sticky; top: calc(var(--header-h) + var(--s5)); }
.event-detail__media img { width: 100%; }
.event-detail__media figcaption {
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--s3);
  line-height: 1.8;
}
.event-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s4);
  border-block: 1px solid var(--hairline);
  padding-block: var(--s4);
  margin-block: var(--s5);
  font-family: var(--ui);
}
.event-facts dt {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.event-facts dd { margin: 0; font-size: 0.9rem; color: var(--ink); }
@media (max-width: 860px) {
  .event-detail { grid-template-columns: 1fr; }
  .event-detail__media { position: static; order: -1; }
}

/* exhibiting artists list (event detail) */
.exhibiting { margin-top: var(--s6); }
.artist-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s5);
}
.artist-links li { border-bottom: 1px solid var(--hairline); }
.artist-links a {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 0;
  transition: color 0.3s var(--ease);
}
.artist-links a:hover, .artist-links a:focus-visible { color: var(--patina); }
@media (max-width: 560px) { .artist-links { grid-template-columns: 1fr; } }

/* ---------- enquiry ---------- */
.enquiry-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(var(--s5), 6vw, var(--s7));
  align-items: start;
  padding-block: var(--s6) 0;
}
.form-field { margin-bottom: var(--s4); }
.form-field label {
  display: block;
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s2);
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--patina);
  box-shadow: 0 1px 0 0 var(--patina); /* reads as a 2px rule, no layout shift */
}
.form-field textarea { resize: vertical; min-height: 140px; }
.contact-card {
  border-top: 1px solid var(--hairline);
  padding: var(--s4) 0;
}
.contact-card:last-child { border-bottom: 1px solid var(--hairline); }
.contact-card h2 { font-size: 1.05rem; letter-spacing: 0.08em; margin-bottom: var(--s2); }
.contact-card p {
  font-family: var(--ui);
  font-size: 0.88rem;
  line-height: 2;
  color: var(--ink-soft);
  margin: 0;
}
.contact-card a { text-decoration: none; color: inherit; }
.contact-card a:hover, .contact-card a:focus-visible { color: var(--patina); }
@media (max-width: 860px) { .enquiry-grid { grid-template-columns: 1fr; } }

/* ---------- thanks ---------- */
.thanks {
  min-height: 80svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + var(--s6)) var(--gutter) var(--s6);
}
.thanks img { width: 120px; margin-inline: auto; margin-bottom: var(--s5); }

/* ---------- toast (form confirmations) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: clamp(24px, 5vh, 48px);
  transform: translate(-50%, 14px);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(249, 249, 248, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 32px rgba(21, 26, 24, 0.16);
  font-family: var(--ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  max-width: 92vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast__icon { width: 17px; height: 17px; flex: none; color: var(--patina); }
@media (max-width: 560px) { .toast { white-space: normal; text-align: center; border-radius: 18px; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
