/* ==========================================================================
   Ants Epping
   A natural-history field guide, built as a website.
   Palette: ink, moss, bone, ochre, clay.
   ========================================================================== */

:root {
  --ink: #0a0d09;
  --ink-2: #101610;
  --moss: #16241a;
  --moss-deep: #0e1710;
  --bone: #f1ebdb;
  --bone-2: #e6ddc7;
  --paper: #ece4d1;
  --amber: #d9a04a;
  --amber-light: #f0c987;
  --amber-deep: #b8812f;
  --rust: #a8462b;
  --clay: #9a4227;
  --sage: #94a18b;
  --line-dark: rgba(241, 235, 219, 0.16);
  --line-light: rgba(10, 13, 9, 0.17);
  --gutter: clamp(20px, 4.2vw, 68px);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --head-h: 100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 400;
  background: var(--amber);
  color: var(--ink);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: min(1460px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* Paper grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 260;
  background: transparent;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--amber);
  transform-origin: left;
}

/* ==========================================================================
   Type
   ========================================================================== */

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
}

.label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.section--ink .label,
.label--light {
  color: var(--amber);
}

.section--clay .label {
  color: var(--amber-light);
}

.label--muted {
  color: var(--sage);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 26px;
}

.eyebrow--light {
  color: var(--amber);
}

.eyebrow span {
  opacity: 0.5;
  margin: 0 6px;
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.7rem, 6.2vw, 5.6rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--rust);
}

.section--ink .display em,
.display--light em {
  color: var(--amber);
}

.section--clay .display em {
  color: var(--amber-light);
}

.display--light {
  color: var(--bone);
}

.fineprint {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 13, 9, 0.45);
}

/* ==========================================================================
   Buttons and links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease);
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn--solid {
  background: var(--amber);
  color: var(--ink);
}

.btn--solid:hover {
  background: var(--bone);
}

.btn--nav {
  border-color: rgba(241, 235, 219, 0.32);
  color: var(--bone);
  padding: 10px 18px;
  font-size: 9.5px;
}

.btn--nav:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.btn--ghost {
  border-color: rgba(241, 235, 219, 0.45);
  color: var(--bone);
}

.btn--ghost:hover {
  background: var(--bone);
  color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  color: var(--bone);
}

.btn--dark:hover {
  background: var(--moss);
}

.btn--outline {
  border-color: rgba(10, 13, 9, 0.4);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--bone);
}

.link-underline {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(241, 235, 219, 0.45);
  transition: border-color 0.3s, color 0.3s;
}

.link-underline:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  transition: background 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
  border-bottom: 1px solid transparent;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 32px;
  padding: 0 var(--gutter);
  background: rgba(22, 36, 26, 0.92);
  border-bottom: 1px solid rgba(241, 235, 219, 0.08);
  overflow: hidden;
  transition: height 0.45s var(--ease), opacity 0.35s, border-color 0.35s;
}

.topbar p {
  margin: 0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.6);
  white-space: nowrap;
}

.topbar a {
  color: var(--amber);
  border-bottom: 1px solid rgba(217, 160, 74, 0.35);
}

.topbar span {
  opacity: 0.45;
  margin: 0 4px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  padding: 0 var(--gutter);
  transition: height 0.45s var(--ease);
}

.site-head.is-solid {
  background: rgba(9, 12, 8, 0.9);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.site-head.is-solid .topbar {
  height: 0;
  opacity: 0;
  border-color: transparent;
}

.site-head.is-solid .nav {
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__mark {
  width: 30px;
  height: 30px;
  color: var(--amber);
  flex: none;
}

.brand__text {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: clamp(16px, 2.2vw, 34px);
  margin-left: auto;
  margin-right: clamp(16px, 2.6vw, 42px);
}

.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.7);
  padding: 6px 0;
  transition: color 0.3s;
}

.nav__links i {
  font-style: normal;
  font-size: 7.5px;
  color: var(--amber);
  opacity: 0.65;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__links a:hover {
  color: var(--bone);
}

.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__links a.is-active {
  color: var(--bone);
}

.nav__links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex: none;
}

.nav__toggle span:not(.sr-only) {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1px;
  background: var(--bone);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.nav__toggle span:first-child {
  top: 18px;
}

.nav__toggle span:nth-child(2) {
  top: 25px;
}

.nav__toggle[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--ink);
  padding: 100px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-dark);
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  letter-spacing: -0.02em;
}

.mobile-menu nav i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.mobile-menu nav a.is-active {
  color: var(--amber);
}

.mobile-menu .btn {
  align-self: flex-start;
}

.mobile-menu__meta {
  margin: auto 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  line-height: 2;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: var(--head-h) 0 0;
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 42%;
  animation: heroIn 2.4s var(--ease) both;
  will-change: transform;
}

@keyframes heroIn {
  from {
    transform: scale(1.07);
    opacity: 0.4;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 7, 0.95) 0%, rgba(8, 10, 7, 0.82) 32%, rgba(8, 10, 7, 0.28) 62%, rgba(8, 10, 7, 0.12) 100%),
    linear-gradient(0deg, rgba(8, 10, 7, 0.96) 0%, rgba(8, 10, 7, 0.1) 42%, rgba(8, 10, 7, 0.4) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__grid span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(241, 235, 219, 0.075);
}

.hero__grid span:nth-child(1) {
  left: 25%;
}

.hero__grid span:nth-child(2) {
  left: 50%;
}

.hero__grid span:nth-child(3) {
  left: 75%;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1460px, 100% - (var(--gutter) * 2));
  margin: 0 auto;
  padding-bottom: clamp(160px, 23vh, 230px);
}

.hero__title {
  margin: 0;
  padding-bottom: 0.14em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4.6rem, 13.5vw, 12.5rem);
  line-height: 0.8;
  letter-spacing: -0.055em;
  font-variation-settings: "SOFT" 25, "WONK" 1;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.hero__title span {
  display: block;
}

.hero__title em {
  display: block;
  font-style: italic;
  color: var(--amber);
  margin-left: 0.42em;
}

.hero__lede {
  max-width: 455px;
  margin: 30px 0 0;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.62;
  color: rgba(241, 235, 219, 0.8);
}

.hero__lede em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12em;
  color: var(--bone);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero__side {
  position: absolute;
  right: 20px;
  top: 44%;
  z-index: 2;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.4);
}

/* Specimen card */
.specimen {
  position: absolute;
  right: var(--gutter);
  bottom: 132px;
  z-index: 3;
  width: 244px;
  padding: 17px 18px 14px;
  border: 1px solid rgba(241, 235, 219, 0.22);
  background: rgba(9, 12, 8, 0.55);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.specimen__tag {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.specimen__name {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1;
}

.specimen dl {
  margin: 0;
  border-top: 1px solid rgba(241, 235, 219, 0.14);
}

.specimen dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(241, 235, 219, 0.1);
}

.specimen dt {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

.specimen dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: rgba(241, 235, 219, 0.85);
  text-align: right;
}

.specimen__barcode {
  height: 24px;
  margin-top: 12px;
  opacity: 0.55;
  background-image: repeating-linear-gradient(90deg, var(--bone) 0 1px, transparent 1px 3px, var(--bone) 3px 5px, transparent 5px 8px, var(--bone) 8px 9px, transparent 9px 13px);
}

.specimen__code {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: rgba(241, 235, 219, 0.45);
}

.hero__foot {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter) 24px;
  border-top: 1px solid rgba(241, 235, 219, 0.18);
  background: linear-gradient(0deg, rgba(8, 10, 7, 0.65), rgba(8, 10, 7, 0));
}

