/* ==========================================================================
   Sa Terra Ibiza — Herbari viu
   Design system + components. Responsive overrides live in responsive.css
   ========================================================================== */

/* ---------- Fonts (local, SIL OFL 1.1 — see assets/fonts) ---------- */
/* Static weights (one file per weight): identical rendering in every browser.
   Headings: Bricolage Grotesque · Text: Lato (both SIL OFL 1.1). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-200.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/lato-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/lato-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/lato-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/lato-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/lato-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cal: #f4efe6;          /* lime-washed wall / paper */
  --cal-2: #ece4d6;        /* deeper paper */
  --cal-3: #e2d7c4;
  --ink: #2a2520;
  --ink-soft: #564e44;
  --ink-mute: #675e52;
  --sabina: #76642b;       /* logo gold-olive, AA on --cal */
  --sabina-l: #a38e4e;
  --terra: #9a4a2b;        /* herbarium title red earth */
  --mar: #24393d;          /* deep sea, used once (footer) */
  --mar-ink: #e9e3d6;
  --line: rgba(42, 37, 32, .16);
  --line-strong: rgba(42, 37, 32, .38);

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-italic: "Lato", Georgia, serif; /* Bricolage has no italic */

  --fs-display: clamp(3.5rem, 8.4vw, 8.6rem);
  --fs-h1: clamp(2.6rem, 6vw, 6rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 4.2rem);
  --fs-h3: clamp(1.45rem, 2.1vw, 1.9rem);
  --fs-lead: clamp(1.15rem, 1.5vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .72rem;

  --gutter: clamp(20px, 4.2vw, 64px);
  --maxw: 1440px;
  --section: clamp(96px, 13vw, 200px);
  --radius: 2px;

  --ease: cubic-bezier(.22, .61, .21, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .25s;
  --t-med: .6s;
  --t-slow: 1.2s;

  --header-h: 84px;
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

body {
  background: var(--cal);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* paper grain — pure CSS/SVG, no extra request */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--sabina); color: var(--cal); }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px;
  border-radius: 1px;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--cal);
  padding: 12px 18px; text-decoration: none; font-size: var(--fs-small);
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3, h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 300;
  font-optical-sizing: auto;
  letter-spacing: -.022em;
  line-height: .98;
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: .92; letter-spacing: -.035em; }
.h1, h1 { font-size: var(--fs-h1); }
.h2, h2 { font-size: var(--fs-h2); line-height: 1.02; }
.h3, h3 { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -.012em; font-optical-sizing: auto; }
em, .it { font-style: italic; }
.display em, .h1 em, .h2 em, h1 em, h2 em { font-weight: 300; color: var(--sabina); }

.lead {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-size: var(--fs-lead);
  line-height: 1.45;
  font-weight: 300;
  color: var(--ink);
  text-wrap: pretty;
}
p { text-wrap: pretty; max-width: 62ch; }
.muted { color: var(--ink-soft); }

.label {
  font-family: var(--f-text);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.latin { font-family: var(--f-display); font-style: italic; font-weight: 300; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }

/* specimen numbering e.g. "Nº 03" */
.specimen-no {
  display: inline-flex; align-items: baseline; gap: .6em;
  font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-soft);
}
.specimen-no b { font-family: var(--f-display); font-weight: 400; font-size: 1.5em; letter-spacing: 0; color: var(--terra); text-transform: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section-head .specimen-no { grid-column: 1 / span 3; align-self: start; padding-top: .6em; }
.section-head h2 { grid-column: 4 / span 7; }
.section-head .section-head__aside { grid-column: 4 / span 5; margin-top: 28px; color: var(--ink-soft); }
.section-head .section-head__link { grid-column: 11 / span 2; justify-self: end; }

/* ---------- Links & buttons ---------- */
.link {
  position: relative; text-decoration: none; display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; font-size: var(--fs-small); letter-spacing: .02em;
  padding-block: 6px;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(1);
  transition: transform .5s var(--ease-out);
}
.link:hover::after { transform-origin: left; animation: line-redraw .7s var(--ease-out); }
@keyframes line-redraw { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }
.link .arrow { transition: transform .4s var(--ease-out); }
.link:hover .arrow { transform: translateX(4px); }

.btn {
  --bg: var(--ink); --fg: var(--cal);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px; padding: 0 28px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: var(--fs-small); letter-spacing: .04em;
  text-decoration: none; border-radius: 999px;
  transition: color .45s var(--ease-out), transform .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sabina);
  clip-path: circle(0% at 50% 100%);
  transition: clip-path .6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: circle(140% at 50% 100%); }
.btn:active { transform: scale(.98); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { color: var(--cal); }
.btn--light { --bg: var(--cal); --fg: var(--ink); }
.btn--light:hover { color: var(--cal); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: var(--fs-small); font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cal); box-shadow: none; }
.chip .count { font-size: .75em; color: inherit; font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: transform .5s var(--ease-out), background .4s, box-shadow .4s;
}
.site-header.is-scrolled { background: rgba(244, 239, 230, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sabina); }
.brand img { width: 74px; height: auto; }
.brand--small img { width: 64px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav__list { display: flex; gap: clamp(18px, 2.2vw, 36px); list-style: none; padding: 0; margin: 0; }
.nav__link {
  position: relative; text-decoration: none; font-size: var(--fs-small); font-weight: 500;
  padding-block: 8px; display: inline-block;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sabina); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: translateX(-50%) scale(1); }

.menu-toggle {
  display: none; width: 44px; height: 44px; position: relative;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink);
  transition: transform .5s var(--ease-out), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* mobile menu panel */
