/* ZooExo 2.1 · the homepage. It sits on the /popugai design system (premium.css: tokens, header, buttons, dialogs,
   lead forms, contact sheet, dock, cookie, footer) and adds its own composition. Every class of its own starts with
   «h-», so nothing of the parrot page applies here by accident.
   HOME PREMIUM PRO MAX: one bold place, the cinematic illustration of the first screen. Everything below is dark and
   quieter and changes rhythm from section to section: a catalog index, a mosaic, card rails, a quiz, a lit timeline,
   a glass panel of documents, a route schematic, stories, a magazine, plain answers. The light paper band is retired. */

.h-sec { padding-block: var(--sec); position: relative; }
.h-sec-tight { padding-block: clamp(48px, 6vw, 80px); }
.h-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px 64px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.h-head p { color: var(--muted); max-width: 34em; }
.h-kicker { display: block; color: var(--turq-2); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.h-link { display: inline-flex; align-items: center; gap: 8px; color: var(--turq-2); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(126, 224, 220, .35); padding-bottom: 2px; transition: border-color .2s, gap .2s; }
.h-link:hover { border-color: var(--turq-2); gap: 12px; }
.h-link .i { width: 18px; height: 18px; }
.nw { white-space: nowrap; }

/* ---------- hero B: the gallery of characters (the chosen one) ---------- */
.h-hero { position: relative; padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(40px, 5vw, 72px); overflow: clip; }
.h-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; background: radial-gradient(closest-side, rgba(20, 84, 64, .55), transparent 70%); pointer-events: none; }
.h-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 4vw, 64px); align-items: center; min-height: min(760px, calc(100svh - 120px)); }
.h-crumbs { font-size: 14px; color: var(--dim); margin-bottom: 18px; }
.h-hero h1 { font-size: clamp(40px, 3.9vw, 60px); line-height: 1; letter-spacing: -.02em; }
.h-hero h1 .h-h1-2 { display: block; color: var(--turq-2); font-style: italic; font-weight: 500; }
.h-lead { margin-top: 22px; font-size: clamp(17px, 1.35vw, 19.5px); color: var(--muted); max-width: 33em; }
.h-lead b { color: var(--text); font-weight: 700; }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.h-search { position: relative; margin-top: 26px; max-width: 520px; }
.h-search label { display: block; font-size: 14px; color: var(--dim); margin-bottom: 8px; }
.h-search-box { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 18px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); transition: border-color .2s, background-color .2s; }
.h-search-box:focus-within { border-color: var(--turq); background: rgba(66, 196, 193, .07); }
.h-search-box .i { color: var(--turq-2); }
.h-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 16px; }
.h-search input::placeholder { color: var(--dim); }
.h-search-go { flex: none; height: 42px; padding: 0 18px; border-radius: var(--r-pill); border: 0; background: var(--turq); color: #04110e; font-weight: 800; }
.h-sugg { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; border-radius: 18px; background: #0b1814; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); max-height: 340px; overflow: auto; }
.h-sugg a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 12px; text-decoration: none; }
.h-sugg a:hover, .h-sugg a[aria-selected="true"] { background: rgba(66, 196, 193, .1); }
.h-sugg img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.h-sugg b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.h-sugg small { color: var(--dim); font-size: 13px; }
.h-sugg .h-sugg-p { color: var(--gold-2); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.h-sugg-empty { padding: 12px 14px; color: var(--muted); font-size: 14.5px; }
.h-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.h-quick a { font-size: 14px; color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); transition: color .2s, border-color .2s; }
.h-quick a:hover { color: var(--text); border-color: var(--turq); }

/* the gallery: tall portraits side by side; the open one is wide, the others are slivers with their names upright */
.h-gal { display: flex; gap: 10px; height: min(660px, calc(100svh - 150px)); min-height: 500px; }
.h-gp { position: relative; flex: 1 1 0; min-width: 0; border-radius: 26px; overflow: hidden; background: var(--forest); color: var(--text); text-decoration: none; isolation: isolate;
  transition: flex-grow .75s var(--ease), box-shadow .4s; outline-offset: 4px; }
.h-gp.is-open { flex-grow: 5.2; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(126, 224, 220, .18); }
.h-gp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.75) brightness(.72); }
.h-gp.is-open img { transform: scale(1.0) translate(var(--px, 0), var(--py, 0)); filter: none; }
.h-gp::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 9, 8, 0) 40%, rgba(5, 9, 8, .86) 100%); }
.h-gp-name { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; white-space: nowrap; font-family: var(--serif); font-size: 22px; font-weight: 600; transition: opacity .3s; }
.h-gp.is-open .h-gp-name { opacity: 0; }
.h-gp-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 26px 28px; opacity: 0; transform: translateY(14px); transition: opacity .45s .2s, transform .55s .2s var(--ease); pointer-events: none; }
.h-gp.is-open .h-gp-body { opacity: 1; transform: none; }
.h-gp:not(.is-open) .h-gp-body { transition: opacity .12s, transform .12s; }
.h-gp-body { min-width: 340px; }
.h-gp-body b { display: block; font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); font-weight: 600; line-height: 1.05; }
.h-gp-body span { display: block; margin-top: 8px; color: #d6e4de; max-width: 30em; font-size: 15.5px; }
.h-gp-meta { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px !important; }
.h-gp-meta em { font-style: normal; color: var(--gold-2); font-weight: 700; }
.h-gp-meta i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; color: var(--turq-2); font-weight: 700; }
.h-gp-meta i .i { width: 18px; height: 18px; }
.h-gp-ill { position: absolute; z-index: 2; top: 14px; right: 14px; font-size: 11.5px; padding: 4px 9px; border-radius: var(--r-pill); background: rgba(5, 9, 8, .6); color: #cfe0d8; backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.h-gp.is-open .h-gp-ill { opacity: 1; }
.h-gal-hint { margin-top: 12px; color: var(--dim); font-size: 13.5px; text-align: right; }

/* ---------- hero A: the expedition (kept in the Design Lab for comparison) ---------- */
.h-hero-a { position: relative; min-height: min(860px, calc(100svh - 72px)); display: grid; align-items: end; overflow: clip; isolation: isolate; }
.h-scene { position: absolute; inset: 0; z-index: -2; }
.h-scene img { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; opacity: 0; transform: scale(1.08) translate(var(--px, 0), var(--py, 0)); transition: opacity 1.2s var(--ease), transform 7s linear; }
.h-scene img.is-on { opacity: 1; transform: scale(1.0) translate(var(--px, 0), var(--py, 0)); }
.h-hero-a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 9, 8, .92) 0%, rgba(5, 9, 8, .55) 45%, rgba(5, 9, 8, .1) 75%), linear-gradient(0deg, rgba(5, 9, 8, .95) 0%, transparent 40%); }
.h-hero-a .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: end; padding-bottom: clamp(36px, 6vw, 80px); }
.h-hero-a h1 { font-size: clamp(42px, 5.6vw, 84px); line-height: 1; letter-spacing: -.02em; max-width: 11ch; }
.h-worlds { display: grid; gap: 4px; }
.h-worlds button { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line-2); background: none; text-align: left; color: var(--muted); font-family: var(--serif); font-size: 22px; transition: color .25s, padding .25s; }
.h-worlds button small { font-family: var(--sans); font-size: 13px; color: var(--dim); }
.h-worlds button[aria-pressed="true"] { color: var(--text); padding-left: 12px; border-bottom-color: var(--turq); }
.h-world-link { margin-top: 14px; }

/* ---------- facts strip ---------- */
.h-facts { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(20, 84, 64, .18), transparent 60%); }
.h-facts ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 32px; }
.h-facts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 15px; color: var(--muted); }
.h-facts li b { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }
.h-facts .h-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--turq-soft); color: var(--turq-2); }

