:root {
  --shriner-red: #910510;
  --shriner-red-deep: #820a00;
  --shriner-red-bright: #d42729;
  --shriner-gold: #f8bc34;
  --shriner-gold-soft: #ffdc6a;
  --shriner-periwinkle: #5355a2;
  --shriner-periwinkle-soft: #8082d7;
  --shriner-teal: #0e838c;
  --shriner-teal-bright: #12a0ab;
  --shriner-teal-soft: #29c4a4;
  --black: #000000;
  --ink: #151515;
  --muted: rgba(0, 0, 0, 0.6);
  --stone: #fbf8f3;
  --sand: #f3ede4;
  --white: #ffffff;
  --panel: rgba(255, 255, 255, 0.9);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --max: 1180px;
  --brand-red-gradient: linear-gradient(135deg, #820a00 0%, #d42729 100%);
  --brand-gold-gradient: linear-gradient(135deg, #f8bc34 0%, #ffdc6a 100%);
  --brand-periwinkle-gradient: linear-gradient(135deg, #5355a2 0%, #8082d7 100%);
  --brand-teal-gradient: linear-gradient(135deg, #12a0ab 0%, #29c4a4 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(248,188,52,0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(83,85,162,0.1), transparent 24%),
    linear-gradient(180deg, #fffdf9 0%, #f5efe6 100%);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.card-photo {
  width: calc(100% + 2.7rem);
  max-width: none;
  margin: -1.35rem -1.35rem 1.25rem;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 22px 22px 0 0;
}
.hero-photo,
.page-photo {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.hero-photo {
  min-height: 420px;
  max-height: 560px;
}
.page-photo {
  min-height: 320px;
  max-height: 440px;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 253, 249, 0.88);
  border-bottom: 1px solid rgba(83, 85, 162, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-mark {
  font-family: 'PT Serif', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--shriner-red);
}

.brand-sub {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(83, 85, 162, 0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--shriner-red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.mobile-dropdown-toggle {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.78);
}

.dropdown {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: -0.75rem;
}

.dropdown-toggle {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.78);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.1rem);
  left: 0;
  min-width: 220px;
  padding: 0.6rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(83, 85, 162, 0.12);
  box-shadow: var(--shadow-soft);
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 50;
}

.dropdown-menu a {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
}

.dropdown-menu a:hover {
  background: rgba(83, 85, 162, 0.08);
}

.nav-links a:hover,
.dropdown-toggle:hover {
  color: var(--shriner-teal);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: 180ms ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-red-gradient);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover { filter: brightness(0.95); }

.btn-secondary {
  border-color: rgba(83, 85, 162, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--shriner-periwinkle);
}

.page-hero,
.hero {
  padding: 5.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  z-index: -1;
}

.hero::before,
.page-hero::before {
  width: 340px;
  height: 340px;
  background: rgba(248, 188, 52, 0.24);
  top: 20px;
  right: -80px;
}

.hero::after,
.page-hero::after {
  width: 280px;
  height: 280px;
  background: rgba(83, 85, 162, 0.14);
  left: -80px;
  bottom: 0;
}

.hero-grid,
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(83, 85, 162, 0.1);
  color: var(--shriner-periwinkle);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-label {
  padding: 0;
  background: transparent;
}

h1, h2, h3 {
  font-family: 'PT Serif', serif;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--shriner-red);
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  max-width: 12ch;
  margin-top: 1rem;
}

.page-hero h1 { max-width: 16ch; }

.hero p,
.page-hero p,
.section-head p,
.lead {
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.78);
}

.cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.stats,
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.stat, .card {
  background: var(--panel);
  border: 1px solid rgba(83, 85, 162, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.stat,
.card {
  padding: 1.35rem;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--shriner-red);
  margin-bottom: 0.25rem;
}

.hero-card,
.feature-panel,
.cta-band {
  background: linear-gradient(135deg, rgba(83,85,162,0.96), rgba(14,131,140,0.96));
  color: white;
}

.hero-card p,
.hero-card li,
.feature-panel p,
.feature-panel li,
.cta-band p { color: rgba(255,255,255,0.9); }

section { padding: 4.5rem 0; }

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.feature-card h3,
.card-photo + h3 {
  margin-top: 0;
}

.building-panel {
  background: linear-gradient(135deg, #5355a2 0%, #910510 100%);
  color: white;
  overflow: hidden;
  position: relative;
}

.building-panel .section-label,
.building-panel h2,
.building-panel p {
  color: #fff;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--shriner-gold);
  background: rgba(255, 255, 255, 0.66);
  border-radius: 0 16px 16px 0;
}

.quote {
  font-size: 1.08rem;
  font-style: italic;
  color: rgba(31, 26, 23, 0.82);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2vw, 1.65rem);
  align-items: stretch;
}

.gallery-card {
  padding: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 360px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, rgba(83,85,162,0.86), rgba(14,131,140,0.9));
  color: white;
  isolation: isolate;
}

.gallery-card img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.gallery-copy {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.74));
}

.card a,
p a,
li a {
  color: var(--shriner-teal);
  font-weight: 600;
}

.card a:hover,
p a:hover,
li a:hover {
  color: var(--shriner-periwinkle);
}

.unit-card-grid {
  align-items: stretch;
}

.unit-card-grid .card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.unit-card-grid .card h3 {
  margin-top: 0;
}

.unit-card-grid .card-photo + h3 {
  margin-top: 1rem;
}

.unit-card-grid .card p:last-child {
  margin-top: auto;
  padding-top: 1rem;
}

.check-list,
.feature-list {
  padding-left: 1.1rem;
}

.cta-band {
  border-radius: 28px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 0.9rem;
}

footer {
  padding: 2.5rem 0 3rem;
  color: rgba(31, 26, 23, 0.66);
  font-size: 0.94rem;
}

.shrine-scroll-hero {
  position: relative;
  height: 220vh;
  min-height: 1200px;
  background: #0f0c18;
}

.shrine-video-stage {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: #0f0c18;
}

.shrine-video-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.shrine-video-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 52% 42%, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(90deg, rgba(12,9,20,0.34), rgba(12,9,20,0.08) 48%, rgba(12,9,20,0.34)),
    linear-gradient(180deg, rgba(12,9,20,0.22), rgba(12,9,20,0.1) 46%, rgba(12,9,20,0.66));
}