.hero__stats {
  display: flex;
  gap: clamp(26px, 5vw, 70px);
  margin: 0;
}

.hero__stats dt {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2px;
}

.hero__stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.6);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 30px;
  background: rgba(241, 235, 219, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber);
  animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker {
  background: var(--amber);
  color: var(--ink);
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid rgba(10, 13, 9, 0.15);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: ticker 64s linear infinite;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__track b {
  font-weight: 400;
  opacity: 0.45;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  position: relative;
  padding-block: clamp(84px, 11vw, 152px);
}

.section .wrap {
  position: relative;
  z-index: 1;
}

.section-more {
  margin-top: clamp(28px, 4vw, 44px);
}

section[id],
.expedition {
  scroll-margin-top: 100px;
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--ink {
  background: var(--ink);
  color: var(--bone);
}

.section--clay {
  background:
    radial-gradient(120% 100% at 12% 0%, #ad4d2d 0%, var(--clay) 46%, #853720 100%);
  color: var(--bone);
}

.section__num {
  position: absolute;
  top: clamp(26px, 4.5vw, 56px);
  right: var(--gutter);
  z-index: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(7rem, 15vw, 15rem);
  line-height: 0.72;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10, 13, 9, 0.13);
  pointer-events: none;
  user-select: none;
}

.section--ink .section__num,
.section--clay .section__num {
  -webkit-text-stroke-color: rgba(241, 235, 219, 0.15);
}

.section-head {
  position: relative;
  margin-bottom: clamp(44px, 6vw, 84px);
}

.section-head--split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: end;
}

.section-head__note {
  margin: 0 0 8px;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(10, 13, 9, 0.7);
}

.section--ink .section-head__note {
  color: rgba(241, 235, 219, 0.7);
}

.section-head__note i {
  font-family: var(--serif);
  font-size: 1.05em;
}

/* ==========================================================================
   Keeper
   ========================================================================== */

.keeper__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 7vw, 110px);
  align-items: start;
}

.keeper__copy p {
  margin: 0 0 22px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.72;
  color: rgba(10, 13, 9, 0.78);
}

.keeper__signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.keeper__signature img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.keeper__signature p {
  margin: 0;
}

.keeper__signature .keeper__meta {
  margin-top: 2px;
}

.keeper__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.keeper__meta {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 13, 9, 0.5);
}

.pull {
  margin: clamp(30px, 6vw, 90px) 0 0;
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 1px solid var(--rust);
}

.pull p {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.pull p::before {
  content: "“";
  display: block;
  margin-bottom: 4px;
  font-size: 3.6rem;
  line-height: 0.5;
  color: var(--rust);
  font-style: normal;
}

.pull cite {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 13, 9, 0.5);
}

.keeper__gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-top: clamp(54px, 7vw, 96px);
  padding-bottom: 34px;
}

.keeper__main {
  grid-column: 1 / 10;
  grid-row: 1;
  margin: 0;
}

.keeper__main img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 55%;
}

.keeper__inset {
  grid-column: 9 / 13;
  grid-row: 1;
  align-self: end;
  margin: 0;
  padding: 9px;
  background: var(--paper);
  border: 1px solid rgba(10, 13, 9, 0.12);
  box-shadow: 0 34px 70px rgba(10, 13, 9, 0.22);
  transform: rotate(1.6deg);
}

.keeper__inset img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.keeper__main figcaption,
.keeper__inset figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 13, 9, 0.55);
}

.keeper__main figcaption {
  display: block;
}

.keeper__main figcaption span {
  color: var(--rust);
  margin-right: 14px;
}

.keeper__inset figcaption {
  font-size: 8px;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line-light);
}

.stat {
  padding: 26px 24px 4px 0;
  border-right: 1px solid var(--line-light);
}

.stat:last-child {
  border-right: 0;
}

