/* ==========================================================================
   DJIBOUTI GLOBAL — "lagon" theme: the blue and green of the flag on a
   bright, sea-light background, with a touch of gold for the 50th anniversary.
   Sections: 1 tokens · 2 base · 3 header · 4 buttons and cards · 5 hero ·
   6 connection globe · 7 countdown · 8 home sections · 9 roadmap ·
   10 contact · 11 legal · 12 footer · 13 consent · 14 motion · 15 responsive
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
    color-scheme: light;

    --navy: #0a2a5e;
    --ink: #0f2547;
    --muted: #4b6283;
    --blue: #1670cc;
    --blue-deep: #0d4fa0;
    --sky: #5cb4ec;
    --green: #17a24a;
    --green-deep: #0f7f39;
    --gold: #b98a22;
    --gold-light: #e6c463;
    --star: #d7141a;
    --success: #0f7f39;
    --danger: #c0262d;

    --page: #f4f9fd;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.72);
    --surface-tint: #eaf4fc;
    --border: rgba(13, 79, 160, 0.14);
    --border-strong: rgba(13, 79, 160, 0.28);

    --flag: linear-gradient(110deg, var(--blue), var(--sky) 45%, var(--green));
    --flag-bands: linear-gradient(180deg, var(--sky) 0 50%, var(--green) 50% 100%);
    --gold-gradient: linear-gradient(120deg, #8a6416, var(--gold-light) 45%, var(--gold));

    --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
    --font-display: "Segoe UI Variable Display", "Avenir Next", "Montserrat", "Segoe UI", system-ui, sans-serif;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --space: clamp(1rem, 2.5vw, 1.5rem);
    --shadow: 0 24px 50px -28px rgba(10, 42, 94, 0.35);
    --shadow-soft: 0 10px 30px -18px rgba(10, 42, 94, 0.3);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --header-height: 86px;
    --max-width: 1180px;
}

/* 2. Base ---------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1100px 620px at 92% -8%, rgba(92, 180, 236, 0.28), transparent 62%),
        radial-gradient(900px 520px at -12% 40%, rgba(23, 162, 74, 0.12), transparent 60%),
        var(--page);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

img,
svg {
    max-width: 100%;
}

a {
    color: var(--blue);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--green-deep);
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--navy);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
}

h1 {
    font-size: clamp(2.3rem, 5.6vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    font-weight: 800;
}

h3 {
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

.gradient-text {
    background: var(--flag);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--blue-deep);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* The DG emblem, in the colours of the flag, before each eyebrow. */
.eyebrow::before {
    content: "";
    flex: none;
    width: 22px;
    height: 18px;
    background: url("assets/emblem-djibouti-global.svg") center / contain no-repeat;
}

.section {
    width: min(100% - 2 * var(--space), var(--max-width));
    margin-inline: auto;
    padding-block: clamp(3rem, 8vw, 6rem);
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head.centered {
    margin-inline: auto;
    text-align: center;
}

.section-lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 1.8vw, 1.18rem);
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

#auroraCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    filter: blur(36px) saturate(1.1);
}

/* 3. Header -------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: var(--header-height);
    padding-inline: max(var(--space), calc((100% - var(--max-width)) / 2));
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

/* Flag-coloured hairline under the header. */
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--flag);
    opacity: 0.85;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    text-decoration: none;
    margin-right: auto;
}

/* The logo already contains the name; .brand-name stays for screen readers. */
.brand-logo {
    display: block;
    width: auto;
    height: 64px;
    flex: none;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--navy);
    background: var(--surface-tint);
}

.site-nav .nav-cta {
    margin-left: 0.4rem;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 8px 20px -10px rgba(22, 112, 204, 0.8);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
    color: #fff;
    background: var(--green-deep);
}

/* "50 ans" leads the menu as a gold pill, the colour of the jubilee. */
.site-nav .nav-jubilee {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.4rem;
    color: #3d2b05;
    background: var(--gold-gradient);
    background-size: 200% 100%;
    box-shadow: 0 8px 20px -10px rgba(138, 100, 22, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    animation: shimmer 7s ease-in-out infinite;
}

.site-nav .nav-jubilee:hover,
.site-nav .nav-jubilee[aria-current="page"] {
    color: #2b1e03;
    background: var(--gold-gradient);
    background-size: 200% 100%;
    box-shadow: 0 10px 24px -10px rgba(138, 100, 22, 1), inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.nav-jubilee-mark {
    color: var(--star);
    font-size: 0.85em;
    line-height: 1;
}

/* Shown once a second language exists (see README, "Languages"). */
.lang-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.lang-switch a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.lang-switch a[aria-current] {
    color: #fff;
    background: var(--navy);
}

.menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform 0.3s var(--ease-out);
}

.menu-toggle span:first-child {
    top: 17px;
}

.menu-toggle span:last-child {
    top: 25px;
}

.menu-open .menu-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* 4. Buttons and cards --------------------------------------------------- */
.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--navy);
    background: var(--surface);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, color 0.25s;
}

