/* ============================================================
   VODA WATER WATCH — Main Stylesheet
   Malaysia's Independent Water Think Tank | vodawaterwatch.com
   Editorial direction: The Economist / Financial Times
   Per build spec §2 — palette, typography and design tokens.
   ============================================================ */

/* ---------- Tokens — GMH corporate palette (from stationery) ---------- */
:root {
    /* Primary */
    --navy:        #0A1A2A;   /* GMH deep navy */
    --teal:        #14AFF5;   /* Voda cyan — primary accent (alias of --accent) */
    --accent:      #14AFF5;   /* Voda cyan */
    --accent-dk:   #0E8FC9;   /* darker cyan for hover */
    --accent-tint: rgba(20, 175, 245, 0.08);

    /* Supporting */
    --mid-blue:    #14305A;   /* navy-cyan mid-tone for gradients */
    --light-blue:  #E8F4FB;   /* very faint cyan tint */
    --gold:        #14AFF5;   /* alias to cyan — kept for back-compat where Senior-Fellow accents lived */

    /* Neutrals — from stationery */
    --dark:        #0A1A2A;   /* same as navy; dark sections */
    --mid-grey:    #5B6675;   /* GMH slate */
    --light-grey:  #F5F7FA;
    --hairline:    #E3E6EA;   /* GMH hairline */
    --white:       #FFFFFF;

    /* Alerts — Flood Tracker */
    --alert-watch:    #F59E0B;
    --alert-warning:  #EF4444;
    --alert-critical: #DC2626;
    --alert-clear:    #10B981;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-serif:   'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-sans:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    'IBM Plex Mono', 'SF Mono', Consolas, monospace;

    /* Layout */
    --container:    1280px;
    --container-narrow: 980px;
    --nav-h:        72px;
    --radius:       2px;
    --radius-md:    4px;

    /* Motion */
    --ease:         cubic-bezier(.22,.61,.36,1);
    --t:            280ms;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--t) var(--ease); }
a:hover { color: var(--navy); }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--navy);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

/* Utility classes mirroring spec font roles */
.font-display { font-family: var(--font-display); }
.font-serif   { font-family: var(--font-serif); }
.font-sans    { font-family: var(--font-sans); }
.font-mono    { font-family: var(--font-mono); }

/* Small-caps label (spec eyebrow style) */
.label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
}
.label--gold { color: var(--gold); }
.label--white { color: rgba(255,255,255,0.78); }

/* Section header pattern: eyebrow + display title + optional sub */
.section-head {
    margin-bottom: 56px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hairline);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.section-head__left { max-width: 720px; }
.section-head__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    color: var(--navy);
    margin: 12px 0 0;
}
.section-head__sub {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--mid-grey);
    margin: 10px 0 0;
    line-height: 1.55;
}
.section-head__link {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    border-bottom: 1px solid var(--teal);
    padding-bottom: 2px;
}
.section-head__link:hover { color: var(--navy); border-color: var(--navy); }

/* Section base spacing */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }

/* Buttons — restrained, editorial */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: var(--radius);
    transition: all var(--t) var(--ease);
    cursor: pointer;
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.btn--primary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}
.btn--primary:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn--secondary:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--arrow::after { content: "→"; transition: transform var(--t) var(--ease); font-family: var(--font-sans); }
.btn--arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   Header / Masthead
   ============================================================ */
