/* =================================
   RAID SOLIDARITE - DESIGN SYSTEM
   Version 1.0
================================= */


/* 1. COLOR VARIABLES */

:root {
    --color-primary: #234B39;
    --color-background: #F1EEE5;
    --color-accent: #B76E48;
    --color-text: #292C27;

    --color-white: #FFFFFF;
    --color-muted: #77766F;
    --color-border: #DEDACE;

    /* Soft tones from the raid posters */
    --color-sage: #DCE8BE;
    --color-sun: #F8EBAE;
    --gradient-photo: linear-gradient(145deg, #DCE8BE, #F6E7A6);
    --gradient-photo-alt: linear-gradient(145deg, #F8EDB8, #CFE0AE);
    --color-placeholder-text: #5A6544;


    /* 2. TYPOGRAPHY */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;


    /* 3. SPACING */

    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;


    /* 4. LAYOUT */

    --container-width: 1200px;
    --page-padding: 5%;


    /* 5. DESIGN DETAILS */

    --radius-small: 4px;
    --radius-medium: 10px;
    --radius-large: 18px;

    --transition: 0.3s ease;
}


/* 6. RESET */

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


/* 7. GENERAL STYLING */

html {
    scroll-behavior: smooth;
    /* Keeps section titles from hiding under the floating bar after a menu click */
    scroll-padding-top: 110px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    background-image:
        radial-gradient(circle at 92% 0%, rgba(248, 230, 150, 0.45), transparent 38%),
        radial-gradient(circle at 0% 18%, rgba(205, 225, 165, 0.4), transparent 32%);
    background-repeat: no-repeat;
    color: var(--color-text);

    font-size: 16px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}

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

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

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


/* 8. TYPOGRAPHY */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(40px, 6vw, 76px);
}

h2 {
    font-size: clamp(32px, 4vw, 52px);
}

h3 {
    font-size: 26px;
}

p {
    font-size: 16px;
}


/* 9. REUSABLE BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 26px;

    background-color: var(--color-primary);
    color: var(--color-white);

    border: 1px solid var(--color-primary);
    border-radius: var(--radius-small);

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;

    transition: var(--transition);
}

.btn:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
}

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


/* 10. RESPONSIVE FOUNDATION */

@media (max-width: 768px) {

    :root {
        --page-padding: 6%;
    }

    body {
        font-size: 15px;
    }

}

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

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

/* Floating rounded bar that stays at the top while scrolling */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    /* Fixed height (16px gap + 78px bar): when the bar shrinks on scroll
       the page below doesn't move, so the bar can't flicker back */
    height: 94px;
    padding: 16px 0 0;
    pointer-events: none;
}

.navbar {
    position: relative;
    width: min(1240px, 94%);
    margin: 0 auto;
    min-height: 78px;
    padding: 0 12px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    pointer-events: auto;
    isolation: isolate;
    border-radius: 22px;
}

/* Frosted glass, on its own layer behind the bar's content
   (so the drop-down menu on phones isn't affected by it) */
.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.28));
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 1px 2px rgba(35, 75, 57, 0.05),
        0 14px 40px rgba(35, 75, 57, 0.10);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1;
    color: var(--color-primary);
    padding-right: 20px;
    border-right: 1px solid var(--color-border);
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-subtitle {
    max-height: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-top: 6px;
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}

.nav-links a {
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active,
.has-dropdown:hover > a {
    color: var(--color-accent);
}

/* The bright pill on the right */
.nav-links a.nav-cta {
    display: inline-block;
    padding: 15px 28px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-white);
    letter-spacing: 1.5px;
    box-shadow: 0 8px 22px rgba(183, 110, 72, 0.35);
}

.nav-links a.nav-cta:hover {
    background: #A55F3B;
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(183, 110, 72, 0.42);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
}

/* ==============================
   MENU DROPDOWNS (Nos éditions, Galerie)
   Opens on hover or keyboard focus; the main link still goes to the page.
============================== */

/* The menu row fills the full height of the bar, so each dropdown
   can start right at the bar's bottom edge */
.nav-links {
    align-self: stretch;
}

/* Every menu item is centred the same way, so all the words line up exactly */
.nav-links > li {
    align-self: stretch;
    display: flex;
    align-items: center;
}

.has-dropdown {
    position: relative;
}

.dd-caret {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dd-caret,
.has-dropdown:has(:focus-visible) .dd-caret {
    transform: translateY(0) rotate(225deg);
}

.nav-links .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 560px;
    padding: 30px 26px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 18px;
    list-style: none;
    border-radius: 20px;
    background:
        linear-gradient(90deg, #C5DB98, #F4DD7E, var(--color-accent)) top 0 left 28px / calc(100% - 56px) 3px no-repeat,
        rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 60px rgba(35, 75, 57, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 4px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

/* Bridges the small gap between the bar and the card.
   It only covers the space under the bar, never the other menu links. */
.nav-links .nav-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

/* Opens on hover, or when reached with the keyboard (Tab) */
.has-dropdown:hover .nav-dropdown,
.has-dropdown:has(:focus-visible) .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 12px);
}

.nav-links .nav-dropdown a {
    display: grid;
    grid-template-columns: 12px 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    white-space: normal;
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.25s ease;
}

.nav-links .nav-dropdown a:hover,
.nav-links .nav-dropdown a:focus-visible {
    background: rgba(248, 235, 174, 0.55);
    outline: none;
}

.dd-dot {
    grid-row: span 2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
}

.nav-dropdown li:nth-child(even) .dd-dot {
    background: #9DBF6A;
}

.dd-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
}

.dd-title sup {
    font-size: 0.6em;
}

.dd-sub {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--color-muted);
    margin-top: 2px;
}

.nav-links .nav-dropdown a:hover .dd-title {
    color: var(--color-accent);
}

/* Compact bar once the first section has been scrolled past
   (script.js adds .is-compact to the header) */
.site-header,
.navbar,
.logo,
.logo-name,
.logo-subtitle,
.nav-links,
.nav-links a.nav-cta {
    transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-header.is-compact {
    padding-top: 6px;
}

.site-header.is-compact .navbar {
    width: min(1024px, 94%);
    min-height: 50px;
    padding: 0 6px 0 18px;
    gap: 18px;
    border-radius: 14px;
}

/* Same spacing around the logo divider as the large bar, scaled down */
.site-header.is-compact .logo {
    padding-right: 20px;
}

.site-header.is-compact .navbar::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.45));
}

.site-header.is-compact .logo-name {
    font-size: 18px;
}