.stat__num {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__label {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(10, 13, 9, 0.55);
}

/* ==========================================================================
   Field plate
   ========================================================================== */

.section--moss {
  background:
    radial-gradient(900px 520px at 72% 34%, rgba(45, 68, 48, 0.55), transparent 70%),
    #0e1811;
  color: var(--bone);
}

.plate {
  border-block: 1px solid var(--line-dark);
}

.plate__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.plate__grid > * {
  min-width: 0;
}

.plate__intro .display {
  font-size: clamp(2.7rem, 5.2vw, 4.9rem);
}

.plate__lede {
  max-width: 44ch;
  margin: 26px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(241, 235, 219, 0.72);
}

.plate__legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.plate__legend div {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 8px;
}

.plate__legend span {
  grid-row: 1 / span 2;
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.plate__legend h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.plate__legend p {
  margin: 3px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(241, 235, 219, 0.6);
}

.plate__figure {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(241, 235, 219, 0.18);
  background: rgba(6, 10, 7, 0.34);
}

.plate__scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 160, 74, 0.55) transparent;
}

.plate__scroll svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 720px;
}

.plate-ant path {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
}

.plate__figure.is-in .plate-ant path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.6s cubic-bezier(0.2, 0.65, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
  .plate-ant path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

.plate__figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(241, 235, 219, 0.12);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.5);
}

.plate__figure figcaption span {
  color: var(--amber);
}

.plate__hint {
  display: none;
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.45);
}

.plate__data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.plate__data span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.plate__data b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Collection
   ========================================================================== */

.collection {
  background:
    radial-gradient(1200px 600px at 85% 0%, rgba(28, 42, 30, 0.95), transparent 70%),
    var(--ink);
}

.index {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}

.index__viewer {
  position: sticky;
  top: 92px;
}

.index__frame {
  position: relative;
  aspect-ratio: 4 / 4.3;
  overflow: hidden;
  background: var(--ink-2);
}

.index__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(241, 235, 219, 0.12);
  pointer-events: none;
}

.index__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease, transform 1.2s var(--ease);
}

.index__frame img.is-swapping {
  opacity: 0;
  transform: scale(1.03);
}

.index__count {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  background: rgba(9, 12, 8, 0.72);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--bone);
}

.index__corner {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: rgba(9, 12, 8, 0.72);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.index__corner::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 160, 74, 0.18);
}

.index__caption {
  padding-top: 20px;
}

.index__caption-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}

.index__latin {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--amber);
}

.index__tax {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
}

.index__fact {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 0.97rem;
  line-height: 1.7;
  color: rgba(241, 235, 219, 0.72);
}

.index__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  row-gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
}

.index__meta a {
  margin-left: auto;
  color: var(--amber);
  border-bottom: 1px solid rgba(217, 160, 74, 0.35);
  padding-bottom: 2px;
}

.index__meta a + a {
  margin-left: 0;
}

.index__progress {
  height: 2px;
  margin-top: 16px;
  background: rgba(241, 235, 219, 0.12);
  overflow: hidden;
}

.index__progress span {
  display: block;
  height: 100%;
  width: 10%;
  background: var(--amber);
  transition: width 0.6s var(--ease);
}

.index__list {
  border-top: 1px solid var(--line-dark);
}

.species {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 19px 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
  cursor: pointer;
  color: rgba(241, 235, 219, 0.78);
  transition: color 0.35s, padding-left 0.45s var(--ease), background 0.35s;
}

.species:hover {
  color: var(--bone);
  padding-left: 14px;
  background: rgba(241, 235, 219, 0.03);
}

.species.is-active {
  color: var(--amber);
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(217, 160, 74, 0.1), transparent);
  box-shadow: inset 2px 0 0 var(--amber);
}

.species__no {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  opacity: 0.55;
}

.species__name {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.species__name em {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0;
  opacity: 0.6;
}

.species__size {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  white-space: nowrap;
  padding: 4px 8px;
  border: 1px solid rgba(241, 235, 219, 0.16);
  border-radius: 999px;
}

.species.is-active .species__size {
  border-color: rgba(217, 160, 74, 0.45);
}

.also {
  margin-top: clamp(60px, 9vw, 110px);
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}

.also__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.also h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.also p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(241, 235, 219, 0.62);
}

.also p i {
  font-family: var(--serif);
  font-size: 1.05em;
}

/* ==========================================================================
   Series
   ========================================================================== */

.series__list {
  border-top: 1px solid var(--line-light);
}

.series-row {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 112px 26px;
  gap: clamp(14px, 2.4vw, 34px);
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), padding 0.45s var(--ease);
}

.series-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rust);
  transform: scaleY(0);
  transition: transform 0.45s var(--ease);
}

.series-row:hover {
  background: var(--ink);
  color: var(--bone);
  padding-inline: 18px;
}

.series-row:hover::before {
  transform: scaleY(1);
}

.series-row__no {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  opacity: 0.45;
}

.series-row__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.series-row__title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.series-row__desc {
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.62;
  max-width: 52ch;
}

.series-row__count {
  justify-self: start;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.55;
}

.series-row__arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  opacity: 0.35;
  transition: transform 0.45s var(--ease), opacity 0.45s, background 0.45s, color 0.45s;
}

.series-row:hover .series-row__arrow {
  opacity: 1;
  transform: translate(2px, -2px);
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* ==========================================================================
   Numbers / chart
   ========================================================================== */

.numbers {
  overflow: hidden;
}

.numbers .section__num {
  display: none;
}

.numbers__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.numbers__lede {
  max-width: 42ch;
  margin: 28px 0 0;
  font-size: 1.03rem;
  line-height: 1.7;
  color: rgba(241, 235, 219, 0.82);
}

.numbers__big {
  margin-top: clamp(36px, 5vw, 62px);
  padding-top: 24px;
  border-top: 1px solid rgba(241, 235, 219, 0.28);
}

.numbers__big span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.numbers__big small {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.6);
}

.chart {
  border-top: 1px solid rgba(241, 235, 219, 0.32);
  padding-top: 16px;
}

.chart__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.65);
}

