/* ============================================
   BRAND VARIABLES — Revised Palette
   ============================================ */

 :root {
    --brand-cyan: #00AFD7;
    --brand-lime: #C4D600;
    --white: #FFFFFF;
    --black: #000000;
    --near-black: #111111;
    --grey-text: #333333;
    --light-grey: #F5F5F5;
    --shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--grey-text);
    background: var(--white);
    line-height: 1.65;
}

h1,
h2,
h3,
h4 {
    font-family: 'Arial', sans-serif;
    color: var(--black);
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ============================================
   BUTTONS — sharp edges
   ============================================ */

.btn {
    display: inline-block;
    padding: 16px 34px 14px 34px;
    font-family: 'Arial', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.btn-cyan {
    background: var(--brand-cyan);
    color: var(--white);
}

.btn-cyan svg {
    display: inline-block;
    vertical-align: -2px;
}

.btn-cyan:hover {
    background: #0099BC;
}

.btn-lime {
    background: var(--brand-lime);
    color: var(--black);
}

.btn-lime:hover {
    background: #AFBF00;
}

.btn-black {
    background: var(--black);
    color: var(--white);
}

.btn-black:hover {
    background: var(--brand-cyan);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}


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

header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 4px solid var(--brand-cyan);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2px;
    align-items: center;
}

nav ul ul {
    display: block;
}

nav>ul>li {
    position: relative;
}

nav>ul>li>a {
    display: block;
    padding: 12px 15px;
    font-family: 'Arial', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--black);
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s, background .2s;
}

nav>ul>li>a:hover,
nav>ul>li:hover>a {
    color: var(--brand-cyan);
    border-bottom-color: var(--brand-lime);
}


/* Dropdowns */

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    border: 1px solid #E5E5E5;
    border-top: 4px solid var(--brand-cyan);
    box-shadow: var(--shadow);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    list-style: none;
}

nav li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 22px;
    font-size: 14.5px;
    color: var(--grey-text);
    transition: all .15s;
    border-left: 4px solid transparent;
}

.dropdown li a:hover {
    background: var(--light-grey);
    color: var(--brand-cyan);
    border-left-color: var(--brand-lime);
}

.dropdown .sub-item a {
    padding-left: 38px;
    font-size: 13.5px;
}

.dropdown .sub-item-2 a {
    padding-left: 54px;
    font-size: 13px;
}


/* Language Switcher */

.lang-switch {
    display: flex;
    align-items: center;
    border: 2px solid var(--black);
    font-family: 'Arial', sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.lang-switch a {
    padding: 7px 14px;
    color: var(--black);
    transition: background .2s, color .2s;
}

.lang-switch a.active {
    background: var(--black);
    color: var(--brand-lime);
}

.lang-switch a:not(.active):hover {
    background: var(--brand-cyan);
    color: var(--white);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-cta .btn {
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 700;
    line-height: 2.2;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--black);
    cursor: pointer;
}


/* ============================================
   HOMEPAGE v2 — block-based layout
   Look & feel referenced from habitat.org.au:
   flat solid colour blocks, lowercase bold headings
   with a short dash, white cards on light grey,
   sharp corners, no decorative photo frames.
   ============================================ */

:root {
    --hp-dark: #202427;
    --hp-grey: #F1F1F1;
    --hp-grey-2: #E6E6E6;
    --hp-text: #333333;
    --hp-gap: 20px;
}

body.home {
    color: var(--hp-text);
    font-size: 17px;
}


/* ---------- Shared: eyebrow, dash, headings ---------- */

.hp-eyebrow {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: lowercase;
    color: var(--brand-cyan);
    margin-bottom: 8px;
}

.hp-eyebrow-lime {
    color: var(--brand-lime);
}

.hp-eyebrow-white {
    color: var(--white);
}

.hp-dash {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--brand-cyan);
    margin: 14px 0 22px;
}

.hp-dash-white {
    background: var(--white);
}

.hp-head {
    max-width: 720px;
    margin-bottom: 40px;
}

.hp-head h2,
.hp-cta-split h2,
.hp-hero h1 {
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: -.01em;
    line-height: 1.08;
    color: var(--hp-dark);
}

.hp-head h2 {
    font-size: 46px;
}

.hp-head .hp-dash {
    margin-bottom: 0;
}

.hp-head .hp-lead {
    margin-top: 22px;
    font-size: 17px;
    max-width: 640px;
}

.hp-section {
    padding: 80px 0;
}

.hp-bg-grey {
    background: var(--hp-grey);
}


/* ---------- Buttons (lowercase, flat) ---------- */