.button:hover {
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.button-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(110deg, var(--blue-deep), var(--blue) 40%, var(--green) 100%);
    background-size: 200% 100%;
    box-shadow: 0 14px 30px -14px rgba(13, 79, 160, 0.9);
    animation: shimmer 7s ease-in-out infinite;
}

.button-primary:hover {
    color: #fff;
    box-shadow: 0 18px 36px -14px rgba(23, 162, 74, 0.85);
}

.button-gold {
    border: 0;
    color: #2b1e03;
    background: var(--gold-gradient);
    background-size: 200% 100%;
    box-shadow: 0 14px 30px -14px rgba(138, 100, 22, 0.9);
    animation: shimmer 7s ease-in-out infinite;
}

.button-gold:hover {
    color: #2b1e03;
    box-shadow: 0 18px 36px -14px rgba(138, 100, 22, 1);
}

.button:disabled {
    opacity: 0.65;
    cursor: progress;
    transform: none;
}

.button-arrow {
    transition: transform 0.25s var(--ease-out);
}

.button:hover .button-arrow {
    transform: translateX(4px);
}

.glow-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
    box-shadow: var(--shadow);
    overflow: hidden;
    isolation: isolate;
}

.glow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--glow-x, 50%) var(--glow-y, 0%), rgba(92, 180, 236, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.glow-card:hover::before {
    opacity: 1;
}

/* 5. Hero ---------------------------------------------------------------- */
.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    min-height: calc(100vh - var(--header-height));
    padding-block: clamp(2rem, 6vw, 4rem);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.95rem 0.35rem 0.75rem;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(185, 138, 34, 0.45);
    border-radius: 999px;
    color: #7a5a12;
    background: rgba(230, 196, 99, 0.16);
    font-size: 0.88rem;
    font-weight: 700;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(185, 138, 34, 0.7);
    animation: pulse 2s ease-out infinite;
}

.hero-lead {
    max-width: 37rem;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.22rem);
}

