/* =========================================================
   France Safaris — design system
   Rural / nature-rooted French heritage. Restrained, warm,
   photography-led. Mobile-first.
   ========================================================= */

:root {
  /* --- Colour: forest, bark, rust, cream --- */
  --forest: #233226;
  --forest-deep: #15201a;
  --moss: #4a5d49;
  --bark: #3a2c1e;
  --rust: #a24e2c;
  --rust-soft: #c87856;
  --cream: #f3ede0;
  --bone: #e6dcc6;
  --paper: #faf6ec;
  --ink: #1b1a17;
  --stone: #807a6e;
  --stone-light: #b8b1a3;
  --line: rgba(27, 26, 23, 0.12);
  --line-light: rgba(243, 237, 224, 0.18);

  /* --- Typography --- */
  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Apple Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* --- Layout --- */
  --container: 1280px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 10vw, 8rem);

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.25rem; }
p { font-size: 1.0625rem; line-height: 1.7; }
.lede { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; font-weight: 400; color: var(--bark); font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--rust);
  margin-bottom: 1rem;
  display: inline-block;
}
.eyebrow--light { color: var(--rust-soft); }
.eyebrow--muted { color: var(--stone); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--dark { background: var(--forest); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }
.section--cream { background: var(--cream); }
.section--bone { background: var(--bone); }

.divider {
  width: 56px; height: 1px; background: var(--rust); margin: 1.75rem 0;
}
.section--dark .divider { background: var(--rust-soft); }
.divider--centered { margin-inline: auto; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  padding: 1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-transparent {
  background: linear-gradient(180deg, rgba(0,0,0,0.52), rgba(0,0,0,0.18));
  color: var(--cream);
}
.site-header.is-solid {
  background: rgba(243, 237, 224, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.site-header__brand {
  display: flex; align-items: flex-end; gap: 0.5rem;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.site-header__brand img { height: 30px; width: auto; }
.site-header__brand span { line-height: 1; white-space: nowrap; transform: translateY(4px); }
@media (min-width: 520px) {
  .site-header__brand { gap: 0.75rem; font-size: 1.55rem; }
  .site-header__brand img { height: 38px; }
  .site-header__brand span { transform: translateY(5px); }
}
.site-header__brand .crest-light, .site-header__brand .crest-dark { display: none; }
.site-header.is-transparent .crest-light { display: block; }
.site-header.is-solid .crest-dark { display: block; }

.site-nav { display: none; gap: 2rem; align-items: center; }
.site-nav a {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}
.site-nav a:hover { color: var(--rust); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--rust);
}

/* Lang switcher */
.lang-switch { display: flex; gap: 0; align-items: center; font-family: var(--sans); }
.lang-switch a {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.55rem;
  opacity: 0.65;
  transition: opacity 0.2s var(--ease);
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a.is-active { opacity: 1; font-weight: 600; }
.lang-switch a + a { border-left: 1px solid currentColor; border-left-color: rgba(255,255,255,0.25); }
.site-header.is-solid .lang-switch a + a { border-left-color: var(--line); }

/* Burger */
.burger {
  display: flex; flex-direction: column; gap: 5px; width: 28px; padding: 8px 0;
}
.burger span { display: block; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-header__right { display: flex; align-items: center; gap: 1rem; }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0;
  background: var(--forest);
  color: var(--cream);
  z-index: 40;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 1.5rem;
  padding: 6rem var(--gutter) 4rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 1.85rem;
  letter-spacing: -0.01em;
}
.mobile-nav a.is-active { color: var(--rust-soft); }
.mobile-nav .lang-switch { margin-top: 2rem; }

@media (min-width: 960px) {
  .site-nav { display: flex; }
  .burger { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.28) 40%, rgba(0,0,0,0.78) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.22) 65%, rgba(0,0,0,0) 88%);
}
.hero__inner {
  width: 100%; max-width: var(--container);
  margin: 0 auto;
  padding: 8rem var(--gutter) clamp(3rem, 8vw, 5rem);
}
.hero__inner h1 {
  color: var(--cream);
  font-weight: 400;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero__inner h1 em { font-style: italic; color: var(--rust-soft); }
.hero__inner .eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.hero__lede {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  max-width: 44ch;
  color: var(--bone);
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

.hero--page { min-height: 70vh; min-height: 70svh; }
.hero--page h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
.hero--brighter::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.35) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 55%);
}
.hero--brighter .hero__media img { filter: brightness(1.35); }

.hero__meta {
  position: absolute; bottom: 2rem; right: var(--gutter);
  z-index: 1;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 237, 224, 0.6);
  display: none;
}
@media (min-width: 720px) { .hero__meta { display: block; } }

/* Side rule on hero */
.hero__rule {
  position: absolute; left: var(--gutter); bottom: 3rem;
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(243,237,224,0.6));
  display: none;
}
@media (min-width: 720px) { .hero__rule { display: block; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid currentColor;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--rust); border-color: var(--rust); color: var(--cream);
}
.btn--primary:hover { background: var(--bark); border-color: var(--bark); color: var(--cream); }
.btn--ghost {
  background: transparent; color: var(--cream); border-color: rgba(243,237,224,0.7);
}
.btn--ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--rust); border-color: var(--rust); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Two-column / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--narrow { grid-template-columns: 5fr 7fr; }
  .split--wide { grid-template-columns: 7fr 5fr; }
  .split--reverse > :first-child { order: 2; }
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.split__media--landscape img { aspect-ratio: 4 / 3; }
.split__body { max-width: 52ch; }
.split__body p + p { margin-top: 1.25rem; }

