:root {
  color-scheme: dark;
  --species-bg: #040a12;
  --species-surface: #07131f;
  --species-text: #f4f8fb;
  --species-muted: #8ba8b8;
  --species-teal: #14f1c4;
  --species-blue: #1fa2ff;
  --species-gold: #cfaf70;
  --species-line: rgba(139, 196, 214, 0.15);
  --species-shell: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 76% 6%, rgba(20, 241, 196, 0.08), transparent 28rem),
    radial-gradient(circle at 10% 30%, rgba(31, 162, 255, 0.08), transparent 30rem),
    var(--species-bg);
  color: var(--species-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.species-shell {
  width: min(var(--species-shell), calc(100% - 48px));
  margin-inline: auto;
}

.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-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--species-teal);
  color: #02110e;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(139, 196, 214, 0.1);
  background: rgba(4, 10, 18, 0.84);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.98rem;
  font-weight: 720;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(20, 241, 196, 0.22));
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #a9bec9;
  font-size: 0.84rem;
  font-weight: 610;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(20, 241, 196, 0.08);
  color: var(--species-text);
}

.species-page {
  padding-bottom: clamp(90px, 12vw, 150px);
}

.profile-loading {
  min-height: 70vh;
  display: grid;
  place-items: center;
  color: var(--species-muted);
}

.compact-profile-page .hero-portrait img {
  object-position: center;
}

.species-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(42px, 8vw, 104px);
  padding-block: clamp(70px, 9vw, 126px) clamp(72px, 10vw, 132px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
  color: #6d8997;
  font-size: 0.76rem;
}

.breadcrumbs a {
  color: #90aab7;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--species-teal);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--species-gold);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.species-hero h1 {
  margin: 0;
  font-size: clamp(3.35rem, 7vw, 6.75rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-wrap: balance;
}

.common-name {
  margin: 23px 0 0;
  color: #c4d6df;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.5;
}

.species-lede {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--species-muted);
  font-size: 1rem;
  line-height: 1.78;
}

.archive-profile-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 9px 13px;
  border: 1px solid rgba(207, 175, 112, 0.3);
  border-radius: 999px;
  background: rgba(207, 175, 112, 0.07);
  color: #ddc99f;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.archive-profile-status::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--species-gold);
  content: "";
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--species-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--species-text);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  border-color: rgba(20, 241, 196, 0.42);
  background: rgba(20, 241, 196, 0.08);
}

.button-primary {
  border-color: transparent;
  background: var(--species-teal);
  color: #02110e;
}

.button-primary:hover {
  background: #68f7dc;
}

.hero-portrait {
  position: relative;
  min-height: 570px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--species-line);
  border-radius: 30px;
  background: var(--species-surface);
}

.hero-portrait::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(to top, rgba(2, 7, 12, 0.86), transparent);
  content: "";
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  min-height: 570px;
  display: block;
  object-fit: cover;
  object-position: 51% 50%;
}

.hero-portrait figcaption {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 25px;
  left: 28px;
  color: #b7cbd5;
  font-size: 0.78rem;
  line-height: 1.55;
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: clamp(82px, 11vw, 138px);
  border: 1px solid var(--species-line);
  border-radius: 22px;
  background: var(--species-surface);
}

.fact {
  min-width: 0;
  padding: 24px;
}

.fact + .fact {
  border-left: 1px solid var(--species-line);
}

.fact-label {
  display: block;
  margin-bottom: 9px;
  color: #647f8d;
  font-size: 0.64rem;
  font-weight: 740;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fact-value {
  display: block;
  color: #d7e3e8;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
}

.profile-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(44px, 10vw, 132px);
  padding-block: clamp(72px, 9vw, 112px);
  border-top: 1px solid var(--species-line);
}

.section-heading {
  position: sticky;
  top: 112px;
  align-self: start;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4.5vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
  text-wrap: balance;
}

.section-copy {
  min-width: 0;
}

.section-copy h3 {
  margin: 2.4em 0 0.7em;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-copy h3:first-child {
  margin-top: 0;
}

.section-copy p {
  margin: 0 0 1.45em;
  color: #a3bac6;
  font-size: 1rem;
  line-height: 1.85;
}

.species-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 42px;
}