/* Subtitle folds away completely in the compact bar */
.site-header.is-compact .logo-subtitle {
    font-size: 7px;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.site-header.is-compact .nav-links {
    gap: 18px;
}

.site-header.is-compact .nav-links a {
    font-size: 10.5px;
}

.site-header.is-compact .nav-links a.nav-cta {
    padding: 8px 16px;
    box-shadow: 0 4px 12px rgba(183, 110, 72, 0.3);
}

/* Homepage: the big photo starts under the floating bar */
.home .hero-immersive {
    margin-top: -94px;
    padding-top: 200px;
}


/* ==============================
   HERO SECTION
============================== */

.hero {
    width: min(1200px, 90%);
    min-height: 690px;
    margin: 0 auto;
    padding: 85px 0;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 75px;
}

.hero-content {
    max-width: 570px;
}

.eyebrow {
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 27px;
}

.hero h1 {
    font-size: clamp(48px, 5.5vw, 74px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.hero h1 span {
    color: var(--color-accent);
    font-style: italic;
}

.hero-description {
    max-width: 490px;
    margin-top: 28px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 35px;
}

.text-link {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
}

.text-link span {
    margin-left: 7px;
    transition: var(--transition);
}

.text-link:hover span {
    margin-left: 13px;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 65px;
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.location-line {
    width: 35px;
    height: 1px;
    background: var(--color-accent);
}


/* ==============================
   HERO IMAGE PLACEHOLDER
============================== */

.hero-visual {
    position: relative;
    width: 100%;
}

.photo-placeholder {
    min-height: 490px;
    background:
        var(--gradient-photo);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.photo-placeholder::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.placeholder-content {
    position: relative;
    text-align: center;
    color: var(--color-placeholder-text);
}

.placeholder-icon {
    display: block;
    font-size: 35px;
    font-weight: 300;
    margin-bottom: 12px;
}

.placeholder-content p {
    font-size: 14px;
    font-weight: 600;
}

.placeholder-content span:last-child {
    display: block;
    margin-top: 7px;
    font-size: 11px;
}

.hero-caption {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
}


/* ==============================
   TEMPORARY SECTION PLACEHOLDERS
============================== */

.section-placeholder {
    padding: 100px 5%;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.section-placeholder .eyebrow {
    margin-bottom: 18px;
}

.section-placeholder h2 {
    margin-bottom: 18px;
}

.section-placeholder > p:last-child {
    color: var(--color-muted);
}


/* ==============================
   ABOUT SECTION
============================== */

.about-section {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 110px 0;
    border-top: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    align-items: center;
    gap: 80px;
}

.about-image {
    position: relative;
}

/* ==============================
   ABOUT: big title + tall photo (Beast Philanthropy style)
============================== */

.about-feature {
    padding-top: 60px;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 90px;
    align-items: center;
}

.about-photo {
    position: relative;
}

/* Soft colour glow behind the photo */
.about-photo::before {
    content: "";
    position: absolute;
    inset: -60px -40px -60px -80px;
    z-index: -1;
    /* closest-side: each glow fades out fully before reaching the box edges */
    background:
        radial-gradient(closest-side at 35% 40%, rgba(244, 221, 126, 0.45), transparent),
        radial-gradient(closest-side at 65% 72%, rgba(197, 219, 152, 0.4), transparent);
}

.about-photo img,
.about-photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5.6;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(35, 75, 57, 0.16);
}

.about-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 30px;
    text-align: center;
    background: var(--gradient-photo);
    color: var(--color-placeholder-text);
}

.about-photo-icon {
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 8px;
}

.about-photo-placeholder p {
    font-size: 15px;
    font-weight: 700;
}

.about-photo-placeholder > span:last-child {
    font-size: 13px;
}

.about-feature .about-content {
    max-width: 640px;
}

/* Small rounded label with a dot, above the title */
.about-feature .about-content p.about-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.about-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
}

.about-feature .about-title {
    font-size: clamp(46px, 6.2vw, 86px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -2px;
    color: var(--color-primary);
    margin-bottom: 40px;
}

.about-feature .about-title span {
    display: block;
    font-style: italic;
    font-weight: 600;
    color: var(--color-accent);
}

.about-feature .about-content p.about-lead {
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 1.55;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.about-feature .about-content p:not(.about-lead):not(.about-pill) {
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-muted);
}

.about-feature .about-content strong {
    color: var(--color-text);
    font-weight: 600;
}

@media (max-width: 1000px) {
    .about-feature {
        padding-top: 50px;
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-photo {
        max-width: 480px;
    }

    .about-photo img,
    .about-photo-placeholder {
        aspect-ratio: 4 / 4.6;
    }
}


/* ==============================
   RETRO PHOTO FRAME
   Old album print: ivory paper border, dark photo corners,
   warm faded tones, typewriter caption.
============================== */

.photo-frame {
    position: relative;
    padding: 18px 18px 0;
    background: linear-gradient(160deg, #FDF8EB, #F2E8CF);
    border-radius: 2px;
    box-shadow:
        inset 0 0 0 1px rgba(120, 95, 50, 0.12),
        0 2px 3px rgba(70, 50, 20, 0.12),
        0 22px 45px rgba(70, 50, 20, 0.18);
    transform: rotate(-1.5deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-frame--tilt-right {
    transform: rotate(1.5deg);
}

.photo-frame:hover,
.photo-frame:focus-visible {
    transform: rotate(0deg) translateY(-4px);
    box-shadow:
        inset 0 0 0 1px rgba(120, 95, 50, 0.12),
        0 2px 3px rgba(70, 50, 20, 0.12),
        0 30px 60px rgba(70, 50, 20, 0.22);
    outline: none;
}

.photo-frame-image {
    position: relative;
}

/* The four dark corners that hold the print in the album */
.photo-frame-image::after {
    content: "";
    position: absolute;
    inset: -5px;
    pointer-events: none;
    background:
        linear-gradient(135deg, #3A3A2C 50%, transparent 50%) top left / 34px 34px no-repeat,
        linear-gradient(225deg, #3A3A2C 50%, transparent 50%) top right / 34px 34px no-repeat,
        linear-gradient(45deg, #3A3A2C 50%, transparent 50%) bottom left / 34px 34px no-repeat,
        linear-gradient(315deg, #3A3A2C 50%, transparent 50%) bottom right / 34px 34px no-repeat;
    opacity: 0.9;
}

.photo-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 65% center;
    /* Warm, slightly faded film look; true colours come back on hover */
    filter: sepia(0.3) saturate(0.85) contrast(1.05) brightness(1.03);
    transition: filter 0.5s ease;
}

.photo-frame--tilt-right img {
    object-position: center;
}

.photo-frame:hover img,
.photo-frame:focus-visible img {
    filter: none;
}

.photo-frame figcaption {
    padding: 14px 4px 18px;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 0.3px;
    color: #4A4332;
}

.photo-frame figcaption sup {
    font-size: 0.6em;
}

/* Small "enlarge" badge that appears on hover */
.zoom-hint {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(253, 248, 235, 0.92);
    color: var(--color-primary);
    font-size: 18px;
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.photo-frame:hover .zoom-hint,
.photo-frame:focus-visible .zoom-hint {
    opacity: 1;
}

.has-photo {
    cursor: zoom-in;
}

.about-image-placeholder {
    position: relative;
    min-height: 460px;
    background: var(--gradient-photo-alt);
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.about-image-placeholder span {
    color: var(--color-placeholder-text);
    font-size: 13px;
    font-weight: 600;
}

.about-content {
    max-width: 520px;
}

.about-content .eyebrow {
    margin-bottom: 20px;
}

.about-content h2 {
    font-size: clamp(32px, 3.6vw, 46px);
    margin-bottom: 28px;
}

.about-content p:not(.eyebrow) {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.about-content .text-link {
    display: inline-block;
    margin-top: 14px;
}

.about-content h2 span {
    font-style: italic;
    color: var(--color-accent);
}

/* Opening sentence: bigger, warmer */
.about-content p.about-lead {
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 1.6;
    color: var(--color-primary);
    margin-bottom: 22px;
}

.about-quote {
    position: relative;
    margin: 30px 0 34px;
    padding: 4px 0 4px 26px;
    border-left: 3px solid var(--color-accent);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-accent);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    list-style: none;
    margin-bottom: 30px;
}

.about-values li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 16px;
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(222, 218, 206, 0.8);
}

.about-value-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-sun);
    color: var(--color-accent);
    margin-bottom: 8px;
}

.about-values li:nth-child(2) .about-value-icon {
    background: var(--color-sage);
    color: var(--color-primary);
}

.about-value-icon svg {
    width: 19px;
    height: 19px;
}

.about-values strong {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
}

.about-values li > span:last-child {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--color-muted);
}

/* Two prints overlapping, like photos laid on a table */
.about-collage {
    padding: 0 50px 110px 0;
}

.about-collage::before {
    content: "";
    position: absolute;
    inset: -40px -20px 10px -50px;
    background: radial-gradient(circle at 40% 45%, rgba(248, 230, 150, 0.55), transparent 65%);
    z-index: -1;
}

.about-collage .about-print-small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    padding: 10px 10px 0;
    z-index: 2;
}

.about-collage .about-print-small,
.about-collage .about-print-small.reveal.is-visible {
    transform: rotate(5deg);
}

.about-collage .about-print-small:hover,
.about-collage .about-print-small.reveal.is-visible:hover {
    transform: rotate(0deg) translateY(-4px);
}

.about-print-small figcaption {
    padding: 8px 2px 10px;
    font-size: 12px;
}

.about-print-small .photo-frame-image::after {
    background-size: 20px 20px, 20px 20px, 20px 20px, 20px 20px;
}


/* ==============================
   EDITIONS PREVIEW
============================== */

.editions-section {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 100px 0;
    border-top: 1px solid var(--color-border);
}

.editions-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 60px;
    margin-bottom: 55px;
}

.editions-header .eyebrow {
    margin-bottom: 18px;
}

.editions-intro {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.9;
    max-width: 460px;
    justify-self: end;
}

.editions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.edition-card {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    overflow: hidden;
    transition: var(--transition);
}

.edition-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 18px 40px rgba(35, 75, 57, 0.1);
}

.edition-image {
    aspect-ratio: 4 / 3;
    background: var(--gradient-photo);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px 22px;
    overflow: hidden;
}

/* Alternate tones so the six cards don't look identical */
.edition-card:nth-child(even) .edition-image {
    background: var(--gradient-photo-alt);
}

.edition-image::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -60px;
    top: -60px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.edition-number {
    position: relative;
    font-family: var(--font-heading);
    font-size: 64px;
    font-style: italic;
    line-height: 1;
    color: rgba(35, 75, 57, 0.55);
}

.edition-info {
    padding: 22px 24px 26px;
}

.edition-year {
    display: block;
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.edition-info h3 {
    font-size: 23px;
    margin-bottom: 6px;
}

.edition-info sup {
    font-size: 0.55em;
}

.edition-info p {
    color: var(--color-muted);
    font-size: 14px;
}

.editions-footer {
    text-align: center;
    margin-top: 55px;
}


/* ==============================
   HOMEPAGE PHOTO CAROUSEL
   One large photo in the middle, the neighbours peeking in
   on each side. The track runs edge to edge of the window.
============================== */

/* Stops the full-width carousel from causing sideways page scroll */
main {
    overflow-x: clip;
}

.carousel-section {
    --slide-width: min(720px, 58vw);

    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 100px 0;
    border-top: 1px solid var(--color-border);
}

.carousel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.carousel-header .eyebrow {
    margin-bottom: 18px;
}

.carousel-controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-size: 18px;
    transition: var(--transition);
}

.carousel-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: var(--color-white);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.carousel-track {
    position: relative;
    display: flex;
    gap: 32px;
    /* Break out of the page width to use the whole window */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    /* Side padding lets the first and last photo sit in the centre */
    padding: 20px calc((100vw - var(--slide-width)) / 2) 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track:focus-visible {
    outline: none;
}

.carousel-slide {
    flex: 0 0 var(--slide-width);
    scroll-snap-align: center;
    position: relative;
    padding: 16px 16px 0;
    background: linear-gradient(160deg, #FDF8EB, #F2E8CF);
    border-radius: 2px;
    box-shadow:
        inset 0 0 0 1px rgba(120, 95, 50, 0.12),
        0 18px 40px rgba(70, 50, 20, 0.16);
    /* Side photos are smaller and faded */
    transform: scale(0.86);
    opacity: 0.5;
    cursor: pointer;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* No animation while the carousel silently loops back */
.carousel-track.is-jumping .carousel-slide {
    transition: none;
}

.carousel-slide.is-active {
    transform: scale(1);
    opacity: 1;
    cursor: zoom-in;
}

.carousel-slide img,
.carousel-photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    filter: sepia(0.3) saturate(0.85) contrast(1.05) brightness(1.03);
    transition: filter 0.5s ease;
}

.carousel-slide.is-active:hover img {
    filter: none;
}

.carousel-slide figcaption {
    padding: 14px 2px 18px;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 16px;
    color: #4A4332;
}

.carousel-photo {
    background: var(--gradient-photo);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-placeholder-text);
    font-size: 13px;
    font-weight: 600;
    filter: none;
    margin-bottom: 16px;
}

.carousel-slide:nth-child(even) .carousel-photo {
    background: var(--gradient-photo-alt);
}

.carousel-footer {
    text-align: center;
    margin-top: 40px;
}


/* ==============================
   PARTNERS: ENDLESS LOGO STRIP
============================== */

.partners-section {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 100px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.partners-header {
    max-width: 780px;
    margin: 0 auto 55px;
}

.partners-header .partners-thanks {
    max-width: 640px;
    margin: 0 auto;
}

.partners-header .eyebrow {
    margin-bottom: 18px;
}

.partners-header h2 {
    margin-bottom: 22px;
}

.partners-thanks {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.9;
}

.logo-marquee {
    /* Full window width, with the logos fading out at both edges */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    padding: 24px 0 34px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.logo-marquee-track {
    display: flex;
    width: max-content;
    list-style: none;
    animation: logo-scroll var(--marquee-duration, 40s) linear infinite;
}

/* Hovering pauses the strip so a logo can be looked at */
.logo-marquee:hover .logo-marquee-track {
    animation-play-state: paused;
}

@keyframes logo-scroll {
    to {
        transform: translateX(-50%);
    }
}

.logo-slot {
    flex: 0 0 auto;
    width: 190px;
    height: 112px;
    margin-right: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: var(--color-white);
    border: 1px solid rgba(35, 75, 57, 0.1);
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(35, 75, 57, 0.05),
        0 10px 26px rgba(35, 75, 57, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* The card lifts slightly when hovered */
.logo-slot:has(a):hover {
    transform: translateY(-4px);
    border-color: rgba(183, 110, 72, 0.35);
    box-shadow:
        0 2px 4px rgba(35, 75, 57, 0.06),
        0 16px 34px rgba(35, 75, 57, 0.14);
}

.logo-slot a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.logo-slot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* Empty space waiting for a logo */
.logo-slot.is-empty {
    border: 1.5px dashed rgba(35, 75, 57, 0.25);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.35);
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 0 12px;
}

.partners-footer {
    margin-top: 55px;
}

/* People who prefer less motion get a still row of logos */
@media (prefers-reduced-motion: reduce) {
    .logo-marquee-track {
        animation: none;
    }
}


/* ==============================
   CONTACT SECTION
============================== */

.contact-section {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 100px 0 110px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.contact-section .eyebrow {
    margin-bottom: 18px;
}

.contact-section h2 {
    margin-bottom: 18px;
}

.contact-intro {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.9;
    max-width: 520px;
    margin: 0 auto;
}

.contact-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 45px;
}

.contact-card {
    flex: 0 1 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(35, 75, 57, 0.08);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-sage);
    color: var(--color-primary);
    margin-bottom: 8px;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-label {
    color: var(--color-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-value {
    font-family: var(--font-heading);
    font-size: 21px;
    color: var(--color-primary);
    word-break: break-word;
}

.social-title {
    margin-top: 50px;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    list-style: none;
}

.social-links a {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.6);
    color: var(--color-primary);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.social-links svg {
    width: 21px;
    height: 21px;
}


/* ==============================
   IMPACT IN NUMBERS
============================== */

.impact-section {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 100px 0 90px;
    border-top: 1px solid var(--color-border);
}

.impact-header {
    text-align: center;
    margin-bottom: 50px;
}

.impact-header .eyebrow {
    margin-bottom: 18px;
}

.impact-header h2 span {
    font-style: italic;
    color: var(--color-accent);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.impact-card {
    display: flex;
    flex-direction: column;
    padding: 34px 34px 36px;
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 45px rgba(35, 75, 57, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.impact-card:hover,
.impact-card.reveal.is-visible:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 55px rgba(35, 75, 57, 0.12);
}

/* Alternating terracotta / green, like the example's pink / blue */
.impact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(183, 110, 72, 0.12);
    color: var(--color-accent);
    margin-bottom: 26px;
}

.impact-icon svg {
    width: 24px;
    height: 24px;
}

.impact-number {
    font-family: var(--font-heading);
    font-size: clamp(46px, 5vw, 64px);
    font-weight: 600;
    line-height: 1;
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
    margin-bottom: 16px;
}

.impact-card:nth-child(even) .impact-icon {
    background: rgba(157, 191, 106, 0.22);
    color: #5E8A3A;
}

.impact-card:nth-child(even) .impact-number {
    color: #6F9B45;
}

.impact-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.impact-text {
    color: var(--color-muted);
    font-size: 14.5px;
    line-height: 1.75;
}


/* ==============================
   SMILE BAND (homepage)
   A big, clear photo of the girl first, then a single line.
   No dark veil, so it feels different from the top of the page.
============================== */

.smile-band {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    min-height: 620px;
    background: var(--color-sun);
    overflow: hidden;
}

.smile-photo {
    position: relative;
    margin: 0;
    overflow: hidden;
}

.smile-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 30%;
    transform: scale(1.12);
    transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Slow zoom-out as the band comes into view */
.smile-band.in-view .smile-photo img {
    transform: scale(1);
}

/* Soft blend from the photo into the yellow panel */
.smile-photo::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 22%;
    background: linear-gradient(90deg, rgba(248, 235, 174, 0), var(--color-sun));
}

.smile-quote {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 7% 80px 4%;
}

.smile-quote .eyebrow {
    margin-bottom: 20px;
}

.smile-quote h2 {
    font-size: clamp(32px, 3.3vw, 50px);
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--color-primary);
}

.smile-quote h2 span {
    display: block;
    font-style: italic;
    color: var(--color-accent);
}

.smile-text {
    max-width: 460px;
    margin-top: 24px;
    font-size: 15.5px;
    line-height: 1.85;
    color: #4E5547;
}

/* The quote slides in just after the photo */
.smile-quote > * {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.smile-band.in-view .smile-quote > * {
    opacity: 1;
    transform: none;
}

.smile-band.in-view .smile-quote > :nth-child(2) { transition-delay: 0.12s; }
.smile-band.in-view .smile-quote > :nth-child(3) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .smile-photo img,
    .smile-quote > * {
        transform: none;
        opacity: 1;
        transition: none;
    }
}

@media (max-width: 900px) {
    .smile-band {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .smile-photo {
        aspect-ratio: 4 / 3.4;
    }

    .smile-photo::after {
        inset: auto 0 0 0;
        width: auto;
        height: 30%;
        background: linear-gradient(180deg, rgba(248, 235, 174, 0), var(--color-sun));
    }

    .smile-quote {
        padding: 24px 7% 64px;
    }

}


/* ==============================
   SCROLL REVEAL
   Elements gently rise into place as they come into view.
   Only active when JavaScript runs (it adds the classes).
============================== */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Photo frames keep their tilt once revealed */
.photo-frame.reveal.is-visible {
    transform: rotate(-1.5deg);
}

.photo-frame--tilt-right.reveal.is-visible {
    transform: rotate(1.5deg);
}

.photo-frame.reveal.is-visible:hover,
.photo-frame.reveal.is-visible:focus-visible {
    transform: rotate(0deg) translateY(-4px);
}

.edition-card.reveal.is-visible:hover,
.contact-card.reveal.is-visible:hover {
    transform: translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ==============================
   IMMERSIVE HERO (homepage)
   Full-screen photo, warm veil, one big sentence.
============================== */

.hero-immersive {
    position: relative;
    min-height: min(88vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 6% 140px;
    overflow: hidden;
    text-align: center;
    color: var(--color-white);
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    filter: sepia(0.25) saturate(0.95);
    z-index: -2;
    /* Very slow zoom, like the opening shot of a film */
    animation: hero-drift 18s ease-out both;
}

@keyframes hero-drift {
    from { transform: scale(1.12); }
    to   { transform: scale(1); }
}

.hero-immersive::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(244, 221, 126, 0.16), transparent 60%),
        linear-gradient(180deg, rgba(24, 52, 39, 0.45) 0%, rgba(24, 52, 39, 0.55) 45%, rgba(24, 52, 39, 0.88) 100%);
}

.hero-inner {
    max-width: 900px;
}

.hero-immersive .eyebrow {
    color: #F4DD7E;
    margin-bottom: 26px;
}

.hero-immersive h1 {
    color: var(--color-white);
    font-size: clamp(44px, 7vw, 92px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.hero-immersive h1 span {
    font-style: italic;
    color: #F4DD7E;
}

.hero-immersive .hero-description {
    max-width: 600px;
    margin: 30px auto 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.85;
}

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 46px;
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-scroll span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 16px;
    animation: hero-bounce 2.2s ease-in-out infinite;
}

@keyframes hero-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(7px); }
}

.hero-photo-note {
    position: absolute;
    right: 5%;
    bottom: 24px;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg,
    .hero-scroll span {
        animation: none;
    }
}


/* ==============================
   WHY THE RAID (themes with tabs)
============================== */

.why-section {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 110px 0 100px;
}

.why-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 36px;
}

.why-header .eyebrow {
    margin-bottom: 18px;
}

.why-header h2 span,
.action-header h2 span {
    font-style: italic;
    color: var(--color-accent);
}

.why-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.why-tab {
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.6);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    transition: var(--transition);
}

.why-tab:hover {
    border-color: var(--color-accent);
}

.why-tab[aria-selected="true"] {
    background: var(--color-sun);
    border-color: #E9D27A;
    box-shadow: 0 8px 20px rgba(183, 140, 40, 0.18);
}

.why-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 70px;
}

.why-panel[hidden] {
    display: none;
}

.why-panel.is-active {
    animation: why-fade 0.6s ease both;
}

@keyframes why-fade {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.why-photo {
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(35, 75, 57, 0.16);
}

.why-photo-placeholder {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-photo);
    color: var(--color-placeholder-text);
    font-size: 13px;
    font-weight: 600;
}

.why-text p + p {
    margin-top: 16px;
}

.why-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: sepia(0.15);
}

.why-text h3 {
    font-size: clamp(30px, 3.4vw, 44px);
    margin-bottom: 22px;
}

.why-text p {
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.9;
}

.why-text .why-fact {
    margin-top: 28px;
    padding: 20px 24px;
    border-left: 3px solid var(--color-accent);
    background: rgba(248, 235, 174, 0.45);
    border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
    color: var(--color-text);
    font-size: 15px;
}

.why-fact strong {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 26px;
    font-weight: 500;
    color: var(--color-accent);
    margin-right: 4px;
}


/* ==============================
   TAKE ACTION CARDS
============================== */

.action-section {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 100px 0;
    border-top: 1px solid var(--color-border);
}

.action-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 55px;
}

.action-header .eyebrow {
    margin-bottom: 18px;
}

.action-intro {
    margin-top: 20px;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.9;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.action-card {
    display: flex;
    flex-direction: column;
    padding: 34px 28px 30px;
    border-radius: var(--radius-large);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.85), rgba(253, 248, 235, 0.85));
    border: 1px solid rgba(222, 218, 206, 0.8);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.action-card:hover,
.action-card.reveal.is-visible:hover {
    transform: translateY(-6px);
    border-color: #E9D27A;
    box-shadow: 0 24px 50px rgba(35, 75, 57, 0.12);
}

.action-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-sun);
    color: var(--color-accent);
    margin-bottom: 24px;
}

.action-card:nth-child(even) .action-icon {
    background: var(--color-sage);
    color: var(--color-primary);
}

.action-icon svg {
    width: 26px;
    height: 26px;
}

.action-card h3 {
    font-size: 23px;
    margin-bottom: 12px;
}

.action-card p {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.8;
    flex-grow: 1;
}

.action-link {
    margin-top: 22px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
}

.action-link span {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.action-card:hover .action-link span {
    transform: translateX(6px);
}


/* ==============================
   EDITIONS PAGE
============================== */

.page-hero {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 100px 0 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 60px;
}

.page-hero h1 {
    letter-spacing: -1.5px;
}

.page-hero h1 span {
    color: var(--color-accent);
    font-style: italic;
}

.page-hero-intro {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.9;
    max-width: 480px;
    justify-self: end;
}

/* Row of numbers to jump to an edition */
.editions-index {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 50px;
}

.editions-index a {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    padding: 6px 16px;
    transition: var(--transition);
}

.editions-index a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.editions-list {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.edition-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    padding: 90px 0;
    border-top: 1px solid var(--color-border);
    scroll-margin-top: 20px;
}

/* Every other edition puts the photo on the right */
.edition-detail:nth-child(even) .edition-detail-image {
    order: 2;
}

.edition-detail-image {
    aspect-ratio: 4 / 3;
    background: var(--gradient-photo);
    border-radius: var(--radius-medium);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 30px;
}

.edition-detail:nth-child(even) .edition-detail-image {
    background: var(--gradient-photo-alt);
}

.edition-detail-image::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -80px;
    top: -80px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.edition-detail-image .edition-number {
    font-size: 96px;
}

.edition-detail-label {
    position: relative;
    color: var(--color-placeholder-text);
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.edition-detail-content .eyebrow {
    margin-bottom: 16px;
}

.edition-detail-content h2 {
    margin-bottom: 24px;
}

.edition-detail-content h2 sup {
    font-size: 0.5em;
}

.edition-detail-content p:not(.eyebrow) {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.edition-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--color-border);
}

.edition-facts dt {
    color: var(--color-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.edition-facts dd {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
}


/* ==============================
   GALLERY PAGE
============================== */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 40px;
}

.gallery-filter {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    padding: 8px 18px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.gallery-filter:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.gallery-filter[aria-pressed="true"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 16px;
    padding-bottom: 100px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-small);
}

.gallery-item[hidden],
.gallery-empty[hidden] {
    display: none;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img,
.gallery-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-placeholder {
    background: var(--gradient-photo);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-placeholder-text);
    font-size: 12px;
    font-weight: 600;
}

.gallery-item:nth-child(even) .gallery-placeholder {
    background: var(--gradient-photo-alt);
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 18px 14px;
    background: linear-gradient(transparent, rgba(35, 75, 57, 0.75));
    color: var(--color-white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover figcaption,
.gallery-item:focus-visible figcaption {
    opacity: 1;
}

.gallery-item:hover img,
.gallery-item:hover .gallery-placeholder {
    transform: scale(1.04);
}

.gallery-empty {
    padding-bottom: 100px;
    color: var(--color-muted);
}

/* Photo viewer */

.lightbox {
    margin: auto;
    border: none;
    background: transparent;
    max-width: min(1100px, 92vw);
    max-height: 92vh;
    padding: 0;
    overflow: visible;
}

.lightbox::backdrop {
    background: rgba(20, 28, 24, 0.9);
}

.lightbox-stage {
    outline: none;
    width: fit-content;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-small);
}

.lightbox-stage img {
    max-width: min(1100px, 92vw);
    max-height: 78vh;
    cursor: zoom-in;
    transition: transform 0.35s ease;
    touch-action: pinch-zoom;
}

.lightbox-stage img.is-zoomed {
    transform: scale(2.5);
    cursor: zoom-out;
    transition: transform 0.35s ease, transform-origin 0.08s linear;
    touch-action: none;
}

.lightbox-caption {
    margin-top: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.lightbox-hint {
    margin-top: 4px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.lightbox-close {
    position: absolute;
    top: -46px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 34px;
    line-height: 1;
}


/* ==============================
   MENU ON SMALLER SCREENS
   Below 1200px the links no longer fit in the bar,
   so they move into a drop-down card behind the ☰ button.
============================== */

@media (max-width: 1200px) {

    .logo {
        border-right: none;
        padding-right: 0;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 10px 0 10px 10px;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--color-primary);
    }

    /* Phone menu: a rounded card that drops under the bar */
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: rgba(253, 251, 245, 0.78);
        -webkit-backdrop-filter: blur(24px) saturate(1.8);
        backdrop-filter: blur(24px) saturate(1.8);
        border: 1px solid rgba(255, 255, 255, 0.6);
        padding: 26px 24px 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        border-radius: 16px;
        box-shadow: 0 20px 45px rgba(35, 75, 57, 0.16);
    }

    /* Each row is tappable across its whole width, not just the word */
    .nav-links.open {
        display: flex;
        gap: 2px;
        align-items: stretch;
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 14px 10px;
        margin: 0 -10px;
        width: calc(100% + 20px);
        border-radius: 10px;
    }

    .nav-links a:not(.nav-cta):active {
        background: rgba(35, 75, 57, 0.08);
    }

    /* The two buttons fill the width too */
    .nav-links a.nav-cta {
        margin: 8px 0 0;
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        border-radius: 999px;
    }

    .nav-links li:has(> .nav-cta-outline) {
        margin-right: 0;
    }

    /* In the ☰ menu the main links are enough */
    .nav-links .nav-dropdown,
    .dd-caret {
        display: none;
    }
}


/* ==============================
   MOBILE RESPONSIVENESS
============================== */

@media (max-width: 1000px) {

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

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

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

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

@media (max-width: 850px) {

    .site-header {
        height: 76px;
        padding-top: 10px;
    }

    .navbar {
        min-height: 66px;
        padding: 0 18px 0 20px;
        border-radius: 16px;
    }

    .logo {
        border-right: none;
        padding-right: 0;
    }

    .logo-name {
        font-size: 23px;
    }

    .home .hero-immersive {
        margin-top: -76px;
        padding-top: 150px;
    }

    .site-header.is-compact .navbar {
        width: 94%;
        min-height: 50px;
        padding: 0 14px 0 16px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 65px 0;
    }

    .hero h1 {
        font-size: clamp(46px, 10vw, 64px);
    }

    .hero-location {
        margin-top: 40px;
    }

    .photo-placeholder {
        min-height: 350px;
    }

    .section-placeholder {
        padding: 75px 6%;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 75px 0;
    }

    .about-image-placeholder {
        min-height: 320px;
    }

    .about-collage {
        padding: 0 30px 80px 0;
    }

    .editions-section {
        padding: 75px 0;
    }

    .page-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 65px 0 40px;
    }

    .page-hero-intro {
        justify-self: start;
    }

    .editions-index {
        padding-bottom: 40px;
    }

    .edition-detail {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 60px 0;
    }

    .edition-detail:nth-child(even) .edition-detail-image {
        order: 0;
    }

    .edition-detail-image .edition-number {
        font-size: 72px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 12px;
        padding-bottom: 75px;
    }

    /* No hover on phones, so always show which edition a photo is from */
    .gallery-item figcaption {
        opacity: 1;
    }

    .editions-header {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 40px;
    }

    .editions-intro {
        justify-self: start;
    }
}

@media (max-width: 560px) {

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

    .carousel-section {
        --slide-width: 76vw;
    }

    .carousel-track {
        gap: 14px;
    }

    .carousel-slide {
        padding: 10px 10px 0;
    }

    .carousel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .carousel-section {
        padding: 75px 0;
    }

    .partners-section {
        padding: 75px 0;
    }

    .contact-section {
        padding: 75px 0 85px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .about-values li {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 12px;
    }

    .about-value-icon {
        margin-bottom: 0;
    }

    .about-values li > span:last-child {
        flex-basis: 100%;
        padding-left: 50px;
    }

    .impact-section {
        padding: 75px 0;
    }

    .impact-card {
        padding: 26px 24px 28px;
    }


    .hero-immersive {
        min-height: 82vh;
        padding: 90px 6% 120px;
    }

    .hero-immersive .hero-description {
        font-size: 15px;
    }

    .why-section,
    .action-section {
        padding: 75px 0;
    }

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

    .why-tab {
        padding: 10px 18px;
    }

    .logo-slot {
        width: 150px;
        height: 90px;
        margin-right: 16px;
        padding: 10px 14px;
        border-radius: 16px;
    }

    .editions-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .edition-facts {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .edition-detail-label {
        display: none;
    }
}

@media (max-width: 480px) {

    .hero {
        padding-top: 50px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-buttons {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .photo-placeholder {
        min-height: 280px;
    }
}

/* ==============================
   "S'INSCRIRE" BUTTON IN THE TOP BAR
   Outlined twin of the "Nous soutenir" pill
============================== */

.nav-links a.nav-cta.nav-cta-outline {
    background: transparent;
    color: var(--color-primary);
    box-shadow: inset 0 0 0 1.5px var(--color-primary);
}

.nav-links a.nav-cta.nav-cta-outline:hover,
.nav-links a.nav-cta.nav-cta-outline.active {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 8px 22px rgba(35, 75, 57, 0.25);
}

/* The two pills sit closer together than the text links */
.nav-links li:has(> .nav-cta-outline) {
    margin-right: -16px;
}

.site-header.is-compact .nav-links li:has(> .nav-cta-outline) {
    margin-right: -7px;
}

.site-header.is-compact .nav-links a.nav-cta.nav-cta-outline {
    box-shadow: inset 0 0 0 1.5px var(--color-primary);
}

.site-header.is-compact .nav-links a.nav-cta.nav-cta-outline:hover,
.site-header.is-compact .nav-links a.nav-cta.nav-cta-outline.active {
    box-shadow: none;
}

/* Medium screens: tighten the full bar so both pills still fit */
@media (max-width: 1360px) {
    .navbar {
        width: 96%;
        gap: 16px;
    }

    .logo {
        padding-right: 18px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a.nav-cta {
        padding: 13px 18px;
    }
}

@media (max-width: 1200px) {
    .nav-links li:has(> .nav-cta-outline) {
        margin-right: 0;
    }
}


/* ==============================
   INSCRIPTION PAGE
============================== */

.signup {
    padding-bottom: 110px;
}

.signup-form {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 60px 48px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: 0 24px 60px rgba(35, 75, 57, 0.08);
}

.signup-form fieldset {
    border: none;
    padding: 0 0 40px;
    margin: 0 0 40px;
    border-bottom: 1px solid var(--color-border);
}

.signup-form fieldset:last-of-type {
    margin-bottom: 28px;
    padding-bottom: 0;
    border-bottom: none;
}

.signup-form legend {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 26px;
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--color-primary);
}

.signup-form legend span {
    font-style: italic;
    font-size: 16px;
    color: var(--color-accent);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.form-field label em {
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-muted);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    transition: var(--transition);
}

.form-field textarea {
    resize: vertical;
    min-height: 130px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #A9A79E;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    background: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(35, 75, 57, 0.12);
}

.form-field.has-error input {
    border-color: #B5483A;
}

/* Équipage / Bénévole cards */
.choice-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 26px;
}

.choice {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 22px 20px 54px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    cursor: pointer;
    transition: var(--transition);
}

.choice input {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.choice-title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
}

.choice-sub {
    font-size: 13px;
    color: var(--color-muted);
}

.choice:hover {
    border-color: var(--color-primary);
}

.choice:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(220, 232, 190, 0.35);
    box-shadow: inset 0 0 0 1px var(--color-primary);
}

.vehicle-fields[hidden] {
    display: none;
}

.consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-muted);
    cursor: pointer;
}

.consent input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--color-primary);
}

.form-error {
    margin-bottom: 18px;
    padding: 12px 16px;
    font-size: 14px;
    color: #8E3328;
    background: #F8E4DE;
    border-radius: var(--radius-medium);
}

.signup-submit {
    display: inline-block;
    padding: 17px 34px;
    border: none;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(183, 110, 72, 0.35);
    transition: var(--transition);
}

.signup-submit:hover {
    background: #A55F3B;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(183, 110, 72, 0.42);
}

.form-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-muted);
}

@media (max-width: 640px) {
    .signup-form {
        padding: 36px 22px 32px;
    }

    .form-grid,
    .choice-group {
        grid-template-columns: 1fr;
    }

    .signup-submit {
        width: 100%;
    }
}

/* Anti-robot field: kept off-screen */
.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.signup-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

/* Thank-you card shown after sending */
.signup-success {
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 60px;
    text-align: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: 0 24px 60px rgba(35, 75, 57, 0.08);
}

.signup-success:focus {
    outline: none;
}

.signup-success h2 span {
    color: var(--color-accent);
    font-style: italic;
}

.signup-success p:not(.eyebrow) {
    max-width: 480px;
    margin: 20px auto 32px;
    color: var(--color-muted);
    line-height: 1.8;
}

@media (max-width: 640px) {
    .signup-success {
        padding: 44px 24px;
    }
}


/* ==============================
   DAY-BY-DAY PROGRAMME (editions.html)
============================== */

.edition-programme {
    margin-top: 28px;
    border-top: 1px solid var(--color-border);
}

.edition-programme summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 4px;
    list-style: none;
    cursor: pointer;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.edition-programme summary::-webkit-details-marker {
    display: none;
}

.edition-programme summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 400;
    color: var(--color-accent);
    transition: var(--transition);
}

.edition-programme[open] summary::after {
    transform: rotate(45deg);
}

.edition-programme summary:hover {
    color: var(--color-accent);
}

.prog-day {
    margin-top: 22px;
}

.prog-day h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.prog-day h3 span {
    color: var(--color-accent);
    font-style: italic;
}

.prog-day ul {
    list-style: none;
    border-left: 1px solid var(--color-border);
    padding-left: 18px;
}

.prog-day li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
}

.prog-time {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding-top: 2px;
}


/* ==============================
   REAL PHOTOS IN EDITION CARDS AND DETAILS
============================== */

.edition-image.has-photo img,
.edition-detail-image.has-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Dark fade at the bottom so the big number stays readable */
.edition-image.has-photo::after,
.edition-detail-image.has-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 32, 26, 0.6), rgba(20, 32, 26, 0) 55%);
}