/* ---------- Section header ---------- */
.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-head--centered { margin-inline: auto; text-align: center; }
.section-head p { color: var(--stone); margin-top: 1rem; font-size: 1.125rem; }
.section--dark .section-head p { color: var(--bone); }

/* ---------- Tile grid ---------- */
.tile-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.tile {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--cream);
  aspect-ratio: 4 / 5;
  isolation: isolate;
  transition: transform 0.5s var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.5s;
  opacity: 0.9;
}
.tile:hover img { transform: scale(1.06); opacity: 1; }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}
.tile__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.5rem 1.4rem;
  z-index: 2;
}
.tile__body h3 { color: var(--cream); margin-bottom: 0.25rem; }
.tile__body .meta {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rust-soft); margin-bottom: 0.5rem; display: block;
}
.tile__body p { font-size: 0.95rem; color: var(--bone); line-height: 1.5; }
.tile__arrow {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.25s var(--ease);
}
.tile:hover .tile__arrow { background: var(--rust); border-color: var(--rust); }

/* ---------- Editorial block ---------- */
.editorial {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.editorial p + p { margin-top: 1.5rem; }
.editorial p { font-size: 1.125rem; line-height: 1.75; }
.editorial .first-letter::first-letter {
  font-family: var(--serif);
  font-size: 4em;
  float: left;
  line-height: 0.85;
  padding: 0.2rem 0.6rem 0 0;
  color: var(--rust);
  font-weight: 500;
}

/* ---------- Image clusters / mosaic ---------- */
.mosaic {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 120px;
}
.mosaic figure { margin: 0; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .m-tall { grid-column: span 3; grid-row: span 3; }
.mosaic .m-wide { grid-column: span 3; grid-row: span 2; }
.mosaic .m-sm   { grid-column: span 2; grid-row: span 2; }
.mosaic .m-med  { grid-column: span 3; grid-row: span 2; }
@media (max-width: 720px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .mosaic .m-tall, .mosaic .m-wide, .mosaic .m-sm, .mosaic .m-med { grid-column: span 1; grid-row: span 2; }
  .mosaic .m-tall { grid-row: span 3; }
}

/* ---------- Trophy gallery ---------- */
.trophy-row {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 2rem;
}
.trophy {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--bone);
}
.trophy img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.trophy:hover img { transform: scale(1.04); }
.trophy figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.75rem 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  font-weight: 500;
}