.menu-panel {
  position: fixed; inset: 0; z-index: 45;
  background: var(--cal);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-out), visibility 0s .7s;
  visibility: hidden;
  overflow-y: auto;
}
.menu-panel.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-out); }
.menu-panel ol { list-style: none; padding: 0; margin: 0; counter-reset: m; }
.menu-panel li { counter-increment: m; border-bottom: 1px solid var(--line); }
.menu-panel li a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
  text-decoration: none; font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.1;
  letter-spacing: -.02em;
}
.menu-panel li a::before { content: counter(m, decimal-leading-zero); font-family: var(--f-text); font-size: 11px; letter-spacing: .14em; color: var(--terra); font-weight: 600; transform: translateY(-1.1em); }
.menu-panel li a[aria-current="page"] { color: var(--sabina); font-style: italic; }
.menu-panel .menu-panel__foot { display: grid; gap: 6px; margin-top: 32px; font-size: var(--fs-small); color: var(--ink-soft); }
.menu-panel .menu-panel__foot a { text-decoration: none; }

/* ---------- Specimens (pressed plants) ---------- */
.specimen {
  position: absolute; pointer-events: none; user-select: none;
  mix-blend-mode: multiply;
  width: var(--w, 180px);
  z-index: 1;
  --r: 0deg;
  transform: translate3d(0, var(--py, 0px), 0) rotate(calc(var(--r) + var(--sway, 0deg)));
  will-change: transform;
}
.specimen img { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .specimen.sway { animation: sway 9s ease-in-out infinite alternate; }
}
@keyframes sway { from { --sway: -1.2deg; } to { --sway: 1.4deg; } }
@property --sway { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- Media frames & reveals ---------- */
.frame { position: relative; overflow: hidden; background: var(--cal-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--land { aspect-ratio: 3 / 2; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--square { aspect-ratio: 1; }
.frame figcaption, .caption {
  font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; margin-top: 12px;
  display: flex; gap: 10px; align-items: baseline;
}
.caption .latin { font-size: 15px; color: var(--ink); }

/* JS adds .js to <html>; reveal only animates when JS + motion allowed */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
  .js [data-reveal="mask"] img { transform: scale(1.12); transition: transform 2s var(--ease-out); transition-delay: var(--d, 0s); }
  .js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
  .js [data-reveal="mask"].is-in img { transform: scale(1); }

  .js [data-reveal="press"] { opacity: 0; transform: scale(1.06) rotate(calc(var(--r, 0deg) - 4deg)); filter: blur(4px); transition: opacity 1.4s var(--ease-out), transform 1.8s var(--ease-out), filter 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
  .js [data-reveal="press"].is-in { opacity: 1; transform: none; filter: none; }

  .js .split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
  .js .split-line > span { display: block; transform: translate3d(0, 105%, 0); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--i, 0) * .09s); }
  .js .is-in .split-line > span, .js .split-line.is-in > span { transform: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 80px));
  padding-bottom: clamp(40px, 6vw, 80px);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.hero__title { grid-column: 1 / span 8; position: relative; z-index: 2; }
.hero__title .display { margin-top: 28px; }
.hero__media { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: stretch; position: relative; }
.hero__media .frame { height: 100%; min-height: 420px; max-height: 76svh; }
.hero__foot { grid-column: 1 / span 8; display: flex; gap: clamp(24px, 4vw, 64px); align-items: flex-end; margin-top: clamp(40px, 5vw, 72px); position: relative; z-index: 2; }
.hero__foot p { max-width: 36ch; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.hero__index {
  position: absolute; top: calc(var(--header-h) + 24px); right: var(--gutter);
  text-align: right; color: var(--ink-soft); z-index: 2;
}
.hero__tag {
  position: absolute; left: -18px; bottom: 28px; z-index: 3;
  background: var(--cal); padding: 14px 18px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(42,37,32,.45);
  font-size: 12px; line-height: 1.45; max-width: 220px; transform: rotate(-2deg);
}
.hero__tag .latin { font-size: 16px; display: block; color: var(--ink); }

.scroll-cue { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-soft); text-decoration: none; }
.scroll-cue i { width: 1px; height: 44px; background: var(--line-strong); position: relative; overflow: hidden; display: block; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue i::after { animation: drip 2.4s var(--ease) infinite; } }
@keyframes drip { to { top: 100%; } }

/* ---------- Manifesto ---------- */
.manifesto { position: relative; }
.manifesto__text {
  grid-column: 3 / span 9;
  font-family: var(--f-display); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(1.75rem, 3.5vw, 3.4rem); line-height: 1.16; letter-spacing: -.018em;
  text-wrap: pretty;
}
.manifesto__text .word { transition: color .5s var(--ease); }
.js .manifesto__text .word { color: rgba(42, 37, 32, .56); }
.js .manifesto__text .word.is-lit { color: var(--ink); }
.js .manifesto__text em .word.is-lit { color: var(--sabina); }
.manifesto__sign { grid-column: 3 / span 9; margin-top: 40px; display: flex; gap: 20px; align-items: center; color: var(--ink-soft); }
.manifesto__sign::before { content: ""; width: 48px; height: 1px; background: var(--line-strong); }

/* ---------- Upcoming list with hover preview ---------- */
.agenda { border-top: 1px solid var(--line-strong); }
.agenda__row {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) 220px 120px 40px;
  gap: 24px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative;
  transition: padding .5s var(--ease-out), color .4s;
}
.agenda__row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--cal-2);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); z-index: -1;
}
.agenda__row:hover::before, .agenda__row:focus-visible::before { transform: scaleY(1); }
.agenda__row:hover { padding-left: 16px; }
.agenda__date { font-family: var(--f-display); font-size: 1.6rem; font-weight: 300; line-height: 1.05; }
.agenda__date small { display: block; font-family: var(--f-text); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-top: 6px; }
.agenda__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.1; letter-spacing: -.015em; }
.agenda__title .latin { display: block; font-size: .55em; color: var(--ink-soft); margin-top: 6px; }
.agenda__place, .agenda__price { font-size: var(--fs-small); color: var(--ink-soft); }
.agenda__price { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.agenda__go { justify-self: end; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; place-items: center; transition: background .4s, color .4s, transform .5s var(--ease-out); }
.agenda__row:hover .agenda__go { background: var(--ink); color: var(--cal); transform: rotate(-45deg); }

.hover-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 260px; aspect-ratio: 4 / 5; overflow: hidden;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.9);
  transition: opacity .35s var(--ease), transform .5s var(--ease-out);
  box-shadow: 0 30px 60px -30px rgba(42, 37, 32, .5);
}
.hover-preview.is-on { opacity: 1; }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* ---------- Ways / categories ---------- */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.way { text-decoration: none; display: block; position: relative; }
.way:nth-child(even) { margin-top: clamp(40px, 8vw, 140px); }
.way .frame { aspect-ratio: 3 / 4; }
.way .frame img { transition: transform 1.4s var(--ease-out), filter .8s; }
.way:hover .frame img { transform: scale(1.05); }
.way__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; gap: 12px; }
.way__title { font-family: var(--f-display); font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.1; font-weight: 300; letter-spacing: -.012em; }
.way__count { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.way p { margin-top: 8px; font-size: var(--fs-small); color: var(--ink-soft); max-width: 32ch; }

/* ---------- Split feature ---------- */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; }
.feature__media { grid-column: 1 / span 6; position: relative; }
.feature__media .frame--b { position: absolute; width: 46%; right: -18%; bottom: -14%; box-shadow: 0 0 0 clamp(8px, 1vw, 14px) var(--cal); }
.feature__body { grid-column: 8 / span 5; }
.feature__body h2 { margin: 24px 0 28px; }
.feature__body p + p { margin-top: 1em; }
.feature__body .btn, .feature__body .link { margin-top: 36px; }
.feature--rev .feature__media { grid-column: 7 / span 6; order: 2; }
.feature--rev .feature__media .frame--b { right: auto; left: -18%; }
.feature--rev .feature__body { grid-column: 1 / span 5; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-display); font-style: italic; color: var(--terra); font-size: 1.15rem; line-height: 1.4; }
.steps strong { font-weight: 600; display: block; }
.steps span { color: var(--ink-soft); font-size: var(--fs-small); }

