/* ==========================================================================
   Central ICT Club Bangladesh
   Homepage styles
   Built around the brand emblem: deep navy as the anchor, green as the spark.
   ========================================================================== */

/* ---- Design tokens ---------------------------------------------------- */
:root {
    /* Brand colours pulled straight from the logo */
    --navy-900: #081a33;
    --navy-800: #0b2342;
    --navy-700: #123158;
    --blue-600: #1c63b4;
    --blue-500: #2a7fd4;
    --green-600: #119151;
    --green-500: #16a35d;
    --green-400: #2bc473;

    /* Neutrals */
    --ink: #0a1626;
    --slate-700: #33455c;
    --slate-500: #5c6f86;
    --slate-400: #8295aa;
    --mist: #eef3f9;
    --paper: #f7fafd;
    --white: #ffffff;
    --line: #dde6f1;
    --line-dark: rgba(255, 255, 255, 0.12);

    /* Signature gradient, navy easing into green */
    --grad-brand: linear-gradient(120deg, var(--navy-800) 0%, var(--blue-600) 52%, var(--green-500) 100%);
    --grad-soft: linear-gradient(135deg, rgba(28, 99, 180, 0.12), rgba(22, 163, 93, 0.12));

    /* Type families */
    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

    /* Corner radii */
    --r-xs: 10px;
    --r-sm: 14px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-pill: 999px;

    /* Layered shadows for real depth */
    --sh-sm: 0 2px 10px rgba(10, 22, 38, 0.06);
    --sh-md: 0 16px 40px rgba(10, 22, 38, 0.10);
    --sh-lg: 0 34px 80px rgba(10, 22, 38, 0.20);
    --sh-green: 0 14px 30px rgba(17, 145, 81, 0.32);

    /* Shared spacing and timing */
    --container: 1240px;
    --gutter: clamp(20px, 5vw, 40px);
    --header-h: 76px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset and base --------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    line-height: 1.7;
    color: var(--slate-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Lock scroll while the mobile drawer is open */
body.nav-open {
    overflow: hidden;
}

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

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1rem;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Visible focus for keyboard users, hidden for mouse clicks */
:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip link sits off screen until focused */
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1200;
    background: var(--navy-800);
    color: var(--white);
    padding: 10px 18px;
    border-radius: var(--r-pill);
    transition: top 0.25s var(--ease);
}

.skip-link:focus {
    top: 16px;
}

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

.section {
    padding-block: clamp(64px, 9vw, 128px);
}

.section--mist {
    background: var(--mist);
}

.section--dark {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.78);
}

/* ---- Shared type pieces ----------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-600);
    margin: 0 0 18px;
}

.eyebrow--light {
    color: var(--green-400);
}

.eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(22, 163, 93, 0.18);
}

.section__title {
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.15rem);
    font-weight: 700;
}

.section__head {
    max-width: 720px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.section__head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
}

.section__intro,
.lead {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
    color: var(--slate-500);
    margin-bottom: 0;
}

.lead {
    color: var(--slate-700);
    font-weight: 500;
    margin-bottom: 1.1rem;
}

/* Arrow link used across sections */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--blue-600);
    margin-top: 8px;
}

.link-arrow span {
    transition: transform 0.25s var(--ease);
}

.link-arrow:hover span {
    transform: translateX(5px);
}

/* Tick list */
.ticks {
    margin: 22px 0 26px;
    display: grid;
    gap: 12px;
}

.ticks li {
    position: relative;
    padding-left: 34px;
    color: var(--slate-700);
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    /* white checkmark painted on top of the brand gradient, one element, no tricks */
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 12px no-repeat,
        var(--grad-brand);
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.97rem;
    line-height: 1;
    padding: 13px 24px;
    border: 1.5px solid transparent;
    border-radius: var(--r-pill);
    transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
                background-color 0.25s var(--ease), color 0.25s var(--ease),
                border-color 0.25s var(--ease);
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn--lg {
    padding: 16px 30px;
    font-size: 1.02rem;
}

/* Filled green, our primary action */
.btn--solid {
    background: var(--green-600);
    color: var(--white);
    box-shadow: var(--sh-green);
}

.btn--solid:hover {
    background: var(--green-500);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(17, 145, 81, 0.4);
}

/* Light button for dark backgrounds */
.btn--light {
    background: var(--white);
    color: var(--navy-800);
}

.btn--light:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-lg);
}

