:root {
  --ink: #082e45;
  --deep: #031f35;
  --navy: #073d5b;
  --sea: #0d7890;
  --aqua: #58c5c1;
  --foam: #f5f2df;
  --sun: #f7c94a;
  --gold: #eaa72d;
  --coral: #f06f55;
  --paper: #f3e7c4;
  --line: rgba(245, 242, 223, 0.45);
  --sans: "Noto Sans SC", sans-serif;
  --mono: "DM Mono", monospace;
  --hand: "Ma Shan Zheng", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--deep);
  overflow-x: hidden;
}

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

.topbar {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 76px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(245, 242, 223, 0.86);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--foam);
  font-size: 21px;
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.topbar nav {
  display: flex;
  align-self: stretch;
}

.topbar nav a {
  min-width: 110px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  border-left: 1px solid rgba(8, 46, 69, 0.25);
  transition: background 180ms ease, color 180ms ease;
}

.topbar nav a:last-child {
  border-right: 1px solid rgba(8, 46, 69, 0.25);
}

.topbar nav a:hover {
  color: var(--foam);
  background: var(--ink);
}

.log-button,
.primary-action,
.surface-again > a {
  padding: 12px 18px;
  color: var(--foam);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--coral);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.log-button:hover,
.primary-action:hover,
.surface-again > a:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.depth-meter {
  position: fixed;
  z-index: 90;
  right: 20px;
  top: 50%;
  width: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--foam);
  font-family: var(--mono);
  font-size: 8px;
  mix-blend-mode: difference;
}

.depth-meter > span {
  writing-mode: vertical-rl;
  letter-spacing: 0.25em;
}

.depth-line {
  height: 90px;
  width: 2px;
  position: relative;
  background: currentColor;
}

.depth-line i {
  position: absolute;
  left: -3px;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
}

.depth-line i:nth-child(1) {
  top: 0;
}

.depth-line i:nth-child(2) {
  top: calc(50% - 4px);
}

.depth-line i:nth-child(3) {
  bottom: 0;
}

