/* =========================================================
OCEAN JOURNAL
Editorial / Magazine Website
========================================================= */

/* ================= ROOT ================= */

:root {
  --ink: #101b2d;
  --ink-soft: #344156;

  --cream: #f3f0e9;
  --paper: #faf9f5;

  --blue: #145a72;
  --blue-dark: #083344;

  --aqua: #69c5c7;
  --coral: #d98272;

  --line: rgba(16, 27, 45, 0.15);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;

  --max: 1280px;
}

/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);

  color: var(--ink);

  font-family: var(--sans);

  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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

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

::selection {
  background: var(--blue);
  color: white;
}

/* ================= ACCESSIBILITY ================= */

.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;
}

/* ================= HEADER ================= */

.header {
  position: absolute;

  z-index: 100;

  top: 0;
  left: 0;

  width: 100%;

  height: 92px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 5vw;

  color: white;

  mix-blend-mode: normal;
}

.logo {
  display: flex;
  align-items: center;

  gap: 11px;
}

.logo-mark {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border: 1px solid currentColor;
  border-radius: 50%;

  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
}

.logo-text {
  display: flex;
  flex-direction: column;

  font-size: 13px;
  font-weight: 700;

  line-height: 0.9;

  letter-spacing: 2px;
}

.logo-text small {
  margin-top: 5px;

  font-family: var(--mono);

  font-size: 6px;
  font-weight: 400;

  letter-spacing: 3px;

  opacity: 0.65;
}

.nav {
  display: flex;

  gap: 38px;

  font-family: var(--mono);

  font-size: 9px;

  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav a {
  position: relative;

  opacity: 0.7;

  transition: opacity 0.3s ease;
}

.nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: currentColor;

  transition: width 0.3s ease;
}

.nav a:hover {
  opacity: 1;
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;

  gap: 25px;
}

.search-button {
  display: flex;
  align-items: center;

  gap: 8px;

  background: transparent;

  color: white;

  font-family: var(--mono);
  font-size: 8px;

  letter-spacing: 1px;
  text-transform: uppercase;

  cursor: pointer;

  opacity: 0.75;
}

.search-button span {
  width: 11px;
  height: 11px;

  border: 1px solid currentColor;
  border-radius: 50%;

  position: relative;
}

.search-button span::after {
  content: "";

  position: absolute;

  width: 5px;
  height: 1px;

  right: -4px;
  bottom: -2px;

  background: currentColor;

  transform: rotate(45deg);
}

.menu-button {
  display: none;
}

/* ================= HERO ================= */

.hero {
  position: relative;

  min-height: 100vh;

  display: grid;

  grid-template-columns:
    minmax(40px, 1fr)
    minmax(350px, 600px)
    minmax(400px, 600px)
    minmax(40px, 1fr);

  grid-template-rows: 1fr auto;

  gap: 50px;

  padding: 150px 5vw 80px;

  overflow: hidden;

  background: linear-gradient(115deg, #071a2a 0%, #0b3448 48%, #15556a 100%);

  color: white;
}

/* ================= HERO BACKGROUND ================= */

.hero-background {
  position: absolute;

  inset: 0;

  overflow: hidden;

  pointer-events: none;
}

.hero-background::before {
  content: "";

  position: absolute;

  width: 900px;
  height: 900px;

  right: -250px;
  top: -200px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 50%;
}

.hero-background::after {
  content: "";

  position: absolute;

  width: 700px;
  height: 700px;

  right: -150px;
  top: -100px;

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 50%;
}

.hero-orb {
  position: absolute;

  width: 500px;
  height: 500px;

  right: 4%;
  top: 15%;

  border-radius: 50%;

  background: radial-gradient(
    circle at 35% 30%,
    rgba(105, 197, 199, 0.25),
    transparent 45%
  );

  filter: blur(2px);

  animation: heroFloat 9s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(25px);
  }
}