/* ---------- Species page sections ---------- */
.species-block { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.species-block:first-child { border-top: 0; }
.species-block .eyebrow { color: var(--rust); }
.species-block__head { display: flex; flex-direction: column; gap: 0.5rem; max-width: 56ch; }
.species-block__head h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
.species-block__sub { font-family: var(--serif); font-style: italic; color: var(--bark); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }

/* ---------- Quote / pullquote ---------- */
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.3;
  color: var(--cream);
  max-width: 24ch;
}
.pullquote::before {
  content: "“";
  display: block;
  font-size: 4em;
  color: var(--rust-soft);
  line-height: 0.6;
  margin-bottom: 0.5rem;
}

/* ---------- Team cards ---------- */
.team-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { display: flex; flex-direction: column; gap: 1.25rem; }
.team-card__photo {
  aspect-ratio: 4 / 5;
  background: var(--moss);
  position: relative; overflow: hidden;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__photo--placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--moss), var(--forest));
}
.team-card__photo--placeholder span {
  font-family: var(--serif);
  font-size: 4rem;
  color: rgba(243,237,224,0.85);
}
.team-card h3 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.team-card .role { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust); margin-bottom: 1rem; display: block; }
.team-card p { font-size: 1rem; line-height: 1.65; color: var(--ink); }

/* ---------- Beretta / partnership ---------- */
.feature-band {
  display: grid; gap: 0.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .feature-band { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-band { grid-template-columns: repeat(4, 1fr); } }
.feature-band figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.feature-band img { width: 100%; height: 100%; object-fit: cover; }
.feature-band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  color: var(--cream); padding: 1.25rem 1.25rem 1rem;
  font-size: 0.84rem; letter-spacing: 0.04em;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-info dl { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem 1.5rem; }
.contact-info dt {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rust); padding-top: 0.25rem;
}
.contact-info dd { font-family: var(--serif); font-size: 1.25rem; }
.contact-info dd a:hover { color: var(--rust); }

.contact-form { display: grid; gap: 1.25rem; }
.contact-form label {
  display: block; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 0.4rem;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--rust);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .contact-form .row { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep); color: var(--bone);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem;
}
.site-footer .container {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .site-footer .container { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rust-soft); margin-bottom: 1.25rem; font-weight: 500;
}
.site-footer ul li { margin-bottom: 0.6rem; font-size: 0.94rem; }
.site-footer ul a:hover { color: var(--rust-soft); }
.site-footer__brand { max-width: 36ch; }
.site-footer__brand img { height: 60px; margin-bottom: 1.25rem; }
.site-footer__brand p { font-size: 0.95rem; color: var(--stone-light); line-height: 1.65; }
.site-footer__legal {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line-light);
  font-size: 0.78rem; color: var(--stone-light);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
.social { display: flex; gap: 1rem; margin-top: 1rem; }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.social a:hover { background: var(--rust); border-color: var(--rust); color: var(--paper); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Decorative number / stat ---------- */
.stat { font-family: var(--serif); font-weight: 400; }
.stat__num { display: block; font-size: clamp(2.5rem, 5vw, 4rem); color: var(--rust); line-height: 1; }
.stat__label { display: block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-top: 0.5rem; font-family: var(--sans); }
.stats-row { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--bark); color: var(--cream);
  padding: 1rem var(--gutter);
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.no-mob { display: none; }
@media (min-width: 720px) { .no-mob { display: initial; } }
.only-mob { display: initial; }
@media (min-width: 720px) { .only-mob { display: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* =========================================================
   Editorial / Almanac layer
   ========================================================= */

:root {
  --script: "Mrs Saint Delafield", "Allison", cursive;
  --paper-warm: #efe7d4;
  --paper-cool: #ece5d2;
  --ink-soft: #2a2820;
  --gilt: #b08654;
}

/* Paper-grain texture across the entire site (subtle) */
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at top, rgba(160,82,45,0.04), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.09  0 0 0 0 0.07  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: no-repeat, repeat;
}
.section--cream, .section--bone {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.13  0 0 0 0 0.07  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Chapter heading — numeral + ornamental rule + title  */
.chapter {
  text-align: center;
  max-width: 64ch;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  position: relative;
}
.chapter__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  letter-spacing: 0.4em;
  color: var(--rust);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.chapter__rule {
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem; margin: 0 auto 1.5rem;
  color: var(--gilt);
  max-width: 360px;
}
.chapter__rule::before, .chapter__rule::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, currentColor 50%, transparent);
}
.chapter__rule svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.chapter h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.chapter h2 em { color: var(--rust); }
.chapter__lede {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--bark);
  max-width: 50ch;
  margin-inline: auto;
}
.section--dark .chapter__num { color: var(--rust-soft); }
.section--dark .chapter__rule { color: var(--gilt); }
.section--dark .chapter__lede { color: var(--bone); }

