:root {
  color-scheme: dark;
  --ink: #fff8ea;
  --paper: #f1e8d1;
  --mist: rgba(255, 248, 234, 0.72);
  --muted: rgba(255, 248, 234, 0.52);
  --line: rgba(255, 248, 234, 0.14);
  --line-strong: rgba(222, 199, 126, 0.42);
  --deep: #020712;
  --navy: #061222;
  --blue: #0a2e49;
  --teal: #1b6a74;
  --gold: #b7a063;
  --gold-bright: #e8d18a;
  --panel: rgba(4, 13, 25, 0.72);
  --panel-strong: rgba(4, 13, 25, 0.9);
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  background: var(--deep);
  color: var(--ink);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

#webgl-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 72% 18%, rgba(232, 209, 138, 0.16), transparent 34rem),
    linear-gradient(180deg, #020712, #061222 50%, #030812);
}

.film-grain,
.scene-glow {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.film-grain {
  opacity: 0.13;
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.scene-glow {
  background:
    radial-gradient(circle at 74% 22%, rgba(232, 209, 138, 0.12), transparent 26rem),
    linear-gradient(90deg, rgba(2, 7, 18, 0.9), transparent 34%, rgba(2, 7, 18, 0.72));
}

.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 3px;
  background: rgba(255, 248, 234, 0.08);
}

.scroll-line span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--gold-bright));
}

.site-header,
main,
.footer {
  position: relative;
  z-index: 3;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 18px clamp(16px, 4vw, 56px);
  transition: background 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(255, 248, 234, 0.09);
  background: rgba(2, 7, 18, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 176px;
}

.brand img {
  width: clamp(170px, 18vw, 270px);
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.58));
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  color: var(--mist);
}

.nav-links a,
.header-action {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--gold-bright);
  transition: right 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  right: 0;
}

.header-action {
  border: 1px solid var(--line);
  padding: 12px 16px;
  background: rgba(255, 248, 234, 0.06);
}

.scene-section {
  position: relative;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: clamp(26px, 5vw, 86px);
  padding: 136px clamp(16px, 5vw, 74px) 112px;
  overflow: hidden;
}

.letterbox {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  height: clamp(34px, 5vw, 72px);
  background: #020712;
  pointer-events: none;
}

.letterbox.top {
  top: 0;
}

.letterbox.bottom {
  bottom: 0;
}

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

.eyebrow,
.section-mark {
  margin: 0 0 18px;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 1020px;
  margin-bottom: 26px;
  font-size: clamp(58px, 9.8vw, 152px);
  line-height: 0.82;
}

h2 {
  font-size: clamp(40px, 6vw, 86px);
  line-height: 0.92;
}

h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.08;
}

.hero-lead,
.platform-grid p,
.cinema-copy p,
.fleet-board p,
.network-copy p {
  color: var(--mist);
  font-size: 18px;
  line-height: 1.74;
}

.hero-lead {
  max-width: 720px;
  font-size: clamp(19px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid var(--line);
  padding: 0 24px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
}

.button.primary {
  color: #061222;
  background: linear-gradient(135deg, var(--paper), var(--gold-bright));
}

.button.ghost {
  background: rgba(255, 248, 234, 0.06);
  backdrop-filter: blur(14px);
}

.command-tile {
  align-self: center;
  border: 1px solid var(--line);
  padding: 26px;
  background: linear-gradient(160deg, rgba(255, 248, 234, 0.08), rgba(4, 13, 25, 0.7));
  backdrop-filter: blur(18px);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.34);
}

.command-tile span,
.platform-grid span,
.fleet-board span {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-tile strong {
  display: block;
  margin: 22px 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.92;
}

.command-tile p {
  margin-bottom: 0;
  color: var(--mist);
  line-height: 1.7;
}

.route-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(34px, 5vw, 72px);
  z-index: 6;
  display: flex;
  gap: 42px;
  border-top: 1px solid rgba(255, 248, 234, 0.13);
  border-bottom: 1px solid rgba(255, 248, 234, 0.13);
  padding: 15px 0;
  color: rgba(255, 248, 234, 0.48);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(90px, 12vw, 162px) 0;
}

