/* ============================================================
   DAK INVERTS — storefront styles
   Plain CSS, no preprocessor.
   ============================================================ */

/* Figtree, self-hosted (OFL — see assets/fonts/OFL.txt). Self-hosted rather
   than loaded from Google so the site makes no third-party request, which is
   what privacy.html §5/§6 actually claim. One variable file covers both
   weights we use. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ------------------------------------------------------------------
     Black, terrarium-dark ground — Drew's call. The electric blue-violet
     is pulled from Poecilotheria metallica (the "Gooty sapphire"), the
     signature animal of the hero photo, not a generic accent. Every alpha
     tint resolves through an *-rgb triplet — keep each triplet in sync
     with its hex counterpart.

     Contrast, checked in both directions (WCAG AA, 4.5:1 body text):
       --bg #08090c vs --ink #f1f0ec ................ 17.46:1
       --bg vs --ink-dim #b7bcc7 ..................... 10.46:1
       --bg vs --ink-mute #7d8494 ..................... 5.31:1
       --bg vs --accent-bright #7f9bff (accent text) ... 7.62:1
       --accent #3555d8 vs --on-accent white .......... 5.74:1  (button ground)
     --accent itself is only ever a background/border — as text on --bg it
     is 3.26:1 and fails small text, so links/eyebrows use --accent-bright.
     --brand is the raw logo blue (#4090d8), decorative only, from the
     logo file itself — unchanged from the light theme.
     ------------------------------------------------------------------ */
  --bg: #08090c;
  --bg-rgb: 8, 9, 12;
  --bg-elev: #0e1015;
  --bg-card: #15171d;

  --ink: #f1f0ec;
  --ink-rgb: 241, 240, 236;
  --ink-dim: #b7bcc7;
  --ink-mute: #7d8494;

  --accent: #3555d8;
  --accent-rgb: 53, 85, 216;
  --accent-hot: #4766ea;
  --accent-hot-rgb: 71, 102, 234;
  --accent-deep: #22367d;
  --accent-deep-rgb: 34, 54, 125;
  /* Brighter stop, safe as small text/links (7.62:1) — --accent itself isn't. */
  --accent-bright: #7f9bff;
  --accent-bright-rgb: 127, 155, 255;
  /* Second shimmer stop for the iridescent accent-word gradient. */
  --violet: #9b7bff;
  --violet-rgb: 155, 123, 255;

  /* Raw logo blue — tints, chips, decorative fills. Never text. */
  --brand: #4090d8;
  --brand-rgb: 64, 144, 216;

  /* Text/icon color that sits ON an --accent ground. */
  --on-accent: #ffffff;

  --ok: #34c281;
  --ok-rgb: 52, 194, 129;
  --warn: #e6ab48;
  --warn-rgb: 230, 171, 72;

  --stone: #1c1f27;
  --rule: rgba(var(--ink-rgb), 0.16);
  --rule-soft: rgba(var(--ink-rgb), 0.09);

  --font-display: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;

  --container: 1200px;
  --section-y: clamp(56px, 7vw, 96px);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -18px rgba(0, 0, 0, 0.7);
  --shadow-card-hover: 0 2px 6px rgba(0, 0, 0, 0.55), 0 22px 48px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(var(--accent-rgb), 0.3), 0 0 44px -10px rgba(var(--accent-rgb), 0.45);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
}
p {
  margin: 0;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 18px;
  z-index: 999;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- container ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ---------- focus ---------- */
:focus-visible {
  outline: 3px solid var(--accent-hot);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   ANNOUNCEMENT BAR
   Lives inside .site-header (above .header-inner) rather than as a
   separate fixed element, so it's just part of what script.js already
   measures into --header-h for the mobile dropdown offset — no second
   height calculation to keep in sync. Every section that pads itself down
   to clear the fixed header (.hero-home, .page-hero, .page-hero-tight,
   .animal-section) reads that same --header-h, so this bar changing height
   (copy edits, wrapping to two lines on narrow screens) never requires
   touching those paddings by hand.
   ============================================================ */
.announce-bar {
  background: var(--warn);
}
.announce-bar-inner {
  position: relative;
  padding: 9px 40px;
}
.announce-bar p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--bg);
}
.announce-bar .dot {
  opacity: 0.55;
}
@media (max-width: 640px) {
  .announce-bar .dot {
    display: none;
  }
}
.announce-close {
  position: absolute;
  top: 9px;
  right: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--bg);
  font-size: 20px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 150ms ease, background-color 150ms ease;
}
.announce-close:hover,
.announce-close:focus-visible {
  opacity: 1;
  background: rgba(var(--bg-rgb), 0.14);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  padding: 18px 0;
  transition: border-color 280ms ease, padding 280ms ease;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--bg-rgb), 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule-soft);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