/* ---------- directions: a mosaic, two large tiles and the rest in a rhythm ---------- */
.h-mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: 14px; }
.h-tile { position: relative; grid-column: span 2; min-height: 260px; border-radius: var(--r-card); overflow: hidden; isolation: isolate; text-decoration: none; color: var(--text); background: var(--forest);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; border: 1px solid var(--line); transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .3s, box-shadow .4s; }
.h-tile.is-xl { grid-column: span 3; grid-row: span 2; min-height: 540px; padding: 30px; }
.h-tile.is-wide { grid-column: span 3; }
.h-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.h-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 9, 8, .05) 30%, rgba(5, 9, 8, .9) 100%); transition: background-color .4s; }
.h-tile:hover { border-color: rgba(126, 224, 220, .35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.h-tile:hover img { transform: scale(1.06); }
.h-tile h3 { font-family: var(--serif); font-size: clamp(24px, 2vw, 30px); font-weight: 600; line-height: 1.1; }
.h-tile.is-xl h3 { font-size: clamp(32px, 3vw, 46px); }
.h-tile p { margin-top: 8px; color: #d3e2db; font-size: 15px; max-width: 30em; }
.h-tile-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.h-tile-meta b { color: var(--gold-2); }
.h-tile-go { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 9, 8, .5); border: 1px solid var(--line-2); backdrop-filter: blur(6px); transition: background-color .3s, transform .4s var(--ease); }
.h-tile:hover .h-tile-go { background: var(--gold); color: #1a0e02; transform: rotate(-45deg); }
.h-tile-ill { position: absolute; top: 18px; left: 18px; font-size: 11.5px; padding: 4px 9px; border-radius: var(--r-pill); background: rgba(5, 9, 8, .6); color: #cfe0d8; }
.h-tile-note { position: absolute; top: 18px; left: 18px; font-size: 12.5px; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(243, 146, 33, .16); color: var(--gold-2); border: 1px solid rgba(243, 146, 33, .3); }
.h-mosaic-foot .h-link { margin-left: auto; }  /* the catalog link sits with the button, on the right */
@media (max-width: 760px) { .h-mosaic-foot .h-link { margin-left: 0; } }
.h-mosaic-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; color: var(--muted); font-size: 15px; }

/* ---------- popular species: a rail with snap, large cards ---------- */
.h-rail-wrap { position: relative; }
.h-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 24vw, 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--gut) 18px;
  margin-inline: calc(-1 * var(--gut)); scroll-padding-inline: var(--gut); }
.h-rail::-webkit-scrollbar { display: none; }
.h-sp { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); background: linear-gradient(180deg, #0d1c17, #09130f); border: 1px solid var(--line); overflow: hidden; }
.h-sp-ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--forest); }
.h-sp-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.h-sp:hover .h-sp-ph img { transform: scale(1.05); }
.h-sp-cat { position: absolute; left: 12px; top: 12px; font-size: 12.5px; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(5, 9, 8, .62); backdrop-filter: blur(6px); color: #d6e6df; }
.h-sp-acts { position: absolute; right: 10px; top: 10px; display: grid; gap: 8px; }
.h-sp-acts button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .18); background: rgba(5, 9, 8, .55); backdrop-filter: blur(6px); transition: background-color .2s, color .2s, transform .2s; }
.h-sp-acts button:hover { transform: scale(1.06); }
.h-sp-acts button[aria-pressed="true"] { background: var(--gold); color: #1a0e02; border-color: var(--gold); }
.h-sp-acts button[aria-pressed="true"] .i path { fill: currentColor; }
.h-sp-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.h-sp-body h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.h-sp-body h3 a { text-decoration: none; }
.h-sp-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.h-sp-ph, .h-sp-acts, .h-sp-foot { position: relative; z-index: 1; }
.h-sp-acts { position: absolute; z-index: 2; }
.h-sp-note { color: var(--dim); font-size: 13.5px; }
.h-sp-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h-sp-price { font-weight: 800; color: var(--gold-2); font-size: 17px; }
.h-sp-price small { display: block; color: var(--dim); font-weight: 600; font-size: 12px; }
.h-sp-ask { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid rgba(66, 196, 193, .5); background: transparent; color: var(--turq-2); font-weight: 700; font-size: 14px; }
.h-sp-ask:hover { background: var(--turq-soft); }
.h-rail-nav { display: flex; gap: 8px; }
.h-rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; transition: border-color .2s, opacity .2s; }
.h-rail-nav button:hover { border-color: var(--turq); }
.h-rail-nav button:disabled { opacity: .35; cursor: default; }
.h-rail-nav .h-prev .i { transform: rotate(180deg); }
.h-rail-bar { height: 2px; background: var(--line); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.h-rail-bar span { display: block; height: 100%; width: 30%; background: var(--turq); transform-origin: left; transition: transform .2s; }

.h-gp-meta .h-gp-n { display: inline; margin: 0; color: #cfe0d8; font-size: 14px; }
@media (max-width: 1100px) { .h-tile img[style*="--pm"] { object-position: var(--pm) !important; } }  /* the narrow crop of a tile photo (FOCAL_NARROW in the builder) */
/* tile and process-card micro motion: a soft light under the pointer and a tiny parallax of the picture (--tx/--ty/--gx/--gy come from home.js; hover devices only) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .h-tile:not(.h-tile-ask) img { scale: 1.03; translate: calc(var(--tx, 0) * -9px) calc(var(--ty, 0) * -6px); transition: transform 1s var(--ease), translate .35s ease-out; }
  .h-tile:not(.h-tile-ask)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle 220px at var(--gx, 50%) var(--gy, 40%), rgba(126, 224, 220, .2), transparent 70%); }
  .h-tile:not(.h-tile-ask):hover::before { opacity: 1; }
  .h-step .lx-img { translate: calc(var(--tx, 0) * 7px) calc(var(--ty, 0) * 5px); }
}
.h-tile-ask { font: inherit; text-align: left; cursor: pointer; background: linear-gradient(135deg, rgba(243, 146, 33, .14), rgba(20, 84, 64, .35)); border-style: dashed; border-color: rgba(243, 146, 33, .4); min-height: 210px; }
.h-tile-ask::after { display: none; }
.h-tile-ask:hover .h-tile-go { transform: none; }
.h-mosaic .h-tile.h-tile-ask { grid-column: span 3; min-height: 260px; }  /* the primates tile and this one share the last row */
.h-rev-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* compare dock and dialogs reuse premium.css (.cmp-dock, .sheet) */

/* ---------- Smart Match for every direction ---------- */
.h-match { background: radial-gradient(120% 80% at 0% 0%, rgba(20, 84, 64, .45), transparent 60%), var(--ink-2); border-block: 1px solid var(--line); }
.h-match-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.h-match-side { position: sticky; top: 100px; }
.h-match-side h2 { font-size: clamp(34px, 3.6vw, 54px); }
.h-match-side > p { margin-top: 14px; color: var(--muted); max-width: 30em; }
.h-match-pic { position: relative; margin: 26px 0 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--forest); }
.h-match-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); transform: scale(1.04); }
.h-match-pic img.is-on { opacity: 1; transform: none; }
.h-match-pic figcaption { position: absolute; left: 14px; bottom: 14px; font-size: 13px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(5, 9, 8, .65); color: #d6e6df; backdrop-filter: blur(6px); }
.h-q { border-radius: 26px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); padding: clamp(22px, 3vw, 36px); }
.h-q-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.h-q-count { color: var(--turq-2); font-weight: 700; font-size: 14.5px; }
.h-q-bar { flex: 1; max-width: 220px; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.h-q-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--turq), var(--gold)); transform-origin: left; transition: transform .5s var(--ease); }
.h-q h3 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; outline: none; }
.h-q-hint { color: var(--dim); font-size: 14.5px; margin-top: 6px; }
.h-q-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.h-q-opt { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; min-height: 74px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(5, 9, 8, .35);
  transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.h-q-opt:hover { border-color: rgba(66, 196, 193, .55); transform: translateY(-2px); }
.h-q-opt[aria-pressed="true"] { border-color: var(--turq); background: rgba(66, 196, 193, .12); }
.h-q-opt .h-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--turq-soft); color: var(--turq-2); }
.h-q-opt b { display: block; font-size: 16px; }
.h-q-opt small { display: block; color: var(--dim); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.h-q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.h-q-back { border: 0; background: none; color: var(--muted); font-weight: 700; padding: 10px 0; min-height: 44px; }
.h-q-back:disabled { visibility: hidden; }
.h-res { display: grid; gap: 12px; margin-top: 18px; }
.h-res-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px; border-radius: 20px; background: rgba(5, 9, 8, .45); border: 1px solid var(--line-2); }
.h-res-card.is-top { border-color: rgba(243, 146, 33, .55); background: linear-gradient(90deg, rgba(243, 146, 33, .1), rgba(5, 9, 8, .45) 60%); }
.h-res-card img { width: 120px; height: 120px; border-radius: 14px; object-fit: cover; }
.h-res-card h4 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.h-res-card h4 a { text-decoration: none; }
.h-res-card .h-res-fit { font-size: 13px; font-weight: 800; color: var(--gold-2); }
.h-res-why { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 14px; color: var(--muted); }
.h-res-why li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; }
.h-res-why li::before { content: ""; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--turq); }
.h-res-why li.is-warn::before { background: var(--gold); }
.h-res-sp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.h-res-sp a { font-size: 13px; text-decoration: none; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.h-res-sp a:hover { border-color: var(--turq); }
.h-res-note { font-size: 13.5px; color: var(--dim); margin-top: 6px; }
.h-res-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- who suits which direction: an honest orientation table ---------- */
.h-fit-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--line-2); }
.h-fit { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 15px; }
.h-fit th, .h-fit td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.h-fit thead th { font-size: 13px; color: var(--dim); font-weight: 700; background: rgba(255, 255, 255, .02); }
.h-fit tbody th { font-family: var(--serif); font-size: 18px; font-weight: 600; white-space: nowrap; }
.h-fit tbody th a { text-decoration: none; }
.h-fit tbody th a:hover { color: var(--turq-2); }
.h-fit td { color: var(--muted); }
.h-lvl { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 8px; }
.h-lvl i { width: 14px; height: 6px; border-radius: 3px; background: var(--line-2); }
.h-lvl i.on { background: var(--turq); }
.h-fit-note { margin-top: 14px; font-size: 14px; color: var(--dim); max-width: 60em; }