/* ---------- Ingredient index (materias primas) ---------- */
.ingredients { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.ingredients__list { grid-column: 1 / span 7; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.ingredients__list li { border-bottom: 1px solid var(--line); }
.ingredients__item {
  width: 100%; text-align: left; display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: baseline;
  padding: 18px 0; transition: color .3s, padding .5s var(--ease-out);
}
.ingredients__item .n { font-size: 11px; letter-spacing: .14em; color: var(--ink-mute); font-weight: 600; font-variant-numeric: tabular-nums; }
.ingredients__item .name { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: -.015em; color: var(--ink-mute); transition: color .4s; }
.ingredients__item .who { font-size: var(--fs-small); color: var(--ink-mute); text-align: right; }
.ingredients__item[aria-selected="true"] .name, .ingredients__item:hover .name { color: var(--ink); }
.ingredients__item[aria-selected="true"] .name { font-style: italic; }
.ingredients__item[aria-selected="true"] { padding-left: 14px; }
.ingredients__item[aria-selected="true"] .who { color: var(--ink); }
.ingredients__stage { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 32px); }
.ingredients__stage .frame { aspect-ratio: 4 / 5; max-width: 340px; margin-left: auto; outline: 14px solid var(--cal); outline-offset: -1px; box-shadow: 0 30px 60px -40px rgba(42,37,32,.5); }
.ingredients__stage p { max-width: 340px; margin-left: auto; }
.ingredients__stage .frame img { position: absolute; inset: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease-out); }
.ingredients__stage .frame img:not(.is-active) { opacity: 0; transform: scale(1.05); }
.ingredients__stage p { margin-top: 18px; font-size: var(--fs-small); color: var(--ink-soft); min-height: 4.8em; }

/* ---------- Workshop cards (talleres) ---------- */
.workshops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 6vw, 96px) clamp(16px, 2.4vw, 40px); }
.wcard { text-decoration: none; display: flex; flex-direction: column; position: relative; }
.wcard:nth-child(3n+2) { margin-top: clamp(0px, 6vw, 96px); }
.wcard .frame { aspect-ratio: 4 / 5; }
.wcard .frame img { transition: transform 1.6s var(--ease-out); }
.wcard:hover .frame img, .wcard:focus-visible .frame img { transform: scale(1.06); }
.wcard__tag {
  position: absolute; z-index: 2; left: 14px; bottom: 14px; right: 14px;
  background: var(--cal); padding: 14px 16px 12px;
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline;
  font-size: 12px; line-height: 1.35;
  transform: translateY(calc(100% + 20px)); transition: transform .7s var(--ease-out);
}
.wcard:hover .wcard__tag, .wcard:focus-visible .wcard__tag { transform: none; }
.wcard__tag dt { color: var(--ink-mute); letter-spacing: .1em; text-transform: uppercase; font-size: 10px; font-weight: 600; }
.wcard__tag dd { margin: 0; }
.wcard__no { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; }
.wcard__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.08; letter-spacing: -.015em; margin-top: 10px; text-wrap: balance; }
.wcard__latin { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }
.wcard__meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.wcard__meta b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.wcard__badge { position: absolute; z-index: 2; top: 14px; left: 14px; background: var(--terra); color: var(--cal); padding: 6px 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters__label { margin-right: 8px; color: var(--ink-soft); }
.results-note { margin-top: 18px; font-size: var(--fs-small); color: var(--ink-soft); min-height: 1.6em; }

.workshops .wcard.is-filtered-out { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .workshops .wcard.is-entering { animation: card-in .8s var(--ease-out) both; animation-delay: var(--d, 0s); }
}
@keyframes card-in { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 140px)); padding-bottom: clamp(56px, 7vw, 110px); position: relative; overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.page-hero .specimen-no { grid-column: 1 / span 3; align-self: start; padding-top: 1.2em; }
.page-hero h1 { grid-column: 4 / span 9; }
.page-hero .lead { grid-column: 4 / span 6; margin-top: clamp(28px, 3vw, 44px); color: var(--ink-soft); }
.breadcrumbs { grid-column: 4 / span 9; margin-bottom: 28px; font-size: 13px; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Workshop detail ---------- */
.detail-hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 96px)); position: relative; overflow: hidden; }
.detail-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.detail-hero__text { grid-column: 1 / span 7; padding-bottom: clamp(24px, 4vw, 64px); }
.detail-hero__text h1 { margin-top: 24px; }
.detail-hero__text .latin { font-size: clamp(1.1rem, 1.6vw, 1.4rem); color: var(--ink-soft); margin-top: 18px; display: block; }
.detail-hero__media { grid-column: 8 / span 5; position: relative; }
.detail-hero__media .frame { aspect-ratio: 4 / 5; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); margin-top: clamp(40px, 5vw, 72px); }
.facts div { padding: 22px 20px 22px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { color: var(--ink-mute); }
.facts dd { margin: 8px 0 0; font-family: var(--f-display); font-size: 1.35rem; font-weight: 300; line-height: 1.2; font-variant-numeric: tabular-nums; }

.detail-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.detail-body__main { grid-column: 1 / span 6; }
.detail-body__main h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 72px 0 24px; }
.detail-body__main h2:first-child { margin-top: 0; }
.detail-body__main p + p { margin-top: 1em; }
.detail-body__aside { grid-column: 8 / span 5; position: sticky; top: calc(var(--header-h) + 24px); }

.checklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.checklist li { padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 1.35em; width: 12px; height: 7px; border-left: 1.4px solid var(--sabina); border-bottom: 1.4px solid var(--sabina); transform: rotate(-45deg); }

.gallery-strip { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); margin-top: 56px; align-items: start; }
.gallery-strip .frame:nth-child(2) { margin-top: clamp(40px, 6vw, 96px); }

/* booking card */
.booking { background: var(--cal-2); padding: clamp(24px, 3vw, 40px); position: relative; }
.booking::before { content: ""; position: absolute; top: 18px; right: 18px; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--cal); }
.booking h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin: 10px 0 8px; }
.booking__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.booking__price strong { white-space: nowrap; font-family: var(--f-display); font-weight: 300; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.booking__total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); margin-top: 24px; }
.booking__total output { font-family: var(--f-display); font-size: 1.8rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.booking__note { font-size: 12px; color: var(--ink-soft); margin-top: 16px; line-height: 1.55; }
.booking__actions { display: grid; gap: 10px; margin-top: 8px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; margin-top: 20px; }
.field label, .field legend { font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-strong);
  background: transparent; border-radius: 0; font-size: 1rem;
  transition: border-color .3s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232a2520' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field .hint { font-size: 12px; color: var(--ink-soft); }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-bottom-color: var(--terra); }
.field .error { font-size: 12px; color: var(--terra); font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
fieldset.field { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }

.stepper { display: inline-grid; grid-template-columns: 44px 56px 44px; align-items: center; border-bottom: 1px solid var(--line-strong); }
.stepper button { height: 48px; font-size: 1.3rem; line-height: 1; border-radius: 50%; }
.stepper button:hover { color: var(--sabina); }
.stepper input { text-align: center; border: 0 !important; box-shadow: none !important; min-height: 48px; padding: 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); margin-top: 20px; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); flex: none; }

.form-status { margin-top: 18px; font-size: var(--fs-small); padding: 14px 16px; background: var(--cal); border-left: 2px solid var(--sabina); }
.form-status[hidden] { display: none; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line-strong); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 16px; align-items: center;
  padding: 24px 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.2;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; width: 14px; height: 14px; justify-self: end;
  background: linear-gradient(currentColor, currentColor) center/100% 1.2px no-repeat, linear-gradient(currentColor, currentColor) center/1.2px 100% no-repeat;
  transition: transform .5s var(--ease-out);
}
.accordion details[open] summary::after { transform: rotate(135deg); }
.accordion .accordion__body { padding: 0 0 28px; color: var(--ink-soft); max-width: 68ch; }
.accordion .accordion__body p + p { margin-top: .8em; }
.accordion .accordion__body ul { padding-left: 1.1em; margin: .6em 0 0; }

/* ---------- Herbarium hotspots (esencia) ---------- */
.herbarium { position: relative; max-width: 760px; margin-inline: auto; }
.herbarium img { width: 100%; }
.hotspot {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  display: grid; place-items: center;
}
.hotspot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cal); box-shadow: 0 0 0 1px var(--ink), 0 2px 8px rgba(0,0,0,.25); transition: transform .4s var(--ease-out), background .3s; }
.hotspot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1px var(--cal); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .hotspot::after { animation: ping 3s var(--ease-out) infinite; animation-delay: var(--d, 0s); } }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.hotspot:hover::before, .hotspot[aria-expanded="true"]::before { transform: scale(1.4); background: var(--terra); }
.hotspot-card {
  position: absolute; z-index: 5; width: 230px; background: var(--cal); padding: 14px 16px;
  box-shadow: 0 20px 40px -20px rgba(42,37,32,.6), 0 0 0 1px var(--line);
  font-size: 13px; line-height: 1.45; pointer-events: none;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease-out);
}
.hotspot-card.is-on { opacity: 1; transform: none; }
.hotspot-card b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; }
.hotspot-card .latin { color: var(--ink-soft); font-size: 15px; }
.hotspot-card p { margin-top: 6px; color: var(--ink-soft); }

