/* ==========================================================================
   MASCC — Maruleng Affected Stakeholders & Community Consortium
   Main Stylesheet
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
    /* Brand Colors */
    --mascc-navy: #0e2c3f;
    --mascc-navy-dark: #082030;
    --mascc-navy-light: #1a3a52;
    --charcoal: #2a3340;
    --charcoal-soft: #3a4452;
    --warm-white: #f2efe8;
    --off-white: #efebe3;
    --pure-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #5d6975;
    --text-light: rgba(255, 255, 255, 0.85);
    --text-light-muted: rgba(255, 255, 255, 0.6);
    --border-light: rgba(14, 44, 63, 0.1);
    --border-dark: rgba(255, 255, 255, 0.1);

    --accent-teal: #1e7c8c;
    --accent-green: #5fa847;
    --accent-orange: #e87e35;
    --accent-orange-hover: #d96c25;

    /* Typography */
    --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Layout */
    --container-max: 1320px;
    --container-pad: clamp(1.25rem, 4vw, 3rem);
    --header-h: 152px;

    /* Animation */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.4s var(--ease);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--warm-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }
body.cursor-active, body.cursor-active * { cursor: none !important; }
body.cursor-active a, body.cursor-active button { cursor: none !important; }

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

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

/* ---------- 3. Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section { padding: clamp(4rem, 8vw, 8rem) 0; position: relative; }
.section-light { background: var(--warm-white); color: var(--text-dark); }
.section-dark { background: var(--mascc-navy); color: var(--text-light); }

/* Documents & Resources — slightly darker shade of the light section colour
   so the section reads as its own band without breaking the warm
   off-white palette. */
.section.section-light.documents-section { background: #e7e3d9; }

/* Section heading pattern with big number */
.section-heading {
    display: flex;
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-number {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 6.5rem);
    font-weight: 200;
    line-height: 1;
    color: var(--text-light-muted);
    letter-spacing: -0.02em;
    transition: color 0.6s var(--ease);
}
.section-light .section-number { color: rgba(14, 44, 63, 0.18); }
.section-heading.in-view .section-number { color: var(--accent-orange); }
.section-heading-inner { display: flex; flex-direction: column; gap: 1rem; }
.section-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: inherit;
    line-height: 1.15;
}
.section-rule {
    width: 56px;
    height: 3px;
    background: var(--accent-orange);
    display: block;
    transition: width 0.7s var(--ease);
}
.section-heading.in-view .section-rule { width: 120px; }
.section-sub {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    color: var(--text-muted);
    max-width: 640px;
    margin-top: 0.5rem;
    line-height: 1.65;
}
.section-dark .section-sub { color: rgba(255,255,255,0.7); }

/* Section heading row (heading + side CTA) */
.section-heading-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-heading-row .section-heading { margin-bottom: 0; }

/* ---------- 4. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 0.75rem;
    padding: 0.95rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.btn span[aria-hidden] { transition: transform var(--transition); display: inline-block; }
.btn:hover span[aria-hidden] { transform: translateX(4px); }

.btn-primary {
    background: var(--mascc-navy);
    color: var(--pure-white);
}
.btn-primary:hover {
    background: var(--mascc-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 44, 63, 0.25);
}

.btn-accent {
    background: var(--accent-orange);
    color: var(--pure-white);
}
.btn-accent:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 126, 53, 0.35);
}

.btn-ghost {
    background: transparent;
    color: currentColor;
    border-color: currentColor;
}
.btn-ghost:hover {
    background: currentColor;
    color: var(--mascc-navy);
}
.section-dark .btn-ghost:hover { color: var(--mascc-navy); }

.btn-svg { margin-right: 4px; flex-shrink: 0; }

/* ---------- 5. Preloader (modern, animated) ---------- */
.preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0a1f2d 0%, #143a52 45%, #051621 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader.hidden .preloader-sweep { transform: translateY(-100%); }

/* Animated background: radial spotlight + faint grid */
.preloader-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.preloader-spotlight {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 126, 53, 0.22) 0%, rgba(232, 126, 53, 0.04) 35%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: preloader-spotlight 4s ease-in-out infinite;
    filter: blur(8px);
}
.preloader-grid {
    position: absolute;
    inset: -20px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.85) 0%, transparent 65%);
            mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.85) 0%, transparent 65%);
    animation: preloader-grid-pan 18s linear infinite;
    opacity: 0.7;
}

/* Bottom-to-top reveal sweep that runs as the page hands off */
.preloader-sweep {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, rgba(14, 44, 63, 0.85) 60%, #061821 100%);
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1) 0.25s;
    pointer-events: none;
}

.preloader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: preloader-content-in 1.2s var(--ease) 0.1s both;
}

/* Triple orbital rings + the logo in the centre */
.preloader-logo-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader-ring {
    transform-box: fill-box;
    transform-origin: center;
    fill: none;
    animation: preloader-ring-spin linear infinite;
}
.preloader-ring--1 {
    stroke: var(--accent-orange);
    stroke-dasharray: 276 276;
    animation-duration: 1.6s;
}
.preloader-ring--2 {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-dasharray: 200 477;
    animation-duration: 2.2s;
    animation-direction: reverse;
}
.preloader-ring--3 {
    stroke: rgba(232, 126, 53, 0.7);
    stroke-dasharray: 140 402;
    animation-duration: 3.1s;
}
.preloader-ring--4 {
    stroke: rgba(255, 255, 255, 0.4);
    stroke-dasharray: 90 326;
    animation-duration: 4.2s;
    animation-direction: reverse;
}

/* Smooth glow halo behind the logo — opacity only, no scale jump */
.preloader-logo-wrap::before {
    content: "";
    position: absolute;
    inset: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 126, 53, 0.35) 0%, transparent 70%);
    animation: preloader-halo 2.4s ease-in-out infinite;
    z-index: 0;
}

.preloader-logo {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: preloader-halo 2.6s ease-in-out infinite;
}
.preloader-logo-img,
.preloader-logo-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* Orbital SVG sits absolutely behind the logo so rings stay perfectly centered */
.preloader-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.preloader-logo-svg .preloader-logo-ring  { animation: preloader-svg-ring  22s linear infinite; transform-origin: 50% 50%; }
.preloader-logo-svg .preloader-logo-leaf  { animation: preloader-svg-leaf  5.5s ease-in-out infinite; transform-origin: 50% 50%; }
.preloader-logo-svg .preloader-logo-core  { animation: preloader-svg-core  2.4s ease-in-out infinite; transform-origin: 50% 50%; }

.preloader-text-wrap {
    text-align: center;
    color: var(--pure-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}
.preloader-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    animation: preloader-text-in 1.1s var(--ease) 0.55s both;
}
.preloader-tagline {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    animation: preloader-text-in 1.1s var(--ease) 0.85s both;
}