/* ---------- process: a dark timeline; the line fills as steps are seen, one pulse of light runs along it ---------- */
.h-process { background: radial-gradient(90% 70% at 50% 0%, rgba(20, 84, 64, .32), transparent 70%), var(--ink-2); border-block: 1px solid var(--line); }
.h-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.h-steps-line { position: absolute; left: 24px; right: calc((100% - 64px) / 5 - 24px); top: 22px; height: 2px; background: var(--line-2); }
.h-steps-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--turq), var(--gold)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1.6s var(--ease); box-shadow: 0 0 14px rgba(66, 196, 193, .5); }
.h-steps-line i { position: absolute; inset: -4px 0; background: radial-gradient(closest-side, rgba(190, 255, 250, .95), rgba(126, 224, 220, .35) 55%, transparent) no-repeat; background-size: 140px 100%; background-position: -140px 0; opacity: 0; }
.h-steps.is-pulse .h-steps-line i { animation: h-run 2.6s var(--ease) .3s 1 both; }
/* each stage: a node on the line, then the card; the node, the frame and the drawing light up as the line reaches them */
.h-step { --d: calc(var(--i) * .3s); position: relative; display: flex; flex-direction: column; padding-top: 48px; }
.h-step::before { content: ""; position: absolute; top: 15px; left: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-2); border: 2px solid var(--line-2); transition: background .4s var(--d), border-color .4s var(--d), box-shadow .4s var(--d); }
.h-step.is-lit::before { background: var(--turq-2); border-color: var(--turq); box-shadow: 0 0 0 6px rgba(66, 196, 193, .12), 0 0 22px rgba(66, 196, 193, .55); }
.h-step:last-child.is-lit::before { background: var(--gold-2); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(243, 146, 33, .14), 0 0 22px rgba(243, 146, 33, .5); }
.h-step-pic { position: relative; display: block; aspect-ratio: 13 / 9; border-radius: 20px 20px 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; background: radial-gradient(80% 90% at 30% 20%, rgba(20, 84, 64, .55), transparent 70%), #081612; transition: border-color .5s var(--d); }
.h-step-n { position: absolute; z-index: 1; bottom: 16px; left: 14px;  /* old-style figures in this serif: 4 and 5 hang below the line */ font: 600 clamp(40px, 3.6vw, 56px)/1 var(--serif); color: transparent; -webkit-text-stroke: 1.2px rgba(233, 200, 140, .85); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); pointer-events: none; transition: color .6s var(--d); }
.h-step.is-lit .h-step-n { color: rgba(243, 166, 66, .22); }
.h-step .h-step-cta::after { content: "\00a0\2192"; margin-left: 0; display: inline-block; transition: transform .25s var(--ease); }  /* the arrow of the approved mockup; CSS content, not copy */
.h-step .h-step-cta:hover::after { transform: translateX(4px); }
.h-step .h-step-tx .h-step-cta { display: block; box-sizing: border-box; min-height: 44px; padding-block: 13px; line-height: 1.3; }  /* a wrapped link keeps its arrow right after the last word */
@media (min-width: 1440px) { .h-step .h-step-tx .h-step-cta { font-size: 14px; white-space: nowrap; } }  /* one line in the five-column row, so the result rows stay level */
/* ---------- Process Luxury Assets: five whole raster pictures (scripts/home21_lux.py), light and motion over them ---------- */
.h-step-pic.is-lux { background: #011510; aspect-ratio: 512 / 432; }  /* the pictures are painted on #011510: the box and the picture are one surface */
.lx-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .7s var(--ease), filter .7s var(--ease); }
.h-step-pic.is-lux::before { content: ""; position: absolute; z-index: 1; left: 18%; right: 18%; bottom: 8%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 255, 228, .32), transparent 72%); opacity: 0; pointer-events: none; }
.h-step-pic.is-lux::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(190, 255, 244, .16) 50%, transparent 62%); transform: translateX(-120%); pointer-events: none; }

/* the picture rises when its stage lights (no JS: it is simply there) */
.js .h-step:not(.is-lit) .lx-img { opacity: 0; transform: translateY(12px) scale(.96); }
.h-step.is-lit .lx-img { transition: opacity .9s var(--d), transform 1.1s var(--ease) var(--d), filter .7s var(--ease); }
.h-step.is-lit .h-step-pic.is-lux::after { transition: transform 1.6s var(--ease) calc(var(--d) + .5s); transform: translateX(120%); }

/* the podium breathes once lit, only while the process is on screen */
@media (prefers-reduced-motion: no-preference) {
  .h-steps.is-on .h-step.is-lit .h-step-pic.is-lux::before { animation: lx-breathe 4.2s ease-in-out infinite; }
}
@keyframes lx-breathe { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }

/* the hovered stage comes alive */
@media (hover: hover) {
  .h-step:hover .lx-img { transform: translateY(-5px) scale(1.04); filter: brightness(1.08); }
  .h-step:hover .h-step-pic { border-color: rgba(243, 190, 90, .5); }
}
.h-step-pic.is-lux .h-step-n { z-index: 2; color: transparent; background: linear-gradient(180deg, #fff1b0, #e9a93a 55%, #9a620f); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; text-shadow: none; font-size: clamp(34px, 3vw, 46px); bottom: 10px; left: 12px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); transition: opacity .6s var(--d); }
.js .h-step:not(.is-lit) .h-step-pic.is-lux .h-step-n { opacity: .35; }
.h-step-tx { flex: 1; display: flex; flex-direction: column; padding: 18px 18px 18px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; background: linear-gradient(180deg, rgba(8, 22, 18, .9), rgba(6, 15, 12, .9)); transition: border-color .5s var(--d); }
.h-step.is-lit :is(.h-step-pic, .h-step-tx) { border-color: rgba(126, 224, 220, .28); }
.h-step h3 { font-size: 18px; line-height: 1.25; }
.h-step p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.h-step .h-step-res { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: #dfeee8; }
.h-step p:not(.h-step-res) { margin-bottom: 14px; }
.h-step-res .i { width: 18px; height: 18px; color: var(--turq-2); margin-top: 2px; }
.h-step-res b { color: var(--gold-2); font-weight: 700; }
.h-step .h-step-cta { margin-top: 10px; align-self: flex-start; display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; font-size: 14.5px; color: var(--turq-2); background: none; border: 0; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.h-step .h-step-cta:hover { color: var(--gold-2); }
.h-proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.h-proof h3 { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 40px); font-weight: 600; line-height: 1.1; }
.h-proof ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.h-proof li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; color: var(--muted); }
.h-proof li .i { color: var(--turq-2); width: 22px; height: 22px; }
.h-chat { position: relative; display: grid; gap: 10px; padding: 22px; border-radius: 28px; background: #0b1713; color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.h-chat-tag { position: absolute; top: -12px; left: 22px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); background: var(--gold); color: #1a0e02; }
.h-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, .06); font-size: 14.5px; line-height: 1.45; }
.h-msg.is-me { justify-self: end; border-radius: 18px 18px 6px 18px; background: rgba(66, 196, 193, .16); }
.h-msg-media { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px; padding: 6px; max-width: 86%; border-radius: 18px; background: rgba(255, 255, 255, .06); }
.h-msg-media img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }
.h-msg-media .h-vid { position: relative; }
.h-msg-media .h-vid::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-30%, -50%); border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.h-msg small { display: block; color: var(--dim); font-size: 12px; margin-top: 4px; }