.masthead {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(255,255,255,0.98);    /* opaque — rain stays in the page below, never behind the nav */
    backdrop-filter: saturate(140%) blur(6px);
    -webkit-backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.masthead.is-scrolled {
    border-bottom-color: var(--hairline);
    box-shadow: 0 1px 0 rgba(10,26,42,0.04);
}
/* Masthead uses the full viewport width (not the centered 1240px container) —
   nav has 10 items + Water Sustainability Solutions + EN/BM and needs the room. */
.masthead > .container {
    max-width: none;
    padding: 0 20px;
}
.masthead__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 16px;
    flex-wrap: nowrap;
}
.masthead__brand {
    display: flex;
    align-items: center;
    gap: 22px;            /* breathing room between Voda mark and the Water Watch wordmark */
    padding-left: 0;       /* logo flush to the left of the container */
    margin-right: auto;
}
.masthead__brand .brand-wordmark-link {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}
.masthead__brand a {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
/* Subtle Voda product-brand mark on the left, linking to vodarainwaterharvesting.com */
.brand-voda-mark {
    display: inline-flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity var(--t) var(--ease);
}
.brand-voda-mark:hover { opacity: 1; }
.brand-voda-mark img {
    height: 20px;       /* 60% of previous 31px — keeps Voda subtle and stops the wordmark clash */
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
}
.brand-divider {
    display: inline-block;
    width: 1px;
    height: 22px;
    background: var(--hairline);
    flex-shrink: 0;
}
/* External nav tab — Water / Sustainability / Solutions ↗ stacked on three lines */
.nav__item--external > a {
    background: var(--accent);
    color: var(--white);
    white-space: normal;
    text-align: center;
    padding: 6px 14px;
    font-weight: 600;
    line-height: 1;
}
.nav__item--external > a:hover { background: var(--navy); color: var(--white); }
.ext-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 700;
}
.ext-stack > span:nth-child(2) { font-size: 11.5px; }  /* the middle word "Sustainability" sits as the centre line */
.ext-arrow {
    display: inline-block;
    margin-left: 3px;
    font-family: var(--font-mono);
    font-size: 11px;
    transition: transform var(--t) var(--ease);
}
.nav__item--external > a:hover .ext-arrow { transform: translate(2px, -2px); }
.brand-wordmark {
    font-family: var(--font-display);
    font-size: 18px;          /* tighter so the brand block doesn't crowd the nav */
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
}
.brand-subline {
    font-family: var(--font-sans);
    font-size: 8.5px;
    font-weight: 500;
    color: var(--mid-grey);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 5px;
    white-space: nowrap;
}
/* The subline is wider than the wordmark and forces the brand block above 300px.
   Hide it at viewports where the full nav row would otherwise overflow. */
@media (max-width: 1599px) {
    .brand-subline { display: none; }
}

.nav {
    display: flex;
    align-items: center;
    gap: 3px;             /* small gap so each tab reads as its own block */
    flex-wrap: nowrap;
}
.nav__item > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    min-height: 56px;                  /* every tab the same height so stacked-label tab matches */
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.01em;
    background: var(--light-grey);
    border-radius: var(--radius);
    transition: background var(--t) var(--ease), color var(--t) var(--ease);
    white-space: nowrap;
}
/* Alternating tint creates visual rhythm so tabs don't merge into a word-blob. */
.nav__item:nth-child(even) > a { background: var(--light-blue); }
.nav__item > a:hover {
    background: var(--accent);
    color: var(--white);
}
.nav__item.is-active > a {
    background: var(--navy);
    color: var(--white);
}
.nav__item.is-live > a::before {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--alert-warning);
    margin-right: 7px;
    box-shadow: 0 0 0 0 rgba(239,68,68,0.55);
    animation: nav-pulse 1.8s var(--ease) infinite;
}
@keyframes nav-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.lang-toggle {
    display: inline-flex;
    flex-direction: column;                /* stacked vertically per request */
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    overflow: hidden;
    margin-left: 6px;
    align-self: center;
}
.lang-toggle button {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    color: var(--mid-grey);
    background: transparent;
    transition: background var(--t) var(--ease), color var(--t) var(--ease);
    letter-spacing: 0.06em;
    min-width: 32px;
    line-height: 1.4;
    text-align: center;
    border-bottom: 1px solid var(--hairline);
}
.lang-toggle button:last-child { border-bottom: none; }
.lang-toggle button.is-active {
    background: var(--navy);
    color: var(--white);
}
.lang-toggle button:hover { background: var(--light-blue); color: var(--navy); }
.lang-toggle button.is-active:hover { background: var(--navy); color: var(--white); }

