:root {
  --bg: #071018;
  --bg-2: #0b1d29;
  --navy: #06182a;
  --teal: #0e4d57;
  --teal-soft: rgba(25, 134, 146, 0.28);
  --gold: #d9a845;
  --gold-light: #ffe0a3;
  --bronze: #9b6a2d;
  --wood: #3b2417;
  --ink: #e9edf0;
  --muted: #b9c4c9;
  --glass: rgba(6, 15, 22, 0.56);
  --glass-strong: rgba(6, 15, 22, 0.78);
  --border: rgba(255, 216, 144, 0.26);
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.48);
  --heading: "Cinzel", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.22;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 219, 151, 0.1), transparent 26%),
    radial-gradient(circle at 76% 8%, rgba(38, 151, 164, 0.12), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0 48%, rgba(0,0,0,0.65) 100%);
}

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

button, select {
  font: inherit;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.5rem;
  background:
    radial-gradient(circle at center, rgba(217, 168, 69, 0.16), transparent 34%),
    linear-gradient(145deg, #02070b, #0b1e2c 48%, #030609);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader p {
  margin: 0;
  color: var(--gold-light);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font: 700 0.82rem var(--heading);
}

.loader__compass {
  width: 6.8rem;
  height: 6.8rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 224, 163, 0.46);
  position: relative;
  box-shadow: 0 0 32px rgba(217, 168, 69, 0.28), inset 0 0 30px rgba(217, 168, 69, 0.14);
  animation: spinCompass 2.2s linear infinite;
}

.loader__compass::before,
.loader__compass::after {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 224, 163, 0.34);
}

.loader__compass::after {
  inset: 32% 47%;
  border: 0;
  border-radius: 100% 100% 0 0;
  background: linear-gradient(var(--gold-light), var(--bronze));
  transform-origin: center 80%;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  background: #02070b;
}

.backdrop__slide {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  animation: cinematicSlides 32s infinite;
  filter: saturate(0.85) contrast(1.1) brightness(0.82);
}

.backdrop__slide--one {
  background-image: url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=2400&q=80");
  animation-delay: 0s;
}

.backdrop__slide--two {
  background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2400&q=80");
  animation-delay: 8s;
}

.backdrop__slide--three {
  background-image: url("https://images.unsplash.com/photo-1518837695005-2083093ee35b?auto=format&fit=crop&w=2400&q=80");
  animation-delay: 16s;
}

.backdrop__slide--four {
  background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2400&q=80");
  animation-delay: 24s;
}

.backdrop__shade,
.backdrop__fog,
.backdrop__shimmer,
.backdrop__storm {
  position: absolute;
  inset: 0;
}

.backdrop__shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(6, 20, 30, 0.46) 38%, rgba(0,0,0,0.86)),
    radial-gradient(circle at 50% 28%, rgba(12, 92, 108, 0.38), transparent 40%);
}

.backdrop__storm {
  opacity: 0.32;
  background:
    radial-gradient(ellipse at 10% 18%, rgba(255,255,255,0.15), transparent 30%),
    radial-gradient(ellipse at 75% 10%, rgba(255,255,255,0.13), transparent 28%),
    linear-gradient(120deg, transparent 0 35%, rgba(255,255,255,0.06) 38%, transparent 43% 100%);
  filter: blur(16px);
  animation: driftClouds 26s ease-in-out infinite alternate;
}

.backdrop__fog {
  background:
    radial-gradient(ellipse at 20% 78%, rgba(210, 228, 226, 0.13), transparent 35%),
    radial-gradient(ellipse at 82% 68%, rgba(210, 228, 226, 0.1), transparent 36%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  filter: blur(26px);
  animation: fogDrift 20s ease-in-out infinite alternate;
}

.backdrop__shimmer {
  top: auto;
  height: 42%;
  background:
    repeating-linear-gradient(105deg, transparent 0 34px, rgba(255,255,255,0.055) 35px 37px, transparent 38px 72px),
    radial-gradient(ellipse at center bottom, rgba(255, 214, 126, 0.12), transparent 55%);
  transform: translateY(8%);
  animation: shimmerMove 9s linear infinite;
  mix-blend-mode: screen;
}

.particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 224, 163, 0.46) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(144, 220, 225, 0.26) 0 1px, transparent 1.2px);
  background-size: 180px 180px, 250px 250px;
  animation: particlesFloat 24s linear infinite;
  opacity: 0.4;
}