/* documents: one group open at a time, plain HTML underneath */
.h-docs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.h-glass { padding: clamp(24px, 4vw, 52px); border-radius: 30px; background: linear-gradient(135deg, rgba(20, 84, 64, .26), rgba(255, 255, 255, .02) 60%); border: 1px solid rgba(126, 224, 220, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 90px -50px rgba(0, 0, 0, .9); }
.h-docs-sec h2 { color: var(--text); }
.h-docs-sec p { color: var(--muted); }
.h-docs-pic { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--forest); }
.h-glass.h-docs { align-items: stretch; }
@media (min-width: 1101px) { .h-glass .h-docs-pic { aspect-ratio: auto; height: 100%; min-height: 440px; } }
.h-docs-pic img { width: 100%; height: 100%; object-fit: cover; }
.h-acc { border-top: 1px solid var(--line-2); }
.h-acc details { border-bottom: 1px solid var(--line-2); }
.h-acc summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 14px; align-items: center; padding: 18px 0; cursor: pointer; font-weight: 700; font-size: 17px; min-height: 44px; }
.h-acc summary::-webkit-details-marker { display: none; }
.h-acc summary::after { content: ""; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--turq-2);
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat; transition: transform .3s var(--ease); }
.h-acc details[open] summary::after { transform: rotate(45deg); }
.h-acc .h-acc-body { padding: 0 0 20px; display: grid; gap: 10px; font-size: 15.5px; }
.h-acc .h-acc-body ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.h-acc-body p { color: var(--muted); }
.h-docs-note { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(243, 146, 33, .08); border: 1px solid rgba(243, 146, 33, .35); color: #f4dcb9 !important; font-size: 15px; }

/* ---------- delivery: a route from Moscow ---------- */
.h-route { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: center; }
.h-mp { position: relative; border-radius: 28px; padding: 18px 18px 14px; background: radial-gradient(60% 70% at 22% 42%, rgba(20, 84, 64, .5), transparent 70%), radial-gradient(50% 60% at 80% 70%, rgba(66, 196, 193, .07), transparent 70%), #061210; border: 1px solid var(--line); overflow: hidden; }
.h-mp-stage { position: relative; width: 100%; }
.h-mp-land, .h-mp-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.h-mp-r { fill: none; stroke: rgba(126, 224, 220, .38); stroke-width: 1.6; stroke-dasharray: 4 6; transition: opacity .35s, stroke .35s; }
.h-mp-flow { fill: none; stroke: var(--turq-2); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 1000; opacity: .9; transition: opacity .35s, stroke .35s; }
.h-mp.is-run .h-mp-flow { stroke-dasharray: 26 220; animation: h-flow 3.4s linear infinite; }
@keyframes h-flow { from { stroke-dashoffset: 246; } to { stroke-dashoffset: 0; } }
.h-mp-dot { display: none; fill: #fff3d6; }
.h-mp.is-run .h-mp-dot { display: inline; }
.h-mp-d { fill: var(--gold); transition: opacity .35s; }
.h-mp-dr { fill: rgba(243, 146, 33, .16); stroke: rgba(243, 146, 33, .55); stroke-width: 1.2; transition: opacity .35s; }
.h-mp-ring { fill: rgba(66, 196, 193, .07); stroke: var(--turq); stroke-width: 1.5; stroke-dasharray: 2 5; opacity: .75; transition: opacity .35s; }
.h-mp-halo { pointer-events: none; }
.h-mp-hub { fill: var(--turq-2); }
.h-mp-pulse { fill: none; stroke: var(--turq-2); stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.h-mp.is-run .h-mp-pulse { animation: h-pulse 2.6s var(--ease) infinite; }
@keyframes h-pulse { from { opacity: .8; transform: scale(.6); } to { opacity: 0; transform: scale(3); } }
.h-mp.has-sel [data-how]:not(.is-sel) { opacity: .14; }
.h-mp.has-sel .h-mp-l:not(.is-sel) { opacity: .5; }
.h-mp.has-sel .h-mp-flow.is-sel { stroke: var(--gold-2); }
.h-mp.has-sel .h-mp-r.is-sel { stroke: rgba(255, 196, 120, .7); }
.h-mp.has-sel .h-mp-dot.is-sel { fill: var(--gold-2); }
.h-mp.has-sel .h-mp-ring.is-sel { stroke: var(--gold-2); fill: rgba(243, 146, 33, .14); opacity: 1; }
.h-mp-labels { position: absolute; inset: 0; }
.h-mp-l { position: absolute; transform: translate(-50%, 12px); white-space: nowrap; font: 700 13.5px/1.3 var(--sans); color: #e3efe9; padding: 5px 11px; border-radius: var(--r-pill); background: rgba(5, 12, 10, .82); border: 1px solid rgba(126, 224, 220, .22); cursor: pointer; transition: opacity .35s, border-color .2s, background .2s; }
.h-mp-l:hover, .h-mp-l:focus-visible, .h-mp-l.is-sel { border-color: var(--gold); background: rgba(40, 24, 6, .9); }
.h-mp-l.is-t { transform: translate(-50%, calc(-100% - 12px)); }
.h-mp-l.is-b { transform: translate(-50%, 12px); }
.h-mp-l.is-r { transform: translate(14px, -50%); }
.h-mp-l.is-l { transform: translate(calc(-100% - 14px), -50%); }
.h-mp-l.is-ur { transform: translate(10px, calc(-100% + 4px)); }  /* Yaroslavl: up and right, clear of the Moscow label below */
.h-mp-l.is-t.is-edge { transform: translate(-14px, calc(-100% - 12px)); }
.h-mp-l.is-hub { color: var(--turq-2); border-color: rgba(126, 224, 220, .45); }
.h-mp-short { display: none; }
.h-mp-note { margin: 12px 4px 0; font-size: 13px; line-height: 1.45; color: var(--dim); }
.h-ways { display: grid; gap: 10px; margin-top: 22px; }
.h-way { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; width: 100%; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.h-way:hover { border-color: rgba(66, 196, 193, .5); }
.h-way[aria-pressed="true"] { border-color: var(--gold); background: rgba(243, 146, 33, .08); }
.h-way .h-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--turq-soft); color: var(--turq-2); }
.h-way b { display: block; }
.h-way > span > span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; line-height: 1.45; }
.h-ways-hint { margin-top: 12px; font-size: 14px; color: var(--dim); }

/* ---------- why ZooExo: an editorial split with one photograph ---------- */
.h-why { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.h-why-pic { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; }
.h-why-pic img { width: 100%; height: 100%; object-fit: cover; }
.h-why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 30px; margin-top: 30px; }
.h-why-list h3 { display: flex; gap: 10px; align-items: center; font-size: 18px; }
.h-why-list h3 .i { color: var(--turq-2); }
.h-why-list p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.h-honest { margin-top: 26px; padding: 18px 20px; border-left: 3px solid var(--gold); background: rgba(243, 146, 33, .06); border-radius: 0 16px 16px 0; color: var(--muted); font-size: 15.5px; }
.h-honest b { color: var(--text); }

/* ---------- reviews ---------- */
.h-rv { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #0d1c17, #09130f); }
.h-rv-ph { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: #08120f; overflow: hidden; cursor: zoom-in; }
.h-rv-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.h-rv-ph:hover img { transform: scale(1.04); }
.h-rv-noph { display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--dim); cursor: default; background: radial-gradient(closest-side, rgba(20, 84, 64, .4), transparent), #08120f; }
.h-rv-noph .i { width: 40px; height: 40px; color: var(--turq); opacity: .6; }
.h-rv-noph small { font-size: 12.5px; }
.h-rv-body { display: grid; gap: 8px; padding: 16px 18px 20px; align-content: start; }
.h-rv-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--dim); margin: 0; }
.h-rv-meta span:first-child { color: var(--turq-2); font-weight: 700; }
.h-rv h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.h-rv-route { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gold-2); margin: 0; }
.h-rv-route .i { width: 16px; height: 16px; flex: none; }
.h-rv blockquote { margin: 0; }
.h-rv blockquote p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.h-rev-cta { margin-top: 22px; }
.h-rv.is-text { background: linear-gradient(160deg, rgba(20, 84, 64, .35), #09130f 60%); }
.h-rv.is-text .h-rv-body { padding-top: 26px; height: 100%; }
.h-rv.is-text .h-rv-body::before { content: "\201C";  /* the escape, not the character: a heredoc once turned it into U+0081 + C */ font-family: var(--serif); font-size: 84px; line-height: .6; color: var(--turq); opacity: .55; }
.h-rv.is-text blockquote p { font-family: var(--serif); font-size: 20px; line-height: 1.45; color: var(--text); }

/* ---------- guides: a magazine spread, one lead story and a list ---------- */
.h-mag { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; }
.h-story { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; padding: 28px; border-radius: 26px; overflow: hidden; isolation: isolate; text-decoration: none; }
.h-story img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.h-story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(5, 9, 8, .92)); }
.h-story:hover img { transform: scale(1.04); }
.h-story h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; line-height: 1.1; }
.h-story p { color: #d3e2db; margin-top: 10px; max-width: 34em; }
.h-story-k, .h-list-k { color: var(--turq-2); font-size: 13.5px; font-weight: 700; }
.h-list { display: grid; gap: 4px; align-content: start; }
.h-list a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px; border-radius: 18px; text-decoration: none; transition: background-color .2s; }
.h-list a:hover { background: rgba(255, 255, 255, .04); }
.h-list img { width: 112px; height: 84px; border-radius: 12px; object-fit: cover; }
.h-list b { display: block; font-size: 16.5px; line-height: 1.3; }
.h-list small { display: block; color: var(--dim); font-size: 13.5px; margin-top: 4px; }

/* ---------- FAQ: answers visible in the HTML ---------- */
.h-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.h-faq-side { position: sticky; top: 100px; }
.h-faq-side p { color: var(--muted); margin-top: 14px; }
.h-faq-side .btn { margin-top: 22px; }
.h-faq .h-acc { border-color: var(--line-2); }
.h-faq .h-acc details { border-color: var(--line-2); }
.h-faq .h-acc summary::after { border-color: var(--line-2); }
.h-faq .h-acc-body p { color: var(--muted); }

/* ---------- the editorial guide: columns, a table, links ---------- */
.h-ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; }
.h-ed article h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.h-ed article p { color: var(--muted); font-size: 15.5px; }
.h-ed article p + p { margin-top: 10px; }
.h-ed a { color: var(--turq-2); }
.h-dir { width: 100%; border-collapse: collapse; margin-top: clamp(32px, 4vw, 48px); font-size: 15px; }
.h-dir caption { text-align: left; font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 14px; }
.h-dir th, .h-dir td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.h-dir thead th { color: var(--dim); font-size: 13px; }
.h-dir td { color: var(--muted); }
.h-dir td a, .h-dir th a { color: var(--text); text-decoration: none; font-weight: 700; }
.h-dir td a:hover, .h-dir th a:hover { color: var(--turq-2); }
.h-dir-wrap { overflow-x: auto; }