/* Ornament inline */
.ornament { color: var(--gilt); display: inline-block; line-height: 1; vertical-align: middle; }

/* Almanac grid: editorial 12-column layout */
.almanac {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: start;
}
.almanac > * { min-width: 0; }
.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-12 { grid-column: span 12; }
@media (max-width: 880px) {
  .almanac { grid-template-columns: repeat(6, 1fr); gap: 2rem 1rem; }
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-12 { grid-column: span 6; }
  .col-sm-3 { grid-column: span 3; }
}

.figure-caption {
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--stone);
  font-size: 0.95rem;
  display: flex; gap: 0.6rem; align-items: baseline;
  line-height: 1.45;
}
.figure-caption .num {
  font-style: normal;
  color: var(--rust);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: var(--sans);
  font-weight: 500;
}

/* Big editorial display numeral (drop-in element) */
.numeral {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(7rem, 18vw, 14rem);
  line-height: 1.05;        /* enough room for descenders on old-style figures */
  letter-spacing: -0.04em;
  color: var(--rust);
  font-feature-settings: "lnum" 1;  /* lining figures so 3,5,7 don't drop */
  display: block;
  position: relative;
  padding-bottom: 0.15em;
}
.numeral--lg { font-size: clamp(9rem, 22vw, 18rem); }
.numeral--ghost {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--rust);
}
.numeral__cap {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 1.5rem;
  font-weight: 500;
}
.section--dark .numeral { color: var(--rust-soft); }
.section--dark .numeral__cap { color: var(--bone); }

/* Almanac fact-table — replaces the old empty stats stripe */
.fact-table {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.fact-table .row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.fact-table .row .yr {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  color: var(--rust);
  font-feature-settings: "onum" 1;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.fact-table .row .body { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--ink-soft); font-style: italic; }
.fact-table .row .body strong { font-style: normal; color: var(--ink); font-weight: 500; }
.section--dark .fact-table { border-top-color: var(--line-light); }
.section--dark .fact-table .row { border-bottom-color: var(--line-light); }
.section--dark .fact-table .row .body { color: var(--bone); }
.section--dark .fact-table .row .body strong { color: var(--cream); }

/* Atmosphere band — full bleed photo with floating italic line */
.atmosphere {
  position: relative;
  min-height: 70vh;
  min-height: 70svh;
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  text-align: center;
  padding: 4rem var(--gutter);
}
.atmosphere img.bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.atmosphere::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.38));
}
.atmosphere blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.25;
  font-weight: 400;
  max-width: 28ch;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.atmosphere blockquote::before {
  content: "“"; display: block; font-size: 3em; line-height: 0.6;
  color: var(--rust-soft); margin-bottom: 0.3em;
}
.atmosphere cite {
  display: block; margin-top: 1.5rem;
  font-style: normal; font-family: var(--sans);
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(243,237,224,0.7);
}

/* Letter from Guillaume — first-person editorial, signature in script */
.letter {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .letter { grid-template-columns: 5fr 7fr; }
}
.letter__portrait {
  position: relative; aspect-ratio: 4 / 5;
}
.letter__portrait img { width: 100%; height: 100%; object-fit: cover; }
.letter__portrait::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--gilt);
  transform: translate(12px, 12px);
  pointer-events: none;
  opacity: 0.5;
}
.letter__body {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-soft);
}
.letter__body p + p { margin-top: 1.25rem; }
.letter__signature {
  margin-top: 2rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.letter__signature .name {
  font-family: var(--script);
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  color: var(--rust);
  line-height: 1; font-weight: 400;
  letter-spacing: 0.01em;
}
.letter__signature .role {
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--stone);
}