.hero-lead strong {
    color: var(--navy);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

/* 6. Connection globe ---------------------------------------------------- */
.scene {
    position: relative;
    aspect-ratio: 13 / 12;
}

.scene svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.globe-grid {
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1;
}

.orbit {
    fill: none;
    stroke-linecap: round;
}

.orbit-main {
    stroke: url(#orbitGradient);
    stroke-width: 5;
}

.orbit-thin {
    stroke: rgba(13, 79, 160, 0.35);
    stroke-width: 1.5;
    stroke-dasharray: 2 9;
    animation: dash-flow 30s linear infinite;
}

.route-base {
    fill: none;
    stroke: rgba(13, 79, 160, 0.28);
    stroke-width: 1.6;
    stroke-dasharray: 3 5;
}

/* A short bright segment travels from Djibouti to each city (pathLength=100). */
.route-pulse {
    fill: none;
    stroke: url(#routeGradient);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-dasharray: 14 120;
    stroke-dashoffset: 14;
    animation: route-travel 4.8s var(--ease-out) infinite;
}

.route-pulse:nth-of-type(2) { animation-delay: 0.37s; }
.route-pulse:nth-of-type(3) { animation-delay: 0.74s; }
.route-pulse:nth-of-type(4) { animation-delay: 1.11s; }
.route-pulse:nth-of-type(5) { animation-delay: 1.48s; }
.route-pulse:nth-of-type(6) { animation-delay: 1.85s; }
.route-pulse:nth-of-type(7) { animation-delay: 2.22s; }
.route-pulse:nth-of-type(8) { animation-delay: 2.59s; }
.route-pulse:nth-of-type(9) { animation-delay: 2.96s; }
.route-pulse:nth-of-type(10) { animation-delay: 3.33s; }
.route-pulse:nth-of-type(11) { animation-delay: 3.7s; }
.route-pulse:nth-of-type(12) { animation-delay: 4.07s; }
.route-pulse:nth-of-type(13) { animation-delay: 4.44s; }

.city-dot {
    fill: #fff;
    stroke: var(--green);
    stroke-width: 3;
}

.city-label rect {
    fill: #fff;
    stroke: var(--border-strong);
}

.city-label text {
    fill: var(--navy);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
}

.hub-ring {
    fill: none;
    stroke: var(--green);
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    animation: hub-ring 2.6s ease-out infinite;
}

.hub-ring:nth-of-type(2) {
    animation-delay: 1.3s;
}

.hub-label text {
    fill: #fff;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.bird {
    fill: none;
    stroke: var(--gold);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: glide 7s ease-in-out infinite;
}

.bird:nth-of-type(2) {
    animation-delay: 1.4s;
}

/* 7. Countdown ----------------------------------------------------------- */
.countdown {
    margin-top: 2.2rem;
    max-width: 34rem;
}

.countdown-label {
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.countdown-label time {
    color: var(--navy);
    font-weight: 800;
}

.countdown-units {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.countdown-units li {
    display: grid;
    justify-items: center;
    padding: 0.75rem 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
    box-shadow: var(--shadow-soft);
}

.countdown-value {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.countdown-unit {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.countdown-done {
    display: none;
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green-deep);
}

.countdown.is-done .countdown-units {
    display: none;
}

.countdown.is-done .countdown-done {
    display: block;
}

/* 8. Home sections ------------------------------------------------------- */
.vision {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.vision-copy p {
    color: var(--muted);
}

.vision-copy .vision-quote {
    margin: 1.6rem 0 0;
    padding-left: 1.2rem;
    border-left: 4px solid var(--green);
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 700;
    line-height: 1.4;
}

.pillars {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pillars li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.2rem 1.3rem;
}

.pillars strong {
    display: block;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.08rem;
}

.pillars span:not(.pillar-icon) {
    color: var(--muted);
    font-size: 0.95rem;
}

.pillar-icon,
.feature-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(92, 180, 236, 0.2), rgba(23, 162, 74, 0.16));
}

.pillar-icon svg,
.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: url(#iconGradient);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The motto, as a band between the hero and the vision. */
.motto {
    padding-block: 0 clamp(1rem, 3vw, 2rem);
}

.motto-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(110deg, var(--blue-deep), var(--blue) 45%, var(--green-deep));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.motto-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: clamp(1.1rem, 2.6vw, 1.6rem) 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    text-align: center;
}

.motto-list li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.motto-list strong {
    color: #fff;
    font-weight: 800;
}

.motto-icon svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--gold-light);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

/* The eighth tile invites visitors to propose content. */
.feature-card-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 0;
    color: #fff;
    background: linear-gradient(140deg, var(--blue-deep), var(--blue) 45%, var(--green) 100%);
    background-size: 200% 200%;
    box-shadow: 0 22px 44px -20px rgba(13, 79, 160, 0.85);
    text-decoration: none;
    animation: shimmer 7s ease-in-out infinite;
}

.feature-card-cta::before {
    background: radial-gradient(420px circle at var(--glow-x, 50%) var(--glow-y, 0%), rgba(255, 255, 255, 0.22), transparent 60%);
}

.feature-card-cta:hover {
    color: #fff;
    box-shadow: 0 26px 50px -18px rgba(23, 162, 74, 0.8);
}

.feature-card-cta .feature-icon {
    background: rgba(255, 255, 255, 0.16);
}

.feature-card-cta .feature-icon svg {
    stroke: var(--gold-light);
    stroke-width: 2.4;
}

.feature-card-cta h3 {
    color: #fff;
}

.feature-card.feature-card-cta p {
    margin-bottom: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    color: #2b1e03;
    background: var(--gold-gradient);
    background-size: 200% 100%;
    font-weight: 700;
    box-shadow: 0 10px 22px -12px rgba(43, 30, 3, 0.8);
}

.feature-card-cta:hover .button-arrow {
    transform: translateX(4px);
}

.feature-card {
    padding: 1.6rem 1.5rem 1.5rem;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card h3 {
    margin: 1.1rem 0 0.4rem;
    font-size: 1.2rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

.features-note {
    margin: 2rem auto 0;
    max-width: 42rem;
    color: var(--muted);
    text-align: center;
    font-size: 0.95rem;
}

/* The 50th anniversary: gold accents next to the national colours. */
.jubilee-band {
    position: relative;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 260px at 50% 0%, rgba(230, 196, 99, 0.22), transparent 70%),
        #fff;
    border: 1px solid rgba(185, 138, 34, 0.3);
    box-shadow: var(--shadow);
}

.jubilee-band img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 980px;
    margin-inline: auto;
}

.medallion {
    position: relative;
    margin: 0;
}

.medallion img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 30px 60px -30px rgba(122, 90, 18, 0.55);
}

.medallion figcaption {
    margin-top: 0.9rem;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

.jubilee-copy p {
    color: var(--muted);
}

.triad {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.8rem 0 0;
    padding: 0;
    list-style: none;
}

.triad li {
    padding: 1rem;
    border: 1px solid rgba(185, 138, 34, 0.28);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.85);
}

.triad strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--navy);
    font-family: var(--font-display);
}