.bar-row {
  margin-bottom: 17px;
}

.bar-row__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.bar-row__title {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.bar-row__val {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(241, 235, 219, 0.7);
  white-space: nowrap;
}

.bar-row__track {
  height: 5px;
  margin-top: 8px;
  background: rgba(241, 235, 219, 0.16);
  overflow: hidden;
}

.bar-row__track span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber-light), var(--bone));
  transition: width 1.4s var(--ease);
}

.chart.is-in .bar-row__track span {
  width: var(--w);
}

.chart.is-in .bar-row:nth-child(2) span { transition-delay: 0.06s; }
.chart.is-in .bar-row:nth-child(3) span { transition-delay: 0.12s; }
.chart.is-in .bar-row:nth-child(4) span { transition-delay: 0.18s; }
.chart.is-in .bar-row:nth-child(5) span { transition-delay: 0.24s; }
.chart.is-in .bar-row:nth-child(6) span { transition-delay: 0.3s; }
.chart.is-in .bar-row:nth-child(7) span { transition-delay: 0.36s; }

.chart__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 8px;
  border-top: 1px solid rgba(241, 235, 219, 0.25);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: rgba(241, 235, 219, 0.45);
}

.chart__note {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.45);
}

/* ==========================================================================
   Expedition
   ========================================================================== */

.expedition {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(90px, 14vh, 160px) 0 clamp(60px, 9vh, 110px);
  overflow: hidden;
  background: var(--ink);
}

.expedition__media {
  position: absolute;
  inset: -8% 0;
}

.expedition__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  will-change: transform;
}

.expedition__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 10, 7, 0.96) 0%, rgba(8, 10, 7, 0.72) 45%, rgba(8, 10, 7, 0.35) 100%),
    linear-gradient(90deg, rgba(8, 10, 7, 0.9) 0%, rgba(8, 10, 7, 0.62) 45%, rgba(8, 10, 7, 0.12) 100%);
}

.expedition__inner {
  position: relative;
  z-index: 2;
}

.expedition__inner .display {
  max-width: 15ch;
  text-shadow: 0 2px 30px rgba(8, 10, 7, 0.35);
}

.expedition__copy {
  max-width: 48ch;
  margin: 26px 0 30px;
  font-size: 1.03rem;
  line-height: 1.7;
  color: rgba(241, 235, 219, 0.82);
}

.expedition__coords {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(241, 235, 219, 0.5);
}

/* ==========================================================================
   Films
   ========================================================================== */

.latest {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 12px 18px 12px 12px;
  margin-bottom: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line-light);
  background: rgba(10, 13, 9, 0.025);
  transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s;
}

.latest:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.latest__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.latest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  transition: filter 0.5s, transform 0.9s var(--ease);
}

.latest:hover .latest__thumb img {
  filter: none;
  transform: scale(1.035);
}

.latest__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease);
}

.latest__play svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.latest:hover .latest__play {
  transform: translate(-50%, -50%) scale(1.1);
}

.latest__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.latest__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}

.latest:hover .latest__tag {
  color: var(--amber);
}

.latest__tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(168, 70, 43, 0.14);
}

.latest__title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.latest__meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.films__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3.5vw, 46px) clamp(20px, 3vw, 38px);
}

.film {
  display: block;
}

.film--wide {
  grid-column: span 2;
}

.film.film--wide {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  background: var(--ink);
  color: var(--bone);
}

.film__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 9;
}

.film--wide .film__media {
  aspect-ratio: 16 / 9;
  height: 100%;
}

.film__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s;
}

.film:hover .film__media img {
  transform: scale(1.045);
}

.film--small .film__media img {
  filter: grayscale(1) sepia(0.28) contrast(1.08) brightness(0.9);
}

.film--small:hover .film__media img {
  filter: none;
}

.film--small .film__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(22, 36, 26, 0.42);
  mix-blend-mode: multiply;
  transition: opacity 0.5s;
}

.film--small:hover .film__media::after {
  opacity: 0;
}

.film__badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(9, 12, 8, 0.82);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.film__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(241, 235, 219, 0.94);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s var(--ease), background 0.4s;
}

.film__play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.film:hover .film__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.film--wide .film__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: var(--amber);
}

.film--wide:hover .film__play {
  background: var(--amber);
}

.film__body {
  display: block;
  padding-top: 16px;
}

.film--wide .film__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 44px);
}

.film__kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
}

.film--wide .film__kicker {
  color: var(--amber);
}

.film__title {
  display: block;
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.film--wide .film__title {
  max-width: 18ch;
  font-size: clamp(1.6rem, 2.9vw, 2.5rem);
  color: var(--bone);
}

.film__desc {
  display: block;
  max-width: 34ch;
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(241, 235, 219, 0.66);
}

.film__meta {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 13, 9, 0.5);
}

.film--wide .film__meta {
  margin-top: 16px;
  color: rgba(241, 235, 219, 0.5);
}

.film-list {
  margin-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line-light);
}

.film-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  transition: color 0.3s, padding-left 0.4s var(--ease);
}

.film-list a:hover {
  color: var(--rust);
  padding-left: 10px;
}

.film-list__meta {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 13, 9, 0.5);
  white-space: nowrap;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(28, 42, 30, 0.85), transparent 70%),
    var(--ink);
}

.gallery__bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.5);
}

.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}

.shot {
  margin: 0;
}

.shot button {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: var(--ink-2);
  cursor: zoom-in;
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.6s;
  filter: saturate(0.92) brightness(0.97);
}

.shot:hover img,
.shot button:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1);
}

.shot figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 44px 16px 14px;
  background: linear-gradient(0deg, rgba(8, 10, 7, 0.88), transparent);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--bone);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.shot:hover figcaption,
.shot button:focus-visible figcaption {
  opacity: 1;
  transform: none;
}