.hp-btn {
    display: inline-block;
    padding: 15px 28px;
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-transform: lowercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.hp-btn-sm {
    padding: 11px 20px;
    font-size: 15px;
}

.hp-btn-cyan {
    background: var(--brand-cyan);
    border-color: var(--brand-cyan);
    color: var(--white);
}

.hp-btn-cyan:hover {
    background: #0099BC;
    border-color: #0099BC;
}

.hp-btn-lime {
    background: var(--brand-lime);
    border-color: var(--brand-lime);
    color: var(--hp-dark);
}

.hp-btn-lime:hover {
    background: #AFBF00;
    border-color: #AFBF00;
}

.hp-btn-white {
    background: var(--white);
    border-color: var(--white);
    color: var(--hp-dark);
}

.hp-btn-white:hover {
    background: var(--hp-grey);
    border-color: var(--hp-grey);
}

.hp-btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.hp-btn-outline:hover {
    background: var(--white);
    color: var(--hp-dark);
}

.hp-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* ---------- Hero: full-bleed photo + solid cyan block ---------- */

.hp-hero {
    position: relative;
    background-color: var(--hp-dark);
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 72px 0;
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hp-hero .container {
    width: 100%;
}

.hp-hero-block {
    background: var(--brand-cyan);
    color: var(--white);
    max-width: 560px;
    padding: 52px 56px 56px;
}

.hp-hero h1 {
    color: var(--white);
    font-size: 54px;
    margin-top: 6px;
}

.hp-hero p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 30px;
}


/* block on the right, so a left-weighted photo keeps its subject clear */

.hp-hero-right {
    background-position: left 35%;
}

.hp-hero-right .hp-hero-block {
    margin-left: auto;
}


/* ---------- Inner page title (ref: habitat.org.au/about) ---------- */

.hp-page-title {
    padding: 64px 0 24px;
    background: var(--white);
}

.hp-page-title h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.01em;
    text-transform: lowercase;
    color: var(--brand-cyan);
    max-width: 900px;
}

.hp-page-title .hp-dash {
    margin-bottom: 0;
}

.hp-section-tight {
    padding: 20px 0;
}

.hp-section-tight+.hp-section-tight {
    padding-top: 0;
}


/* ---------- Coloured text blocks ---------- */

.hp-bg-cyan {
    background: var(--brand-cyan);
    color: var(--white);
}

.hp-bg-lime {
    background: var(--brand-lime);
    color: var(--hp-dark);
}

.hp-bg-dark {
    background: var(--hp-dark);
    color: var(--white);
}

.hp-split-block h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.01em;
    text-transform: lowercase;
    color: inherit;
}

.hp-bg-cyan h2,
.hp-bg-lime h2,
.hp-bg-dark h2,
.hp-bg-cyan h3,
.hp-bg-lime h3,
.hp-bg-dark h3 {
    color: inherit;
}

.hp-bg-lime .hp-eyebrow-white,
.hp-bg-lime .hp-dash-white {
    color: var(--white);
}

.hp-split-even {
    grid-template-columns: 1fr 1fr;
}

.hp-split-center {
    align-items: center;
}

.hp-split-block .hp-btns {
    margin-top: 8px;
}


/* numbered squares (values) */

.hp-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--brand-lime);
    color: var(--hp-dark);
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 22px;
}


/* dark "global impact" block with stat rows (ref: habitat.org.au) */

.hp-global h2 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.01em;
    text-transform: lowercase;
    color: var(--white);
}

.hp-global p {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}

.hp-stat-rows {
    list-style: none;
    display: grid;
    gap: 12px;
}

.hp-stat-rows li {
    background: #2E3336;
    padding: 18px 26px;
    font-size: 17px;
    color: rgba(255, 255, 255, .85);
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.hp-stat-rows .hp-stat-number {
    font-size: 32px;
    min-width: 110px;
}

/* numbered rows (no stat): lime square + text */

.hp-stat-rows.hp-rows-numbered li {
    align-items: center;
}

.hp-stat-rows .hp-num {
    margin-bottom: 0;
    flex-shrink: 0;
}


/* ---------- Impact highlights: white stat cards on grey ---------- */

.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--hp-gap);
}

.hp-stat {
    background: var(--white);
    padding: 36px 30px 34px;
    opacity: 0;
    transform: translateY(24px);
}

.hp-stats-grid.in-view .hp-stat {
    animation: hpRise .6s cubic-bezier(.22, .9, .3, 1) forwards;
}