/* Sliding progress bar */
.preloader-progress {
    margin-top: 0.5rem;
    width: 220px;
    max-width: 60vw;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.preloader-progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, transparent 0%, var(--accent-orange) 50%, transparent 100%);
    box-shadow: 0 0 12px rgba(232, 126, 53, 0.6);
    animation: preloader-progress 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.preloader-dots {
    display: inline-flex;
    gap: 0.4rem;
    margin-top: 0.25rem;
}
.preloader-dots > span {
    width: 7px; height: 7px;
    background: var(--accent-orange);
    border-radius: 50%;
    opacity: 0.4;
    animation: preloader-dot 1.4s ease-in-out infinite;
}
.preloader-dots > span:nth-child(2) { animation-delay: 0.2s; }
.preloader-dots > span:nth-child(3) { animation-delay: 0.4s; }

/* ---------- Preloader keyframes ---------- */
@keyframes preloader-ring-spin { to { transform: rotate(360deg); } }
@keyframes preloader-spotlight {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.85; }
    50%      { transform: translate(-50%, -50%) scale(1.18); opacity: 1;    }
}
@keyframes preloader-grid-pan {
    0%   { transform: translate3d(0,    0,    0); }
    100% { transform: translate3d(48px, 48px, 0); }
}
@keyframes preloader-content-in {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes preloader-text-in {
    from { opacity: 0; transform: translateY(14px); letter-spacing: 0.6em; }
    to   { opacity: 1; transform: translateY(0);    letter-spacing: 0.32em;}
}
@keyframes preloader-logo-breathe {
    0%, 100% { transform: scale(1);    }
    50%      { transform: scale(1.08); }
}
@keyframes preloader-halo {
    0%, 100% { opacity: 0.45; }
    50%       { opacity: 0.9;  }
}
@keyframes preloader-progress {
    0%   { width: 0;   }
    100% { width: 100%; }
}
@keyframes preloader-dot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1;   }
}
@keyframes preloader-svg-ring  { to { transform: rotate(360deg); } }
@keyframes preloader-svg-leaf  {
    0%, 100% { transform: rotate(-6deg) scale(1);    }
    50%      { transform: rotate(6deg)  scale(1.06); }
}
@keyframes preloader-svg-core  {
    0%, 100% { transform: scale(1);    opacity: 1;   }
    50%      { transform: scale(1.35); opacity: 0.85;}
}

/* Disable preloader motion when the user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .preloader-spotlight,
    .preloader-grid,
    .preloader-ring,
    .preloader-logo,
    .preloader-logo-wrap::before,
    .preloader-progress-bar,
    .preloader-dots > span,
    .preloader-logo-svg .preloader-logo-ring,
    .preloader-logo-svg .preloader-logo-leaf,
    .preloader-logo-svg .preloader-logo-core {
        animation: none !important;
    }
    .preloader-progress-bar { width: 100%; }
}

/* ---------- 6. Custom Cursor ---------- */
.cursor-dot, .cursor-ring, .cursor-label {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
}
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--accent-orange);
    border-radius: 50%;
    margin: -3px 0 0 -3px;
    transition: width 0.2s var(--ease), height 0.2s var(--ease), margin 0.2s var(--ease), background 0.2s var(--ease);
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid rgba(232, 126, 53, 0.6);
    border-radius: 50%;
    margin: -18px 0 0 -18px;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.cursor-label {
    margin: -18px 0 0 -50px;
    width: 100px; text-align: center;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--pure-white);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}
.cursor-label::before {
    content: attr(data-text);
    display: inline-block;
    background: var(--mascc-navy);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
}
.cursor-ring.hover {
    width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    border-color: var(--accent-orange);
    background: rgba(232, 126, 53, 0.08);
}
.cursor-ring.view {
    width: 80px; height: 80px;
    margin: -40px 0 0 -40px;
    background: rgba(232, 126, 53, 0.95);
    border-color: var(--accent-orange);
}
.cursor-ring.view ~ .cursor-label { opacity: 1; }
.cursor-ring.download { background: rgba(30, 124, 140, 0.95); border-color: var(--accent-teal); }
.cursor-ring.download ~ .cursor-label { opacity: 1; }

/* Hide cursor ONLY on real touch-only devices (pointer: coarse + hover: none) */
@media (pointer: coarse) and (hover: none) {
    .cursor-dot, .cursor-ring, .cursor-label { display: none !important; }
    body, body * { cursor: auto !important; }
}

/* ---------- 7. Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--mascc-navy);
    z-index: 100;
    transition: height 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
    height: 84px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    background: rgba(14, 44, 63, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
/* Compact scrolled header: shrink the logo (and its padding) to match
   the reduced header height instead of just letting it fill 100%. */
.site-header.scrolled .header-logo {
    padding: 6px 0;
}
.site-header.scrolled .header-logo-img {
    max-height: 62px;
}
.site-header.scrolled .logo-mark {
    width: 62px;
    height: 62px;
}
/* Sticky/compact header: drop the two membership CTAs and the accent
   divider so only the logo + nav remain, collapsing smoothly rather
   than jumping. */
.site-header .header-cta,
.site-header .header-divider {
    transition: opacity 0.25s var(--ease), max-width 0.3s var(--ease),
        max-height 0.3s var(--ease), margin 0.3s var(--ease),
        padding 0.3s var(--ease), transform 0.25s var(--ease);
}
.site-header.scrolled .header-cta {
    opacity: 0;
    max-width: 0;
    padding: 0.7rem 0;
    margin: 0;
    overflow: hidden;
    transform: translateY(-6px) scale(0.92);
    pointer-events: none;
}
.site-header.scrolled .header-divider {
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
}
/* Once the CTA row is empty, hand its half of the header over to the
   nav so the links stay vertically centred in the full compact height. */
.header-actions,
.primary-nav {
    transition: flex-basis 0.3s var(--ease);
}
.site-header.scrolled .header-actions {
    flex: 0 0 0%;
    min-height: 0;
    overflow: hidden;
}
.site-header.scrolled .primary-nav {
    flex: 1 1 100%;
}

.header-inner {
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--pure-white);
    flex-shrink: 0;
    align-self: stretch;            /* fill the full height of .header-inner */
    padding: 10px 0;
    transition: padding 0.3s var(--ease);
    position: relative;
    animation: logo-float 4s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

.header-logo:hover {
    animation: logo-float 4s ease-in-out infinite, logo-glow 2s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% {
        filter: drop-shadow(0 0 0 rgba(232, 126, 53, 0));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(232, 126, 53, 0.4));
    }
}