.ship-silhouette {
  position: absolute;
  width: 170px;
  height: 54px;
  left: -180px;
  bottom: 36%;
  opacity: 0.28;
  background:
    linear-gradient(12deg, transparent 0 22%, rgba(0,0,0,0.88) 24% 64%, transparent 66%),
    linear-gradient(90deg, transparent 0 20%, rgba(0,0,0,0.88) 20% 80%, transparent 80%);
  clip-path: polygon(0 68%, 100% 68%, 82% 100%, 13% 100%);
  filter: blur(0.2px);
  animation: shipSail 52s linear infinite;
}

.ship-silhouette::before {
  content: "";
  position: absolute;
  left: 62%;
  bottom: 42%;
  width: 42px;
  height: 42px;
  background: rgba(0,0,0,0.86);
  clip-path: polygon(0 0, 100% 58%, 0 100%);
}

.seagulls {
  position: absolute;
  top: 21%;
  right: -12%;
  color: rgba(255,255,255,0.48);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  letter-spacing: 1rem;
  animation: gulls 34s linear infinite;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.2rem);
  background: linear-gradient(180deg, rgba(1, 7, 11, 0.88), rgba(1, 7, 11, 0.2));
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--heading);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(217, 168, 69, 0.36);
}

.brand-mark__logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.brand-mark__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(217, 168, 69, 0.08);
  box-shadow: inset 0 0 14px rgba(217, 168, 69, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(255, 224, 163, 0.14);
  border-radius: 999px;
  background: rgba(2, 10, 15, 0.38);
}

.nav a {
  color: rgba(233, 237, 240, 0.82);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 12px rgba(217, 168, 69, 0.45);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sound-toggle,
.language-select {
  min-height: 2.6rem;
  border: 1px solid rgba(255, 224, 163, 0.22);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(1, 8, 13, 0.58);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 20px rgba(217, 168, 69, 0.07);
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.9rem;
  cursor: pointer;
}

.sound-toggle__wave {
  width: 0.66rem;
  height: 0.66rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(217, 168, 69, 0.75);
}

.sound-toggle[aria-pressed="true"] .sound-toggle__wave {
  animation: pulseSound 1.3s ease-in-out infinite;
}

.language-select {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.35rem 0 0.75rem;
}

.language-select select {
  width: 4.2rem;
  color: var(--gold-light);
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.language-select option {
  color: #111;
}

.section {
  position: relative;
  z-index: 4;
  padding: clamp(5.5rem, 10vw, 9rem) clamp(1rem, 5vw, 5rem);
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 6rem;
  overflow: hidden;
}

.hero__content {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 4;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(255, 224, 163, 0.22);
  border-radius: clamp(1.5rem, 3vw, 3rem);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), transparent 32%),
    linear-gradient(180deg, rgba(6, 15, 22, 0.5), rgba(6, 15, 22, 0.2));
  box-shadow: var(--shadow), inset 0 0 100px rgba(217, 168, 69, 0.06);
  backdrop-filter: blur(18px);
}

.hero__content::before,
.hero__content::after,
.map-panel::before,
.story-card::before,
.split-card::before,
.final-call__content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255,224,163,0.18), transparent),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 8px);
  mask-image: linear-gradient(#000, transparent 75%);
  opacity: 0.58;
}

.hero__content::after {
  inset: 0.8rem;
  border: 1px solid rgba(255, 224, 163, 0.14);
  background: none;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-light);
  font-family: var(--heading);
  font-size: clamp(0.72rem, 1.4vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--heading);
  line-height: 1.05;
}