.hp-stats-grid.in-view .hp-stat:nth-child(2) {
    animation-delay: .1s;
}

.hp-stats-grid.in-view .hp-stat:nth-child(3) {
    animation-delay: .2s;
}

.hp-stats-grid.in-view .hp-stat:nth-child(4) {
    animation-delay: .3s;
}

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

.hp-stat-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-bottom: 22px;
}

.hp-stat-number {
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    color: var(--brand-cyan);
    font-variant-numeric: tabular-nums;
}

.hp-stat-label {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--hp-dark);
}


/* ---------- Featured story: photo block + text block ---------- */

.hp-split {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: var(--hp-gap);
    align-items: stretch;
}

.hp-split-photo img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.hp-split-block {
    padding: 48px 52px;
}

.hp-split-block h3 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--hp-dark);
    margin-bottom: 18px;
}

.hp-split-block p {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.65;
}

.hp-quote {
    background: var(--white);
    border-left: 5px solid var(--brand-lime);
    padding: 16px 20px;
    font-weight: 700;
    color: var(--hp-dark);
    margin: 22px 0 26px;
}


/* ---------- Quick links: four solid colour tiles ---------- */

.hp-quicklinks {
    padding: 0 0 80px;
    background: var(--white);
}

.hp-ql-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--hp-gap);
}

.hp-ql {
    display: flex;
    flex-direction: column;
    padding: 34px 30px 30px;
    min-height: 250px;
    transition: transform .2s, filter .2s;
}

.hp-ql:hover {
    transform: translateY(-4px);
}

.hp-ql img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-bottom: 20px;
}

.hp-ql h3 {
    font-size: 24px;
    font-weight: 700;
    text-transform: lowercase;
    color: inherit;
    margin-bottom: 8px;
}

.hp-ql p {
    font-size: 15px;
    line-height: 1.5;
    flex: 1;
}

.hp-more {
    display: inline-block;
    margin-top: 18px;
    font-weight: 700;
    font-size: 15px;
}

.hp-ql-cyan {
    background: var(--brand-cyan);
    color: var(--white);
}

.hp-ql-lime {
    background: var(--brand-lime);
    color: var(--hp-dark);
}

.hp-ql-dark {
    background: var(--hp-dark);
    color: var(--white);
}

.hp-ql-dark .hp-more {
    color: var(--brand-lime);
}

.hp-ql-white {
    background: var(--hp-grey);
    color: var(--hp-dark);
}

.hp-ql-white .hp-more {
    color: var(--brand-cyan);
}


/* ---------- Cards (programmes / get involved) ---------- */

.hp-card-grid {
    display: grid;
    gap: var(--hp-gap);
}

.hp-card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hp-card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.hp-card {
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.hp-card>img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.hp-card-body {
    padding: 30px 30px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hp-card h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--hp-dark);
    margin-bottom: 12px;
}

.hp-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
    flex: 1;
}

.hp-card .hp-btn {
    align-self: flex-start;
}

.hp-tag {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: .04em;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.hp-tag-cyan {
    background: var(--brand-cyan);
    color: var(--white);
}

.hp-tag-lime {
    background: var(--brand-lime);
    color: var(--hp-dark);
}

.hp-tag-dark {
    background: var(--hp-dark);
    color: var(--white);
}


/* icon cards (get involved) */

.hp-card-icon {
    padding: 36px 30px 34px;
}

.hp-card.hp-bg-grey {
    background: var(--hp-grey);
}

.hp-card-icon>img {
    width: 64px;
    height: 64px;
    aspect-ratio: auto;
    object-fit: contain;
    margin-bottom: 22px;
}


/* ---------- CTA / subscribe split: dark + lime ---------- */

.hp-cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hp-cta-dark,
.hp-cta-lime {
    padding: 80px 24px;
    display: flex;
}

.hp-cta-dark {
    background: var(--hp-dark);
    color: var(--white);
    justify-content: flex-end;
}

.hp-cta-lime {
    background: var(--brand-lime);
    color: var(--hp-dark);
}

.hp-cta-inner {
    width: 100%;
    max-width: 566px;
    /* half of .container (1180 - 48px padding) */
}

.hp-cta-dark .hp-cta-inner {
    padding-right: 60px;
}

.hp-cta-lime .hp-cta-inner {
    padding-left: 60px;
}

.hp-cta-split h2 {
    font-size: 42px;
    color: inherit;
}

.hp-cta-split p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.hp-subscribe {
    display: flex;
    gap: 0;
    max-width: 480px;
}

.hp-subscribe input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 2px solid var(--white);
    background: var(--white);
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: var(--hp-dark);
}