.triad strong::before {
    content: "★ ";
    color: var(--gold);
}

.triad span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Home: the hero's link to the anniversary, with the days left. */
.jubilee-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    max-width: 34rem;
    margin-top: 2.2rem;
    padding: 0.8rem 1.1rem 0.8rem 0.8rem;
    border: 1px solid rgba(185, 138, 34, 0.45);
    border-radius: 999px;
    color: var(--muted);
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.92), rgba(230, 196, 99, 0.18));
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}

.jubilee-link:hover {
    color: var(--muted);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.jubilee-link > .button-arrow {
    margin-left: auto;
    color: var(--gold);
    font-weight: 800;
}

.jubilee-link:hover > .button-arrow {
    transform: translateX(4px);
}

.jubilee-link-badge {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #2b1e03;
    background: var(--gold-gradient);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.jubilee-link-text {
    display: grid;
    line-height: 1.35;
}

.jubilee-link-text strong {
    color: var(--navy);
    font-family: var(--font-display);
}

.jubilee-link-count {
    font-size: 0.92rem;
}

.jubilee-link .countdown-value {
    font-size: inherit;
    line-height: inherit;
    color: #8a6416;
}

.jubilee-link .countdown-done {
    font-size: 0.92rem;
    color: #8a6416;
}

.jubilee-link.is-done .jubilee-link-count {
    display: none;
}

.jubilee-link.is-done .countdown-done {
    display: block;
}

/* Home: the anniversary teaser that leads to its page. */
.jubilee-teaser {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.2rem, 3vw, 2rem);
    border-color: rgba(185, 138, 34, 0.35);
    background:
        radial-gradient(520px 260px at 100% 0%, rgba(230, 196, 99, 0.2), transparent 70%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.86));
}

.jubilee-teaser-copy p {
    color: var(--muted);
}

/* An archive print: white border, a slight tilt and the warmth of old paper. */
.archive-photo {
    position: relative;
    margin: 0;
    padding: clamp(0.6rem, 1.4vw, 0.9rem) clamp(0.6rem, 1.4vw, 0.9rem) 0;
    border-radius: 6px;
    background: #fbf7ee;
    box-shadow: 0 30px 60px -28px rgba(10, 20, 40, 0.65), 0 0 0 1px rgba(122, 90, 18, 0.18);
    transform: rotate(-1.2deg);
}

.archive-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    filter: sepia(0.12) contrast(1.03);
}

.archive-photo figcaption {
    padding: 0.8rem 0.3rem 0.9rem;
    color: #5a4a2c;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.45;
    text-align: center;
}

/* Gold tape holding the print. */
.archive-photo::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 110px;
    height: 26px;
    margin-left: -55px;
    background: rgba(230, 196, 99, 0.55);
    box-shadow: 0 2px 6px -2px rgba(122, 90, 18, 0.4);
    transform: rotate(2deg);
}

.archive-photo-small {
    padding-bottom: clamp(0.6rem, 1.4vw, 0.9rem);
}

/* The 50 ans page: hero with the countdown and the "Merci" medallion. */
.jubilee-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(2rem, 6vw, 4.5rem);
}

.jubilee-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.5rem);
}

.jubilee-hero .hero-actions {
    margin-top: 1.8rem;
}

.jubilee-hero-medallion {
    max-width: 440px;
    margin-inline: auto;
}

.countdown-gold .countdown-units li {
    border-color: rgba(185, 138, 34, 0.35);
    background: linear-gradient(180deg, #fff, rgba(230, 196, 99, 0.14));
    box-shadow: inset 0 3px 0 var(--gold-light), var(--shadow-soft);
}

/* 27 June 1977: a deep blue band, like the night before the proclamation. */
.proclamation {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.86);
    background:
        radial-gradient(700px 380px at 85% 10%, rgba(230, 196, 99, 0.18), transparent 65%),
        radial-gradient(800px 420px at 0% 100%, rgba(23, 162, 74, 0.25), transparent 60%),
        linear-gradient(160deg, #071d42, var(--navy) 55%, #0b3a4a);
}

.proclamation::before,
.proclamation::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--flag-bands);
}