.hero-lines {
  position: absolute;

  left: 48%;

  top: 0;

  width: 1px;
  height: 100%;

  background: rgba(255, 255, 255, 0.08);
}

.hero-lines span {
  position: absolute;

  top: 0;

  width: 1px;
  height: 100%;

  background: rgba(255, 255, 255, 0.04);
}

.hero-lines span:nth-child(1) {
  left: 180px;
}

.hero-lines span:nth-child(2) {
  left: 360px;
}

.hero-lines span:nth-child(3) {
  left: 540px;
}

/* ================= HERO CONTENT ================= */

.hero-content {
  grid-column: 2;

  align-self: center;

  position: relative;
  z-index: 2;

  max-width: 560px;
}

.section-label {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 25px;

  font-family: var(--mono);

  font-size: 8px;

  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-label span {
  width: 30px;
  height: 1px;

  background: currentColor;
}

.hero h1 {
  font-family: var(--serif);

  font-size: clamp(5rem, 8vw, 8.5rem);

  font-weight: 500;

  line-height: 0.83;

  letter-spacing: -7px;
}

.hero h1 em {
  display: block;

  padding-left: 65px;

  color: var(--aqua);

  font-weight: 400;
}

.hero-intro {
  max-width: 390px;

  margin-top: 42px;

  color: rgba(255, 255, 255, 0.63);

  font-size: 13px;

  line-height: 1.8;
}

.hero-link {
  display: inline-flex;
  align-items: center;

  gap: 25px;

  margin-top: 40px;

  padding-bottom: 9px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.4);

  font-family: var(--mono);

  font-size: 9px;

  letter-spacing: 1px;
  text-transform: uppercase;

  transition: gap 0.3s ease;
}

.hero-link:hover {
  gap: 35px;
}

.hero-link span {
  color: var(--aqua);
}

/* ================= HERO FEATURE ================= */

.hero-feature {
  grid-column: 3;

  align-self: center;

  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns: 1fr 0.75fr;

  align-items: center;

  gap: 35px;

  max-width: 600px;
}

.feature-image {
  position: relative;

  height: 450px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(105, 197, 199, 0.3),
      transparent 40%
    ),
    linear-gradient(145deg, #164f65, #092536);
}

.feature-image::before {
  content: "";

  position: absolute;

  inset: 15px;

  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ================= CSS WHALE ================= */

.whale-illustration {
  position: absolute;

  width: 300px;
  height: 180px;

  left: 50%;
  top: 45%;

  transform: translate(-50%, -50%) rotate(-8deg);

  animation: whaleSwim 6s ease-in-out infinite;
}

@keyframes whaleSwim {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-8deg);
  }

  50% {
    transform: translate(-50%, -55%) rotate(-4deg);
  }
}

.whale-body {
  position: absolute;

  left: 40px;
  top: 30px;

  width: 220px;
  height: 105px;

  border-radius: 55% 45% 48% 50%;

  background: linear-gradient(145deg, #d3e1df, #7d9b9d 50%, #3d626b);

  box-shadow: inset -20px -15px 30px rgba(0, 0, 0, 0.18);
}

.whale-body::before {
  content: "";

  position: absolute;

  left: 40px;
  top: 15px;

  width: 90px;
  height: 40px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.13);
}

.whale-body::after {
  content: "";

  position: absolute;

  right: 28px;
  top: 20px;

  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #152f3a;
}

.whale-fin {
  position: absolute;

  left: 120px;
  bottom: 10px;

  width: 25px;
  height: 75px;

  background: #55777e;

  border-radius: 70% 20% 70% 20%;

  transform: rotate(35deg);
}

.whale-tail {
  position: absolute;

  left: 5px;
  top: 40px;

  width: 70px;
  height: 80px;
}

.whale-tail::before,
.whale-tail::after {
  content: "";

  position: absolute;

  width: 65px;
  height: 38px;

  background: #607f84;

  border-radius: 80% 20% 80% 20%;
}