/* Chip row — Aveyron · Chasse · Famille */
.chip-row {
  display: flex; flex-wrap: wrap; gap: 0;
  justify-content: center; align-items: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--bark);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}
.chip-row > * + *::before {
  content: "·"; padding: 0 0.9rem; color: var(--rust);
  font-style: normal;
}
.section--dark .chip-row { color: var(--bone); }

/* Species rail — "the seven" as a fact list with photo + body */
.seven {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.seven__row {
  display: grid;
  grid-template-columns: 4rem 1fr 1fr 4rem;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.3s var(--ease);
}
.seven__row:hover { background: rgba(162, 78, 44, 0.04); }
.seven__row:hover .seven__name { color: var(--rust); }
.seven__num {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: var(--rust);
  font-feature-settings: "lnum" 0, "onum" 1;
  font-style: italic;
}
.seven__name {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.seven__name em { color: var(--rust); font-size: 0.7em; }
.seven__sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--stone);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}
.seven__photo {
  width: 4rem; height: 4rem;
  object-fit: cover;
  border-radius: 50%;
  justify-self: end;
}
.seven__row::after {
  content: "→"; position: absolute; right: -1.5rem; top: 50%;
  transform: translateY(-50%);
  color: var(--rust); opacity: 0; transition: all 0.3s var(--ease);
}
.seven__row:hover::after { opacity: 1; right: -2rem; }
@media (max-width: 720px) {
  .seven__row { grid-template-columns: 2.5rem 1fr 3rem; gap: 0.75rem; }
  .seven__sub { display: none; }
}

/* Editorial hero — bigger title scale, more breathing */
.hero__inner h1 { font-size: clamp(3rem, 7.5vw, 6rem); line-height: 0.98; }
.hero__inner h1 em { display: block; font-style: italic; }

/* Section caption — small italic eyebrow above big number */
.kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--rust);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  margin-bottom: 0.5rem;
  display: block;
}

/* Editorial caption strip on photo */
.cap-photo {
  position: relative;
  display: block;
}
.cap-photo img { display: block; width: 100%; height: auto; }
.cap-photo figcaption {
  position: absolute; bottom: 0.75rem; left: 0.75rem;
  background: var(--paper);
  color: var(--ink-soft);
  padding: 0.4rem 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  border-left: 2px solid var(--rust);
  letter-spacing: 0.01em;
}

/* Stamp — circular crest impression */
.stamp {
  width: 100px; height: 100px;
  border: 1px solid var(--rust);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--rust);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.2;
  rotate: -8deg;
  opacity: 0.85;
  flex: none;
}
.stamp::before, .stamp::after {
  content: ""; position: absolute; border: 1px solid var(--rust); border-radius: 50%;
  inset: 4px; opacity: 0.5;
}

/* Rule with inline ornament */
.fleuron {
  display: flex; align-items: center; gap: 1rem;
  color: var(--gilt);
  margin: 1.5rem 0;
}
.fleuron::before, .fleuron::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, currentColor 50%, transparent);
}
.fleuron svg { width: 18px; height: 18px; flex: none; }

/* Heritage chips — small tags w/ year */
.tag {
  font-family: var(--sans);
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-block; padding: 0.35rem 0.7rem;
  border: 1px solid var(--rust);
  border-radius: 999px;
}

/* No numbered plates anymore */
.plate { position: relative; }
.plate .plate-num { display: none; }
.figure-caption .num { display: none; }
.figure-caption { padding-left: 0; }

/* Letter container width tightening */
.editorial { max-width: var(--container-narrow); }
.editorial .first-letter::first-letter {
  font-family: var(--serif);
  font-size: 4.5em;
  float: left;
  line-height: 0.85;
  padding: 0.2rem 0.6rem 0 0;
  color: var(--rust);
  font-weight: 400;
  font-style: italic;
}

