/* ==========================================================================
   ABILITIES LLC — Modern Sans, Navy Hero
   Clean white body, navy backgrounds on hero/header strips, gold + yellow accents.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- Tokens ---------- */
:root {
    /* Brand */
    --navy: #001f3f;
    --navy-deep: #00152b;
    --navy-soft: #2e3b52;
    --gold: #d4af37;
    --gold-deep: #b8901f;
    --yellow: #ffd23f;          /* bright accent */
    --yellow-soft: #fff4c2;     /* tinted highlight */

    /* Neutrals */
    --white: #ffffff;
    --bg: #ffffff;
    --bg-alt: #f5f7fa;          /* light gray section */
    --bg-card: #ffffff;
    --ink: #1a1a1a;
    --ink-soft: #4a4a4a;
    --ink-muted: #6b7280;
    --rule: #e5e7eb;

    /* Type */
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --max: 1240px;
    --max-narrow: 760px;
    --max-wide: 1440px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --radius: 14px;
    --radius-lg: 22px;

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typography (sans-serif throughout) ---------- */
h1, h2, h3, h4 {
    font-family: var(--sans);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.022em;
    color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 600; }
h4 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-soft); }

p { margin-bottom: 1.1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.lede {
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    line-height: 1.55;
    color: var(--ink-soft);
    font-weight: 400;
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.alt-bg { background: var(--bg-alt); }

/* ---------- Navigation ---------- */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 0.85rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--navy);
}

.brand img {
    height: 96px;
    width: auto;
    object-fit: contain;
    /* Logo is a JPG with a white background — multiply blends it cleanly into white navbar */
    mix-blend-mode: multiply;
}

/* Footer uses text-only brand because the JPG logo's white background would clash with navy footer */
.brand-text {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--white);
    line-height: 1;
}

.brand-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-top: 0.4rem;
}

@media (max-width: 720px) {
    .brand img { height: 72px; }
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy-soft);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.25s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav-link:hover { color: var(--navy); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--navy); font-weight: 600; }

.nav-portal {
    background: var(--navy);
    color: var(--white);
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s var(--ease);
}
.nav-portal:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-1px);
}
.nav-portal::after { display: none; }

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    transition: all 0.25s var(--ease);
    letter-spacing: 0.005em;
    line-height: 1;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 18px rgba(0, 31, 63, 0.18);
}
.btn-primary:hover {
    background: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 31, 63, 0.28);
}

.btn-accent {
    background: var(--yellow);
    color: var(--navy);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 18px rgba(255, 210, 63, 0.4);
}
.btn-accent:hover {
    background: #ffc91a;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 210, 63, 0.5);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}
.btn-gold:hover {
    background: var(--gold-deep);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
}
.btn-ghost:hover {
    background: var(--navy);
    color: var(--white);
}

/* On dark backgrounds */
.on-dark .btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}
.on-dark .btn-ghost:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-arrow::after {
    content: '\2192';
    transition: transform 0.25s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(3px); }

.text-link {
    font-weight: 600;
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.25s var(--ease);
}
.text-link::after { content: '\2192'; transition: transform 0.25s var(--ease); }
.text-link:hover { color: var(--gold-deep); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Hero (Home) — NAVY ---------- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: var(--white);
    padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -8%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 210, 63, 0.18), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    position: relative;
}

.hero .eyebrow { color: var(--yellow); }
.hero .eyebrow::before { background: var(--yellow); }

.hero-text h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}
.hero-text h1 em {
    font-style: normal;
    color: var(--yellow);
    font-weight: 800;
}

.hero-text .lede {
    margin-bottom: 2rem;
    max-width: 38ch;
    color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero .btn-primary {
    background: var(--yellow);
    color: var(--navy);
}
.hero .btn-primary:hover { background: #ffc91a; }

.hero .btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}
.hero .btn-ghost:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.hero-meta {
    display: flex;
    gap: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
}

.hero-meta-item .label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 0.4rem;
}
.hero-meta-item .value {
    font-size: 1.05rem;
    color: var(--white);
    font-weight: 600;
}
.hero-meta-item .value a:hover { color: var(--yellow); }

.hero-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-soft) 100%);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 210, 63, 0.3), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.35), transparent 55%);
}

.hero-visual::after {
    content: '"All people deserve to live within their communities, as independently as possible."';
    position: absolute;
    inset: auto 1.5rem 1.5rem 1.5rem;
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    padding: 1.5rem;
    background: rgba(0, 21, 43, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border-left: 3px solid var(--yellow);
    z-index: 2;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.hero-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--yellow);
    color: var(--navy);
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

/* ---------- Page header (interior pages) — NAVY ---------- */
.page-header {
    background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy) 100%);
    color: var(--white);
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    border-bottom: 4px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 210, 63, 0.13), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header .container { position: relative; }

