/* All custom styles will be here */
/* Colors spacing fonts and layout */
/* decorations */

/* ===== DESIGN TOKENS ===== */
/* brand colours sampled from the VITAL logo files */

:root {
    --navy-950: #07122a;
    --navy-900: #0b1933;
    --navy-800: #11244a;
    --navy-700: #1b3b6c;   /* logo navy */
    --teal-200: #a9e4e8;
    --teal-300: #7bd3da;   /* logo teal */
    --teal-700: #15707a;   /* teal dark enough for text on white */

    --ink: #0f1c33;
    --ink-muted: #4a5873;
    --surface: #f4f7fb;
    --card: #ffffff;
    --line: #dbe3ee;

    --on-dark: #eef5fb;
    --on-dark-muted: #a9bdd3;

    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(11, 25, 51, 0.06), 0 2px 8px rgba(11, 25, 51, 0.06);
    --shadow-lg: 0 18px 40px -12px rgba(11, 25, 51, 0.28);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --nav-h: 72px;
    --section-pad: clamp(4rem, 9vw, 7rem);
    --focus: var(--teal-700);
}

/* ===== RESET & BASE ===== */

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

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

section { scroll-margin-top: var(--nav-h); }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    fill: currentColor;
}

/* keyboard focus: teal on dark areas, darker teal on light ones */
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 6px;
}

.site-header,
.hero,
.section-dark,
.site-footer { --focus: var(--teal-300); }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    padding: 0.6rem 1rem;
    background: var(--teal-300);
    color: var(--navy-950);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
}

.skip-link:focus { top: 1rem; }

/* ===== BUTTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
                background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn .icon { transition: transform 0.25s var(--ease); }

.btn-primary {
    background: var(--teal-300);
    color: var(--navy-950);
    box-shadow: 0 6px 20px -6px rgba(123, 211, 218, 0.55);
}

.btn-primary:hover {
    background: var(--teal-200);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(123, 211, 218, 0.7);
}

.btn-primary:hover .icon { transform: translateX(3px); }

.btn-secondary {
    background: transparent;
    color: var(--on-dark);
    border-color: rgba(123, 211, 218, 0.55);
}

.btn-secondary:hover {
    background: rgba(123, 211, 218, 0.12);
    border-color: var(--teal-300);
    transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }

/* ===== NAVIGATION ===== */

/* transparent over the hero, turns solid once you scroll */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background-color 0.35s ease, box-shadow 0.35s ease, height 0.35s var(--ease);
}

.site-header.scrolled,
.site-header.menu-open {
    background: rgba(11, 25, 51, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 211, 218, 0.18), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.nav-container {
    max-width: 1160px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* transparent-background wordmark */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: auto;
    height: 46px;
    transition: opacity 0.2s ease;
}

.logo:hover img { opacity: 0.85; }

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

.nav-links a {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--on-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* underline that grows from the centre */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--teal-300);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--teal-300); }

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* "Partner with us" as a button */
.nav-links .nav-cta { margin-left: 0.6rem; }

.nav-links .nav-cta a {
    padding: 0.55rem 1.15rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--navy-950);
    background: var(--teal-300);
    border-radius: 999px;
    transition: background-color 0.25s ease, transform 0.25s var(--ease);
}

.nav-links .nav-cta a::after { display: none; }

.nav-links .nav-cta a:hover,
.nav-links .nav-cta a[aria-current="page"] {
    color: var(--navy-950);
    background: var(--teal-200);
    transform: translateY(-1px);
}