/* Outline on dark surfaces */
.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Quiet button that adapts to header state */
.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Ghost variant on light backgrounds */
.btn--dark {
    color: var(--navy-800);
    border-color: var(--line);
}

.btn--dark:hover {
    background: var(--white);
    border-color: var(--navy-800);
}

/* Stretches a button to fill its container, handy for forms */
.btn--block {
    width: 100%;
}

/* ---- Form controls (shared by auth, contact, and any other form) ------ */
.field {
    display: grid;
    gap: 7px;
}

.field__labelrow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.field__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-700);
}

.field__link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--blue-600);
    transition: color 0.2s var(--ease);
}

.field__link:hover {
    color: var(--green-600);
}

.field__control {
    position: relative;
}

.field__input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 13px 16px;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
                box-shadow 0.2s var(--ease);
}

.field__input::placeholder {
    color: var(--slate-400);
}

.field__input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(22, 163, 93, 0.14);
}

/* invalid state, toggled by the page script */
.field.is-invalid .field__input {
    border-color: #e0564f;
    background: #fff6f5;
}

.field.is-invalid .field__input:focus {
    box-shadow: 0 0 0 4px rgba(224, 86, 79, 0.14);
}

/* Error line under a field */
.field__error {
    min-height: 0;
    margin: 0;
    font-size: 0.83rem;
    font-weight: 500;
    color: #d6453d;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.field.is-invalid .field__error {
    opacity: 1;
    transform: none;
}

/* Off screen honeypot, present for bots but invisible to people */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Custom checkbox */
.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.92rem;
    color: var(--slate-700);
    cursor: pointer;
    line-height: 1.45;
}

/* hide the native control but keep it reachable */
.checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox__box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid var(--slate-400);
    border-radius: 6px;
    background: var(--white);
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.checkbox input:checked ~ .checkbox__box {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 13px no-repeat,
        var(--green-600);
    border-color: var(--green-600);
}

.checkbox input:focus-visible ~ .checkbox__box {
    box-shadow: 0 0 0 4px rgba(22, 163, 93, 0.18);
}

.checkbox a {
    color: var(--blue-600);
    font-weight: 600;
}

.checkbox a:hover {
    color: var(--green-600);
}

.checkbox.is-invalid .checkbox__box {
    border-color: #e0564f;
}

/* ---- Header and navigation -------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
                border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}

/* Floating over the dark hero */
.site-header[data-state="top"] {
    background: transparent;
}

/* Pinned look after the user scrolls */
.site-header[data-state="solid"] {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: var(--line);
    box-shadow: var(--sh-sm);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

/* Brand lockup */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand__badge {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 5px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--line);
}

.brand__badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand__badge--lg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand__sub {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green-500);
}

/* Brand colour shifts with header state */
.site-header[data-state="top"] .brand__name {
    color: var(--white);
}

.site-header[data-state="solid"] .brand__name {
    color: var(--ink);
}

/* Navigation cluster */
.nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 34px);
    margin-left: auto;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 14px);
}

.nav__link {
    position: relative;
    display: inline-block;
    padding: 8px 4px;
    font-size: 0.94rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s var(--ease);
}

.site-header[data-state="solid"] .nav__link {
    color: var(--slate-700);
}

/* underline grows from the centre on hover and for the current page */
.nav__link::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 0;
    height: 2px;
    background: var(--green-500);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s var(--ease);
}

.nav__link:hover,
.nav__link.is-current {
    color: var(--green-400);
}

.site-header[data-state="solid"] .nav__link:hover,
.site-header[data-state="solid"] .nav__link.is-current {
    color: var(--green-600);
}

.nav__link:hover::after,
.nav__link.is-current::after {
    transform: scaleX(1);
}

/* Dropdown parent anchors the panel */
.nav__item {
    position: relative;
}

/* Trigger reads like a nav link but carries a chevron */
.nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
}

.nav__chev {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    transition: transform 0.3s var(--ease);
}