.page-header .eyebrow {
    color: var(--yellow);
}
.page-header .eyebrow::before { background: var(--yellow); }

.page-header h1 {
    color: var(--white);
    max-width: 18ch;
    margin-bottom: 1.25rem;
}
.page-header h1 em { font-style: normal; color: var(--yellow); font-weight: 800; }

.page-header .lede {
    color: rgba(255, 255, 255, 0.85);
    max-width: 60ch;
}

/* ---------- Editorial sections (story blocks) ---------- */
.story {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.story-aside { position: sticky; top: 100px; }
.story-body p { font-size: 1.05rem; }
.story-body p + p { margin-top: 1.1rem; }

.story-body h3 {
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}
.story-body h3:first-child { margin-top: 0; }

.pull-quote {
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    line-height: 1.4;
    font-weight: 600;
    color: var(--navy);
    border-left: 3px solid var(--yellow);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    max-width: 32ch;
    letter-spacing: -0.01em;
}

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 31, 63, 0.15);
}
.card:hover::before { transform: scaleX(1); }

.card-num {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.card p { font-size: 0.97rem; }

.card-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
    transition: all 0.25s var(--ease);
}
.card-link:hover { color: var(--gold-deep); border-bottom-color: var(--gold-deep); }

/* Featured / accent card */
.card.featured {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.card.featured h3,
.card.featured .card-num { color: var(--yellow); }
.card.featured p { color: rgba(255, 255, 255, 0.85); }
.card.featured .card-link { color: var(--yellow); border-bottom-color: var(--yellow); }
.card.featured::before { background: var(--yellow); transform: scaleX(1); }

/* ---------- Section headings ---------- */
.section-head {
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    max-width: 720px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2 { margin-bottom: 1rem; }
.section-head .lede { color: var(--ink-soft); }

/* ---------- Mission / Quote section — NAVY ---------- */
.mission {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.mission::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 210, 63, 0.08), transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.mission-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.mission .eyebrow {
    color: var(--yellow);
    justify-content: center;
}
.mission .eyebrow::before { background: var(--yellow); }

.mission h2 {
    color: var(--white);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.mission p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0 auto;
}

/* ---------- List with marker ---------- */
.feature-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--ink-soft);
    line-height: 1.65;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 14px;
    height: 14px;
    background: var(--yellow);
    border-radius: 3px;
    transform: rotate(45deg);
}

.feature-list li strong { color: var(--ink); }

/* ---------- Stats band ---------- */
.stats-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.stat {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: none; }

.stat-num {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}
.stat-num em { color: var(--gold-deep); font-style: normal; }

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .stat { border-right: none; border-bottom: 1px solid var(--rule); }
    .stat:last-child { border-bottom: none; }
}

/* ---------- Google Calendar embed ---------- */
.calendar-wrap {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    box-shadow: 0 12px 30px -10px rgba(0, 31, 63, 0.12);
    overflow: hidden;
}

.calendar-wrap iframe {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
    border-radius: calc(var(--radius-lg) - 0.75rem);
}

@media (max-width: 720px) {
    .calendar-wrap iframe { height: 540px; }
}

/* ---------- Facebook feed embed ---------- */
.fb-section {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.fb-embed-wrap {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    box-shadow: 0 12px 30px -10px rgba(0, 31, 63, 0.12);
    overflow: hidden;
}

.fb-embed-wrap iframe {
    display: block;
    width: 100%;
    border: none;
    border-radius: calc(var(--radius-lg) - 0.75rem);
}

@media (max-width: 960px) {
    .fb-section {
        grid-template-columns: 1fr;
    }
    .fb-embed-wrap { max-width: 500px; margin: 0 auto; }
}

/* ---------- Wage table ---------- */
.wage-table {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.wage-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--rule);
}
.wage-row:last-child { border-bottom: none; }

.wage-row .role {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
}
.wage-row .role small {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ink-muted);
    margin-top: 0.2rem;
}

.wage-row .pay {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-deep);
    white-space: nowrap;
}

.wage-note {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--ink-muted);
    text-align: center;
}

/* ---------- Highlight panel ---------- */
.panel {
    background: var(--yellow-soft);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid #f0e3a8;
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: var(--gold);
}

.panel h3 { margin-bottom: 0.75rem; }

/* ---------- CTA band — NAVY ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
    padding: clamp(3rem, 7vw, 5rem) 0;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 210, 63, 0.15), transparent 60%);
    border-radius: 50%;
}

.cta-band-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: 1rem;
}
.cta-band h2 em { color: var(--yellow); font-style: normal; font-weight: 700; }

.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.cta-band-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cta-band .btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}
.cta-band .btn-ghost:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

/* ---------- Events ---------- */
.event-list {
    display: grid;
    gap: 1.25rem;
}