.hp-subscribe input:focus {
    outline: none;
    border-color: var(--brand-cyan);
}

.hp-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}


/* ---------- Photo strip ---------- */

.hp-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.hp-mosaic img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}


/* ---------- Footer: structured columns on grey ---------- */

.hp-footer {
    background: var(--hp-grey);
    color: var(--hp-text);
}

.hp-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 70px 0 60px;
}

.hp-footer-brand img {
    height: 64px;
    width: auto;
    margin-bottom: 22px;
}

.hp-footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 360px;
}

.hp-footer h4 {
    font-size: 22px;
    font-weight: 700;
    text-transform: lowercase;
    color: var(--brand-cyan);
    margin-bottom: 8px;
}

.hp-footer h4::after {
    content: '';
    display: block;
    width: 22px;
    height: 3px;
    background: var(--brand-cyan);
    margin: 10px 0 18px;
}

.hp-footer ul {
    list-style: none;
}

.hp-footer li {
    margin-bottom: 8px;
}

.hp-footer li a {
    font-size: 15px;
    color: var(--hp-text);
    transition: color .2s;
}

.hp-footer li a:hover {
    color: var(--brand-cyan);
}

.hp-footer-social {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.hp-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--brand-cyan);
    color: var(--white);
    transition: background .2s;
}

.hp-footer-social a:hover {
    background: var(--hp-dark);
}

.hp-footer-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.hp-footer-bottom {
    background: var(--hp-dark);
    color: rgba(255, 255, 255, .8);
    padding: 18px 0;
    font-size: 13px;
}


/* ---------- Homepage responsive ---------- */

@media (max-width:1024px) {
    .hp-head h2 {
        font-size: 38px;
    }
    .hp-hero h1 {
        font-size: 44px;
    }
    .hp-stats-grid,
    .hp-ql-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hp-card-grid-3 {
        grid-template-columns: 1fr;
    }
    .hp-card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hp-split,
    .hp-split-even {
        grid-template-columns: 1fr;
    }
    .hp-split-photo img {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
    .hp-page-title h1,
    .hp-global h2 {
        font-size: 40px;
    }
    .hp-split-block h2 {
        font-size: 30px;
    }
    .hp-cta-split {
        grid-template-columns: 1fr;
    }
    .hp-cta-dark,
    .hp-cta-lime {
        justify-content: center;
        padding: 60px 24px;
    }
    .hp-cta-dark .hp-cta-inner,
    .hp-cta-lime .hp-cta-inner {
        padding: 0;
        max-width: 720px;
    }
    .hp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hp-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px) {
    .hp-section {
        padding: 56px 0;
    }
    /* phones: show the photo as a band above the block instead of behind it */
    .hp-hero {
        min-height: 0;
        padding: 260px 0 0;
        background-position: center top;
    }
    .hp-hero .container {
        padding: 0;
    }
    .hp-hero-block {
        max-width: none;
        padding: 36px 28px 40px;
    }
    .hp-hero h1 {
        font-size: 34px;
    }
    .hp-page-title {
        padding: 40px 0 16px;
    }
    .hp-page-title h1,
    .hp-global h2 {
        font-size: 32px;
    }
    .hp-split-block h2 {
        font-size: 26px;
    }
    .hp-stat-rows .hp-stat-number {
        min-width: 0;
    }
    .hp-head h2 {
        font-size: 32px;
    }
    .hp-stats-grid,
    .hp-ql-grid,
    .hp-card-grid-4,
    .hp-footer-grid {
        grid-template-columns: 1fr;
    }
    .hp-split-block {
        padding: 32px 26px;
    }
    .hp-cta-split h2 {
        font-size: 32px;
    }
    .hp-subscribe {
        flex-direction: column;
        gap: 10px;
    }
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width:1024px) {
    nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
}

#impact-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: #06212f;
    overflow: hidden;
    font-family: inherit;
}


/* ---------- Animated gradient mesh ---------- */

.intro-bg {
    position: absolute;
    inset: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    will-change: transform;
}

.blob-1 {
    width: 55vw;
    height: 55vw;
    background: #1494c9;
    top: -15%;
    left: -10%;
    animation: drift1 14s ease-in-out infinite alternate;
}

.blob-2 {
    width: 45vw;
    height: 45vw;
    background: #c3d600;
    bottom: -20%;
    right: -10%;
    opacity: .3;
    animation: drift2 18s ease-in-out infinite alternate;
}

.blob-3 {
    width: 35vw;
    height: 35vw;
    background: #0e6a94;
    top: 40%;
    left: 45%;
    animation: drift3 16s ease-in-out infinite alternate;
}