/* ---------- final call ---------- */
.h-final { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 5vw, 64px); background: linear-gradient(120deg, #0f3a2d, #0a1d17 55%, #1a1208); border: 1px solid rgba(243, 146, 33, .25); isolation: isolate; }
.h-final::before { content: ""; position: absolute; inset: auto -10% -60% auto; z-index: -1; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(243, 146, 33, .35), transparent); }
.h-final.is-shine::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .08) 45%, transparent 60%); animation: h-shine 1.6s var(--ease) 1 forwards; }
@keyframes h-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.h-final h2 { max-width: 16ch; }
.h-final > p { color: var(--muted); max-width: 36em; margin-top: 14px; }
.h-final-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.h-final-acts button { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; padding: 16px; min-height: 76px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(5, 9, 8, .4);
  transition: border-color .2s, transform .25s var(--ease), background-color .2s; }
.h-final-acts button:hover { border-color: var(--gold); transform: translateY(-2px); }
.h-final-acts .h-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(243, 146, 33, .14); color: var(--gold-2); }
.h-final-acts b { display: block; }
.h-final-acts small { display: block; color: var(--dim); font-size: 13.5px; }

/* the home footer has more columns than the parrot page's */
.h-footer .footer-grid { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); }
.h-footer .footer-grid > div > a { display: block; }