/* Atmosphere variant for shorter dividers */
.atmosphere--short { min-height: 50vh; }

/* Pillar / column with vertical rule */
.pillar { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.section--dark .pillar { border-left-color: var(--line-light); }

/* Improved tile body legibility on home tile-grid */
.tile__body h3 { font-size: 1.5rem; }
.tile { aspect-ratio: 3 / 4; }

/* Mobile drawer text size adjust */
.mobile-nav a { font-size: 1.6rem; }

/* =========================================================
   Readability layer (overrides inline styles via specificity)
   ========================================================= */

/* Body prose: Inter, comfortable size, readable weight */
.prose {
  font-family: var(--sans) !important;
  font-size: clamp(1rem, 1.05vw, 1.125rem) !important;
  line-height: 1.7 !important;
  color: var(--ink) !important;
  font-weight: 400 !important;
  font-style: normal !important;
}
.prose strong { font-weight: 600; color: var(--ink); }
.prose p + p { margin-top: 1.1rem; }
.prose--lg {
  font-size: clamp(1.0625rem, 1.15vw, 1.2rem) !important;
}

/* Lede / italic moments stay serif but with more weight */
.t-italic {
  font-family: var(--serif) !important;
  font-style: italic !important;
  color: var(--bark) !important;
  font-size: clamp(1.1rem, 1.3vw, 1.25rem) !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
}

/* Strengthen built-in body weights — but don't break dark-section cascades */
body { font-weight: 400; color: var(--ink); }
.lede { font-weight: 500; color: var(--bark); }
.section--dark p, .section--dark li { color: var(--bone); }
.site-footer, .site-footer p, .site-footer li, .site-footer dd { color: var(--bone); }
.site-footer a { color: var(--bone); }
.site-footer a:hover { color: var(--rust-soft); }
.atmosphere blockquote, .atmosphere cite { color: var(--cream); }
.fact-table .row .body {
  font-family: var(--sans) !important;
  font-size: 1.0625rem !important;
  font-style: normal !important;
  font-weight: 400 !important;
  color: var(--ink) !important;
  line-height: 1.55 !important;
}
.fact-table .row .body strong { font-weight: 600; }

.editorial p, .editorial .first-letter {
  font-family: var(--sans) !important;
  font-size: clamp(1.0625rem, 1.1vw, 1.15rem) !important;
  line-height: 1.7 !important;
  color: var(--ink) !important;
  font-weight: 400 !important;
}
/* But the drop-cap initial stays serif */
.editorial .first-letter::first-letter {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 4.5em;
  float: left;
  line-height: 0.85;
  padding: 0.2rem 0.6rem 0 0;
  color: var(--rust);
  font-weight: 500;
}

.letter__body {
  font-family: var(--sans) !important;
  font-size: clamp(1.0625rem, 1.15vw, 1.175rem) !important;
  line-height: 1.7 !important;
  color: var(--ink) !important;
}

/* Pillar narrative defaults */
.pillar p {
  font-family: var(--sans) !important;
  font-size: clamp(1rem, 1.05vw, 1.1rem) !important;
  line-height: 1.7 !important;
  color: var(--ink) !important;
  font-weight: 400 !important;
}
.pillar .lede { font-family: var(--serif) !important; font-style: italic !important; color: var(--bark) !important; }

/* Chapter lede slightly heavier */
.chapter__lede {
  font-weight: 500;
  color: var(--bark);
  font-size: clamp(1.05rem, 1.4vw, 1.225rem);
}

/* Hero video — sits beneath everything; poster shown until loaded */
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.hero__media img.poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

/* Hero — no box. Soft vignette + text shadow only. */
.hero__plate {
  display: block;
  max-width: 60ch;
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  position: relative;
}
.hero__plate h1 {
  margin: 0;
  text-shadow: 0 2px 28px rgba(0,0,0,0.65), 0 1px 4px rgba(0,0,0,0.4);
}
.hero__plate .hero__lede {
  margin-top: 1.25rem;
  color: var(--bone);
  text-shadow: 0 2px 18px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.4);
}
.hero__plate .eyebrow {
  text-shadow: 0 1px 14px rgba(0,0,0,0.7);
}
.hero__cta { margin-top: 2rem; }

