/* ---------- THEME ---------- */
html {
  scroll-behavior: smooth;
}

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

* {
  scroll-margin-top: var(--navH);
}

body {
  overflow-x: hidden;
  overflow-y: scroll;
}

body.loading {
  overflow: hidden !important;
}

:root {
  --bg: #070A12;
  --text: #EAF0FF;
  --muted: rgba(234, 240, 255, .75);
  --glass: rgba(255, 255, 255, .08);
  --stroke: rgba(255, 255, 255, .14);
  --accent: #6EE7FF;
  --accent2: #A78BFA;
  --shadow: 0 20px 60px rgba(0, 0, 0, .55);
  --radius: 22px;
  --navH: 140px;

  /* hero sizing + depth */
  --heroH: 100svh;

  --bgScale: 1.18;
  --midScale: 1.10;
  --fgScaleStart: 1.16;
  --fgScaleEnd: 1.06;

  /* guardians */
  --gMaxH: min(78vh, 920px);
  --gX: clamp(18px, 6vw, 90px);
  --gBottom: clamp(12px, 3vh, 34px);

  /* logo */
  --logoW: clamp(260px, 34vw, 520px);
  --logoTop: clamp(6vh, 9vh, 12vh);
}

@media (max-width: 560px) {
  :root {
    --logoTop: 22vh;
    /* Push logo down on small mobile */
  }
}

