:root {
  color-scheme: light;
  --ink: #101417;
  --muted: #5d686f;
  --line: #d9e2e3;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --aqua: #1f9a9a;
  --aqua-dark: #0e686b;
  --coral: #d44f48;
  --gold: #d69b35;
  --violet: #6957a8;
  --shadow: 0 18px 50px rgba(14, 34, 39, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 245, 0.9);
  border-bottom: 1px solid rgba(16, 20, 23, 0.08);
  backdrop-filter: blur(18px);
}

.site-header > .nav {
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 9px 11px;
  border-radius: 999px;
}

.nav a:hover {
  background: #e7eeee;
  color: var(--ink);
}

.nav a.active {
  background: var(--ink);
  color: #fff;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #e9eeee;
  border-radius: 999px;
}

.lang-button {
  min-width: 42px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
}

.lang-button.active,
.lang-button:hover {
  background: var(--ink);
  color: #fff;
}

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0b1113;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.1), rgba(5, 8, 9, 0.48) 52%, rgba(5, 8, 9, 0.72)),
    linear-gradient(90deg, rgba(5, 8, 9, 0.8), rgba(5, 8, 9, 0.18) 52%, rgba(5, 8, 9, 0.34));
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  padding: 0 clamp(20px, 5vw, 72px) clamp(38px, 8vh, 72px);
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--aqua-dark);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ae4df;
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 13vw, 168px);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.4vw, 28px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button,
.chip,
.icon-button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-weight: 720;
}

.button.primary {
  background: var(--aqua);
  color: #fff;
}

.button.primary:hover {
  background: var(--aqua-dark);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.section .button.ghost,
.panel .button.ghost,
.submit-band .button.ghost {
  background: #edf2f1;
  border-color: var(--line);
}

.panel,
.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-main {
  min-height: calc(100vh - 150px);
}

.panel {
  padding: clamp(24px, 5vw, 42px) 0 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 5vw, 72px);
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.section-heading h1,
.submit-band h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.submit-band h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-grid p:last-child,
.section-heading p,
.submit-band p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section {
  padding: clamp(56px, 10vw, 104px) 0 0;
}

.section.page-section {
  padding-top: clamp(42px, 8vw, 86px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading.wide {
  align-items: start;
}

.section-heading.wide > p {
  max-width: 470px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.home-card {
  display: grid;
  align-content: start;
  min-height: 250px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(16, 20, 23, 0.1);
}

.home-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.1;
}

.home-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  font-weight: 680;
}

.chip.active,
.chip:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.fish-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 20, 23, 0.1);
}

.fish-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.fish-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.fish-card:hover img {
  transform: scale(1.035);
}

.fish-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 52px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(2, 4, 5, 0.82));
  color: #fff;
}

.fish-meta h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.tag {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  color: currentColor;
  font-size: 12px;
  font-weight: 720;
}

.trait-list,
.record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trait-card,
.record-card,
.result {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trait-card,
.record-card {
  padding: 18px;
}

.trait-card h3,
.record-card h3,
.result h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.15;
}

.trait-card p,
.record-card p,
.result p {
  margin: 0;
  color: var(--muted);
}

.evidence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #eef5f4;
  color: var(--aqua-dark);
  font-weight: 850;
}

.lab {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
}

.lab-controls {
  display: grid;
  gap: 13px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(31, 154, 154, 0.14);
}

.result {
  padding: 22px;
  min-height: 240px;
}

.result ul,
.record-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.submit-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: clamp(56px, 10vw, 104px);
  padding: 34px;
  background: #102224;
  color: #fff;
  border-radius: var(--radius);
}

.submit-page {
  width: min(1180px, calc(100% - 32px));
}

.submit-band .section-kicker,
.submit-band p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  padding: 24px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.fish-dialog {
  width: min(880px, calc(100% - 28px));
  border: 0;
  padding: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fish-dialog::backdrop {
  background: rgba(5, 9, 10, 0.64);
}

.close-dialog {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(16, 20, 23, 0.82);
}

.dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

.dialog-grid img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.dialog-body {
  padding: 30px;
}

.dialog-body h2 {
  margin: 0 0 12px;
  font-size: 36px;
}

.dialog-body dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  margin: 24px 0 0;
}

.dialog-body dt {
  color: var(--muted);
}

.dialog-body dd {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-header > .nav {
    margin-left: 0;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .intro-grid,
  .home-grid,
  .lab,
  .submit-band,
  .dialog-grid {
    grid-template-columns: 1fr;
  }

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

  .trait-list,
  .record-grid {
    grid-template-columns: 1fr;
  }

  .dialog-grid img {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 78vh;
  }

  .hero h1 {
    font-size: 58px;
  }

  .site-footer {
    flex-direction: column;
  }
}