/* The panel that drops down on desktop, hidden until invited */
.nav__sub {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 214px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    box-shadow: var(--sh-md);
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
                visibility 0.22s var(--ease);
    z-index: 50;
}

/* invisible bridge so the cursor can cross the gap without closing */
.nav__sub::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav__sublink {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--slate-700);
    white-space: nowrap;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav__sublink:hover {
    background: var(--mist);
    color: var(--green-600);
}

/* Reveal the panel on hover, keyboard focus, or a pinned click (desktop only) */
@media (min-width: 1201px) {
    .has-sub:hover .nav__sub,
    .has-sub:focus-within .nav__sub,
    .has-sub.is-open .nav__sub {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .has-sub:hover .nav__chev,
    .has-sub:focus-within .nav__chev,
    .has-sub.is-open .nav__chev {
        transform: rotate(180deg);
    }
}

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

/* Login button needs to read on the solid header too */
.site-header[data-state="solid"] .btn--ghost {
    color: var(--navy-800);
    border-color: var(--line);
}

.site-header[data-state="solid"] .btn--ghost:hover {
    background: var(--mist);
}

/* Hamburger button. It sits inside the header next to the drawer, so it needs
   a higher stacking level than the drawer to stay visible and tappable while
   the menu is open. Tapping it again then closes the menu. */
.nav-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
}

.site-header[data-state="solid"] .nav-toggle {
    border-color: var(--line);
}

.nav-toggle__bar {
    width: 20px;
    height: 2px;
    margin-inline: auto;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-state="solid"] .nav-toggle__bar {
    background: var(--ink);
}

/* Morph the bars into a cross when open */
body.nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Scrim behind the drawer */
.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 980;
    background: rgba(8, 26, 51, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

body.nav-open .nav-scrim {
    opacity: 1;
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    padding-top: calc(var(--header-h) + clamp(56px, 9vw, 104px));
    padding-bottom: clamp(120px, 14vw, 190px);
    background:
        radial-gradient(120% 80% at 15% 0%, rgba(28, 99, 180, 0.35), transparent 55%),
        radial-gradient(100% 90% at 95% 20%, rgba(22, 163, 93, 0.28), transparent 50%),
        linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, #0a2950);
    color: var(--white);
    overflow: hidden;
}

/* Circuit lines drawn behind the words */
.hero__circuit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.55;
}

.hero__lines path {
    fill: none;
    stroke: rgba(110, 170, 230, 0.5);
    stroke-width: 1.4;
    stroke-dasharray: 6 8;
}

.hero__nodes circle {
    fill: var(--green-400);
    opacity: 0.85;
    animation: nodePulse 4s ease-in-out infinite;
}

.hero__nodes circle:nth-child(even) {
    animation-delay: 1.4s;
    fill: var(--blue-500);
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.95; }
}

.hero__inner {
    max-width: 880px;
}