.menu-toggle {
    display: none;
    width: 40px; height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.menu-toggle span {
    width: 22px; height: 1.5px;
    background: var(--navy);
    transition: all var(--t) var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Hero — §4.1 above the fold
   Dark navy background with subtle animated water-ripple effect.
   Left 60% identity + CTAs. Right 40% live flood widget.
   ============================================================ */
.hero {
    position: relative;
    background: var(--navy);
    color: var(--white);
    padding: calc(var(--nav-h) + 80px) 0 100px;
    overflow: hidden;
    isolation: isolate;
}
/* Rain drops are inserted by JS into .hero__ripple — they sit inside the hero,
   behind the headline and CTAs (which are at z-index:1+ in the hero grid). */
.hero__ripple {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.rain-drop {
    position: absolute;
    top: -32px;
    width: 1.5px;
    height: 22px;
    background: linear-gradient(to bottom, rgba(20,175,245,0) 0%, rgba(20,175,245,0.95) 50%, rgba(20,175,245,0) 100%);
    transform: translateY(0);
    animation: rain-fall var(--rain-dur, 2.8s) linear var(--rain-delay, 0s) infinite;
    will-change: transform, opacity;
    border-radius: 1px;
}
@keyframes rain-fall {
    0%   { transform: translateY(0);     opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { transform: translateY(820px); opacity: 0; }
}
/* Make sure the hero content (copy + CTAs + flood widget) sits above the rain. */
.hero__grid { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
    .rain-drop { animation: none; opacity: 0; }
}
.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}
.hero__label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.4vw, 64px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0 0 26px;
    max-width: 720px;
}
.hero__sub {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.55;
    color: rgba(255,255,255,0.78);
    margin: 0 0 40px;
    max-width: 560px;
}
.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Live flood status widget — right column */
.flood-widget {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-md);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.flood-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.flood-widget__title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.live-pip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--alert-warning);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.live-pip::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--alert-warning);
    box-shadow: 0 0 0 0 rgba(239,68,68,0.55);
    animation: nav-pulse 1.8s var(--ease) infinite;
}
.flood-widget__count {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 22px;
}
.flood-widget__count-num {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.02em;
}
.flood-widget__count-label {
    font-family: var(--font-sans);
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.02em;
}
.flood-widget__breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.flood-widget__cell {
    text-align: center;
    padding: 12px 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
}
.flood-widget__cell strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.flood-widget__cell span {
    font-family: var(--font-sans);
    font-size: 10.5px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.flood-widget__cell--critical strong { color: var(--alert-critical); }
.flood-widget__cell--warning  strong { color: var(--alert-warning); }
.flood-widget__cell--watch    strong { color: var(--alert-watch); }
.flood-widget__top {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding-top: 18px;
    margin-bottom: 18px;
}
.flood-widget__top-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.flood-widget__top-line {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 4px;
}
.flood-widget__top-meta {
    font-family: var(--font-sans);
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}
.flood-widget__cta {
    display: block;
    text-align: center;
    padding: 11px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.flood-widget__cta:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}
.flood-widget.is-critical .flood-widget__count-num { color: var(--alert-critical); }
.flood-widget.is-critical {
    box-shadow: 0 0 0 0 rgba(220,38,38,0.4);
    animation: flood-pulse 2.6s var(--ease) infinite;
}
@keyframes flood-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
    50%      { box-shadow: 0 0 0 10px rgba(220,38,38,0); }
}

/* ============================================================
   Latest Think Pieces — §4.1 Section 2
   ============================================================ */
.think-pieces { background: var(--white); }
.think-pieces__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.tp-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--hairline);
    transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.tp-card:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
}
.tp-card__img {
    aspect-ratio: 16/10;
    background: var(--light-blue);
    background-size: cover;
    background-position: center;
}
.tp-card__body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.tp-pill {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    background: var(--teal);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: var(--radius);
    margin-bottom: 14px;
}
.tp-pill--gold { background: var(--gold); }
.tp-card__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
    margin: 0 0 14px;
}
.tp-card__title a { color: inherit; }
.tp-card__title a:hover { color: var(--teal); }
.tp-card__excerpt {
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1.6;
    color: var(--mid-grey);
    margin: 0 0 22px;
    flex: 1;
}
.tp-card__by {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline);
}
.tp-card__avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--light-blue) center/cover;
    border: 1.5px solid var(--teal);
    flex-shrink: 0;
}
.tp-card__byline-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
}
.tp-card__byline-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mid-grey);
    letter-spacing: 0.04em;
    margin-top: 3px;
}

/* ============================================================
   Water News Ticker — §4.1 Section 3
   ============================================================ */