/* ---------- Supplier grid ---------- */
.suppliers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.supplier { background: var(--cal); padding: 28px 24px 30px; display: flex; flex-direction: column; gap: 6px; min-height: 180px; }
.supplier .label { color: var(--terra); }
.supplier strong { font-family: var(--f-display); font-weight: 300; font-size: 1.45rem; line-height: 1.15; }
.supplier span { font-size: 13px; color: var(--ink-soft); }

/* ---------- Quote ---------- */
.quote { text-align: center; position: relative; }
.quote blockquote { font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(1.9rem, 4vw, 3.6rem); line-height: 1.14; letter-spacing: -.02em; max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.quote cite { display: block; margin-top: 32px; font-style: normal; color: var(--ink-soft); }

/* ---------- Marquee-free ribbon of facts ---------- */
.ribbon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.ribbon > div { padding: 32px 24px 34px 0; }
.ribbon > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.ribbon strong { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ribbon span { display: block; margin-top: 10px; font-size: var(--fs-small); color: var(--ink-soft); max-width: 28ch; }

/* form button pair */
.dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.newsletter h2 { grid-column: 1 / span 6; }
.newsletter form { grid-column: 8 / span 5; }
.newsletter .inline { display: flex; gap: 12px; align-items: flex-end; }
.newsletter .inline .field { flex: 1; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mar); color: var(--mar-ink); padding-top: clamp(80px, 10vw, 150px); position: relative; overflow: hidden; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--mar-ink); }
.footer__big {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 7.4vw, 7.4rem); line-height: .95; letter-spacing: -.035em;
  max-width: 14ch;
}
.footer__big em { color: #c9b77a; }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); margin-top: clamp(56px, 7vw, 110px); padding-bottom: 56px; }
.footer__col { grid-column: span 2; display: grid; gap: 8px; align-content: start; font-size: var(--fs-small); }
.footer__col .label { color: rgba(233, 227, 214, .78); margin-bottom: 10px; }
.footer__col:first-child { grid-column: 1 / span 5; }
.footer__col:nth-child(2) { grid-column: 7 / span 2; }
.footer__col:nth-child(3) { grid-column: 9 / span 2; }
.footer__col:nth-child(4) { grid-column: 11 / span 2; }
.footer__col:first-child p { color: rgba(233, 227, 214, .75); max-width: 34ch; }
.footer__bottom { border-top: 1px solid rgba(233, 227, 214, .16); padding-block: 22px 28px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; color: rgba(233, 227, 214, .78); }
.footer__logo { width: 110px; color: #c9b77a; }
.footer__logo img { width: 100%; }
.site-footer .btn--light::before { background: #c9b77a; }
.site-footer .btn--light:hover { color: var(--mar); }

/* ---------- Page transition veil ---------- */
.veil { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: var(--cal); opacity: 0; transition: opacity .45s var(--ease); }
.is-leaving .veil { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js body.is-loading .veil { opacity: 1; }
  .js main { transition: opacity .8s var(--ease), transform 1s var(--ease-out); }
  .js body.is-loading main { opacity: 0; transform: translateY(12px); }
}

/* ---------- Utilities ---------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 64px; }
.center { text-align: center; }
.bg-paper { background: var(--cal-2); }
.nowrap { white-space: nowrap; }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list div { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: baseline; padding: 22px 0; text-decoration: none; }
.contact-list .k { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.contact-list .v { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.15; overflow-wrap: anywhere; }
.contact-list a:hover .v { color: var(--sabina); font-style: italic; }
.notice { font-size: 13px; color: var(--ink-soft); border-left: 2px solid var(--line-strong); padding-left: 14px; margin-top: 24px; max-width: 60ch; }

@media print {
  .site-header, .site-footer, .specimen, .veil, body::before { display: none !important; }
}

/* chip radios */
label.chip { position: relative; overflow: hidden; }
.field label.chip { font-size: var(--fs-small); text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); padding: 0 18px; }
label.chip.is-checked { background: var(--ink); color: var(--cal); box-shadow: none; }
label.chip:has(input:focus-visible) { outline: 2px solid var(--terra); outline-offset: 3px; }

/* ==========================================================================
   Iteration 2
   ========================================================================== */

/* unified "paper & ink" photo treatment: warms and calms mixed client photography */
.frame img { filter: saturate(.88) sepia(.07) contrast(.97) brightness(1.01); }

.booking::before { display: none; }

/* ---------- Living plate (home) ---------- */
.plate {
  background: #f8f4ec;
  box-shadow: 0 0 0 1px var(--line), 0 50px 90px -60px rgba(42, 37, 32, .45);
  padding: clamp(28px, 5vw, 80px) clamp(20px, 5vw, 80px) clamp(24px, 3vw, 44px);
  position: relative;
}
.plate::before { content: ""; position: absolute; inset: clamp(10px, 1.4vw, 18px); border: 1px solid var(--line); pointer-events: none; }
.plate__sheet {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  gap: clamp(12px, 2.4vw, 40px) clamp(10px, 3vw, 56px);
}
.plate__item {
  position: relative; display: block; height: clamp(130px, 19vw, 290px);
  mix-blend-mode: multiply; transform: rotate(var(--r, 0deg));
  transition: transform .8s var(--ease-out), filter .5s;
}
.plate__item img { height: 100%; width: auto; }
.plate__item:nth-child(2), .plate__item:nth-child(5), .plate__item:nth-child(8) { margin-bottom: clamp(16px, 3vw, 48px); }
.plate__item:hover, .plate__item:focus-visible, .plate__item.is-hot { transform: rotate(0deg) translateY(-6px) scale(1.04); }
.plate__no {
  position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--terra); mix-blend-mode: normal;
}
.plate__foot { margin-top: clamp(48px, 5vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.plate__title { display: grid; gap: 4px; }
.plate__title .label { color: var(--terra); }
.plate__title .latin { font-size: 15px; color: var(--ink-soft); }
.plate__legend { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; font-size: 13.5px; line-height: 1.5; }
.plate__legend--one { columns: 1; }
.plate__group { display: block; color: var(--ink-mute); margin-bottom: 8px; font-size: 10px; }
.plate__legend li { break-inside: avoid; padding: 3px 0; transition: color .3s; color: var(--ink-soft); }
.plate__legend li b { font-family: var(--f-display); font-weight: 400; color: var(--terra); margin-right: 4px; }
.plate__legend li strong, .plate__legend li { font-weight: 400; }
.plate__legend .latin { font-size: 14px; }
.plate__legend .plate__use { color: var(--ink-mute); }
.plate__legend li.is-hot { color: var(--ink); }
.plate__legend li.is-hot .latin { color: var(--sabina); }

/* ---------- Catalog view toggle ---------- */
.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
.catalog-bar .results-note { margin: 0; }
.view-toggle { display: inline-flex; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 999px; padding: 3px; }
.view-toggle button { min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-soft); transition: background .3s, color .3s; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--cal); }
.agenda--index .agenda__row.is-filtered-out { display: none; }
.agenda__row--open .agenda__date { font-style: italic; color: var(--ink-soft); }

/* ---------- Sticky booking bar (detail, small screens) ---------- */
.book-bar { display: none; }

/* ---------- Producers grid: 3 × 3 ---------- */
.suppliers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* keep each pressed plant's tilt after its "press" reveal */
.js .plate__item[data-reveal="press"].is-in { transform: rotate(var(--r, 0deg)); transition: transform .8s var(--ease-out), opacity 1.4s var(--ease-out), filter 1.4s var(--ease-out); transition-delay: 0s, var(--d, 0s), var(--d, 0s); }
.js .plate__item[data-reveal="press"].is-in:hover, .js .plate__item[data-reveal="press"].is-in:focus-visible, .js .plate__item[data-reveal="press"].is-in.is-hot { transform: rotate(0deg) translateY(-6px) scale(1.04); }

/* ---------- Iteration 3 ---------- */
/* pressed specimens: crisp edges + a hair of paper lift */
.specimen img, .plate__item img { filter: drop-shadow(0 1px 1px rgba(42, 37, 32, .16)); }
/* section-number citations ("→ Lám. 03") */
.cite { font-family: var(--f-display); font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1.25em; color: var(--sabina); margin-left: .5em; }
/* closing CTA card in the workshop grid */
.wcard--cta { justify-content: center; }
.wcard--cta__inner { aspect-ratio: 4 / 5; background: var(--cal-2); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s; }
.wcard--cta:hover .wcard--cta__inner { background: var(--cal-3); }
.wcard--cta .wcard__title { font-size: clamp(1.8rem, 2.6vw, 2.5rem); margin: 0; }
.wcard--cta p { font-size: var(--fs-small); color: var(--ink-soft); }
.wcard--cta .link { align-self: flex-start; }

/* ---------- Iteration 4 ---------- */
/* plate: balanced 4 + 4 sheet; plants 7–8 (from the original plate) set slightly apart */
.plate__sheet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; align-items: end; gap: clamp(40px, 4vw, 64px) clamp(12px, 3vw, 48px); }
.plate__item:nth-child(n) { margin-bottom: 0; }
.plate__item:nth-child(2), .plate__item:nth-child(7) { margin-bottom: clamp(16px, 3vw, 44px); }
.plate__item:nth-child(n+7) img { opacity: .82; }
/* stems that left the source crop trail off softly, like a taped specimen */
.plate__item img, .specimen img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 86%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 86%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}
/* founders' signature */
.signature { grid-column: 4 / span 6; margin-top: 28px; font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.3rem); color: var(--sabina); letter-spacing: -.01em; }
.signature span { font-size: .7em; color: var(--ink-mute); margin: 0 .15em; }