/* Text wordmark. The template ships no logo file on purpose — a client
   build either restyles this or swaps it for an <img>. */
.brand-mark {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.primary-nav a {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-dim);
  position: relative;
  padding: 6px 0;
  transition: color 200ms ease;
}
.primary-nav a:hover {
  color: var(--ink);
}
.primary-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 280ms ease;
}
.primary-nav a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform 280ms ease, opacity 200ms ease, top 280ms ease;
}
.nav-toggle span:nth-child(1) {
  top: 14px;
}
.nav-toggle span:nth-child(2) {
  top: 21px;
}
.nav-toggle span:nth-child(3) {
  top: 28px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.005em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease,
    color 200ms ease, box-shadow 280ms ease;
  white-space: nowrap;
}
.btn-sm {
  padding: 12px 22px;
  font-size: 15px;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: 0 10px 28px -12px rgba(var(--accent-rgb), 0.75);
}
.btn-primary:hover {
  background: var(--accent-hot);
  color: var(--on-accent);
  border-color: var(--accent-hot);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -14px rgba(var(--accent-hot-rgb), 0.85);
}
.btn-ghost {
  border-color: var(--rule);
  background: rgba(var(--ink-rgb), 0.05);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--accent-bright);
  color: var(--ink);
  background: rgba(var(--accent-rgb), 0.16);
}
.btn-link {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--accent-bright);
  padding: 0;
  border: 0;
}
.btn-link:hover {
  color: var(--accent-hot);
}
.btn-icon svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero-inner {
  position: relative;
  max-width: 880px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-bright);
  flex: none;
}
.hero-title {
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
/* Iridescent shimmer — the one signature move, echoing the structural
   colour-shift on a Poecilotheria metallica carapace. Static gradient
   when motion is reduced; the keyframes only run under no-preference. */
.accent-word {
  font-weight: 800;
  position: relative;
  background: linear-gradient(
    100deg,
    var(--accent-bright) 0%,
    var(--violet) 35%,
    var(--accent-bright) 65%,
    var(--violet) 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--accent-bright);
  -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .accent-word {
    animation: iridesce 7s ease-in-out infinite alternate;
  }
}
@keyframes iridesce {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}
.hero-sub {
  max-width: 580px;
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  color: var(--ink-dim);
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-soft);
}
.hero-meta li {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.hero-meta span {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}


/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section-alt {
  background: var(--bg-elev);
  border-block: 1px solid var(--rule-soft);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  margin-bottom: 18px;
}
.section-head .section-lede {
  color: var(--ink-dim);
  font-size: 1.18rem;
}
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  text-align: left;
  max-width: none;
}

/* ============================================================
   FEATURED SPECIES GRID
   ============================================================ */
.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.species-card {
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}
.species-card {
  box-shadow: var(--shadow-card);
}
.species-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: var(--shadow-card-hover);
}
.species-media {
  position: relative;
}
.species-body {
  padding: 24px 24px 26px;
}
.species-body h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.species-sci {
  font-style: italic;
  color: var(--ink-mute);
  font-size: 14px;
  margin-bottom: 18px;
}
.species-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-bottom: 22px;
  padding-block: 16px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.species-meta li {
  font-size: 14px;
  color: var(--ink);
}
.species-meta span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(var(--bg-rgb), 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--rule-soft);
  color: var(--ink);
}
.tag-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 7px;
  vertical-align: middle;
}
.tag-limited::before {
  background: var(--warn);
}
.tag-sold::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-mute);
  margin-right: 7px;
  vertical-align: middle;
}
.tag-sold {
  color: var(--ink-dim);
}

