/* Shared styles for the site navigation and the inner content pages.
   Complements the precompiled utility stylesheet (styles.css). */

:root {
    --navy: #0B2046;
    --teal: #007A78;
    --gold: #C49132;
    --ink: #0f172a;
    --muted: #4b5563;
    --line: #e5e7eb;
}

body { background-color: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.kicker { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--gold); }
.bg-grid { background-image: radial-gradient(#e2e8f0 1px, transparent 1px); background-size: 30px 30px; }
.glass-panel { background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gradient-text { color: transparent; background-image: linear-gradient(to right, var(--teal), var(--navy)); -webkit-background-clip: text; background-clip: text; }

/* ---------- Site navigation ---------- */
.site-nav { position: relative; z-index: 10; width: 100%; padding: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.site-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.site-brand img { height: 2.5rem; width: 2.5rem; object-fit: contain; }
.site-brand span { font-size: 1.25rem; font-weight: 700; letter-spacing: .1em; color: var(--navy); }
.site-links { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-links a { display: block; padding: .5rem .85rem; border-radius: 9999px; font-size: .875rem; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; }
.site-links a:hover { color: var(--navy); background: rgba(11, 32, 70, .06); }
.site-links a[aria-current="page"] { color: var(--teal); background: rgba(0, 122, 120, .1); }
.site-links a.nav-cta { color: #fff; background: var(--navy); margin-left: .25rem; }
.site-links a.nav-cta:hover { background: rgba(11, 32, 70, .9); }
@media (min-width: 1024px) { .site-nav { padding-left: 3rem; padding-right: 3rem; } }
@media (max-width: 639px) { .site-links { width: 100%; } .site-links a { padding: .45rem .7rem; font-size: .8125rem; } }

/* ---------- Page layout ---------- */
.page-wrap { position: relative; z-index: 10; width: 100%; max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.page-narrow { max-width: 48rem; }
@media (min-width: 1024px) { .page-wrap { padding: 4.5rem 3rem 7rem; } }

.page-title { font-size: 2.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; color: var(--navy); margin: 1rem 0 1.5rem; }
@media (min-width: 1024px) { .page-title { font-size: 3.75rem; } }
.lead { font-size: 1.2rem; line-height: 1.7; color: var(--muted); }
.section-title { font-size: 1.75rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin: .75rem 0 1rem; }
@media (min-width: 1024px) { .section-title { font-size: 2.25rem; } }
.prose p { font-size: 1.075rem; line-height: 1.8; color: #374151; margin: 0 0 1.25rem; }
.prose strong { color: var(--navy); }
.pull-quote { border-left: 4px solid var(--gold); padding: .25rem 0 .25rem 1.25rem; font-weight: 600; color: #374151; }

.card { position: relative; overflow: hidden; border-radius: 1.5rem; border: 1px solid rgba(255, 255, 255, .5); padding: 2rem; box-shadow: 0 20px 50px rgba(11, 32, 70, .08); }
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--accent, var(--navy)); }
.card h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin: 0 0 .75rem; }
.card p { color: var(--muted); line-height: 1.7; margin: 0; }
.accent-teal { --accent: var(--teal); --accent-soft: rgba(0, 122, 120, .1); }
.accent-gold { --accent: var(--gold); --accent-soft: rgba(196, 145, 50, .12); }
.accent-navy { --accent: var(--navy); --accent-soft: rgba(11, 32, 70, .08); }
.accent-gradient { --accent: linear-gradient(to right, var(--navy), var(--teal), var(--gold)); --accent-soft: rgba(0, 122, 120, .1); }

.icon-badge { width: 3rem; height: 3rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.accent-gradient .icon-badge { color: var(--teal); }
.icon-badge svg { width: 1.5rem; height: 1.5rem; }

.grid-2, .grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-2, .grid-3 { gap: 2rem; } }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: .75rem; font-weight: 700; text-decoration: none; transition: transform .2s, background-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 15px -3px rgba(11, 32, 70, .3); }
.btn-ghost { color: var(--navy); border: 1px solid var(--line); background: #fff; }

/* ---------- Identity page ---------- */
.identity-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .identity-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; } }
.emblem-frame { width: 100%; max-width: 26rem; margin: 0 auto; border-radius: 1.5rem; background: #fff; padding: 1rem; box-shadow: 0 20px 50px rgba(11, 32, 70, .1); }
.emblem-frame img { display: block; width: 100%; height: auto; }
.motto { display: inline-block; margin-top: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); padding: .5rem 1rem; border-top: 2px solid var(--teal); border-bottom: 2px solid var(--gold); }

.symbol-list { display: grid; gap: 1.5rem; margin-top: 3.5rem; }
.symbol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 768px) { .symbol { grid-template-columns: 3rem minmax(0, 1fr); gap: 1.5rem; } .symbol .icon-badge { margin-bottom: 0; } }
.pillars { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { border-radius: 1rem; background: #f8fafc; border: 1px solid var(--line); padding: 1rem; }
.pillar b { display: block; color: var(--navy); font-size: .95rem; margin-bottom: .25rem; }
.pillar span { font-size: .85rem; color: var(--muted); }

/* ---------- Invitation page ---------- */
.letter { position: relative; overflow: hidden; border-radius: 1.5rem; padding: 2rem; box-shadow: 0 20px 50px rgba(11, 32, 70, .1); border: 1px solid rgba(255, 255, 255, .5); }
.letter::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 8px; background: linear-gradient(to right, var(--navy), var(--teal), var(--gold)); }
@media (min-width: 640px) { .letter { padding: 3rem; } }
.alignment { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .75rem; }
.alignment li { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: 1rem; background: #f8fafc; border: 1px solid var(--line); color: #374151; line-height: 1.6; }
.alignment li::before { content: ""; flex-shrink: 0; width: .65rem; height: .65rem; margin-top: .45rem; border-radius: 9999px; background: var(--accent, var(--teal)); }
.alignment strong { color: var(--navy); }
.event-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin: 2rem 0; padding: 1.5rem; border-radius: 1.25rem; background: var(--navy); color: #fff; }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 4.5rem; height: 4.5rem; border-radius: 1rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.event-date small { font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: var(--gold); }
.event-date b { font-size: 1.75rem; line-height: 1; }
.event-banner p { margin: 0; color: rgba(255, 255, 255, .85); }
.event-banner p strong { color: #fff; display: block; font-size: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tags span { font-size: .8rem; font-weight: 600; color: var(--teal); background: rgba(0, 122, 120, .08); padding: .35rem .75rem; border-radius: 9999px; }

/* ---------- Members page ---------- */
.jump-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.jump-links a { font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--navy); background: #fff; border: 1px solid var(--line); padding: .5rem 1rem; border-radius: 9999px; transition: border-color .2s; }
.jump-links a:hover { border-color: var(--teal); }
.profile { scroll-margin-top: 2rem; margin-top: 3.5rem; }
.profile-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.profile-head .icon-badge { margin-bottom: 0; }
.profile-head h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin: 0; }
.profile-head .role-tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.profile-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 1024px) { .profile-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; } }
.profile-facts { display: grid; gap: 1.25rem; }
.fact h4, .roles h4 { margin: 0 0 .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact p { color: #374151; line-height: 1.7; margin: 0; }
.titles { display: flex; flex-wrap: wrap; gap: .5rem; }
.titles span { font-size: .85rem; font-weight: 600; color: var(--navy); background: var(--accent-soft); padding: .35rem .75rem; border-radius: .6rem; }
.roles ul { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: 1rem; }
.roles li { border-left: 3px solid var(--accent); padding-left: 1rem; }
.roles li b { display: block; color: var(--navy); margin-bottom: .2rem; }
.roles li span { color: var(--muted); line-height: 1.65; font-size: .95rem; }

/* ---------- Closing CTA + footer ---------- */
.cta-band { margin-top: 4rem; border-radius: 1.5rem; background: var(--navy); color: #fff; padding: 2.5rem 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; overflow: hidden; }
.cta-band h2 { margin: 0 0 .35rem; font-size: 1.5rem; font-weight: 800; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .75); }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.site-footer { position: relative; z-index: 10; padding: 2rem 1.5rem; border-top: 1px solid #f3f4f6; text-align: center; background: #fff; margin-top: auto; }
.site-footer p { margin: 0; font-size: .875rem; color: #6b7280; font-weight: 500; }
/* The gradient accent can't be used as a text or border color, so fall back to teal there. */
.accent-gradient .role-tag { color: var(--teal); }
.accent-gradient .roles li { border-left-color: var(--teal); }

/* ---------- Sticky section navigation (About + Join Us) ---------- */
html { scroll-padding-top: 6rem; }
@media (max-width: 1023px) { html { scroll-padding-top: 8rem; } }
.site-nav.is-sticky { position: sticky; top: 0; z-index: 50; padding-top: 1rem; padding-bottom: 1rem; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(229, 231, 235, .7); }
.site-nav.is-sticky .site-links a[aria-current="true"] { color: var(--teal); background: rgba(0, 122, 120, .1); }
.site-nav.is-sticky .site-links a.nav-cta[aria-current="page"] { color: #fff; background: var(--teal); }
@media (max-width: 1023px) {
    .site-nav.is-sticky .site-links { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .site-nav.is-sticky .site-links::-webkit-scrollbar { display: none; }
    .site-nav.is-sticky .site-links a { white-space: nowrap; }
}

/* ---------- Landing page ---------- */
.landing { position: relative; z-index: 10; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 1.5rem; }
.landing-logo { width: 9rem; height: auto; mix-blend-mode: multiply; animation: landing-rise .9s ease-out both; }
@media (min-width: 768px) { .landing-logo { width: 12rem; } }
.landing-tagline { margin: 2.5rem 0 0; font-size: 2.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; color: var(--navy); animation: landing-rise .9s .15s ease-out both; }
@media (min-width: 768px) { .landing-tagline { font-size: 4rem; } }
.landing .btn { margin-top: 2.5rem; font-size: 1.05rem; padding: 1rem 2rem; animation: landing-rise .9s .3s ease-out both; }
@keyframes landing-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .landing-logo, .landing-tagline, .landing .btn, .intro-video { animation: none; } }

/* ---------- Intro video ---------- */
.intro-video { position: relative; width: 100%; max-width: 52rem; margin: 2.5rem auto 0; padding: 6px; border-radius: 1.5rem; background: linear-gradient(to right, var(--navy), var(--teal), var(--gold)); box-shadow: 0 25px 60px rgba(11, 32, 70, .18); animation: landing-rise .9s .25s ease-out both; }
/* translateZ keeps Safari from rendering the embedded video black inside the rounded clip. */
.intro-video-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 1.15rem; background: #000; -webkit-transform: translateZ(0); transform: translateZ(0); }
.intro-video-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.intro-video-cover { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--navy); color: #fff; font: inherit; }
.intro-video-cover[hidden] { display: none; }
.intro-video-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.intro-video-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 32, 70, .7), rgba(11, 32, 70, .15) 55%, rgba(11, 32, 70, .05)); }
.intro-video-cover:hover img { transform: scale(1.03); }
.intro-video-play { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 4.75rem; height: 4.75rem; border-radius: 9999px; background: var(--navy); color: #fff; box-shadow: 0 0 0 6px rgba(196, 145, 50, .85), 0 15px 35px rgba(11, 32, 70, .45); transition: transform .25s ease, background-color .25s; }
.intro-video-play svg { margin-left: 4px; }
.intro-video-cover:hover .intro-video-play, .intro-video-cover:focus-visible .intro-video-play { transform: scale(1.08); background: var(--teal); }
.intro-video-cover:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.intro-video-label { position: relative; z-index: 1; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
@media (max-width: 639px) { .intro-video { padding: 4px; border-radius: 1.1rem; } .intro-video-stage { border-radius: .85rem; } .intro-video-play { width: 3.75rem; height: 3.75rem; } }

/* Branded poster (no thumbnail image): the site's light dot-grid with teal and gold glows. */
.intro-video-cover.is-branded { color: var(--navy); background-color: #f8fafc; background-image: radial-gradient(circle at 85% 15%, rgba(0, 122, 120, .16), transparent 45%), radial-gradient(circle at 10% 90%, rgba(196, 145, 50, .16), transparent 45%), radial-gradient(#e2e8f0 1px, transparent 1px); background-size: auto, auto, 30px 30px; }
.intro-video-cover.is-branded::after { display: none; }
.intro-video-cover.is-branded:hover .intro-video-emblem { transform: none; }
.intro-video-cover .intro-video-emblem { position: absolute; inset: auto; top: 1.25rem; left: 1.5rem; z-index: 1; width: 3rem; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.intro-video-title { position: absolute; top: 1.25rem; left: 5rem; right: 1.5rem; z-index: 1; display: flex; align-items: center; min-height: 3.2rem; font-size: 1rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-align: left; }
.intro-video-cover.is-branded .intro-video-label { color: var(--teal); text-shadow: none; }
@media (max-width: 639px) { .intro-video-cover .intro-video-emblem { top: .75rem; left: .9rem; width: 2rem; } .intro-video-title { top: .75rem; left: 3.4rem; min-height: 2.15rem; font-size: .7rem; } .intro-video-cover.is-branded { gap: .6rem; } }

/* ---------- Join Us page ---------- */
.member-pitch { max-width: 52rem; margin: 0 auto 4rem; }
.member-pitch .intro-video { margin-top: 2rem; }

/* ---------- Research page ---------- */
.study-meta { display: grid; gap: .75rem; margin: 2rem 0 0; padding: 1.25rem 1.5rem; border-radius: 1.25rem; background: #f8fafc; border: 1px solid var(--line); }
@media (min-width: 640px) { .study-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.study-meta dt { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.study-meta dd { margin: 0; font-size: .95rem; font-weight: 600; color: var(--navy); line-height: 1.5; }
.study-quote { position: relative; overflow: hidden; margin: 3.5rem 0 0; border-radius: 1.5rem; background: var(--navy); color: #fff; padding: 2.5rem 2rem; }
.study-quote::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(to right, var(--teal), var(--gold)); }
@media (min-width: 1024px) { .study-quote { padding: 3.5rem 4rem; } }
.study-quote blockquote { margin: 0; font-size: 1.5rem; line-height: 1.4; font-weight: 700; max-width: 56rem; }
@media (min-width: 1024px) { .study-quote blockquote { font-size: 2.1rem; } }
.study-quote figcaption { margin-top: 1.5rem; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.study-quote figcaption strong { display: block; color: var(--gold); font-size: 1rem; margin-bottom: .15rem; }
.study-section { margin-top: 4.5rem; }
.study-grid { margin-top: 2.5rem; }
.source-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; }
.source-list li { padding: 1rem 1.25rem; border-radius: 1rem; background: #fff; border: 1px solid var(--line); transition: border-color .2s; }
.source-list li:hover { border-color: var(--teal); }
.source-list a { display: block; font-weight: 700; color: var(--navy); text-decoration: none; }
.source-list a:hover { color: var(--teal); text-decoration: underline; }
.source-list span { display: block; margin-top: .2rem; font-size: .85rem; color: var(--muted); }