/* ---------- reveal: content is there without JS; with JS it rises once as it comes into view ---------- */
.js .h-rise { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .h-rise.is-in { opacity: 1; transform: none; }
@media print { .js .h-rise { opacity: 1; transform: none; transition: none; } }  /* a printout never scrolls: nothing may stay hidden */

/* lab: the A/B switch of the first screen */
.h-ab { position: fixed; z-index: 60; left: 18px; bottom: calc(18px + var(--cookie-h, 0px)); transition: bottom .3s, opacity .3s, transform .3s, visibility .3s;  /* left: the compare dock and the cookie notice keep the centre */ display: flex; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: rgba(10, 22, 18, .95); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); }
.ab-away .h-ab { opacity: 0; visibility: hidden; transform: translateY(10px); }
.h-ab-n { font-style: normal; }
.h-ab a { padding: 9px 16px; border-radius: var(--r-pill); text-decoration: none; font-size: 14px; font-weight: 700; color: var(--muted); }
.h-ab a[aria-current="page"] { background: var(--turq); color: #04110e; }
.h-ab span { align-self: center; padding: 0 8px 0 10px; font-size: 13px; color: var(--dim); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .h-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .h-gal { height: 520px; min-height: 0; }
  .h-facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .h-tile, .h-tile.is-wide { grid-column: span 2; }
  .h-mosaic .h-tile.h-tile-ask { grid-column: span 2; }
  .h-tile.is-xl { grid-column: span 4; grid-row: auto; min-height: 420px; }
  .h-match-grid, .h-docs, .h-route, .h-why, .h-faq, .h-proof { grid-template-columns: minmax(0, 1fr); }
  .h-match-side, .h-faq-side { position: static; }
  .h-match-pic { aspect-ratio: 16 / 7; }
  .h-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .h-steps-line, .h-step::before { display: none; }
  .h-step { padding-top: 0; --d: 0s; }
  .h-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .h-step { grid-column: span 2; }
  .h-step:nth-child(n+5) { grid-column: span 3; }
  .h-step:nth-child(n+5) .h-step-pic.is-lux { aspect-ratio: 16 / 10; }  /* the two wide cards: the picture stays the size of its neighbours' */
  .h-ed { grid-template-columns: 1fr 1fr; }
  .h-mag { grid-template-columns: 1fr; }
  .h-story { min-height: 420px; }
  .h-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .h-hero-a .wrap { grid-template-columns: minmax(0, 1fr); }
  .h-worlds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h-why-pic { aspect-ratio: 16 / 10; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .h-head { grid-template-columns: minmax(0, 1fr); }
  .h-hero { padding-top: 14px; }
  .h-hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .h-lead { margin-top: 14px; font-size: 16.5px; }
  .h-cta { margin-top: 20px; }
  .h-cta .btn { flex: 1 1 100%; }
  .h-search { margin-top: 18px; }
  /* the gallery: a swipe strip of portraits, the open one is just the one in view */
  .h-gal { height: auto; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .h-gal::-webkit-scrollbar { display: none; }
  .h-gp { aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .h-gp img { filter: none; transform: none; }
  .h-gp-name { display: none; }
  .h-gp-body { opacity: 1; transform: none; padding: 18px; min-width: 0; }
  .h-gp-body b { font-size: 26px; }
  .h-gp-body span { font-size: 14.5px; }
  .h-gp-ill { opacity: 1; }
  .h-gal-hint { text-align: left; }
  .h-facts ul { grid-template-columns: 1fr; gap: 14px; }
  .h-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 10px; }
  .h-tile, .h-tile.is-wide { grid-column: span 1; min-height: 220px; padding: 14px; }
  .h-mosaic .h-tile.h-tile-ask { grid-column: 1 / -1; min-height: 150px; }
  .h-tile.is-xl { grid-column: span 2; min-height: 340px; padding: 20px; }
  .h-tile h3 { font-size: 20px; }
  .h-tile p { display: none; }
  .h-tile.is-xl p { display: block; }
  .h-tile-meta { font-size: 12.5px; gap: 2px 10px; }
  .h-tile-go { width: 38px; height: 38px; top: 10px; right: 10px; }
  .h-tile-note, .h-tile-ill { top: 10px; left: 10px; right: 54px; width: max-content; max-width: calc(100% - 64px); font-size: 11px; line-height: 1.3; }
  .h-dir th:nth-child(4), .h-dir td:nth-child(4) { display: none; }
  .h-dir td.nw { white-space: normal; }
  .h-rail, .h-revs { grid-auto-columns: 80%; }
  .h-rail-nav button { display: none; }
  .h-q { padding: 18px; border-radius: 22px; }
  .h-q-opts { grid-template-columns: 1fr; }
  .h-match-pic { aspect-ratio: 16 / 9; }
  .h-res-card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .h-res-card img { width: 84px; height: 84px; }
  .h-res-acts .btn { flex: 1 1 100%; }
  .h-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .h-step, .h-step:nth-child(n+5) { grid-column: auto; display: flex; flex-direction: column; padding: 0; }
  .h-step-pic, .h-step:nth-child(n+5) .h-step-pic { aspect-ratio: 16 / 10 !important; height: auto; min-height: 0; border-radius: 18px 18px 0 0; border-right: 1px solid var(--line); border-bottom: 0; }
  .h-step-pic.is-lux .h-step-n { bottom: 8px; left: 12px; font-size: 36px; }
  .h-step-tx, .h-step:nth-child(n+5) .h-step-tx { padding: 14px 14px 12px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; }
  .h-step h3 { font-size: 17px; }
  .h-step p { font-size: 14.5px; }
  .h-why-list { grid-template-columns: 1fr; }
  .h-ed { grid-template-columns: 1fr; }
  .h-list a { grid-template-columns: 88px minmax(0, 1fr); }
  .h-list img { width: 88px; height: 66px; }
  .h-story { min-height: 360px; padding: 20px; }
  .h-final { border-radius: 24px; }
  .h-final-acts { grid-template-columns: 1fr; }
  .h-footer .footer-grid { grid-template-columns: 1fr; }
  .h-hero-a { min-height: calc(100svh - 64px); }
  .h-hero-a::before { background: linear-gradient(0deg, rgba(5, 9, 8, .96) 0%, rgba(5, 9, 8, .55) 55%, rgba(5, 9, 8, .15) 100%); }
  .h-worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-worlds button { flex-wrap: wrap; row-gap: 0; }
  .h-worlds button { font-size: 18px; padding: 10px 2px; min-height: 44px; }
  .h-ab { bottom: auto; top: 76px; }
  .h-ab .h-ab-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  /* letters only on the phone, the name stays for screen readers */
  .h-dir { font-size: 14px; }
}

/* the narrowest phones: one world per row, the long names never leave the screen */
@media (max-width: 400px) {
  .h-worlds { grid-template-columns: minmax(0, 1fr); }
  .h-worlds button { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .h-gp, .h-gp img, .h-tile, .h-tile img, .h-scene img, .h-match-pic img, .js .h-rise { transition: none !important; }
  .js .h-rise { opacity: 1; transform: none; }
  .h-mp-flow, .h-mp-pulse, .h-steps-line i, .h-c-pic img, .h-c-light { animation: none !important; }
  .h-step, .h-step * { transition: none !important; }
}

/* ======================================================================== HOME PREMIUM PRO MAX ======== */

/* ---------- hero C: the illustration is the scene, the text is HTML over its empty half ---------- */
.h-hero-c { position: relative; z-index: 2; isolation: isolate; overflow-x: clip; display: grid; align-items: center; min-height: min(880px, calc(100svh - 64px)); background: #04100d; }
.h-c-pic { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.h-c-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 42%; transform-origin: 64% 40%; }
.h-hero-c.is-live .h-c-pic img { animation: h-breathe 13s ease-in-out infinite alternate; }
.h-hero-c.is-live .h-c-light { animation: h-light 9s ease-in-out infinite alternate; }
.h-hero-c.is-paused .h-c-pic img, .h-hero-c.is-paused .h-c-light { animation-play-state: paused; }
@keyframes h-breathe { from { transform: scale(1); } to { transform: scale(1.035) translateX(-.5%); } }
@keyframes h-light { to { opacity: .3; } }
.h-c-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 13, 10, .95) 0%, rgba(3, 13, 10, .82) 30%, rgba(3, 13, 10, .25) 52%, transparent 66%), linear-gradient(0deg, var(--ink) 0%, rgba(5, 9, 8, 0) 18%); }
.h-c-light { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 46% 38% at 80% 4%, rgba(255, 215, 140, .16), transparent 70%); }
/* Interactive Wildlife Hero: the picture, light, leaves and dust slide by different amounts with the pointer (--px/--py in -1..1, set by home.js).
   `translate` and `scale` are separate properties, so they never fight the breathing `transform`; nothing here changes layout. */
.h-c-pic img { scale: 1.05; translate: calc(var(--px, 0) * -13px) calc(var(--py, 0) * -8px); }
.h-c-light { inset: -10%; translate: calc(var(--px, 0) * 46px) calc(var(--py, 0) * 28px); }
.h-c-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.h-c-leaf { position: absolute; display: block; width: clamp(70px, 9vw, 150px); opacity: .55; filter: blur(.4px); translate: calc(var(--px, 0) * 26px) calc(var(--py, 0) * 16px); transform-origin: 50% 100%; }
.h-c-leaf svg { display: block; width: 100%; height: auto; }
.h-c-leaf.tr1 { top: -4%; right: 3%; rotate: 158deg; }
.h-c-leaf.tr2 { top: -7%; right: 12%; rotate: 190deg; width: clamp(54px, 6vw, 100px); opacity: .4; translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 9px); }
.h-c-leaf.br1 { bottom: -9%; right: 1%; rotate: -22deg; }
.h-c-leaf.br2 { bottom: -6%; right: 11%; rotate: 18deg; width: clamp(54px, 6vw, 100px); opacity: .4; translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 9px); }
.h-c-dust { position: absolute; inset: 0; translate: calc(var(--px, 0) * 18px) calc(var(--py, 0) * 11px); }
.h-c-dust i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 233, 180, .9), rgba(255, 233, 180, 0)); opacity: 0; translate: calc(var(--px, 0) * var(--z) * 6px) calc(var(--py, 0) * var(--z) * 4px); }
.h-hero-c.is-live .h-c-dust i { animation: h-dust var(--t) ease-in-out var(--dl) infinite; }
.h-hero-c.is-live .h-c-leaf { animation: h-sway 7s ease-in-out infinite alternate; }
.h-hero-c.is-live .h-c-leaf.tr2, .h-hero-c.is-live .h-c-leaf.br2 { animation-duration: 9s; animation-direction: alternate-reverse; }
.h-hero-c.is-paused .h-c-dust i, .h-hero-c.is-paused .h-c-leaf { animation-play-state: paused; }
@keyframes h-dust { 0% { opacity: 0; transform: translateY(14px); } 30%, 70% { opacity: .75; } 100% { opacity: 0; transform: translateY(-26px); } }
@keyframes h-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@media (max-width: 760px) { .h-c-leaf { width: 64px; opacity: .45; } .h-c-leaf.tr2, .h-c-leaf.br2 { display: none; } .h-c-dust i:nth-child(n+9) { display: none; } }
@media (prefers-reduced-motion: reduce) { .h-c-dust, .h-c-leaf { display: none; } .h-c-pic img, .h-c-light { translate: none; } }
.h-c-grid { padding-block: clamp(36px, 5vw, 80px) clamp(64px, 7vw, 104px); }
.h-hero-c .h-hero-copy { max-width: min(560px, 44vw); }
.h-hero-c h1 { font-size: clamp(38px, 3.9vw, 64px); line-height: 1.03; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.h-hero-c h1 .h-h1-2 { display: block; color: var(--turq-2); font-style: italic; font-weight: 500; }
.h-hero-c .h-lead { color: #c3d4cc; }
.h-hero-c .h-search { max-width: 100%; }
.h-c-note { position: absolute; right: var(--gut); bottom: 16px; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 12px; margin: 0; font-size: 12.5px; color: rgba(238, 245, 241, .66); }
.h-c-pause { min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(5, 9, 8, .55); color: var(--muted); font: 600 12.5px var(--sans); cursor: pointer; }
.h-c-pause:hover { color: var(--text); border-color: var(--turq); }

/* ---------- the trust strip under the hero: glass ---------- */
.h-facts { background: linear-gradient(90deg, rgba(20, 84, 64, .22), rgba(255, 255, 255, .015) 70%); }

/* ---------- Catalog Navigator ---------- */
.h-nav { padding-bottom: clamp(40px, 5vw, 72px); }
.h-nv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.h-nv-chip { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025); text-decoration: none; font-weight: 700; font-size: 15px; transition: border-color .2s, background-color .2s; }
.h-nv-chip small { color: var(--gold-2); font-weight: 800; font-size: 13px; }
.h-nv-chip:hover { border-color: var(--turq); background: var(--turq-soft); }
.h-nv-tool { display: grid; grid-template-columns: minmax(0, 360px) 230px minmax(0, 1fr); gap: 14px 20px; align-items: center; margin-top: 22px; }
.h-nv-scope { position: relative; }
.h-nv-scope select { width: 100%; min-height: 52px; padding: 0 44px 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(5, 9, 8, .6); color: var(--text); font: 600 15px var(--sans); appearance: none; cursor: pointer; }
.h-nv-scope select:focus-visible { outline: 2px solid var(--turq); outline-offset: 2px; }
.h-nv-scope option { background: #0b1714; color: var(--text); }
.h-nv-scope .i { position: absolute; right: 18px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%) rotate(90deg); color: var(--turq-2); pointer-events: none; }
.h-nv-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; }
.h-nv-more { margin-top: 16px; }
.h-nv-to { font-weight: 700; font-size: 15px; color: var(--turq-2); text-underline-offset: 4px; }
.h-nv-cols { columns: 4 220px; column-gap: 28px; margin-top: 8px; }
.h-nv-gr { margin-top: 10px; }
.h-nv-gh { margin: 0; padding: 8px 0 2px; font: 600 17px/1.3 var(--serif); color: var(--gold-2); break-after: avoid; }
.h-nv-gh small { font: 700 12px var(--sans); color: var(--dim); margin-left: 4px; }
.h-nv-res .h-nv-cols ul { columns: auto; margin: 0; }
.h-nv-res ul.h-nv-flat { columns: 4 210px; }
.h-nv-box { position: relative; }
.h-nv-box .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--turq-2); pointer-events: none; }
.h-nv-box input { width: 100%; min-height: 52px; padding: 0 16px 0 48px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(5, 9, 8, .6); color: var(--text); font: 500 16px var(--sans); }
.h-nv-box input:focus { outline: 2px solid var(--turq); outline-offset: 2px; border-color: transparent; }
.h-nv-abc { display: flex; flex-wrap: wrap; gap: 4px; }
.h-nv-abc button { min-width: 34px; height: 36px; padding: 0 6px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 700 14px var(--sans); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.h-nv-abc button:hover:not(:disabled) { border-color: var(--turq); color: var(--text); }
.h-nv-abc button[aria-pressed="true"] { background: var(--turq); border-color: var(--turq); color: #04110e; }
.h-nv-abc button:disabled { opacity: .3; cursor: default; }
.h-nv-res { margin-top: 18px; padding: 18px 20px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025); }
.h-nv-sum { margin: 0; color: var(--muted); font-size: 15px; }
.h-nv-sum b { color: var(--text); }
.h-nv-res ul { list-style: none; margin: 12px 0 0; padding: 0; columns: 4 210px; column-gap: 28px; }
.h-nv-res li { break-inside: avoid; }
.h-nv-res li a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.h-nv-res li a:hover span { color: var(--turq-2); }
.h-nv-res li small { color: var(--dim); font-size: 12px; white-space: nowrap; }
.h-nv-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.h-nv-empty p { margin: 0; color: var(--muted); max-width: 46em; }
.h-nv-empty b { color: var(--text); }
.h-nv-groups { columns: 3 260px; column-gap: 40px; margin-top: 32px; }
.h-nv-grp { break-inside: avoid; margin-bottom: 26px; }
.h-nv-grp h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.h-nv-grp h3 a { text-decoration: none; }
.h-nv-grp h3 a:hover { color: var(--turq-2); }
.h-nv-grp ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.h-nv-grp li a { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 15px; }
.h-nv-grp li a:hover { color: var(--text); }

/* ---------- carousels: one look, one behaviour ---------- */
.h-track { position: relative; scroll-padding-inline: var(--gut); overscroll-behavior-x: contain; }
.h-track:focus-visible { outline: 2px solid var(--turq); outline-offset: 4px; border-radius: 12px; }
@media (hover: hover) and (pointer: fine) { .h-track { cursor: grab; } }
.h-track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.h-track.is-drag a, .h-track.is-drag button { pointer-events: none; }
.h-rail-nav { align-items: center; margin-top: 16px; }
.h-count { min-width: 9ch; margin-right: 6px; color: var(--muted); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.h-revs { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 25vw, 330px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--gut) 18px; margin-inline: calc(-1 * var(--gut)); }
.h-revs::-webkit-scrollbar { display: none; }
.h-rail { grid-auto-columns: clamp(272px, 24vw, 320px); }
.h-src-note { margin-top: 14px; font-size: 13.5px; color: var(--dim); max-width: 60em; }

/* ---------- cards PRO: latin name, three facts from the species page, an honest status ---------- */
.h-sp-ph { aspect-ratio: 4 / 4.2; }
.h-sp-body { gap: 4px; }
.h-sp-lat { margin: 0; font-style: italic; color: var(--dim); font-size: 14px; }
.h-sp-facts { display: grid; margin: 10px 0 2px; border-top: 1px solid var(--line); }
.h-sp-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.h-sp-facts dt { font-size: 13px; line-height: 1.3; color: var(--dim); }
.h-sp-facts dd { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.3; text-align: right; }
.h-sp-status { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--dim); }
.h-sp-status b { display: flex; align-items: center; gap: 7px; color: var(--turq-2); font-size: 13.5px; }
.h-sp-status b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 4px rgba(66, 196, 193, .15); }

