/* ==========================================================================
   EPIC — Economic Policy and Innovation Centre
   Public website theme. Palette and typography follow the EPIC logo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand palette taken from the logo */
    --navy: #13366e;
    --navy-900: #0d2450;
    --navy-800: #102c5f;
    --navy-700: #1b4587;
    --navy-500: #2f5fa8;
    --blue: #0f6fc0;
    --blue-600: #0c63ad;
    --blue-400: #2e94dd;
    --cyan: #00a8e8;
    --cyan-200: #9fdcf6;
    --green: #41a62a;
    --green-700: #2f7d33;
    --lime: #7ac943;

    /* Neutrals */
    --ink: #13203a;
    --body: #4a5871;
    --muted: #7286a1;
    --line: #e2e9f2;
    --line-soft: #eef3f9;
    --white: #ffffff;
    --bg-soft: #f5f9fd;
    --bg-tint: #eaf3fb;
    --bg-navy-soft: #f2f6fc;

    /* Type */
    --font-display: "Playfair Display", "Georgia", "Times New Roman", serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-brand: "Montserrat", "Inter", "Segoe UI", Arial, sans-serif;

    /* Layout */
    --container: 1220px;
    --gutter: 24px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;

    --shadow-xs: 0 1px 2px rgba(19, 54, 110, .06);
    --shadow-sm: 0 2px 10px rgba(19, 54, 110, .07);
    --shadow: 0 8px 26px rgba(19, 54, 110, .10);
    --shadow-lg: 0 18px 48px rgba(13, 36, 80, .16);

    --header-h: 86px;
    --transition: .22s ease;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; }
img { height: auto; display: block; border: 0; }

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--navy);
    margin: 0 0 .5em;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.14rem; }
h5 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2rem; }
li { margin-bottom: .45em; }

blockquote {
    margin: 1.6rem 0;
    padding: 1.1rem 0 1.1rem 1.5rem;
    border-left: 4px solid var(--green);
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-style: italic;
    color: var(--navy);
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.4rem; }
th, td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--navy); font-weight: 600; background: var(--bg-soft); }

::selection { background: var(--cyan); color: #fff; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 3px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container-narrow { max-width: 900px; }

.section { padding: clamp(48px, 6vw, 84px) 0; }
.section-sm { padding: clamp(36px, 4vw, 56px) 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.86); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: clamp(26px, 3vw, 40px);
}
.section-head .section-title { margin-bottom: 0; }
.section-head p { max-width: 640px; margin-top: .6rem; }

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}
.section-title::after {
    content: "";
    width: 46px; height: 3px;
    background: var(--green);
    border-radius: 2px;
    flex: none;
}
.section-title.is-plain::after { display: none; }
.section-navy .section-title::after { background: var(--lime); }

.section-link {
    font-size: .92rem;
    font-weight: 600;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.section-link svg { width: 17px; height: 17px; transition: transform var(--transition); }
.section-link:hover svg { transform: translateX(4px); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 30px; height: 3px;
    background: var(--green);
    border-radius: 2px;
}
.eyebrow-light { color: var(--cyan-200); }
.eyebrow-light::before { background: var(--lime); }

.lead { font-size: 1.1rem; line-height: 1.75; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-center .section-title { justify-content: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1.2rem; }
.mt-4 { margin-top: 1.8rem; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* --------------------------------------------------------------------------
   4. Buttons & badges
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    font-family: var(--font-sans);
    font-size: .93rem;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-tint); color: var(--navy); transform: translateY(-1px); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .84rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    background: var(--bg-tint);
    color: var(--navy);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.badge-green { background: #e7f5e2; color: var(--green-700); }
.badge-blue { background: #e4f1fc; color: var(--blue-600); }
.badge-navy { background: var(--navy); color: #fff; }
.badge-outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 40px;
    border: 1px solid var(--line); background: #fff;
    font-size: .86rem; font-weight: 600; color: var(--navy);
    transition: all var(--transition);
}
.chip svg { width: 16px; height: 16px; color: var(--blue); }
.chip:hover, .chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip:hover svg, .chip.is-active svg { color: var(--lime); }

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
    transition: box-shadow var(--transition);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: var(--header-h);
    padding-block: 10px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 56px; width: auto; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1; }
.brand-word {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--navy);
    letter-spacing: .01em;
}
.brand-word .leaf { color: var(--green); }
.brand-sub {
    font-family: var(--font-brand);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-top: 5px;
}

.primary-nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; margin: 0; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    font-size: .93rem;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
}
.nav-link svg { width: 14px; height: 14px; opacity: .55; transition: transform var(--transition); }
.nav-link:hover,
.nav-list > li.is-open > .nav-link,
.nav-link.is-active { color: var(--navy); background: var(--bg-navy-soft); }
.nav-link.is-active { font-weight: 600; }
.nav-list > li.is-open > .nav-link svg { transform: rotate(180deg); }

.nav-drop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 258px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav-list > li:hover > .nav-drop,
.nav-list > li.is-open > .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-drop li { margin: 0; }
.nav-drop a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink);
}
.nav-drop a::after {
    content: "";
    width: 6px; height: 6px;
    border-right: 2px solid var(--green);
    border-top: 2px solid var(--green);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}