.species-guide-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--species-line);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(20, 241, 196, 0.035), transparent 52%),
    var(--species-surface);
}

.species-guide-card > span {
  display: block;
  margin-bottom: 12px;
  color: var(--species-gold);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.species-guide-card p {
  margin: 0;
  color: #91aab6;
  font-size: 0.82rem;
  line-height: 1.7;
}

.section-copy a,
.source-list a {
  color: var(--species-teal);
  text-decoration: none;
}

.section-copy a:hover,
.source-list a:hover {
  color: var(--species-text);
  text-decoration: underline;
}

.context-note,
.safety-note {
  margin: 34px 0;
  padding: 24px;
  border: 1px solid var(--species-line);
  border-radius: 18px;
  background: var(--species-surface);
}

.context-note strong,
.safety-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--species-text);
  font-size: 0.84rem;
}

.context-note p,
.safety-note p {
  margin: 0;
  color: #89a3b0;
  font-size: 0.88rem;
  line-height: 1.72;
}

.safety-note {
  border-color: rgba(207, 175, 112, 0.28);
  background: rgba(207, 175, 112, 0.055);
}

.alma-intro {
  max-width: 760px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.photo-card {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--species-line);
  border-radius: 20px;
  background: var(--species-surface);
}

.photo-card:first-child {
  grid-column: span 7;
}

.photo-card:nth-child(2) {
  grid-column: span 5;
}

.photo-card:nth-child(3) {
  grid-column: 3 / span 8;
}

.photo-card::after {
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(to top, rgba(2, 7, 12, 0.75), transparent);
  content: "";
  pointer-events: none;
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-card:first-child img {
  object-position: 56% 54%;
}

.photo-card:nth-child(2) img {
  object-position: 50% 49%;
}

.photo-card:nth-child(3) img {
  object-position: 51% 52%;
}

.photo-card figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 17px;
  left: 18px;
  color: #c2d2da;
  font-size: 0.73rem;
}

.profile-video-card {
  overflow: hidden;
  border: 1px solid rgba(20, 241, 196, 0.18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(8, 24, 36, 0.96), rgba(5, 14, 24, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.profile-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #02070c;
}

.profile-video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.profile-video-copy {
  padding: clamp(24px, 4vw, 38px);
}

.profile-video-label {
  display: block;
  margin-bottom: 12px;
  color: var(--species-gold);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-video-copy h3 {
  margin: 0 0 12px;
  color: var(--species-text);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.profile-video-copy p {
  margin-bottom: 20px;
}

.profile-video-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.82rem;
  font-weight: 750;
}

.profile-media-links,
.profile-resource-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.profile-social-intro {
  max-width: 720px;
}

.profile-instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-instagram-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--species-line);
  border-radius: 18px;
  background: var(--species-surface);
  color: var(--species-text);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.profile-instagram-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 241, 196, 0.34);
  background: rgba(20, 241, 196, 0.035);
}

.profile-instagram-card:focus-visible {
  outline: 2px solid var(--species-teal);
  outline-offset: 3px;
}

.profile-instagram-embed {
  min-height: 600px;
  overflow: hidden;
  background: #fff;
}

.profile-instagram-embed iframe {
  width: 100%;
  height: 600px;
  display: block;
  border: 0;
  background: #fff;
}

.profile-instagram-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.profile-instagram-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 8, 15, 0.45), transparent 55%);
  pointer-events: none;
}

.profile-instagram-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  transition: transform 320ms ease;
}

.profile-instagram-card:hover .profile-instagram-media img {
  transform: scale(1.025);
}

.profile-instagram-play {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(4, 7, 13, 0.76);
  color: #fff;
  font-size: 0.8rem;
  backdrop-filter: blur(8px);
}

