/* ============================================================
   Pack 41 Clintonville — Cub Scouts
   Brand palette: Scout navy + Cub Scout gold + Scout red
   ============================================================ */

:root {
  /* Brand */
  --navy:        #0b2c5c;
  --navy-deep:   #071e40;
  --blue:        #14579e;
  --gold:        #ffc72c;
  --gold-deep:   #e0a400;
  --red:         #ce1126;
  --red-deep:    #a50d1e;
  --green:       #2e7d4f;
  --green-deep:  #1f5c39;

  /* Neutrals */
  --cream:       #fbf7ef;
  --paper:       #ffffff;
  --ink:         #14202e;
  --muted:       #586573;
  --line:        #e7e0d3;

  /* System */
  --container:   1160px;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 18px 40px -18px rgba(7, 30, 64, 0.45);
  --shadow-sm:   0 8px 22px -12px rgba(7, 30, 64, 0.35);
  --header-h:    78px;

  --ff-display:  "Oswald", "Arial Narrow", sans-serif;
  --ff-body:     "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.05; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.72em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease,
              box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-join {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(206, 17, 38, 0.85);
}
.btn-join:hover { background: var(--red-deep); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg { font-size: 1.08rem; padding: 0.9em 1.9em; }

/* ============================ NAVIGATION ============================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header[data-state="top"] {
  background: linear-gradient(to bottom, rgba(7, 30, 64, 0.92), rgba(7, 30, 64, 0.55));
}
.site-header[data-state="scrolled"] {
  background: var(--navy);
  box-shadow: 0 6px 24px -14px rgba(0, 0, 0, 0.7);
}

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.brand-place {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--gold);
  border-radius: 3px;
  transition: width 0.22s ease;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { width: 100%; }
.nav-link:hover { color: #fff; }

.nav-cta { padding-block: 0.6em; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: clamp(480px, 76svh, 720px);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/backgrounds/hero-sunset.jpg");
  background-size: cover;
  background-position: 70% 22%;
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(7, 30, 64, 0.92) 0%, rgba(7, 30, 64, 0.6) 45%, rgba(7, 30, 64, 0.2) 100%),
    linear-gradient(to top, rgba(7, 30, 64, 0.85) 0%, rgba(7, 30, 64, 0) 55%);
}

.hero-content {
  max-width: 640px;
  padding: clamp(40px, 7vh, 96px) clamp(20px, 5vw, 48px);
  margin-inline: auto;
  width: 100%;
  max-width: calc(var(--container) - 0px);
  color: #fff;
}
.hero-content > * { max-width: 640px; }

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--gold);
}
.hero-title {
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  letter-spacing: 0.005em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.hero-title .hl { color: var(--gold); }

.hero-lead {
  margin: 22px 0 0;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: rgba(255, 255, 255, 0.94);
  max-width: 540px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-facts li {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.82);
}
.hero-facts strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero-scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--gold);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0.2; }
}

/* ===================== THREE PILLARS ===================== */
.pillars {
  padding: clamp(36px, 5vw, 64px) 0 clamp(44px, 6vw, 72px);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 199, 44, 0.10), transparent 60%),
    var(--cream);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 3.5vw, 44px); }
.pillars .section-head { max-width: 900px; }
.pillars-lead {
  max-width: 56ch;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
}
.section-title {
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 3rem);
}

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

.pillar-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(11, 44, 92, 0.06);
  color: var(--navy);
  margin-bottom: 22px;
}
.pillar-icon svg { width: 40px; height: 40px; }

.pillar-name {
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-bottom: 12px;
}
.pillar-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

/* ============================ ABOUT ============================ */
.about {
  padding: clamp(24px, 3vw, 40px) 0 clamp(48px, 7vw, 88px);
  background: var(--paper);
}
.about .section-head { text-align: center; }

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.about-lead {
  margin: 0 0 26px;
  font-size: 1.15rem;
  color: var(--ink);
}
.about-body {
  margin: 0 0 30px;
  font-size: 1.05rem;
  color: var(--muted);
}