/* Logo fills available header height — scales with the breakpoint */
.logo-mark {
    width: clamp(100px, 12vh, 112px);
    height: clamp(100px, 12vh, 112px);
    flex-shrink: 0;
    transition: width 0.3s var(--ease), height 0.3s var(--ease);
    overflow: visible;              /* let animations render outside the box */
    transform-origin: 50% 50%;
    animation: logo-mark-enter 1.1s var(--ease) 0.15s both;
}
.logo-ring {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: logo-ring-spin 22s linear infinite;
}
.logo-leaf {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: logo-leaf-sway 5.5s ease-in-out infinite;
}
.logo-core {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: logo-core-pulse 2.4s ease-in-out infinite;
}

.header-logo:hover .logo-mark {
    animation: logo-mark-hover 0.7s var(--ease) both;
}
.header-logo:hover .logo-leaf {
    animation: logo-leaf-sway 1.2s ease-in-out infinite;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.logo-text span {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
    line-height: 1.35;
}

/* Right side stack: CTAs occupy the top half of the header, nav the
   bottom half — each row is vertically centred within its own 50%. */
.header-right {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0;
    position: relative;
    height: 100%;
}
.header-actions,
.primary-nav {
    flex: 1 1 50%;
    min-height: 0;
    display: flex;
    align-items: center;
}

/* Light horizontal divider between the CTA row and the nav row — pinned
   at the midline rather than taking up its own flex row, so the two
   halves stay exactly 50/50. */
.header-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0)   0%,
        rgba(255, 255, 255, 0.18) 25%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0.18) 75%,
        rgba(255, 255, 255, 0)   100%
    );
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 1;
}
.header-divider::after {
    /* Subtle orange accent dot at the centre of the divider */
    content: "";
    position: absolute;
    top: 50%;
    left: 15%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-orange);
    transform: translateY(-50%);
    animation:
        divider-dot-slide 3.5s ease-in-out infinite,
        divider-pulse     3.6s ease-in-out infinite;
    box-shadow: 0 0 0 3px rgba(232, 126, 53, 0.18);
}

.primary-nav {
    display: flex;
    justify-content: flex-end;
}
.primary-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(0.85rem, 2vw, 1.85rem);
}

/* ---------- Logo keyframes ---------- */
@keyframes logo-mark-enter {
    0%   { opacity: 0; transform: scale(0.55) rotate(-25deg); }
    60%  { opacity: 1; transform: scale(1.08) rotate(6deg);  }
    100% { opacity: 1; transform: scale(1)    rotate(0);     }
}
@keyframes logo-mark-breathe {
    0%, 100% { transform: scale(1);     }
    50%      { transform: scale(1.04);  }
}
@keyframes logo-mark-hover {
    0%   { transform: scale(1)    rotate(0);   }
    35%  { transform: scale(1.18) rotate(8deg); }
    70%  { transform: scale(0.96) rotate(-4deg);}
    100% { transform: scale(1.06) rotate(0);   }
}
@keyframes logo-ring-spin {
    0%   { transform: rotate(0);   }
    100% { transform: rotate(360deg); }
}
@keyframes logo-leaf-sway {
    0%, 100% { transform: rotate(-6deg) scale(1);    }
    25%      { transform: rotate(6deg)  scale(1.06); }
    50%      { transform: rotate(-4deg) scale(1);    }
    75%      { transform: rotate(8deg)  scale(1.04); }
}
@keyframes logo-core-pulse {
    0%, 100% { transform: scale(1);    opacity: 1;   }
    50%      { transform: scale(1.35); opacity: 0.85;}
}
@keyframes divider-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(232, 126, 53, 0.18); }
    50%      { box-shadow: 0 0 0 6px rgba(232, 126, 53, 0.06); }
}
@keyframes divider-dot-slide {
    0%, 100% { left: 15%; }
    50%       { left: 85%;  }
}

/* Respect users' reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .logo-mark, .logo-ring, .logo-leaf, .logo-core,
    .header-logo:hover .logo-mark, .header-logo:hover .logo-leaf {
        animation: none !important;
    }
    .header-divider::after { animation: none !important; }
}
.nav-link {
    position: relative;
    color: rgba(255,255,255,0.78);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.5rem 0;
    transition: color var(--transition);
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--accent-orange);
    transition: transform 0.35s var(--ease);
    transform-origin: center;
}
.nav-link:hover, .nav-link.active {
    color: var(--pure-white);
}
.nav-link:hover::after, .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}
.nav-link.active::after {
    background: var(--accent-orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 4px 6px;
}
.lang-btn {
    color: rgba(255,255,255,0.6);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border-radius: 3px;
    transition: color var(--transition), background var(--transition);
}
.lang-btn.active {
    color: var(--pure-white);
    background: rgba(232, 126, 53, 0.2);
}
.lang-divider { color: rgba(255,255,255,0.3); font-size: 0.75rem; }

.header-cta {
    background: var(--accent-orange);
    color: var(--pure-white);
    padding: 0.7rem 1.15rem;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.header-cta .cta-icon { transition: transform var(--transition); display: inline-flex; align-items: center; }
.header-cta:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 126, 53, 0.35);
}
.header-cta:hover .cta-icon { transform: translateX(3px); }

/* Universal icon-in-cta styling — keeps mycons SVGs vertically centred
   inside any button or anchor that wraps its label + icon span. */
.cta-icon,
.btn-arrow,
.btn-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    vertical-align: middle;
    margin-left: 0.25rem;
}
.cta-icon .mc-svg,
.btn-arrow .mc-svg,
.btn-icon .mc-svg {
    display: block;
}
.btn:hover .cta-icon,
.btn:hover .btn-arrow,
.header-cta:hover .cta-icon {
    transform: translateX(3px);
    transition: transform var(--transition);
}
.header-cta[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
    filter: grayscale(0.3);
}

.menu-toggle {
    display: none;
    width: 40px; height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
    z-index: 101;
}
.menu-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 8. Mobile Nav ---------- */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--mascc-navy);
    color: var(--pure-white);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
    overflow-y: auto;
    display: flex;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav-inner {
    width: 100%;
    padding: 5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 12rem;
}
.mobile-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu-close {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}
.mobile-nav-list ul { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav-list a {
    display: block;
    padding: 0.75rem 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--pure-white);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color var(--transition), padding var(--transition);
}
.mobile-nav-list a:hover { color: var(--accent-orange); padding-left: 0.5rem; }
.mobile-cta {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--pure-white);
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.3s var(--ease);
    position: sticky;
    overflow: hidden;
    text-transform: uppercase;
    z-index: 100;
}
.mobile-cta:first-of-type {
    background: linear-gradient(135deg, #e87e35 0%, #d46b1f 100%);
    box-shadow: 0 4px 15px rgba(232, 126, 53, 0.25);
}
.mobile-cta:last-of-type {
    background: linear-gradient(135deg, #1e7c8c 0%, #0e5566 100%);
    box-shadow: 0 4px 15px rgba(30, 124, 140, 0.25);
}
.mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 126, 53, 0.35);
}
.mobile-cta:last-of-type:hover {
    box-shadow: 0 8px 20px rgba(30, 124, 140, 0.35);
}
.mobile-cta:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.mobile-cta .cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
    transition: transform 0.3s var(--ease);
}
.mobile-cta:hover .cta-icon {
    transform: translateX(3px);
}
.lang-switch.mobile { align-self: flex-start; }

