/* ============================================================
   Bible in a Nutshell — premium dark theme
   ============================================================ */

:root {
  --bg: #06070b;
  --bg-soft: #0a0c12;
  --ink: #eef0f6;
  --ink-dim: #a6abbd;
  --ink-faint: #6b7183;
  --gold: #d9ab5a;
  --gold-bright: #f2cd8a;
  --gold-deep: #a97c2f;
  --blue: #5b7cfa;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-soft: rgba(255, 255, 255, 0.06);
  --radius: 20px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(217, 171, 90, 0.35); }

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- ambient background orbs ---------- */

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(91, 124, 250, 0.08), transparent 60%),
    var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: drift 24s ease-in-out infinite alternate;
}

.orb-gold {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(217, 171, 90, 0.16), transparent 65%);
}

.orb-blue {
  width: 640px; height: 640px;
  bottom: -260px; left: -200px;
  background: radial-gradient(circle, rgba(91, 124, 250, 0.10), transparent 65%);
  animation-delay: -12s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.15); }
}

/* ---------- glass primitives ---------- */

.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* spotlight cards — glow follows the cursor (set via JS custom props) */
.spotlight {
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(217, 171, 90, 0.10),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

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

.spotlight:hover {
  border-color: rgba(217, 171, 90, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.6);
}

/* ---------- typography helpers ---------- */

.grad-text {
  background: linear-gradient(100deg, var(--gold-bright), var(--gold) 45%, #e8e2d2 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--glass);
  backdrop-filter: blur(12px);
}

.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(217, 171, 90, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.7); opacity: 0.6; }
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.section-sub {
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 48px;
}

.inline-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 171, 90, 0.4);
  transition: border-color 0.2s;
}
.inline-link:hover { border-color: var(--gold); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:active { transform: scale(0.97); }

.btn-gold {
  color: #1a1204;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  box-shadow:
    0 0 0 1px rgba(242, 205, 138, 0.25),
    0 8px 30px -8px rgba(217, 171, 90, 0.55);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(242, 205, 138, 0.4),
    0 14px 40px -8px rgba(217, 171, 90, 0.7);
}

.btn-ghost {
  color: var(--ink);
  background: var(--glass);
  border-color: var(--stroke);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn-small { padding: 10px 20px; font-size: 14px; border-radius: 11px; }
.btn-full { width: 100%; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 10px 0;
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--stroke-soft);
}

.nav-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-top {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(
    105deg,
    #f7f0e3 0%,
    #e8d5ae 28%,
    var(--gold-bright) 46%,
    #fdf6e3 50%,
    var(--gold-bright) 54%,
    #e8d5ae 72%,
    #f7f0e3 100%
  );
  background-size: 250% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(217, 171, 90, 0.22);
  transition: background-position 0.9s ease, letter-spacing 0.5s ease;
}

.brand:hover .brand-top {
  background-position: 100% 0;
  letter-spacing: 0.18em;
}

.brand-sub {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.44em;
  text-indent: 0.44em; /* balances the trailing tracking space */
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.92;
  white-space: nowrap;
}

.brand-sub::before,
.brand-sub::after {
  content: "";
  height: 1px;
  width: 15px;
  flex-shrink: 0;
  transition: width 0.5s ease;
}

.brand-sub::before {
  background: linear-gradient(90deg, transparent, rgba(217, 171, 90, 0.75));
}

.brand-sub::after {
  background: linear-gradient(90deg, rgba(217, 171, 90, 0.75), transparent);
}

.brand:hover .brand-sub::before,
.brand:hover .brand-sub::after {
  width: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a:not(.btn) {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 190px 0 90px;
  text-align: center;
}

.hero-compact { padding-bottom: 30px; }

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--hx, 50%) var(--hy, 30%),
    rgba(217, 171, 90, 0.07),
    transparent 60%
  );
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 6.5vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 28px 0 22px;
}

.hero-sub {
  color: var(--ink-dim);
  font-size: 18px;
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* hero stage — the character showcase */
.hero-stage {
  margin-top: 70px;
  width: 100%;
  padding: clamp(28px, 4.5vw, 48px) clamp(16px, 3vw, 40px) clamp(20px, 3vw, 34px);
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(217, 171, 90, 0.07), transparent),
    var(--glass);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

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

.cast-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 30px);
  margin: 10px 0 34px;
}