/* ---------- Iteration 5 ---------- */
.plate__item:nth-child(2), .plate__item:nth-child(7) { margin-bottom: 0; }
.wcard--cta__inner { justify-content: center; }

/* ---------- Hero film (video montage) ---------- */
.hero { min-height: 0; display: block; padding-top: calc(var(--header-h) + clamp(40px, 7vw, 110px)); padding-bottom: clamp(48px, 7vw, 110px); }
.hero__title { grid-column: 1 / span 7; }
.hero__foot { grid-column: 9 / span 4; margin-top: 0; align-self: end; flex-direction: column; align-items: flex-start; gap: 28px; padding-bottom: .6em; }
.hero__film {
  position: relative; margin: clamp(40px, 5vw, 72px) 0 0; overflow: hidden;
  aspect-ratio: 16 / 9; max-height: 82svh; width: 100%;
  background: var(--cal-2) url("../assets/images/hero-video-poster.webp") center / cover no-repeat;
}
.hero__film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__film .hero__tag { left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); transform: rotate(-1.5deg); }
.film-toggle {
  position: absolute; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 3;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px;
  background: rgba(244, 239, 230, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink);
  transition: background .3s;
}
.film-toggle:hover { background: var(--cal); }
.film-toggle__icon { width: 12px; height: 12px; position: relative; }
.film-toggle__icon::before, .film-toggle__icon::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3.5px; background: currentColor; border-radius: 1px; }
.film-toggle__icon::before { left: 1px; }
.film-toggle__icon::after { right: 1px; }
.film-toggle[aria-pressed="true"] .film-toggle__icon::before { left: 2px; width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; border-radius: 0; }
.film-toggle[aria-pressed="true"] .film-toggle__icon::after { display: none; }

