/* Bestiarul Instinct — field-guide plates drenched in Gogu label colours. */
:root {
  --field: #3a3586;
  --ink: #f6f0e4;
  --line: #e3af7d;
  --black: #161314;
  --label-white: #e9e8e4;
  --orange: #d96e01;
  --serif: "Old Standard TT", "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(16px, 5vw, 72px);
  --bar-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-gated { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--line); color: var(--black); }
:focus-visible { outline: 2px solid var(--line); outline-offset: 4px; border-radius: 2px; }
html { scrollbar-color: #e3af7d55 var(--black); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #e3af7d55; border-radius: 10px; border: 2px solid var(--black); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--line); color: var(--black); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
svg { width: 1em; height: 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .75rem 1.3rem;
  border-radius: 999px; border: 1.5px solid currentColor;
  font: 500 1rem/1.2 var(--sans); text-decoration: none;
  transition: transform .4s var(--ease), background-color .3s, color .3s, box-shadow .3s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-solid { background: var(--ink); color: var(--field); border-color: var(--ink); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.btn:active { transform: translateY(0); }

/* ---------- Age gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: var(--gut);
  background: var(--black);
}
.gate[hidden] { display: none; }
.gate-plate { max-width: 30rem; text-align: center; color: var(--ink); }
.gate-mark { width: 84px; height: 84px; color: var(--line); margin: 0 auto 1.6rem; }
.gate h2 { font: 400 clamp(2.2rem, 6vw, 3.4rem)/1.05 var(--serif); margin: 0 0 1rem; letter-spacing: -.01em; }
.gate p { margin: 0 auto; max-width: 34ch; color: color-mix(in srgb, var(--ink) 86%, var(--black)); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 2rem; }
.gate .btn-solid { color: var(--black); }
.gate-msg { margin-top: 1.4rem !important; font: italic 1.05rem/1.4 var(--serif); color: var(--line) !important; }

/* ---------- Bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gut);
  color: var(--bar-ink, var(--ink));
  transition: color .5s var(--ease), background-color .5s var(--ease);
}
.bar.is-solid { background: color-mix(in srgb, var(--bar-bg, var(--black)) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-g { width: 34px; height: 34px; }
.brand-word {
  display: block; width: 88px; height: 36px; background: currentColor;
  -webkit-mask: url("../shared/img/art/wordmark.png") center / contain no-repeat;
  mask: url("../shared/img/art/wordmark.png") center / contain no-repeat;
}
.bar-nav { margin-left: auto; display: flex; gap: 28px; }
.bar-nav a { text-decoration: none; font-size: .95rem; position: relative; padding: 6px 0; }
.bar-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .4s var(--ease); }
.bar-nav a:hover::after { right: 0; }
.lang { display: flex; gap: 2px; }
.lang button {
  background: none; border: 0; padding: 8px 7px; min-width: 36px; min-height: 40px;
  font: 500 .82rem/1 var(--sans); letter-spacing: .06em; opacity: .62; border-radius: 4px;
}
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.lang button:hover { opacity: 1; }

/* ---------- Stage (key + specimen) ---------- */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--field); color: var(--ink);
  transition: color .4s var(--ease);
}
.stage-field { position: absolute; inset: 0; z-index: -1; background: var(--field); }
.stage-wipe { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.stage-art { position: absolute; z-index: 0; inset: 0 0 auto 38%; height: 100vh; height: 100svh; pointer-events: none; }
.stage.is-specimen .stage-art { left: 47%; }
.art-animal {
  position: absolute; inset: 5vh -5vw 3vh -3vw;
  background: var(--line);
  -webkit-mask-image: url("../shared/img/art/swallow.webp"), radial-gradient(circle at 50% 50%, #000 var(--reveal, 100%), transparent calc(var(--reveal, 100%) + 9%));
  mask-image: url("../shared/img/art/swallow.webp"), radial-gradient(circle at 50% 50%, #000 var(--reveal, 100%), transparent calc(var(--reveal, 100%) + 9%));
  -webkit-mask-size: contain, 100% 100%; mask-size: contain, 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center, center; mask-position: center, center;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.art-animal[data-animal="wolf"] {
  -webkit-mask-image: url("../shared/img/art/wolf.webp"), radial-gradient(circle at 50% 50%, #000 var(--reveal, 100%), transparent calc(var(--reveal, 100%) + 9%));
  mask-image: url("../shared/img/art/wolf.webp"), radial-gradient(circle at 50% 50%, #000 var(--reveal, 100%), transparent calc(var(--reveal, 100%) + 9%));
}
.art-animal[data-animal="none"] { display: none; }
.stage:not(.is-specimen) .art-animal[data-animal="wolf"] { left: 13vw; }
.art-roots { position: absolute; inset: 6vh 0 6vh 0; color: var(--line); display: none; }
.art-roots svg { width: 100%; height: 100%; }
.stage[data-art="roots"] .art-roots { display: block; }
.art-bottle {
  position: absolute; left: 50%; bottom: 7vh; height: 78vh; width: auto; max-width: none;
  translate: -50% 0;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .38));
}
.stage.is-specimen .art-animal { inset: 13vh 1vw 5vh 1vw; opacity: .82; }

.runhead {
  position: absolute; z-index: 2; top: calc(var(--bar-h) + 14px); left: var(--gut); right: var(--gut);
  display: flex; justify-content: space-between; margin: 0;
  font: italic 400 .98rem/1.2 var(--serif); letter-spacing: .01em;
  color: color-mix(in srgb, var(--ink) 80%, var(--field));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); padding-bottom: 10px;
}
.runhead-r { font-style: normal; font-variant-numeric: lining-nums; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }

.stage-copy {
  position: relative; z-index: 2; grid-column: 1;
  padding: calc(var(--bar-h) + 76px) 0 120px var(--gut);
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100svh;
}
.stage-title {
  font: 400 clamp(2.7rem, 5.6vw, 5.8rem)/.98 var(--serif);
  letter-spacing: -.02em; margin: 0; max-width: 11ch; text-wrap: balance;
}
.lede { margin: 1.4rem 0 0; max-width: 40ch; font-size: 1.06rem; color: var(--ink); }

.couplet { margin-top: clamp(1.8rem, 4vh, 3rem); max-width: 40rem; }
.couplet-q { margin: 0 0 .6rem; font: italic 400 1.3rem/1.3 var(--serif); }
.couplet-q .cn { font-style: normal; font-variant-numeric: lining-nums; color: var(--line); }
.lead {
  width: 100%; display: grid; grid-template-columns: 2.6rem minmax(0, auto) minmax(1.6rem, 1fr) auto;
  align-items: end; gap: 0 .7rem; text-align: left;
  background: none; border: 0; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  padding: 1rem 0 1.05rem; color: inherit;
  font: 400 clamp(1.25rem, 2vw, 1.7rem)/1.22 var(--serif);
  transition: color .3s;
}
.lead:last-child { border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.lid { font-style: italic; color: var(--line); font-variant-numeric: lining-nums; align-self: start; padding-top: .12em; }
.ltext { transition: transform .45s var(--ease); text-wrap: pretty; }
.dots {
  align-self: end; height: .5em; margin-bottom: .3em;
  background: radial-gradient(circle, var(--line) 1.1px, transparent 1.6px) left bottom / 9px 4px repeat-x;
  opacity: .8; transition: opacity .3s;
}
.lto {
  font: 400 1.05em/1 var(--serif); color: var(--line); font-variant-numeric: lining-nums;
  min-width: 1.4em; text-align: right; display: inline-flex; justify-content: flex-end;
}
.lto svg { width: 1.15em; height: 1.15em; }
.lead:hover .ltext, .lead:focus-visible .ltext { transform: translateX(8px); }
.lead:hover .dots { opacity: 1; }
.lead:focus-visible { outline-offset: 2px; }

.trail {
  position: absolute; z-index: 3; left: var(--gut); bottom: 28px; right: var(--gut);
  display: flex; align-items: center; gap: 18px; pointer-events: none;
}
.trail > * { pointer-events: auto; }
.trail-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  background: none; border: 0; padding: 0 4px; font-size: .95rem;
}
.trail-back svg { width: 1.2em; height: 1.2em; }
.trail-back[hidden] { display: none; }
.trail-rule { position: relative; width: min(16rem, 34vw); height: 1px; background: color-mix(in srgb, var(--line) 70%, transparent); }
.trail-rule i { position: absolute; top: -4px; width: 1px; height: 9px; background: var(--line); }
.trail-rule i:nth-child(1) { left: 0; } .trail-rule i:nth-child(2) { left: 50%; } .trail-rule i:nth-child(3) { left: 100%; }
.trail-sun { position: absolute; top: -5px; left: 0; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 4px color-mix(in srgb, var(--line) 22%, transparent); transition: left .7s var(--ease); }
.trail-count { margin: 0; font: italic .98rem/1.3 var(--serif); color: color-mix(in srgb, var(--ink) 82%, var(--field)); }
.stage.is-specimen .trail-rule, .stage.is-specimen .trail-count { display: none; }

/* ---------- Specimen sheet ---------- */
.sheet { max-width: 40rem; }
.sheet-name:focus { outline: none; }
.sheet-name {
  font: 400 clamp(2.3rem, 4.6vw, 4.6rem)/1 var(--serif); letter-spacing: -.02em;
  margin: 0; text-wrap: balance;
}
.sheet-vintage { font-style: italic; color: var(--line); white-space: nowrap; }
.sheet-taxon { margin: .9rem 0 0; font: italic 400 1.15rem/1.35 var(--serif); color: color-mix(in srgb, var(--ink) 84%, var(--field)); }
.sheet-taxon b { font-weight: 400; color: var(--line); }
.sheet-notes { margin: 1.1rem 0 0; font-size: 1.1rem; max-width: 38ch; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 1.6rem 0 0; }
.specs div { padding: .6rem 0; border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.specs dt { font: italic .95rem/1.2 var(--serif); color: color-mix(in srgb, var(--ink) 86%, var(--field)); }
.specs dd { margin: .2rem 0 0; font-size: .98rem; font-variant-numeric: tabular-nums; }
.specs .eco-tag { display: inline-flex; gap: .4em; align-items: center; }
.specs .eco-tag svg { width: 1.1em; height: 1.1em; color: var(--line); }
.awards { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.awards li { display: flex; gap: .7rem; align-items: baseline; padding: .35rem 0; font-size: .95rem; }
.awards .medal { width: .8rem; height: .8rem; border-radius: 50%; flex: none; transform: translateY(1px); }
.medal-gold { background: #e2b85a; box-shadow: inset 0 0 0 2px #b8902f; }
.medal-silver { background: #d5d6d8; box-shadow: inset 0 0 0 2px #9a9ca0; }
.medal-bronze { background: #c98a5a; box-shadow: inset 0 0 0 2px #93603a; }
.awards a { text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.7rem; align-items: center; }
.sheet-actions .btn-solid { font-weight: 600; }
.sheet-actions .price { font-variant-numeric: tabular-nums; padding-left: .7em; margin-left: .1em; border-left: 1px solid color-mix(in srgb, var(--field) 40%, transparent); }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center;
  background: none; border: 1.5px solid color-mix(in srgb, var(--ink) 40%, transparent); color: inherit;
  transition: background-color .3s, border-color .3s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.sheet-note { margin: .8rem 0 0; font-size: .82rem; color: color-mix(in srgb, var(--ink) 74%, var(--field)); }
.sheet-trail { margin: .3rem 0 0; font: italic .95rem/1.3 var(--serif); color: color-mix(in srgb, var(--ink) 86%, var(--field)); }
.toast { font-size: .9rem; color: var(--line); }

.relatives { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.relatives h3 { margin: 0 0 .8rem; font: italic 400 1.05rem/1.2 var(--serif); }
.rel-list { display: flex; gap: 14px; flex-wrap: wrap; }
.rel-list { display: grid; gap: 0; }
.rel {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
  padding: 10px 0; text-align: left; width: 100%;
}
.rel:hover b { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.rel img { height: 92px; width: auto; justify-self: center; transition: transform .4s var(--ease); }
.rel:hover img { transform: translateY(-4px); }
.rel .ref { font: italic .9rem/1.2 var(--serif); color: var(--line); white-space: nowrap; }
.rel b { display: block; font: 400 1.08rem/1.15 var(--serif); color: var(--ink); }
.rel > span > span { font-size: .86rem; color: color-mix(in srgb, var(--ink) 84%, var(--field)); }

/* ---------- Atlas ---------- */
.atlas { background: var(--black); padding: clamp(80px, 12vh, 140px) 0 0; }
.atlas-head { padding: 0 var(--gut) clamp(40px, 6vh, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 40px; align-items: end; }
.atlas-head h2 { grid-column: 1; margin: 0; font: 400 clamp(2.4rem, 5vw, 4.6rem)/1 var(--serif); letter-spacing: -.02em; }
.atlas-head p { grid-column: 1; margin: 0; max-width: 46ch; color: color-mix(in srgb, var(--ink) 80%, var(--black)); }
.eco-toggle { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; user-select: none; }
.eco-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.eco-switch { width: 46px; height: 26px; border-radius: 99px; border: 1.5px solid var(--line); position: relative; transition: background-color .3s; }
.eco-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--line); transition: transform .4s var(--ease), background-color .3s; }
.eco-toggle input:checked + .eco-switch { background: var(--line); }
.eco-toggle input:checked + .eco-switch::after { transform: translateX(20px); background: var(--black); }
.eco-toggle input:focus-visible + .eco-switch { outline: 2px solid var(--line); outline-offset: 3px; }
.eco-toggle > svg { width: 1.2em; height: 1.2em; color: var(--line); }

.fam {
  --fam-field: #24646e; --fam-ink: #f6f0e4; --fam-line: #e8b886;
  background: var(--fam-field); color: var(--fam-ink);
  padding: clamp(48px, 8vh, 96px) var(--gut) clamp(40px, 6vh, 72px);
  display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 64px);
}
.fam { position: relative; overflow: hidden; }
.fam-head { align-self: start; position: sticky; top: calc(var(--bar-h) + 24px); z-index: 1; }
.fam-body { position: relative; z-index: 1; }
.fam-art { position: relative; display: block; width: 100%; max-width: 15rem; aspect-ratio: 1; margin-top: 1.6rem; color: var(--fam-line); pointer-events: none; }
.fam-art.animal { background: var(--fam-line); -webkit-mask: var(--art) center / contain no-repeat; mask: var(--art) center / contain no-repeat; }
.fam-art svg { width: 100%; height: 100%; }
.fam[data-fam="rare"] .row { min-height: clamp(300px, 34vw, 480px); }
.fam[data-fam="rare"] .row .fam-art { position: absolute; right: 0; top: 0; bottom: 0; width: 52%; max-width: none; aspect-ratio: auto; margin: 0; z-index: -1; }
.fam[data-fam="rare"] .spec img { height: clamp(260px, 30vw, 440px); }
.fam[data-fam="rare"] .row { gap: clamp(24px, 4vw, 64px); }
.fam-head .pn { display: block; font: italic 400 clamp(3.4rem, 6vw, 5.6rem)/.9 var(--serif); color: var(--fam-line); font-variant-numeric: lining-nums; margin-bottom: .1em; }
.fam-head h3 { margin: 0; font: 400 clamp(2rem, 3.4vw, 3rem)/1 var(--serif); letter-spacing: -.01em; }
.fam-head .kind { display: block; font-style: italic; font-size: .52em; margin-top: .35em; color: color-mix(in srgb, var(--fam-ink) 84%, var(--fam-field)); }
.fam-head p.about { margin: 1rem 0 0; font-size: .98rem; max-width: 30ch; color: color-mix(in srgb, var(--fam-ink) 86%, var(--fam-field)); }

.row {
  display: flex; align-items: flex-end; gap: clamp(8px, 2vw, 32px);
  border-bottom: 1px solid color-mix(in srgb, var(--fam-line) 70%, transparent);
  padding-bottom: 0; position: relative; z-index: 1;
}
.row::-webkit-scrollbar { display: none; }
.spec {
  flex: 0 0 auto; background: none; border: 0; padding: 12px 4px 0; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.spec img { height: clamp(200px, 25vw, 360px); width: auto; transition: transform .5s var(--ease); filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .3)); }
.spec:hover img, .spec:focus-visible img { transform: translateY(-10px); }
.spec .no { font: italic .95rem/1 var(--serif); color: var(--fam-line); padding-bottom: 10px; font-variant-numeric: lining-nums; }
.spec[data-dim="true"] { opacity: .22; }
.spec[aria-expanded="true"] img { transform: translateY(-14px); }
.spec[aria-expanded="true"] .no { color: var(--fam-ink); text-decoration: underline; text-underline-offset: .3em; }
.bb-short { display: none; }

.legend { list-style: none; margin: 18px 0 0; padding: 0; columns: 2 18rem; column-gap: 40px; }
.legend li { break-inside: avoid; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: .45rem 0; border-bottom: 1px dotted color-mix(in srgb, var(--fam-line) 45%, transparent); transition: opacity .4s; }
.legend li[data-dim="true"] { opacity: .3; }
.legend .ln { font: italic .95rem var(--serif); color: var(--fam-line); }
.legend .lname { font-size: .96rem; }
.legend .lname small { font-size: .82rem; color: color-mix(in srgb, var(--fam-ink) 90%, var(--fam-field)); }
.legend .lprice { font-variant-numeric: tabular-nums; font-size: .92rem; white-space: nowrap; }
.legend .lprice svg { width: 1em; height: 1em; color: var(--fam-line); vertical-align: -2px; margin-right: 4px; }
.legend button { background: none; border: 0; padding: 0; text-align: left; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em; transition: text-decoration-color .3s; }
.legend button:hover { text-decoration-color: currentColor; }

/* ---------- Yard ---------- */
.yard {
  --field: var(--orange); --ink: #161314; --line: #161314;
  background: var(--orange); color: var(--ink);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px);
  padding: clamp(80px, 12vh, 140px) var(--gut);
}
.yard ::selection { background: var(--black); color: var(--orange); }
.yard :focus-visible { outline-color: var(--black); }
.yard-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; align-self: start; position: sticky; top: calc(var(--bar-h) + 24px); }
.ph { margin: 0; overflow: hidden; border-radius: 4px; background: #b85c02; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-b { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.ph-a { aspect-ratio: 1 / 1; }
.ph-c { aspect-ratio: 1 / 1; }
.ph-c img { object-position: 50% 30%; }
.yard-copy h2 { margin: 0; font: 400 clamp(2.2rem, 4vw, 3.8rem)/1.02 var(--serif); letter-spacing: -.02em; max-width: 14ch; text-wrap: balance; }
.yard-copy > p { max-width: 42ch; font-size: 1.06rem; margin: 1.1rem 0 0; }
.yard-facts { margin: 1.8rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.yard-facts div { padding: .7rem 0; border-top: 1.5px solid var(--black); }
.yard-facts dt { font: italic .95rem/1.2 var(--serif); }
.yard-facts dd { margin: .25rem 0 0; font-weight: 500; }

.visit { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1.5px solid var(--black); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.visit h3 { grid-column: 1 / -1; margin: 0; font: 400 1.9rem/1.1 var(--serif); }
.field { display: grid; gap: 6px; align-content: start; }
.field:nth-of-type(3) { grid-column: 1 / -1; }
.field label { font: italic 1rem/1.2 var(--serif); }
.field input {
  min-height: 48px; padding: .6rem .9rem; border-radius: 10px;
  border: 1.5px solid var(--black); background: #e88a2c; color: var(--black);
  font-variant-numeric: tabular-nums;
}
.field input::placeholder { color: #4a2a0a; }
.field input:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: #5c0d10; box-shadow: inset 0 0 0 1px #5c0d10; }
.stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 6px; }
.stepper input { text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button { border-radius: 10px; border: 1.5px solid var(--black); background: transparent; font-size: 1.3rem; }
.stepper button:hover { background: #e88a2c; }
.hint { margin: 0; font-size: .86rem; }
.err { margin: 0; font-size: .9rem; font-weight: 600; color: #4d0a0d; }
.check { grid-column: 1 / -1; display: inline-flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--black); }
.visit-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.yard .btn-solid { background: var(--black); color: #f6f0e4; border-color: var(--black); }
.yard .btn-line { color: var(--black); }
.yard .btn-line:hover { background: #e88a2c; }
.visit-note, .visit-call { grid-column: 1 / -1; margin: 0; font-size: .92rem; }
.visit-note.is-demo { font-weight: 600; padding: .7rem .9rem; border: 1.5px solid var(--black); border-radius: 10px; }
.visit-call a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid; }
.visit-call svg { width: 1.1em; height: 1.1em; }

/* ---------- Footer ---------- */
.foot { background: var(--black); color: var(--ink); padding: 56px var(--gut) 40px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 48px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 14px; color: var(--line); grid-row: span 3; }
.foot-brand svg { width: 52px; height: 52px; }
.foot-brand .brand-word { width: 110px; height: 44px; }
.foot-health { margin: 0; font: italic 1.05rem/1.35 var(--serif); max-width: 52ch; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-links a { text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.foot-small { margin: 0; font-size: .82rem; color: color-mix(in srgb, var(--ink) 66%, var(--black)); max-width: 70ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .fam { grid-template-columns: 1fr; }
  .fam-head { position: static; }
  .yard { grid-template-columns: 1fr; }
  .yard-photos { position: static; }
}
@media (max-width: 860px) {
  :root { --bar-h: 58px; }
  .bar { gap: 12px; }
  .bar-nav { display: none; }
  .lang { margin-left: auto; }
  .brand-word { width: 76px; height: 30px; }
  .brand-g { width: 30px; height: 30px; }
  .stage { grid-template-columns: 1fr; }
  .stage-art { inset: calc(var(--bar-h) + 40px) 0 auto 0; height: 40svh; }
  .art-animal { inset: 0 12vw; }
  .stage.is-specimen .stage-art { height: 52svh; }
  .stage.is-specimen .art-animal { inset: 0 2vw; opacity: .55; }
  .art-bottle { height: 48svh; bottom: 0; }
  .art-roots { inset: 0; }
  .runhead { font-size: .88rem; }
  .stage-copy { padding: calc(var(--bar-h) + 40px + 40svh) var(--gut) 112px; justify-content: flex-start; min-height: 0; }
  .stage.is-specimen .stage-copy { padding-top: calc(var(--bar-h) + 52px + 52svh); }
  .stage-title { font-size: clamp(2.3rem, 10vw, 3.4rem); }
  .lede { font-size: 1rem; }
  .lead { grid-template-columns: 2.2rem minmax(0, 1fr) 1.6rem; font-size: 1.22rem; padding: .85rem 0; }
  .lead .dots { display: none; }
  .trail { bottom: 20px; }
  .trail-rule { width: 26vw; }
  .specs { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .atlas-head { grid-template-columns: 1fr; }
  .eco-toggle { grid-column: 1; grid-row: auto; }
  .row { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .fam-head { position: relative; top: auto; padding-right: 7.5rem; }
  .fam-head .fam-art { position: absolute; right: 0; top: 0; width: 6.8rem; margin: 0; }
  .fam[data-fam="rare"] .row .fam-art { width: 48%; }
  .fam[data-fam="rare"] .spec img { height: 220px; }
  .stage:not(.is-specimen) .art-animal[data-animal="wolf"] { left: 12vw; }
  .spec img { height: 172px; }
  .row { gap: 6px; }
  .spec { padding: 12px 0 0; }
  .visit { grid-template-columns: 1fr; }
  .yard-facts { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .foot-brand { grid-row: auto; }
}
@media (max-width: 420px) {
  .specs { grid-template-columns: 1fr; }
  .rel { min-width: 0; }
}

/* ---------- Specimen opened in place under an atlas plate ---------- */
.isp {
  --field: #24646e; --ink: #f6f0e4; --line: #e8b886;
  position: relative; background: var(--field); color: var(--ink);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px);
  margin: 0 calc(-1 * var(--gut)) 0 0; padding: clamp(32px, 5vh, 56px) var(--gut) clamp(32px, 5vh, 56px) clamp(24px, 3vw, 48px);
  scroll-margin-top: var(--bar-h); z-index: 2;
}
.isp + .legend { margin-top: 24px; }
.isp-art { position: sticky; top: calc(var(--bar-h) + 16px); align-self: start; height: min(560px, 72vh); }
.isp-animal { position: absolute; inset: 0 2% 0 2%; background: var(--line); opacity: .85; -webkit-mask: var(--art) center / contain no-repeat; mask: var(--art) center / contain no-repeat; }
.isp-roots { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--line); }
.isp-bottle { position: absolute; left: 50%; bottom: 0; height: min(440px, 100%); width: auto; translate: -50% 0; filter: drop-shadow(0 24px 26px rgba(0, 0, 0, .38)); }
.isp-sheet { max-width: 40rem; }
.isp .sheet-name { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.isp .specs dt, .isp .sheet-taxon, .isp .sheet-note { color: color-mix(in srgb, var(--ink) 80%, var(--field)); }

/* ---------- Sticky buy action, bottom right ---------- */
.buybar {
  position: fixed; z-index: 60; right: clamp(12px, 2vw, 24px); bottom: calc(14px + var(--concept-bar-h, 0px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 14px; align-items: center;
  max-width: min(440px, calc(100vw - 24px)); padding: 10px 10px 10px 14px; border-radius: 22px;
  background: #f6f0e4; color: #161314; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .18);
}
.buybar[hidden] { display: none; }
.buybar img { grid-row: 1 / span 2; height: 58px; width: auto; }
.bb-name { min-width: 0; grid-column: 2; }
.bb-name b { display: block; font: 400 1.05rem/1.15 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-name small { display: block; font-size: .86rem; color: #4a3f3a; font-variant-numeric: tabular-nums; }
.bb-buy { grid-row: 1 / span 2; grid-column: 3; display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.2rem; border-radius: 999px; background: #161314; color: #f6f0e4; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .3s var(--ease); }
.bb-buy:hover { transform: translateY(-1px); }
.bb-visit { grid-column: 2; font-size: .84rem; color: #3a3586; text-underline-offset: .2em; }
.buybar :focus-visible { outline-color: #161314; }
html { scroll-padding-bottom: calc(100px + var(--concept-bar-h, 0px)); }
.foot { padding-bottom: calc(110px + var(--concept-bar-h, 0px)); }
@media (max-width: 860px) {
  .isp { grid-template-columns: 1fr; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
  .isp-art { position: relative; top: auto; height: 320px; }
  .bb-long { display: none; } .bb-short { display: inline; }
  .isp-bottle { height: 280px; }
  .buybar { left: 10px; right: 10px; max-width: none; bottom: calc(10px + var(--concept-bar-h, 0px)); }
}