.nav-drop a:hover { background: var(--bg-navy-soft); color: var(--navy); }
.nav-drop a:hover::after { opacity: 1; transform: rotate(45deg) translate(2px, -2px); }
.nav-drop li:last-child a { border-bottom: 0; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    transition: all var(--transition);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.nav-toggle { display: none; }

/* Search overlay */
.search-panel {
    position: fixed;
    inset: 0;
    background: rgba(13, 36, 80, .55);
    backdrop-filter: blur(3px);
    z-index: 200;
    display: none;
    padding: 12vh 20px 0;
}
.search-panel.is-open { display: block; }
.search-panel form {
    max-width: 680px;
    margin-inline: auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 10px;
    display: flex;
    gap: 10px;
    box-shadow: var(--shadow-lg);
}
.search-panel input {
    flex: 1;
    border: 0;
    font-size: 1.05rem;
    padding: 12px 14px;
    font-family: var(--font-sans);
    color: var(--ink);
}
.search-panel input:focus { outline: none; }
.search-hint { max-width: 680px; margin: 14px auto 0; color: rgba(255,255,255,.8); font-size: .88rem; text-align: center; }

/* Mobile navigation */
.mobile-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(400px, 88vw);
    background: #fff;
    z-index: 210;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    padding: 20px;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-nav-head img { height: 44px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.mobile-nav > ul > li > a,
.mobile-nav .m-parent {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%;
    padding: 14px 4px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    background: none; border: 0; text-align: left;
    font-family: var(--font-sans);
    cursor: pointer;
}
.mobile-nav .m-parent svg { width: 16px; height: 16px; transition: transform var(--transition); color: var(--green); }
.mobile-nav li.is-open .m-parent svg { transform: rotate(180deg); }
.mobile-nav .m-sub { display: none; padding: 0 0 10px 12px; }
.mobile-nav li.is-open .m-sub { display: block; }
.mobile-nav .m-sub li { border: 0; }
.mobile-nav .m-sub a { display: block; padding: 9px 4px; font-size: .93rem; color: var(--body); font-weight: 500; }
.mobile-nav .m-sub a:hover { color: var(--blue); }
.mobile-nav-actions { margin-top: 22px; display: grid; gap: 10px; }

.nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(13, 36, 80, .5);
    z-index: 205;
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. Home hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 40px;
    padding: clamp(36px, 5vw, 60px) 0 clamp(40px, 5vw, 66px);
}
.hero-copy { position: relative; z-index: 2; }
.hero-title {
    font-size: clamp(2.5rem, 5.4vw, 4.1rem);
    line-height: 1.06;
    margin-bottom: 1.1rem;
    color: var(--navy);
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--green); }
.hero-lead { font-size: clamp(1.02rem, 1.35vw, 1.16rem); max-width: 34rem; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-media { position: relative; }
.hero-media-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 10;
    background: var(--bg-tint);
}
.hero-media-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-quote {
    position: absolute;
    right: 18px;
    bottom: 18px;
    margin: 0;
    max-width: 330px;
    background: rgba(255,255,255,.93);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--green);
}
.hero-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--navy);
    margin: 0;
}
.hero-quote cite { display: block; margin-top: 8px; font-size: .78rem; font-style: normal; color: var(--muted); font-family: var(--font-sans); }

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    padding-bottom: 6px;
    margin-top: 0;
}
.hero-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 6px 14px;
    border-right: 1px solid var(--line);
}
.hero-highlight:last-child { border-right: 0; }
.hero-highlight svg { width: 30px; height: 30px; color: var(--blue); }
.hero-highlight span { font-size: .88rem; font-weight: 600; color: var(--navy); line-height: 1.35; }