/* ============================================================
   MINI GRID (Availability)
   ============================================================ */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 280ms ease, border-color 280ms ease;
}
.mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--rule);
}
.mini-card h4 {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 14px 14px 2px;
}
.mini-card p {
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0 14px 8px;
}
.mini-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
  font-style: normal;
  margin: 0 14px 16px;
}
.species-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-dim);
  margin: 8px 0 0;
}
.species-quantity {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 4px 0 0;
  letter-spacing: 0.02em;
}

.btn-link.is-disabled {
  color: var(--ink-dim);
  cursor: default;
  pointer-events: none;
}
.mini-quantity {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0 14px 14px;
  letter-spacing: 0.02em;
}
.section-foot {
  text-align: center;
  margin-top: 36px;
}
.species-no-photo {
  background: radial-gradient(ellipse at 40% 35%, var(--bg-card) 0%, var(--bg) 75%);
}
.inventory-empty {
  color: var(--ink-mute);
  font-size: 14px;
  text-align: center;
  padding: 40px 0;
  grid-column: 1 / -1;
}

/* ============================================================
   INQUIRY FORM
   ============================================================ */
.inquiry-form {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-card);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.form-field-wide {
  grid-column: 1 / -1;
}
.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.form-label .req {
  color: var(--accent-bright);
  margin-left: 2px;
}
.form-label .opt {
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 400;
  color: var(--ink-mute);
  margin-left: 4px;
}
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: rgba(var(--ink-rgb), 0.045);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  width: 100%;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: var(--ink-mute);
}
.inquiry-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%),
    linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.inquiry-form select option {
  background: var(--bg-elev);
  color: var(--ink);
}
.inquiry-form input:hover,
.inquiry-form select:hover,
.inquiry-form textarea:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(var(--ink-rgb), 0.075);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}
.inquiry-form input:invalid:not(:placeholder-shown) {
  border-color: rgba(var(--accent-hot-rgb), 0.55);
}
.inquiry-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
  line-height: 1.55;
}
.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
}
.form-note {
  color: var(--ink-mute);
  font-size: 13px;
  flex: 1 1 220px;
  line-height: 1.5;
}
.form-error {
  color: var(--accent-hot);
  font-size: 14px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(var(--accent-hot-rgb), 0.35);
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-hot-rgb), 0.08);
}
.inquiry-form button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 6vw, 72px) 24px;
  gap: 18px;
}
.form-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  font-size: 28px;
}
.form-success h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}
.form-success p {
  color: var(--ink-dim);
  max-width: 420px;
  font-size: 1rem;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .form-actions .btn {
    width: 100%;
  }
  .form-note {
    text-align: center;
  }
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--rule);
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(var(--accent-deep-rgb), 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(var(--accent-rgb), 0.2) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
}
.cta-inner {
  max-width: 760px;
}
.cta h2 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  margin: 8px 0 18px;
}
.cta-sub {
  color: var(--ink-dim);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 56px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--rule-soft);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand .brand-mark {
  height: 44px;
}
.footer-tag {
  font-size: 15px;
  color: var(--ink-mute);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-nav a {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-dim);
  transition: color 200ms ease;
}
.footer-nav a:hover {
  color: var(--accent-bright);
}
/* Bottom bar: copyright · legal links · studio credit */
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-soft);
}
.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-legal a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-decoration: underline;
  text-decoration-color: rgba(var(--ink-rgb), 0.25);
  text-underline-offset: 3px;
  transition: color 200ms ease;
}
.footer-legal a:hover {
  color: var(--ink);
}

/* King Sago credit backlink — styling only. The link itself must stay
   followed (no rel="nofollow"/"sponsored"/"noreferrer"); see
   backlink-badge/README.md. */
.ks-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  transition: color 200ms ease;
}
.ks-credit:hover,
.ks-credit:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ks-credit__arrow {
  font-size: 1.05em;
  transition: transform 200ms ease;
}
.ks-credit:hover .ks-credit__arrow {
  transform: translateX(2px);
}

/* ============================================================
   LEGAL / LONG-FORM PAGES  (terms.html)
   ============================================================ */
.legal {
  max-width: 760px;
  margin-inline: auto;
}

/* --- prose. Declared first; the meta strip and the table of contents below
   re-qualify with .legal so they outrank these on equal-specificity ties. --- */
