/* ==========================================================================
   MZDO public website
   Brand colours sampled from the logo swatches. Accent colours (orange,
   teal) fail text contrast on white, so they are used only as fills and
   rules; their -ink variants are for text.
   ========================================================================== */

:root {
    --purple: #885695;
    --purple-ink: #6E3F7B;
    --purple-deep: #33203C;
    --purple-tint: #F5F0F6;
    --red: #D82A34;
    --red-ink: #B4202A;
    --teal: #02B0A4;
    --teal-ink: #00756C;
    --orange: #F2951C;
    --orange-ink: #8F5306;

    --ink: #221A26;
    --ink-soft: #4C4251;
    --muted: #6A6070;
    --line: #E4DCE2;
    --paper: #FCFAF7;
    --white: #FFFFFF;

    --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

    --container: 74rem;
    --gutter: clamp(1rem, 4vw, 2rem);
    --space-section: clamp(3.5rem, 8vw, 6.5rem);
    --radius: 4px;
    --header-h: 4.5rem;
}

/* ---- Base --------------------------------------------------------------- */

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

/* Component display rules must never beat the hidden attribute */
[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    text-rendering: optimizeLegibility;
}

/* The four logo swatches, as a hairline across the top of every page */
body::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg,
        var(--red) 0 25%, var(--purple) 25% 50%, var(--teal) 50% 75%, var(--orange) 75% 100%);
}

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

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 0.6em;
    text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--purple-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 2px;
}

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

figure { margin: 0; }

figcaption {
    margin-top: 0.6rem;
    font-size: 0.875rem;
    color: var(--muted);
}

address { font-style: normal; }

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.narrow { max-width: 48rem; }

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

.skip-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--purple-deep);
    color: var(--white);
    font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.lead {
    font-size: clamp(1.125rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 38em;
}

.small { font-size: 0.9375rem; color: var(--muted); }

/* Eyebrow label, keyed with a single square from the logo palette */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple-ink);
}
.eyebrow::before {
    content: "";
    width: 0.6rem; height: 0.6rem;
    background: var(--red);
    flex: none;
}
.eyebrow--light { color: #E6D6EA; }

.section { padding-block: var(--space-section); }
.section--tint { background: var(--purple-tint); }
.section--flush-top { padding-top: 0; }

.section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section-title--sm { font-size: clamp(1.375rem, 2.2vw, 1.625rem); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .section-title { margin-bottom: 0; }

.section-head--split {
    display: grid;
    gap: 1rem 4rem;
    align-items: end;
}
.section-head--split > p { color: var(--ink-soft); max-width: 34em; }

@media (min-width: 56rem) {
    .section-head--split { grid-template-columns: 1fr 1fr; }
}

/* ---- Buttons & links ---------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.625rem 1.25rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--lg { min-height: 3.25rem; padding-inline: 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--purple); color: var(--white); }
.btn--primary:hover { background: var(--purple-ink); }

.btn--secondary { border-color: var(--purple); color: var(--purple-ink); background: transparent; }
.btn--secondary:hover { background: var(--purple-tint); }

.btn--light { background: var(--white); color: var(--purple-deep); }
.btn--light:hover { background: var(--purple-tint); }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-head);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}
.link-arrow::after {
    content: "→";
    transition: transform 0.15s ease;
}
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; }

/* ---- Header ------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink);
}
.brand__mark { width: 48px; height: auto; }
.brand__name { display: flex; flex-direction: column; font-family: var(--font-head); line-height: 1.1; }
.brand__line1 { font-size: 1.125rem; font-weight: 800; color: var(--purple); letter-spacing: 0.01em; text-transform: uppercase; }
.brand__line2 { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* The emblem is purple, so on the dark footer it sits on a white tile */
.brand--light .brand__mark { width: 56px; padding: 5px; background: var(--white); border-radius: var(--radius); }
.brand--light .brand__line1 { color: var(--white); }
.brand--light .brand__line2 { color: #D9C8DE; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list { display: flex; gap: 1.75rem; }
.site-nav__list a {
    position: relative;
    display: block;
    padding-block: 0.5rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
}
.site-nav__list a:hover { color: var(--purple-ink); }
.site-nav__list a[aria-current="page"] { color: var(--ink); }
.site-nav__list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--purple);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    font: 600 0.9375rem var(--font-body);
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 18px; height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 55.99rem) {
    .js .nav-toggle { display: inline-flex; }
    .js .site-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0.5rem var(--gutter) 1.5rem;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px -12px rgba(34, 26, 38, 0.18);
    }
    .js .site-nav.is-open { display: flex; }
    .site-nav__list { flex-direction: column; gap: 0; }
    .site-nav__list a { padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
    .site-nav__list a[aria-current="page"]::after { display: none; }
    .site-nav__list a[aria-current="page"] { color: var(--purple-ink); }
    /* Without JS, the menu simply wraps below the brand */
    html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.75rem; }
    html:not(.js) .site-nav { flex-wrap: wrap; }
    html:not(.js) .site-nav__list { flex-direction: row; gap: 1rem; }
    html:not(.js) .site-nav__list a { border: 0; }
}