.edition-image.has-photo::before,
.edition-detail-image.has-photo::before {
    display: none;
}

.edition-image.has-photo .edition-number,
.edition-detail-image.has-photo .edition-number {
    position: relative;
    z-index: 1;
    color: var(--color-white);
}

.edition-card:hover .edition-image.has-photo img {
    transform: scale(1.04);
}


/* ==============================
   ABOUT SECTION WITH VIDEO (homepage)
   Text on the left, big video on the right: the text
   stays in view while the video plays
============================== */

.about-feature.about-video {
    width: min(1320px, 94%);
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 64px;
    align-items: center;
}

.about-video .about-content {
    max-width: none;
}

.about-video .about-title {
    font-size: clamp(40px, 4.2vw, 62px);
    letter-spacing: -1.5px;
    margin-bottom: 28px;
}

.about-video .about-pill {
    margin-bottom: 24px !important;
}

.about-video-text p {
    font-size: 15.5px !important;
    line-height: 1.85 !important;
}

.about-video-text .text-link {
    display: inline-block;
    margin-top: 22px;
}

.video-card {
    position: relative;
    margin: 0;
}

/* Same soft glow as the old photo */
.video-card::before {
    content: "";
    position: absolute;
    inset: -50px -40px;
    z-index: -1;
    background:
        radial-gradient(closest-side at 25% 40%, rgba(244, 221, 126, 0.4), transparent),
        radial-gradient(closest-side at 75% 70%, rgba(197, 219, 152, 0.4), transparent);
}