.chapter {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.chapter-label {
  position: absolute;
  z-index: 10;
  top: 108px;
  left: 4vw;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.chapter-label span {
  padding: 5px 8px;
  color: var(--foam);
  background: var(--ink);
}

.chapter-label.light {
  color: var(--foam);
}

.chapter-label.light span {
  color: var(--ink);
  background: var(--sun);
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.17em;
}

.light-text {
  color: var(--aqua);
}

/* Deck */
.deck {
  min-height: 860px;
  padding: 180px 7vw 150px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(180deg, #f7da7a 0%, #f4bc55 53%, #62c4c1 100%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
}

.deck-copy {
  position: relative;
  z-index: 12;
  width: min(620px, 48vw);
}

.deck h1 {
  margin: 0;
  font-size: clamp(64px, 7.8vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

.deck h1 em,
.cabin h2 em,
.cockpit h2 em {
  position: relative;
  display: inline-block;
  color: var(--coral);
  font-family: var(--hand);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  transform: rotate(-2deg);
}

.deck h1 em::after,
.cabin h2 em::after,
.cockpit h2 em::after {
  content: "";
  position: absolute;
  left: 4%;
  bottom: -2px;
  width: 92%;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 7c45-8 88 5 196-4' fill='none' stroke='%23082e45' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

.intro {
  max-width: 450px;
  margin: 30px 0 0 5px;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 500;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-action {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  padding: 15px 22px;
}

.primary-action span {
  font-size: 18px;
}

.coordinates {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.1em;
}

.sun-disc {
  position: absolute;
  top: 125px;
  right: 14vw;
  width: 170px;
  aspect-ratio: 1;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(247, 201, 74, 0.26), 0 0 0 36px rgba(247, 201, 74, 0.14);
}

.cloud {
  position: absolute;
  width: 140px;
  height: 25px;
  background: rgba(245, 242, 223, 0.75);
  border: 2px solid var(--ink);
  border-radius: 50px;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: -2px;
  background: inherit;
  border: 2px solid var(--ink);
  border-bottom-color: transparent;
  border-radius: 50% 50% 0 0;
}

.cloud::before {
  left: 24px;
  width: 48px;
  height: 43px;
}

.cloud::after {
  right: 18px;
  width: 38px;
  height: 32px;
}

.cloud-one {
  top: 205px;
  right: 32vw;
  transform: scale(0.7);
}

.cloud-two {
  top: 350px;
  right: 3vw;
  transform: scale(0.5);
}

.sunny-vessel {
  position: absolute;
  z-index: 8;
  right: 3vw;
  bottom: 120px;
  width: min(610px, 49vw);
  height: 430px;
  filter: drop-shadow(14px 16px 0 rgba(8, 46, 69, 0.14));
}

.vessel-body {
  position: absolute;
  right: 0;
  bottom: 55px;
  width: 92%;
  height: 170px;
  overflow: hidden;
  background: var(--foam);
  border: 4px solid var(--ink);
  border-radius: 45% 48% 42% 48% / 55% 62% 43% 48%;
  transform: rotate(2deg);
}

.vessel-body::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -55%;
  width: 62%;
  height: 125%;
  border: 27px solid var(--coral);
  border-radius: 50%;
}

.stripe {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 89px;
  width: 100%;
  height: 28px;
  background: var(--sun);
  border-block: 3px solid var(--ink);
}

.porthole {
  position: absolute;
  z-index: 3;
  top: 42px;
  width: 48px;
  aspect-ratio: 1;
  background: var(--aqua);
  border: 7px solid var(--ink);
  border-radius: 50%;
  box-shadow: inset 5px 5px 0 rgba(255, 255, 255, 0.25);
}

.p1 {
  left: 90px;
}

.p2 {
  left: 175px;
}

.p3 {
  left: 260px;
}

.bow-lines {
  position: absolute;
  z-index: 4;
  right: 44px;
  top: 38px;
  width: 70px;
  height: 65px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(13deg);
}

.mast {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 17px;
  width: 8px;
  height: 188px;
  background: var(--ink);
  transform: rotate(-2deg);
}

.flag {
  position: absolute;
  z-index: 4;
  left: calc(50% + 4px);
  top: 28px;
  width: 96px;
  height: 62px;
  overflow: hidden;
  background: var(--coral);
  border: 3px solid var(--ink);
  border-left: 0;
  clip-path: polygon(0 0, 100% 9%, 82% 53%, 100% 100%, 0 89%);
}

.flag span {
  position: absolute;
  left: 31px;
  top: 18px;
  width: 23px;
  aspect-ratio: 1;
  border: 3px solid var(--foam);
  border-radius: 50%;
}

.deck-rail {
  position: absolute;
  z-index: 5;
  right: 52px;
  bottom: 220px;
  width: 52%;
  height: 40px;
  border: 4px solid var(--ink);
  border-bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 40px,
    var(--ink) 41px 45px
  );
}

.lion {
  position: absolute;
  z-index: 10;
  left: 12px;
  bottom: 103px;
  width: 145px;
  aspect-ratio: 1;
}

.lion-rays {
  position: absolute;
  inset: 0;
  background: var(--sun);
  border: 4px solid var(--ink);
  clip-path: polygon(
    50% 0,
    59% 18%,
    75% 6%,
    77% 27%,
    97% 23%,
    86% 42%,
    100% 50%,
    83% 58%,
    96% 76%,
    75% 73%,
    72% 94%,
    57% 81%,
    48% 100%,
    40% 81%,
    23% 95%,
    23% 73%,
    2% 78%,
    15% 58%,
    0 49%,
    17% 42%,
    3% 24%,
    25% 27%,
    25% 5%,
    41% 18%
  );
}

.lion-face {
  position: absolute;
  inset: 25px;
  background: var(--foam);
  border: 4px solid var(--ink);
  border-radius: 48% 48% 55% 55%;
}

.eye {
  position: absolute;
  top: 36px;
  width: 7px;
  height: 10px;
  background: var(--ink);
  border-radius: 50%;
}

.eye.left {
  left: 24px;
}

.eye.right {
  right: 24px;
}

.nose {
  position: absolute;
  top: 52px;
  left: calc(50% - 7px);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--coral);
}

.smile {
  position: absolute;
  top: 59px;
  left: 31px;
  width: 33px;
  height: 15px;
  border-bottom: 3px solid var(--ink);
  border-radius: 50%;
}

.propeller {
  position: absolute;
  left: 2px;
  bottom: 61px;
  width: 65px;
  height: 65px;
  background: var(--coral);
  border: 4px solid var(--ink);
  border-radius: 50% 10% 50% 10%;
  transform: rotate(45deg);
}

.propeller::before {
  content: "";
  position: absolute;
  inset: -4px;
  background: var(--coral);
  border: 4px solid var(--ink);
  border-radius: 10% 50% 10% 50%;
}

.propeller i {
  position: absolute;
  z-index: 2;
  left: 19px;
  top: 19px;
  width: 20px;
  height: 20px;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.wave {
  position: absolute;
  z-index: 6;
  left: -5%;
  width: 110%;
  height: 120px;
  background-size: 180px 100px;
  animation: drift 10s linear infinite;
}

.wave-back {
  bottom: 27px;
  opacity: 0.8;
  background-image: radial-gradient(
    ellipse at 50% 100%,
    transparent 57%,
    var(--sea) 59% 75%,
    transparent 77%
  );
}

.wave-front {
  bottom: -22px;
  background-image: radial-gradient(
    ellipse at 50% 100%,
    transparent 54%,
    var(--navy) 56% 76%,
    transparent 78%
  );
  animation-direction: reverse;
  animation-duration: 14s;
}

@keyframes drift {
  to {
    transform: translateX(180px);
  }
}

.scroll-note {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 28px;
  color: var(--foam);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  transform: translateX(-50%);
}

.scroll-note i {
  font-size: 20px;
  font-style: normal;
  animation: bob 1.5s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(7px);
  }
}

/* Cabin */
.cabin {
  min-height: 1220px;
  padding: 180px 7vw 130px;
  color: var(--foam);
  background:
    radial-gradient(circle at 12% 20%, rgba(88, 197, 193, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 16%, rgba(88, 197, 193, 0.2) 0 2px, transparent 3px),
    linear-gradient(180deg, var(--navy) 0%, #064666 35%, #07334e 100%);
  background-size: 90px 90px, 140px 140px, 100% 100%;
}

.cabin-heading {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 80px;
  align-items: end;
}

.cabin h2,
.cockpit h2 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 82px);
  line-height: 1.13;
  letter-spacing: -0.065em;
}

.cabin h2 em,
.cockpit h2 em {
  color: var(--sun);
}

.cabin h2 em::after,
.cockpit h2 em::after {
  filter: invert(1);
}

.section-note {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.9;
  border-left: 3px solid var(--sun);
}

.voyage-grid {
  margin-top: 75px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 9px 9px 0 rgba(2, 22, 36, 0.65);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.project-card:hover {
  transform: translateY(-10px) rotate(-0.5deg);
  box-shadow: 14px 18px 0 rgba(2, 22, 36, 0.48);
}

.project-card.coral {
  background: #ed8069;
  transform: rotate(-1deg);
}

.project-card.yellow {
  top: 34px;
  background: #f1c84c;
  transform: rotate(1deg);
}

.project-card.blue {
  background: #75c4c1;
  transform: rotate(-0.5deg);
}

.project-card.coral:hover,
.project-card.yellow:hover,
.project-card.blue:hover {
  transform: translateY(-10px) rotate(0deg);
}

.card-number {
  padding: 12px 15px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  border-bottom: 3px solid var(--ink);
}

.card-art {
  height: 310px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background:
    linear-gradient(rgba(8, 46, 69, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 46, 69, 0.12) 1px, transparent 1px);
  background-size: 30px 30px;
}

.shell {
  position: relative;
  width: 190px;
  height: 155px;
  overflow: hidden;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 50% 50% 12% 12% / 85% 85% 15% 15%;
  box-shadow: inset 0 -24px 0 rgba(240, 111, 85, 0.2);
}

.shell::after {
  content: "";
  position: absolute;
  left: -8px;
  bottom: -8px;
  width: calc(100% + 16px);
  height: 35px;
  background: var(--foam);
  border: 4px solid var(--ink);
  border-radius: 50%;
}

.shell i {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 3px;
  height: 150px;
  background: var(--ink);
  transform-origin: bottom;
  opacity: 0.7;
}

.shell i:nth-child(1) {
  transform: rotate(-48deg);
}

.shell i:nth-child(2) {
  transform: rotate(-25deg);
}

.shell i:nth-child(4) {
  transform: rotate(25deg);
}

.shell i:nth-child(5) {
  transform: rotate(48deg);
}

.pearl {
  position: absolute;
  z-index: 4;
  bottom: 54px;
  width: 38px;
  aspect-ratio: 1;
  background: #fffdf2;
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: 7px 7px 0 rgba(8, 46, 69, 0.2);
}

.compass {
  position: relative;
  width: 210px;
  aspect-ratio: 1;
  background: var(--foam);
  border: 5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 12px var(--coral), 0 0 0 17px var(--ink);
}

.compass::before {
  content: "";
  position: absolute;
  inset: 27px;
  border: 2px dashed var(--ink);
  border-radius: 50%;
}

.compass span {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: bold;
}

.compass span:nth-child(1) {
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  color: var(--coral);
}

.compass span:nth-child(2) {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.compass span:nth-child(3) {
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
}

.compass span:nth-child(4) {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.needle {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 132px;
  background: linear-gradient(90deg, var(--coral) 50%, var(--ink) 50%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: translate(-50%, -50%) rotate(32deg);
}

.bottle {
  position: relative;
  width: 125px;
  height: 220px;
  background: rgba(245, 242, 223, 0.6);
  border: 5px solid var(--ink);
  border-radius: 28px 28px 35px 35px;
  transform: rotate(12deg);
}

.bottle::before {
  content: "";
  position: absolute;
  left: 29px;
  top: -60px;
  width: 57px;
  height: 67px;
  background: rgba(245, 242, 223, 0.6);
  border: 5px solid var(--ink);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.cork {
  position: absolute;
  z-index: 2;
  left: 25px;
  top: -72px;
  width: 66px;
  height: 28px;
  background: #c47b44;
  border: 5px solid var(--ink);
}

.letter {
  position: absolute;
  left: 17px;
  top: 54px;
  width: 82px;
  height: 108px;
  padding-top: 31px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: bold;
  line-height: 1.7;
  background: var(--paper);
  border: 3px solid var(--ink);
  transform: rotate(-4deg);
}

.card-content {
  flex: 1;
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
}

.card-content > p:first-child {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.card-content h3 {
  margin: 9px 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.card-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.card-content a {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  border-top: 2px solid var(--ink);
}

.card-content a span {
  font-size: 17px;
}

.route-line {
  width: 72%;
  margin: 100px auto 0;
  display: flex;
  align-items: center;
  color: var(--sun);
}

.route-line i {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--aqua) 0 8px, transparent 8px 15px);
}

.route-line span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--aqua);
  border-radius: 50%;
}

.bubble {
  position: absolute;
  border: 2px solid rgba(88, 197, 193, 0.45);
  border-radius: 50%;
}

.bubble-a {
  left: 3%;
  top: 39%;
  width: 28px;
  height: 28px;
}

.bubble-b {
  right: 7%;
  top: 27%;
  width: 12px;
  height: 12px;
}

.bubble-c {
  left: 48%;
  bottom: 7%;
  width: 18px;
  height: 18px;
}

/* Cockpit */
.cockpit {
  min-height: 1570px;
  padding: 180px 7vw 140px;
  color: var(--foam);
  background:
    linear-gradient(105deg, transparent 46%, rgba(59, 155, 164, 0.08) 47% 52%, transparent 53%),
    radial-gradient(circle at 50% 35%, #084264 0%, #052c47 33%, #021b30 70%, #011422 100%);
}

.cockpit-copy {
  position: relative;
  z-index: 5;
  width: min(700px, 55vw);
}

.cockpit-copy > p:last-child {
  max-width: 520px;
  margin-top: 30px;
  color: #acd3d1;
  font-size: 14px;
  line-height: 2;
}

.cockpit-window {
  position: absolute;
  z-index: 3;
  top: 165px;
  right: -6vw;
  width: min(650px, 48vw);
  aspect-ratio: 1;
  background: #09283b;
  border: 10px solid #0f4e69;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px var(--aqua),
    0 0 0 34px #06263b,
    0 0 0 38px #13617b,
    0 30px 60px rgba(0, 0, 0, 0.45);
}

.window-ring {
  position: absolute;
  inset: -48px;
  border-radius: 50%;
}

.window-ring i {
  position: absolute;
  left: calc(50% - 7px);
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.window-ring i:nth-child(1) {
  transform: rotate(0deg) translateY(-332px);
}

.window-ring i:nth-child(2) {
  transform: rotate(45deg) translateY(-332px);
}

.window-ring i:nth-child(3) {
  transform: rotate(90deg) translateY(-332px);
}

.window-ring i:nth-child(4) {
  transform: rotate(135deg) translateY(-332px);
}

.window-ring i:nth-child(5) {
  transform: rotate(180deg) translateY(-332px);
}

.window-ring i:nth-child(6) {
  transform: rotate(225deg) translateY(-332px);
}

.window-ring i:nth-child(7) {
  transform: rotate(270deg) translateY(-332px);
}

.window-ring i:nth-child(8) {
  transform: rotate(315deg) translateY(-332px);
}

.window-glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 27%, rgba(132, 232, 220, 0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 18%, rgba(132, 232, 220, 0.13) 0 1px, transparent 2px),
    linear-gradient(145deg, rgba(63, 169, 171, 0.35), transparent 35%),
    linear-gradient(180deg, #08617c, #03233d 74%);
  background-size: 44px 44px, 60px 60px, 100% 100%, 100% 100%;
}

.window-glass::after {
  content: "";
  position: absolute;
  top: -8%;
  left: 22%;
  width: 22%;
  height: 95%;
  background: linear-gradient(90deg, transparent, rgba(203, 255, 244, 0.1), transparent);
  transform: rotate(28deg);
}

.tiny-sub {
  position: absolute;
  z-index: 2;
  left: 22%;
  top: 50%;
  width: 230px;
  height: 80px;
  background: var(--sun);
  border: 4px solid var(--ink);
  border-radius: 50% 55% 48% 48%;
  transform: rotate(-7deg);
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.2);
}

.tiny-sub i {
  position: absolute;
  top: 22px;
  width: 31px;
  aspect-ratio: 1;
  background: #65c7c2;
  border: 5px solid var(--ink);
  border-radius: 50%;
}

.tiny-sub i:nth-of-type(1) {
  left: 65px;
}

.tiny-sub i:nth-of-type(2) {
  left: 109px;
}

.tiny-sub i:nth-of-type(3) {
  left: 153px;
}

.sub-top {
  position: absolute;
  left: 87px;
  top: -34px;
  width: 74px;
  height: 38px;
  background: var(--coral);
  border: 4px solid var(--ink);
  border-radius: 42px 42px 0 0;
}

.sub-top::after {
  content: "";
  position: absolute;
  left: 38px;
  top: -24px;
  width: 35px;
  height: 25px;
  border: 5px solid var(--ink);
  border-left: 0;
  border-bottom: 0;
}

.sub-light {
  position: absolute;
  right: -100px;
  top: 8px;
  width: 100px;
  height: 55px;
  background: linear-gradient(90deg, rgba(247, 201, 74, 0.6), transparent);
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 67%);
}

.sub-prop {
  position: absolute;
  left: -37px;
  top: 15px;
  color: var(--coral);
  font-size: 47px;
  line-height: 1;
}

.moon-jelly {
  position: absolute;
  top: 21%;
  right: 16%;
  width: 75px;
  height: 43px;
  background: rgba(245, 242, 223, 0.68);
  border: 3px solid var(--aqua);
  border-radius: 50% 50% 16% 16%;
}

.moon-jelly i {
  position: absolute;
  top: 37px;
  width: 20px;
  height: 70px;
  border-left: 2px solid var(--aqua);
  border-radius: 50%;
}

.moon-jelly i:nth-of-type(1) {
  left: 10px;
}

.moon-jelly i:nth-of-type(2) {
  left: 34px;
  height: 90px;
}

.moon-jelly i:nth-of-type(3) {
  right: 5px;
  height: 55px;
}

.sea-floor {
  position: absolute;
  left: -10%;
  bottom: -13%;
  width: 120%;
  height: 32%;
  background: #04192a;
  border-radius: 50% 50% 0 0;
}

.sea-floor i {
  position: absolute;
  top: -70px;
  width: 9px;
  height: 80px;
  border: 5px solid var(--aqua);
  border-top: 0;
  border-bottom: 0;
  border-radius: 50%;
}

.sea-floor i:nth-child(1) {
  left: 25%;
  transform: rotate(-14deg);
}

.sea-floor i:nth-child(2) {
  left: 31%;
  top: -48px;
  height: 58px;
  transform: rotate(18deg);
}

.sea-floor i:nth-child(3) {
  right: 24%;
  transform: rotate(13deg);
}

.sea-floor i:nth-child(4) {
  right: 31%;
  top: -38px;
  height: 49px;
  transform: rotate(-22deg);
}

.instrument-panel {
  position: absolute;
  z-index: 7;
  top: 760px;
  left: 7vw;
  right: 7vw;
  min-height: 190px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 16px;
  color: var(--aqua);
  background: #061a2a;
  border: 3px solid #17617a;
  box-shadow: 10px 10px 0 #010e18;
}

.gauge,
.signal {
  position: relative;
  padding: 22px;
  border: 2px solid #14546c;
  background: #072338;
}

.gauge > span,
.signal > span {
  display: block;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.17em;
}

.gauge strong {
  color: var(--sun);
  font-family: var(--mono);
  font-size: 27px;
}

.gauge small {
  margin-left: 5px;
  font-size: 10px;
}

.gauge i {
  position: absolute;
  right: 22px;
  bottom: 26px;
  width: 50px;
  height: 25px;
  border-top: 4px dotted var(--coral);
  border-radius: 50%;
}

.signal > div {
  height: 45px;
  display: flex;
  align-items: end;
  gap: 7px;
}

.signal i {
  width: 11px;
  background: var(--sun);
}

.signal i:nth-child(1) {
  height: 30%;
}

.signal i:nth-child(2) {
  height: 55%;
}

.signal i:nth-child(3) {
  height: 75%;
}

.signal i:nth-child(4) {
  height: 50%;
}

.signal i:nth-child(5) {
  height: 90%;
}

.signal strong {
  position: absolute;
  right: 22px;
  bottom: 27px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 10px;
}

.logbook {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 130px;
  width: min(580px, 78vw);
  min-height: 430px;
  padding: 36px 42px;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49px, rgba(240, 111, 85, 0.35) 50px 52px, transparent 53px),
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(8, 46, 69, 0.16) 35px 36px),
    var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 15px 17px 0 rgba(0, 0, 0, 0.35);
  transform: translateX(-50%) rotate(-1deg);
}

.logbook::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 26px;
  width: 10px;
  height: calc(100% + 6px);
  border-inline: 2px dashed rgba(8, 46, 69, 0.5);
}

.tape {
  position: absolute;
  top: -22px;
  left: 50%;
  width: 110px;
  height: 42px;
  background: rgba(247, 201, 74, 0.78);
  transform: translateX(-50%) rotate(2deg);
}

.logbook header,
.logbook footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.handwriting {
  margin: 60px 0 40px 35px;
  color: #174f64;
  font-family: var(--hand);
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.4;
  transform: rotate(-2deg);
}

.log-details {
  margin-left: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.log-details p {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 2;
}

.log-details strong {
  font-family: var(--sans);
  font-size: 13px;
}

.logbook footer {
  margin: 42px 0 0 35px;
  padding-top: 15px;
  border-top: 2px solid var(--ink);
}

.logbook footer i {
  font-size: 20px;
  font-style: normal;
}

.fish-school {
  position: absolute;
  left: 2%;
  top: 47%;
  width: 320px;
  height: 180px;
  opacity: 0.5;
}

.fish-school i {
  position: absolute;
  width: 36px;
  height: 19px;
  border: 2px solid var(--aqua);
  border-radius: 50%;
}

.fish-school i::after {
  content: "";
  position: absolute;
  left: -13px;
  top: 2px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--aqua);
  transform: rotate(45deg);
}

.fish-school i:nth-child(1) {
  left: 20px;
  top: 30px;
}

.fish-school i:nth-child(2) {
  left: 120px;
  top: 80px;
  transform: scale(0.7);
}

.fish-school i:nth-child(3) {
  left: 210px;
  top: 18px;
  transform: scale(0.5);
}

.fish-school i:nth-child(4) {
  left: 65px;
  top: 145px;
  transform: scale(0.45);
}

.fish-school i:nth-child(5) {
  left: 270px;
  top: 120px;
  transform: scale(0.8);
}

/* Resurface */
.surface-again {
  position: relative;
  min-height: 640px;
  padding: 125px 7vw 160px;
  overflow: hidden;
  text-align: center;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(180deg, #70c8c4, #f3cf67);
  background-size: 50px 50px, 50px 50px, 100% 100%;
}

.surface-again > * {
  position: relative;
  z-index: 3;
}

.surface-again > p {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.surface-again h2 {
  margin: 0 0 42px;
  font-size: clamp(65px, 8vw, 125px);
  line-height: 0.95;
  letter-spacing: -0.09em;
}

.surface-again > a {
  display: inline-flex;
  gap: 28px;
  padding: 16px 24px;
}

.final-sun {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 65px;
  width: 430px;
  aspect-ratio: 1;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}

.final-wave {
  position: absolute;
  z-index: 2;
  left: -5%;
  bottom: -85px;
  width: 110%;
  height: 190px;
  background: var(--navy);
  clip-path: polygon(0 42%, 8% 32%, 16% 44%, 25% 24%, 35% 40%, 45% 20%, 55% 42%, 66% 29%, 78% 43%, 89% 23%, 100% 41%, 100% 100%, 0 100%);
}

.site-footer {
  min-height: 82px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  background: #011422;
}

.site-footer a {
  color: var(--sun);
}

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

  .deck {
    padding-inline: 6vw;
  }

  .deck-copy {
    width: 62vw;
  }

  .sunny-vessel {
    right: -9vw;
    width: 58vw;
    transform: scale(0.88);
    transform-origin: bottom right;
  }

  .cabin,
  .cockpit {
    padding-inline: 6vw;
  }

  .voyage-grid {
    gap: 15px;
  }

  .project-card {
    min-height: 610px;
  }

  .card-art {
    height: 270px;
  }

  .shell,
  .compass {
    transform: scale(0.75);
  }

  .bottle {
    transform: rotate(12deg) scale(0.78);
  }

  .cockpit-window {
    right: -13vw;
  }

  .window-ring {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 64px;
    padding-inline: 18px;
  }

  .brand {
    font-size: 11px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .log-button {
    padding: 9px 11px;
    font-size: 10px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .depth-meter {
    display: none;
  }

  .chapter-label {
    top: 88px;
    left: 22px;
  }

  .deck {
    min-height: 980px;
    padding: 150px 22px 130px;
  }

  .deck-copy {
    width: 100%;
  }

  .deck h1 {
    font-size: clamp(58px, 18vw, 82px);
  }

  .intro {
    width: 85%;
  }

  .sun-disc {
    top: 390px;
    right: -25px;
    width: 120px;
  }

  .cloud-one {
    top: 490px;
    right: 57vw;
  }

  .cloud-two {
    top: 540px;
    right: 4vw;
  }

  .sunny-vessel {
    right: -90px;
    bottom: 110px;
    width: 570px;
    transform: scale(0.7);
    transform-origin: bottom right;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .cabin {
    padding: 150px 22px 110px;
  }

  .cabin-heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cabin h2,
  .cockpit h2 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .section-note {
    width: 90%;
  }

  .voyage-grid {
    margin-top: 55px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .project-card,
  .project-card.yellow {
    top: 0;
    min-height: 610px;
  }

  .card-art {
    height: 300px;
  }

  .shell,
  .compass {
    transform: none;
  }

  .bottle {
    transform: rotate(12deg) scale(0.88);
  }

  .route-line {
    display: none;
  }

  .cockpit {
    min-height: 1770px;
    padding: 150px 22px 100px;
  }

  .cockpit-copy {
    width: 100%;
  }

  .cockpit-copy > p:last-child {
    width: 86%;
  }

  .cockpit-window {
    top: 590px;
    right: -100px;
    width: 470px;
  }

  .tiny-sub {
    transform: scale(0.78) rotate(-7deg);
  }

  .instrument-panel {
    top: 1090px;
    left: 22px;
    right: 22px;
    grid-template-columns: 1fr 1fr;
  }

  .signal {
    grid-column: 1 / -1;
  }

  .logbook {
    bottom: 75px;
    width: calc(100% - 44px);
    padding: 34px 24px 30px 40px;
  }

  .handwriting {
    margin-left: 18px;
    font-size: 31px;
  }

  .log-details,
  .logbook footer {
    margin-left: 18px;
  }

  .surface-again {
    min-height: 570px;
    padding-inline: 22px;
  }

  .surface-again h2 {
    font-size: clamp(64px, 21vw, 90px);
  }

  .final-sun {
    width: 330px;
  }

  .site-footer {
    padding: 25px 22px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

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

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