/* =============================================================
   Upper Harbour Youth Council — styles (v2)
   Light editorial sections, one cinematic dark hero, dark team band.
   Brand colours are sampled from the UHYC logo gradient.
   ============================================================= */

:root {
  /* Brand (logo gradient: sky cyan -> azure -> indigo) */
  --sky:    #5bc8ee;
  --cyan:   #38d6ff;
  --azure:  #3677b1;
  --royal:  #2a55c4;
  --indigo: #2b3a93;
  --brand:  linear-gradient(135deg, var(--sky) 0%, var(--azure) 52%, var(--indigo) 100%);

  /* Light surfaces */
  --paper:    #ffffff;
  --paper-2:  #f5f7fb;
  --hair:     #e4e8f1;
  --ink:      #0b1440;
  --ink-2:    #2a3560;
  --ink-3:    #6b7496;

  /* Dark surfaces */
  --night:    #05081a;
  --night-2:  #0b1130;
  --night-3:  #121a3f;
  --night-hair: rgba(255, 255, 255, 0.10);
  --night-text: #eef2ff;
  --night-muted: #9aa5cc;

  --wrap: 1120px;
  --wrap-narrow: 780px;
  --r-l: 28px;
  --r-m: 18px;
  --r-s: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  color: var(--ink-2); background: var(--paper);
  line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.025em; line-height: 1.08; font-weight: 700; }
::selection { background: rgba(91, 200, 238, 0.35); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fine { font-size: 0.86rem; color: var(--night-muted); margin-top: 2rem; text-align: center; }

/* =============================================================
   NAV  (frosted, adapts to the section beneath it)
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(11, 20, 64, 0.08);
  color: var(--ink);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.nav.on-dark { background: rgba(5, 8, 26, 0.55); border-color: rgba(255, 255, 255, 0.08); color: var(--night-text); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; height: 100%; padding: 0 clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em; white-space: nowrap; }
.nav-brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 1.8rem); }
.nav-links a { font-size: 0.84rem; font-weight: 500; opacity: 0.78; transition: opacity 0.2s; position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--brand); }
.nav-links a.nav-cta { opacity: 1; padding: 7px 14px; border-radius: 100px; font-weight: 600; color: #fff; background: var(--brand); box-shadow: 0 4px 14px rgba(42, 85, 196, 0.25); }
.nav-links a.nav-cta::after { display: none; }
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 23px; }
.nav.menu-open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* =============================================================
   BUTTONS & LINKS
   ============================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 100px; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s; }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 8px 26px rgba(42, 85, 196, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(42, 85, 196, 0.36); }
.link-arrow { font-weight: 500; color: var(--royal); display: inline-flex; align-items: center; gap: 0.35rem; }
.link-arrow::after { content: "\203A"; font-size: 1.2em; line-height: 1; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
[data-theme="dark"] .link-arrow { color: var(--sky); }
.pill { font-size: 0.78rem; font-weight: 600; padding: 0.4rem 0.85rem; border-radius: 100px; border: 1px solid var(--hair); color: var(--ink); background: #fff; transition: background 0.2s, border-color 0.2s; }
.pill:hover { border-color: var(--azure); background: var(--paper-2); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--hair); transition: background 0.2s, transform 0.2s var(--ease), opacity 0.2s; }
.round-btn:hover { background: #fff; transform: scale(1.06); }
.round-btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.round-btn.small { width: 34px; height: 34px; font-size: 1.2rem; }

/* =============================================================
   HERO  (cinematic, full-bleed)
   ============================================================= */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden;
  background: var(--night); color: var(--night-text); padding: 0 0 clamp(56px, 8vh, 96px); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 92%; will-change: transform; transform: scale(1.06); animation: heroIn 2.4s var(--ease) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(5, 8, 26, 0.55) 0%, rgba(5, 8, 26, 0.22) 40%, rgba(5, 8, 26, 0) 68%),
    linear-gradient(to bottom, rgba(5, 8, 26, 0.55) 0%, rgba(5, 8, 26, 0.08) 30%, rgba(5, 8, 26, 0.22) 55%, rgba(5, 8, 26, 0.88) 82%, var(--night) 100%),
    radial-gradient(70% 50% at 50% 100%, rgba(43, 58, 147, 0.45), transparent 70%); }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.hero-content > * { max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.6vw, 4.8rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.7rem; font-weight: 600; color: var(--sky); margin-bottom: 1.2rem; }