.hero__title {
    color: var(--white);
    font-size: clamp(2.4rem, 1.3rem + 5vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
}

.hero__accent {
    display: block;
    background: linear-gradient(100deg, var(--green-400), var(--blue-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    max-width: 600px;
    font-size: clamp(1.1rem, 1rem + 0.55vw, 1.35rem);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 36px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---- Reusable page hero for inner pages ------------------------------- */
/* A shorter version of the homepage hero. Pages like Events and About drop
   their title in here, and the fixed header stays readable over the dark band. */
.page-hero {
    position: relative;
    isolation: isolate;
    padding-top: calc(var(--header-h) + clamp(46px, 7vw, 82px));
    padding-bottom: clamp(46px, 7vw, 82px);
    background:
        radial-gradient(120% 80% at 12% 0%, rgba(28, 99, 180, 0.32), transparent 55%),
        radial-gradient(90% 90% at 95% 30%, rgba(22, 163, 93, 0.26), transparent 52%),
        linear-gradient(160deg, var(--navy-900), var(--navy-800) 62%, #0a2950);
    color: var(--white);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 82% 18%, rgba(43, 196, 115, 0.16), transparent 30%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 64px);
}

.page-hero__inner {
    max-width: 760px;
}

.page-hero__title {
    color: var(--white);
    font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 14px;
}

.page-hero__lead {
    max-width: 620px;
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ---- Stats card floating over the hero -------------------------------- */
.stats {
    position: relative;
    z-index: 2;
    margin-top: clamp(-110px, -11vw, -90px);
}

.stats__card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    padding: clamp(24px, 4vw, 44px) clamp(20px, 3vw, 36px);
}

.stat {
    text-align: center;
    padding: 8px 10px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: none;
}

.stat__num {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
    line-height: 1;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.stat__label {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-500);
    letter-spacing: 0.01em;
}

/* ---- About ------------------------------------------------------------ */
.about__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.about__copy p {
    color: var(--slate-700);
}

/* Visual panel made of glass cards and glowing orbs */
.about__visual {
    position: relative;
    min-height: 420px;
}

.glasscard {
    position: absolute;
    border-radius: var(--r-md);
    padding: 26px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--sh-md);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glasscard--a {
    top: 0;
    left: 0;
    width: 74%;
    background: var(--grad-brand);
    border: none;
    color: var(--white);
    box-shadow: var(--sh-lg);
}

.glasscard--b {
    bottom: 0;
    right: 0;
    width: 56%;
}

.glasscard__kicker {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
}

.glasscard__big {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
    color: var(--ink);
    line-height: 1.05;
}

.glasscard--a .glasscard__big {
    color: var(--white);
}

.glasscard__text {
    font-size: 0.96rem;
    color: var(--slate-700);
}

.glasscard--a .glasscard__text {
    color: rgba(255, 255, 255, 0.9);
}

/* Soft colour orbs for atmosphere */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(46px);
    z-index: -1;
}

.orb--green {
    width: 180px;
    height: 180px;
    background: rgba(43, 196, 115, 0.45);
    top: 40%;
    left: 30%;
}

.orb--blue {
    width: 150px;
    height: 150px;
    background: rgba(42, 127, 212, 0.4);
    bottom: 8%;
    left: 4%;
}

/* ---- Focus cards ------------------------------------------------------ */
.focus__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(18px, 2.5vw, 28px);
}

.fcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 32px 30px 30px;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
                border-color 0.3s var(--ease);
}

/* a thin brand bar slides in along the top on hover */
.fcard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.fcard:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-md);
    border-color: transparent;
}

.fcard:hover::before {
    transform: scaleX(1);
}

.fcard__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--grad-soft);
    color: var(--blue-600);
    margin-bottom: 22px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.fcard__icon svg {
    width: 28px;
    height: 28px;
}

.fcard:hover .fcard__icon {
    background: var(--grad-brand);
    color: var(--white);
}

.fcard__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.fcard__text {
    color: var(--slate-500);
    margin-bottom: 22px;
    flex-grow: 1;
}

.fcard__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--green-600);
}

.fcard__more span {
    transition: transform 0.25s var(--ease);
}

.fcard:hover .fcard__more span {
    transform: translateX(5px);
}

/* Small tag row at the foot of a card, used by the showcase pages */
.fcard__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fcard__tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue-600);
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 4px 11px;
}

/* non clickable card variant, used for values, mission, vision, principles */
.fcard--value {
    cursor: default;
}

.fcard--value .fcard__text {
    margin-bottom: 0;
}

/* ---- Featured events -------------------------------------------------- */
.events__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: clamp(20px, 2.5vw, 30px);
}

.ecard {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ecard:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-md);
}

/* Coloured banner stands in for an event photo */
.ecard__banner {
    position: relative;
    height: 150px;
    background: var(--grad-brand);
    overflow: hidden;
}

.ecard__banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 40%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 10px, transparent 10px 20px);
}

.ecard__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy-800);
    background: var(--white);
    padding: 6px 12px;
    border-radius: var(--r-pill);
}

.ecard__date {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    text-align: center;
    background: rgba(8, 26, 51, 0.55);
    color: var(--white);
    border-radius: var(--r-xs);
    padding: 7px 11px;
    line-height: 1.1;
    backdrop-filter: blur(4px);
}

.ecard__day {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
}

.ecard__mon {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ecard__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px 24px 26px;
}