.event-card {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 2rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    transition: all 0.3s var(--ease);
}

.event-card:hover {
    border-color: var(--gold);
    transform: translateX(4px);
    box-shadow: 0 12px 30px -10px rgba(0, 31, 63, 0.12);
}

.event-date {
    text-align: center;
    border-right: 1px solid var(--rule);
    padding-right: 2rem;
}

.event-date .month {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.25rem;
}

.event-date .day {
    font-size: 2.6rem;
    color: var(--navy);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.event-date .year {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-top: 0.25rem;
    font-weight: 500;
}

.event-info h3 {
    margin-bottom: 0.4rem;
    font-size: 1.25rem;
}

.event-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--ink-muted);
    margin-top: 0.4rem;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.event-tag {
    display: inline-block;
    background: var(--yellow-soft);
    color: var(--gold-deep);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.event-tag.community { background: #e6f1f5; color: #1a5168; }
.event-tag.fundraiser { background: var(--yellow-soft); color: var(--gold-deep); }

.event-cta { align-self: center; }

/* ---------- Featured event ---------- */
.event-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--bg-card);
}

.event-featured-visual {
    background: linear-gradient(135deg, var(--navy), var(--navy-soft));
    min-height: 360px;
    position: relative;
    overflow: hidden;
}
.event-featured-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 210, 63, 0.3), transparent 55%),
        radial-gradient(circle at 30% 80%, rgba(212, 175, 55, 0.2), transparent 55%);
}
.event-featured-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.event-featured-body {
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-featured-body h2 { margin-bottom: 1rem; }

.event-featured-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: var(--navy-soft);
    font-weight: 500;
}

/* ---------- Careers — positions ---------- */
.position-list {
    display: grid;
    gap: 1rem;
}

.position {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    transition: all 0.25s var(--ease);
}

.position:hover {
    border-color: var(--gold);
    background: #fafbfd;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -10px rgba(0, 31, 63, 0.12);
}

.position h3 { margin-bottom: 0.35rem; font-size: 1.2rem; }

.position-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--ink-muted);
}
.position-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.position-meta .dot { color: var(--gold); }

/* ---------- Handbook reading layout ---------- */
.handbook-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    padding: clamp(3rem, 6vw, 5rem) var(--gutter);
    max-width: var(--max);
    margin: 0 auto;
}

.handbook-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 0.5rem;
    border-right: 1px solid var(--rule);
}

.handbook-toc h4 {
    color: var(--gold-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.handbook-toc ol {
    list-style: none;
    counter-reset: toc;
    display: grid;
    gap: 0.45rem;
    padding-bottom: 1.5rem;
}

.handbook-toc li {
    line-height: 1.4;
}

.handbook-toc a {
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s var(--ease);
    display: block;
    padding: 0.25rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
}

.handbook-toc a:hover,
.handbook-toc a.active {
    color: var(--navy);
    border-left-color: var(--gold);
}

.handbook-toc .toc-chapter {
    font-weight: 700;
    color: var(--navy);
    margin-top: 0.6rem;
    padding-top: 0.5rem;
}
.handbook-toc .toc-chapter:first-child { margin-top: 0; padding-top: 0; }

.handbook-content {
    max-width: 760px;
    line-height: 1.7;
}

.handbook-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-top: 2rem;
    border-top: 2px solid var(--rule);
    scroll-margin-top: 90px;
}
.handbook-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.handbook-content h3 {
    font-size: 1.4rem;
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    color: var(--navy);
    scroll-margin-top: 90px;
}

.handbook-content h4 {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    color: var(--navy);
}

.handbook-content p {
    margin-bottom: 1rem;
    color: var(--ink-soft);
}

.handbook-content ul:not(.feature-list),
.handbook-content ol {
    margin: 0.5rem 0 1.25rem 1.5rem;
    color: var(--ink-soft);
}

.handbook-content ul:not(.feature-list) li,
.handbook-content ol li {
    margin-bottom: 0.4rem;
    line-height: 1.65;
}

.handbook-content .feature-list {
    margin: 1rem 0 1.5rem;
}

.policy-block {
    margin: 2.5rem 0;
    padding-top: 1rem;
    scroll-margin-top: 90px;
}

.policy-num {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-deep);
    background: var(--yellow-soft);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.handbook-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}

.handbook-table th,
.handbook-table td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

.handbook-table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--navy);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.handbook-table tr:last-child td { border-bottom: none; }
.handbook-table tr:nth-child(even) td { background: rgba(245, 247, 250, 0.5); }

