@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DMSans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DMSans-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DMSans-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DMSans-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bree Serif";
  src: url("assets/fonts/BreeSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Shared design tokens */
  --bg: #0a3f7c;
  --panel: #fffdf8;
  --paper: #ffffff;
  --ink: #181512;
  --muted: #72685d;
  --line: #ece5dc;
  --accent: #c72020;
  --gold: #f3c651;
  --teal: #0f7c80;
  --blue: #235fb7;
  --shadow: 0 22px 50px rgba(17, 28, 49, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

/* Base document styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.12), rgba(255, 247, 234, 0)),
    linear-gradient(180deg, #0d4d95 0%, #18559d 14%, #f5efe5 14%, #f5efe5 100%);
}

body.is-loading {
  overflow: hidden;
}

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

/* Loading screen */
.loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #0d4d95 0%, #225ba8 100%);
  z-index: 100;
  opacity: 1;
  visibility: visible;
  transition: opacity 500ms ease, visibility 500ms ease;
}

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

.loader-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(78vw, 560px);
  aspect-ratio: 1 / 1;
}

.loader-ring {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 234, 140, 0.2) 0 34%, transparent 35%),
    conic-gradient(from 0deg, rgba(255, 222, 102, 0.15), rgba(255, 90, 120, 0.58), rgba(74, 178, 255, 0.62), rgba(255, 222, 102, 0.15));
  filter: blur(2px);
  animation: loader-ring-spin 3.2s linear infinite, loader-ring-pulse 1.8s ease-in-out infinite;
}

.loader-ring::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 0 28px rgba(255, 225, 111, 0.24),
    inset 0 0 18px rgba(255, 255, 255, 0.16);
}

.loader-logo {
  position: relative;
  z-index: 1;
  width: min(72vw, 520px);
  animation: loader-pop 1.2s ease-in-out infinite alternate;
  filter:
    drop-shadow(0 16px 24px rgba(0, 0, 0, 0.3))
    drop-shadow(0 0 28px rgba(255, 227, 111, 0.38));
}

button,
a {
  font: inherit;
}

/* Main page layout */
.page-shell {
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 3vw, 34px);
  background: #1d6c55;
  color: #f7f7f2;
}