.hero-sub { max-width: 600px; margin: 1.4rem 0 0; font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: rgba(238, 242, 255, 0.85); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.motto { display: flex; justify-content: flex-start; align-items: center; gap: 0.9rem; margin: 1.6rem 0 2rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; color: #fff; }
.motto i { width: 4px; height: 4px; border-radius: 50%; background: var(--sky); }
.hero-actions { display: flex; align-items: center; justify-content: flex-start; gap: 1.6rem; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 22px; height: 36px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 14px; z-index: 1; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--sky); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* =============================================================
   BANDS  (sections)
   ============================================================= */
.band { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.band-light { background: var(--paper); }
.band-paper { background: var(--paper-2); }
.band-dark { background: var(--night); color: var(--night-text); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 50% 0%, rgba(54, 119, 177, 0.28), transparent 70%); }
.band-dark > .wrap { position: relative; }

.kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--azure); margin-bottom: 0.9rem; }
.band-dark .kicker { color: var(--sky); }
.band-head { max-width: var(--wrap-narrow); margin-bottom: clamp(36px, 5vw, 60px); }
.band-head h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.band-head .lead { margin-top: 1.1rem; font-size: 1.12rem; color: var(--ink-3); }
.band-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sub-head { font-size: 1.35rem; font-weight: 600; margin-bottom: 1.2rem; letter-spacing: -0.015em; }

/* Reveal helper */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =============================================================
   ABOUT
   ============================================================= */
