/* ==========================================================================
   Senior Youth — "Aurora" design
   Glass bento tiles over slow-moving aurora light. Ivory theme.
   System fonts only (nothing downloaded).
   ========================================================================== */

/* ---------- Theme: Ivory (light, navy and gold) ---------- */
:root,
[data-theme="ivory"] {
  --bg: #f5f1e8; --bg-2: #fffdf8; --text: #141922; --muted: #5a6170;
  --glass: rgba(255, 255, 255, .66); --glass-2: rgba(255, 255, 255, .95); --line: rgba(20, 25, 34, .1);
  --a1: #1e3a5f; --a2: #c39552; --a3: #7a1f24;
  --btn1: #1e3a5f; --btn2: #7a1f24; --btn-text: #fff;
  --blob: .28; --shadow: 0 30px 70px -35px rgba(20, 30, 50, .3);
  color-scheme: light;
}

:root {
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "SF Pro Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 26px;
  --grad: linear-gradient(120deg, var(--a1), var(--a2) 50%, var(--a3));
  --btn: linear-gradient(120deg, var(--btn1), var(--btn2));
  --max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--text); background: var(--bg);
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; font-family: var(--display); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2.5px solid var(--a2); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.noscript { position: fixed; inset: auto 12px 12px; padding: 14px; border-radius: 14px; background: var(--text); color: var(--bg); text-align: center; }
::selection { background: var(--a1); color: #fff; }

/* ---------- Aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  opacity: var(--blob); will-change: transform;
  animation: drift 28s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { background: radial-gradient(circle, var(--a1), transparent 62%); top: -30vmax; left: -20vmax; }
.aurora span:nth-child(2) { background: radial-gradient(circle, var(--a2), transparent 62%); top: 10vh; right: -35vmax; animation-duration: 34s; animation-delay: -8s; opacity: calc(var(--blob) * .75); }
.aurora span:nth-child(3) { background: radial-gradient(circle, var(--a3), transparent 62%); bottom: -40vmax; left: 20vw; animation-duration: 40s; animation-delay: -16s; opacity: calc(var(--blob) * .7); }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8vw, 6vh, 0) scale(1.12); }
  100% { transform: translate3d(-6vw, 10vh, 0) scale(.95); }
}

/* Scroll progress line (browsers with scroll-driven animations) */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: .98rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-glow { background: var(--btn); color: var(--btn-text); box-shadow: 0 10px 30px -10px var(--btn1); }
.btn-glow:hover { box-shadow: 0 16px 40px -12px var(--btn1); }
.btn-ghost { background: var(--glass); border-color: var(--line); }
.btn-ghost:hover { background: var(--glass-2); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .9rem; background: var(--glass-2); border-color: var(--line); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-center { justify-content: center; }

/* ---------- Top bar ---------- */
.top {
  position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(var(--max), 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 7px 7px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: .98rem; letter-spacing: -.01em; }
.brand small { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.pill { display: flex; gap: 2px; }
.pill a { padding: 8px 12px; border-radius: 999px; font-size: .9rem; font-weight: 550; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; }
.pill a:hover { color: var(--text); }
.pill a[aria-current] { color: var(--text); background: var(--glass-2); }
.top-actions { display: flex; align-items: center; gap: 6px; }
.join-top { min-height: 42px; }


/* Mobile dock */
.dock { display: none; }

/* ---------- Hero bento ---------- */
.hero { padding-top: 96px; }
.bento {
  display: grid; gap: 14px;
  grid-template-columns: 1.15fr 1fr .9fr .9fr;
  grid-template-areas:
    "title title photo logo"
    "title title photo motto"
    "next  next  stats stats";
}
.tile { position: relative; border-radius: var(--r); overflow: hidden; margin: 0; }
.t-title { grid-area: title; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; }
.t-photo { grid-area: photo; min-height: 300px; background: var(--bg-2); }
.t-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-logo { grid-area: logo; display: grid; place-items: center; padding: 20px; }
.t-motto { grid-area: motto; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.t-next { grid-area: next; padding: 24px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; column-gap: 20px; align-items: start; }
.t-stats { grid-area: stats; padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: center; }

.kicker { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin: 0 0 auto; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: .82rem; font-weight: 600; color: var(--muted); }
.kicker .icon { color: var(--a2); }
.mega { margin-top: 40px; font-size: clamp(3.4rem, 9.5vw, 8.4rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.grad {
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s ease-in-out infinite alternate;
}
@keyframes sheen { to { background-position: 100% 0; } }
.tagline { margin: 22px 0 10px; font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 650; line-height: 1.2; letter-spacing: -.02em; }
.lede { max-width: 46ch; color: var(--muted); margin-bottom: 26px; }

.chip { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #fff; background: rgba(10, 8, 20, .45); border-color: rgba(255, 255, 255, .2); }

.logo-ring { position: relative; width: min(100%, 190px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; padding: 6px; }
.logo-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from var(--ang), var(--a1), var(--a2), var(--a3), var(--a1)); animation: spin 6s linear infinite; }
.logo-ring img { position: relative; width: 100%; height: auto; border-radius: 50%; border: 5px solid var(--bg); }

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }

.small-label { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ticker { height: 1.1em; overflow: hidden; font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.ticker span { display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: tick 7.5s cubic-bezier(.7, 0, .2, 1) infinite; }
@keyframes tick {
  0%, 26% { transform: translateY(0); }
  33%, 59% { transform: translateY(-100%); }
  66%, 92% { transform: translateY(-200%); }
  100% { transform: translateY(-300%); }
}
.motto-line { font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.next-title { grid-column: 1; margin-top: 10px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.next-meta { grid-column: 1; margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.cd { grid-column: 2; grid-row: 1 / span 3; display: flex; gap: 8px; align-self: center; }
.cd div { display: grid; place-items: center; min-width: 64px; padding: 12px 6px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--line); }
.cd b { font-size: 1.9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.cd span { margin-top: 4px; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.t-next .btn-small { grid-column: 1; justify-self: start; align-self: end; margin-top: 16px; }
.t-next.is-empty .cd, .t-next.is-empty [data-next-ics] { display: none; }

.t-stats div { display: grid; }
.t-stats b { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-stats span { margin-top: 6px; font-size: .88rem; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { margin: 56px 0 0; padding: 18px 0; overflow: hidden; border-block: 1px solid var(--line); background: var(--glass); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: slide 36s linear infinite; }
.marquee span { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.marquee span:nth-of-type(odd) { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee i { width: 14px; height: 14px; flex: none; background: var(--a2); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-top: clamp(80px, 11vw, 140px); }
.eyebrow { margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--a2); }
[data-theme="ivory"] .eyebrow { color: var(--a3); }
.h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
.sec-head { margin-bottom: 32px; }
.sec-lede { margin: 12px 0 0; color: var(--muted); }

/* About */
.statement { max-width: 18ch; font-size: clamp(2.3rem, 6.4vw, 5.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.statement .w { display: inline-block; margin-right: .22em; }
@supports (animation-timeline: view()) {
  .statement .w { opacity: .18; animation: lit linear both; animation-timeline: view(); animation-range: entry 30% cover 42%; }
  @keyframes lit { to { opacity: 1; } }
}
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: 44px; align-items: start; }
.about-text p { font-size: 1.12rem; color: var(--muted); }
.about-text p:first-child { color: var(--text); }
.values { display: grid; gap: 12px; }
.value { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center; padding: 20px 22px; border-radius: 22px; transition: transform .25s ease, background-color .25s; }
.value:hover { transform: translateX(6px); background: var(--glass-2); }
.value-num { grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--btn); color: var(--btn-text); font-weight: 800; font-size: 1.15rem; }
.value h3 { font-size: 1.4rem; }
.value p { margin: 0; color: var(--muted); }

/* Vision + Mission */
.purpose { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; align-items: stretch; }
.glow-card { position: relative; padding: 1.5px; border-radius: 30px; background: conic-gradient(from var(--ang), var(--a1), var(--a2), var(--a3), var(--a1)); animation: spin 9s linear infinite; }
.glow-card::before { content: ""; position: absolute; inset: 10%; z-index: -1; border-radius: 30px; background: inherit; filter: blur(50px); opacity: .55; }
.glow-inner { height: 100%; padding: clamp(28px, 4vw, 48px); border-radius: 29px; background: var(--bg-2); }
.h-card { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.vision-text { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.45; font-weight: 500; }
.vision-text::before { content: "“"; display: block; height: .6em; font-size: 4em; line-height: 1; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mission { padding: clamp(28px, 4vw, 48px); border-radius: 30px; }
.mission-list { counter-reset: m; display: grid; gap: 4px; }
.mission-list li { counter-increment: m; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 12px; margin-inline: -12px; border-radius: 16px; transition: background-color .2s; }
.mission-list li:hover { background: var(--glass-2); }
.mission-list li::before { content: counter(m, decimal-leading-zero); display: grid; place-items: center; height: 32px; border-radius: 10px; border: 1px solid var(--line); font-size: .8rem; font-weight: 800; color: var(--a2); }
[data-theme="ivory"] .mission-list li::before { color: var(--a3); }

/* Programs (spotlight cards) */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.program {
  --mx: 50%; --my: 0%;
  position: relative; padding: 26px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--a1) 22%, transparent), transparent 65%), var(--glass);
  border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s;
}
.program:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a1) 50%, var(--line)); }
.program .p-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 15px; background: var(--glass-2); border: 1px solid var(--line); color: var(--a2); }
[data-theme="ivory"] .program .p-icon { color: var(--a3); }
.program .p-icon .icon { width: 24px; height: 24px; }
.program h3 { font-size: 1.2rem; margin-bottom: 8px; }
.program p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Activities ---------- */
.rings { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 18px; margin-bottom: 18px; scroll-snap-type: x proximity; scrollbar-width: none; }
.rings::-webkit-scrollbar { display: none; }
.ring { flex: none; display: grid; justify-items: center; gap: 8px; width: 86px; padding: 0; border: 0; background: none; scroll-snap-align: start; }
.ring-img { width: 80px; height: 80px; padding: 3px; border-radius: 50%; background: conic-gradient(from 200deg, var(--a1), var(--a2), var(--a3), var(--a1)); transition: transform .2s; }
.ring:hover .ring-img { transform: scale(1.06); }
.ring-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--bg); }
.ring.is-seen .ring-img { background: var(--line); }
.ring span { width: 100%; font-size: .78rem; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: .9rem; font-weight: 600; color: var(--muted); }
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); border-color: transparent; }

.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 14px; }
.card {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: var(--bg-2); text-align: left; color: #fff; isolation: isolate;
}
.card.is-feature { grid-column: span 2; grid-row: span 2; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover img { transform: scale(1.05); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 4, 12, 0) 30%, rgba(5, 4, 12, .88)); }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.card-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: rgba(10, 8, 20, .45); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tag-sample { background: rgba(250, 204, 21, .9); color: #2a1d00; border-color: transparent; }
.card-date { font-size: .82rem; opacity: .85; }
.card h3 { margin: 4px 0 6px; font-size: 1.3rem; }
.card.is-feature h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.card p { margin: 0; font-size: .95rem; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-media { display: flex; gap: 10px; margin-top: 10px; font-size: .8rem; opacity: .85; }
.card-media span { display: inline-flex; align-items: center; gap: 4px; }
.empty { padding: 32px; border-radius: 22px; text-align: center; color: var(--muted); }

/* ---------- Events ---------- */
.events { display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 16px; border-radius: 24px; }
.event-date { display: grid; place-items: center; width: 82px; height: 88px; border-radius: 18px; background: var(--btn); color: var(--btn-text); line-height: 1; }
.event-date b { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.event-date span { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.event h3 { font-size: 1.25rem; margin-bottom: 6px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--muted); font-size: .92rem; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Team ---------- */
.patron { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; padding: clamp(22px, 4vw, 40px); border-radius: 30px; margin-bottom: 40px; }
.avatar { position: relative; aspect-ratio: 1; border-radius: 50%; padding: 4px; background: conic-gradient(from 210deg, var(--a1), var(--a2), var(--a3), var(--a1)); }
.avatar img, .avatar .ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg-2); }
.avatar .ph { display: grid; place-items: center; background: var(--bg-2); color: var(--muted); }
.avatar .ph .icon { width: 42%; height: 42%; stroke-width: 1.4; }
.patron .avatar { width: clamp(130px, 18vw, 190px); }
.patron-role { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--a2); }
[data-theme="ivory"] .patron-role { color: var(--a3); }
.patron h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 4px; }
.patron-title { color: var(--muted); margin-bottom: 18px; }
.patron blockquote { margin: 0; padding-left: 18px; border-left: 3px solid var(--a1); font-size: 1.1rem; font-style: italic; }

.team-sub { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.team-sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 40px; }
.member { position: relative; padding: 22px 16px 20px; border-radius: 24px; text-align: center; transition: transform .25s ease, background-color .25s; }
.member:hover { transform: translateY(-4px); background: var(--glass-2); }
.member .avatar { width: min(108px, 80%); margin: 0 auto 14px; }
.member-no { position: absolute; top: 12px; left: 14px; font-size: .75rem; font-weight: 800; color: var(--muted); }
.member-role { margin: 0 0 2px; font-size: .95rem; font-weight: 750; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.member-name { margin: 0; font-size: .95rem; color: var(--muted); }
.team-exec .member .avatar { width: min(84px, 70%); }
.team-exec .member-role { font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 20px; overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 650; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .3s ease; color: var(--a2); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.faq details::details-content { transition: height .35s ease, content-visibility .35s allow-discrete; height: 0; overflow: clip; }
.faq details[open]::details-content { height: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- Join ---------- */
.join {
  position: relative; overflow: hidden; padding: clamp(44px, 8vw, 96px) clamp(22px, 5vw, 60px); border-radius: 36px; text-align: center;
  color: var(--btn-text); background: linear-gradient(120deg, var(--btn1), var(--btn2), var(--btn1)); background-size: 200% 100%;
  animation: sheen 10s ease-in-out infinite alternate;
}
.join::before { content: ""; position: absolute; width: 520px; height: 520px; top: -260px; right: -140px; border-radius: 50%; border: 1px solid currentColor; opacity: .25; box-shadow: 0 0 0 60px rgba(255, 255, 255, .04), 0 0 0 120px rgba(255, 255, 255, .03); }
.join h2 { position: relative; font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin-bottom: 18px; }
.join > p:not(.motto-pill) { position: relative; max-width: 46ch; margin: 0 auto 28px; font-size: 1.1rem; opacity: .9; }
.motto-pill { position: relative; display: inline-block; margin: 0 0 22px; padding: 8px 18px; border-radius: 999px; border: 1px solid currentColor; font-size: .78rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
.join .btn { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: inherit; }
.join .btn:first-child { background: var(--btn-text); color: var(--btn1); border-color: transparent; }

/* ---------- Contact ---------- */
.contact-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.c-tile { padding: 24px; border-radius: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.c-wide { grid-column: span 2; }
.c-label { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.c-label .icon { color: var(--a2); width: 1.3em; height: 1.3em; }
[data-theme="ivory"] .c-label .icon { color: var(--a3); }
.c-value { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
a.c-value:hover { text-decoration: underline; text-underline-offset: 4px; }
.c-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.c-note { margin: 0; color: var(--muted); font-size: .95rem; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass-2); }
.socials a:hover { background: var(--btn); color: var(--btn-text); }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(80px, 11vw, 140px); padding: 0 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
.wordmark { margin: 18px 0 8px; font-size: clamp(3.4rem, 15vw, 12.5rem); font-weight: 900; letter-spacing: -.06em; line-height: .9; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--line); background: var(--grad); -webkit-background-clip: text; background-clip: text; opacity: .9; }
@supports (-webkit-text-stroke: 1px red) { .wordmark { background: none; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--text) 25%, transparent); } }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; color: var(--muted); font-size: .95rem; }
.footer-row strong { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.footer-links a { padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.footer-links a:hover { background: var(--glass-2); color: var(--text); }
.to-top { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); }
.copy { margin: 18px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Story viewer ---------- */
.story {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--text);
  display: none; grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr);
}
.story[open] { display: grid; animation: pop .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: scale(.98); } }
.story::backdrop { background: rgba(0, 0, 0, .8); }
.story-media { position: relative; background: #000; overflow: hidden; min-height: 0; }
.story-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bars { position: absolute; z-index: 3; top: 14px; left: 14px; right: 14px; display: flex; gap: 5px; }
.bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.bars i { display: block; height: 100%; width: 0; background: #fff; }
.bars .done i { width: 100%; }
.bars .on i { animation: fill var(--dur, 6s) linear forwards; }
.story.is-paused .bars .on i { animation-play-state: paused; }
.story.is-still .bars .on i { animation: none; width: 100%; }
@keyframes fill { to { width: 100%; } }
.tap { position: absolute; z-index: 2; top: 0; bottom: 0; width: 35%; border: 0; background: transparent; cursor: pointer; }
.tap-prev { left: 0; } .tap-next { right: 0; }
.tap[hidden] { display: none; }
.story-ctrl { position: absolute; z-index: 3; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; color: #fff; }
.count { font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); }
.round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .45); color: #fff; }
.story-body { position: relative; overflow-y: auto; padding: 72px clamp(22px, 3vw, 44px) 32px; background: var(--bg-2); }
.story-close { position: absolute; top: 16px; right: 16px; background: var(--glass-2); color: var(--text); border-color: var(--line); }
.story-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.story-meta span { padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--glass-2); border: 1px solid var(--line); }
.story h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.story-text p { color: var(--muted); }
.story-text p:first-child { color: var(--text); font-size: 1.1rem; }
.story-videos { display: grid; gap: 12px; margin: 22px 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; width: 100%; border: 0; background: var(--btn); color: var(--btn-text); }
.video-play .video-icon { width: 58px; height: 58px; padding: 16px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.video-play span { font-weight: 700; }
.video-play small { opacity: .8; }
.story-nav { display: flex; justify-content: space-between; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.story-nav .btn[disabled] { opacity: .35; pointer-events: none; }

/* ---------- Reveal ---------- */
.pre-reveal { opacity: 0; transform: translateY(26px); }
.reveal-ready { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .pill a { padding: 8px 9px; font-size: .86rem; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .pill, .join-top { display: none; }
  .dock {
    position: fixed; z-index: 50; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    display: flex; gap: 2px; padding: 6px; border-radius: 24px; width: min(460px, calc(100% - 20px));
    background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  }
  .dock a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 18px; font-size: .68rem; font-weight: 650; color: var(--muted); text-decoration: none; }
  .dock a .icon { width: 22px; height: 22px; }
  .dock a[aria-current] { color: var(--text); background: var(--glass-2); }
  .dock a[aria-current] .icon { color: var(--a2); }
  body { padding-bottom: 90px; }

  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "title title" "photo logo" "photo motto" "next next" "stats stats"; }
  .t-title { min-height: 0; }
  .t-photo { min-height: 380px; }
  .purpose, .about-grid { grid-template-columns: 1fr; }
  .programs { grid-template-columns: repeat(2, 1fr); }
  .act-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .contact-bento { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; grid-template-rows: 52dvh minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .top { top: 8px; width: calc(100% - 16px); }
  .brand small { display: none; }
  .hero { padding-top: 80px; }
  .bento { gap: 10px; grid-template-areas: "title title" "logo motto" "photo photo" "next next" "stats stats"; }
  .t-title { padding: 24px 22px 26px; }
  .mega { margin-top: 28px; }
  .t-photo { min-height: 0; aspect-ratio: 4 / 3.4; }
  .t-logo, .t-motto { padding: 16px; }
  .ticker { font-size: 1.85rem; }
  .motto-line { font-size: .62rem; letter-spacing: .14em; }
  .t-next { grid-template-columns: 1fr; padding: 22px; }
  .cd { grid-column: 1; grid-row: auto; margin-top: 16px; }
  .cd div { min-width: 0; flex: 1; }
  .cd b { font-size: 1.6rem; }
  .t-stats { padding: 22px 18px; }
  .t-stats span { font-size: .78rem; }
  .programs { grid-template-columns: 1fr; }
  .act-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .card.is-feature { grid-column: auto; grid-row: span 1; }
  .event { grid-template-columns: auto 1fr; gap: 14px; }
  .event .btn { grid-column: 1 / -1; }
  .event-date { width: 68px; height: 74px; }
  .patron { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .patron blockquote { border-left: 0; padding: 14px 0 0; border-top: 3px solid var(--a1); }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .team-committee .member:first-child { grid-column: 1 / -1; }
  .contact-bento { grid-template-columns: 1fr; }
  .c-wide { grid-column: auto; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker span { animation: none; }
  .statement .w { opacity: 1 !important; }
}

/* Event link button (optional "Link" on an upcoming event) */
.t-next .next-actions { grid-column: 1 / -1; justify-self: start; align-self: end; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.t-next .next-actions .btn-small { margin-top: 0; }
.btn-small.btn-glow { background: var(--btn); color: var(--btn-text); border-color: transparent; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 760px) {
  .event .event-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