.shot__expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(241, 235, 219, 0.5);
  border-radius: 50%;
  color: var(--bone);
  font-size: 12px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s, transform 0.35s var(--ease), background 0.35s, color 0.35s;
}

.shot:hover .shot__expand,
.shot button:focus-visible .shot__expand {
  opacity: 1;
  transform: none;
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* ==========================================================================
   Band
   ========================================================================== */

.band {
  position: relative;
  height: clamp(170px, 19vw, 270px);
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 10, 7, 0.62), transparent 55%);
  pointer-events: none;
}

.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

.band figcaption {
  position: absolute;
  left: var(--gutter);
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.8);
}

.band figcaption span {
  color: var(--amber);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0 clamp(90px, 12vw, 150px);
  text-align: center;
  overflow: hidden;
  color: var(--ink);
  background: radial-gradient(120% 130% at 50% 0%, #e3b15c 0%, var(--amber) 52%, #c88d38 100%);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10, 13, 9, 0.14) 0.6px, transparent 0.6px);
  background-size: 5px 5px;
  opacity: 0.35;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta .label {
  color: rgba(10, 13, 9, 0.6);
  margin-bottom: 16px;
}

.cta .display {
  font-size: clamp(3rem, 8vw, 7rem);
}

.cta .display em {
  color: var(--ink);
}

.cta__copy {
  max-width: 48ch;
  margin: 26px 0 32px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(10, 13, 9, 0.72);
}

.cta__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  position: relative;
  display: block;
  width: 132px;
  height: 132px;
  margin-bottom: 28px;
  color: var(--ink);
}

.badge__ring {
  width: 100%;
  height: 100%;
  animation: spin 28s linear infinite;
}

.badge__ring text {
  font-family: var(--mono);
  font-size: 8.2px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: currentColor;
}

.badge__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--amber);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), background 0.4s, color 0.4s;
}

.badge__play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.badge:hover .badge__ring {
  animation-play-state: paused;
}

.badge:hover .badge__play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--bone);
  color: var(--ink);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  padding: 64px 0 26px;
  background: var(--ink);
  color: var(--bone);
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer__brand p {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.3;
}

.footer__brand span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.footer__nav,
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.7);
}

.footer__links {
  align-items: flex-end;
}

.footer__nav a:hover,
.footer__links a:hover {
  color: var(--amber);
}

.footer__mark {
  margin: 58px 0 58px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4rem, 17.5vw, 17rem);
  line-height: 0.75;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 235, 219, 0.18);
  pointer-events: none;
  user-select: none;
}

.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.footer__base p {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.46);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

/* ==========================================================================
   Back to top
   ========================================================================== */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 180;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(241, 235, 219, 0.3);
  background: var(--ink);
  color: var(--bone);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  background: rgba(7, 9, 6, 0.97);
  color: var(--bone);
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.lightbox::backdrop {
  background: rgba(7, 9, 6, 0.92);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
  padding: 18px 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}

.lightbox__nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
  margin-right: 8px;
}

.lightbox__nav button,
.lightbox__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s, color 0.3s;
}

.lightbox__nav button:hover,
.lightbox__close:hover {
  background: var(--bone);
  color: var(--ink);
}

.lightbox figure {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0 24px 30px;
}

.lightbox img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox figcaption {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  text-align: center;
}