.whale-tail::before {
  transform: rotate(30deg);
}

.whale-tail::after {
  transform: rotate(-30deg);
}

.image-caption {
  position: absolute;

  left: 25px;
  right: 25px;
  bottom: 25px;

  display: flex;
  justify-content: space-between;

  color: rgba(255, 255, 255, 0.45);

  font-family: var(--mono);

  font-size: 7px;

  letter-spacing: 1px;
  text-transform: uppercase;
}

.feature-copy {
  align-self: end;

  padding-bottom: 10px;
}

.mono-label {
  color: var(--aqua);

  font-family: var(--mono);

  font-size: 8px;

  letter-spacing: 1.7px;

  text-transform: uppercase;
}

.feature-copy h2 {
  margin-top: 17px;

  font-family: var(--serif);

  font-size: 39px;

  font-weight: 500;

  line-height: 0.95;
}

.feature-copy h2 em {
  color: var(--aqua);

  font-weight: 400;
}

.feature-copy > p:not(.mono-label) {
  margin-top: 20px;

  color: rgba(255, 255, 255, 0.5);

  font-size: 11px;

  line-height: 1.7;
}

.read-button {
  margin-top: 25px;

  padding: 0;

  background: transparent;

  color: white;

  font-family: var(--mono);

  font-size: 8px;

  letter-spacing: 1px;
  text-transform: uppercase;

  cursor: pointer;
}

.read-button span {
  color: var(--aqua);
}

/* ================= HERO BOTTOM ================= */

.hero-bottom {
  grid-column: 2 / 4;

  display: flex;
  align-items: center;

  gap: 20px;

  color: rgba(255, 255, 255, 0.35);

  font-family: var(--mono);

  font-size: 7px;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.scroll-line {
  width: 90px;
  height: 1px;

  background: rgba(255, 255, 255, 0.12);
}

.scroll-line i {
  display: block;

  width: 25%;

  height: 1px;

  background: var(--aqua);

  animation: scrollProgress 3s ease-in-out infinite;
}

@keyframes scrollProgress {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(300%);
  }
}

/* ================= SECTIONS ================= */

.section {
  max-width: var(--max);

  margin: auto;

  padding: 130px 5vw;
}

.section-heading {
  display: grid;

  grid-template-columns: 1fr 0.65fr;

  align-items: end;

  gap: 60px;

  margin-bottom: 70px;
}

.section-heading h2,
.species-header h2 {
  font-family: var(--serif);

  font-size: clamp(3.8rem, 6vw, 6rem);

  font-weight: 500;

  line-height: 0.88;

  letter-spacing: -4px;
}

.section-heading h2 em,
.species-header h2 em {
  color: var(--blue);

  font-weight: 400;
}

.heading-description {
  max-width: 360px;

  color: #7c8492;

  font-size: 12px;

  line-height: 1.8;
}

/* ================= STORIES ================= */

.story-grid {
  display: grid;

  grid-template-columns: 1.25fr 1fr 1fr;

  gap: 25px;
}

.story-card {
  position: relative;
}

.story-visual {
  position: relative;

  height: 310px;

  overflow: hidden;

  margin-bottom: 22px;
}

.story-large .story-visual {
  height: 430px;
}

.visual-number {
  position: absolute;

  top: 20px;
  left: 20px;

  color: rgba(255, 255, 255, 0.6);

  font-family: var(--mono);

  font-size: 8px;
}

/* ================= CORAL VISUAL ================= */