.news-ticker {
    background: var(--navy);
    color: var(--white);
    padding: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.news-ticker__row {
    display: flex;
    align-items: stretch;
    height: 64px;
}
.news-ticker__label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 28px;
    background: var(--teal);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.news-ticker__label::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--white);
    animation: nav-pulse 1.6s var(--ease) infinite;
}
.news-ticker__track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0, var(--navy) 40px, var(--navy) calc(100% - 80px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--navy) 40px, var(--navy) calc(100% - 80px), transparent 100%);
}
.news-ticker__track {
    display: flex;
    gap: 48px;
    align-items: center;
    height: 100%;
    padding: 0 32px;
    white-space: nowrap;
    animation: ticker 60s linear infinite;
    width: max-content;
}
.news-ticker__row:hover .news-ticker__track { animation-play-state: paused; }
.news-ticker__item {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 14.5px;
    transition: color var(--t) var(--ease);
}
.news-ticker__item:hover { color: var(--accent); }
.news-ticker__item time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.news-ticker__item-headline { font-weight: 500; }
.news-ticker__sep {
    color: rgba(255,255,255,0.25);
    font-family: var(--font-display);
    font-size: 14px;
    flex-shrink: 0;
}
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   Our Voices — §4.1 Section 4
   ============================================================ */
.voices { background: var(--light-grey); }
.voices__strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.voice {
    background: var(--white);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--hairline);
    transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.voice:hover { border-color: var(--teal); transform: translateY(-2px); }
.voice__photo {
    width: 110px; height: 110px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: var(--light-blue) center/cover;
    border: 2px solid var(--accent);
    position: relative;
}
.voice--fellow .voice__photo {
    /* Fellows distinguished by a heavier ring rather than a different colour. */
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(20,175,245,0.10);
}
.voice__role {
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}
.voice--fellow .voice__role { color: var(--navy); }
.voice__name {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 6px;
    line-height: 1.25;
}
.voice__title {
    font-family: var(--font-serif);
    font-size: 13px;
    color: var(--mid-grey);
    line-height: 1.45;
    margin: 0 0 16px;
}
.voice__link {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--teal);
    text-transform: uppercase;
}
.voice__link:hover { color: var(--navy); }

/* ============================================================
   Featured Adopter — §4.1 Section 5
   ============================================================ */
.adopter-featured { background: var(--white); padding: 0; }
.adopter-featured__container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 32px;
}
.adopter-featured__head { margin-bottom: 40px; }
.adopter-featured__card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 460px;
    border: 1px solid var(--hairline);
    overflow: hidden;
}
.adopter-featured__img {
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 50%, var(--accent) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}
.adopter-featured__img::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,26,42,0.35), rgba(10,26,42,0.05));
}
.adopter-featured__body {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}
.adopter-featured__label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 18px;
}
.adopter-featured__who {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 6px;
}
.adopter-featured__where {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--mid-grey);
    letter-spacing: 0.08em;
    margin-bottom: 26px;
}
.adopter-featured__quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    line-height: 1.55;
    color: var(--dark);
    border-left: 3px solid var(--teal);
    padding-left: 22px;
    margin: 0 0 32px;
}
.adopter-featured__cta { align-self: flex-start; }

/* ============================================================
   Public Voice — §4.1 Section 6
   ============================================================ */
.public-voice { background: var(--light-grey); }
.public-voice__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: stretch;
}
.public-voice__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.pv-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    padding: 24px 26px;
    transition: border-color var(--t) var(--ease);
}
.pv-card:hover { border-color: var(--teal); }
.pv-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mid-grey);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pv-card__state {
    padding: 3px 8px;
    background: var(--light-blue);
    color: var(--navy);
    border-radius: var(--radius);
}
.pv-card__name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
}
.pv-card__excerpt {
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--dark);
    line-height: 1.55;
    margin: 0;
}
.public-voice__cta {
    background: var(--navy);
    color: var(--white);
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.public-voice__cta::before {
    content: "";
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(20,175,245,0.25);
    bottom: -100px; right: -80px;
}
.public-voice__cta-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.public-voice__cta-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.18;
    margin: 0 0 16px;
}
.public-voice__cta-body {
    font-family: var(--font-serif);
    font-size: 16px;
    color: rgba(255,255,255,0.78);
    line-height: 1.55;
    margin: 0 0 28px;
}
.public-voice__cta .btn { align-self: flex-start; }

/* ============================================================
   Why Water Matters — §4.1 Section 7 (Stats Bar)
   ============================================================ */