/* ==========================================================================
   Reveals and masks
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero .reveal {
  transform: translateY(28px);
}

.hero .reveal.is-in {
  transform: none;
}

.mask img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.25s var(--ease);
}

.reveal.is-in .mask img,
.mask.is-in img {
  clip-path: inset(0);
}

.keeper__inset.mask img {
  transition-delay: 0.18s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
  .specimen {
    display: none;
  }

  .hero__side {
    display: none;
  }
}

@media (max-width: 1100px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .btn--nav {
    margin-left: auto;
  }

  .section-head--split {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .keeper__grid {
    grid-template-columns: 1fr;
  }

  .plate__grid {
    grid-template-columns: 1fr;
  }

  .pull {
    margin-top: 0;
  }

  .index {
    grid-template-columns: 1fr;
  }

  .index__viewer {
    position: relative;
    top: 0;
  }

  .index__frame {
    aspect-ratio: 16 / 11;
  }

  .numbers__grid {
    grid-template-columns: 1fr;
  }

  .films__grid {
    grid-template-columns: 1fr;
  }

  .film--wide,
  .film.film--wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .film--wide .film__media {
    aspect-ratio: 16 / 9;
  }

  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__links {
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .topbar {
    display: none;
  }

  .mobile-menu {
    padding-top: 84px;
  }

  .nav {
    height: 64px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero__inner {
    padding-bottom: 178px;
  }

  .hero__title {
    font-size: clamp(4rem, 19vw, 7rem);
    padding-bottom: 0.26em;
  }

  .hero__title em {
    margin-left: 0.08em;
  }

  .hero__lede {
    max-width: 36ch;
    margin-top: 24px;
    font-size: 0.98rem;
  }

  .hero__actions .link-underline {
    padding: 12px 0 4px;
  }

  .hero__foot {
    align-items: flex-end;
  }

  .hero__stats {
    gap: 22px;
  }

  .hero__stats dd {
    font-size: 1.2rem;
  }

  .scroll-cue {
    display: none;
  }

  .section__num {
    font-size: clamp(4.8rem, 19vw, 7.5rem);
    top: 14px;
    right: 8px;
    opacity: 0.6;
  }

  .keeper__gallery {
    display: block;
    padding-bottom: 0;
  }

  .keeper__main img {
    aspect-ratio: 4 / 3;
  }

  .keeper__inset {
    width: 58%;
    margin: -52px 0 0 auto;
    padding: 7px;
  }

  .keeper__signature {
    align-items: flex-start;
  }

  .pull cite {
    display: block;
    padding-right: 46px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 56px;
  }

  .plate__legend {
    grid-template-columns: 1fr;
  }

  .plate__data {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .plate__figure {
    padding: 10px;
  }

  .plate__scroll svg {
    min-width: 680px;
  }

  .plate__hint {
    display: block;
    font-size: 9px;
  }

  .species {
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    padding: 16px 2px;
  }

  .species__size {
    font-size: 8px;
    padding: 4px 7px;
  }

  .index__viewer {
    scroll-margin-top: 84px;
  }

  .latest {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
  }

  .latest__meta {
    display: none;
  }

  .stat {
    padding-right: 14px;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid var(--line-light);
  }

  .also__grid {
    grid-template-columns: 1fr;
  }

  .series-row {
    grid-template-columns: 30px minmax(0, 1fr) auto 26px;
    gap: 12px;
    padding: 18px 0;
  }

  .series-row__desc {
    font-size: 0.86rem;
  }

  .series-row__count {
    font-size: 8px;
    padding: 4px 7px;
  }

  .masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .shot button {
    aspect-ratio: 4 / 5;
  }

  .shot img {
    height: 100%;
  }

  .shot figcaption {
    opacity: 1;
    transform: none;
    padding: 30px 10px 9px;
    font-size: 8px;
    letter-spacing: 0.06em;
    line-height: 1.4;
  }

  .shot__expand {
    opacity: 1;
    transform: none;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .film-list a {
    flex-direction: column;
    gap: 4px;
  }

  .expedition {
    min-height: 82vh;
  }

  .expedition__coords {
    display: none;
  }

  .cta .display {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .cta {
    padding: 72px 0 84px;
  }

  .cta__copy {
    margin: 20px 0 26px;
    font-size: 0.96rem;
  }

  .badge {
    width: 104px;
    height: 104px;
  }

  .lightbox__bar {
    width: calc(100% - 32px);
    padding: 12px 0;
  }

  .lightbox__nav button,
  .lightbox__close {
    width: 44px;
    height: 44px;
  }

  .lightbox img {
    max-height: 70vh;
  }

  .footer__links a {
    padding: 4px 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer__mark {
    font-size: 16vw;
    margin: 40px 0 42px;
  }

  .to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }

  .footer__base {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .btn--nav {
    display: none;
  }

  .plate__figure {
    padding: 8px;
  }

  .plate__scroll svg {
    min-width: 640px;
  }

  .latest {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 9px;
  }

  .latest__tag {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .latest__title {
    font-size: 1.05rem;
  }

  .brand__text {
    font-size: 18px;
  }

  .hero__actions {
    gap: 18px;
  }

  .hero__foot {
    padding-bottom: 18px;
  }

  .hero__stats {
    gap: 16px;
  }

  .hero__stats dt {
    font-size: 7.5px;
  }

  .hero__stats dd {
    font-size: 1.05rem;
  }

  .index__caption-top {
    flex-direction: column;
    gap: 4px;
  }

  .index__meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  .index__meta a {
    margin-left: 0;
    width: auto;
  }

  .index__meta a[href*="playlist"] {
    display: none;
  }

  .numbers__big span {
    font-size: 3.6rem;
  }

  .bar-row__title {
    font-size: 0.92rem;
  }

  .badge {
    width: 100px;
    height: 100px;
  }

  .badge__ring text {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .mask img {
    clip-path: none;
  }

  .bar-row__track span {
    width: var(--w);
  }
}

@media (min-width: 821px) {
  .footer__base p:last-child {
    padding-right: 64px;
  }
}

@media (max-width: 1250px) and (min-width: 1101px) {
  .nav__links {
    gap: 16px;
  }
}

@media (max-width: 820px) and (max-height: 720px) {
  .mobile-menu {
    padding-top: 72px;
    gap: 18px;
  }

  .mobile-menu nav a {
    font-size: 1.65rem;
    padding: 8px 0;
  }
}

/* The footer carries a back-to-top link; keep the floating control for touch screens only. */
@media (min-width: 821px) {
  .to-top {
    display: none;
  }
}

@media (max-width: 820px) {
  .to-top {
    width: 40px;
    height: 40px;
    right: 16px;
    bottom: 16px;
    background: rgba(10, 13, 9, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-color: rgba(241, 235, 219, 0.38);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }
}

/* Live channel data */
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
  vertical-align: middle;
  transition: background 0.3s;
}

.live-dot.is-live {
  background: var(--rust);
  animation: livePulse 2.4s ease-out infinite;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 2px 6px 2px 5px;
  border: 1px solid rgba(138, 151, 122, 0.35);
  border-radius: 999px;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 70, 43, 0.4); }
  70% { box-shadow: 0 0 0 5px rgba(168, 70, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 70, 43, 0); }
}

/* Comments from the latest upload */
.comments__intro {
  max-width: 390px;
}

.comments__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.comments__video {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
  padding: 15px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.comments__video-thumb {
  width: 96px;
  height: 54px;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line-light);
}

.comments__video-label,
.comments__video-time {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
}

.comments__video-title {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.3s;
}

.comments__video-title:hover {
  color: var(--rust);
}

.comments__video-play {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(10, 13, 9, 0.25);
  border-radius: 50%;
  color: var(--ink);
  flex: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.comments__video-play svg {
  width: 9px;
  height: 10px;
  margin-left: 1px;
}

.comments__video-play:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.comments__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  margin-top: 6px;
}

.comment:first-child {
  grid-column: 1 / -1;
}

.comment:first-child .comment__mark {
  font-size: 4rem;
}

.comment:first-child .comment__text {
  max-width: 44ch;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.3;
  -webkit-line-clamp: 4;
}

.comment:first-child .comment__foot {
  padding-top: 24px;
}

.comment {
  display: flex;
  flex-direction: column;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line-light);
}

.comment__mark {
  font-family: var(--serif);
  font-size: 2.8rem;
  line-height: 0.75;
  color: var(--rust);
  opacity: 0.45;
}