/* hamburger icon (hidden on desktop) */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--on-dark);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
    .hamburger { display: flex; }

    .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1.25rem 1.25rem;
        background: rgba(11, 25, 51, 0.97);
        box-shadow: 0 16px 24px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.25s ease, transform 0.3s var(--ease);
    }

    .nav-links a {
        padding: 0.9rem 0.25rem;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(169, 189, 211, 0.15);
    }

    .nav-links li:nth-last-child(2) a { border-bottom: none; }
    .nav-links a::after { display: none; }

    .nav-links a[aria-current="page"] { padding-left: 0.75rem; box-shadow: inset 3px 0 0 var(--teal-300); }

    .nav-links .nav-cta { margin: 0.75rem 0 0; }
    .nav-links .nav-cta a { padding: 0.8rem 1.2rem; text-align: center; border-bottom: none; box-shadow: none; }
}

/* ===== HERO SECTION ===== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 3rem) 0 5rem;
    color: var(--on-dark);
    background: var(--navy-900);
    overflow: hidden;
    isolation: isolate;
}

/* photo layer (separate so it can slowly settle on load) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('../images/hero-skyline.jpg') 68% center / cover no-repeat;
    animation: hero-settle 2.4s var(--ease) both;
}

/* navy overlay: dark on the left for the text, lighter on the right so the clock tower shows */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(7, 18, 42, 0.55) 0%, rgba(7, 18, 42, 0) 22%, rgba(7, 18, 42, 0) 70%, var(--navy-900) 100%),
        linear-gradient(100deg, rgba(7, 18, 42, 0.95) 0%, rgba(11, 25, 51, 0.86) 40%, rgba(11, 25, 51, 0.45) 75%, rgba(27, 59, 108, 0.3) 100%);
}

.hero-inner {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.hero-inner > * {
    max-width: 760px;
    animation: rise 0.9s var(--ease) both;
}

.hero-logo {
    width: min(100%, 480px);
    margin-bottom: 1.75rem;
}

.hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 24px rgba(123, 211, 218, 0.25));
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 500;
    line-height: 1.45;
    color: var(--on-dark);
    margin-bottom: 0.5rem;
    text-wrap: balance;
    animation-delay: 0.15s;
}

.hero .btn-row { animation-delay: 0.3s; }

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(238, 245, 251, 0.5);
    border-radius: 14px;
    transition: border-color 0.2s ease;
}

.scroll-cue:hover { border-color: var(--teal-300); }

.scroll-cue span {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: var(--teal-300);
    border-radius: 2px;
    animation: cue 1.8s ease-in-out infinite;
}

@keyframes hero-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 640px) {
    .hero::after {
        background: linear-gradient(180deg, rgba(7, 18, 42, 0.8) 0%, rgba(11, 25, 51, 0.82) 60%, var(--navy-900) 100%);
    }
}

/* ===== PAGE HERO (top banner on every page but the homepage) ===== */

.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(3rem, 6vw, 4.5rem);
    color: var(--on-dark);
    background: var(--navy-900);
    overflow: hidden;
    isolation: isolate;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('../images/hero-skyline.jpg') 68% 40% / cover no-repeat;
    opacity: 0.35;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(50rem 24rem at 90% 0%, rgba(123, 211, 218, 0.12), transparent 60%),
        linear-gradient(100deg, rgba(7, 18, 42, 0.97) 0%, rgba(11, 25, 51, 0.9) 50%, rgba(11, 25, 51, 0.7) 100%);
}

.page-hero .container > * { max-width: 780px; animation: rise 0.8s var(--ease) both; }
.page-hero .container > :nth-child(2) { animation-delay: 0.06s; }
.page-hero .container > :nth-child(3) { animation-delay: 0.12s; }
.page-hero .container > :nth-child(4) { animation-delay: 0.18s; }

.page-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.page-lead {
    margin-top: 1rem;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--on-dark-muted);
}

.page-hero .btn-row { margin-top: 1.75rem; }

/* confirmation page: hero fills the screen so the footer doesn't ride up */
.page-hero-full { min-height: 72vh; display: flex; align-items: center; }
.page-hero-full .container { width: 100%; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-300);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--on-dark-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover { color: var(--teal-300); }

.page-hero .back-link + .eyebrow { display: flex; }

@media (max-height: 640px) { .scroll-cue { display: none; } }