/* ---------- 9. Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--header-h);
    display: flex;
    flex-direction: column;
    color: var(--pure-white);
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(160deg, #0e2c3f 0%, #163e57 55%, #061821 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(160deg, #0e2c3f 0%, #143a52 50%, #051621 100%);
}
/* <picture> has no intrinsic box of its own — without an explicit size it
   collapses to the img's aspect ratio instead of filling .hero-bg, which
   left a blank strip below the image. Force it to fill the container so
   the img's height:100% has a definite reference to resolve against. */
.hero-bg picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 35%;
    animation: heroZoom 12s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: none;
}
.hero-graphic {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 720px;
    height: 720px;
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
    animation: heroSpin 80s linear infinite;
}
@keyframes heroSpin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Creative circle animations */
.hero-ring-outer {
    animation: ringRotateReverse 140s linear infinite;
    transform-origin: 300px 300px;
    opacity: 0.4;
}

.hero-ring-mid {
    animation: ringRotate 100s linear infinite;
    transform-origin: 300px 300px;
    opacity: 0.35;
}

.hero-ring-inner {
    animation: ringRotate 70s linear infinite;
    transform-origin: 300px 300px;
    opacity: 0.45;
}

.hero-ring-accent {
    animation: ringPulseScale 3s ease-in-out infinite, ringRotateFast 50s linear infinite;
    transform-origin: 300px 300px;
    opacity: 0.35;
}

.hero-ring-small {
    animation: ringRotateReverse 60s linear infinite, ringBreathe 4s ease-in-out infinite;
    transform-origin: 300px 300px;
    opacity: 0.3;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ringRotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes ringRotateFast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ringPulseScale {
    0%, 100% {
        opacity: 0.85;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes ringBreathe {
    0%, 100% {
        opacity: 0.6;
        r: 25;
    }
    50% {
        opacity: 0.9;
        r: 28;
    }
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: clamp(2rem, 6vw, 5rem);
    padding-bottom: 2rem;
}
.hero-text {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0    0   6px rgba(0,0,0,0.6);
}
.eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s var(--ease) 0.2s forwards;
}
.hero-headline {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    font-size: clamp(1.8rem, 4.6vw, 4.25rem);
    padding-bottom: 0.05em;
}
.hero-headline .line {
    display: block;
    padding-bottom: 0.08em;    /* keeps descenders inside the overflow:hidden reveal */
}
.hero-headline .line > span,
.hero-headline .line {
    display: inline-block;
    transform: translateY(110%);
    animation: heroReveal 1s var(--ease) forwards;
}
.hero-headline .line-1 { animation-delay: 0.3s; }
.hero-headline .line-2 { animation-delay: 0.45s; color: var(--pure-white); }
.hero-headline .line-3 { animation-delay: 0.6s; }
.hero-headline .accent { color: var(--accent-orange); }

@keyframes heroReveal {
    to { transform: translateY(0); }
}
@keyframes heroFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero-copy {
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    color: rgba(255,255,255,0.92);
    max-width: 520px;
    margin-bottom: 2.25rem;
    line-height: 1.65;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s var(--ease) 0.85s forwards;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s var(--ease) 1s forwards;
    text-shadow: none;
}

.hero-bottom {
    position: relative;
    padding: 1.5rem 0 2rem;
    z-index: 2;
}
.hero-bottom-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 2rem;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0    0   6px rgba(0,0,0,0.6);
}
.hero-tagline {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.9);
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease) 1.2s forwards;
    grid-column: 1;
    justify-self: start;
}
.hero-tagline .sep {
    width: 1px; height: 14px;
    background: var(--accent-orange);
    display: inline-block;
}

.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--pure-white);
    transition: transform var(--transition);
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease) 1.2s forwards;
}
.scroll-indicator svg {
    width: 56px; height: 56px;
    animation: scrollBounce 2.5s ease-in-out infinite;
}
.scroll-indicator span {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3em;
}
.scroll-indicator:hover { transform: translateY(4px); }
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ---------- 10. Information Pack ---------- */
.section.info-pack {
    /* No overflow:hidden here — the booklet below deliberately bleeds
       above this section's top edge into the hero, and clipping it at
       the section boundary chopped it off with a hard, unstyled edge. */
    position: relative;
    background: var(--pure-white);
    padding: clamp(0.5rem, 1.5vw, 1rem) 0;
}

/* Wrapper that contains ONLY the plant background's intentional bleed —
   kept flush with the section (inset: 0) so it doesn't affect the
   booklet, which lives outside of it. */
.info-pack-bg-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Right-side plant/leaves background — bleeds past the section edge,
   clipped by .info-pack-bg-clip above rather than by the section itself */
.info-pack-bg {
    position: absolute;
    top: -8%;
    right: -8%;
    bottom: -8%;
    width: 62%;
    pointer-events: none;
}
.info-pack-bg-plant {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    opacity: 0.55;
    filter: saturate(1.05) contrast(1.02);
}
/* Soft fade so the plant blends into the white section instead of a hard edge */
.info-pack-bg-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            var(--pure-white) 0%,
            rgba(255,255,255,0.85) 18%,
            rgba(255,255,255,0.35) 35%,
            rgba(255,255,255,0)     55%),
        linear-gradient(180deg,
            rgba(255,255,255,0.6) 0%,
            rgba(255,255,255,0)   25%,
            rgba(255,255,255,0)   75%,
            rgba(255,255,255,0.6) 100%);
}

/* Keep container content above the background */
.info-pack > .container { position: relative; z-index: 1; }

.info-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.info-text { max-width: none; }

/* Info Pack heading — a 3-column grid: number | vertical divider | content.
   The number column and divider span only the heading+copy rows (rows 1-2),
   so the divider stops before the button, and the button lines up with the
   heading/copy on the content column's left edge. */
.info-pack .info-head {
    display: grid;
    grid-template-columns: auto 1px 1fr;
    align-items: stretch;
    justify-items: start;
    column-gap: clamp(1.25rem, 3vw, 2.25rem);
    row-gap: 1rem;
    margin-bottom: 0;
}
.info-pack .section-number-col {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.3rem;
}
.info-pack .info-divider {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: stretch;
    width: 1px;
    background: rgba(14, 44, 63, 0.15);
}
.info-pack .info-head h2 { grid-column: 3; grid-row: 1; }
.info-pack .info-head .info-copy { grid-column: 3; grid-row: 2; margin: 0; }
.info-pack .info-head .info-cta,
.info-pack .info-head .info-ctas { grid-column: 3; grid-row: 3; justify-self: start; margin-top: 0.5rem; }