@keyframes drift1 {
    to {
        transform: translate(12vw, 8vh) scale(1.15);
    }
}

@keyframes drift2 {
    to {
        transform: translate(-10vw, -6vh) scale(1.2);
    }
}

@keyframes drift3 {
    to {
        transform: translate(-8vw, 10vh) scale(.9);
    }
}


/* subtle film grain for texture */

.grain {
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ---------- Content ---------- */

.intro-inner {
    position: relative;
    z-index: 2;
    max-width: 960px;
    padding: 24px;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 36px;
    animation: fadeUp .9s cubic-bezier(.22, 1, .36, 1) .2s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c3d600;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(195, 214, 0, .6);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(195, 214, 0, 0);
    }
}


/* Masked line-by-line text reveal */

.intro-headline {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 56px;
}

.intro-headline .line {
    display: block;
    overflow: hidden;
}

.intro-headline .line>span {
    display: block;
    transform: translateY(110%);
    animation: lineUp 1s cubic-bezier(.22, 1, .36, 1) forwards;
}

.intro-headline .line:nth-child(1)>span {
    animation-delay: .4s;
}

.intro-headline .line:nth-child(2)>span {
    animation-delay: .55s;
}

.intro-headline em {
    font-style: normal;
    background: linear-gradient(90deg, #c3d600, #eaff4d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes lineUp {
    to {
        transform: translateY(0);
    }
}


/* ---------- Glassmorphism stat cards ---------- */

.intro-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.intro-stat.glass {
    min-width: 220px;
    padding: 28px 32px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
    opacity: 0;
    animation: fadeUp .9s cubic-bezier(.22, 1, .36, 1) forwards;
    transition: transform .3s ease, border-color .3s ease;
}

.intro-stat.glass:hover {
    transform: translateY(-6px);
    border-color: rgba(195, 214, 0, .5);
}

.intro-stat:nth-child(1) {
    animation-delay: .9s;
}

.intro-stat:nth-child(2) {
    animation-delay: 1.05s;
}

.intro-stat:nth-child(3) {
    animation-delay: 1.2s;
}

.intro-number {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #c3d600;
}

.intro-stat p {
    font-size: .9rem;
    opacity: .85;
    margin-top: 6px;
}


/* ---------- Skip button with progress ring ---------- */

#intro-skip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(12px);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 26px 12px 12px;
    border-radius: 999px;
    cursor: pointer;
    opacity: 0;
    animation: fadeUp .9s cubic-bezier(.22, 1, .36, 1) 1.5s forwards;
    transition: background .3s ease, transform .2s ease;
}

#intro-skip:hover {
    background: rgba(255, 255, 255, .16);
    transform: translateY(-2px);
}

#intro-skip:hover .skip-arrow {
    transform: translateX(4px);
}

.skip-arrow {
    transition: transform .25s ease;
}

.skip-ring {
    width: 40px;
    height: 40px;
    transform: rotate(-90deg);
}

.ring-track,
.ring-progress {
    fill: none;
    stroke-width: 3;
}

.ring-track {
    stroke: rgba(255, 255, 255, .15);
}

.ring-progress {
    stroke: #c3d600;
    stroke-linecap: round;
    stroke-dasharray: 126;
    /* 2πr ≈ 125.6 */
    stroke-dashoffset: 126;
    animation: ringFill 6s linear 1.5s forwards;
}

@keyframes ringFill {
    to {
        stroke-dashoffset: 0;
    }
}


/* ---------- Curtain wipe exit ---------- */

.intro-curtain {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    pointer-events: none;
}

.intro-curtain span {
    flex: 1;
    background: #c3d600;
    transform: scaleY(0);
    transform-origin: top;
}

#impact-intro.exiting .intro-inner {
    animation: contentOut .4s ease forwards;
}

#impact-intro.exiting .intro-curtain span {
    animation: curtainWipe .9s cubic-bezier(.76, 0, .24, 1) forwards;
}

#impact-intro.exiting .intro-curtain span:nth-child(2) {
    animation-delay: .08s;
}

#impact-intro.exiting .intro-curtain span:nth-child(3) {
    animation-delay: .16s;
}

@keyframes contentOut {
    to {
        opacity: 0;
        transform: translateY(-30px) scale(.97);
        filter: blur(6px);
    }
}

@keyframes curtainWipe {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #impact-intro * {
        animation-duration: .01s !important;
        animation-delay: 0s !important;
    }
    .blob {
        animation: none !important;
    }
}