.quote-card {
  position: relative;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(30px, 3.5vw, 46px) clamp(28px, 3.5vw, 44px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: -0.18em;
  left: 0.18em;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 7rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.45;
  pointer-events: none;
}
.quote-text {
  position: relative;
  margin: 0 0 18px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.28;
}
.quote-attr {
  position: relative;
  margin: 0;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================ JOIN ============================ */
.join {
  padding: clamp(44px, 6vw, 76px) 0 clamp(48px, 6.5vw, 84px);
  background:
    radial-gradient(115% 85% at 50% -15%, rgba(255, 199, 44, 0.16), transparent 62%),
    var(--navy);
  color: #fff;
}

.join .section-title { color: #fff; }
.eyebrow-invert { color: var(--gold); }

.join-lead {
  max-width: 54ch;
  margin: 18px auto 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
}

.join-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 700px;
  margin-inline: auto;
}

/* --- The event card: the one thing a new family needs to read --- */
.join-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(26px, 3.2vw, 38px);
  box-shadow: var(--shadow);
  border-top: 6px solid var(--gold);
}

.join-kicker {
  margin: 0 0 10px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}

.join-date {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--navy);
}

.join-time {
  margin: 4px 0 22px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: 0.06em;
  color: var(--blue);
}

.join-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.join-details dt {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.join-details dd { margin: 0; }

/* --- Register CTA, inside the event card --- */
.join-card-cta {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.join-card-alt {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.join-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--gold);
  border-bottom: 2px solid rgba(255, 199, 44, 0.4);
  transition: border-color 0.2s ease;
}
.join-link:hover { border-bottom-color: var(--gold); }

/* ============================ PAGE HERO (subpages) ============================ */
.page-hero {
  background:
    radial-gradient(120% 120% at 80% -20%, rgba(20, 87, 158, 0.55), transparent 60%),
    var(--navy-deep);
  color: #fff;
  padding: calc(var(--header-h) + clamp(36px, 6vw, 64px)) 0 clamp(36px, 6vw, 64px);
}
.page-hero-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--gold);
}
.page-hero-title {
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  letter-spacing: 0.01em;
}
.page-hero-lead {
  margin: 18px 0 0;
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
}

/* ============================ EVENTS ============================ */
.events { padding: clamp(40px, 6vw, 72px) 0; background: var(--cream); }
.event-list { display: grid; gap: 18px; }
.month-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
  color: var(--navy);
}
.month-divider:first-child { margin-top: 0; }
.month-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line);
}
.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
}
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  line-height: 1;
}
.event-month {
  font-family: var(--ff-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--gold);
}
.event-day {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2rem;
  margin-top: 4px;
}
.event-name {
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin-bottom: 4px;
}
.event-sub {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.event-meta {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.98rem;
}
.event-copy { margin: 0; color: var(--muted); }
.event-copy a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.event-copy a:hover { color: var(--navy); }
.event-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--ff-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
}
.tag-pack { background: rgba(11, 44, 92, 0.1); color: var(--navy); }
.tag-event { background: rgba(206, 17, 38, 0.1); color: var(--red); }

.events-cta {
  text-align: center;
  margin-top: clamp(32px, 4vw, 48px);
}
.events-cta p {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--ink);
}