/* ---------- FONT ---------- */
@font-face {
  font-family: "Ancient";
  src: url("../assets/fonts/Ancient Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Blackcherry";
  src: url("../assets/fonts/BLKCHCRY.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- BASE ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Ancient", "Palatino Linotype", "Book Antiqua", "Garamond", "Georgia", serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ---------- GLOBAL SCROLLBAR ---------- */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 216, 140, 0.6) transparent;
}

body::-webkit-scrollbar {
  width: 14px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background: url("../assets/images/scrollbar.webp") center/contain no-repeat;
  min-height: 90px;
}

/* ---------- PRELOADER ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  background: radial-gradient(circle at center, #1a2035 0%, #070A12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

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

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
}

.loader-logo {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(245, 216, 140, 0.2));
  animation: logoBreath 3s ease-in-out infinite;
}

.loader-progress-container {
  width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.loader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d7b46a, #ffd700, #d7b46a);
  background-size: 200% 100%;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  animation: shimmer 1.5s linear infinite;
  transition: width 0.1s ease-out;
}

.loader-text {
  font-family: "Courier New", Courier, monospace;
  color: rgba(245, 216, 140, 0.7);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes logoBreath {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(245, 216, 140, 0.2));
  }

  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 30px rgba(245, 216, 140, 0.5));
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes textPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* ---------- NAV ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navH);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 0 48px;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(-12px);
  transition: background 0.3s ease;
}

.navbar:hover {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}

.nav-logo {
  height: 100%;
  display: flex;
  align-items: center;
  margin-left: 4%;
}

.nav-logo img {
  width: clamp(200px, 24vw, 420px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.6));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.nav-logo img:hover {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.8));
  transform: scale(1.02);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0 4% 0 auto;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #f5d88c;
  font-family: "Ancient", serif;
  font-size: 20px;
  letter-spacing: 1.4px;
  position: relative;
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1),
    color .3s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.nav-links a.nav-brochure {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(245, 216, 140, 0.6);
  box-shadow: 0 0 12px rgba(245, 216, 140, 0.18);
}

/* Link underline animation */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f5d88c, #ffd700);
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(255, 215, 150, 0.5);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  transform: translateY(-2px);
  text-shadow: 0 0 12px rgba(255, 215, 150, 0.75),
    0 4px 12px rgba(0, 0, 0, 0.9);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.nav-brochure:hover {
  box-shadow: 0 0 18px rgba(245, 216, 140, 0.35);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.nav-toggle:hover {
  transform: translateY(-50%) scale(1.1);
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, #d7b46a, #f4e4b8);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform .3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    opacity .3s ease,
    background 0.3s ease;
}

.nav-toggle span+span {
  margin-top: 6px;
}

.nav-toggle:hover span {
  background: linear-gradient(90deg, #f4e4b8, #ffd700);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--navH);
  left: 0;
  right: 0;
  z-index: 19;
  max-height: 0;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .92), rgba(10, 10, 20, .98));
  transition: max-height .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
  max-height: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  text-align: center;
}

.mobile-menu li {
  opacity: 0;
  transform: translateX(-20px);
  animation: none;
}

.mobile-menu.is-open li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.is-open li:nth-child(1) {
  animation-delay: 0.05s;
}

.mobile-menu.is-open li:nth-child(2) {
  animation-delay: 0.1s;
}

.mobile-menu.is-open li:nth-child(3) {
  animation-delay: 0.15s;
}

.mobile-menu.is-open li:nth-child(4) {
  animation-delay: 0.2s;
}

.mobile-menu.is-open li:nth-child(5) {
  animation-delay: 0.25s;
}

.mobile-menu.is-open li:nth-child(6) {
  animation-delay: 0.3s;
}

.mobile-menu li+li {
  border-top: 1px solid rgba(215, 180, 106, 0.12);
}

.mobile-menu a {
  display: block;
  padding: 14px 24px;
  text-align: center;
  text-decoration: none;
  color: #d7b46a;
  font-family: "Ancient", serif;
  font-size: 17px;
  letter-spacing: 1.2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.mobile-menu a.nav-brochure {
  margin: 6px 24px 0;
  border: 1px solid rgba(245, 216, 140, 0.5);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 0 12px rgba(245, 216, 140, 0.18);
}

.mobile-menu a:hover {
  color: #f4e4b8;
  background: rgba(215, 180, 106, 0.12);
  text-shadow: 0 0 10px rgba(244, 228, 184, 0.5);
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- HERO / LAYERS ---------- */
.hero {
  position: relative;
  min-height: var(--heroH);
  isolation: isolate;
  z-index: 1;
}

.layers {
  position: fixed;
  inset: 0;
  height: var(--heroH);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: var(--heroH);
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  filter: none;
  transition: none;
}

.layer.bg {
  z-index: 0;
  transform: scale(var(--bgScale));
  filter: none;
  animation: none;
}

.layer.mid {
  z-index: 1;
  transform: scale(var(--midScale));
  opacity: .85;
  mix-blend-mode: normal;
  filter: none;
}

@keyframes breathe {

  0%,
  100% {
    filter: brightness(.92) contrast(1.05) saturate(1.03);
  }

  50% {
    filter: brightness(.88) contrast(1.08) saturate(1.06);
  }
}

.guardians {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.guardian {
  --guardian-shift: 0px;
  position: absolute;
  bottom: var(--gBottom);
  height: var(--gMaxH);
  opacity: 0;
  transform: translateZ(0);
  transform-origin: center bottom;
  will-change: transform, opacity, filter;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
  mix-blend-mode: normal;
  transition: none;
  animation: guardianFloat 12s ease-in-out infinite;
  backface-visibility: hidden;
}

.guardian.left {
  left: var(--gX);
  animation: none;
}

.guardian.right {
  right: var(--gX);
  animation: none;
}

/* Subtle float animation without glow */
@keyframes guardianFloat {

  0%,
  100% {
    transform: translate3d(var(--guardian-shift), 0, 0) translateZ(0);
  }

  50% {
    transform: translate3d(var(--guardian-shift), -8px, 0) translateZ(0);
  }
}

.shells-fall {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-logo {
  position: relative;
  z-index: 12;
  display: grid;
  place-items: start center;
  padding-top: var(--logoTop);
}

@media (max-width: 560px) {
  .hero-logo {
    padding-top: 0 !important;
    margin-top: 10vh !important;
  }

  .cta-buttons {
    bottom: 30vh !important;
  }

  .countdown {
    bottom: 18vh !important;
  }
}

.shells-logo {
  width: var(--logoW);
  height: auto;
  opacity: 0;
  transform: translate3d(0, -40px, 0) scale(.98);
  will-change: transform, opacity, filter;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.shells-logo.is-loaded {
  animation: logoDrop 1.6s cubic-bezier(.18, .85, .2, 1) 0s both;
}

@keyframes logoGlow {

  0%,
  100% {
    filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 18px rgba(110, 231, 255, 0.18)) drop-shadow(0 0 24px rgba(167, 139, 250, 0.14));
  }

  50% {
    filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 28px rgba(110, 231, 255, 0.35)) drop-shadow(0 0 38px rgba(167, 139, 250, 0.28));
  }
}

.layer.fg {
  z-index: 4;
  opacity: 0;
  transform: scale(var(--fgScaleStart));
  filter: contrast(1.08) saturate(1.05);
}

.vignette {
  position: absolute;
  inset: -2px;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(80% 80% at 50% 35%, transparent 45%, rgba(0, 0, 0, .65) 100%),
    linear-gradient(to top, rgba(0, 0, 0, .65), transparent 55%);
  animation: none;
}

@keyframes vignettePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.85;
  }
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: normal;
  animation: none;
}

@keyframes grainMove {

  0%,
  100% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-5%, -10%);
  }

  20% {
    transform: translate(-15%, 5%);
  }

  30% {
    transform: translate(7%, -25%);
  }

  40% {
    transform: translate(-5%, 25%);
  }

  50% {
    transform: translate(-15%, 10%);
  }

  60% {
    transform: translate(15%, 0%);
  }

  70% {
    transform: translate(0%, 15%);
  }

  80% {
    transform: translate(3%, 35%);
  }

  90% {
    transform: translate(-10%, 10%);
  }
}