h1 {
  font-size: clamp(4.5rem, 15vw, 10rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff5d8;
  text-shadow:
    0 0 16px rgba(217, 168, 69, 0.5),
    0 8px 0 rgba(60, 36, 18, 0.25),
    0 28px 70px rgba(0, 0, 0, 0.7);
}

.hero h2 {
  margin-top: -0.35rem;
  color: var(--gold);
  font-size: clamp(1.45rem, 3.5vw, 3.2rem);
  font-weight: 700;
}

.hero__text {
  width: min(680px, 100%);
  margin: 1.5rem auto 0;
  color: rgba(233, 237, 240, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.75;
}

.hero__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero__cta--small {
  margin-top: 1.8rem;
}

.cta {
  position: relative;
  isolation: isolate;
  min-width: min(100%, 240px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.68rem;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(255, 224, 163, 0.5);
  border-radius: 999px;
  color: #1d1207;
  background:
    linear-gradient(135deg, #fff0b8, #d9a845 46%, #8e5b25),
    radial-gradient(circle at 24% 20%, #fff, transparent 26%);
  box-shadow:
    0 0 28px rgba(217, 168, 69, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -18px 26px rgba(60, 36, 18, 0.16);
  font-weight: 900;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.cta svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -100% 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.62), transparent);
  transform: translateX(-110%) rotate(8deg);
  transition: transform 0.65s ease;
}

.cta:hover {
  transform: translateY(-4px) scale(1.018);
  box-shadow:
    0 0 48px rgba(217, 168, 69, 0.54),
    0 18px 34px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  filter: saturate(1.08);
}

.cta:hover::before {
  transform: translateX(110%) rotate(8deg);
}

.hero__halo {
  position: absolute;
  width: min(82vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,168,69,0.19), transparent 60%);
  filter: blur(18px);
  animation: haloBreath 6s ease-in-out infinite alternate;
}

.compass {
  position: absolute;
  width: min(70vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 224, 163, 0.12);
  box-shadow: inset 0 0 60px rgba(217, 168, 69, 0.04);
  opacity: 0.42;
  animation: slowRotate 54s linear infinite;
}

.compass::before,
.compass::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 224, 163, 0.18);
}

.compass::after {
  inset: 48% 8%;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,224,163,0.6), transparent);
  transform: rotate(45deg);
}

.compass span {
  position: absolute;
  color: rgba(255,224,163,0.42);
  font: 800 1rem var(--heading);
}

.compass span:nth-child(1) { top: 5%; left: 50%; transform: translateX(-50%); }
.compass span:nth-child(2) { right: 6%; top: 50%; transform: translateY(-50%); }
.compass span:nth-child(3) { bottom: 5%; left: 50%; transform: translateX(-50%); }
.compass span:nth-child(4) { left: 6%; top: 50%; transform: translateY(-50%); }

.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 110px;
  background:
    radial-gradient(60px 42px at 50px 48px, transparent 50px, rgba(6, 16, 24, 0.9) 51px) 0 0 / 110px 100%,
    linear-gradient(180deg, transparent 0 30%, rgba(6, 16, 24, 0.92) 31% 100%);
}

.intro-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  width: min(1120px, calc(100% - 2rem));
  margin: -2.8rem auto 0;
  padding: 1.2rem clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #fff1c7;
  background:
    linear-gradient(90deg, rgba(90,56,21,0.48), rgba(6, 18, 26, 0.82), rgba(90,56,21,0.48));
  box-shadow: var(--shadow), inset 0 0 40px rgba(217, 168, 69, 0.08);
  backdrop-filter: blur(16px);
  text-align: center;
}

.intro-strip p {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.intro-strip span {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.section__header {
  width: min(880px, 100%);
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.section__header h2,
.map-panel h2,
.split-card h2,
.final-call h2 {
  color: #fff2cc;
  font-size: clamp(1.9rem, 5vw, 4.6rem);
  text-shadow: 0 0 30px rgba(217, 168, 69, 0.24);
}

.section__header p:last-child,
.map-panel p,
.split-card p,
.final-call p {
  color: rgba(233, 237, 240, 1);
  line-height: 1.8;
  font-size: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
  width: min(1220px, 100%);
  margin: 0 auto;
}

.story-card,
.map-panel,
.split-card,
.final-call__content {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 0 80px rgba(217, 168, 69, 0.04);
  backdrop-filter: blur(18px);
}

.story-card {
  min-height: 420px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 168, 69, 0.22), transparent 28%),
    linear-gradient(180deg, var(--glass), rgba(2, 8, 12, 0.76));
}

.story-card__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  color: var(--gold-light);
  border: 1px solid rgba(255, 224, 163, 0.28);
  background: rgba(217, 168, 69, 0.08);
  font-size: 1.6rem;
  box-shadow: inset 0 0 20px rgba(217, 168, 69, 0.14);
}