.video-facade,
.video-card iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(35, 75, 57, 0.16);
    background: #1d2a23;
}

.video-facade {
    position: relative;
    padding: 0;
    cursor: pointer;
}

.video-facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Darker at the bottom so the caption reads well */
.video-facade::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(18, 30, 24, 0.75), rgba(18, 30, 24, 0) 55%),
        rgba(18, 30, 24, 0.15);
    transition: background 0.4s ease;
}

.video-play {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 92px;
    height: 92px;
    margin: -46px 0 0 -46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.22), 0 16px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.video-play svg {
    width: 34px;
    height: 34px;
    margin-left: 5px;
    fill: var(--color-white);
}

.video-label {
    position: absolute;
    z-index: 1;
    left: 34px;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    color: var(--color-white);
}

.video-label-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #F4DD7E;
}

.video-label-title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.4vw, 30px);
}

.video-facade:hover img {
    transform: scale(1.03);
}

.video-facade:hover .video-play,
.video-facade:focus-visible .video-play {
    transform: scale(1.08);
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.25), 0 16px 40px rgba(0, 0, 0, 0.3);
}

.video-facade:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

@media (max-width: 1000px) {
    .about-feature.about-video {
        width: min(1200px, 90%);
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .about-video .about-title {
        font-size: clamp(40px, 8vw, 62px);
    }
}

@media (max-width: 640px) {
    .about-feature.about-video {
        gap: 40px;
    }

    .video-facade,
    .video-card iframe {
        border-radius: 18px;
    }

    .video-play {
        width: 68px;
        height: 68px;
        margin: -34px 0 0 -34px;
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.22), 0 12px 30px rgba(0, 0, 0, 0.3);
    }

    .video-play svg {
        width: 26px;
        height: 26px;
    }

    .video-label {
        left: 18px;
        bottom: 16px;
    }

    .video-label-kicker {
        display: none;
    }
}