/* --------------------------------------------------------------------------
   7. Focus areas
   -------------------------------------------------------------------------- */
.focus-strip { background: var(--bg-soft); }
.focus-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.focus-item {
    padding: 28px 18px;
    text-align: center;
    border-right: 1px solid var(--line-soft);
    transition: background var(--transition), transform var(--transition);
    display: block;
    color: inherit;
}
.focus-item:last-child { border-right: 0; }
.focus-item:hover { background: var(--bg-navy-soft); }
.focus-item svg { width: 36px; height: 36px; margin: 0 auto 14px; color: var(--blue); }
.focus-item.is-green svg { color: var(--green); }
.focus-item h3 { font-size: 1.02rem; margin-bottom: 6px; line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.focus-item p { font-size: .82rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8e4f1; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media.is-portrait { aspect-ratio: 3 / 4; }
.card-media.is-wide { aspect-ratio: 16 / 9; }
.card-media .badge { position: absolute; left: 12px; top: 12px; box-shadow: var(--shadow-xs); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-body h3 { font-size: 1.1rem; margin: 0; line-height: 1.32; }
.card-body h3 a { color: var(--navy); }
.card-body h3 a:hover { color: var(--blue); }
.card-body p { font-size: .9rem; color: var(--body); margin: 0; line-height: 1.6; }
.card-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 6px;
}
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta svg { width: 15px; height: 15px; color: var(--green); }
.card-foot { padding: 0 20px 20px; }

/* Publication cards */
.pub-card .card-media { aspect-ratio: 3 / 4; }
.pub-card .card-body { gap: 7px; padding: 18px; }
.pub-card h3 { font-size: 1.02rem; }
.pub-card .pub-sub { font-size: .85rem; color: var(--body); }

/* Event cards */
.event-card { display: grid; grid-template-columns: 116px 1fr; gap: 0; align-items: stretch; }
.event-card .event-thumb { background: var(--bg-tint); overflow: hidden; }
.event-card .event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card .event-main { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 16px 18px; }
.event-date {
    text-align: center;
    background: var(--bg-tint);
    border-radius: var(--radius-sm);
    padding: 9px 4px;
    height: fit-content;
}
.event-date strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); line-height: 1; }
.event-date span { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .06em; color: var(--blue); margin-top: 4px; white-space: nowrap; }
.event-main h3 { font-size: 1.02rem; margin-bottom: 5px; }
.event-main p { font-size: .84rem; margin: 0 0 8px; color: var(--body); }

/* Simple list card (used for publications/press lists) */
.list-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: box-shadow var(--transition), transform var(--transition);
}
.list-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.list-card .list-media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3/4; background: var(--bg-tint); }
.list-card .list-media img { width: 100%; height: 100%; object-fit: cover; }
.list-card.is-wide .list-media { aspect-ratio: 16/10; }
.list-card h3 { font-size: 1.22rem; margin-bottom: .4rem; }
.list-body { display: flex; flex-direction: column; gap: 10px; }
.list-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* --------------------------------------------------------------------------
   9. Feature blocks
   -------------------------------------------------------------------------- */
.feature-band { background: var(--bg-tint); }
.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr) minmax(0, .75fr);
    gap: 40px;
    align-items: center;
}
.pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.pillar { text-align: center; }
.pillar svg { width: 34px; height: 34px; color: var(--blue); margin: 0 auto 10px; }
.pillar:nth-child(even) svg { color: var(--green); }
.pillar h4 { font-size: .95rem; margin-bottom: 4px; line-height: 1.3; }
.pillar p { font-size: .79rem; color: var(--muted); margin: 0; line-height: 1.5; }