/* Hero overlay: cinematic bottom-left vignette so text reads without a box */
.hero::after {
  background:
    radial-gradient(ellipse 95% 65% at 22% 82%, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.30) 35%, transparent 75%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.55) 100%);
}

/* Section--dark with a backgroundimage darker overlay reduce */
.section--dark[style*="linear-gradient"] {
  /* author may use lighter inline gradient, but baseline darkness softened via tint */
  background-color: var(--forest);
}

/* Letter spacing for headings — tighten very large */
.chapter h2, .hero__plate h1, h1 { letter-spacing: -0.02em; }

/* Improve seven row sub legibility */
.seven__sub {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.875rem, 1vw, 0.95rem);
  color: var(--stone);
  letter-spacing: 0.01em;
}

/* Figure captions: tighter, simpler */
.figure-caption {
  font-family: var(--sans);
  font-style: normal;
  color: var(--stone);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.6rem;
  font-weight: 500;
  line-height: 1.4;
  display: block;
}

/* Atmosphere body weight a touch up */
.atmosphere blockquote { font-weight: 500; }
.atmosphere cite { color: rgba(243,237,224,0.85); }

/* Force readable contact-info copy */
.contact-info p {
  font-family: var(--sans) !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  color: var(--ink) !important;
  font-style: normal !important;
}

/* Reduce default opacity of overlays inside dark sections */
.section--dark { opacity: 1; }

/* —————— The Film — full-bleed cinematic player —————— */
.film-stage {
  position: relative;
  width: 100%;
  background: var(--forest);
  padding-top: clamp(80px, 9vh, 110px); /* clear transparent header */
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.film-stage__frame {
  position: relative;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  aspect-ratio: 3840 / 1632;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  overflow: hidden;
}
.film-stage__frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.film-stage__caption {
  max-width: 2000px;
  margin: 1.25rem auto 0;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: rgba(243,237,224,0.7);
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.film-stage__caption .num { color: var(--rust-soft); }
@media (max-width: 720px) {
  .film-stage { padding-top: clamp(70px, 14vh, 100px); }
  .film-stage__caption { flex-direction: column; gap: .35rem; font-size: .75rem; }
}

/* —————— Film intro / editorial block —————— */
.film-intro {
  padding-block: clamp(3rem, 7vw, 6rem);
  background: var(--cream);
}
.film-intro .editorial {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.65;
  color: var(--ink-soft);
}
.film-intro .editorial p + p { margin-top: 1.25rem; }
.film-intro .editorial p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.5em;
  float: left;
  line-height: .85;
  padding: .1em .12em 0 0;
  color: var(--rust);
  font-weight: 500;
}


/* ---------- Species legend ---------- */
.species-legend {
  position: sticky;
  top: 68px;
  z-index: 30;
  background: rgba(243, 237, 224, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.species-legend::-webkit-scrollbar { display: none; }
.species-legend__inner {
  display: flex;
  align-items: stretch;
  padding: 0 0.5rem;
  min-width: max-content;
}
.species-legend__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.6rem;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--sans);
  color: var(--stone);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.species-legend__item:hover { color: var(--ink); }
.species-legend__item.is-active {
  color: var(--rust);
  border-bottom-color: var(--rust);
}
.species-legend__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.55;
  letter-spacing: 0;
}
.species-legend__name { display: inline; }
@media (min-width: 640px) {
  .species-legend { -webkit-mask-image: none; mask-image: none; }
  .species-legend__inner { justify-content: center; padding: 0 var(--gutter); min-width: 0; }
}

/* ---------- Species up button ---------- */
.species-up-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem 0.55rem 0.75rem;
  border-radius: 2rem;
  background: var(--forest);
  color: var(--cream);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s;
  pointer-events: none;
}
.species-up-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.species-up-btn:hover { background: var(--forest-deep); }
.species-up-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.species-up-btn span { display: none; }
@media (min-width: 480px) {
  .species-up-btn span { display: block; }
}