.story-card h3 {
  color: var(--gold-light);
  font-size: clamp(1.45rem, 2vw, 1.6rem);
}

.story-card p {
  color: rgba(233, 237, 240, 0.78);
  line-height: 1.75;
}

.story-card__claim {
  color: #fff !important;
  font-weight: 900;
}

.rope-separator {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 0 clamp(1rem, 5vw, 5rem);
}

.rope-separator span {
  width: min(1050px, 100%);
  height: 18px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(120deg, #3b2417 0 10px, #9b6a2d 10px 20px, #27170e 20px 30px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35), inset 0 2px 2px rgba(255,255,255,0.18);
  opacity: 0.78;
}

.section--map {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.map-panel {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.4rem);
  border-radius: 2.4rem;
  background:
    linear-gradient(rgba(6, 15, 22, 0.8), rgba(6, 15, 22, 0.88)),
    radial-gradient(circle at 30% 20%, rgba(217,168,69,0.2), transparent 34%),
    repeating-linear-gradient(25deg, rgba(255, 224, 163, 0.07) 0 1px, transparent 1px 14px),
    #24170f;
}

.map-panel__ornament {
  position: absolute;
  right: -7rem;
  top: -7rem;
  width: 22rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255,224,163,0.18);
  border-radius: 50%;
  opacity: 0.52;
  animation: slowRotate 60s linear infinite reverse;
}

.map-panel__ornament::before,
.map-panel__ornament::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255,224,163,0.18);
  border-radius: 50%;
}

.map-panel__ornament::after {
  inset: 48% 10%;
  height: 1px;
  border: 0;
  background: rgba(255,224,163,0.38);
  transform: rotate(34deg);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.feature-list span {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,224,163,0.22);
  border-radius: 999px;
  color: #fff2cc;
  background: rgba(217, 168, 69, 0.08);
  font-weight: 800;
}

.section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.4vw, 1.8rem);
  width: min(1220px, 100%);
  margin: 0 auto;
}

.split-card {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 2.2rem;
}

.split-card--dark {
  background:
    linear-gradient(176deg, rgba(6, 15, 22, 0.34), rgb(2 8 12 / 40%)), linear-gradient(359deg, rgb(6 15 22 / 0%), rgb(2 8 12 / 42%)), url(images/card5.png) center / cover;
}

.split-card--gold {
  background:
    linear-gradient(337deg, rgba(6, 15, 22, 0.2), rgba(62, 38, 14, 0.84)), url(images/card2.png) center / cover;
}

.final-call {
  display: grid;
  place-items: center;
  min-height: 72svh;
  text-align: center;
}

.final-call__content {
  width: min(920px, 100%);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 2.4rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(217,168,69,0.22), transparent 34%),
    linear-gradient(180deg, rgba(6, 15, 22, 0.74), rgba(2, 8, 12, 0.86));
}

.section--gallery {
  padding-bottom: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 18vw, 230px);
  gap: 1rem;
  width: min(1220px, 100%);
  margin: 0 auto;
}

.gallery-item {
  grid-column: span var(--gallery-span, 3);
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-2);
  color: inherit;
  font: inherit;
  text-align: inherit;
  box-shadow: none;
  appearance: none;
}

.gallery-item img,
.gallery-item > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img,
.gallery-item:hover > video {
  transform: scale(1.1);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 24, 0.46);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.video-item__overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 39%);
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(1px);
}

.gallery-item:hover .video-item__overlay {
  backdrop-filter: blur(1px);
}

.video-item__overlay span {
  font-size: 2rem;
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff;
}

.gallery-item__overlay span {
  font-size: 2rem;
  color: var(--gold-light);
  /* text-shadow: 0 0 15px var(--gold); */
}