/* ===== SHARED SECTION STYLES ===== */

.section { padding: var(--section-pad) 0; }

.section-tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }

/* full-width group photo (club photo on home, exec board photo) */
.group-photo {
    max-width: 760px;
    margin: clamp(2rem, 5vw, 3rem) auto 0;
}

.group-photo-top { margin-top: 0; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.group-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.group-photo figcaption {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-muted);
}

/* two photos side by side (callout photos on About) */
.photo-pair {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    max-width: 1020px;
    margin: clamp(2rem, 5vw, 3rem) auto 0;
}

.photo-pair figure { margin: 0; }

.photo-pair img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.photo-pair-caption {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-muted);
}

@media (max-width: 640px) {
    .photo-pair { grid-template-columns: 1fr; }
}

.section-light { background: var(--surface); color: var(--ink); }
.section-white { background: var(--card); color: var(--ink); border-block: 1px solid var(--line); }
.section-light .section-title,
.section-white .section-title { color: var(--ink); }

.section-dark {
    position: relative;
    background:
        radial-gradient(60rem 30rem at 85% 0%, rgba(123, 211, 218, 0.08), transparent 60%),
        radial-gradient(50rem 30rem at 0% 100%, rgba(27, 59, 108, 0.6), transparent 60%),
        var(--navy-900);
    color: var(--on-dark);
}

.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

/* short teal bar under every section heading */
.section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 1rem auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--teal-300), var(--navy-700));
}

.section-dark .section-title::after { background: linear-gradient(90deg, var(--teal-300), var(--teal-200)); }

.section-lead {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--ink-muted);
}

.section-dark .section-lead { color: var(--on-dark-muted); }

/* ===== ABOUT SECTION ===== */

.about-intro {
    max-width: 780px;
    margin: 2rem auto 3.5rem;
    text-align: center;
    font-size: 1.125rem;
    color: var(--ink-muted);
}

.about-intro p + p { margin-top: 1.1rem; }

@media (max-width: 640px) {
    .about-intro { text-align: left; font-size: 1.05rem; }
}
.about-intro strong { color: var(--ink); }

.mv-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 760px) {
    .mv-grid { grid-template-columns: 1fr 1fr; }
}

.mv-card {
    position: relative;
    padding: 2.25rem 2rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.mv-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--teal-300), var(--navy-700));
}

.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.mv-card h2 {
    font-size: 1.35rem;
    color: var(--navy-700);
    margin-bottom: 0.9rem;
}

.mv-card p { color: var(--ink-muted); }
.mv-card p + p { margin-top: 0.9rem; }

/* ===== PILLARS SECTION ===== */

.pillars-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 3rem;
}

@media (min-width: 620px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }

.pillar-card {
    padding: 1.75rem 1.5rem 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(123, 211, 218, 0.16);
    border-radius: var(--radius);
    transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s var(--ease), background-color 0.35s ease;
}

.pillar-card:hover {
    transform: translateY(-6px);
    border-color: rgba(123, 211, 218, 0.55);
    background-color: rgba(123, 211, 218, 0.05);
    box-shadow: 0 20px 40px -18px rgba(123, 211, 218, 0.35);
}

.pillar-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.4rem;
}

.pillar-icon {
    width: 52px;
    height: 52px;
    padding: 12px;
    color: var(--teal-300);
    background: rgba(123, 211, 218, 0.12);
    border-radius: 14px;
    transition: transform 0.35s var(--ease), background-color 0.35s ease;
}

.pillar-card:hover .pillar-icon {
    transform: rotate(-6deg) scale(1.06);
    background: rgba(123, 211, 218, 0.2);
}

.pillar-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
    color: rgba(169, 189, 211, 0.45);
}

.pillar-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--on-dark-muted);
}

/* ===== TEAM SECTION ===== */