.coral-visual {
  background: linear-gradient(150deg, #0d3d47, #06252f);
}

.coral {
  position: absolute;

  bottom: -30px;

  width: 45px;

  border-radius: 50% 50% 0 0;

  background: linear-gradient(90deg, #d86d62, #ef9b78);

  box-shadow: 20px -20px 0 -8px #c85e59;
}

.coral::before,
.coral::after {
  content: "";

  position: absolute;

  width: 25px;
  height: 80px;

  border-radius: 50% 50% 0 0;

  background: inherit;
}

.coral::before {
  left: -22px;
  bottom: 10px;
}

.coral::after {
  right: -22px;
  bottom: 30px;
}

.coral-one {
  left: 30%;

  height: 240px;

  transform: rotate(-5deg);
}

.coral-two {
  left: 55%;

  height: 290px;

  transform: rotate(7deg);

  background: linear-gradient(90deg, #b85c70, #dc7b83);
}

.coral-three {
  left: 78%;

  height: 200px;

  transform: rotate(-4deg);

  background: linear-gradient(90deg, #d98968, #efa17a);
}

/* ================= DEEP VISUAL ================= */

.deep-visual {
  background: radial-gradient(circle at 50% 80%, #25465b, #081522 60%);
}

.deep-glow {
  position: absolute;

  width: 220px;
  height: 220px;

  left: 50%;
  bottom: -80px;

  transform: translateX(-50%);

  border-radius: 50%;

  background: radial-gradient(circle, rgba(92, 211, 202, 0.3), transparent 65%);

  filter: blur(10px);
}

.deep-creature {
  position: absolute;

  left: 50%;
  top: 43%;

  width: 70px;
  height: 70px;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  background: radial-gradient(circle at 35% 30%, #a5e8dd, #29747c 55%, #143b4b);

  box-shadow: 0 0 40px rgba(105, 197, 199, 0.45);
}

.deep-creature i {
  position: absolute;

  width: 2px;

  background: linear-gradient(to bottom, #7ce1d8, transparent);

  transform-origin: top;

  animation: deepTentacle 2s ease-in-out infinite alternate;
}

.deep-creature i:nth-child(1) {
  height: 100px;
  left: 15px;
  top: 55px;
  transform: rotate(12deg);
}

.deep-creature i:nth-child(2) {
  height: 120px;
  left: 34px;
  top: 58px;
  animation-delay: -0.5s;
}

.deep-creature i:nth-child(3) {
  height: 90px;
  left: 52px;
  top: 55px;
  animation-delay: -1s;
}

@keyframes deepTentacle {
  from {
    transform: rotate(-7deg);
  }

  to {
    transform: rotate(7deg);
  }
}

/* ================= ICE VISUAL ================= */

.ice-visual {
  background: linear-gradient(180deg, #a8d3dc, #3e8294);
}

.ice-sun {
  position: absolute;

  top: 45px;
  right: 45px;

  width: 70px;
  height: 70px;

  border-radius: 50%;

  background: rgba(255, 242, 205, 0.65);

  box-shadow: 0 0 60px rgba(255, 236, 184, 0.5);
}

.icebergs {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 55%;
}

.icebergs i {
  position: absolute;

  bottom: 0;

  display: block;

  width: 0;
  height: 0;

  border-left: 70px solid transparent;
  border-right: 70px solid transparent;

  border-bottom: 180px solid #e7f4f0;
}

.icebergs i:nth-child(1) {
  left: 10%;

  transform: scale(0.8);
}

.icebergs i:nth-child(2) {
  left: 40%;

  border-left-width: 100px;
  border-right-width: 100px;

  border-bottom-width: 220px;

  opacity: 0.9;
}

.icebergs i:nth-child(3) {
  right: 2%;

  transform: scale(0.6);

  opacity: 0.75;
}

/* ================= STORY META ================= */

.story-meta {
  display: flex;
  justify-content: space-between;

  padding-bottom: 12px;

  border-bottom: 1px solid var(--line);

  color: #9299a5;

  font-family: var(--mono);

  font-size: 7px;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.story-card h3 {
  max-width: 430px;

  margin-top: 20px;

  font-family: var(--serif);

  font-size: 31px;

  font-weight: 500;

  line-height: 1;

  letter-spacing: -1px;
}

.story-card > p {
  margin-top: 12px;

  color: #7b8390;

  font-size: 11px;

  line-height: 1.7;
}

.text-link {
  margin-top: 18px;

  padding: 0;

  background: transparent;

  color: var(--blue);

  font-family: var(--mono);

  font-size: 8px;

  letter-spacing: 1px;

  text-transform: uppercase;

  cursor: pointer;
}

/* ================= SPECIES ================= */

.species {
  max-width: none;

  padding: 130px max(5vw, calc((100vw - var(--max)) / 2));

  background: var(--cream);
}

.species-header {
  display: flex;
  justify-content: space-between;
  align-items: end;

  margin-bottom: 70px;
}

.species-count {
  display: flex;
  align-items: baseline;

  gap: 8px;

  font-family: var(--mono);

  color: #9ca2a9;

  font-size: 9px;
}

.species-count strong {
  color: var(--blue);

  font-size: 20px;
}

.species-showcase {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  min-height: 600px;

  background: var(--paper);
}

.species-visual {
  position: relative;

  overflow: hidden;

  background: linear-gradient(150deg, #0a3443, #07222e);
}

.species-water {
  position: absolute;

  inset: 0;

  background: repeating-linear-gradient(
    165deg,
    transparent 0,
    transparent 50px,
    rgba(105, 197, 199, 0.04) 51px,
    transparent 52px
  );
}

.species-water::after {
  content: "";

  position: absolute;

  width: 600px;
  height: 600px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  border: 1px solid rgba(105, 197, 199, 0.1);

  box-shadow:
    0 0 0 60px rgba(105, 197, 199, 0.02),
    0 0 0 120px rgba(105, 197, 199, 0.015);
}

.species-location {
  position: absolute;

  left: 35px;
  bottom: 30px;

  color: rgba(255, 255, 255, 0.35);

  font-family: var(--mono);

  font-size: 7px;

  line-height: 1.7;

  letter-spacing: 1px;
}

/* ================= SPECIES WHALE ================= */

.species-creature {
  position: absolute;

  width: 420px;
  height: 250px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%) rotate(-5deg);

  animation: speciesSwim 7s ease-in-out infinite;
}

@keyframes speciesSwim {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-5deg);
  }

  50% {
    transform: translate(-50%, -54%) rotate(-2deg);
  }
}

.creature-body {
  position: absolute;

  left: 65px;
  top: 50px;

  width: 310px;
  height: 150px;

  border-radius: 55% 48% 45% 50%;

  background: linear-gradient(145deg, #afc7c7, #5b7d82 50%, #294e58);

  box-shadow: inset -30px -20px 40px rgba(0, 0, 0, 0.25);
}

.creature-body::before {
  content: "";

  position: absolute;

  left: 70px;
  top: 20px;

  width: 120px;
  height: 45px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.13);
}

.creature-eye {
  position: absolute;

  z-index: 2;

  right: 80px;
  top: 80px;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: #102b35;

  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.creature-tail {
  position: absolute;

  left: 10px;
  top: 55px;

  width: 100px;
  height: 100px;
}

.creature-tail::before,
.creature-tail::after {
  content: "";

  position: absolute;

  width: 90px;
  height: 55px;

  background: #4d7077;

  border-radius: 80% 20% 80% 20%;
}

.creature-tail::before {
  transform: rotate(25deg);
}

.creature-tail::after {
  transform: rotate(-25deg);
}

/* ================= SPECIES INFO ================= */

.species-info {
  padding: 75px 70px;

  display: flex;
  flex-direction: column;

  justify-content: center;
}

.species-info h3 {
  margin-top: 25px;

  font-family: var(--serif);

  font-size: clamp(3.4rem, 5vw, 5rem);

  font-weight: 500;

  line-height: 0.9;

  letter-spacing: -3px;
}

.species-info h3 em {
  display: block;

  color: var(--blue);

  font-weight: 400;
}

.species-scientific {
  margin-top: 17px;

  color: #8b9299;

  font-family: var(--serif);

  font-size: 15px;

  font-style: italic;
}

.species-description {
  max-width: 420px;

  margin-top: 30px;

  color: #707986;

  font-size: 12px;

  line-height: 1.9;
}

.species-facts {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 15px;

  margin-top: 45px;

  padding-top: 20px;

  border-top: 1px solid var(--line);
}

.species-facts span {
  display: block;

  margin-bottom: 8px;

  color: #9ba1a8;

  font-family: var(--mono);

  font-size: 7px;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.species-facts strong {
  font-size: 10px;

  font-weight: 600;
}

.species-controls {
  display: flex;
  align-items: center;

  gap: 15px;

  margin-top: 45px;
}

.species-controls button {
  width: 38px;
  height: 38px;

  border: 1px solid var(--line);

  border-radius: 50%;

  background: transparent;

  color: var(--ink);

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.species-controls button:hover {
  background: var(--blue);

  color: white;
}

.species-progress {
  width: 100px;
  height: 1px;

  background: #d5d6d2;
}

.species-progress span {
  display: block;

  width: 25%;
  height: 1px;

  background: var(--blue);

  transition: width 0.5s ease;
}

/* ================= FIELD NOTES ================= */

.field-notes {
  padding-bottom: 150px;
}

.field-header {
  display: grid;

  grid-template-columns: 1fr 1.5fr;

  align-items: end;

  margin-bottom: 80px;
}

.field-header h2 {
  font-family: var(--serif);

  font-size: clamp(3.5rem, 6vw, 6rem);

  font-weight: 500;

  line-height: 0.9;

  letter-spacing: -4px;
}

.field-header h2 em {
  display: block;

  color: var(--coral);

  font-weight: 400;
}

.notes-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 0;

  border-top: 1px solid var(--line);
}

.note {
  display: grid;

  grid-template-columns: 35px 1fr;

  gap: 20px;

  padding: 45px 35px 20px 0;

  border-right: 1px solid var(--line);
}

.note + .note {
  padding-left: 35px;
}

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

.note-number {
  color: #a3a8ae;

  font-family: var(--mono);

  font-size: 8px;
}

.note h3 {
  max-width: 300px;

  margin-top: 18px;

  font-family: var(--serif);

  font-size: 24px;

  font-weight: 500;

  line-height: 1.1;
}

.note p:last-child {
  max-width: 300px;

  margin-top: 20px;

  color: #7c8490;

  font-size: 11px;

  line-height: 1.8;
}

/* ================= NEWSLETTER ================= */

.newsletter {
  position: relative;

  display: grid;

  grid-template-columns: 1fr 2fr;

  gap: 80px;

  padding: 120px max(5vw, calc((100vw - var(--max)) / 2));

  overflow: hidden;

  background: linear-gradient(120deg, #092f40, #0a5364);

  color: white;
}

.newsletter::before {
  content: "";

  position: absolute;

  width: 600px;
  height: 600px;

  right: -200px;
  top: -200px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 50%;
}

.newsletter-mark {
  position: relative;

  width: 150px;
  height: 150px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;

  font-family: var(--serif);

  font-size: 45px;
  font-style: italic;

  color: var(--aqua);
}

.newsletter-content {
  position: relative;

  max-width: 700px;
}

.newsletter h2 {
  margin-top: 20px;

  font-family: var(--serif);

  font-size: clamp(3.5rem, 6vw, 6rem);

  font-weight: 500;

  line-height: 0.9;

  letter-spacing: -4px;
}

.newsletter h2 em {
  display: block;

  color: var(--aqua);

  font-weight: 400;
}

.newsletter-content > p:not(.mono-label):not(.form-message) {
  max-width: 380px;

  margin-top: 25px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 12px;

  line-height: 1.7;
}

.newsletter form {
  display: flex;

  max-width: 560px;

  margin-top: 40px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.newsletter input {
  flex: 1;

  min-width: 0;

  padding: 15px 0;

  border: 0;
  outline: 0;

  background: transparent;

  color: white;

  font-size: 12px;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter button {
  padding: 15px 0 15px 25px;

  background: transparent;

  color: white;

  font-family: var(--mono);

  font-size: 8px;

  letter-spacing: 1px;
  text-transform: uppercase;

  cursor: pointer;
}

.form-message {
  min-height: 20px;

  margin-top: 12px;

  color: var(--aqua);

  font-family: var(--mono);

  font-size: 8px;
}

/* ================= FOOTER ================= */

.footer {
  padding: 55px max(5vw, calc((100vw - var(--max)) / 2)) 30px;

  background: #071622;

  color: rgba(255, 255, 255, 0.5);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-bottom: 45px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .logo {
  color: white;
}

.footer-links {
  display: flex;

  gap: 30px;

  font-family: var(--mono);

  font-size: 8px;

  text-transform: uppercase;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;

  padding-top: 25px;

  font-family: var(--mono);

  font-size: 7px;

  letter-spacing: 0.5px;

  text-transform: uppercase;
}

/* ================= SEARCH OVERLAY ================= */

.search-overlay {
  position: fixed;

  z-index: 500;

  inset: 0;

  display: grid;
  place-items: center;

  padding: 30px;

  background: rgba(5, 20, 30, 0.98);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-inner {
  width: min(700px, 100%);
}

.search-close {
  position: absolute;

  top: 35px;
  right: 5vw;

  background: transparent;

  color: white;

  font-size: 35px;

  font-weight: 200;

  cursor: pointer;
}

.search-inner > label {
  display: block;

  margin-top: 20px;

  color: white;

  font-family: var(--serif);

  font-size: clamp(3rem, 7vw, 6rem);

  line-height: 0.9;
}

.search-field {
  display: flex;
  align-items: center;

  margin-top: 40px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.search-field input {
  flex: 1;

  padding: 15px 0;

  border: 0;
  outline: 0;

  background: transparent;

  color: white;

  font-family: var(--serif);

  font-size: 25px;
}

.search-field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-field > span {
  color: var(--aqua);

  font-family: var(--mono);
}

.search-hint {
  margin-top: 15px;

  color: rgba(255, 255, 255, 0.3);

  font-family: var(--mono);

  font-size: 8px;
}

/* ================= MOBILE MENU ================= */

.mobile-menu {
  position: fixed;

  z-index: 450;

  inset: 0;

  display: none;

  align-items: center;

  justify-content: center;

  background: var(--blue-dark);

  color: white;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;

  gap: 20px;

  text-align: center;

  font-family: var(--serif);

  font-size: 45px;
}

.mobile-menu p {
  position: absolute;

  left: 30px;
  bottom: 30px;

  color: rgba(255, 255, 255, 0.2);

  font-family: var(--mono);

  font-size: 8px;

  line-height: 1.6;

  letter-spacing: 2px;
}

/* ================= STORY MODAL ================= */

.story-modal {
  position: fixed;

  z-index: 600;

  inset: 0;

  display: grid;
  place-items: center;

  padding: 30px;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.story-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;

  inset: 0;

  background: rgba(5, 14, 22, 0.8);

  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 2;

  width: min(700px, 100%);

  max-height: 85vh;

  overflow-y: auto;

  padding: 65px;

  background: var(--paper);

  color: var(--ink);

  transform: translateY(20px);

  transition: transform 0.4s ease;
}

.story-modal.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;

  top: 20px;
  right: 25px;

  background: transparent;

  color: var(--ink);

  font-size: 30px;

  cursor: pointer;
}

.modal-content h2 {
  margin-top: 20px;

  font-family: var(--serif);

  font-size: clamp(3rem, 6vw, 5rem);

  font-weight: 500;

  line-height: 0.9;

  letter-spacing: -3px;
}

.modal-lead {
  margin-top: 25px;

  color: var(--blue);

  font-family: var(--serif);

  font-size: 18px;

  font-style: italic;

  line-height: 1.5;
}

.modal-divider {
  width: 100%;

  height: 1px;

  margin: 35px 0;

  background: var(--line);
}

.modal-content > p:last-child {
  color: #68717e;

  font-size: 13px;

  line-height: 2;

  white-space: pre-line;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns:
      30px
      1fr
      1fr
      30px;

    gap: 35px;
  }

  .hero h1 {
    font-size: clamp(4.5rem, 8vw, 7rem);
  }

  .hero-feature {
    grid-template-columns: 1fr;
  }

  .feature-copy {
    display: none;
  }

  .feature-image {
    height: 430px;
  }

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

  .story-large {
    grid-column: span 2;
  }

  .story-large .story-visual {
    height: 400px;
  }
}

@media (max-width: 800px) {
  .header {
    height: 75px;
    padding: 0 6vw;
  }

  .nav,
  .search-button {
    display: none;
  }

  .menu-button {
    display: flex;
    flex-direction: column;

    gap: 5px;

    width: 30px;

    padding: 5px 0;

    background: transparent;

    cursor: pointer;
  }

  .menu-button i {
    display: block;

    width: 25px;
    height: 1px;

    background: white;
  }

  .hero {
    display: flex;
    flex-direction: column;

    min-height: 950px;

    padding: 130px 6vw 70px;
  }

  .hero-content {
    max-width: 600px;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 15vw, 7rem);
  }

  .hero-feature {
    width: 100%;

    display: block;

    max-width: 450px;

    margin-top: 20px;
  }

  .feature-image {
    height: 300px;
  }

  .hero-bottom {
    margin-top: auto;
  }

  .section {
    padding: 90px 6vw;
  }

  .section-heading {
    grid-template-columns: 1fr;

    gap: 30px;

    margin-bottom: 50px;
  }

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

  .story-large {
    grid-column: auto;
  }

  .story-large .story-visual,
  .story-visual {
    height: 350px;
  }

  .species {
    padding: 90px 6vw;
  }

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

  .species-visual {
    min-height: 480px;
  }

  .species-info {
    padding: 60px 35px;
  }

  .field-header {
    grid-template-columns: 1fr;

    gap: 35px;

    margin-bottom: 55px;
  }

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

  .note,
  .note + .note {
    padding: 35px 0;

    border-right: 0;

    border-bottom: 1px solid var(--line);
  }

  .note:last-child {
    border-bottom: 0;
  }

  .newsletter {
    grid-template-columns: 1fr;

    gap: 50px;

    padding: 90px 6vw;
  }

  .newsletter-mark {
    width: 110px;
    height: 110px;

    font-size: 32px;
  }

  .footer {
    padding: 45px 6vw 25px;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 12px;
  }
}

@media (max-width: 500px) {
  .hero h1 {
    letter-spacing: -4px;
  }

  .hero h1 em {
    padding-left: 35px;
  }

  .hero-feature {
    margin-top: 10px;
  }

  .feature-image {
    height: 270px;
  }

  .whale-illustration {
    transform: translate(-50%, -50%) scale(0.75) rotate(-8deg);
  }

  .species-visual {
    min-height: 350px;
  }

  .species-creature {
    transform: translate(-50%, -50%) scale(0.65) rotate(-5deg);
  }

  .species-info {
    padding: 50px 25px;
  }

  .species-info h3 {
    font-size: 3.4rem;
  }

  .species-facts {
    gap: 8px;
  }

  .newsletter h2 {
    letter-spacing: -3px;
  }

  .newsletter form {
    display: block;

    border-bottom: 0;
  }

  .newsletter input {
    width: 100%;

    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .newsletter button {
    padding: 18px 0;
  }

  .modal-content {
    padding: 45px 25px;
  }
}

/* ================= REDUCED MOTION ================= */

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

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