/* ====================== RANK COLORS (shared) ====================== */
.lion    { --c: #f0a500; }
.tiger   { --c: #ef7d1a; }
.wolf    { --c: #ce1126; }
.bear    { --c: #1f6fb2; }
.webelos { --c: #2e7d4f; }
.aol     { --c: #0b2c5c; }

/* ====================== RANK JOURNEY (trail) ====================== */
.journey {
  padding: calc(var(--header-h) + clamp(30px, 5vw, 56px)) 0 clamp(40px, 6vw, 68px);
  background: var(--cream);
}
.journey-lead {
  max-width: 60ch;
  margin: 0 0 clamp(16px, 2.2vw, 24px);
  font-size: 1.06rem;
  color: var(--ink);
}
.journey-lead .term {
  font-weight: 700;
  color: var(--navy);
}

.video-caption {
  margin: 0 0 12px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--rule);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Two-column intro: video left, copy right, trail full-width below */
.journey-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  max-width: 1060px;
  margin: 0 auto clamp(34px, 4.5vw, 52px);
}
.journey-intro .section-head {
  text-align: left;
  max-width: none;
  margin: 0 0 clamp(12px, 1.6vw, 18px);
}

.rank-trail {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 6px 0 4px;
  list-style: none;
}
.rank-trail::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: clamp(26px, 6vw, 46px);
  border-top: 3px dashed var(--gold-deep);
  opacity: 0.55;
  z-index: 0;
}
.rank-stop { flex: 1 1 0; min-width: 0; }
.rank-stop a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rank-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(52px, 12vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--c, var(--navy));
  color: var(--c, var(--navy));
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rank-stop a:hover .rank-badge,
.rank-stop a:focus-visible .rank-badge { transform: translateY(-5px); box-shadow: var(--shadow); }
.rank-ico { width: 58%; aspect-ratio: 1; height: auto; display: block; }
.rank-stop-name {
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 1.5vw, 1.02rem);
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.08;
  text-align: center;
}
.rank-stop-grade {
  display: block;
  margin-top: 3px;
  font-size: clamp(0.6rem, 1.1vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ====================== RANK DETAIL CARDS ====================== */
.ranks { padding: clamp(40px, 6vw, 72px) 0; background: var(--paper); }
.rank-list { display: grid; gap: clamp(20px, 3vw, 28px); }
.rank-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.rank-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--c, var(--navy));
}
.rank-card-head {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 22px);
  margin-bottom: 18px;
}
.rank-emblem {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(56px, 7vw, 74px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c, var(--navy));
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
.rank-card-grade {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--c, var(--red));
}
.rank-card-name {
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: 0.01em;
  color: var(--navy);
}
.rank-card-copy {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 72ch;
}
.adv-chips-label {
  margin: 0 0 12px;
  font-family: var(--ff-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--navy);
}
.adv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.adv-chips li {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(11, 44, 92, 0.05);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
}

/* interactive (clickable) chips */
.adv-chips--interactive li { background: none; border: 0; padding: 0; border-radius: 0; }
.chip {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(11, 44, 92, 0.05);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.15s ease;
}
.chip:hover { background: rgba(11, 44, 92, 0.1); }
.chip.is-active { box-shadow: 0 0 0 3px var(--gold); transform: translateY(-1px); }
.chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.adv-hint {
  font-family: var(--ff-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.adv-detail {
  margin: 0 0 18px;
  padding: 13px 16px;
  background: rgba(11, 44, 92, 0.04);
  border-left: 4px solid var(--c, var(--navy));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.rank-electives { margin: 0; font-size: 0.98rem; color: var(--muted); }
.rank-electives em { color: var(--ink); font-style: italic; }

/* ============================ FAQ ============================ */
.faq { padding: clamp(40px, 6vw, 72px) 0; background: var(--cream); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 2.5vw, 24px);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  letter-spacing: 0.01em;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
}
.faq-item[open] summary { color: var(--blue); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--blue); }
.faq-answer {
  padding: 0 clamp(18px, 2.5vw, 24px) clamp(18px, 2.5vw, 24px);
  color: var(--muted);
  font-size: 1.02rem;
}
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin: 0; }
.faq-answer a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.faq-answer a:hover { color: var(--navy); }

/* ============================ RESOURCES ============================ */
.resources { padding: clamp(40px, 6vw, 72px) 0; background: var(--cream); }
.resource-list { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.resource-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 26px);
  box-shadow: var(--shadow-sm);
}
.resource-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(11, 44, 92, 0.08);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.resource-icon svg { width: 26px; height: 26px; }
.resource-body { flex: 1; }
.resource-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 6px;
}
.resource-copy { margin: 0 0 12px; color: var(--muted); }
.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
}
.resource-link:hover { color: var(--navy); }