.ecard__title {
    font-size: 1.22rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.ecard__text {
    color: var(--slate-500);
    font-size: 0.96rem;
    margin-bottom: 18px;
    flex-grow: 1;
}

.ecard__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-700);
}

.ecard__meta svg {
    width: 17px;
    height: 17px;
    color: var(--green-600);
    flex-shrink: 0;
}

/* ---- Mission and Vision ----------------------------------------------- */
.mv {
    position: relative;
    padding-block: clamp(70px, 9vw, 120px);
    overflow: hidden;
}

.mv__glow {
    position: absolute;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 163, 93, 0.3), transparent 65%);
    top: -180px;
    right: -120px;
    filter: blur(40px);
    pointer-events: none;
}

.mv__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(36px, 5vw, 80px);
    margin-top: 14px;
}

.mv__item {
    position: relative;
    padding-top: 26px;
    border-top: 1px solid var(--line-dark);
}

.mv__index {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--green-400);
    margin-bottom: 18px;
    letter-spacing: 0.1em;
}

.mv__heading {
    color: var(--white);
    font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.mv__text {
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

/* ---- Team teaser ------------------------------------------------------ */
.team__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.team__copy p {
    color: var(--slate-700);
    margin-bottom: 28px;
}

/* Avatar cluster, decorative and name free */
.team__cluster {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.avatar {
    display: grid;
    place-items: center;
    width: clamp(72px, 9vw, 104px);
    height: clamp(72px, 9vw, 104px);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
    color: var(--white);
    box-shadow: var(--sh-md);
    border: 3px solid var(--white);
}

.avatar--1 { background: linear-gradient(135deg, var(--navy-700), var(--blue-600)); }
.avatar--2 { background: linear-gradient(135deg, var(--green-600), var(--green-400)); }
.avatar--3 { background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); }
.avatar--4 { background: linear-gradient(135deg, var(--navy-800), var(--green-600)); font-size: 1.8rem; }
.avatar--5 { background: linear-gradient(135deg, var(--green-500), var(--blue-500)); }
.avatar--6 { background: linear-gradient(135deg, var(--blue-500), var(--navy-700)); }

.team__count {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: var(--slate-500);
}

/* ---- Closing CTA ------------------------------------------------------ */
.cta {
    padding-block: clamp(40px, 6vw, 80px);
    background: var(--white);
}

.cta__panel {
    position: relative;
    text-align: center;
    border-radius: var(--r-lg);
    padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 60px);
    background: var(--grad-brand);
    color: var(--white);
    overflow: hidden;
    box-shadow: var(--sh-lg);
}

/* faint circuit pattern layered on the panel */
.cta__circuit {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 80%, rgba(255, 255, 255, 0.18), transparent 30%),
        radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.16), transparent 28%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 60px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 60px);
    pointer-events: none;
}

.cta__title {
    position: relative;
    color: var(--white);
    font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta__text {
    position: relative;
    max-width: 560px;
    margin: 0 auto 30px;
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
}

.cta__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ---- Footer ----------------------------------------------------------- */
.footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.7);
    padding-top: clamp(56px, 7vw, 90px);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: clamp(40px, 5vw, 80px);
    padding-bottom: clamp(40px, 5vw, 64px);
}

.footer__tagline {
    max-width: 320px;
    margin: 18px 0 24px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.4;
}

/* Newsletter form */
.subscribe__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-400);
    margin-bottom: 12px;
}

.subscribe__row {
    display: flex;
    gap: 10px;
    max-width: 420px;
}

.subscribe__input {
    flex-grow: 1;
    min-width: 0;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-dark);
    border-radius: var(--r-pill);
    padding: 13px 20px;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.subscribe__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.subscribe__input:focus {
    outline: none;
    border-color: var(--green-400);
    background: rgba(255, 255, 255, 0.1);
}

.subscribe__note {
    min-height: 20px;
    margin: 12px 0 0;
    font-size: 0.88rem;
    color: var(--green-400);
}

.subscribe__note.is-error {
    color: #ff8b8b;
}

/* Footer link columns */
.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer__heading {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--white);
    margin-bottom: 18px;
}

.footer__col ul {
    display: grid;
    gap: 12px;
}