/* atmospheric haze */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  background: radial-gradient(70% 50% at 50% 20%, rgba(110, 231, 255, .06), transparent 60%);
  mix-blend-mode: normal;
  animation: none;
}

@keyframes hazePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* ---------- CTA + COUNTDOWN ---------- */
.cta-buttons,
.countdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: auto;
  opacity: 0;
}

.cta-buttons {
  bottom: clamp(140px, 18vh, 300px);
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}

.cta-btn {
  position: relative;
  display: inline-block;
}

.cta-btn img {
  height: 85px;
  width: auto;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(255, 200, 120, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
  z-index: -1;
}

.cta-btn:hover::before {
  opacity: 0.6;
}

.cta-btn:hover img {
  transform: scale(1.03) translateY(-2px);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.cta-btn:active img {
  transform: scale(1.05) translateY(-2px);
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.countdown {
  bottom: clamp(40px, 7vh, 160px);
  display: flex;
  justify-content: center;
}

.countdown-timer {
  display: flex;
  gap: 28px;
}

.live-message {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 12px 28px;
  border-radius: 50px;
  background: rgba(0, 10, 20, 0.6);
  border: 1px solid rgba(255, 50, 50, 0.3);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.live-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.live-dot {
  width: 100%;
  height: 100%;
  background-color: #ff3333;
  border-radius: 50%;
  box-shadow: 0 0 12px #ff3333;
  z-index: 2;
}

.live-indicator::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #ff3333;
  animation: livePulse 2s infinite;
  z-index: 1;
}

.live-text {
  font-family: "Blackcherry", serif;
  font-size: 20px;
  color: #f5d88c;
  letter-spacing: 2px;
  font-weight: normal;
  text-shadow: 0 0 12px rgba(245, 216, 140, 0.4);
  transform: translateY(-2px);
  /* Optical adjustment for script font */
  white-space: nowrap;
}

@media (max-width: 900px) {
  .countdown {
    bottom: 12vh;
  }

  .cta-buttons {
    bottom: 25vh;
  }

  .live-message {
    padding: 8px 16px;
    gap: 8px;
  }

  .live-indicator {
    width: 10px;
    height: 10px;
  }

  .live-text {
    font-size: 14px;
    letter-spacing: 1.5px;
  }
}

@keyframes livePulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  70% {
    transform: scale(3);
    opacity: 0;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.time-box {
  text-align: center;
  font-family: "Ancient", "Palatino Linotype", "Book Antiqua", "Garamond", "Georgia", serif;
  color: #f5d88c;
  text-shadow: 0 0 6px rgba(255, 215, 140, 0.6),
    0 0 14px rgba(0, 0, 0, 0.9);
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.time-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245, 216, 140, 0.3), rgba(245, 216, 140, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.time-box:hover::before {
  opacity: 1;
}

.time-box:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.time-box span {
  font-size: 42px;
  display: block;
  letter-spacing: 3px;
  animation: none;
}

@keyframes numberPulse {

  0%,
  100% {
    text-shadow: 0 0 6px rgba(255, 215, 140, 0.6),
      0 0 14px rgba(0, 0, 0, 0.9);
  }

  50% {
    text-shadow: 0 0 12px rgba(255, 215, 140, 0.8),
      0 0 18px rgba(0, 0, 0, 0.9),
      0 0 24px rgba(255, 215, 140, 0.4);
  }
}

.time-box small {
  font-size: 13px;
  font-family: "Garamond", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
  letter-spacing: 2px;
  opacity: .9;
}

/* ---------- INTRO ANIMATIONS ---------- */
body.hero-animate .navbar {
  animation: navDrop .8s ease-out .2s forwards;
}

body.hero-animate .layer.fg {
  animation: fgReveal 1.1s ease-out .2s forwards;
}

body.hero-animate .guardian {
  animation-name: guardiansIn, guardianFloat;
  animation-duration: 1.2s, 12s;
  animation-timing-function: ease-out, ease-in-out;
  animation-delay: .55s, 1.75s;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
}

body.hero-animate .guardian.right {
  animation-name: guardiansIn, guardianFloat;
  animation-duration: 1.2s, 12s;
  animation-timing-function: ease-out, ease-in-out;
  animation-delay: .55s, 1.75s;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
}

body.hero-animate .cta-buttons {
  animation: uiIn 1.1s ease-out 1.25s forwards;
}

body.hero-animate .countdown {
  animation: uiIn 1.1s ease-out 1.35s forwards;
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fgReveal {
  from {
    opacity: 0;
    transform: scale(calc(var(--fgScaleStart) + .06));
  }

  to {
    opacity: 1;
    transform: scale(var(--fgScaleEnd));
  }
}

@keyframes guardiansIn {
  from {
    opacity: 0;
    transform: translate3d(var(--guardian-shift), 40px, 0) scale(.88);
  }

  to {
    opacity: .92;
    transform: translate3d(var(--guardian-shift), 0, 0) scale(1);
  }
}

@keyframes logoDrop {
  0% {
    opacity: 0;
    transform: translate3d(0, -240px, 0) scale(.92) rotate(-2deg);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
}

@keyframes uiIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* ---------- PAGE CONTENT ---------- */
main {
  position: relative;
  z-index: 2;
}

.section {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 40px 0 70px;
}

.brochure-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "content preview"
    "actions preview";
  gap: clamp(24px, 4vw, 42px);
  padding: clamp(22px, 4vw, 36px);
  border-radius: 20px;
  background: rgba(6, 8, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.brochure-card::after {
  content: "";
  position: absolute;
  inset: -30% 55% 30% -30%;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.18), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.brochure-content,
.brochure-preview {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brochure-content {
  width: min(680px, 100%);
  margin: 0;
  justify-self: start;
  grid-area: content;
}

.brochure-card .brochure-title {
  margin: 0 0 12px;
  font-family: "Ancient", "Palatino Linotype", "Book Antiqua", "Garamond", "Georgia", serif;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 0.5px;
  color: #f4e9d7;
  text-transform: uppercase;
  text-align: left;
}

.brochure-card .brochure-text {
  margin: 0 0 12px;
  color: rgba(230, 235, 255, 0.85);
  line-height: 1.7;
  font-size: clamp(14px, 1.5vw, 17px);
  text-align: left;
  font-family: "Garamond", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
}

.brochure-card .brochure-note {
  margin: 0 0 22px;
  color: rgba(200, 210, 255, 0.7);
  font-size: clamp(13px, 1.4vw, 15px);
  text-align: left;
  font-family: "Garamond", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
}

.brochure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  grid-area: actions;
  align-self: start;
  justify-self: center;
  margin-top: 0;
}

.brochure-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
  border: none;
  background: transparent;
  color: #e8f6ff;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brochure-btn:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.brochure-btn.primary {
  background: transparent;
  border: none;
  box-shadow: none;
}

.brochure-btn.ghost {
  border: none;
  color: rgba(234, 240, 255, 0.9);
}

.brochure-btn-img {
  width: clamp(150px, 18vw, 210px);
  height: auto;
  display: block;
}

.brochure-preview img {
  width: min(100%, 260px);
  height: auto;
  border: none;
  border-radius: 4px 10px 10px 4px;
  display: block;
}

.brochure-toast {
  position: fixed;
  left: 50%;
  bottom: clamp(20px, 4vw, 40px);
  transform: translateX(-50%) translateY(10px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.9);
  border: 1px solid rgba(110, 231, 255, 0.35);
  color: #e8f6ff;
  font-size: 13px;
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.brochure-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.section-scroll-title {
  width: min(360px, 100%);
  aspect-ratio: 5 / 2;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  text-align: center;
  font-family: "Blackcherry", serif;
  font-size: clamp(20px, 4vw, 32px);
  letter-spacing: 1px;
  color: #3b240b;
  background: url("../assets/images/scroll.webp") center/contain no-repeat;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
  padding: 0 50px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.section-scroll-title:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Enhanced Reveal Animation */
.reveal {
  opacity: 0;
  --reveal-transform: translateY(30px);
  transform: var(--reveal-transform);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.from-top {
  --reveal-transform: translateY(-30px);
}

.reveal.from-bottom {
  --reveal-transform: translateY(30px);
}

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

.reveal.stagger {
  transition-delay: var(--reveal-delay, 0ms) !important;
}

.about {
  padding: 30px 0 80px;
}

.aboutInner {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 18px;
  background: rgba(6, 8, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.aboutInner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.03), transparent 50%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.aboutInner:hover {
  border-color: rgba(110, 231, 255, 0.25);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(110, 231, 255, 0.1);
  transform: translateY(-2px);
}

.aboutInner:hover::before {
  opacity: 1;
}

.aboutInner h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.4vw, 36px);
  text-align: center;
}

.aboutInner p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: clamp(14px, 1.5vw, 17px);
  text-align: justify;
  text-justify: inter-word;
  font-family: "Garamond", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
}

.aboutInner p:last-child {
  margin-bottom: 0;
}

/* ---------- EVENTS GRID ---------- */
.event-group+.event-group {
  margin-top: 22px;
}

.event-group-title {
  margin: 8px 0 6px;
  font-size: clamp(18px, 2.2vw, 22px);
  text-align: center;
  color: #f5d88c;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  animation: fadeInScale 0.6s ease forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.event-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Enhanced Event Cards */
.event-item {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(10, 12, 20, 0.8), rgba(15, 18, 28, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.event-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.1), rgba(167, 139, 250, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 16px;
}

.event-item:hover {
  border-color: rgba(110, 231, 255, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 32px rgba(110, 231, 255, 0.15);
  transform: translateY(-8px);
}

.event-item:hover::before {
  opacity: 1;
}

.event-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: #000;
  background-image: url("../assets/images/mount.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}

.event-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(110, 231, 255, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.event-item:hover .event-thumb {
  transform: scale(1.05);
}

.event-item:hover .event-thumb::after {
  opacity: 1;
}

.event-item h4 {
  margin: 8px 0 4px;
  font-size: 18px;
  text-align: center;
  font-family: "Blackcherry", "Georgia", serif;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.event-item:hover h4 {
  color: #fff;
  text-shadow: 0 0 8px rgba(110, 231, 255, 0.5);
}

.event-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-family: "Garamond", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
  text-align: center;
  transition: color 0.3s ease;
}

.event-item:hover p {
  color: rgba(110, 231, 255, 0.8);
}

/* Committee Page differentiation improvements */
.committee-category {
  margin-bottom: 120px;
  /* Increased from 70px */
  padding: 0 5vw;
}

.category-title {
  font-family: "Ancient", serif;
  font-size: clamp(32px, 5vw, 48px);
  /* Increased size */
  color: #d7b46a;
  display: inline-block;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(215, 180, 106, 0.5);
  padding-bottom: 15px;
  letter-spacing: 1px;
}

/* ---------- EVENT MODAL ---------- */
.event-modal {
  position: fixed;
  top: var(--navH);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 12, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease;
}

.event-modal.is-open,
.event-modal.is-closing {
  visibility: visible;
}

.event-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.event-modal.is-closing {
  opacity: 0;
  pointer-events: none;
}

.event-modal-card {
  width: min(1000px, 94vw);
  max-height: 88vh;
  background: linear-gradient(135deg, rgba(10, 12, 20, 0.7), rgba(6, 8, 14, 0.65));
  border-radius: 22px;
  border: 1px solid rgba(110, 231, 255, 0.2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(110, 231, 255, 0.1);
  padding: 20px;
  position: relative;
  transform: translateY(24px) scale(.96);
  opacity: 0;
  clip-path: inset(50% 0 50% 0 round 22px);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 1s ease,
    clip-path 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.event-modal.is-open .event-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
  clip-path: inset(0 0 0 0 round 22px) !important;
}

.event-modal.is-closing .event-modal-card {
  transform: translateY(24px) scale(.96);
  opacity: 0;
  clip-path: inset(50% 0 50% 0 round 22px) !important;
}

.event-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #f5d88c;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-modal-close:hover {
  background: rgba(255, 80, 80, 0.2);
  transform: rotate(90deg) scale(1.1);
  color: #ff6b6b;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.event-modal-body {
  max-height: calc(88vh - 40px);
  overflow: auto;
  display: grid;
  gap: 12px;
  place-items: center;
  padding: 12px 10px 6px;
}

.event-modal-body::-webkit-scrollbar {
  width: 8px;
}

.event-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.event-modal-body::-webkit-scrollbar-thumb {
  background: rgba(110, 231, 255, 0.3);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.event-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(110, 231, 255, 0.5);
}

.event-modal-image {
  width: min(620px, 90%);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  animation: none;
}

@keyframes imageFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.event-modal-details {
  width: 100%;
  max-width: 960px;
  display: grid;
  gap: 10px;
  text-align: center;
}

.event-modal-details p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.event-modal-details h4 {
  margin: 6px 0 0;
  color: #f5d88c;
  font-size: 17px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.event-modal-details .coord-section-title {
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 10px 0 8px;
}

.event-coord-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  width: 100%;
}

.event-modal .coord-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.event-modal .coord-list>.coord-card:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 520px;
}

.event-modal .coord-card {
  position: relative;
  justify-items: center;
  background-position: left center;
}

.event-modal .coord-info {
  text-align: center;
  max-width: 100%;
  position: static;
  transform: none;
  font-family: "Georgia", "Palatino Linotype", "Book Antiqua", serif;
}

.event-modal .coord-info p:nth-of-type(2) {
  font-size: 12px;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .navbar {
  pointer-events: none;
  opacity: 0.3;
}

/* ---------- GUIDELINES ---------- */
/* ---------- REGISTRATION ---------- */
.registration-group {
  margin: 24px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(245, 216, 140, 0.15);
  transition: all 0.3s ease;
}

.registration-group:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 216, 140, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.registration-title {
  font-family: "Ancient", serif;
  font-size: clamp(18px, 2vw, 22px);
  color: #f5d88c;
  margin: 0 0 14px 0;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.registration-details {
  margin: 0;
  padding: 0 0 0 22px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-family: "Garamond", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
}

.registration-details li {
  transition: color 0.3s ease, transform 0.3s ease;
  padding-left: 8px;
}

.registration-details li:hover {
  color: #fff;
  transform: translateX(4px);
}

.registration-details li::marker {
  color: #f5d88c;
}

.registration-details strong {
  color: #ffd88c;
  font-weight: 600;
}

.registration-qr {
  margin: 24px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(245, 216, 140, 0.15);
  text-align: center;
  transition: all 0.3s ease;
}

.registration-qr:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 216, 140, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.qr-code-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.qr-code-image {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid rgba(245, 216, 140, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-code-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(245, 216, 140, 0.2);
}

/* ---------- GUIDELINES ---------- */
.guidelines {
  margin: 12px 0 0;
  padding: 0 0 0 22px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-family: "Garamond", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.7;
}

.guidelines li {
  transition: color 0.3s ease, transform 0.3s ease;
  padding-left: 8px;
}

.guidelines li:hover {
  color: #fff;
  transform: translateX(4px);
}

.guidelines li::marker {
  color: #f5d88c;
}

/* ---------- COORDINATORS ---------- */
.coord-group+.coord-group {
  margin-top: 22px;
}

.coord-title {
  margin: 10px 0 8px;
  text-align: center;
  color: #f5d88c;
  font-size: clamp(18px, 2.2vw, 22px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.coord-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  justify-items: center;
}

.coord-card {
  --coord-scale: 1;
  width: min(300px, 100%);
  min-height: auto;
  padding: 20px;
  border-radius: 12px;
  background: rgba(6, 8, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  contain: layout paint;
}

.coord-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(110, 231, 255, 0.3);
}

.coord-card::after {
  content: "";
  position: absolute;
  inset: -20% -20% 40% 40%;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.12), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.coord-card:hover::after {
  opacity: 1;
}


.coord-info h4 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  font-family: "Blackcherry", "Georgia", serif;
  transition: color 0.3s ease;
}

.coord-info p {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
}

.coord-info p a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.coord-info p a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(110, 231, 255, 0.4);
}

.coord-info {
  position: relative;
  z-index: 1;
  transform: none;
  text-align: center;
  max-width: 100%;
  font-family: "Georgia", "Palatino Linotype", "Book Antiqua", serif;
}

.coord-card.no-photo {
  width: min(300px, 100%);
}

.coord-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  /* Background image should be set via inline style in HTML */
  background-position: var(--coord-photo-x, 50%) var(--coord-photo-y, 30%);
  background-size: var(--coord-photo-zoom, 110%);
  background-repeat: no-repeat;
  flex-shrink: 0;
  transition: none;
}


.coord-photo::after {
  content: "";
  display: none;
}


/* ---------- FOOTER ---------- */
.site-footer {
  margin-top: 40px;
  padding: 26px 6vw 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(245, 216, 140, 0.2);
  color: #f5d88c;
  font-family: "Garamond", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
  position: relative;
  z-index: 2;
}

.footer-left {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-center {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: #e7d7ac;
}

.footer-center a {
  color: inherit;
  text-decoration: none;
}

.footer-center a:hover {
  color: #fff2c2;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.footer-link {
  color: #f5d88c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff2c2;
}

.footer-divider {
  width: 1px;
  height: 16px;
  background: rgba(245, 216, 140, 0.4);
}

.footer-placeholder {
  color: #d9c899;
}

@media (max-width: 900px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-center {
    order: 3;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 900px) {
  .nav-links {
    margin-top: 0;
  }

  body.events-page .event-slide {
    align-items: end;
    padding-bottom: 90px;
  }
}

@media (max-width: 1150px) {
  .coord-card {
    width: min(720px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 18px;
    background-position: left -10px center;
    background-size: 480px auto;
  }

  .coord-photo {
    width: 110px;
    height: 110px;
    transform: none;
  }

  .coord-info {
    left: auto;
    width: 100%;
  }

  .coord-info h4 {
    font-size: 17px;
  }

  .coord-info p {
    font-size: 14px;
  }
}

@media (max-width: 1100px) {
  :root {
    --navH: 100px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
    position: static;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
  }

  .navbar {
    justify-content: space-between;
    padding: 0 6vw;
  }

  .nav-logo {
    margin-left: 0;
    flex: 0 0 60%;
  }

  .nav-logo img {
    width: 100%;
    max-width: 240px;
  }

  .nav-toggle {
    align-self: center;
    padding: 6px 10px;
    margin-top: 30px;
  }
}

@media (max-width: 900px) {
  :root {
    --navH: 100px;
    --heroH: 100vh;
    --gX: clamp(2px, 1.4vw, 10px);
    --gMaxH: min(80vh, 900px);
    --logoTop: clamp(13vh, 16vh, 20vh);
  }

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

  .coord-list {
    grid-template-columns: 1fr;
  }

  .coord-card {
    --coord-scale: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 16px;
    background-position: left -16px center;
    background-size: 440px auto;
  }

  .coord-photo {
    width: 100px;
    height: 100px;
    transform: none;
  }

  .coord-info {
    left: auto;
    width: 100%;
  }

  .coord-info h4 {
    font-size: 17px;
  }

  .coord-info p {
    font-size: 14px;
  }

  .guardian {
    height: min(72vh, 820px) !important;
  }

  .guardian.left {
    left: -48px !important;
    --guardian-shift: -48px;
  }

  .guardian.right {
    right: -48px !important;
    --guardian-shift: 48px;
  }

  body.events-page .coord-list {
    grid-template-columns: 1fr;
  }

  .event-modal .coord-list {
    grid-template-columns: 1fr;
  }

  .event-modal .coord-info h4 {
    font-size: 14px;
  }

  .event-modal .coord-info p {
    font-size: 12px;
  }

  .event-modal .coord-info p:nth-of-type(1),
  .event-modal .coord-info p:nth-of-type(2) {
    font-weight: 700;
  }

  .event-modal .coord-info p:nth-of-type(2) {
    font-size: 11px;
  }

  .brochure-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas:
      "content content"
      "preview actions";
    text-align: left;
  }

  .brochure-preview {
    order: 2;
    justify-self: end;
    padding: 0;
    width: fit-content;
    max-width: 48vw;
  }

  .brochure-preview a {
    display: block;
    width: fit-content;
  }

  .brochure-content {
    order: 1;
  }

  .brochure-actions {
    order: 3;
    align-self: start;
    justify-self: end;
    flex-direction: column;
    align-items: flex-end;
    grid-column: auto;
  }

  .brochure-preview img {
    width: min(135px, 80vw);
  }

  .hero-logo {
    padding-top: var(--logoTop) !important;
  }

  /* Lighter effects on mobile for faster paint */
  .layer.bg,
  .layer.mid,
  .layer.fg,
  .guardian,
  .shells-logo {
    filter: none;
    mix-blend-mode: normal;
  }

  .event-item,
  .event-modal,
  .event-modal-card {
    backdrop-filter: none;
  }
}

@media (max-width: 560px) {
  :root {
    --navH: 100px;
  }

  .navbar {
    padding: 0 6vw;
  }

  .nav-logo {
    margin-left: 0;
    flex: 0 0 60%;
  }

  .nav-logo img {
    width: 100%;
    max-width: 240px;
  }

  .nav-toggle {
    align-self: center;
    padding: 6px 10px;
    margin-top: 30px;
  }

  .event-list {
    grid-template-columns: 1fr;
  }

  .coord-card {
    --coord-scale: .9;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 14px;
    background-position: left -22px center;
    background-size: 400px auto;
  }

  .coord-photo {
    width: 92px;
    height: 92px;
    margin-left: 0;
    transform: none;
  }

  .coord-info {
    left: auto;
    width: 100%;
  }

  .coord-info h4 {
    font-size: 16px;
  }

  .coord-info p {
    font-size: 14px;
  }

  .section-scroll-title {
    padding: 0 55px;
    font-size: clamp(14px, 5vw, 20px);
  }

  /* better mobile tree framing */
  .layer.fg {
    object-position: 50% 72%;
  }

  .guardian {
    height: auto !important;
    width: auto !important;
    max-height: min(66vh, 700px) !important;
    max-width: min(80vw, 420px) !important;
    transform: scale(1.04);
  }

  .guardian.left {
    left: -56px !important;
    --guardian-shift: -56px;
  }

  .guardian.right {
    right: -56px !important;
    --guardian-shift: 56px;
  }

  .cta-btn img {
    height: 70px;
  }

  .time-box span {
    font-size: 32px;
  }

  .event-modal-card {
    padding: 16px;
  }

  .event-modal-image {
    width: 100%;
  }

  .brochure-actions {
    flex-direction: column;
    align-items: flex-end;
    justify-self: end;
    max-width: 42vw;
    gap: 10px;
  }

  .brochure-btn {
    justify-content: flex-end;
    width: min(170px, 42vw);
    margin: 0;
  }

  .brochure-preview img {
    width: min(140px, 44vw);
  }

  .brochure-btn-img {
    width: 100%;
    height: auto;
  }

  .brochure-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "content"
      "preview"
      "actions" !important;
  }

  .brochure-content {
    grid-area: content !important;
    justify-self: center !important;
    width: 100% !important;
  }

  .brochure-preview {
    grid-area: preview !important;
    justify-self: center !important;
    align-self: center !important;
    max-width: 100% !important;
  }

  .brochure-preview img {
    width: min(170px, 64vw) !important;
  }

  .brochure-actions {
    grid-area: actions !important;
    justify-self: center !important;
    align-self: center !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
  }

  .brochure-btn {
    width: min(130px, 40vw) !important;
    justify-content: center !important;
  }

  .brochure-btn-img {
    width: 100% !important;
    height: auto !important;
  }

  .section-scroll-title {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    justify-self: center !important;
  }

  .brochure-content {
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 690px) {
  :root {
    --gMaxH: min(56vh, 560px);
    --gX: clamp(12px, 8vw, 76px);
    --gBottom: clamp(0px, 1.6vh, 18px);
    --logoTop: clamp(7vh, 9vh, 12vh);
  }
}

@media (max-width: 460px) {
  .cta-buttons {
    bottom: 150px;
    flex-direction: column;
    gap: 14px;
  }

  .countdown {
    bottom: 60px;
    gap: 18px;
  }

  .countdown .time-box:last-child {
    display: none;
  }

  .coord-card {
    background-position: left -28px center;
    background-size: 360px auto;
  }

  .coord-info {
    left: auto;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

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

  .layer {
    transform: none !important;
  }

  .navbar,
  .cta-buttons,
  .countdown {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.hero-animate .layer.fg,
  body.hero-animate .guardian,
  body.hero-animate .shells-logo {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.brochure-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  justify-self: end;
  align-self: center;
  grid-area: preview;
  width: fit-content;
  max-width: 300px;
  position: relative;
}

.brochure-preview a {
  display: block;
  width: fit-content;
  position: relative;
  z-index: 1;
  padding: 8px;
  /* Inner spacing between image and border */
  border-radius: 12px;
  background: rgba(6, 8, 14, 0.6);
  border: 1px solid rgba(110, 231, 255, 0.3);
  /* Theme cyan border */
  box-shadow:
    0 0 0 1px rgba(110, 231, 255, 0.1),
    /* Double border effect */
    0 8px 20px rgba(0, 0, 0, 0.5),
    /* Drop shadow */
    0 0 20px rgba(110, 231, 255, 0.15);
  /* Soft glow */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.brochure-preview a:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 231, 255, 0.6);
  box-shadow:
    0 0 0 1px rgba(110, 231, 255, 0.3),
    0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(110, 231, 255, 0.3);
  /* Enhanced glow on hover */
}

/* Remove 3D book spine/pages - keeping the rule empty or display none if needed to override old cached styles */
.brochure-preview a::after {
  content: none;
  display: none;
}

/* Optional backlight behind the card */
.brochure-preview::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.15), transparent 70%);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}