.brand img {
  width: 82px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topnav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Hero section */
.hero {
  background: #4671bb;
}

.hero-copy {
  width: min(100%, 860px);
  padding: clamp(40px, 7vw, 72px) clamp(18px, 4vw, 48px) clamp(24px, 3vw, 36px);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.88;
  text-shadow: 0 2px 10px rgba(12, 28, 60, 0.28);
  animation: text-drop 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-copy h1 {
  margin: 0;
  max-width: 700px;
  font-family: "Bree Serif", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.07;
  text-shadow:
    0 4px 14px rgba(12, 28, 60, 0.26),
    0 0 18px rgba(255, 255, 255, 0.08);
  animation:
    text-drop 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both,
    title-glow 4.2s ease-in-out 1.2s infinite;
}

.hero-text {
  margin: 22px 0 0;
  max-width: 620px;
  font-size: 1.04rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(12, 28, 60, 0.22);
  animation: text-drop 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.24s both;
}

.scene {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: -1px;
}

.scene::before {
  content: none;
}

.scene-image {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
}

.scene-train-cover {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 14.1%;
  z-index: 2;
  background:
    linear-gradient(
      180deg,
      #4671bb 0%,
      #4671bb 22%,
      #4671bb 57%,
      #f4e7c0 57%,
      #f4e7c0 83%,
      #6b4b3f 83%,
      #6b4b3f 88%,
      transparent 88%
    );
  pointer-events: none;
}

.scene-train {
  position: absolute;
  top: 5.05%;
  left: -63%;
  width: min(166%, 2240px);
  z-index: 3;
  animation: train-loop 7s ease-in-out infinite alternate;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(12, 22, 35, 0.2));
}

.scene-logo {
  position: absolute;
  left: 50%;
  top: 52.5%;
  width: min(56vw, 560px);
  transform: translate(-50%, -50%);
  z-index: 4;
  filter:
    drop-shadow(0 18px 22px rgba(0, 0, 0, 0.3))
    drop-shadow(0 0 28px rgba(255, 219, 90, 0.6));
  animation: logo-pop 2s ease-in-out infinite;
}

/* Shared section blocks */
.section {
  width: 100%;
  padding: 46px clamp(16px, 3vw, 34px) 24px;
  background: #f5efe5;
}

.section-vibes {
  background: #ffffff;
}

.section-essentials {
  background: #ffffff;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.08;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.58);
  color: #6a6055;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 18px rgba(24, 21, 18, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.filter-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 216, 126, 0.55) 50%, transparent 100%);
  transform: translateX(-140%);
  transition: transform 320ms ease;
  pointer-events: none;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: #caa95d;
  background: rgba(255, 253, 246, 0.74);
  color: #181512;
  box-shadow:
    0 14px 24px rgba(24, 21, 18, 0.12),
    0 0 0 3px rgba(243, 198, 81, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
  transform: translateY(-3px) scale(1.03);
  outline: none;
}

.filter-chip:hover::after,
.filter-chip:focus-visible::after {
  transform: translateX(140%);
}

.filter-chip.is-active {
  border-color: #d6b168;
  background: rgba(255, 250, 240, 0.78);
  color: #181512;
  box-shadow:
    0 8px 16px rgba(24, 21, 18, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

/* Gallery grid and cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.vibe-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
  box-shadow:
    0 14px 30px rgba(25, 30, 40, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    opacity 180ms ease,
    border-color 200ms ease,
    background-color 200ms ease;
}

.vibe-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 216, 126, 0.18) 50%, transparent 100%);
  transform: translateX(-140%);
  transition: transform 360ms ease;
  pointer-events: none;
}

.vibe-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 238, 196, 0.9);
  background: rgba(255, 253, 248, 0.72);
  box-shadow:
    0 18px 34px rgba(25, 30, 40, 0.12),
    0 0 0 3px rgba(243, 198, 81, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.vibe-card:hover::after {
  transform: translateX(140%);
}

.vibe-card.is-hidden {
  display: none;
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 320ms ease, filter 320ms ease;
}

.vibe-card:hover .card-media img {
  transform: scale(1.08);
  filter: saturate(1.06);
}

.card-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fffef6;
  backdrop-filter: blur(6px);
}

.card-body {
  padding: 12px 12px 14px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.card-meta {
  margin: 0 0 10px;
  color: #8a7f73;
  font-size: 0.78rem;
}

.card-body p {
  margin: 0;
  color: #5f554a;
  font-size: 0.82rem;
  line-height: 1.48;
}

/* Essential information cards */
.section-essentials {
  padding-top: 26px;
  padding-bottom: 48px;
}

.essentials-heading {
  margin-bottom: 20px;
}

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

.info-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(26, 26, 26, 0.05);
  position: relative;
  transform-origin: center;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 216, 126, 0.16) 50%, transparent 100%);
  transform: translateX(-140%);
  transition: transform 360ms ease;
  pointer-events: none;
}

.info-card:hover {
  transform: scale(1.035);
  border-color: #d6b168;
  background: #fffdf8;
  box-shadow:
    0 18px 34px rgba(25, 30, 40, 0.12),
    0 0 0 3px rgba(243, 198, 81, 0.14);
}

.info-card:hover::after {
  transform: translateX(140%);
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f4efe8;
}

.info-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.28);
  transition: transform 280ms ease;
}

.info-card:hover .info-icon img {
  transform: scale(1.38);
}

.info-body {
  padding: 16px 18px;
}

.info-body h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.info-body p {
  margin: 0;
  color: #61584e;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 0;
  background: #030717;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  overflow: hidden;
}