/* cards fill as many columns as fit, so the same grid works for 6 people or a whole team roster */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem 1.6rem;
    /* soft tinted band behind the portrait */
    background: linear-gradient(180deg, #e8f4f7 0, #e8f4f7 84px, var(--card) 84px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.team-photo-wrap {
    width: 128px;
    height: 128px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #e6edf5;
    border: 4px solid var(--card);
    box-shadow: 0 0 0 2px var(--line), 0 8px 20px -8px rgba(11, 25, 51, 0.35);
    transition: box-shadow 0.35s ease;
}

.team-card:hover .team-photo-wrap {
    box-shadow: 0 0 0 2px var(--teal-300), 0 10px 24px -8px rgba(21, 112, 122, 0.45);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.6s var(--ease);
}

.team-card:hover .team-photo { transform: scale(1.06); }

.team-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 1.1rem;
}

.team-body h2,
.leader-card h3 {
    font-size: 1.25rem;
    color: var(--ink);
}

.team-title {
    margin-top: 0.3rem;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-700);
}

.team-major {
    margin-top: 0.15rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--navy-700);
}

.team-bio {
    margin: 0.9rem 0 1.25rem;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.team-linkedin {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-700);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.team-linkedin:hover {
    background: var(--navy-700);
    border-color: var(--navy-700);
    color: #fff;
}

/* ===== OUR WORK SECTION ===== */
/* cards and lists are filled in by script.js from JavaScript/work-data.js */

.stats-strip {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto 3rem;
}

@media (min-width: 760px) { .stats-strip { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.4rem 1rem;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.stat-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--navy-700), var(--teal-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-muted);
}

.work-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 760px) { .work-grid { grid-template-columns: 1fr 1fr; } }

.work-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem 2rem 1.6rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* same accent bar as the mission and vision cards */
.work-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--teal-300), var(--navy-700));
}

.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.work-sector {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-700);
}

.work-card h3 {
    margin: 0.4rem 0 0.8rem;
    font-size: 1.3rem;
    color: var(--navy-700);
}

.work-summary { color: var(--ink-muted); }

.work-label {
    margin: 1.25rem 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
}

.chip-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-list li {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.35;
    border-radius: 999px;
}

.work-tags li {
    color: var(--navy-700);
    background: #e8f4f7;
    border: 1px solid #cde8ec;
}

.work-meta {
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-muted);
}

/* gives the meta line some room above it when the card is short */
.work-tags { margin-bottom: 0.25rem; }
.work-card .work-tags { margin-top: 1.1rem; }

.work-noscript {
    text-align: center;
    color: var(--ink-muted);
}

/* ===== JOIN SECTION ===== */

.join-panel {
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(27, 59, 108, 0.65), rgba(11, 25, 51, 0.65));
    border: 1px solid rgba(123, 211, 218, 0.22);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.join-panel .section-lead { margin-bottom: 2.5rem; }

.join-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 860px) {
    .join-grid { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
}

.join-grid h3 {
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
    color: var(--teal-300);
}

.join-grid p { color: var(--on-dark-muted); }

.check-list { list-style: none; }

.check-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.55rem 0;
    color: var(--on-dark);
}

.check-list .icon {
    width: 24px;
    height: 24px;
    padding: 4px;
    margin-top: 0.05rem;
    color: var(--navy-950);
    background: var(--teal-300);
    border-radius: 50%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

/* ===== ENGAGEMENT TIMELINE (consulting.html) ===== */

/* phones: a vertical line with the steps down the right of it */
.htimeline {
    list-style: none;
    position: relative;
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.htimeline::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 9px;
    width: 2px;
    background: linear-gradient(180deg, var(--teal-300), rgba(123, 211, 218, 0.2));
}

.htl-step {
    position: relative;
    display: grid;
    grid-template-columns: 20px 1fr;
    column-gap: 1.25rem;
}

.htl-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    border-radius: 50%;
    background: var(--navy-900);
    border: 2px solid var(--teal-300);
}

