:root {
  --paper: #f4efe4;
  --cream: #ebe3d2;
  --ink: #1c1a16;
  --ink-2: #48433a;
  --muted: #7a7366;
  --line: rgba(28, 26, 22, .13);
  --night: #13120f;
  --night-2: #1d1b17;
  --night-line: rgba(244, 239, 228, .12);
  --night-ink: #f4efe4;
  --night-muted: #b3ab9c;
  --yellow: #edb92e;
  --yellow-deep: #c99511;
  --blue: #2e6db4;
  --rust: #b4532a;
  --radius: 18px;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
i, em { font-style: italic; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 1360px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 24px; height: 60px; padding: 0 24px;
  color: var(--night-ink); transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.topbar.solid { background: color-mix(in srgb, var(--paper) 86%, transparent); color: var(--ink); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.logo-dot { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(90deg, var(--yellow) 50%, currentColor 50%); box-shadow: inset 0 0 0 1.5px currentColor; }
.topnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { flex: none; font-size: 14px; font-weight: 500; text-decoration: none; padding: 7px 12px; border-radius: 999px; opacity: .82; transition: background .2s, opacity .2s; }
.topnav a:hover, .topnav a.on { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
@media (max-width: 860px) {
  .topbar { gap: 14px; padding: 0 0 0 16px; }
  .topnav { padding-right: 16px; mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent); }
  .topnav a { padding: 7px 10px; font-size: 13.5px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--night-ink);
  background: radial-gradient(1200px 700px at 78% 40%, #2a2416 0%, transparent 60%), radial-gradient(900px 600px at 10% 90%, #1b2230 0%, transparent 60%), var(--night); }
.mosaic { position: absolute; inset: 0; }
.bubble { position: absolute; border-radius: 50%; overflow: hidden; background: #2a2720; cursor: pointer; border: 0; padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: float var(--dur, 9s) ease-in-out var(--delay, 0s) infinite alternate, pop .9s var(--ease) var(--in, 0s) both;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), filter .4s; }
.bubble img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bubble:hover { z-index: 3; box-shadow: 0 0 0 3px var(--yellow), 0 18px 40px rgba(0, 0, 0, .6); }
.bubble:hover img { transform: scale(1.12); }
.bubble-tip { position: absolute; left: 50%; bottom: -6px; transform: translate(-50%, 100%); white-space: nowrap; pointer-events: none; z-index: 5;
  background: var(--paper); color: var(--ink); font: 600 13px/1.2 var(--sans); padding: 7px 10px; border-radius: 10px; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.bubble-tip i { display: block; font: italic 400 12px/1.3 var(--serif); color: var(--muted); }
@keyframes float { from { translate: 0 -6px; } to { translate: 0 7px; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(19,18,15,.96) 0%, rgba(19,18,15,.82) 34%, rgba(19,18,15,.1) 62%, transparent 100%), linear-gradient(0deg, rgba(19,18,15,.85), transparent 30%); }
.hero-copy { position: relative; z-index: 2; max-width: 1180px; width: 100%; margin: 0 auto; padding: 120px 24px 90px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; max-width: 620px; }
.kicker { font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin: 0 0 22px; }
.kicker i { text-transform: none; letter-spacing: .02em; font-family: var(--serif); font-size: 15px; }
.hero h1 { font: 400 clamp(52px, 9vw, 124px)/.92 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.035em; margin: 0 0 26px; }
.hero h1 em { font-style: italic; font-weight: 300; color: var(--yellow); font-variation-settings: "opsz" 72; }
.lede { font: 400 clamp(18px, 2vw, 21px)/1.5 var(--sans); color: #d8d0c0; margin: 0 0 34px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 52px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; transition: transform .25s var(--ease), background .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--night); box-shadow: 0 10px 30px rgba(237, 185, 46, .28); }
.btn-yellow:hover { box-shadow: 0 14px 36px rgba(237, 185, 46, .42); }
.btn-ghost { color: var(--night-ink); box-shadow: inset 0 0 0 1.5px rgba(244, 239, 228, .35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--night-ink); }
.stats { display: flex; gap: clamp(22px, 4vw, 48px); margin: 0; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font: 400 clamp(36px, 4.4vw, 54px)/1 var(--serif); font-variation-settings: "opsz" 72; font-variant-numeric: tabular-nums; }
.stats dd { margin: 0 0 8px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(244,239,228,.45); z-index: 3; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--night-ink); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 760px) {
  .hero { align-items: flex-end; }
  .hero-shade { background: linear-gradient(0deg, rgba(19,18,15,.98) 0%, rgba(19,18,15,.9) 45%, rgba(19,18,15,.35) 75%, rgba(19,18,15,.15) 100%); }
  .hero-copy { padding: 52vh 16px 80px; }
  .hero-cta { margin-bottom: 36px; }
  .scroll-cue { display: none; }
}

/* ---------- bands & section heads ---------- */
.band { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.band-paper { background: var(--paper); }
.band-cream { background: var(--cream); }
.band-night { background: var(--night); color: var(--night-ink); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.eyebrow { font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rust); margin: 0 0 18px; }
.band-night .eyebrow { color: var(--yellow); }
.sec-head h2 { font: 400 clamp(38px, 5.6vw, 72px)/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.03em; margin: 0 0 20px; }
.sec-lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); margin: 0; }
.band-night .sec-lede { color: var(--night-muted); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Lithuania cards ---------- */
.lt-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.lt-card { grid-column: span 4; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night-2); color: var(--night-ink); cursor: pointer;
  min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; text-align: left; border: 0; padding: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 20px 50px -24px rgba(28, 26, 22, .5); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.lt-card:nth-child(1), .lt-card:nth-child(2) { grid-column: span 6; min-height: 540px; }
.lt-card:nth-child(6), .lt-card:nth-child(7) { grid-column: span 6; min-height: 480px; }
.lt-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -24px rgba(28, 26, 22, .6); }
.lt-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.lt-card:hover img { transform: scale(1.05); }
.lt-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,13,11,.94) 0%, rgba(14,13,11,.6) 38%, rgba(14,13,11,0) 66%); }
.lt-body { padding: 26px 26px 24px; }
.lt-num { position: absolute; top: 18px; left: 20px; font: 400 15px/1 var(--serif); color: rgba(244,239,228,.85); background: rgba(14,13,11,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 7px 11px; border-radius: 999px; }
.lt-card h3 { font: 400 clamp(28px, 3vw, 38px)/1.02 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.02em; margin: 0 0 4px; }
.lt-sci { font: italic 400 16px/1.3 var(--serif); color: var(--yellow); margin: 0 0 12px; }
.lt-status { font-size: 14.5px; color: #d9d1c1; margin: 0 0 14px; max-width: 46ch; }
.marks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.marks li { font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: rgba(244, 239, 228, .13); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.play { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--yellow); color: var(--night);
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: transform .25s var(--ease); z-index: 2; }
.play:hover { transform: scale(1.08); }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play.playing { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(237,185,46,.6); } 50% { box-shadow: 0 0 0 12px rgba(237,185,46,0); } }
@media (max-width: 980px) {
  .lt-card, .lt-card:nth-child(1), .lt-card:nth-child(2) { grid-column: span 6; min-height: 440px; }
  .lt-card:nth-child(7) { grid-column: span 12; min-height: 400px; }
  .lt-card:nth-child(6) { grid-column: span 6; }
}
@media (max-width: 640px) {
  .lt-grid { gap: 12px; }
  .lt-card, .lt-card:nth-child(1), .lt-card:nth-child(2), .lt-card:nth-child(6), .lt-card:nth-child(7) { grid-column: span 12; min-height: 420px; }
  .lt-body { padding: 20px 18px 18px; }
}
.compare { margin-top: 18px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: center; background: #fff8e8; border-radius: var(--radius); padding: 28px; box-shadow: inset 0 0 0 1px var(--line); }
.compare h3 { font: 400 30px/1.1 var(--serif); letter-spacing: -.02em; margin: 0 0 10px; }
.compare p { margin: 0; color: var(--ink-2); }
.compare-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp { border-radius: 14px; overflow: hidden; background: var(--cream); cursor: pointer; border: 0; padding: 0; text-align: left; }
.cmp img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.cmp div { padding: 12px 14px 14px; }
.cmp b { display: block; font: 500 18px/1.2 var(--serif); }
.cmp ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; padding: 20px; } .compare-pair { gap: 10px; } }

/* ---------- tree ---------- */
.tree { position: relative; }
.tree svg.lines { position: absolute; left: 0; top: 0; overflow: visible; }
.tree svg.lines path { fill: none; stroke: rgba(244,239,228,.42); stroke-width: 1.5; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.8s var(--ease); }
.tree.in svg.lines path { stroke-dashoffset: 0; }
.tree svg.lines circle { fill: var(--yellow); }
.leaf { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 0 12px; border-radius: 14px; cursor: pointer; border: 0; background: transparent; color: inherit; text-align: left; transition: background .25s; }
.leaf:hover { background: rgba(244,239,228,.06); }
.leaf-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.leaf-name { flex: none; width: 210px; }
.leaf-name i { display: block; font: italic 400 19px/1.15 var(--serif); }
.leaf-name > span { display: block; font-size: 13px; color: var(--night-muted); }
.leaf-count { flex: none; font: 400 26px/1 var(--serif); width: 40px; text-align: right; color: var(--yellow); font-variant-numeric: tabular-nums; }
.leaf-faces { display: flex; flex-wrap: nowrap; min-width: 0; overflow: hidden; padding: 4px 0; }
.leaf-faces img { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; margin-right: -8px; border: 2px solid var(--night); background: #2a2720; transition: transform .25s var(--ease), margin .25s var(--ease); }
.leaf:hover .leaf-faces img { margin-right: 2px; }
.leaf-note { flex: 1 1 auto; font-size: 13.5px; color: var(--night-muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .leaf-note { display: none; } }
@media (max-width: 600px) {
  .leaf { gap: 10px; padding: 0 6px; }
  .leaf-name { width: auto; flex: 1 1 auto; min-width: 0; }
  .leaf-name i { font-size: 17px; }
  .leaf-name > span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .leaf-count { font-size: 22px; width: 28px; }
  .leaf-faces { display: none; }
}

/* ---------- controls & grid ---------- */
.controls { position: sticky; top: 60px; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 0; margin-bottom: 8px;
  background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--paper) 94%, transparent), 0 1px 0 100vmax var(--line); clip-path: inset(0 -100vmax -1px); }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 0 18px; box-shadow: inset 0 0 0 1px var(--line), 0 6px 20px -12px rgba(28,26,22,.25); }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: 500 16px/1 var(--sans); padding: 14px 0; min-width: 0; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 0; cursor: pointer; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; background: transparent; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, box-shadow .2s, color .2s; display: inline-flex; align-items: center; gap: 7px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.flag { width: 16px; height: 11px; border-radius: 2px; background: linear-gradient(#fdb913 33.3%, #006a44 33.3% 66.6%, #c1272d 66.6%); }
.selects { display: flex; gap: 10px; flex-wrap: wrap; }
.selects label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.selects select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; padding: 9px 34px 9px 14px; font: 500 14px/1.2 var(--sans); color: var(--ink); cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c1a16' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 760px) {
  .controls { position: static; }
  .controls .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); }
  .controls .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .selects { width: 100%; } .selects label { flex: 1; } .selects select { width: 100%; }
  .selects label span { display: none; }
}
.count { font-size: 14px; color: var(--muted); margin: 14px 0 18px; }
.count b { color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 18px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; } }
.card { position: relative; border: 0; padding: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; animation: cardIn .6s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.card-img { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, var(--cream)); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .6s; opacity: 0; }
.card-img img.ok { opacity: 1; }
.card:hover .card-img img { transform: scale(1.06); }
.card-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 5px; flex-wrap: wrap; z-index: 1; }
.badge { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 8px; border-radius: 999px; background: rgba(244,239,228,.92); color: var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: 5px; }
.badge.threat { background: var(--rust); color: #fff; }
.badge.snd { margin-left: auto; background: var(--yellow); }
.card-meta { padding: 12px 2px 0; }
.card-genus { display: flex; align-items: center; gap: 7px; font: italic 400 13px/1 var(--serif); color: var(--muted); margin-bottom: 6px; }
.card-genus::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.card h3 { font: 500 20px/1.15 var(--serif); font-variation-settings: "opsz" 48; letter-spacing: -.01em; margin: 0 0 3px; }
.card .sci { font: italic 400 14.5px/1.3 var(--serif); color: var(--ink-2); margin: 0; }
.card .en { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.approx { color: var(--rust); font-weight: 400; margin-left: 2px; cursor: help; }
@media (max-width: 560px) { .card h3 { font-size: 17px; } .card .sci { font-size: 13px; } .badge { font-size: 10px; padding: 3px 6px; } }
.empty { text-align: center; font-size: 17px; color: var(--muted); padding: 60px 0; }
mark { background: color-mix(in srgb, var(--yellow) 55%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- weight lineup ---------- */
.lineup { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 34px 12px; padding: 10px 0 0; }
.w-item { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0; cursor: pointer; color: inherit; width: max(var(--d), 86px); }
.lineup.in .w-item { animation: pop .8s var(--ease) both; }
.w-item img { width: var(--d); height: var(--d); border-radius: 50%; object-fit: cover; background: var(--paper); border: 3px solid var(--paper);
  box-shadow: 0 14px 26px -14px rgba(28,26,22,.6); transition: transform .35s var(--ease); }
.w-item:hover img { transform: translateY(-4px) scale(1.05); }
.w-item b { font: 500 21px/1 var(--serif); font-variant-numeric: tabular-nums; border-top: 2px solid var(--ink); padding-top: 9px; width: 100%; text-align: center; }
.w-item span { font-size: 12.5px; line-height: 1.25; color: var(--ink-2); text-align: center; max-width: 13ch; min-height: 2.5em; }
@media (max-width: 600px) { .lineup { gap: 24px 10px; } .w-item { width: max(var(--d), 76px); } .w-item b { font-size: 17px; } .w-item span { font-size: 11.5px; } }
.note { font-size: 13.5px; color: var(--muted); margin: 36px auto 0; max-width: 70ch; text-align: center; }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { background: var(--night-2); border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: inset 0 0 0 1px var(--night-line); transition: transform .5s var(--ease), box-shadow .5s; }
.fact:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(237,185,46,.4); }
.fact:nth-child(1), .fact:nth-child(6), .fact:nth-child(7), .fact:nth-child(8) { grid-column: span 2; }
.fact-big { font: 300 clamp(54px, 6vw, 84px)/1 var(--serif); font-variation-settings: "opsz" 72; color: var(--yellow); margin: 0 0 18px; letter-spacing: -.03em; }
.fact-big small { font-size: .38em; margin-left: 4px; letter-spacing: 0; }
.eggs { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 22px; }
.eggs i { width: 17px; height: 22px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; background: radial-gradient(circle at 35% 30%, #fff8ea, #e9dcc3 70%); box-shadow: inset -2px -3px 0 rgba(0,0,0,.08); position: relative; }
.eggs i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 60% 60%, rgba(160,70,40,.55) 0 1.4px, transparent 1.6px) 0 0 / 7px 8px; }
.eggs i.m { opacity: .55; }
.eggs i.r { background: transparent; box-shadow: inset 0 0 0 1.5px var(--yellow); }
.eggs i.r::after { display: none; }
.fact-word { font-size: clamp(34px, 3.4vw, 46px); font-style: italic; letter-spacing: -.01em; padding-top: 14px; }
.fact-flip { display: inline-block; }
.fact h3 { font: 500 21px/1.2 var(--serif); margin: 0 0 8px; }
.fact p:last-child { margin: 0; color: var(--night-muted); font-size: 15px; }
.facts .fact:nth-child(n) { transition-delay: calc(var(--i, 0) * 60ms); }
@media (max-width: 1000px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; gap: 12px; } .fact:nth-child(n) { grid-column: auto; } }

/* ---------- look-alikes ---------- */
.lookalikes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.look { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px rgba(28,26,22,.45); }
.look-img { aspect-ratio: 4/3; overflow: hidden; background: var(--cream); position: relative; }
.look-img img { width: 100%; height: 100%; object-fit: cover; }
.look-img .not { position: absolute; top: 12px; left: 12px; background: var(--rust); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; }
.look-body { padding: 20px 22px 22px; }
.look h3 { font: 400 26px/1.1 var(--serif); margin: 0 0 4px; letter-spacing: -.01em; }
.look .sci { font: italic 400 15px/1.3 var(--serif); color: var(--ink-2); margin: 0 0 12px; }
.look .fam { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rust); margin-bottom: 10px; }
.look p { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); }
.look .by { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 900px) { .lookalikes { grid-template-columns: 1fr; } .look { display: grid; grid-template-columns: 220px 1fr; } .look-img { aspect-ratio: auto; height: 100%; min-height: 200px; } }
@media (max-width: 560px) { .look { grid-template-columns: 1fr; } .look-img { aspect-ratio: 4/3; height: auto; } }