.footer__col a,
.footer__muted {
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.66);
    transition: color 0.2s var(--ease);
}

.footer__col a:hover {
    color: var(--green-400);
}

.footer__muted {
    cursor: default;
}

/* Social row */
.social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social__btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line-dark);
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.25s var(--ease), background 0.25s var(--ease),
                color 0.25s var(--ease);
}

.social__btn svg {
    width: 19px;
    height: 19px;
}

.social__btn:hover {
    transform: translateY(-3px);
    background: var(--green-600);
    color: var(--white);
}

/* Bottom strip */
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-block: 26px;
    margin-top: 8px;
    border-top: 1px solid var(--line-dark);
}

.footer__copy {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.footer__legal a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.66);
    transition: color 0.2s var(--ease);
}

.footer__legal a:hover {
    color: var(--green-400);
}

/* ---- Back to top ------------------------------------------------------ */
.to-top {
    position: fixed;
    right: clamp(16px, 3vw, 32px);
    bottom: clamp(16px, 3vw, 32px);
    z-index: 900;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    background: var(--navy-800);
    color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--sh-md);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
                background 0.25s var(--ease);
}

.to-top svg {
    width: 22px;
    height: 22px;
}

.to-top.is-shown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.to-top:hover {
    background: var(--green-600);
}

/* ---- Scroll reveal ---------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].reveal-in {
    opacity: 1;
    transform: none;
}

/* Stagger reveals inside the same group */
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ---- Not found (404) -------------------------------------------------- */
.notfound__inner {
    max-width: 580px;
    margin: 0 auto;
    padding: clamp(20px, 5vw, 50px) 0;
    text-align: center;
}

.notfound__code {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(5rem, 18vw, 9rem);
    line-height: 1;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--blue-600);
}

.notfound__title {
    font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem);
    margin: 8px 0 12px;
}

.notfound__text {
    color: var(--slate-500);
    margin: 0 0 26px;
}

.notfound__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ==========================================================================
   Responsive rules
   ========================================================================== */

/* Tablet and below: collapse the inline nav into a compact drawer */
@media (max-width: 1200px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 990;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: min(64vw, 214px);
        height: auto;
        max-height: 100dvh;
        margin: 0;
        padding: calc(var(--header-h) + 10px) 14px 20px;
        background: var(--white);
        border-bottom-left-radius: 18px;
        box-shadow: -12px 20px 55px rgba(8, 26, 51, 0.24);
        overflow-y: auto;
        transform: translateX(105%);
        transition: transform 0.35s var(--ease);
    }

    body.nav-open .nav {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    /* Top level rows: tight, rounded, no heavy dividers */
    .nav__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 9px 12px;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--ink);
        border-radius: 12px;
        border-bottom: none;
        transition: background 0.2s var(--ease), color 0.2s var(--ease);
    }

    /* the centred underline makes no sense in a stacked list */
    .nav__link::after {
        display: none;
    }

    .nav__link:hover,
    .nav__link:focus-visible,
    .nav__link.is-current {
        background: var(--mist);
        color: var(--green-600);
    }

    .nav__trigger {
        gap: 0;
        text-align: left;
    }

    .nav__chev {
        width: 16px;
        height: 16px;
    }

    /* Accordion panel: collapsed until its group is tapped open */
    .nav__sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        min-width: 0;
        padding: 0;
        margin: 2px 0 4px 10px;
        background: transparent;
        border: none;
        border-left: 2px solid var(--line);
        border-radius: 0;
        box-shadow: none;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.32s var(--ease);
    }

    .nav__sub::before {
        display: none;
    }

    .has-sub.is-open .nav__sub {
        max-height: 300px;
    }

    .has-sub.is-open .nav__chev {
        transform: rotate(180deg);
    }

    /* Sub items: smaller and quieter than the parents */
    .nav__sublink {
        padding: 8px 12px;
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--slate-500);
        border-radius: 8px;
        white-space: normal;
    }

    .nav__sublink:hover,
    .nav__sublink:focus-visible {
        background: var(--mist);
        color: var(--green-600);
    }

    .nav__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--line);
    }

    .nav__actions .btn {
        width: 100%;
        padding-block: 12px;
    }

    /* buttons inside the drawer always sit on white */
    .site-header .nav__actions .btn--ghost {
        color: var(--navy-800);
        border-color: var(--line);
    }

    .nav-toggle {
        display: flex;
    }
}