/* ============================ CALENDAR EMBED ============================ */
.calendar-section { padding: clamp(40px, 6vw, 72px) 0; background: var(--cream); }
.calendar-caption {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.calendar-embed {
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.calendar-embed iframe { width: 100%; height: 600px; border: 0; display: block; }
.calendar-placeholder {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  background: var(--paper);
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
  color: var(--muted);
}
.calendar-placeholder strong { color: var(--navy); }
.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: clamp(20px, 3vw, 28px);
}

/* ============================ CONTACT FORM ============================ */
.contact-section { padding: clamp(40px, 6vw, 72px) 0; background: var(--paper); }
.contact-lead {
  margin: 0 auto;
  max-width: 60ch;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-form {
  max-width: 640px;
  margin: clamp(28px, 4vw, 40px) 0 0;
  display: grid;
  gap: 18px;
}
.contact-social {
  margin-top: clamp(28px, 4vw, 40px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 30px);
}
.contact-social-name {
  font-family: var(--ff-display);
  color: var(--navy);
  font-size: 1.2rem;
  margin: 14px 0 8px;
}
.contact-social-copy { color: var(--muted); font-size: 0.98rem; line-height: 1.55; margin: 0 0 18px; }
/* .contact-form's own display:grid has the same specificity as the browser's
   default [hidden] rule and loads after it, so it silently wins the tie
   unless this is stated explicitly. */
.contact-form[hidden] { display: none; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: grid; gap: 6px; }
.form-field label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}
.form-field input,
.form-field textarea {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.9em;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--blue);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}
.form-note { margin: 0; color: var(--muted); font-size: 0.95rem; }
.form-note a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.form-note a:hover { color: var(--navy); }

/* Honeypot spam trap -- hidden from real visitors, left for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  max-width: 640px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding: 1.1em 1.3em;
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  line-height: 1.5;
}
.form-status--success {
  background: rgba(46, 125, 79, 0.1);
  border: 1px solid var(--green);
  color: var(--navy-deep);
}
.form-status--success strong { color: var(--green-deep); }
.form-status--success a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.form-status--error {
  background: rgba(206, 17, 38, 0.08);
  border: 1px solid var(--red);
  color: var(--navy-deep);
}
.form-status--error a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* ============================ FOOTER ============================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: clamp(28px, 5vw, 56px);
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(36px, 4vw, 52px);
}
.footer-brand .brand { margin: 0 0 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-tagline { margin: 0; max-width: 34ch; }

.footer-heading {
  font-family: var(--ff-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  color: var(--gold);
  margin: 0 0 16px;
}
.footer-nav ul { display: grid; gap: 11px; }
.footer-nav a,
.footer-contact a { color: rgba(255, 255, 255, 0.8); transition: color 0.2s ease; }
.footer-nav a:hover,
.footer-contact a:hover { color: #fff; }

.footer-contact address { font-style: normal; margin: 0 0 14px; line-height: 1.6; }
.footer-contact p { margin: 0 0 8px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom .container { padding-block: 20px; }
.footer-bottom p { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #fff;
  background: #1877f2;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social:hover { background: #fff; color: #1877f2; transform: translateY(-2px); }

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.footer-social-link svg { flex: none; }
.footer-social-link span { text-decoration: underline; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-social { margin-top: 0; order: 1; }
  .contact-primary { order: 2; }
}

@media (max-width: 560px) {
  .event-card { grid-template-columns: 64px 1fr; }
  .event-name { padding-right: 76px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .pillar-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

@media (max-width: 440px) {
  /* stack the label/value pairs so long addresses stop cramping */
  .join-details { grid-template-columns: 1fr; gap: 4px 0; }
  .join-details dt { padding-top: 14px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 14px clamp(20px, 5vw, 48px) 28px;
    box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.8);
    transform: translateY(-130%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    display: block;
    padding: 16px 4px;
    font-size: 1.12rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 20px; text-align: center; align-self: flex-start; }

  /* keep header solid once menu can appear, for legibility */
  .site-header[data-state="top"] { background: linear-gradient(to bottom, rgba(7, 30, 64, 0.7), rgba(7, 30, 64, 0.15)); }
}

@media (max-width: 520px) {
  :root { --header-h: 68px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-name { font-size: 1.15rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-facts { gap: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll-dot { animation: none; }
  * { transition-duration: 0.001ms !important; }
}

@media (max-width: 860px) {
  .journey-intro {
    grid-template-columns: 1fr;
    gap: clamp(26px, 5vw, 38px);
    max-width: 700px;
  }
  .journey-intro .section-head { text-align: center; }
  .video-caption { text-align: center; }
  .journey-lead {
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}