.info-pack .info-head .info-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.info-pack .info-head .info-ctas .info-cta { grid-column: auto; grid-row: auto; margin-top: 0; justify-self: auto; }
.info-copy {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    color: #1a1a1a;
    line-height: 1.7;
}

.info-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* The cover image is a pre-rendered booklet mockup (already tilted, with
   its own drop shadow baked in) — the previous 3:4 crop box + white card
   + a second CSS rotate fought its real proportions, cropping its edges
   and showing white matting around it. Let it keep its own shape instead. */
.info-doc {
    position: relative;
    width: 100%;
    max-width: 480px;
    /* Bleed upward into the hero / slider section above */
    margin-top: clamp(-70px, -6vw, -30px);
    z-index: 2;
    transition: transform 0.5s var(--ease);
}
.info-doc:hover {
    transform: translateY(-8px);
}
.info-doc-inner {
    display: block;
    width: 100%;
    line-height: 0;
}
.info-doc-img {
    display: block;
    width: 100%;
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    .info-doc,
    .info-doc-inner,
    .info-doc-img { transition: none !important; }
}

/* ---------- 11. Vision, Mission & Values ---------- */
.section.vision-section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.vision-section { overflow: hidden; background: #14171d; }
.vision-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.vision-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: grayscale(0.5) contrast(1.05) brightness(0.8);
}
.vision-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at right, rgba(232,126,53,0.1) 0%, transparent 60%),
        linear-gradient(180deg, rgba(20,23,29,0.92) 0%, rgba(12,14,18,0.97) 100%);
}
.vision-section .container { position: relative; z-index: 1; }

/* Animated decorative orbs — subtle floating brand-color glows */
.vision-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.vision-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.3;
    mix-blend-mode: screen;
    will-change: transform;
}
.vision-orb-1 {
    width: 460px; height: 460px;
    top: -140px; left: -120px;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
    animation: vmvDrift1 6s ease-in-out infinite;
}
.vision-orb-2 {
    width: 400px; height: 400px;
    bottom: -160px; right: -100px;
    background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%);
    animation: vmvDrift2 7s ease-in-out infinite;
}
.vision-orb-3 {
    width: 300px; height: 300px;
    top: 35%; left: 55%;
    background: radial-gradient(circle, var(--accent-green) 0%, transparent 70%);
    opacity: 0.22;
    animation: vmvDrift3 5s ease-in-out infinite;
}
.vision-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 900px; height: 900px;
    margin: -450px 0 0 -450px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    animation: ringRotate 30s linear infinite;
}
.vision-ring-inner {
    position: absolute;
    top: 50%; left: 50%;
    width: 650px; height: 650px;
    margin: -325px 0 0 -325px;
    border-radius: 50%;
    border: 1px dashed rgba(232,126,53,0.15);
    animation: ringRotateReverse 20s linear infinite;
}
@keyframes vmvDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(130px, 100px) scale(1.3); }
}
@keyframes vmvDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-120px, -90px) scale(1.35); }
}
@keyframes vmvDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-90px, 110px) scale(0.7); }
}
@media (prefers-reduced-motion: reduce) {
    .vision-orb, .vision-ring, .vision-ring-inner { animation: none; }
}

.vmv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    position: relative;
}
.vmv-grid::before, .vmv-grid::after {
    content: "";
    position: absolute;
    top: 80px; bottom: 30px;
    width: 1px;
    background: rgba(255,255,255,0.12);
}
.vmv-grid::before { left: calc(33.333% - 0.5px); }
.vmv-grid::after { left: calc(66.666% - 0.5px); }

.vmv-card {
    text-align: left;
    position: relative;
}
.vmv-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--icon-bg, var(--accent-teal));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    transition: transform 0.4s var(--ease);
}
.vmv-card:hover .vmv-icon { transform: translateY(-4px) scale(1.04); }
.vmv-icon svg { width: 44px; height: 44px; }
.vmv-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--pure-white);
}
.vmv-card p {
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    font-size: 0.95rem;
}
.vmv-values { margin-top: 0.5rem; }
.vmv-values li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.65rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}
.vmv-values li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55rem;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--bullet, var(--accent-orange));
}

/* ---------- 12. Documents & Resources ---------- */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.doc-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--pure-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-dark);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    position: relative;
}
.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(14,44,63,0.12);
    border-color: transparent;
}
.doc-icon {
    width: 52px; height: 52px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--doc-color, var(--accent-teal)) 12%, transparent);
    color: var(--doc-color, var(--accent-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.doc-card:hover .doc-icon {
    background: var(--doc-color, var(--accent-teal));
    color: var(--pure-white);
}
.doc-card:hover .doc-icon svg path,
.doc-card:hover .doc-icon svg rect { stroke: currentColor; }

.doc-icon svg { width: 28px; height: 28px; }
.doc-meta { flex: 1; min-width: 0; }
.doc-meta h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--mascc-navy);
}
.doc-meta p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}
.doc-download {
    width: 40px; height: 40px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mascc-navy);
    transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
    flex-shrink: 0;
}
.doc-card:hover .doc-download {
    background: var(--mascc-navy);
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* ---------- 12b. Key Statistics (dark charcoal) ---------- */
.section-charcoal {
    background: #2a3340;
    color: rgba(255,255,255,0.85);
}
.section-charcoal .section-number {
    color: rgba(255,255,255,0.12);
}
.section-charcoal .section-heading h2 { color: var(--pure-white); }
.section-charcoal .section-sub { color: rgba(255,255,255,0.6); }
.section-charcoal .section-rule { background: rgba(255,255,255,0.15); }

.stats-table-wrap,
.rates-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    -webkit-overflow-scrolling: touch;
}
.stats-table,
.rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.stats-table thead th,
.rates-table thead th {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    text-align: left;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}
.stats-table tbody tr,
.rates-table tbody tr {
    transition: background 0.3s var(--ease);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-table tbody tr:last-child,
.rates-table tbody tr:last-child { border-bottom: none; }
.stats-table tbody tr:hover,
.rates-table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}
.stats-table tbody td,
.rates-table tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}
.stats-table tbody td[data-label="Statistic"] {
    font-weight: 600;
    color: var(--pure-white);
    white-space: nowrap;
}
.stat-dot,
.rate-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--stat-color, #1e7c8c);
    margin-right: 0.75rem;
    vertical-align: middle;
    flex-shrink: 0;
}
.rate-dot {
    background: var(--rate-color, #1e7c8c);
}
.rates-table tbody td[data-label="Category"] {
    display: flex;
    align-items: flex-start;
}
.rates-table tbody td[data-label="Category"] .rate-dot {
    margin-top: 0.4em;
}
.stat-value,
.rate-category {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pure-white);
    line-height: 1;
}
.rate-category {
    font-size: 1.25rem;
}
.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--stat-color, #1e7c8c);
    margin-left: 0.15rem;
}
.stats-table tbody td[data-label="Description"],
.rates-table tbody td[data-label="Description"] {
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
}
.rates-table tbody td[data-label="Registration Fee"],
.rates-table tbody td[data-label="Monthly Fee"] {
    text-align: left;
}
.rate-amount {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rate-color, var(--pure-white));
    white-space: nowrap;
}
.rate-amount-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    margin-top: 2px;
}