.proclamation::before {
    top: 0;
}

.proclamation::after {
    bottom: 0;
}

.proclamation-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.proclamation .eyebrow {
    color: var(--gold-light);
}

.proclamation h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

.proclamation-date {
    display: block;
    margin-bottom: 0.35rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(2.8rem, 7vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.proclamation-copy p {
    font-size: clamp(1.05rem, 1.8vw, 1.15rem);
}

.proclamation-copy strong {
    color: #fff;
}

.proclamation-copy .proclamation-motto {
    display: grid;
    gap: 0.2rem;
    margin: 1.8rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(230, 196, 99, 0.4);
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
}

.proclamation-years {
    color: var(--gold-light);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.jubilee-copy-centered {
    max-width: 52rem;
    margin: clamp(2rem, 5vw, 3rem) auto 0;
    text-align: center;
}

.jubilee-copy-centered .triad {
    text-align: left;
}

/* Frise historique: a timeline from 1977 to the jubilee. */
.frise-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
}

.frise-range-line {
    width: clamp(80px, 18vw, 200px);
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--blue), var(--green) 70%, var(--gold));
}

/* Year shortcuts, kept in view while the timeline scrolls past. They wrap
   onto several lines on narrow screens so that every year stays in sight. */
.frise-nav {
    position: sticky;
    top: calc(var(--header-height) + 10px);
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.frise-nav a {
    flex: none;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.frise-nav a:hover {
    color: var(--navy);
    background: var(--surface-tint);
}

.frise-nav a[aria-current] {
    color: #fff;
    background: var(--navy);
}

.frise-nav .frise-nav-jubilee {
    color: #2b1e03;
    background: var(--gold-gradient);
}

.frise-nav .frise-nav-jubilee[aria-current] {
    box-shadow: inset 0 0 0 2px var(--navy);
}

.frise {
    position: relative;
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The line of time: flag blue at independence, gold at the jubilee. */
.frise::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    margin-left: -2px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--sky), var(--blue) 30%, var(--green) 75%, var(--gold));
}

.frise-step {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    column-gap: 1.4rem;
    align-items: start;
    scroll-margin-top: calc(var(--header-height) + 80px);
}

.frise-marker {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    place-items: center;
    justify-self: center;
    width: 56px;
    height: 56px;
    margin-top: 0.6rem;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #eef6fd;
    box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-soft);
}

.frise-marker svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: url(#iconGradient);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.frise-card {
    grid-row: 1;
    position: relative;
    padding: 1.3rem 1.4rem 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.35s var(--ease-out), border-color 0.35s;
}

.frise-step:hover .frise-card {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.frise-step:nth-child(odd) .frise-card {
    grid-column: 1;
}

.frise-step:nth-child(even) .frise-card {
    grid-column: 3;
}

/* A small pointer from each card towards the line. */
.frise-card::before {
    content: "";
    position: absolute;
    top: 1.9rem;
    width: 14px;
    height: 14px;
    background: inherit;
    border: inherit;
    border-radius: 0;
    transform: rotate(45deg);
}

.frise-step:nth-child(odd) .frise-card::before {
    right: -8px;
    border-left: 0;
    border-bottom: 0;
}

.frise-step:nth-child(even) .frise-card::before {
    left: -8px;
    border-right: 0;
    border-top: 0;
}

.frise-when {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    color: var(--blue-deep);
    background: var(--surface-tint);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

.frise-card h3 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
}

.frise-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

/* Milestones: a filled marker. */
.frise-step-key .frise-marker {
    background: linear-gradient(150deg, var(--blue-deep), var(--blue) 50%, var(--green));
}

.frise-step-key .frise-marker svg {
    stroke: #fff;
}

.frise-step-key .frise-when {
    color: #fff;
    background: var(--blue);
}

/* The jubilee closes the line, in gold. */
.frise-step-jubilee .frise-marker {
    width: 64px;
    height: 64px;
    color: #2b1e03;
    background: var(--gold-gradient);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    box-shadow: 0 0 0 1px rgba(185, 138, 34, 0.6), 0 0 0 8px rgba(230, 196, 99, 0.25), var(--shadow-soft);
}

.frise-step-jubilee .frise-card {
    border-color: rgba(185, 138, 34, 0.45);
    background: #fffaf0;
}

.frise-step-jubilee .frise-when {
    color: #2b1e03;
    background: var(--gold-gradient);
}

/* Photos and documents attached to a step. */
.frise-media {
    display: block;
    margin-top: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fbf7ee;
    box-shadow: 0 0 0 1px rgba(122, 90, 18, 0.2);
    color: #5a4a2c;
    text-decoration: none;
}

.frise-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: 50% 30%;
    filter: sepia(0.12);
    transition: transform 0.6s var(--ease-out);
}