.footer p {
  margin: 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px clamp(16px, 3vw, 34px);
  background: #050917;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-top p:first-child {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-top p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  width: 100%;
  padding: 12px clamp(16px, 3vw, 34px);
  background: linear-gradient(90deg, #0cc5c5 0%, #46a0ef 40%, #a88ed8 72%, #ff4f6f 100%);
  color: #ffffff;
  text-align: center;
}

.footer-bottom p {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Shared modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 21, 18, 0.46);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 40;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(320px, 1fr);
  width: min(100%, 960px);
  max-height: min(88vh, 720px);
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(16, 18, 30, 0.3);
  transform: translateY(16px) scale(0.98);
  transition: transform 240ms ease;
}

.modal-backdrop.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #256f56;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(37, 111, 86, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: #1c5a45;
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(37, 111, 86, 0.28);
  outline: none;
}

.modal-media {
  min-height: 100%;
  background: linear-gradient(180deg, #ef8f24, #c45a16);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  padding: clamp(28px, 4vw, 54px);
  overflow: auto;
}

.modal-content h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.modal-time {
  margin: 10px 0 18px;
  color: #ff6c57;
  font-size: 0.9rem;
}

.modal-section + .modal-section {
  margin-top: 10px;
}

.modal-section h4 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.modal-section p {
  margin: 0;
  color: #4a433a;
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Scroll reveal utility */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

/* Tablet layout adjustments */
@media (max-width: 980px) {
  .scene-train {
    top: 4.7%;
    left: -70%;
    width: 186%;
  }

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

/* Mobile layout adjustments */
@media (max-width: 720px) {
  .topbar {
    padding: 14px 18px;
  }

  .brand img {
    width: 68px;
  }

  .topnav {
    gap: 14px;
  }

  .topnav a {
    font-size: 0.72rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 8vw, 2.7rem);
  }

  .hero-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section {
    padding: 36px 16px 22px;
  }

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

  .card-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    grid-template-columns: 96px 1fr;
  }

  .scene-logo {
    width: 78vw;
    top: 53.5%;
  }

  .scene-train {
    left: -78%;
    width: 196%;
    top: 4.2%;
  }

  .footer {
    font-size: 0.72rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .footer-bottom {
    padding: 11px 16px 13px;
  }

  .footer-bottom p {
    letter-spacing: 0.08em;
    line-height: 1.5;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .modal-card {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .modal-media {
    min-height: 280px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    padding: 8px 14px;
  }

  .modal-content {
    padding: 22px 18px 24px;
  }
}

/* Large desktop adjustments */
@media (min-width: 1400px) {
  .hero-copy {
    width: min(100%, 980px);
  }

  .hero-copy h1 {
    max-width: 820px;
    font-size: clamp(3rem, 4.6vw, 5rem);
  }

  .hero-text {
    max-width: 760px;
    font-size: 1.1rem;
  }

  .scene-logo {
    width: min(40vw, 640px);
  }

  .scene-train {
    left: -54%;
    width: min(154%, 2460px);
    top: 5.15%;
  }
}

/* Reusable animations */
@keyframes logo-pop {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.14);
  }
}

@keyframes title-glow {
  0%,
  100% {
    text-shadow:
      0 4px 14px rgba(12, 28, 60, 0.26),
      0 0 18px rgba(255, 255, 255, 0.08);
  }

  50% {
    text-shadow:
      0 8px 18px rgba(12, 28, 60, 0.34),
      0 0 26px rgba(255, 255, 255, 0.16);
  }
}

@keyframes text-drop {
  0% {
    opacity: 0;
    transform: translateY(-42px);
  }

  60% {
    opacity: 1;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loader-pop {
  0% {
    transform: scale(0.96);
    opacity: 0.88;
  }

  100% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes loader-ring-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes loader-ring-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes train-loop {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(188vw);
  }
}