.legal h2 {
  margin: 56px 0 18px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  scroll-margin-top: 100px;
}
.legal h2:first-of-type {
  margin-top: 0;
}
.legal p,
.legal li {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.75;
}
.legal p {
  margin: 0 0 18px;
}
/* the global reset strips ul markers — put them back for prose */
.legal ul {
  list-style: disc;
  margin: 0 0 18px;
  padding-left: 1.3em;
}
.legal li {
  margin-bottom: 12px;
}
.legal li::marker {
  color: var(--ink-mute);
}
.legal strong {
  color: var(--ink);
  font-weight: 600;
}
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(var(--ink-rgb), 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease;
}
.legal a:hover {
  text-decoration-color: var(--accent-hot);
}

/* --- effective date / business line --- */
.legal .legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --- table of contents --- */
.legal .legal-toc {
  margin-bottom: 56px;
  padding: 28px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
}
.legal .legal-toc-title {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.legal .legal-toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2;
  column-gap: 36px;
}
.legal .legal-toc li {
  margin-bottom: 8px;
  break-inside: avoid;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-mute);
}
.legal .legal-toc a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 200ms ease;
}
.legal .legal-toc a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }
  /* Grows to fill exactly what's left beside the hamburger button, so
     script.js can measure .brand's real available width and size the
     wordmark text to fill it — see fitBrandMark(). */
  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand-mark {
    overflow: hidden;
  }
  .primary-nav {
    position: fixed;
    inset: var(--header-h, 76px) 0 0 0;
    background: rgba(var(--bg-rgb), 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 320ms ease;
    border-top: 1px solid var(--rule-soft);
  }
  .primary-nav.is-open {
    transform: translateX(0);
  }
  .primary-nav a {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule-soft);
    font-size: 16px;
    letter-spacing: 0.14em;
  }
  .primary-nav a.btn {
    margin-top: 22px;
    border-bottom: 0;
    width: 100%;
  }
  .beginners-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .mini-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .brand-mark {
    height: 46px;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .hero-meta {
    gap: 20px;
  }
  .hero-meta li {
    font-size: 12px;
  }
  .hero-meta span {
    font-size: 20px;
  }
  .mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-head {
    margin-bottom: 48px;
  }
  .hero-scroll {
    display: none;
  }
  .cta-buttons {
    flex-direction: column;
  }
  .cta-buttons .btn {
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .ks-credit {
    margin-left: 0;
  }
  .legal-toc {
    padding: 24px 22px;
  }
  .legal-toc ol {
    columns: 1;
  }
}

/* ============================================================
   REAL PHOTOS
   ============================================================ */
.species-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---- In-card photo carousel ---- */
.gallery-track {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 320ms ease;
}
.gallery-slide.is-active {
  opacity: 1;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 220ms ease, background 220ms ease;
}
.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.72);
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.species-media:hover .gallery-nav,
.gallery-nav:focus-visible {
  opacity: 1;
}
.gallery-dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: background 220ms ease, transform 220ms ease;
}
.gallery-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}
/* Touch devices can't hover — keep controls visible */
@media (hover: none) {
  .gallery-nav { opacity: 1; }
}

.species-body-minimal {
  padding: 18px 22px;
}


/* ============================================================
   STORE PAGE
   ============================================================ */
.page-hero {
  padding: calc(var(--header-h, 130px) + clamp(16px, 8vw, 60px)) 0 clamp(56px, 8vw, 100px);
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), 0.22) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
}
.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  margin-bottom: 16px;
}
.page-hero p {
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.store-filters {
  padding: 0 0 22px;
}

.filter-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.filter-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.filter-search-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-mute);
  pointer-events: none;
}
.filter-search {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px 10px 38px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.filter-search::placeholder {
  color: var(--ink-mute);
}
.filter-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
.filter-sort {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dim);
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  padding: 10px 36px 10px 13px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%),
    linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: border-color 200ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-sort:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
.filter-sort option {
  background: var(--bg-elev);
  color: var(--ink);
}

.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--rule-soft);
  flex-shrink: 0;
}
.filter-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.filter-pill {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--rule-soft);
  color: var(--ink-dim);
  background: transparent;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}
.filter-pill:hover {
  border-color: var(--rule);
  color: var(--ink);
}
.filter-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