.section-intro {
  max-width: 940px;
  margin-bottom: clamp(38px, 6vw, 78px);
}

.platform-grid,
.fleet-board,
.port-board,
.standard-lines,
.contact-panel {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.platform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-grid article,
.fleet-board article,
.standard-lines p,
.contact-panel a,
.contact-panel span {
  background: linear-gradient(150deg, rgba(255, 248, 234, 0.08), transparent 48%), var(--panel);
  backdrop-filter: blur(14px);
}

.platform-grid article {
  min-height: 340px;
  padding: clamp(24px, 3vw, 36px);
}

.platform-grid h3 {
  margin: 58px 0 18px;
}

.cinema {
  min-height: 250vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 620px);
  padding: 0 clamp(18px, 6vw, 90px);
}

.cinema::before {
  content: "";
  position: sticky;
  top: 0;
  height: 100svh;
  grid-column: 1;
}

.cinema-copy {
  grid-column: 2;
  padding: 22vh 0;
}

.cinema-copy article {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 248, 234, 0.12);
}

.fleet-board {
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(170px, 0.5fr));
}

.fleet-board article {
  min-height: 270px;
  padding: clamp(24px, 3vw, 36px);
}

.fleet-board .wide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fleet-board strong {
  display: block;
  margin-bottom: 36px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(70px, 8vw, 116px);
  line-height: 0.8;
}

.network {
  overflow: hidden;
}

.network-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 7, 18, 0.94), rgba(2, 7, 18, 0.34), rgba(2, 7, 18, 0.78)),
    url("assets/port-night.jpg") center / cover no-repeat;
  opacity: 0.62;
  transform: scale(1.04);
}

.network-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(430px, 0.82fr);
  gap: clamp(34px, 7vw, 94px);
  align-items: center;
}

.network-copy {
  max-width: 620px;
}

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

.port-board span {
  min-height: 98px;
  display: flex;
  align-items: center;
  padding: 24px;
  background: rgba(4, 13, 25, 0.76);
  color: var(--mist);
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.standards-panel {
  max-width: 980px;
}

.standard-lines {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 44px;
}

.standard-lines p {
  min-height: 116px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 26px;
  color: var(--mist);
  font-weight: 800;
}

.footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(90px, 10vw, 136px) 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.55fr);
  gap: clamp(34px, 7vw, 96px);
}

.footer-logo {
  width: min(520px, 86vw);
  margin-bottom: 34px;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.5));
}

.contact-panel {
  align-self: start;
}

.contact-panel a,
.contact-panel span {
  min-height: 88px;
  display: flex;
  align-items: center;
  padding: 24px;
  color: var(--mist);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 13px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 850ms ease, transform 850ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

  .hero,
  .network-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: end;
  }

  .command-tile {
    max-width: 520px;
  }

  .platform-grid,
  .fleet-board,
  .standard-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cinema {
    display: block;
    min-height: auto;
    padding: 0 clamp(18px, 5vw, 54px);
  }

  .cinema-copy {
    padding: 70px 0;
  }

  .cinema-copy article {
    min-height: auto;
    padding: 70px 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px;
  }

  .brand img {
    width: 170px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: 108px 14px 96px;
  }

  .command-tile {
    display: none;
  }

  h1 {
    font-size: clamp(50px, 17vw, 80px);
  }

  h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .route-marquee {
    gap: 28px;
    padding: 12px 0;
  }

  .section,
  .footer {
    width: min(100% - 28px, var(--max));
  }

  .platform-grid,
  .fleet-board,
  .port-board,
  .standard-lines {
    grid-template-columns: 1fr;
  }

  .platform-grid article,
  .fleet-board article {
    min-height: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