/* ---------- help ---------- */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.help-card { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: inset 0 0 0 1px var(--line); }
.help-card h3 { font: 400 30px/1.1 var(--serif); letter-spacing: -.02em; margin: 0 0 18px; }
.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16px; }
.ticks li::before { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ticks .yes::before { content: "✓"; background: #dfe9d3; color: #2f6b2a; }
.ticks .no::before { content: "✕"; background: #f3dcd2; color: var(--rust); }
.tip { margin: 0; padding: 14px 16px; border-radius: 12px; background: #fff8e8; font-size: 14.5px; color: var(--ink-2); }
.holes { display: flex; gap: 28px; align-items: flex-end; margin: 0 0 22px; }
.hole { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.hole span { width: calc(var(--d) * 2.6px); height: calc(var(--d) * 2.6px); border-radius: 50%; background: radial-gradient(circle at 50% 40%, #2b2219, #0d0a07); box-shadow: 0 0 0 10px #c79a63, 0 0 0 11px rgba(0,0,0,.2), 0 10px 20px rgba(0,0,0,.25); margin: 12px 0 10px; }
.hole b { font: 500 22px/1 var(--serif); }
.hole small { font-size: 12.5px; color: var(--muted); max-width: 16ch; min-height: 2.6em; }
@media (max-width: 800px) { .help { grid-template-columns: 1fr; } .help-card { padding: 24px 20px; } }

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--night-muted); padding: 70px 0 60px; font-size: 14.5px; }
.footer a { color: var(--night-ink); text-decoration-color: rgba(244,239,228,.35); text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.foot-logo { color: var(--night-ink); margin: 0 0 14px; }
.footer h4 { color: var(--night-ink); font: 500 18px/1 var(--serif); margin: 0 0 12px; }
.footer ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.credits { margin-top: 36px; border-top: 1px solid var(--night-line); padding-top: 18px; }
.credits summary { cursor: pointer; color: var(--night-ink); font-weight: 500; }
.credits ol { columns: 2; column-gap: 32px; font-size: 12.5px; padding-left: 22px; margin-top: 14px; }
.credits li { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } .credits ol { columns: 1; } }

/* ---------- species sheet ---------- */
.sheet { width: min(1120px, calc(100vw - 40px)); max-height: calc(100svh - 40px); padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.5); }
.sheet::backdrop { background: rgba(14,13,11,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet[open] { animation: sheetIn .45s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet-inner { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 100%; height: min(860px, calc(100svh - 40px)); position: relative; }
.sheet-body { min-height: 0; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(244,239,228,.92); font-size: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.sheet-photo { margin: 0; position: relative; background: var(--night); min-height: 420px; overflow: hidden; }
.sheet-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sheet-photo img.bg { object-fit: cover; filter: blur(30px) saturate(1.25) brightness(.62); transform: scale(1.25); }
.sheet-body:focus { outline: none; }
.sheet-photo figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; font-size: 11.5px; color: rgba(244,239,228,.9); text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.sheet-photo figcaption a { color: inherit; }
.sheet-body { overflow-y: auto; padding: 38px 36px 90px; overscroll-behavior: contain; }
.sheet-genus { display: flex; align-items: center; gap: 8px; font: italic 400 15px/1 var(--serif); color: var(--muted); margin: 0 0 14px; }
.sheet-genus::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.sheet h2 { font: 400 clamp(32px, 3.6vw, 46px)/1.02 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.025em; margin: 0 0 8px; }
.sheet .sci { font: italic 400 20px/1.3 var(--serif); color: var(--ink-2); margin: 0; }
.sheet .en { font-size: 14px; color: var(--muted); margin: 4px 0 20px; }
.sheet .desc { font-size: 17px; line-height: 1.62; margin: 0 0 22px; }
.facts-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 20px; }
.facts-row div { background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.facts-row dt { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts-row dd { margin: 0; font-size: 15px; font-weight: 500; }
.iucn { display: inline-flex; align-items: center; gap: 7px; }
.iucn b { font-size: 11px; padding: 2px 6px; border-radius: 5px; background: #3d7a3a; color: #fff; }
.iucn b.NT { background: #c99511; } .iucn b.VU { background: #d9741f; } .iucn b.EN { background: #c0392b; } .iucn b.NE { background: #8a8378; }
.lt-box { background: #fff8e8; border-radius: 12px; padding: 14px 16px; margin: 0 0 20px; box-shadow: inset 3px 0 0 var(--yellow); }
.lt-box b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.lt-box ul { margin: 6px 0 0; padding-left: 18px; font-size: 14.5px; }
.sound { display: flex; align-items: center; gap: 14px; background: var(--night); color: var(--night-ink); border-radius: 14px; padding: 12px 16px 12px 12px; margin: 0 0 20px; }
.sound .play { position: static; flex: none; }
.sound small { display: block; font-size: 12px; color: var(--night-muted); }
.sound-none { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.range { margin: 0 0 20px; }
.range h4, .links h4 { font: 600 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.range img { width: 100%; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.range small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.links { margin: 0 0 6px; }
.links div { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { font-size: 14px; font-weight: 500; text-decoration: none; padding: 8px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.links a:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.twin { font-size: 13px; color: var(--muted); margin: -12px 0 20px; }
.sheet-nav { position: absolute; right: 0; bottom: 0; width: calc(100% / 2.1); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; background: linear-gradient(0deg, var(--paper) 60%, transparent); }
.sheet-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--ink); color: var(--paper); font-size: 18px; transition: transform .2s; }
.sheet-nav button:hover { transform: scale(1.08); }
.sheet-nav span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .sheet { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; border-radius: 0; margin: 0; }
  .sheet-inner { display: block; height: 100svh; max-height: 100svh; overflow-y: auto; overscroll-behavior: contain; }
  .sheet-photo { min-height: 0; height: 46svh; }
  .sheet-body { overflow: visible; padding: 26px 18px 96px; }
  .sheet-nav { position: fixed; width: 100%; left: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
}

/* ---------- player ---------- */
.player { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px; width: min(460px, calc(100vw - 24px));
  background: var(--night); color: var(--night-ink); border-radius: 18px; padding: 10px 12px 10px 10px; box-shadow: 0 20px 50px rgba(0,0,0,.45); animation: sheetIn .4s var(--ease); }
.player[hidden] { display: none; }
.player-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: var(--yellow); position: relative; }
.player-btn::before { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 14px; background: linear-gradient(90deg, var(--night) 0 35%, transparent 35% 65%, var(--night) 65%); }
.player-btn.paused::before { width: 0; height: 0; background: none; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--night); margin-left: 15px; }
.player-meta { flex: 1; min-width: 0; }
.player-meta b { display: block; font: 500 15px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta span { display: block; font-size: 11.5px; color: var(--night-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar { position: absolute; left: 66px; right: 52px; bottom: 7px; height: 3px; border-radius: 3px; background: rgba(244,239,228,.15); overflow: hidden; }
.player-bar span { display: block; height: 100%; width: 0; background: var(--yellow); }
.player-x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(244,239,228,.1); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