/* ---------- quick view: photo | facts | buy card, the direction orientation as a strip across; then two, then one column ----------
   premium.css (shared with /popugai) makes #peek-body a two-column grid: here the body is a plain box and .qv owns the grid */
.h-qv { width: min(1220px, 100% - 24px); }
.h-qv #peek-body { display: block; }
.qv { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.1fr) minmax(0, .82fr); grid-template-rows: 1fr auto; min-height: min(620px, 88vh); }
.qv-ph { position: relative; overflow: hidden; background: #06100d; min-height: 360px; grid-row: 1; }
.qv-bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(26px) brightness(.45) saturate(1.2); }
.qv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.qv-nav { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: var(--r-pill); background: rgba(5, 9, 8, .72); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.qv-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--text); cursor: pointer; }
.qv-nav button:hover { background: var(--turq-soft); }
.qv-nav button:first-child .i { transform: rotate(180deg); }
.qv-info { display: grid; align-content: start; gap: 12px; padding: 44px 34px 28px; min-width: 0; }
.qv-info h2 { font-size: clamp(30px, 2.7vw, 42px); line-height: 1.06; outline: none; }
.qv-lat { margin: -4px 0 0; font-style: italic; color: var(--dim); font-size: 16px; }
.qv-desc { color: var(--muted); font-size: 15.5px; }
.qv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 0; }
.qv-facts div { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); min-width: 0; }
.qv-facts dt { font-size: 13px; color: var(--dim); }
.qv-facts dd { margin: 4px 0 0; font-weight: 700; font-size: 17px; line-height: 1.25; }
.qv-src { font-size: 13px; color: var(--dim); margin: 2px 0 0; }
.qv-act { display: grid; align-content: start; gap: 14px; padding: 76px 26px 28px 0; min-width: 0; }  /* below the close button */
.qv-buy { display: grid; gap: 12px; padding: 22px 20px 20px; border-radius: 22px; border: 1px solid rgba(243, 146, 33, .28); background: linear-gradient(180deg, rgba(243, 146, 33, .07), rgba(255, 255, 255, .02)); }
.qv-act .btn { width: 100%; justify-content: center; }
.qv-price { margin: 0; font-size: 30px; font-weight: 800; color: var(--gold-2); line-height: 1.1; }
.qv-price small { display: block; font-size: 13px; color: var(--dim); font-weight: 600; margin-bottom: 4px; }
.qv-status { margin: 0 0 4px; font-size: 13.5px; color: var(--dim); }
.qv-status b { display: flex; align-items: center; gap: 8px; color: var(--turq-2); }
.qv-status b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 4px rgba(66, 196, 193, .15); }
.qv-page { min-height: 46px; }
.qv-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qv-mini button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 700 14px var(--sans); cursor: pointer; }
.qv-mini button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a0e02; }
.qv-mini .i { width: 18px; height: 18px; }
.qv-note { font-size: 13px; color: var(--dim); margin: 0; }
.qv-fit { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 4fr); align-items: center; gap: 20px; padding: 18px 26px; border-top: 1px solid var(--line); background: rgba(20, 84, 64, .14); }
.qv-fit-h { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.35; }
.qv-fit-h small { display: block; margin-top: 4px; font-weight: 500; font-size: 12.5px; color: var(--dim); }
.qv-fit-h a { color: var(--turq-2); }
.qv-fit dl { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.qv-fit dl div { display: grid; align-content: start; gap: 6px; padding: 2px 16px; border-left: 1px solid var(--line); font-size: 14px; min-width: 0; }
.qv-fit dt { color: var(--dim); font-size: 12.5px; }
.qv-fit dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 600; }