.is-milestone .htl-dot {
    background: var(--teal-300);
    box-shadow: 0 0 0 5px rgba(123, 211, 218, 0.18);
}

.htl-weeks {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-300);
}

.htl-card { grid-column: 2; grid-row: 2; }

.htl-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.htl-card p {
    font-size: 0.93rem;
    color: var(--on-dark-muted);
}

/* wide screens: one long line, steps alternating above and below it */
@media (min-width: 1000px) {
    .htimeline {
        grid-template-columns: repeat(6, 1fr);
        gap: 0 1rem;
        max-width: none;
    }

    .htimeline::before {
        top: 50%;
        bottom: auto;
        left: -1rem;
        right: -1rem;
        width: auto;
        height: 2px;
        margin-top: -1px;
        background: linear-gradient(90deg, rgba(123, 211, 218, 0.2), var(--teal-300) 8%, var(--teal-300) 92%, rgba(123, 211, 218, 0.2));
    }

    /* every step has equal top and bottom halves, so the dots all sit on the line */
    .htl-step {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 3.5rem 1fr;
        justify-items: center;
        text-align: center;
    }

    .htl-dot {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        margin: 0;
        position: relative;
        z-index: 1;
    }

    /* cards are wider than their column; neighbours sit on the other side of the line so they never meet */
    .htl-card {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
        width: 155%;
        padding: 1rem 1.1rem;
        margin-bottom: 0.4rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(123, 211, 218, 0.18);
        border-radius: var(--radius-sm);
    }

    .htl-step:first-child .htl-card { justify-self: start; width: 135%; }
    .htl-step:last-child .htl-card { justify-self: end; width: 135%; }

    /* stem from the card to the dot */
    .htl-step::after {
        content: "";
        position: absolute;
        left: 50%;
        top: calc(50% - 2.15rem);
        width: 2px;
        height: calc(2.15rem - 10px);
        margin-left: -1px;
        background: rgba(123, 211, 218, 0.45);
    }

    .htl-step:nth-child(even)::after { top: calc(50% + 10px); }

    .htl-weeks {
        grid-column: 1;
        grid-row: 3;
        align-self: start;
        padding-top: 0.2rem;
        font-size: 0.95rem;
    }

    .htl-step:nth-child(even) .htl-card { grid-row: 3; align-self: start; margin: 0.4rem 0 0; }
    .htl-step:nth-child(even) .htl-weeks { grid-row: 1; align-self: end; padding: 0 0 0.2rem; }
}

/* ===== OFFER / CATEGORY CARDS (consulting + partner) ===== */

.offer-grid {
    display: grid;
    gap: 1.25rem;
}

.section-title + .offer-grid { margin-top: 3rem; }

@media (min-width: 620px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .offer-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .offer-grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* five cards: 3 + 2, centred */
@media (min-width: 1000px) {
    .offer-grid-5 { grid-template-columns: repeat(6, 1fr); }
    .offer-grid-5 > * { grid-column: span 2; }
    .offer-grid-5 > :nth-child(4) { grid-column: 2 / span 2; }
}

.offer-card {
    padding: 1.75rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.offer-card .pillar-icon,
.path-card .pillar-icon {
    margin-bottom: 1.1rem;
    color: var(--teal-700);
    background: #e8f4f7;
}

.offer-card h3 {
    font-size: 1.1rem;
    color: var(--navy-700);
    margin-bottom: 0.5rem;
}

.offer-card p { font-size: 0.95rem; color: var(--ink-muted); }

.inline-link {
    color: var(--teal-700);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(21, 112, 122, 0.35);
}

.inline-link:hover { text-decoration-color: currentColor; }

/* ===== TEAM STRUCTURE (consulting.html) ===== */

.org {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
}

.org-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.75rem;
    text-align: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
}

.org-node span {
    margin-top: 0.2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
}

.org-top { color: var(--on-dark); background: var(--navy-900); }
.org-top span { color: var(--on-dark-muted); }
.org-mid { color: var(--navy-950); background: var(--teal-300); }
.org-mid span { color: var(--navy-800); }

.org-line {
    width: 2px;
    height: 1.75rem;
    background: var(--line);
    background: linear-gradient(180deg, var(--navy-700), var(--teal-300));
}

.org-team {
    list-style: none;
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
    width: 100%;
    padding-top: 1.25rem;
}

/* bar joining the five consultants */
.org-team::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--teal-300);
}