.frise-media:hover {
    color: #3d2b05;
}

.frise-media:hover img {
    transform: scale(1.04);
}

.frise-media span {
    display: block;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
    font-style: italic;
}

/* The six verbs of fifty years. */
.phases {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(110deg, var(--blue-deep), var(--blue) 45%, var(--green-deep));
    box-shadow: var(--shadow);
    text-align: center;
}

.phases-range {
    margin: 0 0 1rem;
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.phases-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.phases-list li {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.2vw, 1.4rem);
    font-weight: 800;
}

.phases-list li + li::before {
    content: "→";
    margin: 0 0.7rem;
    color: var(--gold-light);
    font-weight: 700;
}

.phases-list li:last-child {
    color: var(--gold-light);
}

.frise-contribute {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: 1.4rem;
    padding: clamp(1.3rem, 3vw, 1.8rem);
    border: 2px dashed rgba(185, 138, 34, 0.45);
    box-shadow: none;
}

.frise-contribute > div {
    flex: 1 1 22rem;
}

.frise-contribute h3 {
    margin: 0 0 0.3rem;
    font-size: 1.25rem;
}

.frise-contribute p {
    margin: 0;
    color: var(--muted);
}

.join-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.join-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.6rem;
}

.join-card h3 {
    margin: 0;
    font-size: 1.25rem;
}

.join-card p {
    flex: 1;
    margin: 0;
    color: var(--muted);
}

.join-card .button {
    align-self: flex-start;
    margin-top: 0.6rem;
}

.join-card-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(150deg, var(--blue-deep), var(--blue) 55%, var(--green));
}

.join-card-primary h3,
.join-card-primary p {
    color: #fff;
}

.join-card-primary .button {
    border: 0;
    color: var(--navy);
}

/* 9. Roadmap ------------------------------------------------------------- */
.roadmap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.roadmap li {
    position: relative;
    padding: 1.4rem 1.3rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    box-shadow: var(--shadow-soft);
}

/* The line that joins the steps, coloured up to the current one. */
.roadmap li::after {
    content: "";
    position: absolute;
    top: 2.35rem;
    left: calc(100% + 1px);
    width: calc(1rem - 2px);
    height: 3px;
    background: var(--border-strong);
}

.roadmap li:last-child::after {
    display: none;
}

.roadmap li[data-state="done"]::after {
    background: var(--green);
}

.roadmap-when {
    display: block;
    margin: 0.9rem 0 0.15rem;
    color: var(--blue-deep);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.roadmap strong {
    display: block;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.roadmap p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.step-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    color: var(--muted);
    background: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

[data-state="done"] .step-icon {
    border-color: var(--green);
    color: #fff;
    background: var(--green);
}

[data-state="active"] .step-icon {
    border-color: var(--blue);
    border-top-color: transparent;
    animation: spin 1.2s linear infinite;
}

.roadmap li[data-state="active"] {
    border-color: rgba(22, 112, 204, 0.45);
}

.roadmap li[data-state="launch"] {
    border-color: rgba(185, 138, 34, 0.5);
    background: linear-gradient(165deg, #fff, rgba(230, 196, 99, 0.18));
}

[data-state="launch"] .step-icon {
    border-color: var(--gold);
    color: #fff;
    background: var(--gold);
}

/* 10. Contact ------------------------------------------------------------ */
.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-description {
    color: var(--muted);
}

.topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}

.topic-chips a {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--navy);
    background: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.topic-chips a:hover {
    border-color: var(--green);
    background: rgba(23, 162, 74, 0.08);
}

.next-steps {
    counter-reset: step;
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.next-steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.9rem;
    align-items: start;
}

.next-steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    color: var(--navy);
    background: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    animation: step-glow 6s ease-in-out infinite;
}

.next-steps li:nth-child(2)::before { animation-delay: 2s; }
.next-steps li:nth-child(3)::before { animation-delay: 4s; }

.next-steps strong {
    display: block;
    color: var(--navy);
}

.next-steps span {
    color: var(--muted);
    font-size: 0.95rem;
}

.direct-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
}

.direct-card > div {
    min-width: 0;
}

.direct-card .eyebrow {
    margin-bottom: 0.2rem;
}

