/* ============================================================
   St. Joseph Junior & Senior College — glass UI landing site
   ============================================================ */

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("/fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --glass: rgba(20, 22, 28, 0.46);
  --glass-border: rgba(255, 255, 255, 0.22);
  --gold: #d8b45d;
  --blue: #72c8ff;
  --progress: 0;
  --mx: 50%;
  --my: 50%;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* ---------- Fixed background video ---------- */
.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  transform: scale(calc(1.02 + var(--progress) * 0.06));
  filter: saturate(calc(0.92 + var(--progress) * 0.2)) contrast(1.08)
    brightness(calc(0.86 - var(--progress) * 0.34));
  transition: transform 0.35s ease-out, filter 0.35s ease-out;
}

.video-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(114, 200, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.2) 42%, rgba(0, 0, 0, 0.78));
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.14;
  background-image: linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 100% 6px;
  mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
}

.page {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: clamp(12px, 2vh, 22px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(96%, 1000px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--nav-shadow), 0 0 24px rgba(216, 180, 93, 0.28);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05) rotate(-3deg);
}

.logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.nav-pill {
  flex: 1;
  max-width: 720px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.8vw, 10px);
  padding: 4px 8px;
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--nav-text);
  opacity: 0.5;
  text-decoration: none;
  padding: 6px 8px;
  transition: opacity 0.25s ease;
}

.nav-link:hover { opacity: 0.8; }
.nav-link.active { opacity: 1; }

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000;
  transform: translateX(-50%);
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(10px, 1.6vh, 18px);
  padding: 110px clamp(14px, 3vw, 32px) 70px;
  transform: scale(calc(1 - var(--progress) * 0.02));
  transition: transform 0.3s ease-out;
}

.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
}

.trust-avatar {
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: rgba(40, 40, 42, 0.7);
  border: 1px solid var(--trust-border);
  padding: 5px;
  display: grid;
  place-items: center;
  transition: transform 0.35s ease;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.trust-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #d9ecff 48%, #f3d889);
  display: grid;
  place-items: center;
}

.trust-inner i {
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
  line-height: 1;
}

.trust-avatar.a1 { z-index: 1; }
.trust-avatar.a2 { z-index: 2; }
.trust-avatar.a3 { z-index: 4; }
.trust-avatar + .trust-avatar { margin-left: calc(var(--trust-size) * -0.42); }
.trust-avatar:hover { transform: translateY(-4px); }

.trust-pill {
  position: relative;
  z-index: 3;
  height: var(--trust-size);
  display: inline-flex;
  align-items: center;
  background: rgba(40, 40, 42, 0.7);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: 18px;
  color: var(--trust-text);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(31px, 6.2vw, 84px);
  line-height: 1.12;
  text-shadow: 0 0 30px rgba(114, 200, 255, 0.18), 0 12px 50px rgba(0, 0, 0, 0.55);
}

.headline .line {
  display: block;
  opacity: 0;
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline .line-1 { animation-delay: 0.12s; }
.headline .line-2 { animation-delay: 0.3s; }

.subhead {
  max-width: min(690px, 94%);
  font-size: clamp(15px, 1.5vw, 19px);
  color: rgba(236, 242, 248, 0.84);
  line-height: 1.55;
}

.glass-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: min(720px, 96%);
}

.glass-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 32px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease;
}

.glass-strip span:hover { transform: translateY(-3px); }