/* ---------- 13. Gallery ---------- */
.gallery-section { overflow: hidden; }
.gallery-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.gallery-nav {
    display: inline-flex;
    gap: 0.5rem;
}
.gallery-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--pure-white);
    font-size: 1.1rem;
    transition: all 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gallery-arrow:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: scale(1.05);
}

.gallery-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}
.album {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    color: var(--pure-white);
    isolation: isolate;
    aspect-ratio: 16 / 12;
}
.album-feature {
    /* No fixed ratio: stretches to match the combined height of the two
       album-grid rows beside it (default grid stretch against the taller
       sibling), rather than sizing itself independently. */
    aspect-ratio: auto;
}
.album-bg {
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    transition: transform 0.8s var(--ease);
    z-index: 0;
}
.album:hover .album-bg { transform: scale(1.06); }
.album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14,44,63,0.1) 0%, rgba(14,44,63,0.2) 40%, rgba(14,44,63,0.85) 100%);
    z-index: 1;
    transition: background 0.4s var(--ease);
}
.album:hover .album-overlay {
    background: linear-gradient(180deg, rgba(14,44,63,0.2) 0%, rgba(14,44,63,0.4) 50%, rgba(14,44,63,0.9) 100%);
}
.album-body {
    position: relative;
    z-index: 2;
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.album-feature .album-body { padding: 2.25rem; }
.album-body h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 0;
    line-height: 1.15;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    transition: transform 0.4s var(--ease);
}
.album-feature .album-body h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.album:hover .album-body h3 { transform: translateY(-4px); }
.album-body p {
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    font-weight: 500;
}
.album-arrow {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-orange);
    border: 1.5px solid var(--accent-orange);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: all 0.4s var(--ease);
}
.album-feature .album-arrow { width: 52px; height: 52px; top: 2.25rem; right: 2.25rem; }
.album:hover .album-arrow {
    transform: scale(1.1) rotate(-15deg);
}
.album-arrow svg { width: 22px; height: 22px; }
.album-feature .album-arrow svg { width: 26px; height: 26px; }

.album-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Few albums: keep the grid about two rows tall so the featured album never
   shrinks to a single short row beside it. */
.album-grid[data-count="1"] { grid-template-columns: 1fr; }
.album-grid[data-count="1"] .album { aspect-ratio: auto; min-height: clamp(260px, 34vw, 420px); }
.album-grid[data-count="2"] { grid-template-columns: 1fr; }
.album-grid[data-count="2"] .album { aspect-ratio: auto; min-height: clamp(160px, 16vw, 200px); }
.album-grid[data-count="3"] .album:nth-of-type(3) { grid-column: 1 / -1; aspect-ratio: auto; min-height: clamp(160px, 16vw, 200px); }

/* Album cards as real buttons: reset native styles, keep keyboard focus visible */
button.album {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
    transition: box-shadow 0.5s var(--ease), filter 0.5s var(--ease), opacity 0.5s var(--ease);
}
button.album:hover { box-shadow: 0 24px 50px rgba(0,0,0,0.38); }
button.album:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 4px; }
/* Albums with no photos yet look normal, just not clickable */
button.album.is-empty { cursor: default; }
button.album.is-empty:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.22); }
.album.is-empty:hover .album-bg { transform: none; }
.album.is-empty .album-arrow { display: none; }
.album-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pure-white);
}
.album-count::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(232,126,53,0.25);
}
.album-body .album-desc {
    margin-top: 0.5rem;
    max-width: 42ch;
    color: rgba(255,255,255,0.82);
    font-size: 0.875rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.album-feature .album-body .album-desc { font-size: 0.95rem; }
.gallery-empty {
    color: rgba(255,255,255,0.6);
    padding: 2rem 0;
}

/* ---------- 12b. Structure (Board of Directors) ---------- */
.section.structure-section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.structure-subheading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mascc-navy);
}
.structure-subheading::before {
    content: '';
    width: 6px;
    height: 1.5em;
    border-radius: 3px;
    background: var(--accent-orange);
}
.structure-subheading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}
.board-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2rem 1.75rem;
}
.board-card {
    flex: 0 1 220px;
    text-align: center;
}
.board-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--mascc-navy) 0%, var(--mascc-navy-light) 100%);
    box-shadow: 0 10px 28px rgba(14, 44, 63, 0.16);
    transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.board-photo::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.board-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s var(--ease);
}
.board-initials {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--accent-orange);
}
.board-card:hover .board-photo { box-shadow: 0 20px 44px rgba(14, 44, 63, 0.26); transform: translateY(-4px); }
.board-card:hover .board-photo img { transform: scale(1.06); }
.board-card:hover .board-photo::after { transform: scaleX(1); }
.board-info { padding: 1rem 0.25rem 0; }
.board-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--mascc-navy);
}
.board-role {
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-orange);
}
.structure-empty { color: var(--text-muted); padding: 1.5rem 0; }

/* ---------- 13b. News ---------- */
.section.news-section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.news-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.25rem;
    scroll-margin-top: calc(var(--header-h) - 40px);
}
.news-item[hidden] { display: none; }
.news-item {
    animation: newsIn 0.45s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes newsIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.news-card {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--pure-white);
    color: var(--text-dark);
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(14, 44, 63, 0.06);
    transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.news-card:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 126, 53, 0.45);
    box-shadow: 0 12px 28px rgba(14, 44, 63, 0.14);
}
.news-card:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 3px; }

/* Date block */
.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    min-width: 76px;
    padding: 0.75rem 0.5rem;
    background: var(--mascc-navy);
    color: var(--pure-white);
    font-family: var(--font-display);
    text-align: center;
    transition: background 0.35s var(--ease);
}
.news-card:hover .news-date { background: var(--accent-orange); }
.news-day { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.news-month {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-orange);
    transition: color 0.35s var(--ease);
}
.news-card:hover .news-month { color: var(--pure-white); }
.news-year { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; opacity: 0.7; }