/* ==============================
   ABOUT PAGE (association.html)
   Inspired by big "who we are" pages: one plain statement,
   real photos, a short story and clear calls to action.
============================== */

.about-page .about-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.about-page h2 span,
.ab-hero h1 span {
    font-style: italic;
    color: var(--color-accent);
}

/* 1. Statement */
.ab-hero {
    width: min(1000px, 90%);
    margin: 0 auto;
    padding: 90px 0 56px;
    text-align: center;
}

.ab-hero h1 {
    font-size: clamp(34px, 4.6vw, 64px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.ab-hero h1 span {
    display: block;
}

.ab-mosaic {
    width: min(1320px, 94%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 18px;
    align-items: end;
}

.ab-mosaic img {
    width: 100%;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(35, 75, 57, 0.14);
}

.ab-mosaic img:nth-child(1) { aspect-ratio: 4 / 4.6; }
.ab-mosaic img:nth-child(2) { aspect-ratio: 16 / 11; object-position: center 30%; }
.ab-mosaic img:nth-child(3) { aspect-ratio: 4 / 4.6; }

/* 2. Mission + editions */
.ab-mission {
    width: min(1320px, 94%);
    margin: 0 auto;
    padding: 120px 0 110px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 60px;
    align-items: center;
}

.ab-mission h2 {
    font-size: clamp(44px, 5.4vw, 80px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.ab-mission h2 span {
    font-weight: 600;
}

.ab-mission-text p:not(.about-pill) {
    max-width: 460px;
    font-size: 16px;
    line-height: 1.85;
    color: var(--color-muted);
}

.ab-mission-text p.ab-strong {
    margin-top: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

.ab-arrows {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.ab-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 18px;
    transition: var(--transition);
}

.ab-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.ab-editions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 46%);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 4px 20px;
}

.ab-editions::-webkit-scrollbar {
    display: none;
}

.ab-edition {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 18px 44px rgba(35, 75, 57, 0.14);
}

.ab-edition img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ab-edition::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 30, 24, 0.82), rgba(18, 30, 24, 0) 55%);
}

.ab-edition:hover img {
    transform: scale(1.05);
}

.ab-edition-info {
    position: absolute;
    z-index: 1;
    left: 22px;
    right: 22px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-white);
}