.org-team li {
    position: relative;
    padding: 0.75rem 0.25rem;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-700);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.org-team li::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 2px;
    height: 1.25rem;
    margin-left: -1px;
    background: var(--teal-300);
}

.org-team .icon { display: none; }

/* phones: a person icon per consultant instead of the word */
@media (max-width: 560px) {
    .org-team li { display: grid; place-items: center; padding: 0.7rem 0; }
    .org-team .icon { display: block; width: 22px; height: 22px; color: var(--teal-700); }
    .org-team span { display: none; }
}

/* ===== CONSULTING TEAM ROSTERS (light background) ===== */

.rosters { margin-top: var(--section-pad); }

.roster-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 860px) { .roster-grid { grid-template-columns: 1fr 1fr; } }

.roster-card {
    padding: 1.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.roster-card h3 {
    margin: 0.35rem 0 1.25rem;
    font-size: 1.2rem;
    color: var(--navy-700);
}

.roster-list { list-style: none; }

.roster-member {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
}

.roster-member:first-child { border-top: none; padding-top: 0; }

/* initials avatar, a headshot sits on top of it when there is one */
.avatar {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--teal-200);
    background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
}

.avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-lg {
    width: 100%;
    height: 100%;
    font-size: 2.2rem;
}

.is-pm .avatar {
    color: var(--navy-950);
    background: linear-gradient(135deg, var(--teal-300), var(--teal-200));
}

.roster-info { min-width: 0; }

.roster-name { font-weight: 600; line-height: 1.3; }

.roster-role {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.is-pm .roster-role { color: var(--teal-700); }

.roster-details {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ink-muted);
}

.roster-details span + span::before { content: " · "; }

/* ===== MAJORS STRIP ===== */

.disciplines {
    margin-top: 3.5rem;
    text-align: center;
}

.disciplines h3 {
    margin-bottom: 1.1rem;
    font-size: 1.1rem;
    color: var(--navy-700);
}

.disciplines .chip-list {
    justify-content: center;
    max-width: 860px;
    margin: 0 auto;
}

.disciplines .chip-list li {
    color: var(--ink-muted);
    background: var(--surface);
    border: 1px solid var(--line);
}

/* ===== LINKED CARDS, CTA ===== */

.pillar-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.pillar-link p { margin-bottom: 1.25rem; }

.card-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--teal-300);
}

.card-more .icon,
.text-link .icon { transition: transform 0.25s var(--ease); }

a:hover > .card-more .icon,
.text-link:hover .icon { transform: translateX(4px); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--teal-700);
    text-decoration: none;
}

.section-dark .text-link { color: var(--teal-300); }

.section-more {
    margin-top: 2.25rem;
    text-align: center;
}

.cta-panel {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.25rem);
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(27, 59, 108, 0.65), rgba(11, 25, 51, 0.65));
    border: 1px solid rgba(123, 211, 218, 0.22);
}

.cta-panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.cta-panel p {
    max-width: 560px;
    margin: 0.9rem auto 0;
    color: var(--on-dark-muted);
}

.cta-panel .btn-row { justify-content: center; }

/* ===== RESEARCH CARDS ===== */

.research-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 700px) { .research-grid { grid-template-columns: 1fr 1fr; } }

/* theme is a small label up top, the topic is the big line under it */
.research-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 1.75rem 1.75rem 1.5rem;
    color: var(--ink);
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}

.research-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal-300), var(--navy-700));
}

.research-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-300); }

.research-theme {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700);
}