/* Buttons */
.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.btn-primary {
  color: #14110a;
  background: linear-gradient(135deg, #f4dd9a, var(--gold));
  box-shadow: 0 14px 34px rgba(216, 180, 93, 0.3);
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

/* Stats */
.stats {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 18px);
  margin-top: clamp(12px, 2vh, 22px);
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-height: 104px;
  justify-content: center;
  padding: 16px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 22px 60px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.stat:hover { transform: translateY(-5px); }

.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(calc(-130% + var(--progress) * 400%));
}

.stat > * { position: relative; z-index: 1; }

.stat-icon {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
}

.stat-value {
  font-weight: 600;
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: rgba(226, 232, 240, 0.72);
  font-size: clamp(11px, 1.2vw, 12.5px);
}

.scroll-hint {
  margin-top: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: bob 2.2s ease-in-out infinite;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: clamp(60px, 9vh, 110px) clamp(14px, 3vw, 32px);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.14;
  margin-bottom: 14px;
}

.section-sub {
  max-width: 720px;
  color: rgba(236, 242, 248, 0.76);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.6;
  margin-bottom: clamp(24px, 4vh, 40px);
}

.grid {
  display: grid;
  gap: clamp(14px, 2.2vw, 22px);
}

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

.glass {
  position: relative;
  border: 1px solid var(--glass-border);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 24px 60px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.glass::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-14deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.glass:hover::after { left: 130%; }

.glass:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 180, 93, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 30px 70px rgba(0, 0, 0, 0.42);
}

.card {
  border-radius: 22px;
  padding: clamp(18px, 2.4vw, 26px);
}

.card h3 {
  font-size: clamp(16px, 1.8vw, 20px);
  margin-bottom: 10px;
}

.card p {
  color: rgba(226, 232, 240, 0.78);
  font-size: 14.5px;
  line-height: 1.6;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 14px;
  color: #14110a;
  background: linear-gradient(135deg, #f4dd9a, var(--gold));
}

/* Performance meters */
.meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin: 6px 0 10px;
}

.meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  box-shadow: 0 0 18px rgba(114, 200, 255, 0.6);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.meter-value {
  font-weight: 600;
  font-size: 22px;
  color: #fff;
}

.chart-card { margin-top: clamp(14px, 2.2vw, 22px); }

.chart-scroll {
  overflow-x: auto;
  padding: 14px 2px 6px;
  scrollbar-width: thin;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 220px;
  min-width: max-content;
}

.bar-wrap {
  width: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bar {
  width: 100%;
  height: 0;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--blue), var(--gold));
  box-shadow: 0 0 16px rgba(114, 200, 255, 0.35);
  transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.bar-wrap b {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}

.bar-wrap i {
  font-style: normal;
  font-size: 9.5px;
  color: rgba(226, 232, 240, 0.6);
  writing-mode: vertical-rl;
}

.chart-note {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.6);
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acc { border-radius: 20px; }

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.acc-ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #14110a;
  background: linear-gradient(135deg, #f4dd9a, var(--gold));
}

.acc-t {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.acc-t strong { font-size: clamp(14px, 1.6vw, 17px); font-weight: 600; }
.acc-t em { font-style: normal; font-size: 12.5px; color: rgba(226, 232, 240, 0.62); }

.acc-x {
  color: var(--gold);
  transition: transform 0.35s ease;
}

.acc.open .acc-x { transform: rotate(45deg); }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.acc-inner {
  padding: 0 20px 20px 74px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acc-inner p {
  color: rgba(226, 232, 240, 0.8);
  font-size: 14px;
  line-height: 1.6;
}

.acc-inner strong { color: var(--gold); }

/* Tiles */
.tile {
  border-radius: 22px;
  display: flex;
  flex-direction: column;
}

.tile img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tile.tall img { height: 260px; }
.tile:hover img { transform: scale(1.06); }

.tile-body { padding: 18px 20px 22px; }

.tile-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tile-body p {
  color: rgba(226, 232, 240, 0.76);
  font-size: 14px;
  line-height: 1.6;
}

.ticks {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ticks li {
  font-size: 13.5px;
  color: rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 9px;
}

.ticks i { color: var(--gold); font-size: 11px; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
}

.shot {
  position: relative;
  border-radius: 18px;
  padding: 0;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
}

.shot img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.shot:hover img { transform: scale(1.08); }

.shot span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: overlayIn 0.28s ease both;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(94vw, 1000px);
  max-height: 76vh;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox p { color: rgba(255, 255, 255, 0.85); font-size: 14px; }

.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* Map */
.map-card { padding: 0; border-radius: 22px; }

.map-card iframe {
  width: 100%;
  height: clamp(280px, 46vh, 460px);
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(1.05);
}

/* Form */
.form { display: flex; flex-direction: column; gap: 14px; }

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.82);
}

.form input,
.form textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  border-color: rgba(216, 180, 93, 0.7);
  box-shadow: 0 0 0 3px rgba(216, 180, 93, 0.16);
}

.form .err {
  font-style: normal;
  font-size: 12px;
  color: #ff9d9d;
  min-height: 14px;
}

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

#send-btn {
  align-self: flex-start;
  position: relative;
}

.spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(20, 17, 10, 0.3);
  border-top-color: #14110a;
  animation: spin 0.7s linear infinite;
}

#send-btn.loading .spinner { display: inline-block; }
#send-btn.loading { opacity: 0.75; pointer-events: none; }

.form-status {
  font-size: 13.5px;
  color: rgba(226, 232, 240, 0.8);
  min-height: 18px;
}

.form-status.ok { color: #9ff0c2; }
.form-status.bad { color: #ff9d9d; }

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: rgba(236, 242, 248, 0.86);
  word-break: break-word;
}

.contact-list i { color: var(--gold); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.muted { color: rgba(226, 232, 240, 0.62); font-size: 13.5px; line-height: 1.6; }

/* Footer */
.site-footer {
  padding: 34px 20px 46px;
  text-align: center;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scroll orbit */
.scroll-orbit {
  position: fixed;
  right: clamp(10px, 2vw, 26px);
  top: 50%;
  z-index: 30;
  width: 3px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transform: translateY(-50%);
}

.scroll-orbit span {
  display: block;
  width: 100%;
  height: 42%;
  border-radius: inherit;
  background: linear-gradient(var(--gold), var(--blue));
  transform: translateY(calc(var(--progress) * 138%));
  box-shadow: 0 0 18px rgba(114, 200, 255, 0.8);
}

/* ============================================================
   Mobile menu
   ============================================================ */
.burger { display: none; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 45;
  animation: overlayIn 0.28s ease both;
}

.overlay[hidden] { display: none; }

.mobile-menu {
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 340px);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  padding: 18px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-menu[hidden] { display: none; }

.m-link {
  display: block;
  padding: 12px 10px;
  text-align: center;
  color: var(--nav-text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-radius: 14px;
  opacity: 0;
  animation: linkIn 0.4s ease forwards;
}

.m-link:nth-child(1) { animation-delay: 0.04s; }
.m-link:nth-child(2) { animation-delay: 0.08s; }
.m-link:nth-child(3) { animation-delay: 0.12s; }
.m-link:nth-child(4) { animation-delay: 0.16s; }
.m-link:nth-child(5) { animation-delay: 0.2s; }
.m-link:nth-child(6) { animation-delay: 0.24s; }
.m-link:nth-child(7) { animation-delay: 0.28s; }

.m-link.active { background: rgba(0, 0, 0, 0.06); }

/* ============================================================
   Animations
   ============================================================ */
.anim {
  opacity: 0;
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
  transition-delay: var(--rd, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes headlineFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes menuIn {
  from { opacity: 0; transform: translate(-50%, -12px) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes linkIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

  .header {
    width: calc(100% - 28px);
    justify-content: space-between;
    z-index: 60;
  }

  .logo { width: 48px; height: 48px; }

  .burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--pill-dark);
    box-shadow: var(--nav-shadow);
    cursor: pointer;
  }

  .burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  }

  body.menu-open .burger { background: #fff; }
  body.menu-open .burger span { background: #000; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .acc-inner { padding-left: 20px; }
  .scroll-orbit { display: none; }
}

@media (min-width: 721px) {
  .overlay, .mobile-menu { display: none; }
}

@media (max-width: 420px) {
  .trust { --trust-size: 34px; }
  .subhead { font-size: 14px; }
  .shot img { height: 130px; }
}

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

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .anim, .headline .line, .m-link, .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .bg-video, .hero { transform: none !important; }
}

/* ============================================================
   Lightbox navigation + transitions
   ============================================================ */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.lb-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lb-prev { left: clamp(10px, 3vw, 34px); }
.lb-next { right: clamp(10px, 3vw, 34px); }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }

#lb-img { transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

.lb-in-right { animation: lbRight 0.42s cubic-bezier(0.22, 1, 0.36, 1) both; }
.lb-in-left { animation: lbLeft 0.42s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes lbRight {
  from { opacity: 0; transform: translateX(46px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes lbLeft {
  from { opacity: 0; transform: translateX(-46px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

body.lb-open { overflow: hidden; }

/* ============================================================
   Top scroll progress bar
   ============================================================ */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress));
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--gold));
  box-shadow: 0 0 14px rgba(114, 200, 255, 0.6);
  pointer-events: none;
}