.pull-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.22rem;
    line-height: 1.5;
    color: var(--navy);
    border-left: 3px solid var(--green);
    padding-left: 20px;
}

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, .9fr); gap: 20px; align-items: stretch; }
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}
.stat-card .stat-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat-card .stat-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.stat-card .stat-value { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: var(--navy); line-height: 1; }
.stat-card svg { width: 34px; height: 34px; color: var(--cyan); flex: none; }
.stat-card:nth-child(even) svg { color: var(--green); }
.stat-card .stat-caption { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.stats-note { display: flex; align-items: center; font-size: .9rem; color: var(--body); padding: 6px 4px; }

/* --------------------------------------------------------------------------
   10. Inner page hero + breadcrumbs
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy) 46%, var(--blue-600) 100%);
    color: rgba(255,255,255,.85);
    padding: clamp(42px, 5vw, 72px) 0 clamp(40px, 5vw, 64px);
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -140px; top: -180px;
    width: 620px; height: 620px;
    background: radial-gradient(circle at 50% 50%, rgba(122, 201, 67, .26), rgba(122, 201, 67, 0) 60%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .45rem; max-width: 20ch; }
.page-hero p { max-width: 62ch; font-size: 1.04rem; color: rgba(255,255,255,.82); }
.page-hero.has-image { background-size: cover; background-position: center; }
.page-hero.has-image::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(110deg, rgba(13,36,80,.94) 0%, rgba(19,54,110,.86) 45%, rgba(12,99,173,.75) 100%);
}

.breadcrumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: .82rem; color: rgba(255,255,255,.7);
    margin-bottom: 16px;
    list-style: none; padding: 0;
}
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs li + li::before { content: "/"; color: rgba(255,255,255,.4); }

/* --------------------------------------------------------------------------
   11. Content pieces
   -------------------------------------------------------------------------- */
.prose { font-size: 1.01rem; line-height: 1.8; color: var(--body); }
.prose h2 { margin-top: 2rem; font-size: 1.7rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.28rem; }
.prose ul { padding-left: 1.15rem; }
.prose li::marker { color: var(--green); }
.prose img { border-radius: var(--radius); margin: 1.4rem 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.split.is-reverse .split-media { order: 2; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 46px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 22px; }
.sidebar-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.sidebar-box h4 { font-size: 1rem; margin-bottom: .8rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.sidebar-box li:last-child { border-bottom: 0; }
.sidebar-box li a { display: block; padding: 9px 0; font-size: .9rem; color: var(--ink); }
.sidebar-box li a:hover { color: var(--blue); }

/* Numbered / icon principle list */
.principle-list { display: grid; gap: 18px; }
.principle {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.principle:hover { border-color: #cfe0f2; box-shadow: var(--shadow-sm); }
.principle-icon {
    width: 54px; height: 54px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--bg-tint);
    color: var(--blue);
}
.principle:nth-child(even) .principle-icon { background: #e9f6e4; color: var(--green-700); }
.principle-icon svg { width: 26px; height: 26px; }
.principle h3 { font-size: 1.14rem; margin-bottom: .35rem; }
.principle p { margin: 0; font-size: .94rem; }

/* Check lists */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-list.is-3col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check-list li {
    display: flex; align-items: flex-start; gap: 12px;
    margin: 0; font-size: .95rem; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 13px 16px;
}
.check-list li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }
.check-list li strong { display: block; color: var(--navy); font-weight: 600; }
.check-list li span { display: block; font-size: .87rem; color: var(--muted); margin-top: 2px; }
.check-list.is-plain li { background: transparent; border: 0; padding: 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(226px, 1fr)); gap: 26px; }
.member-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member-photo { aspect-ratio: 1; background: var(--bg-tint); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.6rem; color: var(--navy-500); background: linear-gradient(135deg, var(--bg-tint), #dbeaf7); }
.member-card .member-body { padding: 18px 16px; }
.member-card h3 { font-size: 1.05rem; margin-bottom: 3px; }
.member-card .member-role { font-size: .84rem; color: var(--blue); font-weight: 600; }
.member-card .member-bio { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.member-links { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.member-links a { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--navy); }
.member-links a:hover { background: var(--navy); color: #fff; }
.member-links svg { width: 16px; height: 16px; }

/* TBC / empty states */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    color: var(--muted);
}
.empty-state svg { width: 40px; height: 40px; color: var(--blue-400); margin: 0 auto 12px; }
.empty-state h3 { font-size: 1.16rem; margin-bottom: .3rem; }

/* Partner / logo grid */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.logo-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 22px 16px; min-height: 130px; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: box-shadow var(--transition), transform var(--transition);
}
.logo-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.logo-card img { max-height: 54px; width: auto; object-fit: contain; }
.logo-card .logo-name { font-size: .9rem; font-weight: 600; color: var(--navy); line-height: 1.35; }
.logo-card .logo-cat { font-size: .76rem; color: var(--muted); }

/* Chapters */
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.chapter-card {
    padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
    display: flex; flex-direction: column; gap: 8px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.chapter-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.chapter-card .chapter-top { display: flex; align-items: center; gap: 12px; }
.chapter-card svg { width: 26px; height: 26px; color: var(--blue); }
.chapter-card h3 { font-size: 1.1rem; margin: 0; }
.chapter-card p { font-size: .87rem; margin: 0; color: var(--muted); }

/* Accordion */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.accordion-item + .accordion-item { border-top: 1px solid var(--line); }
.accordion-trigger {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px;
    background: none; border: 0; cursor: pointer;
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--navy);
    text-align: left;
}
.accordion-trigger svg { width: 18px; height: 18px; color: var(--green); flex: none; transition: transform var(--transition); }
.accordion-item.is-open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-panel { display: none; padding: 0 22px 20px; font-size: .95rem; }
.accordion-item.is-open .accordion-panel { display: block; }

/* Timeline (projects) */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item::before {
    content: ""; position: absolute; left: -28px; top: 6px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 3px solid var(--green);
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-tint); position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 24px 14px 12px;
    background: linear-gradient(transparent, rgba(13,36,80,.82));
    color: #fff; font-size: .84rem;
}

/* Video */
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-tint); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(13,36,80,.32); transition: background var(--transition);
}
.video-thumb:hover .play { background: rgba(13,36,80,.5); }
.video-thumb .play svg { width: 58px; height: 58px; color: #fff; }

/* CTA band */
.cta-band {
    background: linear-gradient(120deg, var(--navy-900), var(--blue-600));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 48px);
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; max-width: 60ch; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Newsletter inline form */
.subscribe-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-inline input {
    flex: 1 1 220px;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    color: #fff;
    font-family: var(--font-sans);
    font-size: .93rem;
}
.subscribe-inline input::placeholder { color: rgba(255,255,255,.65); }
.subscribe-inline input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.2); }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.is-full { grid-column: 1 / -1; }
.form-field label { font-size: .86rem; font-weight: 600; color: var(--navy); }
.form-field label .req { color: #d23b3b; }
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: .95rem;
    color: var(--ink);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15,111,192,.12); }