.comment__text {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.comment__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 20px;
}

.comment__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  flex: none;
}

.comment__author {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.comment__meta {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: rgba(10, 13, 9, 0.45);
}

.comment__link {
  margin-left: auto;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
  transition: color 0.3s;
}

.comment__link:hover {
  color: var(--rust);
}

.comments__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
}

.comments__updated {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: rgba(10, 13, 9, 0.45);
}

@media (max-width: 820px) {
  .comments__video {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .comments__video-title {
    flex: 1 1 100%;
    order: 3;
  }

  .comments__video-label {
    order: 1;
  }

  .comments__video-time {
    order: 2;
  }

  .comments__video-play {
    order: 4;
    margin-left: auto;
  }

  .comments__video-thumb {
    width: 80px;
    height: 45px;
    order: 0;
  }

  .comments__grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .comment:first-child .comment__text {
    max-width: none;
    font-size: 1.3rem;
    -webkit-line-clamp: 5;
  }

  .comment:first-child .comment__mark {
    font-size: 3.2rem;
  }

  .comments__foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .comment__text {
    font-size: 1.05rem;
  }

  .comments__status {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot.is-live {
    animation: none;
  }
}


/* Channel timeline */
.timeline__track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.timeline__track::before {
  content: "";
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(242, 237, 227, 0.22);
}
.timeline__item {
  position: relative;
  padding-right: 26px;
}
.timeline__year {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--paper);
  font-weight: 400;
}
.timeline__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  margin: 18px 0 20px;
  position: relative;
  z-index: 1;
}
.timeline__item h3 {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 8px;
  font-weight: 400;
}
.timeline__item p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(242, 237, 227, 0.62);
  max-width: 23ch;
}

/* Size chart */
.sizechart {
  margin-top: 44px;
}
.sizechart__ruler {
  display: grid;
  grid-template-columns: 230px 1fr 52px;
  align-items: end;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-light);
}
.sizechart__ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--sage);
}
.sizechart__row {
  display: grid;
  grid-template-columns: 230px 1fr 52px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
}
.sizechart__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
}
.sizechart__bar {
  height: 10px;
  background: rgba(10, 13, 9, 0.08);
  position: relative;
}
.sizechart__fill {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--rust), var(--amber));
}
.sizechart__mm {
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
  color: var(--ink);
}
.sizechart__note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--sage);
  max-width: 60ch;
}

/* Live count in the top bar */
.topbar__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar__live .live-dot {
  width: 4px;
  height: 4px;
}
.topbar__sep {
  margin: 0 8px;
  color: rgba(242, 237, 227, 0.25);
}

@media (max-width: 820px) {
  .timeline__track {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 38px;
    padding-left: 16px;
  }
  .timeline__track::before {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 1px;
    height: auto;
  }
  .timeline__item {
    padding: 0 0 0 26px;
  }
  .timeline__year {
    font-size: 2rem;
  }
  .timeline__dot {
    position: absolute;
    left: -20px;
    top: 10px;
    margin: 0;
  }
  .timeline__item p {
    max-width: none;
  }
  .sizechart__ruler,
  .sizechart__row {
    grid-template-columns: 150px 1fr 38px;
  }
  .sizechart__name {
    font-size: 0.95rem;
  }
}

@media (max-width: 520px) {
  .sizechart__ruler {
    display: none;
  }
  .sizechart__row {
    grid-template-columns: 1fr 38px;
    row-gap: 7px;
  }
  .sizechart__name {
    grid-column: 1 / -1;
  }
  .sizechart__bar {
    grid-column: 1;
  }
  .sizechart__mm {
    grid-column: 2;
  }
}


/* The comments CTA must stay legible on the paper section. */
.comments__foot .link-underline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1;
}

.comments__foot .link-underline::after {
  display: none;
}

.comments__foot .link-underline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

/* Channel facts */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(28px, 4vw, 44px) 0 0;
  border-top: 1px solid var(--line-light);
}
.facts > div {
  padding: 18px 24px 18px 0;
  border-bottom: 1px solid var(--line-light);
}
.facts dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(10, 13, 9, 0.55);
}
.facts dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
@media (max-width: 820px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { padding: 14px 0; }
}

/* Hero declutter */
.topbar p + p { display: none; }
.hero__side { display: none; }
.scroll-cue { display: none; }

/* Hero balance */
.hero__title { font-size: clamp(4.4rem, 11.2vw, 11rem); }
.hero__title em { margin-left: 0.22em; }
.hero__media img { object-position: 55% 42%; }

@media (max-width: 820px) {
  .hero__media img { object-position: 43% 42%; }
}


.plate__figure--photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Latest from YouTube */
.latest-videos__aside {
  max-width: 46ch;
  justify-self: end;
}
.latest-videos .section-head__note {
  color: rgba(241, 235, 219, 0.64);
}
.latest-videos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
  margin-top: clamp(30px, 4vw, 48px);
}
.latest-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--bone);
  text-decoration: none;
  background: rgba(6, 10, 7, 0.28);
  border: 1px solid rgba(241, 235, 219, 0.16);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}
.latest-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 160, 74, 0.55);
  background: rgba(6, 10, 7, 0.4);
}
.latest-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0d09;
}
.latest-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.latest-card:hover .latest-card__media img {
  transform: scale(1.035);
}
.latest-card__play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: #11140d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.latest-card__play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}
.latest-card__date {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(241, 235, 219, 0.18);
  background: rgba(6, 10, 7, 0.72);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.78);
}
.latest-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
}
.latest-card__kicker {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.latest-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.latest-videos__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 235, 219, 0.55);
}
.latest-videos__status .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex: 0 0 auto;
}
.latest-videos__status .live-dot.is-cached {
  background: rgba(241, 235, 219, 0.35);
}
@media (max-width: 980px) {
  .latest-videos__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .latest-videos__grid { grid-template-columns: 1fr; }
  .latest-videos__aside { justify-self: start; }
}