/* Title + short description */
.news-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.75rem 1rem;
}
.news-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--mascc-navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-summary {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-more {
    display: inline-flex;
    align-items: center;
    padding-right: 1rem;
    color: var(--accent-orange);
    opacity: 0.55;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.news-more svg { width: 26px; height: 26px; }
.news-card:hover .news-more { opacity: 1; transform: translateX(3px); }
.news-empty { color: var(--text-muted); padding: 1.5rem 0; }

/* Pagination */
.news-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
}
.news-pagination[hidden] { display: none; }
.news-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem; }
.news-page {
    appearance: none;
    -webkit-appearance: none;
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--pure-white);
    color: var(--mascc-navy);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.news-page:hover:not(:disabled):not(.is-current) {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: translateY(-1px);
}
.news-page.is-current {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--pure-white);
    cursor: default;
}
.news-page:disabled { opacity: 0.4; cursor: not-allowed; }
.news-page:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 2px; }
.news-page-arrow { font-size: 1.4rem; line-height: 1; }
.news-page-gap { min-width: 24px; text-align: center; color: var(--text-muted); }
.news-page-info { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.02em; }

/* ---------- 14. Contact ---------- */
.contact-section { overflow: hidden; position: relative; }
.section.contact-section,
.section.documents-section,
.section.gallery-section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
    position: relative;
    z-index: 1;
}
.contact-photo {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    left: 55%;
    z-index: 0;
    pointer-events: none;
}
.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.contact-photo-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--warm-white) 0%, rgba(242,239,232,0.9) 12%, rgba(242,239,232,0.55) 28%, rgba(242,239,232,0.15) 45%, rgba(242,239,232,0) 60%);
}
.contact-info { position: relative; }
.contact-copy {
    font-size: clamp(1rem, 1.5vw, 1.0625rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.contact-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--mascc-navy);
    color: var(--pure-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-list small {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.contact-list strong {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--mascc-navy);
    line-height: 1.4;
    font-weight: 600;
}

.contact-form-wrap {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 24px 48px rgba(14, 44, 63, 0.1);
    border: 1px solid rgba(14, 44, 63, 0.05);
}
.form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mascc-navy);
    margin-bottom: 1.5rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.form-row .form-field { margin-bottom: 0; }
.form-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--mascc-navy);
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}
.form-field label span { color: var(--accent-orange); }
.form-field input,
.form-field textarea {
    font: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(14, 44, 63, 0.15);
    border-radius: 6px;
    background: var(--pure-white);
    color: var(--text-dark);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    width: 100%;
    font-family: var(--font-body);
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(232, 126, 53, 0.15);
}
.form-field.error input,
.form-field.error textarea { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1); }
.form-field .error-text {
    font-size: 0.72rem;
    color: #c0392b;
    margin-top: 0.3rem;
    min-height: 0;
}
.form-field textarea { resize: vertical; min-height: 110px; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-submit {
    position: relative;
    width: auto;
    margin-top: 0.5rem;
    min-width: 200px;
    justify-content: center;
}
.form-submit span.btn-spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
}
.form-submit.loading .btn-spinner { display: inline-block; }
.form-submit.loading .btn-arrow { opacity: 0; }
.form-submit.success { background: var(--accent-green); }
@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback {
    margin-top: 1rem;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 0;
    transition: all 0.3s var(--ease);
}
.form-feedback.show { padding: 0.85rem 1rem; border-radius: 6px; }
.form-feedback.success { background: rgba(95, 168, 71, 0.12); color: var(--accent-green); }
.form-feedback.error { background: rgba(192, 57, 43, 0.1); color: #c0392b; }

/* ---------- 15. Footer ---------- */
.site-footer {
    background: var(--mascc-navy);
    color: rgba(255,255,255,0.75);
    padding-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    position: relative;
}
.footer-col {
    position: relative;
    padding-right: 1rem;
}
.footer-col:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.08);
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--pure-white);
    margin-bottom: 1.25rem;
}
.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 1.5rem 0;
}
.footer-affiliations h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.affiliation-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
.affiliation-logo:hover {
    opacity: 1;
}
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    max-width: 280px;
}
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.footer-col ul li {
    margin-bottom: 0.65rem;
}
.footer-col ul a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color var(--transition), padding var(--transition);
    display: inline-block;
}
.footer-col ul a:hover {
    color: var(--accent-orange);
    padding-left: 4px;
}
.footer-contact li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    line-height: 1.55;
}
.footer-contact span { color: var(--accent-orange); }

.footer-socials {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.social-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--pure-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
}
.footer-cta { width: 100%; justify-content: center; }

/* Two stacked membership CTAs in the footer column */
.footer-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.footer-ctas .btn { width: 100%; justify-content: space-between; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
}
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}
.footer-bottom-inner a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}
.footer-bottom-inner a:hover { color: var(--accent-orange); }
.footer-bottom-inner .sep { margin: 0 0.5rem; color: rgba(255,255,255,0.3); }

/* ---------- 16. WhatsApp Float ---------- */
.wa-float {
    position: fixed;
    right: 28px; bottom: 28px;
    background: linear-gradient(155deg, #2be277 0%, #25d366 55%, #1fb85a 100%);
    color: var(--pure-white);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(14, 44, 63, 0.18);
    z-index: 90;
    display: inline-flex;
    align-items: center;
    overflow: visible;          /* let the halo rings escape the pill */
    height: 60px;
    width: 60px;
    transition:
        width 0.4s var(--ease),
        box-shadow 0.3s var(--ease),
        background 0.3s var(--ease),
        transform 0.3s var(--ease);
    animation: waBob 3.2s ease-in-out infinite;
}
.wa-float:focus-visible {
    outline: 2px solid var(--pure-white);
    outline-offset: 3px;
}

/* Two staggered halo rings that ripple outward — every 2.4s. Only make
   sense while the button is a perfect circle; paused on hover below so
   they don't stretch into an odd ring around the expanded pill. */
.wa-float::before,
.wa-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}
.wa-float::before {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
    animation: waHalo 2.4s ease-out infinite;
}
.wa-float::after {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
    animation: waHalo 2.4s ease-out 1.2s infinite;
}

/* Tiny notification dot — bounces gently to draw the eye */
.wa-float .wa-icon::after {
    content: "";
    position: absolute;
    top: 3px; right: 3px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #ff4757;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    animation: waNotifyBob 1.8s ease-in-out infinite;
    pointer-events: none;
}

.wa-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;       /* anchor for the notify dot */
    overflow: visible;        /* allow dot to escape slightly via absolute positioning */
}
/* Soft circular badge behind the glyph so it reads as a distinct icon
   rather than a flat cutout sitting directly on the pill fill. */
.wa-icon::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.wa-float:hover .wa-icon::before {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}
.wa-icon svg {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s var(--ease);
}
.wa-float:hover .wa-icon svg {
    transform: scale(1.08);
}

.wa-label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
    /* Robust hide: zero width via multiple properties so text never peeks */
    width: 0;
    flex-basis: 0;
    flex-shrink: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    transition:
        max-width 0.4s var(--ease),
        opacity 0.3s ease,
        padding 0.4s var(--ease);
}

/* Hover: extend the pill, lift it slightly, calm the idle animations so
   the shape reads cleanly while the label is visible. */