/* Mid screens: relax the two column sections */
@media (max-width: 900px) {
    .about__grid,
    .team__grid {
        grid-template-columns: 1fr;
    }

    .about__visual {
        min-height: 360px;
        order: -1;
    }

    .mv__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .section__head--row {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__top {
        grid-template-columns: 1fr;
    }

    .stats__card {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    /* tidy the dividers when the stats wrap to two rows */
    .stat {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding-block: 22px;
    }

    .stat:nth-child(2n) {
        border-right: none;
    }

    .stat:nth-child(n + 3) {
        border-bottom: none;
    }
}

/* Phones */
@media (max-width: 560px) {
    :root {
        --header-h: 66px;
    }

    .brand__text {
        display: none;
    }

    .brand__badge {
        width: 44px;
        height: 44px;
    }

    .hero__cta .btn,
    .cta__actions .btn {
        width: 100%;
    }

    .footer__cols {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .subscribe__row {
        flex-direction: column;
    }

    .subscribe__row .btn {
        width: 100%;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Very small phones: never let the stats crowd */
@media (max-width: 380px) {
    .stats__card {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .stat:last-child {
        border-bottom: none;
    }

    .footer__cols {
        grid-template-columns: 1fr;
    }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Password field UI: reveal button and strength meter
   Shared by the auth screens and the member account page. The behaviour
   lives in js/password.js, the colours and layout live here.
   ========================================================================== */
.field__input--lock {
    padding-right: 50px;
}

/* Show and hide password button */
.field__toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--slate-400);
    background: transparent;
    border: none;
    border-radius: 9px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.field__toggle:hover {
    color: var(--slate-700);
    background: var(--mist);
}

.field__toggle svg {
    width: 20px;
    height: 20px;
}

/* swap the two eye icons based on state */
.field__toggle .icon-eye-off {
    display: none;
}

.field__toggle.is-revealed .icon-eye {
    display: none;
}

.field__toggle.is-revealed .icon-eye-off {
    display: block;
}

/* ---- Password strength meter (signup) --------------------------------- */
.pwd-meter {
    display: grid;
    gap: 6px;
    margin-top: 2px;
}

.pwd-meter__track {
    display: flex;
    gap: 5px;
}

.pwd-meter__seg {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: var(--line);
    transition: background 0.25s var(--ease);
}

.pwd-meter__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-400);
}

/* strength levels colour the segments and the label */
.pwd-meter[data-level="1"] .pwd-meter__seg:nth-child(-n + 1),
.pwd-meter[data-level="2"] .pwd-meter__seg:nth-child(-n + 2),
.pwd-meter[data-level="3"] .pwd-meter__seg:nth-child(-n + 3),
.pwd-meter[data-level="4"] .pwd-meter__seg:nth-child(-n + 4) {
    background: var(--meter-color, var(--green-500));
}

.pwd-meter[data-level="1"] { --meter-color: #e0564f; }
.pwd-meter[data-level="2"] { --meter-color: #e0954f; }
.pwd-meter[data-level="3"] { --meter-color: #2a9fd4; }
.pwd-meter[data-level="4"] { --meter-color: var(--green-500); }

.pwd-meter[data-level="1"] .pwd-meter__label { color: #d6453d; }
.pwd-meter[data-level="2"] .pwd-meter__label { color: #c87a2f; }
.pwd-meter[data-level="3"] .pwd-meter__label { color: var(--blue-600); }
.pwd-meter[data-level="4"] .pwd-meter__label { color: var(--green-600); }


/* Footer credit line. The link is styled to read as plain text: same colour as
   the surrounding text, no underline, and a normal cursor, so it does not look
   like a link while still pointing where it should. */
.footer__author {
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #8a93a3;
  opacity: 0.8;
  margin: 14px 0 0;
}
.footer__author a {
  color: inherit;
  text-decoration: none;
  cursor: text;
}
.footer__author a:hover,
.footer__author a:focus {
  color: inherit;
  text-decoration: none;
}