.statement { font-size: clamp(1.9rem, 4.4vw, 3.4rem); max-width: 980px; line-height: 1.12; }
.statement .soft { display: block; margin-top: 0.7em; font-size: 0.56em; font-weight: 500; letter-spacing: -0.015em; color: var(--ink-3); line-height: 1.4; max-width: 24em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: clamp(40px, 6vw, 72px) 0; }
.stat { padding: 1.5rem 1.4rem; border-radius: var(--r-m); background: var(--paper-2); border: 1px solid var(--hair); }
.stat-num { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 0.5rem; font-size: 0.86rem; color: var(--ink-3); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.map-card { margin: 0; padding: clamp(20px, 3vw, 36px); border-radius: var(--r-l); background: var(--paper-2); border: 1px solid var(--hair); }
.map-card figcaption { margin-top: 1rem; font-size: 0.8rem; color: var(--ink-3); text-align: center; }
.map-svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 40px rgba(43, 58, 147, 0.16)); }
.region-fill { fill: url(#regionFill); }
.region-line { fill: none; stroke: url(#brandStroke); stroke-width: 2.2; stroke-linejoin: round; }
.region-trace { fill: none; stroke: var(--sky); stroke-width: 5; stroke-linecap: round; opacity: 0.55;
  stroke-dasharray: 10 90; animation: trace 7s linear infinite; }
@keyframes trace { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
.map-labels text { fill: var(--ink); font-size: 14px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3.5px; letter-spacing: 0.005em; }
.about-text h3 { font-size: 1.6rem; margin-bottom: 0.9rem; }
.about-text p { font-size: 1.06rem; color: var(--ink-2); }
.about-text p + p { margin-top: 0.9rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.chips li { font-size: 0.8rem; font-weight: 500; padding: 0.38rem 0.8rem; border-radius: 100px; border: 1px solid var(--hair); background: #fff; color: var(--ink-2); }

/* =============================================================
   HISTORY  (horizontal scroll-snap timeline)
   ============================================================= */
.timeline { position: relative; }
.timeline { --tl-pad: max(20px, calc((100vw - var(--wrap)) / 2 + 40px)); }
.tl-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px var(--tl-pad) 28px; scroll-padding-left: var(--tl-pad); scrollbar-width: none; outline: none; }
.tl-track::-webkit-scrollbar { display: none; }
.tl-card { flex: 0 0 min(400px, 78vw); scroll-snap-align: start; position: relative;
  padding: 28px 28px 30px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--hair);
  display: grid; align-content: start; gap: 0.7rem; min-height: 320px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.tl-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(11, 20, 64, 0.10); }
.tl-card.has-photo { flex-basis: min(680px, 86vw); grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 26px; padding: 0 28px 0 0; overflow: hidden; }
.tl-card.has-photo img { grid-row: 1 / -1; grid-column: 1; width: 100%; height: 100%; object-fit: cover; }
.tl-card.has-photo > :not(img) { grid-column: 2; }
.tl-card.has-photo .tl-title, .tl-card.has-photo .tl-text { margin-right: 0; }
.tl-year { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.tl-card.has-photo .tl-year { margin-top: 28px; }
.tl-card.has-photo .tl-text { margin-bottom: 30px; }
.tl-title { font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.tl-text { color: var(--ink-3); font-size: 0.98rem; }
.tl-controls { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 4px; }
.tl-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.tl-progress span { display: block; height: 100%; width: 20%; border-radius: 3px; background: var(--brand); transition: width 0.25s var(--ease), transform 0.25s var(--ease); }
.tl-buttons { display: flex; gap: 0.6rem; }

/* =============================================================
   TEAM  /  ORG CHART
   ============================================================= */
.seg { display: inline-flex; padding: 4px; border-radius: 100px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--night-hair); }
.seg button { padding: 0.45rem 1.1rem; border-radius: 100px; font-size: 0.86rem; font-weight: 600; color: var(--night-muted); transition: color 0.25s, background 0.25s; }
.seg button[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }

.select-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--night-hair); color: var(--night-muted); font-size: 0.86rem; font-weight: 500; }
.select-pill select { font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 0; border-radius: 100px; padding: 8px 32px 8px 14px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230b1440' stroke-width='1.8' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; }
.select-pill select:focus { outline: none; box-shadow: 0 0 0 3px rgba(91, 200, 238, 0.45); }
.pill.dark { background: rgba(255, 255, 255, 0.08); border-color: var(--night-hair); color: var(--night-text); }
.pill.dark:hover { background: rgba(255, 255, 255, 0.14); }
.org-archive { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--night-hair); }
.archive-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 8px; }
.archive-head .sub-head { margin: 0; }
.org-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 22px; border-radius: var(--r-l); border: 1px solid var(--night-hair); background: rgba(255, 255, 255, 0.02); }
.org-members .card { min-width: 0; }

.org-host { position: relative; }
.org { position: relative; padding: 8px 0 12px; opacity: 0; animation: orgIn 0.6s var(--ease) forwards; }
@keyframes orgIn { to { opacity: 1; } }
.org-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.org > :not(.org-lines) { position: relative; z-index: 1; }

.org-board { width: 100%; margin: 0 auto 64px; padding: 0.95rem 1.4rem; text-align: center;
  border-radius: var(--r-m); border: 1px dashed rgba(91, 200, 238, 0.45); background: rgba(255, 255, 255, 0.03); }
.org-board .role { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--night-muted); }
.org-board .name { display: block; font-weight: 600; font-size: 1.05rem; color: #fff; }

.org-exec { width: max-content; max-width: 100%; margin: 0 auto 88px; padding: 24px; display: grid; gap: 18px; justify-items: center;
  border-radius: var(--r-l); border: 1px solid rgba(91, 200, 238, 0.28); background: rgba(255, 255, 255, 0.025); }
.org-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.org-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.group { display: grid; justify-items: center; align-content: start; gap: 22px; padding: 22px 14px 18px; border-radius: var(--r-l); border: 1px solid var(--night-hair); background: rgba(255, 255, 255, 0.02); }
/* members sit to the right of a 24px gutter, where the spine runs */
.group .members { display: grid; gap: 12px; width: 100%; padding-left: 30px; justify-items: stretch; }
.group .members .card { min-width: 0; width: 100%; }

.card { position: relative; display: grid; justify-items: center; gap: 0.15rem; text-align: center;
  padding: 0.9rem 1.1rem; min-width: 156px; border-radius: 16px;
  background: linear-gradient(180deg, var(--night-3), var(--night-2)); border: 1px solid var(--night-hair);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.card:hover { transform: translateY(-3px); border-color: rgba(91, 200, 238, 0.55); box-shadow: 0 12px 34px rgba(56, 214, 255, 0.14); }
.card .role { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; color: var(--sky); }
.card .name { font-weight: 600; font-size: 0.98rem; color: #fff; letter-spacing: -0.01em; }
.avatar { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 0.45rem; display: grid; place-items: center;
  font-weight: 700; font-size: 1rem; color: #fff; background: var(--brand); object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.12); }
.card.exec { min-width: 200px; padding: 1.3rem 1.4rem; gap: 0.25rem; border-color: rgba(91, 200, 238, 0.42); background: linear-gradient(180deg, #16204a, var(--night-2)); }
.card.exec .avatar { width: 68px; height: 68px; font-size: 1.35rem; }
.card.exec .name { font-size: 1.08rem; }
.card.exec .role { font-size: 0.7rem; }
.card.lead { min-width: 168px; border-color: rgba(91, 200, 238, 0.3); }
.card.member { min-width: 156px; padding: 0.7rem 1rem; }
.card.member .avatar { width: 36px; height: 36px; font-size: 0.8rem; margin-bottom: 0.3rem; }
.card.member .name { font-weight: 500; font-size: 0.92rem; }
.card.header { background: transparent; border-color: transparent; padding: 0.4rem 0.6rem 0; }
.card.header .name { font-size: 1.05rem; }

/* Connector lines: static base + a soft comet that cascades tier by tier. */
.ln-base { fill: none; stroke: rgba(91, 200, 238, 0.3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ln-glow, .ln-core { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ln-glow { stroke: var(--cyan); stroke-width: 8; opacity: 0.32; }
.ln-core { stroke: #c9f3ff; stroke-width: 2.2; }
.ln-dot { fill: var(--sky); opacity: 0.9; }

/* =============================================================
   EVENTS
   ============================================================= */
.upcoming-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: clamp(40px, 6vw, 64px); }
.up-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-l); overflow: hidden; background: var(--night); color: var(--night-text); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.up-card:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(11, 20, 64, 0.22); }
.up-card.featured, .up-card:not(.featured):last-child:nth-child(even) { grid-column: 1 / -1; grid-template-columns: 1.15fr 1fr; grid-template-rows: none; min-height: 380px; }
.up-card:not(.featured):last-child:nth-child(even) .media.up-photo { aspect-ratio: auto; height: 100%; min-height: 320px; }
.up-card .media.up-photo { aspect-ratio: 16 / 10; }
.up-card.featured .media.up-photo { aspect-ratio: auto; height: 100%; min-height: 320px; }
.up-body { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px; align-content: start; }
.up-date { text-align: center; border-radius: 14px; padding: 8px 4px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); height: max-content; }
.up-date b { display: block; font-size: 1.6rem; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.up-date b.tbc { font-size: 0.95rem; letter-spacing: 0.04em; padding: 5px 0; }
.up-date span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sky); margin-top: 4px; font-weight: 600; }
.up-text h4 { color: #fff; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.up-card.featured .up-text h4 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.up-when { color: var(--sky); font-size: 0.86rem; font-weight: 500; margin-bottom: 10px; }
.up-text p { color: var(--night-muted); font-size: 0.96rem; }
.recent-head { margin-top: 8px; }
.muted { color: var(--ink-3); }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event-card { display: grid; align-content: start; gap: 0.6rem; padding: 0; border-radius: var(--r-l); overflow: hidden; background: var(--paper-2); border: 1px solid var(--hair);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(11, 20, 64, 0.10); }
.media { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe6f5; }
.media .bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(24px) saturate(1.15); opacity: 0.85; }
.media .fg { position: relative; width: 100%; height: 100%; object-fit: contain; }
.event-card .body { padding: 6px 22px 22px; display: grid; gap: 0.35rem; }
.event-card .when { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--azure); }
.event-card h4 { font-size: 1.15rem; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.event-card p { font-size: 0.94rem; color: var(--ink-3); }
.banner { margin: 28px 0 0; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--hair); }
.banner img { width: 100%; height: auto; }
.upcoming { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.upcoming-text p { color: var(--ink-3); font-size: 1.05rem; }
.upcoming .actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.4rem; }
.calendar-card { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--hair); background: #fff; box-shadow: 0 30px 80px rgba(11, 20, 64, 0.10); }
.calendar-card iframe { width: 100%; height: 560px; border: 0; display: block; background: #fff; }

/* =============================================================
   PLANS  (PDF viewer)
   ============================================================= */
.plans-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.doc-tabs { display: grid; gap: 10px; margin-bottom: 2rem; }
.doc-tab { text-align: left; padding: 14px 18px; border-radius: var(--r-m); border: 1px solid var(--hair); background: #fff; display: grid; gap: 2px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); }
.doc-tab b { font-size: 0.98rem; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.doc-tab span { font-size: 0.82rem; color: var(--ink-3); }
.doc-tab[aria-selected="true"] { border-color: var(--azure); box-shadow: 0 0 0 3px rgba(54, 119, 177, 0.15); }
.doc-tab:hover { transform: translateY(-1px); }
.outcomes { list-style: none; counter-reset: o; display: grid; gap: 0.7rem; margin-bottom: 1.6rem; }
.outcomes li { counter-increment: o; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.outcomes li::before { content: counter(o, decimal-leading-zero); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--azure); margin-top: 4px; }
.outcomes b { display: block; color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.outcomes span { color: var(--ink-3); font-size: 0.9rem; }

.pdf-card { border-radius: var(--r-l); background: #fff; border: 1px solid var(--hair); box-shadow: 0 30px 80px rgba(11, 20, 64, 0.10); overflow: hidden; position: sticky; top: calc(var(--nav-h) + 20px); }
.pdf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hair); background: var(--paper-2); flex-wrap: wrap; }
.pdf-title { font-size: 0.86rem; font-weight: 600; color: var(--ink); flex: 1 1 200px; }
.pdf-nav { display: flex; align-items: center; gap: 8px; }
.pdf-page { font-size: 0.84rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.pdf-page input { width: 44px; text-align: center; font: inherit; padding: 4px; border-radius: 8px; border: 1px solid var(--hair); background: #fff; color: var(--ink); }
.pdf-page input::-webkit-outer-spin-button, .pdf-page input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdf-page input { -moz-appearance: textfield; appearance: textfield; }
.pdf-actions { display: flex; gap: 6px; }
.pdf-stage { position: relative; background: #e9edf5; display: grid; place-items: center; height: min(78vh, 900px); min-height: 420px; padding: 18px; overflow: hidden; }
.pdf-stage canvas { display: block; box-shadow: 0 4px 24px rgba(11, 20, 64, 0.12); background: #fff; transition: opacity 0.25s; }
.pdf-stage.busy canvas { opacity: 0.55; }
.pdf-loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; justify-items: center; font-size: 0.86rem; color: var(--ink-3); background: rgba(233, 237, 245, 0.85); transition: opacity 0.3s; }
.pdf-loading.hide { opacity: 0; pointer-events: none; }
.pdf-loading span { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--hair); border-top-color: var(--azure); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pdf-slider { width: 100%; display: block; margin: 0; padding: 14px 16px; accent-color: var(--azure); background: var(--paper-2); border-top: 1px solid var(--hair); }

/* =============================================================
   CONTACT
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; padding: 1.35rem 1rem 0.6rem; font: inherit; color: var(--ink); background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--r-s); resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(54, 119, 177, 0.15); }
.field label { position: absolute; left: 1rem; top: 1rem; color: var(--ink-3); font-size: 0.95rem; pointer-events: none; transition: 0.2s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 0.45rem; font-size: 0.68rem; letter-spacing: 0.04em; color: var(--azure); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-status { font-size: 0.9rem; color: var(--azure); }
.social-list { display: grid; gap: 12px; }
.social-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-m); border: 1px solid var(--hair); background: var(--paper-2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.social-card:hover { transform: translateY(-2px); border-color: rgba(54, 119, 177, 0.5); box-shadow: 0 14px 34px rgba(11, 20, 64, 0.08); }
.social-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.social-avatar { position: relative; width: 52px; height: 52px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34); }
.social-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; display: block; }
.social-avatar.none img { display: none; }
.social-avatar .badge { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; border: 2px solid #fff; }
.social-avatar .badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social-card { grid-template-columns: 52px 1fr auto; }
.social-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-card b { display: block; font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.social-card span { display: block; font-size: 0.82rem; color: var(--ink-3); }
.social-card::after { content: "\203A"; font-size: 1.4rem; color: var(--ink-3); }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: var(--paper-2); border-top: 1px solid var(--hair); padding: 40px 0 32px; font-size: 0.82rem; color: var(--ink-3); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--hair); }
.footer .nav-brand { color: var(--ink); }
.footer-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 18px; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .upcoming, .plans-grid, .contact-grid { grid-template-columns: 1fr; }
  .pdf-card { position: static; }
  .event-grid { grid-template-columns: 1fr 1fr; }
  .up-card.featured, .up-card:not(.featured):last-child:nth-child(even) { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; }
  .up-card.featured .media.up-photo, .up-card:not(.featured):last-child:nth-child(even) .media.up-photo { aspect-ratio: 16 / 10; height: auto; }
  .org-groups { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
}
@media (max-width: 760px) {
  .nav-brand span { display: none; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: var(--nav-h) 0 0 0; flex-direction: column; justify-content: center; gap: 1.8rem;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(20px); color: var(--ink);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
  .nav.on-dark .nav-links { background: rgba(5, 8, 26, 0.96); color: var(--night-text); }
  .nav.menu-open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { font-size: 1.3rem; font-weight: 600; }
  .hero { padding-bottom: 72px; text-align: center; }
  .hero-content > * { margin-left: auto; margin-right: auto; }
  .hero-sub { margin: 1.2rem auto 0; }
  .motto, .hero-actions { justify-content: center; }
  .hero-media img { object-position: 50% 30%; }
  .hero-media::after { background: linear-gradient(to bottom, rgba(5, 8, 26, 0.45) 0%, rgba(5, 8, 26, 0.05) 25%, rgba(5, 8, 26, 0.55) 52%, rgba(5, 8, 26, 0.94) 75%, var(--night) 100%); }
  .event-grid { grid-template-columns: 1fr; }
  .upcoming-grid { grid-template-columns: 1fr; }
  .band-head.split { flex-direction: column; align-items: flex-start; }
  .org-groups { grid-template-columns: 1fr; gap: 22px; padding-left: 18px; }   /* room for the left rail */
  .org-exec { width: 100%; margin-bottom: 56px; padding: 14px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .org-row { display: contents; }
  .card.exec { min-width: 0; width: 100%; padding: 1rem 0.6rem; }
  .card.exec .avatar { width: 52px; height: 52px; font-size: 1.1rem; }
  .card.exec .name { font-size: 1rem; }
  .card.exec .role { font-size: 0.62rem; letter-spacing: 0.12em; }
  .calendar-card iframe { height: 480px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 1.1rem 1rem; }
  .form { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  .scroll-cue span { animation: none; }
  /* the org pulse runs slowly under reduced motion (see org.js) */
  .region-trace { animation-duration: 16s; }
}