@media (max-width: 640px) {
  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-divider {
    display: none;
  }
  .filter-pills-row {
    gap: 10px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

.store-grid-section {
  padding-bottom: clamp(56px, 7vw, 96px);
}
.store-count {
  margin-top: 36px;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-align: center;
}
.store-empty {
  color: var(--ink-mute);
  font-size: 14px;
  text-align: center;
  padding: 60px 0;
  grid-column: 1 / -1;
}

.nav-active {
  color: var(--ink) !important;
}
.nav-active::after {
  width: 100% !important;
}

/* ============================================================
   CART BADGE (header)
   ============================================================ */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-link svg {
  width: 20px;
  height: 20px;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -11px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.cart-badge.is-empty {
  display: none;
}

/* ============================================================
   ADD TO CART BUTTON
   ============================================================ */
.add-to-cart-btn {
  font-family: var(--font-body);
}
.add-to-cart-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-section {
  padding-bottom: clamp(72px, 10vw, 140px);
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
}
.cart-row-unavailable {
  border-color: rgba(var(--accent-hot-rgb), 0.4);
}
.cart-row-media img,
.cart-row-no-photo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-elev);
}
.cart-row-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.cart-row-sci {
  font-style: italic;
  color: var(--ink-mute);
  font-size: 13px;
  margin-top: 2px;
}
.cart-row-qty {
  color: var(--ink-dim);
  font-size: 13px;
  margin-top: 4px;
}
.cart-row-flag {
  color: var(--accent-hot);
  font-size: 13px;
  margin-top: 4px;
}
.cart-row-price {
  font-weight: 600;
  color: var(--ink-dim);
  white-space: nowrap;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cart-empty[hidden] {
  display: none;
}
.cart-empty p {
  color: var(--ink-dim);
}
.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 100px;
}
.cart-summary h2 {
  font-size: 1.2rem;
}
.cart-summary input {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: rgba(var(--ink-rgb), 0.045);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.cart-summary input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}
.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
}
.cart-totals > div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-dim);
}
.cart-totals dt,
.cart-totals dd {
  margin: 0;
  font-weight: 500;
}
.cart-total-row {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
}
.cart-checkout-btn {
  width: 100%;
}
.cart-altpay {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--bg);
  background: var(--warn);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.cart-altpay strong {
  color: var(--bg);
}
.cart-altpay a {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cart-disclaimer {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
  .cart-row {
    grid-template-columns: 56px 1fr auto;
  }
  .cart-row-price {
    grid-column: 2;
  }
}

/* ============================================================
   CHECKOUT ISSUE MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.modal[hidden] {
  display: none;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(var(--ink-rgb), 0.45);
  backdrop-filter: blur(2px);
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px -20px rgba(var(--ink-rgb), 0.35);
  width: 100%;
}
.modal-box-sm {
  max-width: 420px;
  padding: 32px 28px;
}
.modal-box-sm h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 12px;
}
.checkout-modal-message {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  white-space: pre-line;
}
.checkout-modal-actions {
  display: flex;
  justify-content: flex-end;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   COMPONENTS ADDED FOR THIS BUILD
   Chips, the animal detail page, and the guarantee blocks.
   Everything below resolves through the :root tokens at the top.
   ============================================================ */

/* ---------- brand lockup ---------- */
.brand-logo {
  width: 50px;
  height: auto;
  flex: none;
  margin-top: 10px;
}
.brand-mark {
  text-transform: none;
  letter-spacing: -0.015em;
  font-size: 27px;
  font-weight: 800;
}
.brand .brand-mark {
  /* Fluid instead of a fixed 54px so it never outgrows the header row
     next to the logo + hamburger button on narrow phones. */
  font-size: clamp(27px, 5vw + 10px, 54px);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  width: 42px;
  height: auto;
  flex: none;
}

/* ---------- rhythm ---------- */
.section-tight {
  padding-block: clamp(40px, 5vw, 68px);
}
/* Full-bleed cinematic hero. Drew's Gooty sapphire photo lives at
   assets/hero-gooty-sapphire.jpg, the bottom layer of .hero-home::before —
   swap the file at that path and it updates with zero markup/CSS changes.
   (If the file is ever missing, that layer just doesn't paint and the
   void/glow gradients above it carry the section alone — no broken-image
   icon.) The source photo is a square, front-on macro shot with the spider
   filling the frame edge to edge; `center 40%` keeps its face/front legs
   in the crop instead of the vertical center, which cuts into its legs. */
.hero-home {
  min-height: min(88vh, 840px);
  align-items: flex-end;
  padding: calc(var(--header-h, 160px) + 20px) 0 clamp(48px, 7vw, 84px);
}
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      180deg,
      rgba(var(--bg-rgb), 0.8) 0%,
      rgba(var(--bg-rgb), 0.8) 55%,
      rgba(var(--bg-rgb), 0.96) 100%
    ),
    radial-gradient(ellipse 60% 55% at 12% 10%, rgba(var(--accent-rgb), 0.22), transparent 65%),
    radial-gradient(ellipse 55% 60% at 88% 90%, rgba(var(--violet-rgb), 0.16), transparent 60%),
    url("assets/hero-gooty-sapphire.jpg") center 40% / cover no-repeat,
    var(--bg);
}
/* Legibility insurance that doesn't require darkening the whole photo: a
   soft shadow right behind the glyphs. Matters most on mobile, where the
   copy block runs ~22%-90% of the section's height (measured against the
   live page) — nearly the full photo — so the overlay alone can't carry
   contrast without also crushing the image underneath it. Works on
   .accent-word too: text-shadow renders from the glyph outlines, not the
   fill, so it's unaffected by that element's transparent gradient fill. */