.ab-edition-year {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #F4DD7E;
}

.ab-edition-route {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.2;
}

/* 3. History (dark band) */
.ab-history {
    background: var(--color-primary);
    color: var(--color-white);
}

.ab-history-inner {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 100px 0;
}

.ab-history .eyebrow {
    color: #F4DD7E;
}

.ab-history h2 {
    color: var(--color-white);
    font-size: clamp(32px, 3.6vw, 50px);
    margin-bottom: 60px;
}

.ab-history h2 span {
    color: #F4DD7E;
}

.ab-timeline {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 18px;
    position: relative;
}

/* The road line joining the years */
.ab-timeline::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    right: 0;
    border-top: 2px dashed rgba(244, 221, 126, 0.45);
}

.ab-timeline-item {
    position: relative;
    padding-top: 40px;
}

.ab-timeline-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #F4DD7E;
    box-shadow: 0 0 0 6px rgba(244, 221, 126, 0.18);
}

.ab-timeline-item.is-next::before {
    background: var(--color-primary);
    border: 2px solid #F4DD7E;
}

.ab-timeline-year {
    display: block;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 30px;
    color: #F4DD7E;
    margin-bottom: 8px;
}

.ab-timeline-item h3 {
    font-size: 17px;
    color: var(--color-white);
    margin-bottom: 8px;
}

