/* =====================================================================
   NCFE website — public styles
   Colours come from Admin > Settings > Logo & colours (--brand, --accent)
   ===================================================================== */
@view-transition { navigation: auto; }

:root {
    --brand: #138913;
    --accent: #f2b632;
    --brand-ink: color-mix(in oklab, var(--brand) 55%, #06160c);
    --brand-deep: color-mix(in oklab, var(--brand) 35%, #071a10);
    --brand-soft: color-mix(in oklab, var(--brand) 10%, #fff);
    --brand-tint: color-mix(in oklab, var(--brand) 5%, #f6f8f4);
    --ink: #10241a;
    --ink-2: #3d4f45;
    --ink-3: #6b7b72;
    --line: #dfe6e0;
    --paper: #ffffff;
    --mist: #f2f6f1;
    --danger: #b42318;
    --ok: #13734a;

    --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;

    --r-lg: 22px;
    --r-md: 14px;
    --r-sm: 9px;
    --shadow-1: 0 1px 2px rgb(16 36 26 / .06), 0 2px 8px rgb(16 36 26 / .05);
    --shadow-2: 0 10px 30px -12px rgb(16 36 26 / .25);
    --wrap: 1200px;
    --header-h: 76px;
    --tab-h: 64px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --ease: cubic-bezier(.2, .8, .2, 1);

    --weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='24' viewBox='0 0 40 24'%3E%3Cg fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M0 12 10 2l10 10 10-10 10 10M0 24l10-10 10 10 10-10 10 10'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font: 400 1rem/1.6 var(--f-body);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--accent) 80%, #000); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; font-weight: 650; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 780px); }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }

.display-1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
.display-2 { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.35rem); font-weight: 800; letter-spacing: -.02em; }
.display-3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 650; }
.label { color: var(--brand); font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
    font-weight: 650; font-size: .98rem; text-decoration: none; line-height: 1.1; white-space: nowrap;
    transition: transform .15s var(--ease), background .2s, color .2s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-ink); color: #fff; }
.btn-accent { background: var(--accent); color: #1d1500; }
.btn-accent:hover { background: color-mix(in oklab, var(--accent) 85%, #000); color: #1d1500; }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-ghost-light { border-color: rgb(255 255 255 / .45); color: #fff; }
.btn-ghost-light:hover { background: rgb(255 255 255 / .12); color: #fff; }
.icon-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent;
    display: inline-grid; place-items: center; font-size: 1.05rem; color: var(--ink);
}
.icon-btn:hover { background: var(--mist); }
.round-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
    display: inline-grid; place-items: center; color: var(--ink); text-decoration: none;
}
.round-btn:hover { border-color: var(--brand); color: var(--brand); }
.text-btn { border: 0; background: none; padding: 0; color: var(--brand-ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.link-more { font-weight: 650; text-decoration: none; display: inline-flex; gap: .45rem; align-items: center; white-space: nowrap; }
.link-more i { transition: transform .2s; }
.link-more:hover i { transform: translateX(3px); }

/* ---------- Top bar (desktop) ---------- */
.topbar { background: var(--ink); color: rgb(255 255 255 / .8); font-size: .84rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 40px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.4rem; min-width: 0; }
.topbar a { color: rgb(255 255 255 / .85); text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: var(--accent); }
.topbar i { color: var(--accent); margin-right: .3rem; }
.topbar-addr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .social-row { margin: 0; gap: .25rem; }
.topbar .social-row a { width: 28px; height: 28px; background: transparent; font-size: .82rem; }
.topbar .social-row a i { color: inherit; margin: 0; }
.topbar .social-row a:hover { background: rgb(255 255 255 / .1); }
@media (max-width: 1200px) { .topbar-hours { display: none; } }
@media (max-width: 1020px) { .topbar-addr { display: none; } }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgb(255 255 255 / .92);
    backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
    view-transition-name: site-header;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgb(0 0 0 / .4); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-text strong { font-family: var(--f-display); font-size: 1rem; font-weight: 650; max-width: 17rem; }
.brand-text small { color: var(--ink-3); font-size: .78rem; }
.appbar-title, .appbar-back { display: none; }
.main-nav { display: flex; gap: .1rem; margin-left: auto; }
.main-nav a {
    padding: .5rem .7rem; border-radius: 999px; text-decoration: none; color: var(--ink-2);
    font-weight: 600; font-size: .93rem; white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); background: var(--mist); }
.main-nav a.is-active { color: var(--brand-ink); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: .35rem; }

@media (max-width: 1260px) { .brand-text strong { max-width: 12rem; font-size: .92rem; } }
@media (max-width: 1100px) { .header-cta { display: none; } }

/* ---------- Page hero ---------- */
.page-hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--brand-deep); color: #fff;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.75rem);
}
.page-hero.has-image .page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.8vw, 3.3rem); font-weight: 800; letter-spacing: -.025em; margin: .35rem 0 .4rem; max-width: 20ch; }
.page-hero p { color: rgb(255 255 255 / .82); font-size: 1.1rem; max-width: 60ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .85rem; color: rgb(255 255 255 / .7); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs i { font-size: .6rem; opacity: .6; }

/* The woven pattern (from Swazi basketry) — the site's signature detail */
.weave {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--weave); background-size: 40px 24px; opacity: .09;
    -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
            mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
}
.page-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 28px, transparent 28px 36px);
    opacity: .9;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--brand-tint); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.section-head p { color: var(--ink-2); margin: .25rem 0 0; max-width: 60ch; }