.direct-email {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.direct-icon {
    flex: none;
    width: 48px;
    height: 48px;
}

.contact-form {
    display: grid;
    gap: 1.1rem;
    padding: clamp(1.4rem, 4vw, 2.4rem);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.field {
    display: grid;
    gap: 0.4rem;
}

.field label {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    background: #fbfdff;
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(22, 112, 204, 0.16);
}

.field [aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(192, 38, 45, 0.12);
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-submit {
    justify-self: start;
}

.is-sending .contact-submit::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.contact-status {
    min-height: 1.5em;
    font-weight: 700;
}

.contact-status.success {
    color: var(--success);
}

.contact-status.error {
    color: var(--danger);
}

.contact-privacy,
.recaptcha-disclosure {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

/* 11. Legal -------------------------------------------------------------- */
.legal-page {
    width: min(100% - 2 * var(--space), 820px);
    margin-inline: auto;
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.legal-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.legal-page h2 {
    margin-top: 2.2rem;
    font-size: 1.45rem;
}

.legal-page h3 {
    margin-top: 1.4rem;
    font-size: 1.1rem;
}

.legal-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

.table-scroll {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.legal-page table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.legal-page th,
.legal-page td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.legal-page th {
    color: var(--navy);
    background: var(--surface-tint);
}

.legal-page tr:last-child td {
    border-bottom: 0;
}

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

/* 12. Footer ------------------------------------------------------------- */
.site-footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    text-align: center;
    padding: 2rem max(var(--space), calc((100% - var(--max-width)) / 2)) 1.6rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

/* The flag's bands as the footer's top edge. */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--flag-bands);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    display: block;
    width: auto;
    height: 90px;
    max-width: 100%;
    object-fit: contain;
}

.footer-tagline {
    margin: 0;
    color: var(--navy);
    font-weight: 600;
}

/* Builder credit: its own row under the footer content. */
.footer-credit {
    align-self: stretch;
    display: flex;
    justify-content: center;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

.built-by {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.9rem 0.35rem 0.45rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.built-by img {
    width: 24px;
    height: 24px;
    transition: transform 0.6s var(--ease-out);
}

.built-by strong {
    color: var(--navy);
    letter-spacing: 0.12em;
}

.built-by:hover {
    color: var(--navy);
    border-color: var(--border-strong);
}

.built-by:hover img {
    transform: rotate(90deg);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 1.2rem;
}

.footer-links a {
    color: var(--muted);
}

.footer-button {
    padding: 0;
    border: 0;
    color: var(--blue);
    background: none;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.footer-links .footer-button {
    color: var(--muted);
}

/* 13. Consent banner and settings --------------------------------------- */
.cookie-banner {
    position: fixed;
    right: var(--space);
    bottom: var(--space);
    z-index: 40;
    width: min(440px, calc(100% - 2 * var(--space)));
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 30px 70px -30px rgba(10, 42, 94, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: rise 0.6s var(--ease-out) both;
}

.cookie-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.4rem;
    right: 1.4rem;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--flag);
}

.cookie-banner h2,
.cookie-dialog h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cookie-banner p,
.cookie-dialog p {
    color: var(--muted);
    font-size: 0.92rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cookie-btn {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 0.55rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--navy);
    background: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.cookie-btn:hover {
    background: var(--surface-tint);
}

.cookie-btn.primary {
    border: 0;
    color: #fff;
    background: var(--blue);
}

.cookie-btn.primary:hover {
    background: var(--blue-deep);
}

.privacy-note {
    margin: 0.8rem 0 0;
    font-size: 0.85rem;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: var(--space);
    background: rgba(10, 42, 94, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cookie-modal[hidden],
.cookie-banner[hidden] {
    display: none;
}

.cookie-dialog {
    width: min(560px, 100%);
    max-height: calc(100vh - 2 * var(--space));
    overflow-y: auto;
    padding: clamp(1.3rem, 4vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
    animation: rise 0.45s var(--ease-out) both;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}

.cookie-category h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.cookie-category p {
    margin: 0;
}

.cookie-always {
    flex: none;
    color: var(--green-deep);
    font-size: 0.82rem;
    font-weight: 700;
}

.cookie-switch {
    flex: none;
    appearance: none;
    position: relative;
    width: 48px;
    height: 28px;
    margin: 0;
    border-radius: 999px;
    background: #dbe5f0;
    border: 1px solid var(--border-strong);
    cursor: pointer;
    transition: background 0.25s;
}

.cookie-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(10, 42, 94, 0.35);
    transition: transform 0.25s var(--ease-out);
}

.cookie-switch:checked {
    background: var(--green);
}

.cookie-switch:checked::after {
    transform: translateX(20px);
}

/* 14. Motion ------------------------------------------------------------- */
/* Content is only hidden for the reveal when JavaScript runs (html.js). */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

.reveal-delay {
    transition-delay: 0.15s;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(185, 138, 34, 0.7); }
    80%, 100% { box-shadow: 0 0 0 12px rgba(185, 138, 34, 0); }
}

@keyframes dash-flow {
    to { stroke-dashoffset: -220; }
}

@keyframes route-travel {
    0% { stroke-dashoffset: 14; opacity: 0; }
    10% { opacity: 1; }
    70% { stroke-dashoffset: -100; opacity: 1; }
    80%, 100% { stroke-dashoffset: -100; opacity: 0; }
}

@keyframes hub-ring {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.6); opacity: 0; }
}

@keyframes glide {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(6px, -6px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes step-glow {
    0%, 30%, 100% { border-color: var(--border-strong); box-shadow: none; }
    10%, 20% { border-color: var(--green); box-shadow: 0 0 22px -6px rgba(23, 162, 74, 0.8); }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    /* Without motion, show the routes as complete lines instead of pulses. */
    .route-pulse {
        stroke-dasharray: none;
        stroke-width: 2;
        opacity: 0.6;
    }
}

/* 15. Responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
    .menu-toggle {
        display: block;
        order: 3;
    }

    .site-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem var(--space) 1.4rem;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-soft);
    }

    .menu-open .site-nav {
        display: flex;
    }

    .site-nav a {
        padding: 0.8rem 1rem;
        border-radius: var(--radius-sm);
    }

    .site-nav .nav-cta {
        margin: 0.4rem 0 0;
        text-align: center;
    }

    .site-nav .nav-jubilee {
        justify-content: center;
        margin: 0 0 0.4rem;
    }

    .features,
    .join-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .roadmap li::after {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero,
    .vision,
    .jubilee-hero,
    .jubilee-teaser,
    .proclamation-inner,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .jubilee-teaser .archive-photo {
        max-width: 460px;
        margin-inline: auto;
    }

    .proclamation-inner .archive-photo {
        max-width: 640px;
        margin-inline: auto;
    }

    /* The year shortcuts wrap here: a pill shape no longer suits them. */
    .frise-nav {
        border-radius: var(--radius);
    }

    /* The timeline runs down the left edge. */
    .frise::before {
        left: 28px;
    }

    .frise-step {
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 1rem;
    }

    .frise-marker {
        grid-column: 1;
    }

    .frise-step:nth-child(odd) .frise-card,
    .frise-step:nth-child(even) .frise-card {
        grid-column: 2;
    }

    .frise-step:nth-child(odd) .frise-card::before {
        left: -8px;
        right: auto;
        border: inherit;
        border-right: 0;
        border-top: 0;
    }

    .frise-step-jubilee .frise-marker {
        width: 56px;
        height: 56px;
        font-size: 1.15rem;
    }

    .hero {
        min-height: auto;
    }

    .scene {
        max-width: 520px;
        width: 100%;
        margin-inline: auto;
    }

    .medallion {
        max-width: 360px;
        margin-inline: auto;
    }
}

/* Wide screens: the steps interlock on both sides of the line. */
@media (min-width: 901px) {
    .frise-step + .frise-step {
        margin-top: -2.5rem;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 72px;
    }

    .brand-logo {
        height: 52px;
    }

    .features,
    .join-grid,
    .roadmap,
    .triad,
    .motto-list {
        grid-template-columns: 1fr;
    }

    .motto-list li {
        justify-content: flex-start;
    }

    .motto-list li + li {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-submit {
        justify-self: stretch;
    }

    .direct-card {
        gap: 0.8rem;
        padding: 1rem 1.1rem;
    }

    .direct-card .eyebrow {
        letter-spacing: 0.1em;
    }

    .direct-email {
        font-size: 1rem;
    }

    .countdown-units {
        gap: 0.4rem;
    }

    .countdown-unit {
        font-size: 0.66rem;
        letter-spacing: 0.06em;
    }

    .jubilee-link {
        border-radius: var(--radius-lg);
    }

    .frise-nav {
        gap: 0.2rem;
    }

    .frise-nav a {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .frise-card {
        padding: 1.1rem 1.1rem 1.15rem;
    }

    .phases-list {
        flex-direction: column;
    }

    .phases-list li {
        flex-direction: column;
    }

    .phases-list li + li::before {
        content: "↓";
        margin: 0 0 0.3rem;
    }
}