.research-theme .icon { width: 1.35em; height: 1.35em; }

.research-topic {
    margin: 0.9rem 0 0.75rem;
    font-family: var(--font-body);
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--navy-700);
    text-wrap: balance;
}

.research-blurb {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.research-card .card-more { color: var(--teal-700); }

.research-grid-dark .research-card {
    color: var(--on-dark);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border-color: rgba(123, 211, 218, 0.16);
    box-shadow: none;
}

.research-grid-dark .research-card:hover { border-color: rgba(123, 211, 218, 0.55); box-shadow: 0 20px 40px -18px rgba(123, 211, 218, 0.35); }
.research-grid-dark .research-theme,
.research-grid-dark .card-more { color: var(--teal-300); }
.research-grid-dark .research-topic { color: var(--on-dark); }
.research-grid-dark .research-blurb { color: var(--on-dark-muted); }

.page-hero .research-theme { color: var(--teal-300); }

/* ===== RESEARCH LEADERSHIP ===== */

.leader-grid {
    display: grid;
    gap: 1.25rem;
    max-width: 880px;
    margin: 0 auto;
}

@media (min-width: 760px) { .leader-grid { grid-template-columns: 1fr 1fr; } }

.leader-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.leader-card .team-photo-wrap { width: 104px; height: 104px; }

.leader-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

@media (max-width: 420px) {
    .leader-card { flex-direction: column; text-align: center; }
    .leader-links { justify-content: center; }
}

/* ===== RESEARCH PROJECT PAGES ===== */

.project-layout {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .project-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; }
    .project-aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

.project-block + .project-block { margin-top: 2.5rem; }

.project-block p { color: var(--ink-muted); font-size: 1.05rem; }
.project-block p + p { margin-top: 1rem; }

.project-label {
    margin-bottom: 0.75rem;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700);
}

.project-label-gap { margin-top: 1.25rem; }

.project-block .project-question {
    padding: 1.5rem 1.6rem;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--navy-700);
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal-300);
    border-radius: var(--radius-sm);
}

.project-aside { display: grid; gap: 1rem; }

.aside-card {
    padding: 1.4rem 1.4rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.aside-card p { color: var(--ink-muted); font-size: 0.95rem; }

.project-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.aside-card .project-status { color: var(--ink); }

.status-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2fb37a;
    box-shadow: 0 0 0 4px rgba(47, 179, 122, 0.18);
}

.project-lead-name { font-weight: 600; color: var(--ink); }

.member-list {
    list-style: none;
    display: grid;
    gap: 0.3rem;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.aside-cta {
    color: var(--on-dark);
    background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
    border-color: transparent;
    --focus: var(--teal-300);
}

.aside-cta .project-label { color: var(--teal-300); }
.aside-cta p { color: var(--on-dark-muted); margin-bottom: 1.1rem; }
.aside-cta .btn { width: 100%; justify-content: center; padding-inline: 1rem; }

.project-photo { padding-top: clamp(2.5rem, 5vw, 3.5rem); background: var(--surface); }

.team-photo-figure img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* ===== ABOUT PAGE ===== */

.acronym-grid {
    list-style: none;
    display: grid;
    gap: 1rem;
    margin-top: 3rem;
}

@media (min-width: 560px) { .acronym-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .acronym-grid { grid-template-columns: repeat(5, 1fr); } }

.acronym-card {
    padding: 1.5rem 1.4rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(123, 211, 218, 0.16);
    border-radius: var(--radius);
}

.acronym-letter {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--teal-300);
}

.acronym-card h3 { margin: 0.6rem 0 0.4rem; font-size: 1.1rem; }
.acronym-card p { font-size: 0.92rem; color: var(--on-dark-muted); }

.story {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--ink-muted);
}

.story .section-title { margin-bottom: 2rem; }
.story p + p { margin-top: 1.1rem; }

.paths-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 820px) { .paths-grid { grid-template-columns: 1fr 1fr; } }