.section-head h2 { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-intro { margin-bottom: 1.5rem; }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--brand-deep); }
.hero-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; scroll-snap-align: start; min-height: clamp(440px, 72vh, 680px); display: flex; align-items: flex-end; isolation: isolate; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-slide::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgb(6 22 12 / .05) 25%, rgb(6 22 12 / .82) 100%),
                linear-gradient(90deg, rgb(6 22 12 / .55), transparent 70%);
}
.hero-copy { color: #fff; padding-bottom: 8.5rem; }
.hero-kicker { font-weight: 600; color: var(--accent); margin-bottom: .5rem; font-size: 1.02rem; }
.hero-title { color: #fff; font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; max-width: 15ch; margin-bottom: .9rem; }
.hero-text { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); max-width: 52ch; color: rgb(255 255 255 / .88); margin-bottom: 1.5rem; }
.hero-controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 4.5rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.hero-controls > * { pointer-events: auto; }
.hero-arrows { display: flex; gap: .5rem; }
.hero-arrows .round-btn { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .35); color: #fff; backdrop-filter: blur(6px); }
.hero-arrows .round-btn:hover { background: #fff; color: var(--ink); }
.dots { display: flex; gap: .4rem; }
.dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: rgb(255 255 255 / .45); transition: width .3s var(--ease), background .3s; }
.dots button[aria-current="true"] { width: 30px; background: var(--accent); }

/* ---------- Quick links ---------- */
.quick {
    position: relative; z-index: 2; margin-top: -2.75rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem;
    background: #fff; border-radius: var(--r-lg); padding: .75rem; box-shadow: var(--shadow-2); border: 1px solid var(--line);
}
.quick-item { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .8rem; padding: .85rem; border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.quick-item:hover { background: var(--brand-tint); color: var(--ink); }
.quick-ico { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.15rem; }
.quick-label { font-weight: 700; line-height: 1.2; }
.quick-desc { font-size: .8rem; color: var(--ink-3); line-height: 1.3; }

/* ---------- Who we are ---------- */
.who { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.who-list { list-style: none; margin: 1.75rem 0 2rem; padding: 0; display: grid; gap: 1.1rem; }
.who-list li { display: grid; grid-template-columns: 42px 1fr; gap: .9rem; align-items: start; }
.who-list strong { display: block; font-size: 1.02rem; }
.who-list span { color: var(--ink-2); font-size: .95rem; }
.who-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.who-figure { margin: 0; position: relative; }
.who-figure img { border-radius: var(--r-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.who-figure::before {
    content: ""; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%; z-index: -1;
    border-radius: var(--r-lg); background: var(--brand) var(--weave); background-size: 40px 24px;
}
.who-figure figcaption {
    position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
    background: rgb(255 255 255 / .92); backdrop-filter: blur(6px); padding: .7rem 1rem; border-radius: var(--r-md);
    font-weight: 600; font-size: .9rem;
}

/* ---------- Stats band ---------- */
.stats-band { position: relative; isolation: isolate; overflow: hidden; background: var(--brand-ink); color: #fff; padding: 2.75rem 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stats div { border-left: 3px solid var(--accent); padding-left: 1rem; }
.stats strong { display: block; font-family: var(--f-display); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; line-height: 1; }
.stats span { color: rgb(255 255 255 / .8); font-size: .92rem; }

/* ---------- Horizontal scroller ---------- */
.scroller {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.25rem) / 4);
    gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; margin: 0 -.25rem;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.scroller > * { scroll-snap-align: start; }
.news-scroller { grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); }

.service-tile {
    position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg);
    border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink);
    transition: border-color .2s, transform .2s var(--ease);
}
.service-tile:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-2px); }
.service-tile img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.service-tile-ico { margin: -24px 0 0 1.1rem; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.15rem; position: relative; border: 3px solid #fff; }
.service-tile h3 { font-size: 1.08rem; margin: .8rem 1.1rem .35rem; }
.service-tile p { font-size: .9rem; color: var(--ink-2); margin: 0 1.1rem 1.2rem; }
.service-tile:not(:has(img)) .service-tile-ico { margin-top: 1.1rem; }

/* ---------- Movement cards ---------- */
.movement { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.move-card { background: var(--mist); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.move-card h3 { font-size: 1.35rem; }
.move-card p { color: var(--ink-2); margin: 0; }
.move-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--brand); font-size: 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow-1); }
.move-card.principles { grid-column: 1 / -1; background: var(--brand-deep); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.move-card.principles::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--weave); background-size: 40px 24px; opacity: .06; }
.move-card.principles h3 { color: #fff; }
.principle-list { list-style: none; counter-reset: p; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .65rem 1.5rem; }
.principle-list li { counter-increment: p; display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-top: 1px solid rgb(255 255 255 / .14); font-weight: 600; }
.principle-list li::before { content: counter(p); font-family: var(--f-display); font-weight: 800; color: var(--accent); min-width: 1.2rem; }
.principle-ico { display: none; }
.check-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .65rem; align-items: baseline; }
.check-list i { color: var(--brand); }
.apex-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.apex-chips a { background: #fff; border-radius: var(--r-md); padding: .6rem .85rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.25; border: 1px solid var(--line); }
.apex-chips a:hover { border-color: var(--brand); }
.apex-chips strong { color: var(--brand-ink); }
.apex-chips small { color: var(--ink-3); font-size: .75rem; }

/* ---------- Members ---------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.member-card { display: grid; grid-template-columns: 76px 1fr; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; }
.member-logo { width: 76px; height: 76px; border-radius: 18px; background: var(--brand-soft); display: grid; place-items: center; overflow: hidden; }
.member-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; background: #fff; }
.member-logo span { font-family: var(--f-display); font-weight: 800; color: var(--brand-ink); font-size: .78rem; text-align: center; letter-spacing: -.02em; white-space: nowrap; padding: 4px; }
.member-body h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.member-body p { font-size: .92rem; color: var(--ink-2); margin: .6rem 0 0; }
.member-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.member-actions a { font-size: .85rem; font-weight: 650; text-decoration: none; padding: .35rem .75rem; border-radius: 999px; background: var(--mist); color: var(--ink); }
.member-actions a:hover { background: var(--brand); color: #fff; }

.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--accent); color: #1d1500; }
.tag-soft { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- News cards ---------- */
.news-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: border-color .2s; }
.news-card:hover { border-color: var(--brand); color: var(--ink); }
.news-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.news-card-img { position: relative; aspect-ratio: 16/10; background: var(--brand-soft); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-img .tag { position: absolute; left: .8rem; top: .8rem; }
.img-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; color: var(--brand); opacity: .5; }
.news-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.news-card-body time { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.news-card-body h3 { font-size: 1.1rem; margin: 0; }
.news-card-body p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.attach-hint { margin-top: auto; padding-top: .5rem; font-size: .8rem; color: var(--brand-ink); font-weight: 600; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.news-lead { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--brand-deep); color: #fff; text-decoration: none; margin-bottom: 1.5rem; }
.news-lead:hover { color: #fff; }
.news-lead-img { position: relative; min-height: 300px; background: var(--brand-ink); }
.news-lead-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-lead-body { padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .4rem; }
.news-lead-body h2 { color: #fff; margin: .5rem 0; }
.news-lead-body p { color: rgb(255 255 255 / .8); }
.news-lead-body time { font-size: .85rem; color: var(--accent); font-weight: 600; }

/* ---------- Article ---------- */
.article-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.article-head .crumbs { color: var(--ink-3); margin-bottom: 1rem; }
.article-head .crumbs a:hover { color: var(--brand); }
.article-dek { font-size: 1.2rem; color: var(--ink-2); }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .88rem; color: var(--ink-3); }
.article-figure { margin: 0 auto 2rem; }
.article-figure img { width: 100%; max-height: 620px; object-fit: contain; background: var(--mist); border-radius: var(--r-lg); }
.article-body { font-size: 1.08rem; }

.prose { color: var(--ink-2); max-width: 72ch; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--brand); }
.prose img { border-radius: var(--r-md); margin: 1rem 0; }
.prose a { color: var(--brand-ink); font-weight: 600; }
.prose blockquote { margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem; border-left: 4px solid var(--accent); color: var(--ink); font-size: 1.1em; }
.lead-prose { font-size: 1.12rem; margin-bottom: 2rem; }

.attachment { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--r-lg); background: var(--brand-tint); border: 1px solid var(--line); margin: 2rem 0; }
.attachment strong { display: block; }
.attachment span { color: var(--ink-3); font-size: .87rem; }
.attachment-ico { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 1.5rem; color: #c0392b; }
.attachment-actions { display: flex; gap: .5rem; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: 1.5rem 0 3rem; border-top: 1px solid var(--line); }
.share > span { font-weight: 700; margin-right: .25rem; }

/* ---------- Toolbar, chips, search fields ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.toolbar h2 { margin: 0; }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
    font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink-2); white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search-field { display: flex; align-items: center; gap: .6rem; background: var(--mist); border-radius: 999px; padding: 0 .5rem 0 1rem; min-width: min(100%, 300px); border: 1.5px solid transparent; }
.search-field:focus-within { border-color: var(--brand); background: #fff; }
.search-field i { color: var(--ink-3); }
.search-field input { border: 0; background: transparent; padding: .75rem 0; font: inherit; width: 100%; outline: 0; }
.search-field.big { padding: .25rem .35rem .25rem 1.25rem; margin-bottom: 2rem; font-size: 1.1rem; }
.count-line { margin: -.75rem 0 1.25rem; font-size: .9rem; }
.pill-nav { display: flex; gap: .5rem; overflow-x: auto; padding: 1.25rem 0 0; scrollbar-width: none; }
.pill-nav a { flex: none; padding: .45rem .9rem; border-radius: 999px; background: var(--mist); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.pill-nav a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.segmented { display: inline-flex; background: var(--mist); padding: 4px; border-radius: 999px; }
.segmented button { border: 0; background: transparent; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 650; color: var(--ink-2); display: inline-flex; gap: .45rem; align-items: center; }
.segmented button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.count { font-size: .75rem; background: var(--brand-soft); color: var(--brand-ink); border-radius: 99px; padding: .05rem .5rem; font-weight: 700; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; }
.pager a { min-width: 44px; height: 44px; padding: 0 .5rem; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 650; }
.pager a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- About ---------- */
.about-flow { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.about-block { display: grid; gap: 2rem; }
.about-block.has-media { grid-template-columns: 1fr 1fr; align-items: center; }
.about-block.has-media:nth-child(even) .about-media { order: -1; }
.about-text { max-width: 70ch; }
.about-block:not(.has-media) .about-text { border-left: 4px solid var(--accent); padding-left: clamp(1rem, 3vw, 2rem); }
.about-media { margin: 0; }
.about-media img { border-radius: var(--r-lg); width: 100%; background: #fff; border: 1px solid var(--line); }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.value { background: #fff; border-radius: var(--r-lg); padding: 1.35rem 1.1rem; text-align: center; border: 1px solid var(--line); }
.value-ico { width: 52px; height: 52px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand); font-size: 1.2rem; }
.value h3 { font-size: 1rem; margin-bottom: .3rem; }
.value p { font-size: .85rem; color: var(--ink-2); margin: 0; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.person { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.person-photo { aspect-ratio: 1; background: var(--brand-soft); display: grid; place-items: center; overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person-initials { font-family: var(--f-display); font-size: 3.2rem; font-weight: 800; color: var(--brand); }
.person-body { padding: 1rem 1.1rem 1.25rem; }
.person-body h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.person-role { color: var(--brand-ink); font-weight: 650; font-size: .9rem; margin: 0; }
.person-dept { color: var(--ink-3); font-size: .82rem; margin: 0; }
.person-bio { font-size: .86rem; color: var(--ink-2); margin: .6rem 0 .3rem; }
.person-contact { display: flex; gap: .4rem; margin-top: .75rem; }
.person-contact a { width: 36px; height: 36px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; color: var(--ink); }
.person-contact a:hover { background: var(--brand); color: #fff; }
.bio-dialog { border: 0; border-radius: var(--r-lg); padding: 2rem; max-width: 640px; width: calc(100% - 2rem); box-shadow: var(--shadow-2); }
.bio-dialog::backdrop { background: rgb(6 22 12 / .55); backdrop-filter: blur(2px); }
.dialog-close { position: absolute; right: .75rem; top: .75rem; }

/* ---------- Services page ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.service { display: grid; grid-template-columns: 220px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.service:target { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.service-media { position: relative; background: var(--brand-soft); min-height: 180px; }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-ico { position: absolute; left: 1rem; bottom: 1rem; width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; border: 3px solid #fff; }
.service-body { padding: 1.4rem 1.5rem; }
.service-body h3 { font-size: 1.2rem; }
.service-body p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- Trainings ---------- */
.event-list { display: grid; gap: 1rem; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.event-date { border-radius: 16px; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .6rem .25rem; line-height: 1.1; align-self: start; }
.event-date span { font-size: .8rem; font-weight: 700; color: var(--accent); }
.event-date strong { font-family: var(--f-display); font-size: 2rem; font-weight: 800; }
.event-date small { font-size: .72rem; opacity: .8; }
.event.is-past .event-date { background: var(--mist); color: var(--ink-2); }
.event.is-past .event-date span { color: var(--ink-3); }
.event-body h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.event-body p { color: var(--ink-2); font-size: .93rem; margin: .6rem 0 0; }
.event-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .88rem; color: var(--ink-2); }
.event-meta i { color: var(--brand); width: 1rem; }
.chip-link { display: inline-flex; gap: .4rem; align-items: center; margin-top: .8rem; font-size: .85rem; font-weight: 650; padding: .4rem .8rem; border-radius: 999px; background: var(--brand-soft); text-decoration: none; }

/* ---------- Library ---------- */
.lib-intro { display: flex; justify-content: space-between; gap: 2rem; align-items: center; margin-bottom: 2rem; padding: 1.5rem clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--brand-tint); border: 1px solid var(--line); }
.lib-intro h2 { margin-bottom: .3rem; }
.lib-intro p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.lib-stats { display: flex; gap: 1.75rem; margin: 0; }
.lib-stats div { text-align: center; }
.lib-stats dt { font-size: .8rem; color: var(--ink-3); }
.lib-stats dd { margin: 0; font-family: var(--f-display); font-size: 2rem; font-weight: 800; color: var(--brand-ink); order: -1; }
.lib-stats div { display: flex; flex-direction: column; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.doc { display: grid; grid-template-columns: 54px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.doc:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); }
.doc-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; background: #fdecea; color: #c0392b; }
.doc-ico.doc-doc, .doc-ico.doc-docx { background: #e8effd; color: #2b5797; }
.doc-ico.doc-xls, .doc-ico.doc-xlsx { background: #e6f4ea; color: #1e7145; }
.doc-body h3 { font-size: 1.03rem; margin: 0 0 .2rem; }
.doc-body p { font-size: .88rem; color: var(--ink-2); margin: 0 0 .35rem; }
.doc-meta { font-size: .8rem; color: var(--ink-3); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.doc-actions { display: flex; gap: .5rem; }
.help-bar { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; padding: 1rem 1.25rem; border-radius: var(--r-lg); background: var(--mist); }
.help-bar i { color: var(--brand); font-size: 1.2rem; }
.help-bar span { flex: 1; min-width: 200px; }

/* ---------- Gallery ---------- */
.masonry { columns: 4 240px; column-gap: 1rem; }
.shot { position: relative; display: block; margin-bottom: 1rem; border-radius: var(--r-md); overflow: hidden; break-inside: avoid; background: var(--mist); }
.shot img { width: 100%; transition: transform .5s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .75rem; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgb(0 0 0 / .7)); opacity: 0; transition: opacity .25s; }
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgb(4 12 8 / .94); display: grid; grid-template-rows: auto 1fr auto; color: #fff; touch-action: pan-y; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; padding-top: max(.75rem, env(safe-area-inset-top)); }
.lightbox-top .icon-btn { color: #fff; }
.lightbox-top .icon-btn:hover { background: rgb(255 255 255 / .12); }
.lightbox-stage { display: grid; place-items: center; min-height: 0; padding: 0 3.5rem; position: relative; }
.lightbox-stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: .75rem; } .lightbox-nav.next { right: .75rem; }
.lightbox-nav .round-btn { background: rgb(255 255 255 / .12); border-color: transparent; color: #fff; }
.lightbox-cap { padding: 1rem 1.25rem calc(1rem + var(--safe-b)); text-align: center; color: rgb(255 255 255 / .85); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.contact-action { display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem; border-radius: var(--r-lg); background: var(--mist); text-decoration: none; color: var(--ink); border: 1.5px solid transparent; }
.contact-action:hover { border-color: var(--brand); color: var(--ink); }
.contact-action > span { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: .5rem; }
.contact-action small { color: var(--ink-3); overflow-wrap: anywhere; font-size: .82rem; }
.contact-details { margin: 1.5rem 0; display: grid; gap: 1rem; }
.contact-details dt { font-weight: 700; font-size: .85rem; color: var(--brand-ink); }
.contact-details dd { margin: 0; color: var(--ink-2); }
.map { width: 100%; height: 260px; border: 0; border-radius: var(--r-lg); margin-bottom: 1rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: var(--shadow-1); scroll-margin-top: calc(var(--header-h) + 16px); }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 650; font-size: .92rem; }
.field .opt { font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; font-size: 16px; padding: .8rem .95rem; border-radius: var(--r-md);
    border: 1.5px solid var(--line); background: #fbfcfa; color: var(--ink); transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.hp { position: absolute !important; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r-md); margin-bottom: 1rem; font-weight: 500; }
.notice ul { margin: 0; padding-left: 1rem; }
.notice-ok { background: #e7f6ee; color: var(--ok); }
.notice-err { background: #fdecea; color: var(--danger); }

/* ---------- Search results ---------- */
.result-group { font-size: 1.1rem; margin: 2rem 0 .75rem; display: flex; gap: .5rem; align-items: center; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.results a { display: grid; grid-template-columns: 42px 1fr auto; gap: .9rem; align-items: center; padding: .85rem 1rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.results a:hover { border-color: var(--brand); }
.results strong { display: block; }
.results small { color: var(--ink-3); font-size: .85rem; }
.results em { font-style: normal; font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.result-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }

/* ---------- Empty / 404 ---------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-3); background: var(--mist); border-radius: var(--r-lg); }
.empty i { font-size: 2rem; color: var(--brand); opacity: .6; margin-bottom: .75rem; }
.empty p { margin: 0 auto; max-width: 44ch; }
.lost { text-align: center; }
.lost-code { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--brand-soft); -webkit-text-stroke: 2px var(--brand); margin-bottom: 1rem; }
.lost .search-field { max-width: 520px; margin: 1.5rem auto; }

/* ---------- CTA ---------- */
.cta { background: var(--brand); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--weave); background-size: 40px 24px; opacity: .1; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.5rem, 6vw, 4rem) 0; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); font-weight: 800; margin-bottom: .3rem; }
.cta p { margin: 0; color: rgb(255 255 255 / .88); max-width: 55ch; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: rgb(255 255 255 / .78); padding-top: 4rem; }
.weave-dark { opacity: .04; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; margin-bottom: 1rem; }
.footer-brand img { background: #fff; border-radius: 14px; padding: 4px; width: 56px; height: 56px; object-fit: contain; }
.footer-brand strong { font-family: var(--f-display); font-size: 1.05rem; font-weight: 650; line-height: 1.25; }
.footer-about p { font-size: .9rem; }
.footer-h { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .92rem; }
.footer-links a, .footer-contact a { color: rgb(255 255 255 / .78); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .4rem; }
.footer-contact i { color: var(--accent); margin-top: .3rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.25rem 0; border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; }
.footer-bottom a { color: #fff; }
.social-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .08); color: #fff; text-decoration: none; }
.social-row a:hover { background: var(--accent); color: var(--ink); }
.contact-side .social-row a, .sheet .social-row a { background: var(--mist); color: var(--ink); }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 120; background: rgb(6 22 12 / .5); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 1rem 0; animation: fade .2s; }
.search-box { width: min(640px, 100%); display: flex; align-items: center; gap: .75rem; background: #fff; border-radius: 20px; padding: .5rem .5rem .5rem 1.25rem; box-shadow: var(--shadow-2); animation: drop .25s var(--ease); }
.search-box i { color: var(--ink-3); }
.search-box input { flex: 1; border: 0; font: inherit; font-size: 1.15rem; padding: .8rem 0; outline: 0; }

/* ---------- Tab bar, sheet, install card (phone app mode) ---------- */
.tabbar, .install-card { display: none; }
.sheet { position: fixed; inset: 0; z-index: 130; }
.sheet-backdrop { position: absolute; inset: 0; background: rgb(6 22 12 / .45); animation: fade .25s; }
.sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 85vh; overflow-y: auto;
    background: #fff; border-radius: 26px 26px 0 0; padding: .5rem 1.25rem calc(1.5rem + var(--safe-b));
    animation: rise .32s var(--ease); touch-action: pan-y;
}
.sheet.is-closing .sheet-panel { animation: sink .22s ease-in forwards; }
.sheet.is-closing .sheet-backdrop { animation: fade .22s reverse forwards; }
.sheet-panel:focus { outline: 0; }
.sheet-handle { width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: .4rem auto 1.1rem; cursor: grab; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.sheet-grid a { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .85rem .25rem; border-radius: 16px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .85rem; text-align: center; }
.sheet-grid a:active, .sheet-grid a.is-active { background: var(--brand-tint); }
.sheet-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; }
.sheet-grid a.is-active .sheet-ico { background: var(--brand); color: #fff; }
.sheet-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .5rem; margin: 1.25rem 0 .5rem; }
.sheet-contact a { display: flex; gap: .45rem; justify-content: center; align-items: center; padding: .75rem; border-radius: 14px; background: var(--mist); color: var(--ink); text-decoration: none; font-weight: 650; font-size: .9rem; }
.sheet .social-row { justify-content: center; }

/* ---------- Chatbot ---------- */
.chat-fab {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 60px; height: 60px; border-radius: 20px; border: 0;
    background: var(--brand); color: #fff; font-size: 1.4rem; box-shadow: 0 10px 24px -8px color-mix(in oklab, var(--brand) 70%, #000);
    display: grid; place-items: center; transition: transform .2s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .badge { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #1d1500; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.chat-win {
    position: fixed; right: 1.25rem; bottom: 6rem; z-index: 140; width: 380px; height: min(600px, calc(100vh - 8rem));
    background: #fff; border-radius: 24px; box-shadow: 0 24px 60px -20px rgb(6 22 12 / .45); border: 1px solid var(--line);
    display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden; animation: drop .25s var(--ease);
}
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; background: var(--brand-deep); color: #fff; position: relative; isolation: isolate; }
.chat-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--weave); background-size: 40px 24px; opacity: .08; }
.chat-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #1d1500; display: grid; place-items: center; }
.chat-head strong { display: block; font-family: var(--f-display); }
.chat-head small { color: rgb(255 255 255 / .7); font-size: .78rem; }
.chat-head .icon-btn { margin-left: auto; color: #fff; }
.chat-head .icon-btn:hover { background: rgb(255 255 255 / .12); }
.chat-log { overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--brand-tint); overscroll-behavior: contain; }
.msg { max-width: 86%; padding: .7rem .9rem; border-radius: 18px; font-size: .93rem; line-height: 1.5; animation: pop .2s var(--ease); }
.msg a { font-weight: 650; }
.msg.bot { background: #fff; border-bottom-left-radius: 6px; align-self: flex-start; box-shadow: var(--shadow-1); }
.msg.me { background: var(--brand); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg.typing { display: flex; gap: 4px; padding: .9rem 1rem; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; } .msg.typing span:nth-child(3) { animation-delay: .3s; }
.chat-contact { display: grid; gap: .4rem; margin-top: .6rem; }
.chat-contact a, .chat-contact span { display: flex; gap: .55rem; align-items: center; font-size: .88rem; padding: .45rem .6rem; background: var(--mist); border-radius: 10px; color: var(--ink); text-decoration: none; }
.chat-suggest { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem .75rem 0; scrollbar-width: none; }
.chat-suggest button { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem .8rem; font-size: .82rem; font-weight: 600; }
.chat-suggest button:hover { border-color: var(--brand); color: var(--brand-ink); }
.chat-form { display: flex; gap: .5rem; padding: .75rem; padding-bottom: calc(.75rem + var(--safe-b)); }
.chat-form input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: .7rem 1rem; font: inherit; font-size: 16px; outline: 0; }
.chat-form input:focus { border-color: var(--brand); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; }


/* ---------- Members directory ---------- */
.dir-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.25rem; }
.dir-stats > div { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--r-lg); background: var(--brand-tint); border: 1px solid var(--line); }
.dir-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.15rem; }
.dir-stats strong { font-family: var(--f-display); font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--brand-ink); }
.dir-stats small { color: var(--ink-3); font-size: .85rem; }
.dir-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.dir-head h2 { margin: 0; }
.dir-controls { display: grid; gap: .9rem; margin-bottom: 1.25rem; }
.dir-controls .search-field { max-width: 520px; }
.dir-controls .count-line { margin: 0; }
.az { display: flex; flex-wrap: wrap; gap: .3rem; }
.az button { min-width: 36px; height: 36px; padding: 0 .55rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.az button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-ink); }
.az button.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.az button:disabled { opacity: .35; cursor: not-allowed; }
.dir-table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dir-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.dir-table th { text-align: left; padding: .85rem 1rem; background: var(--brand-deep); color: #fff; font-weight: 650; font-size: .85rem; }
.dir-table td { padding: 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.dir-table tbody tr:nth-child(even of :not([hidden])) td { background: var(--brand-tint); }
.dir-table tbody tr:target td { background: var(--brand-soft); }
.dir-num { width: 48px; color: var(--ink-3); font-weight: 700; text-align: center; }
.dir-name { min-width: 260px; }
.dir-fed { display: flex; gap: .85rem; align-items: center; }
.dir-logo { flex: none; width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-family: var(--f-display); font-weight: 800; font-size: .68rem; color: var(--brand-ink); letter-spacing: -.02em; }
.dir-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 5px; }
.dir-desc { color: var(--ink-2); max-width: 46ch; }
.dir-contact { white-space: nowrap; }
.dir-contact a { display: flex; gap: .45rem; align-items: center; font-weight: 650; text-decoration: none; padding: .15rem 0; }
@media (max-width: 900px) {
    .dir-stats { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; margin-bottom: 1.5rem; }
    .dir-stats > div { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: .9rem .4rem; gap: .25rem; }
    .dir-ico { grid-row: auto; width: 40px; height: 40px; font-size: 1rem; }
    .dir-stats strong { font-size: 1.2rem; }
    .dir-stats small { font-size: .72rem; line-height: 1.25; }
    .az { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1rem; padding: 2px 1rem; scrollbar-width: none; }
    .az::-webkit-scrollbar { display: none; }
    .az button { flex: none; }
    .dir-controls .chips { margin: 0 -1rem; padding: 2px 1rem; }
    .dir-table-wrap { border: 0; border-radius: 0; overflow: visible; }
    .dir-table thead { display: none; }
    .dir-table, .dir-table tbody { display: block; }
    .dir-table tbody { display: grid; gap: .75rem; }
    .dir-table tr { display: grid; grid-template-columns: 1fr; gap: .5rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
    .dir-table tr[hidden] { display: none; }
    .dir-table td { display: block; padding: 0; border: 0; background: none !important; }
    .dir-num { display: none !important; }
    .dir-name { min-width: 0; }
    .dir-contact.is-empty { display: none !important; }
    .dir-contact { display: flex !important; flex-wrap: wrap; gap: .5rem; white-space: normal; }
    .dir-contact a { padding: .4rem .8rem; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: .85rem; }
}
@media print { .dir-controls, .dir-stats, .dir-head button { display: none !important; } .dir-table th { background: #eee; color: #000; } }


/* ---------- About page ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgb(255 255 255 / .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: .9rem 1rem; text-decoration: none; color: var(--ink-2); font-weight: 650; font-size: .92rem; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--brand-ink); border-bottom-color: var(--accent); }
#overview, #structure, #values, #leadership, #team { scroll-margin-top: calc(var(--header-h) + 56px); }

.overview-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.overview-grid.single { grid-template-columns: 1fr; max-width: 860px; }
.overview-story .lead-prose { font-size: 1.15rem; line-height: 1.75; color: var(--ink-2); margin: 0; }
.overview-img { margin-top: 1.5rem; border-radius: var(--r-lg); }
.mv { display: grid; gap: 1rem; }
.mv-card { position: relative; border-radius: var(--r-lg); padding: 1.6rem 1.6rem 1.5rem; overflow: hidden; isolation: isolate; }
.mv-card h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.mv-card p { margin: 0; line-height: 1.65; }
.mv-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 1rem; }
.mv-mission { background: var(--brand-deep); color: rgb(255 255 255 / .85); }
.mv-mission::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--weave); background-size: 40px 24px; opacity: .07; }
.mv-mission h3 { color: #fff; }
.mv-mission .mv-ico { background: var(--accent); color: #1d1500; }
.mv-vision { background: color-mix(in oklab, var(--accent) 16%, #fff); color: var(--ink-2); border: 1px solid color-mix(in oklab, var(--accent) 40%, #fff); }
.mv-vision .mv-ico { background: #fff; color: color-mix(in oklab, var(--accent) 60%, #000); }

.about-rows { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.about-row.flip .about-row-media { order: -1; }
.about-row-text .prose { max-width: 60ch; }
.about-row-text .prose strong { color: var(--ink); }
.about-row-media { margin: 0; }
.about-row-media a { position: relative; display: block; background: #fff; border-radius: var(--r-lg); padding: clamp(.75rem, 2vw, 1.25rem); box-shadow: var(--shadow-2); }
.about-row-media img { width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; }
.zoom { position: absolute; right: .75rem; top: .75rem; width: 36px; height: 36px; border-radius: 50%; background: rgb(16 36 26 / .75); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.about-row-media figcaption { text-align: center; color: var(--ink-3); font-size: .88rem; margin-top: .75rem; }
.statement { position: relative; isolation: isolate; overflow: hidden; background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: clamp(1.75rem, 5vw, 3.25rem); display: grid; grid-template-columns: minmax(180px, .5fr) 1fr; gap: 1rem 3rem; align-items: start; }
.statement h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; margin: 0; }
.statement-text { font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); line-height: 1.7; color: rgb(255 255 255 / .92); }
.statement-text p:last-child { margin: 0; }
.statement .weave { opacity: .12; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; grid-template-columns: minmax(180px, .5fr) 1fr; gap: 1rem 3rem; }
.panel h2 { margin: 0; }
.panel .prose { max-width: 68ch; }
.panel .prose ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.panel .prose li { padding: .65rem .9rem; border-radius: var(--r-md); background: var(--brand-tint); margin: 0; }
.panel .prose li strong { color: var(--brand-ink); }

.values-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.values-list li { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border-radius: var(--r-md); background: var(--brand-tint); border: 1px solid var(--line); }
.values-list .value-ico { flex: none; width: 42px; height: 42px; margin: 0; font-size: 1rem; }
.values-list h3 { font-size: 1rem; margin: .1rem 0 .15rem; }
.values-list p { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }

.avatar { flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--brand); color: #fff; font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.avatar-lg { width: 104px; height: 104px; font-size: 2rem; border: 4px solid #fff; box-shadow: var(--shadow-1); }
.avatar-md { width: 64px; height: 64px; font-size: 1.25rem; }
.leader-msg { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: center; background: #fff; border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); margin-bottom: 1.25rem; }
.leader-who { display: grid; justify-items: center; text-align: center; gap: .75rem; }
.leader-who strong { display: block; font-family: var(--f-display); font-size: 1.15rem; }
.leader-who div span { color: var(--brand-ink); font-weight: 650; font-size: .92rem; }
.leader-msg blockquote { margin: 0; position: relative; padding-left: 1.5rem; border-left: 4px solid var(--accent); }
.leader-msg blockquote i { color: var(--accent); font-size: 1.5rem; margin-bottom: .5rem; display: block; }
.leader-msg blockquote p { font-size: 1.1rem; line-height: 1.7; color: var(--ink); margin-bottom: .75rem; }
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.board li { display: flex; align-items: center; gap: .9rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.board li:nth-child(3n+2) .avatar { background: var(--brand-ink); }
.board li:nth-child(3n) .avatar { background: color-mix(in oklab, var(--accent) 80%, #000); }
.board strong { display: block; line-height: 1.25; }
.board div span { color: var(--brand-ink); font-weight: 600; font-size: .88rem; }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.member { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.member-photo { aspect-ratio: 4 / 5; background: var(--brand-soft); display: grid; place-items: center; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.member-photo span { font-family: var(--f-display); font-size: 3rem; font-weight: 800; color: var(--brand); }
.member-info { padding: 1rem 1.1rem 1.2rem; }
.member-info h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.member-links { display: flex; gap: .4rem; margin-top: .75rem; }
.member-links a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--ink); }
.member-links a:hover { background: var(--brand); color: #fff; }

@media (max-width: 900px) {
    .subnav { top: calc(var(--header-h) + env(safe-area-inset-top)); }
    .subnav a { padding: .75rem .8rem; font-size: .86rem; }
    .overview-grid { grid-template-columns: 1fr; }
    .overview-story .lead-prose { font-size: 1.05rem; }
    .about-row, .about-row.flip { grid-template-columns: 1fr; }
    .about-row.flip .about-row-media { order: 0; }
    .statement, .panel { grid-template-columns: 1fr; padding: 1.5rem; }
    .values-list { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .values-list li { flex-direction: column; gap: .5rem; padding: .85rem; }
    .values-list .value-ico { width: 36px; height: 36px; }
    .leader-msg { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem 1.25rem; }
    .leader-who { grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
    .avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
    .leader-msg blockquote p { font-size: 1rem; }
    .board { grid-template-columns: 1fr; gap: .5rem; }
    .board li { padding: .8rem; }
    .avatar-md { width: 52px; height: 52px; font-size: 1.05rem; }
    .team { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .member-info { padding: .75rem .8rem 1rem; }
    .member-info h3 { font-size: .95rem; }
    .member-info .person-role { font-size: .8rem; }
}

/* ---------- Animations ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(100%); } }
@keyframes sink { to { transform: translateY(100%); } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@keyframes blink { 50% { opacity: .3; } }

/* =====================================================================
   Tablet
   ===================================================================== */
@media (max-width: 1100px) {
    .scroller { grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); }
    .values { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .services { grid-template-columns: 1fr; }
}

/* =====================================================================
   Phones — app mode
   ===================================================================== */
@media (max-width: 900px) {
    :root { --header-h: 58px; }
    body { padding-bottom: calc(var(--tab-h) + var(--safe-b)); background: #fff; }
    .wrap, .wrap.narrow { width: calc(100% - 2rem); }

    /* App bar */
    .site-header { background: rgb(255 255 255 / .94); padding-top: env(safe-area-inset-top); }
    .header-inner { gap: .5rem; }
    .topbar, .main-nav, .header-cta { display: none; }
    .brand img { width: 38px; height: 38px; }
    .brand-text strong { font-size: .95rem; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .header-actions { margin-left: auto; }
    .is-inner .brand { display: none; }
    .is-inner .appbar-back { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -.5rem; border: 0; background: transparent; border-radius: 50%; font-size: 1.1rem; }
    .is-inner .appbar-title {
        display: block; flex: 1; min-width: 0; font-family: var(--f-display); font-weight: 650; font-size: 1.05rem;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
    }
    .site-header.is-scrolled .appbar-title { opacity: 1; transform: none; }
    .is-home .appbar-title { display: block; flex: 1; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
    .is-home .brand-text { display: none; }

    /* Large title header like native apps */
    .page-hero { padding: 1.25rem 0 1.75rem; border-radius: 0 0 26px 26px; }
    .page-hero .crumbs { display: none; }
    .page-hero h1 { font-size: 2rem; margin-top: 0; }
    .page-hero p { font-size: 1rem; }
    .page-hero::after { display: none; }

    /* Tab bar */
    .tabbar {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
        height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
        background: rgb(255 255 255 / .96); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
        border-top: 1px solid var(--line); view-transition-name: tabbar;
    }
    .tabbar a, .tabbar button {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none;
        text-decoration: none; color: var(--ink-3); font-size: .7rem; font-weight: 650; -webkit-tap-highlight-color: transparent; position: relative;
    }
    .tabbar i { font-size: 1.2rem; width: 56px; height: 30px; display: grid; place-items: center; border-radius: 99px; transition: background .2s, color .2s; }
    .tabbar .is-active { color: var(--brand-ink); }
    .tabbar .is-active i { background: var(--brand-soft); color: var(--brand); }
    .tabbar a:active i, .tabbar button:active i { transform: scale(.9); }

    .install-card:not([hidden]) {
        display: grid; grid-template-columns: auto 1fr auto auto; gap: .65rem; align-items: center; position: fixed; z-index: 95;
        left: .75rem; right: .75rem; bottom: calc(var(--tab-h) + var(--safe-b) + .75rem);
        background: #fff; border-radius: 18px; padding: .75rem; box-shadow: var(--shadow-2); border: 1px solid var(--line); animation: rise .35s var(--ease);
    }
    .install-card img { border-radius: 12px; object-fit: contain; }
    .install-card strong { display: block; font-size: .9rem; line-height: 1.25; }
    .install-card span { font-size: .78rem; color: var(--ink-3); }
    .install-card .icon-btn { width: 34px; height: 34px; }

    .chat-fab { bottom: calc(var(--tab-h) + var(--safe-b) + 1rem); right: 1rem; width: 54px; height: 54px; border-radius: 18px; }
    .chat-win { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); animation: rise .3s var(--ease); z-index: 150; }

    /* Home: slider as full-width cards, one at a time */
    .hero { padding: .75rem 0 0; background: #fff; }
    .hero-track { grid-auto-columns: 100%; gap: 1rem; padding: 0 1rem; scroll-padding: 0 1rem; }
    .hero-slide { min-height: 0; aspect-ratio: 4 / 4.4; max-height: 440px; border-radius: 22px; overflow: hidden; }
    .hero-slide::before { background: linear-gradient(180deg, rgb(6 22 12 / 0) 15%, rgb(6 22 12 / .55) 45%, rgb(6 22 12 / .92) 100%); }
    .hero-kicker, .hero-title, .hero-text { text-shadow: 0 1px 12px rgb(0 0 0 / .35); }
    .hero-copy { padding: 0 1.25rem 2.6rem; width: 100%; }
    .hero-kicker { font-size: .8rem; margin-bottom: .3rem; }
    .hero-title { font-size: clamp(1.45rem, 6.6vw, 1.75rem); margin-bottom: .5rem; max-width: none; }
    .hero-text { font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .9rem; }
    .hero-copy .btn { padding: .6rem 1.1rem; font-size: .88rem; }
    .hero-controls { position: absolute; left: 0; right: 0; bottom: .9rem; width: auto; justify-content: center; padding: 0; }
    .hero-arrows { display: none; }
    .dots button { background: rgb(255 255 255 / .5); width: 7px; height: 7px; }
    .dots button[aria-current="true"] { width: 22px; }

    .quick { margin: 1.25rem auto 0; box-shadow: none; border: 0; padding: 0; grid-template-columns: repeat(4, 1fr); gap: .25rem; background: none; }
    .quick:has(> :nth-child(5)) { grid-template-columns: repeat(5, 1fr); }
    .quick-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .5rem .15rem; gap: .4rem; }
    .quick-ico { width: 54px; height: 54px; border-radius: 18px; font-size: 1.25rem; }
    .quick-label { font-size: .74rem; font-weight: 650; }
    .quick-desc { display: none; }

    .section { padding: 2.5rem 0; }
    .section-head { align-items: center; margin-bottom: 1.1rem; }
    .section-head .display-2 { font-size: 1.45rem; }
    .section-head p { font-size: .92rem; }
    .who { grid-template-columns: 1fr; }
    .who-figure { order: -1; }
    .who-figure img { aspect-ratio: 16/11; }
    .who-figure::before { display: none; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
    .stats-band { margin: 0 1rem; border-radius: 24px; padding: 1.75rem 0; }

    .scroller, .news-scroller { grid-auto-columns: 78%; gap: .85rem; margin: 0 -1rem; padding: .25rem 1rem 1rem; scroll-padding: 0 1rem; scrollbar-width: none; }
    .scroller::-webkit-scrollbar { display: none; }
    .movement { grid-template-columns: 1fr; }
    .member-grid, .news-grid { grid-template-columns: 1fr; }
    .member-card { grid-template-columns: 60px 1fr; padding: 1rem; }
    .member-logo { width: 60px; height: 60px; border-radius: 16px; }

    .news-lead { grid-template-columns: 1fr; }
    .news-lead-img { min-height: 200px; }
    .news-grid .news-card { flex-direction: row; }
    .news-grid .news-card-img { width: 112px; flex: none; aspect-ratio: auto; }
    .news-grid .news-card-img .tag { display: none; }
    .news-grid .news-card-body { padding: .85rem; }
    .news-grid .news-card-body h3 { font-size: 1rem; }
    .news-grid .news-card-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar .chips { margin: 0 -1rem; padding: 2px 1rem; }
    .search-field { min-width: 0; }
    .segmented { display: grid; grid-template-columns: 1fr 1fr; }

    .about-block.has-media { grid-template-columns: 1fr; }
    .about-block.has-media:nth-child(even) .about-media { order: 0; }
    .values { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
    .value { padding: 1rem .75rem; }
    .people { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .person-body { padding: .75rem .8rem 1rem; }
    .person-body h3 { font-size: .95rem; }
    .person-role { font-size: .8rem; }
    .person-bio { display: none; }

    .service { grid-template-columns: 1fr; }
    .service-media { min-height: 170px; }

    .event { grid-template-columns: 64px 1fr; gap: .9rem; padding: .9rem; }
    .event-date strong { font-size: 1.6rem; }

    .lib-intro { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .doc { grid-template-columns: 46px 1fr auto; gap: .8rem; padding: .85rem; }
    .doc-ico { width: 46px; height: 46px; font-size: 1.2rem; }
    .doc-body p { display: none; }
    .hide-sm { display: none; }
    .doc-actions .btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

    .masonry { columns: 2; column-gap: .5rem; }
    .shot { margin-bottom: .5rem; border-radius: 12px; }
    .shot-cap { display: none; }
    .lightbox-stage { padding: 0; }
    .lightbox-nav { display: none; }

    .contact { grid-template-columns: 1fr; }
    .form-card { padding: 1.25rem; box-shadow: none; }
    .field-row { grid-template-columns: 1fr; }

    .attachment { grid-template-columns: auto 1fr; }
    .attachment-actions { grid-column: 1 / -1; }
    .attachment-actions .btn { flex: 1; }
    .article-figure { width: 100%; }
    .article-figure img { border-radius: 0; }

    .cta-inner { flex-direction: column; align-items: stretch; text-align: left; }
    .cta-actions .btn { flex: 1; }

    .site-footer { padding-top: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; padding-bottom: 1.5rem; }
    .footer-about, .footer-grid > div:last-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; padding-bottom: 1.5rem; }
}

@media (max-width: 380px) {
    .quick, .quick:has(> :nth-child(5)) { grid-template-columns: repeat(3, 1fr); }
    .people { grid-template-columns: 1fr 1fr; }
}

/* Installed as an app (standalone) */
@media (display-mode: standalone) and (max-width: 900px) {
    .site-footer { display: none; }
    body { overscroll-behavior-y: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    @view-transition { navigation: none; }
}

@media print {
    .site-header, .tabbar, .site-footer, .chat-fab, .chat-win, .install-card, .cta { display: none !important; }
    body { padding: 0; }
    .page-hero { background: none; color: #000; } .page-hero h1 { color: #000; }
}