.latest-videos .btn--outline {
  color: var(--bone);
  border-color: rgba(241, 235, 219, 0.3);
}
.latest-videos .btn--outline:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

@media (min-width: 681px) and (max-width: 980px) {
  .latest-card:nth-child(3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
  }
  .latest-card:nth-child(3) .latest-card__media {
    height: 100%;
    aspect-ratio: 16 / 9;
  }
  .latest-card:nth-child(3) .latest-card__body {
    justify-content: center;
  }
}

.latest-videos .section-more {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 30px);
  flex-wrap: wrap;
}
.section-more__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(241, 235, 219, 0.3);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  transition: color 0.3s, border-color 0.3s;
}
.section-more__link:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.section-more__link {
  white-space: nowrap;
}
.section-more__link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.nowrap { white-space: nowrap; }

@media (max-width: 820px) {
  .to-top {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}


/* ==========================================================================
   UI polish: header balance, collection focus, series and video controls
   ========================================================================== */
.topbar p + p { display: block; }
.topbar p:last-child { color: rgba(241, 235, 219, 0.48); }
.topbar p:last-child span { color: var(--amber); opacity: 0.75; margin: 0 6px; }

.species.is-active {
  color: var(--bone);
  background: linear-gradient(90deg, rgba(217, 160, 74, 0.14), rgba(217, 160, 74, 0.035) 55%, transparent);
  box-shadow: inset 2px 0 0 var(--amber);
}
.species.is-active .species__name { color: var(--amber); }
.species.is-active .species__name em { color: rgba(241, 235, 219, 0.55); }
.species.is-active .species__no { color: var(--amber); opacity: 0.9; }
.species.is-active .species__size { color: var(--amber); border-color: rgba(217, 160, 74, 0.45); opacity: 0.9; }
.species:focus-visible {
  outline: 1px solid rgba(217, 160, 74, 0.85);
  outline-offset: -1px;
  border-radius: 2px;
}

.series-row:hover .series-row__no { color: var(--amber); opacity: 1; }
.series-row:hover .series-row__count { color: var(--amber); border-color: rgba(217, 160, 74, 0.55); opacity: 0.9; }
.series-row:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: -1px;
}

.film__play {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(241, 235, 219, 0.16);
}
.film--wide .film__play { background: var(--amber); }
.latest-card__play { transition: transform 0.35s var(--ease), background 0.35s; }
.latest-card:hover .latest-card__play { transform: scale(1.08); background: var(--bone); }


/* ==========================================================================
   Footer composition: two-column index, clearer wordmark spacing
   ========================================================================== */
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  align-content: start;
  column-gap: clamp(22px, 3vw, 42px);
  row-gap: 10px;
}
.footer__nav::before {
  content: "Index";
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--sage);
  font-size: 8px;
  letter-spacing: 0.16em;
}
.footer__nav a {
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__nav a:hover { transform: translateX(3px); }
.footer__mark {
  line-height: 0.86;
  margin: 54px 0 48px;
  padding-bottom: 6px;
}
@media (max-width: 520px) {
  .footer__mark { line-height: 0.86; margin: 36px 0 38px; }
}
@media (max-width: 340px) {
  .footer__nav { grid-template-columns: 1fr; }
}


@media (min-width: 521px) and (max-width: 820px) {
  .footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ==========================================================================
   Series: interactive preview and mobile thumbnails
   ========================================================================== */
.series__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.series__list { min-width: 0; }
.series__preview {
  position: sticky;
  top: calc(var(--head-h) - 4px);
  margin: 0;
}
.series__preview-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-2);
}
.series__preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: opacity 0.35s var(--ease), transform 0.8s var(--ease);
}
.series__preview-media img.is-swapping { opacity: 0.35; }
.series__preview-caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}
.series__preview-no,
.series__preview-count {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 13, 9, 0.5);
  white-space: nowrap;
}
.series__preview-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.series-row__thumb { display: none; }

@media (max-width: 1100px) {
  .series__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .series__preview { display: none; }
  .series-row {
    grid-template-columns: 30px 60px minmax(0, 1fr) auto 26px;
    gap: 14px;
  }
  .series-row__thumb {
    display: block;
    width: 60px;
    height: 60px;
    overflow: hidden;
    background: var(--ink-2);
  }
  .series-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) brightness(0.9);
  }
}

@media (max-width: 820px) {
  .series-row {
    grid-template-columns: 26px 54px minmax(0, 1fr) 24px;
    gap: 10px;
  }
  .series-row__thumb { width: 54px; height: 54px; }
  .series-row__count { display: none; }
}

@media (max-width: 520px) {
  .series-row {
    grid-template-columns: 22px 46px minmax(0, 1fr) 22px;
    gap: 9px;
    padding: 16px 0;
  }
  .series-row__thumb { width: 46px; height: 46px; }
}

/* Live subscriber count: topbar, refresh flash and reconnect state */
.topbar p:last-child .topbar__live {
  opacity: 1;
  margin: 0 8px 0 0;
  color: rgba(241, 235, 219, 0.72);
  letter-spacing: 0.12em;
}
.topbar p:last-child .topbar__live .live-dot {
  opacity: 1;
  margin: 0;
}
.topbar p:last-child .topbar__live [data-live-subs] {
  opacity: 1;
  margin: 0;
  color: var(--bone);
  font-weight: 500;
}
.live-dot.is-stale {
  background: var(--amber);
}
[data-live-subs].is-bumped {
  animation: liveCountBump 0.7s var(--ease);
}
@keyframes liveCountBump {
  0% { color: var(--amber); }
  100% { color: inherit; }
}
@media (prefers-reduced-motion: reduce) {
  [data-live-subs].is-bumped { animation: none; }
}