textarea.form-control { min-height: 150px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237286a1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.form-error { font-size: .82rem; color: #c62828; }
.form-hint { font-size: .82rem; color: var(--muted); }
.form-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    font-size: .93rem;
    display: flex; align-items: flex-start; gap: 10px;
    border: 1px solid transparent;
}
.alert svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.alert-success { background: #e9f7e6; border-color: #bfe5b5; color: #256b28; }
.alert-error { background: #fdecec; border-color: #f4c4c4; color: #b02a2a; }
.alert-info { background: var(--bg-tint); border-color: #c7e0f4; color: var(--navy); }

/* Contact details block */
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-lines li { display: flex; gap: 14px; margin: 0; align-items: flex-start; }
.contact-lines svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }
.contact-lines strong { display: block; color: var(--navy); font-size: .88rem; }
.contact-lines span, .contact-lines a { font-size: .93rem; color: var(--body); }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* --------------------------------------------------------------------------
   13. Pagination & misc
   -------------------------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 36px 0 0; justify-content: center; }
.pagination li { margin: 0; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: .9rem; color: var(--navy); background: #fff;
}
.pagination a:hover { background: var(--bg-navy-soft); border-color: #cfe0f2; }
.pagination .active span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .disabled span { color: var(--muted); background: var(--bg-soft); }
.pagination svg { width: 16px; height: 16px; }

.meta-row { display: flex; flex-wrap: wrap; gap: 18px; font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.meta-row span { display: inline-flex; align-items: center; gap: 7px; }
.meta-row svg { width: 16px; height: 16px; color: var(--green); }

.share-row { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.share-row span { font-size: .85rem; font-weight: 600; color: var(--navy); }
.share-row a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--navy); }
.share-row a:hover { background: var(--navy); color: #fff; }
.share-row svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding-top: clamp(42px, 5vw, 62px); font-size: .93rem; }
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .95fr);
    gap: 38px;
    padding-bottom: 40px;
}
.footer-brand img { height: 58px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .92rem; max-width: 34ch; }
.footer-col h4 {
    color: #fff; font-family: var(--font-sans); font-size: .82rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .92rem; }
.footer-col a:hover { color: var(--lime); }

.footer-contact { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; margin: 0; }
.footer-contact svg { width: 17px; height: 17px; color: var(--lime); flex: none; margin-top: 3px; }
.footer-contact a, .footer-contact span { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-contact a:hover { color: #fff; }

.social-row { display: flex; gap: 10px; }
.social-row a {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255,255,255,.1); color: #fff;
    transition: background var(--transition), transform var(--transition);
}
.social-row a:hover { background: var(--green); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }

.footer-tagline {
    margin-top: 24px;
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-style: italic;
    color: #fff;
    line-height: 1.35;
    border-left: 3px solid var(--lime);
    padding-left: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.14);
    padding: 20px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: .84rem;
    color: rgba(255,255,255,.6);
}
.footer-bottom ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-bottom li { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--lime); }

.back-to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 100;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--navy); color: #fff; border: 0; cursor: pointer;
    display: grid; place-items: center;
    opacity: 0; visibility: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--green); }