.ab-timeline-item p {
    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

/* 4. Mohamed Mjid */
.ab-founder {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 120px 0;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
    align-items: center;
}

.ab-founder-photos {
    position: relative;
    padding-bottom: 60px;
}

.ab-founder-main {
    width: 100%;
    aspect-ratio: 4 / 3.3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(35, 75, 57, 0.16);
}

.ab-founder-card {
    position: absolute;
    right: -30px;
    bottom: 0;
    width: 46%;
    margin: 0;
    padding: 10px 10px 12px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(35, 75, 57, 0.2);
    transform: rotate(2deg);
}

.ab-founder-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.ab-founder-card figcaption {
    margin-top: 8px;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 12px;
    color: var(--color-muted);
    text-align: center;
}

.ab-founder-text h2 {
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.ab-founder-text p:not(.about-pill) {
    font-size: 16px;
    line-height: 1.85;
    color: var(--color-muted);
    max-width: 520px;
}

.ab-founder-text p:not(.about-pill) + p {
    margin-top: 14px;
}

/* 5. How we work (coloured band) */
.ab-promises {
    background: var(--color-accent);
}

.ab-promises-inner {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 100px 0;
    text-align: center;
}

.ab-promises h2 {
    color: var(--color-white);
    font-size: clamp(36px, 4.4vw, 60px);
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 50px;
}

.ab-promises h2 span {
    color: #FCE9B4;
}

.ab-promises-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    text-align: left;
}

.ab-promise {
    padding: 34px 30px;
    border-radius: 22px;
    background: rgba(60, 28, 14, 0.32);
    color: var(--color-white);
}

.ab-promise-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: #F4DD7E;
    color: var(--color-primary);
}