.handbook-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--yellow);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.2s var(--ease);
}
.handbook-back::before { content: '\2190'; }
.handbook-back:hover { color: var(--white); }

@media (max-width: 960px) {
    .handbook-layout {
        grid-template-columns: 1fr;
    }
    .handbook-toc {
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--rule);
        padding-bottom: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* ---------- Auth gate (when not signed in) ---------- */
.auth-gate {
    position: fixed;
    inset: 0;
    background: rgba(0, 21, 43, 0.92);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
}

.auth-gate-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3rem);
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.auth-gate-card h2 { margin-bottom: 0.75rem; }
.auth-gate-card p { margin-bottom: 1.5rem; }

/* Blur handbook content until authenticated (handbook pages only — protected by inline auth-check redirect) */
body.auth-required:not(.auth-ok) .handbook-layout {
    filter: blur(12px) saturate(0.5);
    pointer-events: none;
    user-select: none;
}

/* Sign-in success state for portal */
.signed-in-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--yellow-soft);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    flex-wrap: wrap;
}
body.auth-ok .signed-in-banner { display: flex; }

.signed-in-banner strong { color: var(--navy); }

.sign-out-btn {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}

/* Hide sign-in card when authenticated */
body.auth-ok .sign-in-block { display: none; }

/* Lock badge on handbook links when not signed in */
body.auth-required:not(.auth-ok) .card-link[data-locked][data-handbook-ready] {
    color: var(--ink-muted);
    border-bottom-color: var(--ink-muted);
    pointer-events: none;
}
body.auth-required:not(.auth-ok) .card-link[data-locked][data-handbook-ready]::before {
    content: '\1F512  ';
}

/* "Coming soon" badge on handbook links that aren't built yet */
.card-link[data-handbook]:not([data-handbook-ready]) {
    color: var(--ink-muted);
    border-bottom: 1px dashed var(--ink-muted);
    pointer-events: none;
    font-style: italic;
}

/* ---------- Staff portal ---------- */
.portal-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
    padding: clamp(4rem, 9vw, 7rem) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.portal-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 210, 63, 0.13), transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.portal-hero .container { position: relative; }
.portal-hero .eyebrow { color: var(--yellow); justify-content: center; }
.portal-hero .eyebrow::before { background: var(--yellow); }
.portal-hero h1 { color: var(--white); margin-bottom: 1rem; }
.portal-hero h1 em { color: var(--yellow); font-style: normal; font-weight: 800; }
.portal-hero .lede { color: rgba(255, 255, 255, 0.85); max-width: 50ch; margin: 0 auto 2rem; }

.portal-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--rule);
    padding: clamp(2rem, 5vw, 3.5rem);
    max-width: 520px;
    margin: -4rem auto 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 30px 60px -20px rgba(0, 31, 63, 0.25);
    text-align: center;
}

.portal-card .eyebrow { justify-content: center; }
.portal-card h2 { margin-bottom: 0.75rem; font-size: 1.6rem; }
.portal-card p { margin-bottom: 1.5rem; }

.portal-coming {
    background: var(--yellow-soft);
    border-radius: var(--radius);
    padding: 1.25rem;
    border-left: 4px solid var(--gold);
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}
.portal-coming strong { color: var(--navy); display: block; margin-bottom: 0.25rem; }

.portal-form {
    display: grid;
    gap: 1rem;
    text-align: left;
}

.portal-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
    display: block;
}

.portal-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--rule);
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    background: var(--white);
    transition: border-color 0.2s var(--ease);
}
.portal-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.portal-form input:disabled { opacity: 0.7; cursor: not-allowed; }
.portal-form .btn { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 36ch;
}

.footer h4 {
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer ul {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s var(--ease);
    font-size: 0.95rem;
}
.footer a:hover { color: var(--yellow); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual {
        aspect-ratio: 16 / 11;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .story { grid-template-columns: 1fr; }
    .story-aside { position: static; }

    .cta-band-content { grid-template-columns: 1fr; }
    .cta-band-actions { justify-content: flex-start; }

    .event-featured { grid-template-columns: 1fr; }
    .event-featured-visual { min-height: 240px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem var(--gutter);
        gap: 0.5rem;
        border-bottom: 1px solid var(--rule);
        box-shadow: 0 12px 30px -10px rgba(0, 31, 63, 0.15);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    }
    .nav-menu.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-menu li { width: 100%; }
    .nav-link { display: block; padding: 0.75rem 0; }
    .nav-portal { width: 100%; text-align: center; margin-top: 0.5rem; }

    .event-card { grid-template-columns: 100px 1fr; }
    .event-card .event-cta { grid-column: 1 / -1; }
    .event-date { padding-right: 1rem; }
    .event-date .day { font-size: 2rem; }

    .position { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero-meta { gap: 1.5rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