.hero-home .eyebrow,
.hero-home .hero-title,
.hero-home .hero-sub {
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.65);
}
.hero-home .hero-inner {
  max-width: none;
}
.hero-copy {
  max-width: 680px;
}
.hero-home .hero-sub {
  max-width: 56ch;
}
.page-hero-tight {
  padding: calc(var(--header-h, 130px) + clamp(20px, 5vw, 44px)) 0 clamp(24px, 4vw, 40px);
  text-align: left;
}
.page-hero-tight p {
  margin: 0;
  max-width: 60ch;
}

/* ---------- category chips ---------- */
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.chip {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: var(--bg-card);
  color: var(--ink-dim);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.chip:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--ink);
}
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* ---------- product card ---------- */
.card-photo-link {
  display: block;
}
.species-card {
  display: flex;
  flex-direction: column;
}
.species-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.species-body h3 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}
.species-attrs {
  font-size: 15px;
  color: var(--ink-mute);
  margin-top: 6px;
}
.species-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.species-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}
.species-price-ask {
  color: var(--ink-mute);
  font-weight: 600;
  font-size: 1.05rem;
}
.card-sold-note {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-mute);
}
.tag {
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  background: rgba(var(--bg-rgb), 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink);
}
.species-no-photo {
  background: var(--bg-elev);
  aspect-ratio: 1 / 1;
}
.store-empty,
.inventory-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-mute);
  padding: 40px 0;
}
.store-count {
  color: var(--ink-mute);
  font-size: 14px;
  margin-bottom: 14px;
}

/* ---------- the trust cue ----------
   Which photo am I looking at: this animal, or one like it. */
.listing-cue {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-top: 10px;
}
.listing-cue-unique {
  background: rgba(var(--ok-rgb), 0.1);
  color: var(--ok);
}
.listing-cue-batch {
  background: rgba(var(--ink-rgb), 0.06);
  color: var(--ink-dim);
}