@media (max-width: 24rem) {
    .brand__line2 { font-size: 0.625rem; }
    .brand__line1 { font-size: 1rem; }
    .nav-toggle__label { display: none; }
}

/* ---- Home: hero slider --------------------------------------------------
   Text sits on a solid panel beside the photo rather than over it, so faces
   stay visible and contrast doesn't depend on the image. The panel column
   lines up with .container; the photo bleeds to the right edge. */

.hero-slider {
    --content: calc(var(--container) - 2 * var(--gutter));
    --slide-duration: 8s;
    position: relative;
    background: var(--purple-deep);
    color: #E9DEEC;
}

.hero-slider__slides { display: grid; }

.slide {
    --accent: var(--red);
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns:
        minmax(var(--gutter), 1fr)
        minmax(0, calc(var(--content) * 0.44))
        minmax(0, calc(var(--content) * 0.56))
        minmax(var(--gutter), 1fr);
    min-height: clamp(30rem, calc(100vh - var(--header-h) - 6rem), 42rem); /* fallback where svh is unsupported */
    min-height: clamp(30rem, calc(100svh - var(--header-h) - 6rem), 42rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease;
}
html:not(.js) .slide:not(:first-child) { display: none; }

.slide--purple { --accent: #B98AC6; }
.slide--orange { --accent: var(--orange); }
.slide--teal { --accent: var(--teal); }

.slide__panel {
    grid-column: 2;
    display: flex;
    align-items: center;
    padding-block: clamp(3rem, 6vw, 4.5rem);
    padding-right: clamp(2rem, 4vw, 4rem);
}
.slide .eyebrow::before { background: var(--accent); }

.slide__title {
    font-size: clamp(2rem, 3.5vw, 3.125rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 1.25rem;
}
.slide__text {
    max-width: 34em;
    margin-bottom: 2rem;
    font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
    color: #DCCFE0;
}

.slide__media {
    grid-column: 3 / -1;
    position: relative;
    overflow: hidden;
}
.slide__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide__caption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    margin: 0;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius);
    background: rgba(28, 17, 33, 0.75);
    color: var(--white);
    font-size: 0.8125rem;
}

@media (prefers-reduced-motion: no-preference) {
    .slide__copy {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
    }
    .slide.is-active .slide__copy { opacity: 1; transform: none; }
    .slide.is-active .slide__media img { animation: slide-settle 10s ease-out both; }
}
@keyframes slide-settle {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

@media (max-width: 59.99rem) {
    .slide {
        grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter);
        grid-template-rows: auto 1fr;
        min-height: 0;
    }
    .slide__media { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 4 / 3; }
    .slide__panel { grid-column: 2; grid-row: 2; align-items: flex-start; padding: 1.75rem 0 2.25rem; }
}

/* Slide tabs, with a progress line that drives autoplay (see main.js) */
.hero-slider__bar {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
html:not(.js) .hero-slider__bar { display: none; }

.hero-slider__bar-inner { display: flex; align-items: center; gap: 1.5rem; }

.slide-tabs { flex: 1; display: grid; grid-template-columns: repeat(var(--tabs, 4), minmax(0, 1fr)); align-self: stretch; }

.slide-tab {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    min-height: 3.75rem;
    padding: 1.1rem 1rem 1.1rem 0;
    border: 0;
    background: none;
    color: #BBA8C2;
    font: 600 0.9375rem var(--font-body);
    text-align: left;
    cursor: pointer;
}
.slide-tab:hover,
.slide-tab.is-active { color: var(--white); }
.slide-tab:focus-visible { outline-color: var(--orange); outline-offset: -2px; }
.slide-tab__num { font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; color: #9C86A4; }
.slide-tab.is-active .slide-tab__num { color: var(--orange); }

.slide-tab__bar {
    position: absolute;
    top: -1px; left: 0; right: 1rem;
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
}
.slide-tab__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
}
.slide-tab.is-active .slide-tab__bar::after { transform: scaleX(1); }
.hero-slider.is-playing .slide-tab.is-active .slide-tab__bar::after {
    animation: slide-progress var(--slide-duration) linear forwards;
}
.hero-slider.is-paused .slide-tab.is-active .slide-tab__bar::after { animation-play-state: paused; }
@keyframes slide-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.slider-buttons { display: flex; gap: 0.5rem; padding-block: 0.6rem; }
.slider-btn {
    display: grid;
    place-items: center;
    width: 2.75rem; height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.slider-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }
.slider-btn:focus-visible { outline-color: var(--orange); }
.slider-btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider-btn .icon-play { fill: currentColor; stroke-width: 1.5; }
.hero-slider.is-playing .icon-play,
.hero-slider:not(.is-playing) .icon-pause { display: none; }

@media (max-width: 47.99rem) {
    .hero-slider__bar-inner { gap: 0.75rem; }
    .slide-tab { padding-right: 0.5rem; }
    .slide-tab__bar { right: 0.5rem; }
    /* Numbers only on phones; the label stays available to screen readers */
    .slide-tab__label {
        position: absolute; width: 1px; height: 1px;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
}

.btn--outline-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.btn--light:focus-visible,
.btn--outline-light:focus-visible { outline-color: var(--orange); }

/* ---- Home: intro & facts ------------------------------------------------ */

.intro__grid {
    display: grid;
    gap: 1.5rem 5rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.intro__statement {
    margin: 0;
    font-size: clamp(1.75rem, 3.4vw, 2.625rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
}
.intro__body p { color: var(--ink-soft); }
.intro__body .link-arrow { margin-top: 0.5rem; }

@media (min-width: 60rem) {
    .intro__grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

.facts__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    margin: 0;
    border-block: 1px solid var(--line);
}

.facts__item {
    padding: 1.75rem 1.5rem 1.75rem 0;
}
.facts__item + .facts__item { padding-left: 1.5rem; border-left: 1px solid var(--line); }

.facts__item dt {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--purple);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}
.facts__item dd { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); max-width: 18em; }

@media (max-width: 59.99rem) {
    .facts__list { grid-template-columns: 1fr 1fr; }
    .facts__item, .facts__item + .facts__item { padding: 1.5rem 1rem 1.5rem 0; border-left: 0; }
    .facts__item:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
    .facts__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 30rem) {
    .facts__list { grid-template-columns: 1fr; }
    .facts__item:nth-child(even) { padding-left: 0; border-left: 0; }
    .facts__item + .facts__item { border-top: 1px solid var(--line); }
}

/* ---- Home: programmes --------------------------------------------------- */

.work__grid { display: grid; gap: 3rem; }

@media (min-width: 60rem) {
    .work__grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: start; }
    .work__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.work__intro > p:not(.eyebrow) { color: var(--ink-soft); }
.work__figure { margin-top: 2rem; }
.work__figure img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }

.programme-list { border-top: 1px solid var(--line); }

.programme {
    --accent: var(--purple);
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
    padding-block: 2rem;
    border-bottom: 1px solid var(--line);
}
.programme--purple { --accent: var(--purple); }
.programme--orange { --accent: var(--orange); }
.programme--red { --accent: var(--red); }
.programme--teal { --accent: var(--teal); }

.programme__num {
    font-family: var(--font-head);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--muted);
    padding-top: 0.35rem;
    border-top: 3px solid var(--accent);
    align-self: start;
    width: 2.25rem;
}
.programme__title { font-size: 1.375rem; margin-bottom: 0.5rem; }
.programme__body p { color: var(--ink-soft); max-width: 36em; margin-bottom: 0.75rem; }

/* ---- Home: process ------------------------------------------------------ */

.process { background: var(--purple-deep); color: #EFE6F1; }
.process .section-title { color: var(--white); }
.process .section-head--split > p { color: #D6C6DB; }
.process a:not(.btn) { color: var(--white); }

.steps {
    display: grid;
    gap: 0;
    counter-reset: step;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.step {
    counter-increment: step;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 0.75rem;
    font-family: var(--font-head);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--orange);
}
.step__title { font-size: 1.0625rem; color: var(--white); margin-bottom: 0.5rem; }
.step p { font-size: 0.9375rem; color: #D6C6DB; }

@media (min-width: 60rem) {
    .steps { grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
    .step { padding: 1.75rem 1.5rem 2rem 0; border-bottom: 0; }
    .step + .step { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, 0.18); }
}

.process__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* ---- Home: accountability ----------------------------------------------- */

.accountability__grid { display: grid; gap: 3rem; align-items: center; }
.accountability__figure img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 60rem) {
    .accountability__grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.checklist { display: grid; gap: 1.25rem; }
.checklist li {
    position: relative;
    padding-left: 2rem;
    color: var(--ink-soft);
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.35em;
    width: 1.125rem; height: 1.125rem;
    border-radius: 50%;
    background: var(--teal-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.checklist strong { color: var(--ink); }
.checklist--compact { gap: 0.6rem; margin-bottom: 1rem; }

/* ---- Leader messages (home and coming soon) ----------------------------- */

.leader-messages { background: var(--purple-deep); color: #E9DEEC; }
.leader-messages .section-title { color: var(--white); }
.leader-messages .section-head--split > p { color: #CDBBD3; }

.messages { display: grid; gap: 1.25rem; }
@media (min-width: 64rem) {
    .messages { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* Phones: small portrait beside the name, quote underneath */
.message {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    grid-template-areas: "photo by" "quote quote";
    gap: 1.25rem 1rem;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 3px solid var(--orange);
    border-radius: var(--radius);
}
.message:nth-child(2n) { border-top-color: var(--teal); }

.message__photo { grid-area: photo; }
.message__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

.message__quote { grid-area: quote; margin: 0; }
.message__quote p {
    margin: 0;
    font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
    line-height: 1.6;
    color: #F1E9F3;
}
.message__quote p::before {
    content: "\201C";
    display: block;
    height: 1.75rem;
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--orange);
}
.message:nth-child(2n) .message__quote p::before { color: var(--teal); }

.message__by { grid-area: by; }
.message__name { display: block; font-family: var(--font-head); font-weight: 700; line-height: 1.3; color: var(--white); }
.message__title { display: block; margin-top: 0.15rem; font-size: 0.9375rem; color: #BBA8C2; }

/* Wider: tall portrait on the left, quote and signature beside it */
@media (min-width: 36rem) {
    .message {
        grid-template-columns: clamp(10rem, 38%, 15rem) 1fr;
        grid-template-areas: "photo quote" "photo by";
        grid-template-rows: 1fr auto;
        gap: 1.5rem 1.75rem;
        align-items: start;
    }
    /* The portrait runs the full height of the card, whatever the quote length */
    .message__photo { align-self: stretch; position: relative; min-height: 15rem; }
    .message__photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
    .message__by { padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
}

/* ---- Home: officers ----------------------------------------------------- */

.officers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1rem;
}
.officer {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.officer { --avatar: 4rem; }
.officer .person__photo,
.officer .person__monogram { margin-bottom: 1rem; }
.officer__name { margin-bottom: 0.35rem; font-family: var(--font-head); font-weight: 700; line-height: 1.3; }
.officer .person__role { margin: 0; }

@media (max-width: 47.99rem) {
    .officers { gap: 0.5rem; }
    .officer {
        display: grid;
        --avatar: 3.5rem;
        grid-template-columns: var(--avatar) 1fr;
        column-gap: 1rem;
        align-items: center;
        padding: 1rem 1.25rem;
    }
    .officer .person__photo,
    .officer .person__monogram { grid-row: span 2; margin: 0; }
    .officer__name { margin-bottom: 0.1rem; }
}

/* ---- Home: gallery ------------------------------------------------------ */

.mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(10rem, 16vw, 14rem);
    grid-auto-flow: dense;
    gap: 0.75rem;
}
.mosaic__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #E9E1EA;
}
.mosaic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.mosaic__item:hover img { transform: scale(1.03); }
.mosaic__item figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    padding: 2.5rem 1rem 0.85rem;
    background: linear-gradient(to top, rgba(28, 17, 33, 0.82), rgba(28, 17, 33, 0));
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
}
.mosaic__item--big { grid-column: span 2; grid-row: span 2; }
.mosaic__item--tall { grid-row: span 2; }
.mosaic__item--wide { grid-column: span 2; }

@media (max-width: 47.99rem) {
    .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 10rem; }
}

/* ---- Home: get involved ------------------------------------------------- */

.involve__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
}
@media (min-width: 60rem) {
    .involve__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.involve__card {
    --accent: var(--purple);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius);
}
.involve__card--volunteer { --accent: var(--teal); }
.involve__card--partner { --accent: var(--orange); }
.involve__card > :last-child { margin-top: auto; }
.involve__title { margin: 0; font-size: 1.5rem; }
.involve__card p { margin: 0; color: var(--ink-soft); }

/* ---- Home: FAQ ---------------------------------------------------------- */

.faq-split { display: grid; gap: 2rem 5rem; }
@media (min-width: 60rem) {
    .faq-split { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
}

/* ---- Give band ---------------------------------------------------------- */

.give-band {
    padding-block: clamp(3rem, 6vw, 4.5rem);
    background: var(--white);
    border-top: 1px solid var(--line);
}
.give-band__inner { display: grid; gap: 2rem; align-items: center; }
.give-band__title { font-size: clamp(1.625rem, 3vw, 2.125rem); margin-bottom: 0.5rem; }
.give-band p { color: var(--ink-soft); max-width: 32em; }

@media (min-width: 60rem) {
    .give-band__inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .give-band__inner > .button-row { justify-content: flex-end; }
}

.fund-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fund-chip {
    --accent: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.fund-chip::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--accent); flex: none; }
.fund-chip:hover { border-color: var(--accent); background: var(--white); text-decoration: none; }
.fund-chip--purple { --accent: var(--purple); }
.fund-chip--orange { --accent: var(--orange); }
.fund-chip--red { --accent: var(--red); }
.fund-chip--teal { --accent: var(--teal); }

/* ---- Notices ------------------------------------------------------------ */

.notice {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--purple);
    background: var(--purple-tint);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.notice--on-dark {
    max-width: 40em;
    margin: 0;
    border-left-color: var(--orange);
    background: rgba(255, 255, 255, 0.07);
    color: #EFE6F1;
}
.notice--on-dark strong { color: var(--white); }
.notice--important {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border-left-color: var(--red);
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
}
.notice--important p { max-width: 38em; }
.notice--info { margin-top: 1rem; border-left-color: var(--teal-ink); }

/* ---- Inner page header -------------------------------------------------- */

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head--plain { border-bottom: 1px solid var(--line); background: var(--white); }
.page-head--compact { padding-bottom: 2.5rem; border-bottom: 0; background: transparent; }

.page-head__grid { display: grid; gap: 2.5rem; align-items: center; }
.page-head__title {
    font-size: clamp(2rem, 4.6vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.08;
    max-width: 16em;
}
.page-head__figure img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }

@media (min-width: 60rem) {
    .page-head__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ---- About -------------------------------------------------------------- */

.prose-grid { display: grid; gap: 1rem 4rem; }
.prose { max-width: 38em; color: var(--ink-soft); font-size: 1.125rem; }
.prose p:first-child { color: var(--ink); }

@media (min-width: 60rem) {
    .prose-grid { grid-template-columns: 0.8fr 1.2fr; }
}

/* Governance: four tiers, with the two flows that run through them */
.tiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.tiers__list { display: grid; gap: 0.75rem; counter-reset: tier; }

.tier {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 0.25rem 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.tier:nth-child(1) { margin-inline: 0 18%; }
.tier:nth-child(2) { margin-inline: 0 12%; }
.tier:nth-child(3) { margin-inline: 0 6%; }
.tier__level {
    grid-row: span 2;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0.3rem;
}
.tier__name { font-size: 1.125rem; margin-bottom: 0.25rem; }
.tier p { font-size: 0.9375rem; color: var(--ink-soft); }

.tiers__flow {
    display: none;
    position: relative;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tiers__flow span {
    position: absolute;
    top: 50%; left: 50%;
    padding: 0.4rem;
    background: var(--purple-tint);
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(-90deg);
}
.tiers__flow::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
}
.tiers__flow::after {
    content: "";
    position: absolute;
    left: 50%;
    border: 7px solid transparent;
    transform: translateX(-50%);
}
/* Requests: from Zonal Reps (tier 4) up to the Executive Council (tier 2) */
.tiers__flow--up { color: var(--teal-ink); }
.tiers__flow--up::before { top: 27%; bottom: 0; background: var(--teal-ink); }
.tiers__flow--up::after { top: calc(27% - 14px); border-bottom-color: var(--teal-ink); }
/* Administration: from the Management Committee (tier 3) down */
.tiers__flow--down { color: var(--purple-ink); }
.tiers__flow--down::before { top: 52%; bottom: 14px; background: var(--purple-ink); }
.tiers__flow--down::after { bottom: 0; border-top-color: var(--purple-ink); transform: translate(-50%, 14px); bottom: 14px; }

@media (min-width: 56rem) {
    .tiers { grid-template-columns: 3rem 1fr 3rem; gap: 1.5rem; }
    .tiers__flow { display: block; }
}
@media (max-width: 55.99rem) {
    .tier { grid-template-columns: 1fr; margin-inline: 0 !important; }
    .tier__level { grid-row: auto; padding: 0; }
}

.people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
    gap: 2.5rem 3rem;
}
.person { --avatar: 4.5rem; display: grid; grid-template-columns: var(--avatar) 1fr; gap: 1.25rem; align-items: start; }

/* Profile photo when one has been uploaded, initials until then */
.person__photo,
.person__monogram {
    width: var(--avatar, 3.5rem); height: var(--avatar, 3.5rem);
    border-radius: 50%;
}
.person__photo { object-fit: cover; object-position: 50% 25%; background: var(--purple-tint); }
.person__monogram {
    display: grid;
    place-items: center;
    background: var(--purple-tint);
    color: var(--purple-ink);
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.person__name { font-size: 1.125rem; margin-bottom: 0.15rem; }
.person__role {
    margin-bottom: 0.75rem;
    font-family: var(--font-head);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--red-ink);
}
.person__bio { font-size: 0.9375rem; color: var(--ink-soft); }

.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1px;
    margin: 0;
    background: var(--line);
    border: 1px solid var(--line);
}
.principle {
    --accent: var(--purple);
    padding: 1.75rem 1.5rem 2rem;
    background: var(--white);
    border-top: 4px solid var(--accent);
}
.principle--teal { --accent: var(--teal); }
.principle--orange { --accent: var(--orange); }
.principle--red { --accent: var(--red); }
.principle dt { font-family: var(--font-head); font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.principle dd { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }

/* ---- Get help ----------------------------------------------------------- */

.two-col { display: grid; gap: 3rem; }
.two-col > div > p { color: var(--ink-soft); }
@media (min-width: 56rem) {
    .two-col { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.timeline { counter-reset: tl; margin-top: 2.5rem; }
.timeline__item {
    counter-increment: tl;
    position: relative;
    padding: 0 0 2.25rem 3.75rem;
}
.timeline__item::before {
    content: counter(tl);
    position: absolute;
    left: 0; top: -0.15rem;
    display: grid;
    place-items: center;
    width: 2.25rem; height: 2.25rem;
    border-radius: 50%;
    background: var(--purple);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9375rem;
}
.timeline__item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(1.125rem - 1px); top: 2.35rem; bottom: 0.2rem;
    width: 2px;
    background: #D8CADD;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__title { font-size: 1.125rem; margin-bottom: 0.35rem; }
.timeline__item p { color: var(--ink-soft); margin-bottom: 0.5rem; }
.timeline__deadline {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius);
    background: #FDF0DD;
    color: var(--orange-ink) !important;
    font-size: 0.875rem;
    font-weight: 600;
}

.appeal {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange);
    background: var(--white);
    border-radius: var(--radius);
}
.appeal > p { color: var(--ink-soft); }
.appeal__terms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.appeal__terms dt { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--orange-ink); }
.appeal__terms dd { margin: 0.15rem 0 0; font-size: 0.9375rem; color: var(--ink-soft); }

.directory {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.directory__search { max-width: 24rem; margin-bottom: 1.5rem; }
.directory__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.rep {
    display: grid;
    gap: 0.1rem;
    padding: 1rem 1.25rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.rep__zone {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--purple-ink);
}
.rep__name { font-weight: 600; }
.rep__phone { font-size: 0.9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.directory__empty { margin-top: 1rem; color: var(--muted); }

.sample-flag {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.25rem 0.6rem;
    border: 1px dashed var(--orange-ink);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--orange-ink);
}

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-block: 1.25rem;
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    flex: none;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--purple);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.25rem; color: var(--ink-soft); max-width: 40em; }

/* ---- Forms -------------------------------------------------------------- */

.field { display: grid; gap: 0.35rem; align-content: start; }
.field__label { font-weight: 600; font-size: 0.9375rem; }
.field__optional { font-weight: 400; color: var(--muted); }
.field__hint { margin: 0; font-size: 0.875rem; color: var(--muted); }
.field__error { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--red-ink); }

.input {
    width: 100%;
    min-height: 2.875rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #B9AEBD;
    border-radius: var(--radius);
    background: var(--white);
    font: inherit;
    color: var(--ink);
}
.input:hover { border-color: var(--muted); }
.input:focus { outline: 3px solid rgba(136, 86, 149, 0.35); outline-offset: 0; border-color: var(--purple); }
.input[aria-invalid="true"] { border-color: var(--red-ink); }

.input-affix { display: flex; }
.input-affix__text {
    display: grid;
    place-items: center;
    padding-inline: 0.8rem;
    border: 1px solid #B9AEBD;
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--purple-tint);
    font-weight: 600;
    color: var(--ink-soft);
}
.input-affix .input { border-radius: 0 var(--radius) var(--radius) 0; }

.fieldset { margin: 0 0 2.5rem; padding: 0; border: 0; min-width: 0; }
.fieldset__legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0;
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
}
.fieldset__step {
    display: grid;
    place-items: center;
    width: 1.875rem; height: 1.875rem;
    border-radius: 50%;
    background: var(--purple-deep);
    color: var(--white);
    font-size: 0.875rem;
}

.field-grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) {
    .field-grid { grid-template-columns: 1fr 1fr; }
}

/* Fund choice: radio cards keyed to each programme's colour */
.fund-options { display: grid; gap: 0.75rem; }
.fund-option {
    --accent: var(--muted);
    position: relative;
    display: grid;
    grid-template-columns: 1.25rem 1fr;
    gap: 0.15rem 0.85rem;
    padding: 1rem 1.25rem 1rem 1rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fund-option--purple { --accent: var(--purple); }
.fund-option--orange { --accent: var(--orange); }
.fund-option--red { --accent: var(--red); }
.fund-option--teal { --accent: var(--teal); }
.fund-option input {
    grid-row: span 2;
    width: 1.125rem; height: 1.125rem;
    margin: 0.2rem 0 0;
    accent-color: var(--purple);
}
.fund-option__name { font-weight: 700; }
.fund-option__desc { font-size: 0.9375rem; color: var(--ink-soft); }
.fund-option:hover { border-color: #C9BCCD; border-left-color: var(--accent); }
.fund-option:has(input:checked) {
    border-color: var(--purple);
    border-left-color: var(--accent);
    box-shadow: 0 0 0 1px var(--purple);
}

.amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: 0.5rem;
}
.amount { position: relative; cursor: pointer; }
.amount input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.amount span {
    display: grid;
    place-items: center;
    min-height: 3.25rem;
    border: 1px solid #B9AEBD;
    border-radius: var(--radius);
    background: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.amount:hover span { border-color: var(--purple); }
.amount input:checked + span { background: var(--purple); border-color: var(--purple); color: var(--white); }
.amount input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }

.field--other { max-width: 16rem; margin-top: 1rem; }

/* ---- Donate layout ------------------------------------------------------ */

.donate { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) {
    .donate { grid-template-columns: 1fr 22rem; gap: 4rem; }
    .donate__summary { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.donate__form {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.donate__submit { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.donate__submit .small { margin-top: 0.75rem; }

.summary-card {
    padding: 1.75rem;
    background: var(--purple-deep);
    color: #E8DDEB;
    border-radius: var(--radius);
}
.summary-card__title {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #CDB9D3;
    margin-bottom: 0.5rem;
}
.summary-card__amount {
    margin: 0;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}
.summary-card__fund { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.summary-card__fund strong { color: var(--white); }
.summary-card__subtitle { font-size: 0.9375rem; color: var(--white); margin-bottom: 0.75rem; }
.summary-card__steps { counter-reset: s; display: grid; gap: 0.75rem; font-size: 0.9375rem; }
.summary-card__steps li { counter-increment: s; display: grid; grid-template-columns: 1.5rem 1fr; }
.summary-card__steps li::before { content: counter(s) "."; font-weight: 700; color: var(--orange); }
.summary-help { margin-top: 1rem; font-size: 0.9375rem; color: var(--muted); }

/* ---- Form feedback ------------------------------------------------------ */

.error-summary {
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--red-ink);
    border-radius: var(--radius);
    background: #FDF2F2;
}
.error-summary:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.error-summary__title { margin-bottom: 0.6rem; font-size: 1.125rem; color: var(--red-ink); }
.error-summary ul { display: grid; gap: 0.35rem; }
.error-summary a { color: var(--red-ink); font-weight: 600; }

.notice--block { display: block; margin: 0 0 1.5rem; }
.notice--error { margin-bottom: 1.5rem; border-left-color: var(--red-ink); background: #FDF2F2; }
.notice--success {
    margin-bottom: 2rem;
    border-left-color: var(--teal-ink);
    background: #E9F7F5;
}
.notice--success:focus { outline: 3px solid var(--teal-ink); outline-offset: 2px; }
.notice__title { margin-bottom: 0.4rem; font-size: 1.125rem; }

select.input {
    appearance: none;
    padding-right: 2.5rem;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%234C4251' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 0.75rem center / 1.1rem no-repeat;
}
.input--textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
.field--full { grid-column: 1 / -1; }

/* Honeypot: off-screen rather than display:none, which some bots detect */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Contact ------------------------------------------------------------ */

.contact { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 60rem) {
    .contact { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
}
.contact-list { display: grid; gap: 1.25rem; margin: 0 0 2rem; }
.contact-list dt {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.contact-list dd { margin: 0.15rem 0 0; font-size: 1.125rem; }
.contact-form {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.contact-form__submit { margin-top: 1.75rem; }
.contact-form__submit .small { margin-top: 0.75rem; }

/* ---- Receipt, legal, errors --------------------------------------------- */

.receipt__details {
    display: grid;
    margin: 2rem 0 2.5rem;
    border-top: 1px solid var(--line);
}
.receipt__details > div {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 1rem;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
}
.receipt__details dt { color: var(--muted); }
.receipt__details dd { margin: 0; font-weight: 600; }
.receipt .button-row { margin-top: 2rem; }

.prose--legal { font-size: 1.0625rem; }
.prose--legal h2 { margin-top: 2.25rem; font-size: 1.375rem; color: var(--ink); }
.prose--legal h2:first-child { margin-top: 0; }
.prose--legal h3 { margin-top: 1.5rem; font-size: 1.0625rem; color: var(--ink); }
.prose--legal p:first-child { color: var(--ink-soft); }

code {
    padding: 0.1em 0.35em;
    border-radius: var(--radius);
    background: var(--purple-tint);
    font-size: 0.9em;
}

.error-page { min-height: 50vh; }
.directory--empty p { color: var(--ink-soft); max-width: 40em; }
.rep__phone { text-decoration: none; }
.rep__phone:hover { text-decoration: underline; }

.test-checkout { max-width: 32rem; margin: 4rem auto; padding: 2rem; background: var(--white); border: 1px solid var(--line); }
.test-checkout__amount { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; }

/* ---- Coming soon -------------------------------------------------------- */

.page-soon { background: var(--purple-deep); color: #E9DEEC; }

.soon {
    display: grid;
    min-height: calc(100vh - 4px); /* fallback where svh is unsupported */
    min-height: calc(100svh - 4px);
}
@media (min-width: 60rem) {
    .soon { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.soon__panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 6vw, 5.5rem);
}

.soon__body { max-width: 36rem; }
.soon__title {
    color: var(--white);
    font-size: clamp(2.25rem, 4.6vw, 3.625rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}
.soon__lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: #DCCFE0; }
.soon__lead strong { color: var(--white); }

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-block: 2.25rem 1rem;
}
.countdown__unit {
    padding: 1.1rem 0.5rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 3px solid var(--orange);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}
.countdown__unit:nth-child(3) { border-top-color: var(--red); }
.countdown__unit:nth-child(4) { border-top-color: #B98AC6; }
.countdown__unit:nth-child(5) { border-top-color: var(--teal); }
.countdown__value {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}
.countdown__label {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--font-head);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #BBA8C2;
}
.countdown__done { margin-top: 1rem; font-size: 1.125rem; }
.countdown__done strong,
.countdown__done a { color: var(--white); }

.soon__date { font-size: 0.9375rem; color: #BBA8C2; }

.soon__contact {
    display: grid;
    gap: 1.5rem 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.9375rem;
    color: #D6C6DB;
}
@media (min-width: 40rem) {
    .soon__contact { grid-template-columns: 1.6fr 1fr; }
}
.soon__contact a { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.4); }
.soon__contact :focus-visible { outline-color: var(--orange); }
.soon__heading {
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #B9A4C0;
}
.soon__social { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }

.soon__media { position: relative; min-height: 18rem; overflow: hidden; }
.soon__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 59.99rem) {
    .soon__media { order: -1; aspect-ratio: 16 / 9; min-height: 0; }
}

.soon-messages {
    padding-block: clamp(3rem, 7vw, 5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.soon-messages .section-title { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

/* ---- Footer ------------------------------------------------------------- */

.site-footer {
    padding-top: clamp(3rem, 6vw, 4.5rem);
    background: var(--purple-deep);
    color: #D6C6DB;
    font-size: 0.9375rem;
}
.site-footer a { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.4); }
.site-footer a:hover { text-decoration-color: var(--white); }
.site-footer :focus-visible { outline-color: var(--orange); }

.site-footer__grid {
    display: grid;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
@media (min-width: 48rem) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
    .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 0.8fr; gap: 3rem; }
}

.site-footer .brand { margin-bottom: 1.25rem; }
.site-footer__tagline { font-family: var(--font-head); font-weight: 600; color: var(--white); }
.site-footer__legal { max-width: 30em; }
.site-footer__heading {
    margin-bottom: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #B9A4C0;
}
.site-footer__contact p { margin-bottom: 0.4rem; }
.site-footer__note { margin-top: 1.25rem; }
.site-footer__links { display: grid; gap: 0.5rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }

.site-footer__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.875rem;
    color: #B9A4C0;
}
.site-footer__base p { margin: 0; }