.back-to-top svg { width: 20px; height: 20px; transform: rotate(-90deg); }

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .focus-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .focus-item { border-bottom: 1px solid var(--line-soft); }
    .focus-item:nth-child(4n) { border-right: 0; }
    .nav-link { padding: 10px 9px; font-size: .88rem; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-note { grid-column: 1 / -1; }
    .feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
    .feature-grid .pull-quote { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
    :root { --header-h: 74px; }
    .primary-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-actions .btn { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-media { order: -1; }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
    .split { grid-template-columns: 1fr; }
    .split.is-reverse .split-media { order: 0; }
}

@media (max-width: 860px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .focus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .focus-item:nth-child(4n) { border-right: 1px solid var(--line-soft); }
    .focus-item:nth-child(3n) { border-right: 0; }
    .check-list.is-3col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .list-card { grid-template-columns: 140px 1fr; gap: 16px; }
    .event-card { grid-template-columns: 96px 1fr; }
    .brand img { height: 46px; }
}

@media (max-width: 640px) {
    :root { --gutter: 18px; }
    body { font-size: 15.5px; }
    .grid-2, .grid-3, .grid-4, .sidebar { grid-template-columns: 1fr; }
    .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .focus-item:nth-child(3n) { border-right: 1px solid var(--line-soft); }
    .focus-item:nth-child(2n) { border-right: 0; }
    .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .check-list.is-2col, .check-list.is-3col { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-highlights { grid-template-columns: 1fr; gap: 14px; }
    .hero-highlight { flex-direction: row; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
    .hero-highlight:last-child { border-bottom: 0; }
    .hero-quote { position: static; max-width: none; margin-top: 14px; box-shadow: none; border-radius: var(--radius-sm); }
    .list-card { grid-template-columns: 1fr; }
    .list-card .list-media { aspect-ratio: 16/9; max-height: 220px; }
    .event-card { grid-template-columns: 1fr; }
    .event-card .event-thumb { aspect-ratio: 16/9; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .cta-band { flex-direction: column; align-items: flex-start; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
    .team-grid, .gallery-grid, .focus-grid, .pillars { grid-template-columns: 1fr; }
    .focus-item { border-right: 0 !important; }
    .btn { width: 100%; }
    .hero-actions .btn { width: auto; flex: 1 1 100%; }
}

@media print {
    .site-header, .site-footer, .back-to-top, .mobile-nav, .nav-backdrop, .search-panel { display: none !important; }
    body { color: #000; }
    a { color: #000; }
}

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

/* Fade-in on scroll. Content is visible by default and only animated when
   JavaScript is available, so nothing is ever hidden if a script fails. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Lightbox (built by site.js) */
.lightbox {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(9, 24, 52, .92);
    display: none; align-items: center; justify-content: center;
    padding: 34px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close {
    position: absolute; top: 18px; right: 22px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.14); color: #fff; border: 0;
    font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }

/* Visitor counter (footer) */
.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 7px 15px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: .82rem;
    color: rgba(255, 255, 255, .72);
    white-space: nowrap;
}
.visitor-counter svg { width: 16px; height: 16px; color: var(--lime); flex: none; }
.visitor-counter strong { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