.wa-float:hover,
.wa-float:focus-visible {
    width: 226px;
    background: linear-gradient(155deg, #29d873 0%, #1ebe5d 55%, #189b4c 100%);
    box-shadow: 0 16px 36px rgba(30, 190, 93, 0.5), 0 4px 10px rgba(14, 44, 63, 0.2);
    transform: translateY(-3px);
    animation: none;
}
.wa-float:hover .wa-label,
.wa-float:focus-visible .wa-label {
    width: auto;
    flex-basis: auto;
    flex-shrink: 1;
    max-width: 180px;
    opacity: 1;
    padding: 0 0.35rem 0 1.4rem;
}
/* Halo rings and the notification dot only suit the circular idle state —
   freeze them once the pill expands so nothing stretches or overlaps the label. */
.wa-float:hover::before,
.wa-float:hover::after,
.wa-float:focus-visible::before,
.wa-float:focus-visible::after {
    animation: none;
    box-shadow: none;
}
.wa-float:hover .wa-icon::after,
.wa-float:focus-visible .wa-icon::after {
    animation: none;
}
/* Pause animations when prefers-reduced-motion is set */
@media (prefers-reduced-motion: reduce) {
    .wa-float,
    .wa-float::before,
    .wa-float::after,
    .wa-float .wa-icon::after { animation: none !important; }
}

/* ---------- WhatsApp Float Animations ---------- */
@keyframes waBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes waHalo {
    0%   { box-shadow: 0 0 0 0    rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 0 0 22px rgba(37, 211, 102, 0);    }
    100% { box-shadow: 0 0 0 0    rgba(37, 211, 102, 0);    }
}
@keyframes waNotifyBob {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.2); opacity: 0.7; }
}

/* ---------- 17. Gallery Slideshow (Fancybox theme) ---------- */
.fancybox-bg { background: rgba(8, 16, 24, 0.96); }
.fancybox-container {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.fancybox-slide--image .fancybox-content {
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.fancybox-caption {
    padding: 2.5rem 2rem 1.25rem;
    background: linear-gradient(0deg, rgba(8,16,24,0.9) 0%, rgba(8,16,24,0) 100%);
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.92);
}
.fancybox-infobar__body {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.12em;
}
.fancybox-button {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06);
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.fancybox-button:hover:not([disabled]) {
    background: var(--accent-orange);
    color: var(--pure-white);
}
.fancybox-navigation .fancybox-button {
    width: 56px;
    height: 56px;
    top: calc(50% - 28px);
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--pure-white);
    opacity: 1;
    visibility: visible;
}
.fancybox-navigation .fancybox-button div { padding: 14px; }
.fancybox-navigation .fancybox-button--arrow_left { left: 1.25rem; }
.fancybox-navigation .fancybox-button--arrow_right { right: 1.25rem; }
.fancybox-navigation .fancybox-button:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

/* News popup (Fancybox html slide) */
.fancybox-news .fancybox-content {
    width: min(720px, 92vw);
    padding: 0;
    border-top: 4px solid var(--accent-orange);
    border-radius: 14px;
    background: var(--warm-white);
    color: var(--text-dark);
    text-align: left;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.fancybox-news .fancybox-navigation { display: none; }
.fancybox-news .fancybox-close-small {
    top: 0.6rem;
    right: 0.6rem;
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 50%;
    background: rgba(14, 44, 63, 0.08);
    color: var(--mascc-navy);
    opacity: 1;
}
.fancybox-news .fancybox-close-small:hover { background: var(--accent-orange); color: var(--pure-white); }
.news-modal { padding: clamp(1.5rem, 4vw, 2.5rem); }
.news-modal-date {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--mascc-navy);
    color: var(--pure-white);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.news-modal-title {
    margin: 0 2rem 1.25rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--mascc-navy);
}
.news-modal-body { max-height: 55vh; overflow-y: auto; padding-right: 0.5rem; }
.news-modal-body p { margin-bottom: 1rem; line-height: 1.7; color: #2c3742; }
.news-modal-body p:last-child { margin-bottom: 0; }

/* ---------- 18. Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    will-change: transform, opacity;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }

/* Reduced motion — keep the cursor visible */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-headline .line { transform: none; }
    .hero-graphic { animation: none; }
    /* Cursor stays visible — JS sets opacity inline */
}

/* ---------- 19. Focus visible (accessibility) ---------- */
:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 3px;
    border-radius: 4px;
}
.nav-link:focus-visible, .header-cta:focus-visible, .btn:focus-visible {
    outline-offset: 4px;
}

/* ---------- 20. Utility classes ---------- */
.magnetic { display: inline-block; transition: transform 0.3s var(--ease); }
.anchor-anchor { position: relative; height: 0; }

/* ---------- 21. Membership Switch (EN / AF) — NOT a language switcher ----------
   The two buttons in the header/footer/contact area represent TWO
   DIFFERENT MEMBERSHIP APPLICATIONS, not language toggles.
   ----------------------------------------------------------------------- */
.membership-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 5px 8px;
}
.membership-switch.mobile, .membership-switch.footer {
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.5rem;
}
.membership-btn {
    color: rgba(255,255,255,0.85);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    border-radius: 3px;
    transition: color var(--transition), background var(--ease);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}
.membership-btn:hover, .membership-btn:focus-visible {
    color: var(--accent-orange);
    background: rgba(232, 126, 53, 0.12);
    border-color: rgba(232, 126, 53, 0.4);
}
.membership-btn[aria-disabled="true"] {
    color: rgba(255,255,255,0.4);
    pointer-events: none;
}
.membership-divider {
    color: rgba(255,255,255,0.3);
    font-size: 0.78rem;
}
.membership-switch.mobile .membership-btn,
.membership-switch.footer .membership-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--pure-white);
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    text-align: left;
    justify-content: flex-start;
}
.membership-switch.mobile .membership-btn:hover,
.membership-switch.footer .membership-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--pure-white);
}

/* ---------- 22. Logo image overrides (header & footer) ---------- */
/* Uploaded logo (PNG/SVG/WEBP) fills the available header height and is
   animated to mirror the inline-SVG fallback's creative motion. */
.header-logo-img {
    height: 100%;
    width: auto;
    max-height: none;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    transform-origin: 50% 50%;
    animation: logo-mark-enter 1.1s var(--ease) 0.15s both;
    transition: max-height 0.3s var(--ease), filter 0.3s var(--ease);
    will-change: transform;
}
/* Swap to the dedicated sticky-logo upload once the header is scrolled
   and compact — falls back to the main logo when no sticky logo is set
   (the sticky image simply isn't rendered in that case). */
.header-logo-img--sticky {
    display: none;
}
.site-header.scrolled .header-logo-img--default {
    display: none;
}
.site-header.scrolled .header-logo-img--sticky {
    display: block;
}
.footer-logo img { height: 84px; width: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
    .header-logo-img,
    .header-logo:hover .header-logo-img {
        animation: none !important;
    }
}