.stats-bar {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.stats-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(20,175,245,0.16) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(20,175,245,0.10) 0%, transparent 55%);
    pointer-events: none;
}
.stats-bar__inner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat {
    padding: 32px 28px;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.stat:last-child { border-right: none; }
.stat__num {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.stat__claim {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.45;
    margin-bottom: 14px;
}
.stat__src {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.06em;
}

/* ============================================================
   Soft Funnel — §4.1 Section 8
   ============================================================ */
.soft-funnel {
    background: var(--teal);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.soft-funnel::before {
    content: "";
    position: absolute;
    width: 560px; height: 560px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    bottom: -280px; right: -180px;
}
.soft-funnel__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: center;
}
.soft-funnel__label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 16px;
}
.soft-funnel__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.18;
    margin: 0 0 18px;
}
.soft-funnel__body {
    font-family: var(--font-serif);
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    line-height: 1.55;
    margin: 0 0 24px;
}
.soft-funnel__disclosure {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.04em;
    margin: 20px 0 0;
}
.soft-funnel__action {
    text-align: right;
}
.soft-funnel .btn--secondary {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
    padding: 16px 28px;
    font-size: 14px;
}
.soft-funnel .btn--secondary:hover {
    background: var(--white);
    color: var(--teal);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 72px 0 0;
}
.site-footer__cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand-wordmark { color: var(--white); font-size: 24px; }
.footer-brand .brand-subline { color: rgba(255,255,255,0.5); }
.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.55;
    margin: 22px 0 18px;
    max-width: 340px;
}
.footer-operated {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.06em;
}
.footer-col h4 {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 20px;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: color var(--t) var(--ease);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}
.footer-contact a {
    color: rgba(255,255,255,0.65);
    font-family: var(--font-sans);
    font-size: 14px;
}
.footer-contact a:hover { color: var(--accent); }
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    transition: all var(--t) var(--ease);
}
.footer-social a:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.site-footer__bottom {
    padding: 24px 0;
    text-align: center;
}
.independence-line {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 8px;
    letter-spacing: 0.01em;
}
.copyright-line {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.06em;
    margin: 0;
}
.copyright-line a { color: rgba(255,255,255,0.55); }
.copyright-line a:hover { color: var(--accent); }

/* ============================================================
   Reveal-on-scroll utility
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 1080px) {
    .hero__grid { grid-template-columns: 1fr; gap: 56px; }
    .think-pieces__grid { grid-template-columns: repeat(2, 1fr); }
    .voices__strip { grid-template-columns: repeat(2, 1fr); }
    .adopter-featured__card { grid-template-columns: 1fr; }
    .adopter-featured__img { min-height: 300px; }
    .public-voice__grid { grid-template-columns: 1fr; }
    .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2n) { border-right: none; }
    .stat { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .stat:nth-last-child(-n+2) { border-bottom: none; }
    .soft-funnel__inner { grid-template-columns: 1fr; gap: 32px; }
    .soft-funnel__action { text-align: left; }
    .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 768px) {
    :root { --nav-h: 64px; }
    section { padding: 64px 0; }
    .container, .container-narrow { padding: 0 22px; }
    .section-head { margin-bottom: 36px; padding-bottom: 18px; }

    .nav {
        position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--hairline);
        padding: 8px 22px 22px;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--t) var(--ease);
    }
    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav__item { border-bottom: 1px solid var(--hairline); }
    .nav__item:last-child { border-bottom: none; }
    .nav__item > a { padding: 16px 8px; font-size: 15px; }
    .lang-toggle { margin: 14px 8px 0; align-self: flex-start; }
    .menu-toggle { display: flex; }

    .hero { padding: calc(var(--nav-h) + 56px) 0 72px; }
    .hero__title { font-size: clamp(32px, 8vw, 44px); }
    .hero__sub { font-size: 16px; }
    .flood-widget { padding: 22px; }
    .flood-widget__count-num { font-size: 48px; }

    .think-pieces__grid { grid-template-columns: 1fr; gap: 22px; }
    .voices__strip { grid-template-columns: 1fr 1fr; gap: 14px; }
    .voice { padding: 24px 16px; }
    .voice__photo { width: 88px; height: 88px; }
    .adopter-featured__body { padding: 36px 26px; }
    .adopter-featured__who { font-size: 22px; }
    .stats-bar__inner { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .stat:last-child { border-bottom: none; }
    .news-ticker__label { padding: 0 18px; font-size: 10.5px; }
    .news-ticker__item { font-size: 13.5px; }
    .site-footer__cols { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
    .public-voice__cta { padding: 32px 24px; }
    .public-voice__cta-title { font-size: 24px; }
    .soft-funnel { padding: 56px 0; }
}