.shrine-hero-pill {
  position: absolute;
  left: clamp(1.1rem, 3vw, 2.4rem);
  bottom: clamp(1.1rem, 3vw, 2.4rem);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  background: rgba(18, 15, 28, 0.58);
  border: 1px solid rgba(247,216,117,0.38);
  color: #fff;
  box-shadow: 0 16px 42px rgba(0,0,0,0.24);
  backdrop-filter: blur(14px) saturate(130%);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.shrine-scroll-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0 1.25rem;
  pointer-events: none;
}

.shrine-scroll-copy p {
  width: min(920px, calc(100vw - 2.5rem));
  margin: 0;
  opacity: var(--shrine-copy-opacity, 0);
  transform: translateY(calc((1 - var(--shrine-copy-opacity, 0)) * 28px));
  transition: opacity 1400ms ease, transform 1400ms ease;
  color: rgba(255,255,255,0.94);
  font-family: 'PT Serif', serif;
  font-size: clamp(2.25rem, 5.4vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(0,0,0,0.55);
}

.video-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 4rem;
  isolation: isolate;
  background: #0f0c18;
  color: white;
}

.video-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.video-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 28%, rgba(255,255,255,0.08), transparent 24%),
    linear-gradient(90deg, rgba(12, 9, 20, 0.9) 0%, rgba(12, 9, 20, 0.68) 36%, rgba(12, 9, 20, 0.18) 66%, rgba(12, 9, 20, 0.5) 100%),
    linear-gradient(180deg, rgba(12, 9, 20, 0.16) 0%, rgba(12, 9, 20, 0.22) 58%, rgba(12, 9, 20, 0.82) 100%);
}

.video-hero-content {
  position: relative;
  z-index: 1;
  padding: 0;
}

.video-hero-panel {
  max-width: 680px;
  padding: clamp(1.35rem, 3vw, 2.35rem);
  background: linear-gradient(135deg, rgba(18, 15, 32, 0.78), rgba(36, 26, 54, 0.62));
  backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 28px 80px rgba(0,0,0,0.36);
}

.video-hero-panel h1 {
  max-width: 640px;
  font-size: clamp(2.6rem, 4.4vw, 4.65rem);
  color: #f7d875;
  text-shadow: 0 8px 28px rgba(0,0,0,0.38);
}