/* ---------- guarantee blocks ---------- */
.guarantee-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.guarantee-strip h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.guarantee-strip p {
  color: var(--ink-dim);
  margin-bottom: 16px;
  max-width: 56ch;
}
.guarantee-points {
  display: grid;
  gap: 14px;
}
.guarantee-points li {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  border-left: 3px solid rgba(var(--brand-rgb), 0.5);
}
.guarantee-points strong {
  font-weight: 700;
}
.guarantee-points span {
  color: var(--ink-mute);
  font-size: 16px;
}
.guarantee-card {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: rgba(var(--brand-rgb), 0.07);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
}
.guarantee-card h2 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.guarantee-card p {
  font-size: 15px;
  color: var(--ink-dim);
  margin-bottom: 12px;
}
.guarantee-steps {
  list-style: decimal;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
  color: var(--ink-dim);
}
.fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.fact-row li {
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.fact-row strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.fact-row span {
  color: var(--ink-mute);
  font-size: 15px;
}

/* ---------- prose ---------- */
.prose-narrow {
  max-width: 68ch;
}
.prose-narrow h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}
.prose-narrow h2:first-child {
  margin-top: 0;
}
.prose-narrow p {
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.prose-narrow a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose-narrow .lede {
  font-size: 1.15rem;
  color: var(--ink);
}
.prose-note {
  font-size: 15px;
  color: var(--ink-mute);
  padding: 16px 18px;
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
}
.contact-actions {
  margin: 24px 0;
}

/* ---------- animal detail ---------- */
.animal-section {
  padding: calc(var(--header-h, 130px) + clamp(14px, 6vw, 40px)) 0 var(--section-y);
}
.animal-loading {
  color: var(--ink-mute);
}
.crumbs {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 22px;
  display: flex;
  gap: 8px;
}
.crumbs a {
  color: var(--accent-bright);
}
.animal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.animal-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--rule-soft);
}
.animal-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: none;
}
.animal-photo.is-active {
  display: block;
}
.animal-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.animal-thumb {
  width: 66px;
  height: 66px;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 180ms ease;
}
.animal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.animal-thumb.is-active {
  border-color: var(--accent);
}
.animal-info h1 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  letter-spacing: -0.025em;
}
.animal-sci {
  font-style: italic;
  color: var(--ink-mute);
  margin-top: 6px;
}
.animal-price {
  font-size: clamp(1.7rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 20px 0 4px;
}
.animal-stock {
  color: var(--ink-mute);
  font-size: 15px;
}
.animal-cta {
  margin: 20px 0 8px;
}
.btn-lg {
  padding: 16px 34px;
  font-size: 16px;
}
.animal-sold {
  font-weight: 600;
  color: var(--ink-dim);
}
.animal-sold a {
  color: var(--accent-bright);
}
.animal-desc {
  margin-top: 20px;
  color: var(--ink-dim);
}
.animal-specs {
  margin-top: 22px;
  border-top: 1px solid var(--rule-soft);
}
.animal-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.animal-specs dt {
  color: var(--ink-mute);
  font-size: 15px;
}
.animal-specs dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.animal-missing {
  text-align: center;
  padding: 40px 0 60px;
}
.animal-missing h1 {
  margin-bottom: 12px;
}
.animal-missing p {
  color: var(--ink-mute);
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .animal-layout,
  .guarantee-strip {
    grid-template-columns: 1fr;
  }
  .hero-home {
    min-height: min(78vh, 640px);
  }
  /* Narrow viewports crop the square hero photo much tighter (cover scales
     to fill height first, so almost the whole photo shows top-to-bottom
     instead of the cropped middle band desktop gets) — and the copy block
     runs ~22%-90% of the section here, nearly that whole height. Tried
     matching desktop's flat 85% wash at this aspect ratio and it crushed
     the photo to near-black (confirmed by rendering it, not just guessing);
     the .eyebrow/.hero-title/.hero-sub text-shadow above is what actually
     carries legibility now, so this only needs to be a true vignette —
     lighter where the eyebrow starts, never fully dark until the section's
     bottom edge. */
  .hero-home::before {
    background:
      linear-gradient(
        180deg,
        rgba(var(--bg-rgb), 0.42) 0%,
        rgba(var(--bg-rgb), 0.58) 20%,
        rgba(var(--bg-rgb), 0.6) 85%,
        rgba(var(--bg-rgb), 0.92) 100%
      ),
      radial-gradient(ellipse 60% 55% at 12% 10%, rgba(var(--accent-rgb), 0.2), transparent 65%),
      radial-gradient(ellipse 55% 60% at 88% 90%, rgba(var(--violet-rgb), 0.14), transparent 60%),
      url("assets/hero-gooty-sapphire.jpg") center 40% / cover no-repeat,
      var(--bg);
  }
}

.listing-cue-sm {
  font-size: 13px;
  padding: 3px 9px;
  margin-top: 8px;
  align-self: flex-start;
}
.store-count {
  text-align: left;
}

.ship-date,
.cart-ship-date {
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 8px;
}
.cart-ship-date {
  margin-top: 12px;
}