/* ---------- the story lightbox ---------- */
.lb { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: min(560px, 84vh); }
.lb-ph { margin: 0; display: grid; place-items: center; background: #050c0a; padding: 16px; }
.lb-ph img { max-height: 76vh; width: auto; object-fit: contain; border-radius: 12px; }
.lb-info { display: grid; align-content: start; gap: 12px; padding: 44px 30px 28px; }
.lb-info h2 { font-size: clamp(28px, 2.4vw, 36px); outline: none; }
.lb-info blockquote { margin: 0; }
.lb-info blockquote p { font-family: var(--serif); font-size: 20px; line-height: 1.45; }
.lb-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--muted); font-weight: 700; }

/* ---------- PRO MAX: tablet ---------- */
@media (max-width: 1100px) {
  .h-hero-c { display: block; min-height: 0; }
  .h-c-pic { position: relative; inset: auto; display: block; aspect-ratio: 16 / 9; }
  .h-c-shade { background: linear-gradient(0deg, var(--ink) 0%, rgba(5, 9, 8, 0) 34%); bottom: auto; height: calc(100vw * 9 / 16 + 2px); }
  .h-c-light { height: calc(100vw * 9 / 16); }
  .h-c-grid { padding-block: 8px 64px; margin-top: -24px; }
  .h-hero-c .h-hero-copy { max-width: 680px; }
  .h-c-note { top: calc(100vw * 9 / 16 - 44px); bottom: auto; }
  .h-nv-tool { grid-template-columns: minmax(0, 1fr) minmax(0, 230px); }
  .h-nv-abc { grid-column: 1 / -1; }
  .qv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
  .qv-act { grid-column: 1 / -1; padding: 0 26px 24px; }
  .qv-buy { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .qv-fit { grid-template-columns: minmax(0, 1fr); }
  .qv-fit dl { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .h-steps-line { display: none; }
}

/* ---------- PRO MAX: phone ---------- */
@media (max-width: 760px) {
  .h-c-pic { aspect-ratio: 4 / 3; }
  .h-c-pic img { object-position: 50% 30%; }
  .h-c-shade { height: calc(100vw * .75 + 2px); }
  .h-c-light { display: none; }
  .h-c-note { top: calc(100vw * .75 - 46px); right: 12px; left: 12px; flex-wrap: nowrap; justify-content: space-between; font-size: 11.5px; }
  .h-c-more { display: none; }
  .h-ab span { display: none; }
  .h-ab a { padding: 7px 10px; font-size: 12.5px; }
  .h-c-grid { margin-top: -12px; padding-bottom: 48px; }
  .h-hero-c h1 { font-size: clamp(32px, 9vw, 44px); }
  .h-nv-groups { columns: 2 150px; column-gap: 18px; }
  .h-nv-grp h3 { font-size: 18px; }
  .h-nv-grp li a { font-size: 14px; }
  .h-nv-res ul, .h-nv-res ul.h-nv-flat { columns: 1; }
  .h-nv-cols { columns: 1; }
  .h-nv-tool { grid-template-columns: minmax(0, 1fr); }
  /* one scrolling row of directions instead of five rows of chips */
  .h-nv-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
  .h-nv-chips::-webkit-scrollbar { display: none; }
  .h-nv-chip { flex: none; scroll-snap-align: start; }
  .h-nv-abc button { min-width: 36px; height: 40px; }
  .h-mp { padding: 10px 8px 12px 26px; border-radius: 20px; }  /* room on the left for the Moscow label */
  .h-mp-l { font-size: 11px; padding: 2px 7px; }
  .h-mp-l.is-r { transform: translate(9px, -50%); }
  .h-mp-l.is-l { transform: translate(calc(-100% - 9px), -50%); }
  .h-mp-l.is-hub { transform: translate(calc(-100% - 9px), -50%); }  /* on a phone the label below Moscow would sit on «Юг» */
  .h-mp-full { display: none; }
  .h-mp-short { display: inline; }
  .qv { grid-template-columns: minmax(0, 1fr); }
  .qv-ph { aspect-ratio: 4 / 3; min-height: 0; }
  .qv-info { padding: 22px 20px 6px; }
  .qv-act { padding: 14px 20px 20px; }
  .qv-buy { grid-template-columns: minmax(0, 1fr); }
  .qv-fit { padding: 16px 20px 22px; gap: 12px; }
  .qv-fit dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qv-fit dl div { padding: 4px 10px; }
  .lb { grid-template-columns: minmax(0, 1fr); }
  .lb-ph img { max-height: 52vh; }
  .lb-info { padding: 20px 20px 24px; }
}
@media (max-width: 760px) {
  .h-mp-l.is-minor { display: none; }  /* Yaroslavl sits next to Moscow: on a phone its dot stays, the label would cover St Petersburg */
}

/* ---------- PRO MAX: the strips show whole cards (2, 3 or 4 by the content width) and a peek of the next one in the margin ---------- */
.h-rail-wrap { container-type: inline-size; }
@media (min-width: 761px) {
  .h-rail, .h-revs { grid-auto-columns: calc((100cqi - 16px) / 2); }
}
@container (min-width: 900px) { .h-rail, .h-revs { grid-auto-columns: calc((100cqi - 2 * 16px) / 3); } }
@container (min-width: 1180px) { .h-rail, .h-revs { grid-auto-columns: calc((100cqi - 3 * 16px) / 4); } }
@media (max-width: 760px) {
  .h-ab { left: 50%; transform: translateX(-50%); }  /* between the macaw and the chameleon, never over a head */
  .ab-away .h-ab { transform: translate(-50%, -10px); }
}