.video-hero-panel p {
  max-width: 60ch;
  color: rgba(255,255,255,0.92);
}

@media (max-width: 700px) {
  .shrine-scroll-hero {
    height: auto;
    min-height: 0;
    background: #120f1c;
  }

  .shrine-video-stage {
    position: relative;
    height: min(62vh, 460px);
    min-height: 0;
  }

  .shrine-scroll-copy {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: auto;
    margin-top: 0;
    padding: 1rem 1.15rem 4.25rem;
    background: transparent;
  }

  .shrine-scroll-copy p {
    width: min(94vw, 420px);
    font-size: clamp(1.55rem, 7.4vw, 2.65rem);
    line-height: 1.02;
    text-align: center;
  }

  .video-hero {
    min-height: 0;
    align-items: stretch;
    padding-top: min(58vh, 430px);
    background: #120f1c;
  }

  .video-hero-media {
    inset: 0 0 auto 0;
    height: min(58vh, 430px);
  }

  .video-hero-overlay {
    inset: 0 0 auto 0;
    height: min(58vh, 430px);
    background: linear-gradient(180deg, rgba(83,85,162,0.06), rgba(18,15,28,0.18) 58%, rgba(18,15,28,0.9));
  }

  .video-hero-content {
    padding: 1.1rem 0 2rem;
  }

  .video-hero-panel {
    background: rgba(20, 16, 40, 0.92);
    backdrop-filter: none;
  }
}

@media (max-width: 980px) {
  header {
    backdrop-filter: blur(18px);
    background: rgba(255, 253, 249, 0.94);
  }

  section {
    padding: 3.25rem 0;
  }

  .hero-grid,
  .two-col,
  .grid-2,
  .grid-3,
  .stats,
  .gallery,
  .cta-band {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-card {
    min-height: 300px;
    aspect-ratio: 16 / 10;
  }

  .nav {
    position: static;
    padding: 0.8rem 0;
  }

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

  .brand-sub {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 4.75rem);
    left: 1rem;
    right: 1rem;
    width: auto;
    min-width: 0;
    padding: 0.85rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.99);
    border: 1px solid rgba(83, 85, 162, 0.12);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.35rem;
    z-index: 1000;
    max-height: calc(100dvh - 5.75rem - env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-links a,
  .mobile-dropdown-toggle {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(83, 85, 162, 0.06);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .nav-links a:active,
  .mobile-dropdown-toggle:active {
    transform: scale(0.99);
  }

  .nav-links .btn.btn-secondary {
    justify-content: center;
    margin-top: 0.2rem;
  }

  .dropdown {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
  }

  .mobile-dropdown-toggle::after {
    content: 'Section';
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--shriner-red);
    text-transform: uppercase;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0.35rem;
    padding: 0.35rem;
    display: flex;
    box-shadow: none;
    background: rgba(83, 85, 162, 0.05);
    max-height: none;
    overflow: visible;
  }

  .dropdown-menu a {
    background: rgba(255, 255, 255, 0.72);
  }

  .hero,
  .page-hero {
    padding: 4.25rem 0 3rem;
  }

  .hero-copy {
    padding: 0.25rem 0 0;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    max-width: 100%;
  }

  .hero p,
  .page-hero p,
  .section-head p,
  .lead {
    font-size: 1rem;
  }

  .cta-row {
    width: 100%;
    gap: 0.75rem;
  }

  .cta-row .btn {
    width: 100%;
  }

  .stat,
  .card {
    padding: 1.15rem;
  }

  .card-photo {
    width: calc(100% + 2.3rem);
    margin: -1.15rem -1.15rem 1rem;
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .carousel-track,
  .carousel-slide img {
    min-height: 260px;
    height: 260px;
  }

  .carousel-controls {
    inset: auto 0.75rem 0.75rem auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  section {
    padding: 2.75rem 0;
  }

  .eyebrow,
  .section-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  h2 {
    font-size: 1.85rem;
  }

  .stats,
  .grid-3,
  .grid-2,
  .gallery {
    gap: 0.85rem;
  }

  .hero-video-overlay {
    background: linear-gradient(180deg, rgba(18, 15, 28, 0.82) 0%, rgba(18, 15, 28, 0.62) 45%, rgba(18, 15, 28, 0.86) 100%);
  }
}