.path-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.path-card h3 { font-size: 1.4rem; color: var(--navy-700); margin-bottom: 0.6rem; }
.path-card > p { color: var(--ink-muted); }
.path-card .check-list { margin: 1.1rem 0 1.5rem; }
.path-card .check-list li { color: var(--ink); }
.path-card .text-link { margin-top: auto; }

/* ===== PILLARS PAGE ===== */

.pillar-rows {
    display: grid;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.pillar-row {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.pillar-row-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.pillar-row .pillar-icon { color: var(--teal-700); background: #e8f4f7; }
.pillar-row .pillar-num { color: var(--line); font-size: 1.3rem; }

.pillar-row h2 { font-size: 1.5rem; color: var(--navy-700); margin-bottom: 0.6rem; }
.pillar-row p { color: var(--ink-muted); margin-bottom: 1rem; }

@media (max-width: 560px) {
    .pillar-row { flex-direction: column; gap: 1rem; padding: 1.5rem; }
    .pillar-row-icon { flex-direction: row; justify-content: space-between; }
}

/* ===== PARTNER PAGE ===== */

.benefit-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 3rem;
}

@media (min-width: 760px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit {
    padding: 1.75rem 1.5rem;
    border-top: 3px solid var(--teal-300);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.benefit h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.benefit p { color: var(--on-dark-muted); font-size: 0.95rem; }

.inquiry-form {
    display: grid;
    gap: 1.1rem 1.25rem;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
    .inquiry-form { grid-template-columns: 1fr 1fr; }
    .form-row-full { grid-column: 1 / -1; }
}

.form-row { display: flex; flex-direction: column; gap: 0.4rem; }

.form-row label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.optional { font-weight: 400; color: var(--ink-muted); }

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row textarea { resize: vertical; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--teal-700);
    box-shadow: 0 0 0 3px rgba(21, 112, 122, 0.18);
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.75rem 1.25rem; }

.form-status { flex: 1 1 16rem; margin: 0; font-size: 0.95rem; font-weight: 500; color: var(--teal-700); }
.form-status:empty { display: none; }
.form-status.is-error { color: #b42318; }

.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* primary buttons on light backgrounds use the darker navy so they stand out */
.section-light .btn-primary,
.section-white .btn-primary {
    background: var(--navy-700);
    color: #fff;
    box-shadow: 0 6px 20px -8px rgba(27, 59, 108, 0.6);
}

.section-light .btn-primary:hover,
.section-white .btn-primary:hover { background: var(--navy-800); }

.section-light .aside-cta .btn-primary {
    background: var(--teal-300);
    color: var(--navy-950);
}

.section-light .aside-cta .btn-primary:hover { background: var(--teal-200); }

/* ===== CONTACT LINK ===== */

.contact-email {
    color: var(--teal-700);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(21, 112, 122, 0.3);
    transition: text-decoration-color 0.2s ease;
}

.contact-email:hover { text-decoration-color: currentColor; }

/* ===== FOOTER ===== */

.site-footer {
    background: var(--navy-950);
    color: var(--on-dark-muted);
    padding-top: 3.5rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 760px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}

.footer-brand p {
    margin-top: 0.75rem;
    max-width: 320px;
}

.footer-brand .footer-org {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    color: var(--teal-200);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

@media (min-width: 760px) {
    .footer-links { flex-direction: column; }
}

.footer-links a,
.footer-email {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-email:hover { color: var(--teal-300); }

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(169, 189, 211, 0.25);
    color: var(--on-dark);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.social-links a:hover {
    background: var(--teal-300);
    border-color: var(--teal-300);
    color: var(--navy-950);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(169, 189, 211, 0.15);
    font-size: 0.85rem;
}

/* ===== SCROLL REVEAL ===== */
/* only hides content when JS is running, so the page still works without it */

.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .js .reveal { opacity: 1; transform: none; }
    .scroll-cue span { display: none; }
}