/* header over the video: light until the page scrolls */
.brand__light { display: none; }
body[data-page="home"] .site-header:not(.is-scrolled) { color: var(--cal); }
body[data-page="home"] .site-header:not(.is-scrolled) .brand__dark { display: none; }
body[data-page="home"] .site-header:not(.is-scrolled) .brand__light { display: block; }
body[data-page="home"] .site-header:not(.is-scrolled) .nav__link::after { background: #e3d4a0; }
body[data-page="home"] .site-header:not(.is-scrolled) .menu-toggle span { background: var(--cal); }
body[data-page="home"].menu-open .site-header { color: var(--ink); }
body[data-page="home"].menu-open .site-header .brand__dark { display: block; }
body[data-page="home"].menu-open .site-header .brand__light { display: none; }
body[data-page="home"].menu-open .site-header .menu-toggle span { background: var(--ink); }


/* ---------- Full-screen video hero (home) ---------- */
.hero.hero--full {
  position: relative; min-height: 100svh; padding: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #1c1713 url("../assets/images/hero-video-poster.webp") center / cover no-repeat;
  color: var(--cal);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__bg video.is-ready { opacity: 1; }
/* scrim anchored to the type (bottom-left) + a thin band for the menu; the rest keeps its light.
   Measured frame by frame: every hero text ≥ WCAG AA over the whole loop. */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(28, 23, 19, var(--scrim-top, .84)) 0, rgba(28, 23, 19, .5) 92px, rgba(28, 23, 19, 0) 230px),
    radial-gradient(100% 118% at 0% 100%, rgba(28, 23, 19, var(--scrim-a, .86)) 0, rgba(28, 23, 19, var(--scrim-b, .66)) 50%, rgba(28, 23, 19, 0) 88%);
}
.hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(64px, 10vh, 120px); }
.hero--full .display { color: var(--cal); margin-top: 22px; }
.hero--full .display em { color: #e8dbab; }
.hero--full .specimen-no { color: var(--ink); background: rgba(244, 239, 230, .9); padding: 5px 10px 4px; transform: rotate(-2.5deg); transform-origin: left center; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5); }
.hero--full .specimen-no b { color: var(--terra); }
.hero--full .hero__foot { display: grid; gap: 26px; margin-top: clamp(24px, 3.5vh, 40px); max-width: 520px; padding: 0; }
.hero--full .hero__foot p { color: var(--cal); max-width: 42ch; }
.hero--full .hero__actions { gap: 14px 28px; }
.hero--full .link { color: var(--cal); }
.hero--full .btn--light::before { background: #e8dbab; }
.hero--full .btn--light:hover { color: var(--ink); }
.hero--full :focus-visible { outline-color: var(--cal); }

/* pause control: quiet ghost button, bottom-right */
.hero--full .film-toggle {
  position: absolute; z-index: 4; right: var(--gutter); bottom: clamp(24px, 4vh, 40px); top: auto;
  width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%;
  background: rgba(28, 23, 19, .42); color: var(--cal);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero--full .film-toggle:hover { background: rgba(28, 23, 19, .6); }

/* live herbarium tag: one specimen entry per shot */
.hero__plate {
  position: absolute; z-index: 3; right: calc(var(--gutter) + 64px); bottom: clamp(24px, 4vh, 40px);
  display: grid; gap: 1px; padding: 10px 16px 11px; min-width: 200px;
  background: rgba(244, 239, 230, .94); color: var(--ink);
  transform: rotate(1.2deg); box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .55);
  transition: opacity .5s var(--ease);
}
.hero__plate.is-swapping { opacity: 0; }
.hero__plate-no { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--terra); }
.hero__plate-name { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: 1.15rem; line-height: 1.2; }
.hero__plate-note { font-size: 12px; color: var(--ink-soft); }

/* scroll cue */
.hero__cue { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); flex-direction: column; gap: 8px; color: var(--cal); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; text-decoration: none; }
.hero__cue i { background: rgba(244, 239, 230, .35); height: 40px; }
.hero__cue i::after { background: var(--cal); }
body.is-scrolled-past .hero__cue { opacity: 0; transition: opacity .4s; }
.hero--full .film-toggle.is-paused .film-toggle__icon::before { left: 2px; width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; border-radius: 0; }
.hero--full .film-toggle.is-paused .film-toggle__icon::after { display: none; }

@media (max-width: 720px) { .hero__plate { opacity: .9; } .hero--full .specimen-no { display: none; } }
/* light logo over bright foliage */
body[data-page="home"] .site-header:not(.is-scrolled) .brand__light { filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .35)); }

/* ---------- Language switcher ---------- */
.lang { position: relative; font-size: var(--fs-small); font-weight: 600; letter-spacing: .06em; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 4px; border-radius: 4px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { transition: transform .3s var(--ease-out); }
.lang[open] summary svg { transform: rotate(180deg); }
.lang ul {
  position: absolute; right: -8px; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px;
  min-width: 160px; background: var(--cal); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -24px rgba(42, 37, 32, .45);
}
.lang li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; text-decoration: none; font-weight: 500; letter-spacing: 0; }
.lang li a:hover { background: var(--cal-2); }
.lang li a[aria-current="true"] { color: var(--sabina); font-family: var(--f-display); font-style: italic; font-weight: 400; }
.lang li a[aria-current="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sabina); }
.lang-mobile { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 8px; }
.lang-mobile a { display: inline-grid; place-items: center; min-width: 48px; min-height: 44px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); text-decoration: none; font-size: var(--fs-small); font-weight: 600; letter-spacing: .06em; }
.lang-mobile a[aria-current="true"] { background: var(--ink); color: var(--cal); box-shadow: none; }
.menu-panel .lang-mobile li { counter-increment: none; border-bottom: 0; }
.menu-panel .lang-mobile li a { display: inline-grid; place-items: center; align-items: center; padding: 0 14px; font-family: var(--f-text); font-size: var(--fs-small); font-weight: 600; letter-spacing: .06em; line-height: 1; font-style: normal; }
.menu-panel .lang-mobile li a::before { content: none; }
.menu-panel .lang-mobile li a[aria-current="true"] { color: var(--cal); }