.profile-instagram-copy {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.profile-instagram-label {
  color: var(--species-gold);
  font-size: 0.63rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-instagram-copy strong {
  font-size: 1rem;
  line-height: 1.35;
}

.profile-instagram-summary {
  color: #839faa;
  font-size: 0.79rem;
  line-height: 1.6;
}

.profile-instagram-action {
  margin-top: 4px;
  color: var(--species-teal);
  font-size: 0.72rem;
  font-weight: 740;
}

.profile-instagram-action a {
  color: inherit;
  text-decoration: none;
}

.profile-resource-links {
  margin-top: 24px;
}

.codex-panel {
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(20, 241, 196, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(20, 241, 196, 0.08), transparent 24rem),
    var(--species-surface);
}

.codex-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 20px;
  padding: 0 10px;
  border: 1px solid rgba(20, 241, 196, 0.22);
  border-radius: 999px;
  color: var(--species-teal);
  font-size: 0.63rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.codex-panel h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.codex-intro {
  max-width: 680px;
  margin: 17px 0 0;
  color: #8ca7b4;
  line-height: 1.75;
}

.codex-status {
  margin: 25px 0 0;
  padding: 18px;
  border: 1px dashed rgba(139, 196, 214, 0.24);
  border-radius: 15px;
  color: #8ca7b4;
  font-size: 0.86rem;
  line-height: 1.65;
}

.codex-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 25px;
}

.codex-metric {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--species-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.018);
}

.codex-metric-label {
  display: block;
  margin-bottom: 8px;
  color: #6f8996;
  font-size: 0.64rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.codex-metric-value {
  display: block;
  color: var(--species-text);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.codex-metric-detail {
  display: block;
  margin-top: 6px;
  color: #6f8996;
  font-size: 0.72rem;
  line-height: 1.45;
}

.codex-privacy {
  margin: 20px 0 0;
  color: #617d8b;
  font-size: 0.75rem;
  line-height: 1.6;
}

.related-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-profile-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--species-line);
  border-radius: 18px;
  background: var(--species-surface);
  color: var(--species-text);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.related-profile-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 241, 196, 0.32);
  background: rgba(20, 241, 196, 0.035);
}

.related-profile-card:focus-visible {
  outline: 2px solid var(--species-teal);
  outline-offset: 3px;
}

.related-profile-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.related-profile-copy {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.related-profile-copy strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-profile-copy i {
  overflow: hidden;
  color: #7895a3;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-research-link {
  margin: 24px 0 0 !important;
}

.source-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding: 19px 21px;
  border: 1px solid var(--species-line);
  border-radius: 15px;
  background: var(--species-surface);
  color: #8ca7b4;
  font-size: 0.84rem;
  line-height: 1.65;
}

.source-list strong {
  display: block;
  margin-bottom: 4px;
  color: #c9d8df;
}

.site-footer {
  border-top: 1px solid var(--species-line);
  color: #607d8c;
  font-size: 0.76rem;
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

.footer-links a {
  color: #7593a2;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--species-teal);
}

@media (max-width: 920px) {
  .species-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-portrait,
  .hero-portrait img {
    min-height: 520px;
  }

  .facts-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact:nth-child(3),
  .fact:nth-child(5) {
    border-left: 0;
    border-top: 1px solid var(--species-line);
  }

  .fact:nth-child(4) {
    border-top: 1px solid var(--species-line);
  }

  .profile-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .species-guide-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
    max-width: 620px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 132px;
  }

  .species-shell {
    width: min(100% - 32px, var(--species-shell));
  }

  .header-inner {
    min-height: 108px;
    flex-wrap: wrap;
    gap: 2px 14px;
    padding-block: 8px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    overflow-x: visible;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    padding-inline: 6px;
    font-size: 0.76rem;
  }

  .species-hero {
    padding-top: 48px;
  }

  .species-hero h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .hero-portrait,
  .hero-portrait img {
    min-height: 440px;
  }

  .facts-strip {
    grid-template-columns: 1fr;
  }

  .fact + .fact,
  .fact:nth-child(3) {
    border-top: 1px solid var(--species-line);
    border-left: 0;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .photo-card,
  .photo-card:first-child,
  .photo-card:nth-child(2),
  .photo-card:nth-child(3) {
    grid-column: auto;
    min-height: 340px;
  }

  .codex-metrics {
    grid-template-columns: 1fr;
  }

  .related-profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-instagram-grid {
    grid-template-columns: 1fr;
  }

  .profile-instagram-embed,
  .profile-instagram-embed iframe {
    min-height: 560px;
    height: 560px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 28px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .profile-instagram-card,
  .profile-instagram-media img {
    transition: none;
  }
}