.cast-stage {
  --cardW: clamp(118px, 19vw, 172px);
  --radius: calc(var(--cardW) * 1.62);
  position: relative;
  height: calc(var(--cardW) * 1.75);
  perspective: 1300px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.cast-stage.dragging { cursor: grabbing; }

.cast-ring {
  position: absolute;
  left: 50%;
  top: 6px;
  width: var(--cardW);
  margin-left: calc(var(--cardW) / -2);
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.cast-card {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--cardW);
  margin: 0;
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(var(--radius));
  transform-style: preserve-3d;
}

.card-flip {
  position: relative;
  transform-style: preserve-3d;
}

.cast-frame {
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(165deg, #f2e8d4, #ddcca8);
  border: 1px solid rgba(217, 171, 90, 0.55);
  box-shadow:
    0 18px 45px -14px rgba(0, 0, 0, 0.75),
    0 0 30px -8px rgba(217, 171, 90, 0.25);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(217, 171, 90, 0.5);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(217, 171, 90, 0.13), transparent 70%),
    linear-gradient(165deg, #14161f, #0b0d14);
  box-shadow:
    inset 0 0 0 5px rgba(217, 171, 90, 0.12),
    0 18px 45px -14px rgba(0, 0, 0, 0.75);
  transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.card-back span {
  font-family: var(--font-display);
  font-size: calc(var(--cardW) * 0.14);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.card-back em {
  font-style: normal;
  font-size: calc(var(--cardW) * 0.052);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.cast-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5.1;
  object-fit: cover;
  object-position: 4% 28%;
  border-radius: 9px;
}

.cast-card figcaption {
  margin-top: 12px;
  text-align: center;
  line-height: 1.3;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cast-hint {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.cast-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.cast-card figcaption span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

/* ---------- stats ---------- */

.stats { padding: 30px 0 10px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  padding: 28px 24px;
  text-align: center;
}

.stat-num, .stat-plus {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(217, 171, 90, 0.35);
}

.stat p {
  margin-top: 10px;
  color: var(--ink-dim);
  font-size: 14px;
}

/* ---------- sections & cards ---------- */

.section { padding: 110px 0; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card { padding: 34px 30px; }

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--gold);
  border-radius: 15px;
  border: 1px solid rgba(217, 171, 90, 0.28);
  background: linear-gradient(160deg, rgba(217, 171, 90, 0.12), rgba(217, 171, 90, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 24px -6px rgba(217, 171, 90, 0.35);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 6px rgba(217, 171, 90, 0.5));
}

.btn-icon { width: 15px; height: 15px; }

.inst-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(217, 171, 90, 0.45));
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p { color: var(--ink-dim); font-size: 15px; }

/* ---------- vision timeline ---------- */

.vision {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(91, 124, 250, 0.05), transparent),
    var(--bg-soft);
  border-top: 1px solid var(--stroke-soft);
  border-bottom: 1px solid var(--stroke-soft);
}

.timeline { position: relative; padding-left: 34px; max-width: 720px; }

.timeline-line {
  position: absolute;
  left: 8px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(217, 171, 90, 0.05));
}

.tl-item { position: relative; margin-bottom: 26px; }
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -34px; top: 26px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink-faint);
}

.tl-dot.done {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 18px 2px rgba(217, 171, 90, 0.55);
}

.tl-card { padding: 26px 28px; }

.tl-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.tl-tag.done-tag {
  color: #1a1204;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: transparent;
}

.tl-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.tl-card p { color: var(--ink-dim); font-size: 15px; }

/* ---------- bento FAQ ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.bento-card { padding: 30px 28px; }

.bento-card.big { grid-column: span 2; grid-row: span 2; }
.bento-card.wide { grid-column: span 2; }

.bento-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.bento-card.big h3 { font-size: 22px; }

.bento-card p { color: var(--ink-dim); font-size: 15px; }

.chev {
  color: var(--gold);
  font-size: 22px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* collapsible behavior on small faq cards */
.faq-toggle { cursor: pointer; }
.faq-toggle p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.35s ease;
  margin-top: 0;
}
.faq-toggle.open p { max-height: 220px; opacity: 1; margin-top: 4px; }
.faq-toggle.open .chev { transform: rotate(90deg); }

/* ---------- cta band ---------- */

.cta-band { padding: 40px 0 120px; }

.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 40px;
}

.cta-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse 50% 45% at 50% 55%, rgba(217, 171, 90, 0.13), transparent 65%);
  pointer-events: none;
}

.cta-card h2 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  margin-bottom: 14px;
}

.cta-card p {
  position: relative;
  color: var(--ink-dim);
  margin-bottom: 32px;
}

.cta-card .hero-cta { position: relative; }

/* ---------- support page: tiers ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.tier {
  position: relative;
  overflow: visible; /* the featured badge sits above the card edge */
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tier h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
}

.tier-desc { color: var(--ink-dim); font-size: 15px; flex-grow: 1; }

.tier.featured {
  border-color: rgba(217, 171, 90, 0.4);
  background: linear-gradient(180deg, rgba(217, 171, 90, 0.07), var(--glass));
  box-shadow: 0 20px 60px -25px rgba(217, 171, 90, 0.35);
}

.tier-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1204;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}

.give-note {
  margin-top: 30px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
}

.give-note.flash { color: var(--gold); }

/* ---------- support page: institutions ---------- */

.institutions { padding-top: 0; }

.inst-card {
  position: relative;
  overflow: hidden;
  padding: 70px 60px;
}

.inst-card .section-sub { margin-bottom: 40px; }

.inst-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
  margin-bottom: 44px;
}

.inst-item {
  padding: 20px 22px;
  border: 1px solid var(--stroke-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.inst-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.inst-item p { color: var(--ink-dim); font-size: 14px; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--stroke-soft);
  padding: 50px 0;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-tag {
  color: var(--ink-faint);
  font-size: 14px;
  margin-top: 8px;
  font-style: italic;
  font-family: var(--font-display);
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }

.footer-copy { color: var(--ink-faint); font-size: 13px; }

/* ---------- scroll reveal ---------- */

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

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .eyebrow-dot, .stage-icon { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.big { grid-column: span 2; grid-row: auto; }
  .tiers { grid-template-columns: 1fr; }
  .tier.featured { order: -1; }
  .inst-card { padding: 50px 30px; }
  .inst-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero { padding-top: 150px; }
  .cast-stage { perspective: 900px; }
  .cast-card figcaption span { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.big, .bento-card.wide { grid-column: auto; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px;
    min-width: 220px;
    background: rgba(10, 12, 18, 0.92);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a:not(.btn) { padding: 10px 8px; }
  .nav-links .btn { margin-top: 8px; }

  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

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