/* ==========================================================================
   Shop
   ========================================================================== */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(64px, 8vw, 128px) clamp(24px, 4vw, 72px); }
.shop-item:nth-child(even) { margin-top: clamp(0px, 9vw, 160px); }
.shop-item__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cal-2); }
.shop-item__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s var(--ease), transform 1.4s var(--ease-out); }
.shop-item__media .product__alt { opacity: 0; }
.shop-item__media.has-alt:hover .product__alt { opacity: 1; }
.shop-item:hover .shop-item__media img { transform: scale(1.03); }
/* book cover: shown as an object on paper, never blown up */
.shop-item--cover .shop-item__media img { position: absolute; inset: auto; left: 50%; top: 50%; width: auto; height: 74%; object-fit: contain; transform: translate(-50%, -50%) rotate(-2deg); box-shadow: 0 30px 50px -28px rgba(42, 37, 32, .55), 0 0 0 1px var(--line); filter: none; }
.shop-item--cover:hover .shop-item__media img { transform: translate(-50%, -52%) rotate(-1deg); }
.shop-item__body { margin-top: 24px; display: grid; gap: 10px; }
.shop-item__name { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.05; }
.shop-item__text { color: var(--ink-soft); max-width: 46ch; }
.shop-item__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.shop-item__price { font-family: var(--f-display); font-weight: 300; font-size: 1.8rem; line-height: 1; }
.shop-item .btn.is-added { --bg: var(--sabina); }

/* header basket */
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn .cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--terra); color: var(--cal); font-size: 10px; line-height: 18px; text-align: center; font-weight: 700;
  transform: scale(0); transition: transform .4s var(--ease-out);
}
.cart-btn .cart-count.has-items { transform: scale(1); }
.cart-btn .cart-count.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(42, 37, 32, .35); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .5s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(440px, 100%); background: var(--cal); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .7s var(--ease-out), visibility 0s .7s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .7s var(--ease-out); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.8rem; }
.drawer__close, .dialog__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.drawer__close:hover, .dialog__close:hover { background: var(--cal-2); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 28px; overscroll-behavior: contain; }
.drawer__foot { padding: 20px 28px 28px; border-top: 1px solid var(--line); background: var(--cal-2); }
.drawer__foot:empty { display: none; }
.drawer__empty { padding: 48px 0; text-align: center; color: var(--ink-soft); }
.drawer__empty p { margin: 0 auto 20px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-item img { width: 64px; height: 80px; object-fit: cover; background: var(--cal-2); }
.line-item__name { font-family: var(--f-display); font-size: 1.1rem; line-height: 1.2; }
.line-item__qty { display: inline-grid; grid-template-columns: 32px 28px 32px; align-items: center; margin-top: 10px; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 999px; }
.line-item__qty button { height: 32px; border-radius: 50%; }
.line-item__qty span { text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.line-item__price { font-weight: 600; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.line-item__remove { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.totals { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-display); font-size: 1.5rem; }
.drawer__foot .btn { margin-top: 16px; width: 100%; }
.drawer__foot small { display: block; margin-top: 12px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }

/* checkout dialog */
.dialog { border: 0; padding: 0; background: var(--cal); color: var(--ink); width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 48px); box-shadow: 0 40px 80px -30px rgba(42, 37, 32, .6); }
.dialog::backdrop { background: rgba(42, 37, 32, .45); }
.dialog__inner { padding: clamp(24px, 4vw, 44px); }
.dialog__close { position: absolute; top: 12px; right: 12px; }
.dialog h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 10px 0 12px; }
.dialog__lead { font-size: .92rem; }
.dialog textarea { min-height: 70px; }
.dialog__summary { margin-top: 20px; background: var(--cal-2); padding: 16px; font-size: 13px; white-space: pre-wrap; font-family: var(--f-text); max-height: 160px; overflow: auto; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; visibility: hidden; transform: translate(-50%, calc(100% + 48px)); background: var(--ink); color: var(--cal); padding: 14px 22px; border-radius: 999px; font-size: var(--fs-small); display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); transition: transform .6s var(--ease-out), visibility 0s .6s; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease-out); }
.toast button { text-decoration: underline; text-underline-offset: 3px; color: var(--cal); font-weight: 600; }
/* cover the hero even where object-fit is ignored on <video> (some WebKit builds) */
.hero__bg { overflow: hidden; }
.hero__bg video { position: absolute; top: 50%; left: 50%; width: auto; height: auto; min-width: 100%; min-height: 100%; max-width: none; transform: translate(-50%, -50%); object-fit: cover; }


/* ==========================================================================
   Typography: Bricolage Grotesque (headings) + Lato (text)
   Bricolage has no italic, so emphasis inside headings is shown with colour
   and a lighter weight; anything that needs a true italic uses Lato Italic.
   ========================================================================== */
.display, .h1, .h2, .h3, h1, h2, h3, .footer__big { font-weight: 200; letter-spacing: -.02em; }
.display { letter-spacing: -.03em; }
.display em, .h1 em, .h2 em, .h3 em, h1 em, h2 em, h3 em,
.footer__big em, .quote blockquote em { font-style: normal; font-weight: 200; }
.specimen-no b, .hotspot-card b, .plate__legend li b, .book-bar strong { font-weight: 300; }
.latin, .cite, .steps li::before, .plate__no, .agenda__row--open .agenda__date,
.signature, .hero__plate-name, .lang li a[aria-current="true"], .quote blockquote {
  font-family: var(--f-italic); font-style: italic; letter-spacing: 0;
}
.cite { font-weight: 400; }
.menu-panel li a[aria-current="page"], .contact-list a:hover .v { font-style: normal; }
.lead { font-weight: 300; letter-spacing: -.01em; }
body { font-weight: 400; letter-spacing: .005em; }