.gallery-actions {
  display: none;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 620px) {
  .gallery-actions {
    display: flex;
  }
  .gallery-item:nth-child(n+4) {
    display: none;
  }
  .gallery-item.is-visible-mobile {
    display: block;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(2, 7, 11, 0.96);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  width: min(1000px, 90vw);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__content img,
.lightbox__content video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 1rem;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
  border: 1px solid var(--border);
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: var(--gold-light);
  cursor: pointer;
  line-height: 1;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  color: var(--gold-light);
  cursor: pointer;
  padding: 1rem;
  user-select: none;
  transition: color 0.3s ease;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  color: #fff;
}

.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }
}

@media (max-width: 620px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery-item {
    grid-column: auto;
    grid-row: auto;
  }
  .lightbox__prev,
  .lightbox__next {
    display: none;
  }
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 3rem 1rem;
  color: var(--muted);
  text-align: center;
}

.footer {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 5vw, 5rem) 2rem;
  color: rgba(233, 237, 240, 0.66);
  border-top: 1px solid rgba(255,224,163,0.12);
  background: rgba(2, 8, 12, 0.72);
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.cursor-compass {
  position: fixed;
  z-index: 999;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 224, 163, 0.34);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
}

.cursor-compass::before,
.cursor-compass::after {
  content: "";
  position: absolute;
  inset: 48% 16%;
  height: 1px;
  background: rgba(255, 224, 163, 0.8);
}

.cursor-compass::after {
  transform: rotate(90deg);
}

@keyframes cinematicSlides {
  0%, 100% { opacity: 0; transform: scale(1.08); }
  6%, 25% { opacity: 1; }
  31% { opacity: 0; transform: scale(1.02); }
}

@keyframes fogDrift {
  from { transform: translateX(-4%) translateY(2%); }
  to { transform: translateX(5%) translateY(-2%); }
}

@keyframes driftClouds {
  from { transform: translateX(-3%) scale(1); }
  to { transform: translateX(4%) scale(1.08); }
}

@keyframes shimmerMove {
  from { background-position: 0 0, 0 0; }
  to { background-position: 220px 0, 0 0; }
}

@keyframes particlesFloat {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 -480px, 260px -520px; }
}

@keyframes shipSail {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 380px)); }
}

@keyframes gulls {
  from { transform: translateX(0) translateY(0); }
  45% { transform: translateX(-55vw) translateY(-30px); }
  to { transform: translateX(-120vw) translateY(10px); }
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCompass {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes haloBreath {
  from { transform: scale(0.94); opacity: 0.62; }
  to { transform: scale(1.08); opacity: 0.9; }
}

@keyframes pulseSound {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(217, 168, 69, 0.75); }
  50% { transform: scale(1.42); box-shadow: 0 0 28px rgba(217, 168, 69, 0.95); }
}

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

  .sound-toggle span:last-child {
    display: none;
  }

  .cards-grid,
  .section--split {
    grid-template-columns: 1fr;
  }

  .story-card,
  .split-card {
    min-height: auto;
  }

  .intro-strip {
    grid-template-columns: 1fr;
    border-radius: 1.8rem;
  }

  .intro-strip span {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 0.75rem 0.8rem;
  }

  .brand-mark {
    font-size: 0.84rem;
  }

  .brand-mark__icon {
    width: 2rem;
    height: 2rem;
  }

  .language-select {
    padding-left: 0.55rem;
  }

  .language-select select {
    width: 3.55rem;
  }

  .hero__content {
    border-radius: 1.35rem;
    padding: 1.4rem;
  }

  h1 {
    font-size: clamp(2.3rem, 12vw, 4rem);
    letter-spacing: 0.02em;
  }

  .cta {
    width: 100%;
  }

  .section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    padding-left: 1rem;   /* Adds a safety gutter on the left */
    padding-right: 1rem;  /* Adds a safety gutter on the right */
  }

  .hero__content {
    border-radius: 1.35rem;
    padding: 1.4rem;      /* Already scales down, but needs the parent boundary above */
    width: 100%;          /* Forces it to strictly obey the parent's padding */
    box-sizing: border-box;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-compass {
    display: none;
  }
}

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