.ab-promise-icon svg {
    width: 26px;
    height: 26px;
}

.ab-promise h3 {
    color: var(--color-white);
    font-size: 22px;
    margin-bottom: 10px;
}

.ab-promise p {
    font-size: 14.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

/* 6. Organisers */
.ab-team {
    width: min(1000px, 90%);
    margin: 0 auto;
    padding: 110px 0 90px;
    text-align: center;
}

.ab-team h2 {
    font-size: clamp(32px, 3.6vw, 50px);
    margin-bottom: 50px;
}

.ab-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ab-logos figure {
    margin: 0;
}

.ab-logos img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 16px 40px rgba(35, 75, 57, 0.12);
}

.ab-logos figcaption {
    font-size: 13.5px;
    color: var(--color-muted);
}

.ab-logos figcaption strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 500;
    color: var(--color-primary);
}

.ab-team-note {
    max-width: 620px;
    margin: 46px auto 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-muted);
}

.ab-team-note strong {
    color: var(--color-text);
    font-weight: 600;
}

/* 7. Join */
.ab-join {
    position: relative;
    width: min(1320px, 94%);
    margin: 0 auto 110px;
    min-height: 560px;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ab-join > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.ab-join-card {
    position: relative;
    max-width: 480px;
    margin: 40px 40px 40px auto;
    padding: 40px 40px 36px;
    border-radius: 22px;
    background: rgba(253, 251, 245, 0.94);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.ab-join-card h2 {
    font-size: clamp(28px, 2.8vw, 40px);
    line-height: 1.15;
    margin-bottom: 18px;
}

.ab-join-card p:not(.eyebrow) {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--color-muted);
}

.ab-join-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 26px;
}

/* Responsive */
@media (max-width: 1100px) {
    .ab-timeline {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 40px;
    }

    .ab-timeline::before {
        display: none;
    }
}

@media (max-width: 950px) {
    .ab-mission,
    .ab-founder {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .ab-mission {
        padding: 80px 0;
    }

    .ab-founder {
        padding: 80px 0;
    }

    .ab-founder-card {
        right: 10px;
    }

    .ab-promises-grid,
    .ab-logos {
        grid-template-columns: 1fr;
    }

    .ab-editions {
        grid-auto-columns: minmax(240px, 70%);
    }
}

@media (max-width: 700px) {
    .ab-hero {
        padding: 60px 0 36px;
    }

    .ab-mosaic {
        grid-template-columns: 1fr 1fr;
    }

    .ab-mosaic img:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    /* Timeline becomes a vertical road */
    .ab-timeline {
        grid-template-columns: 1fr;
        row-gap: 30px;
        padding-left: 36px;
    }

    .ab-timeline::before {
        display: block;
        top: 4px;
        bottom: 4px;
        left: 9px;
        right: auto;
        border-top: none;
        border-left: 2px dashed rgba(244, 221, 126, 0.45);
    }

    .ab-timeline-item {
        padding-top: 0;
    }

    .ab-timeline-item::before {
        left: -36px;
        top: 6px;
    }

    .ab-history-inner,
    .ab-promises-inner {
        padding: 70px 0;
    }

    .ab-join {
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
        margin-bottom: 70px;
    }

    .ab-join > img {
        position: relative;
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .ab-join-card {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 30px 24px;
    }
}

.ab-logos figcaption a {
    color: var(--color-accent);
    font-weight: 600;
}


/* ==============================
   LOGO MARK (green car) next to the name
============================== */

.logo-mark {
    width: 46px;
    height: auto;
    flex: none;
    transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.site-header.is-compact .logo-mark {
    width: 36px;
}

@media (max-width: 850px) {
    .logo-mark {
        width: 52px;
    }

    .logo {
        gap: 10px;
    }
}
