:root {
    --primary: #2a5d67;
    --primary-dark: #1f454d;
    --secondary: #5e8f8a;
    --accent: #b8893a;
    --accent-text: #8c6a2c;
    --light: #eef5f3;
    --dark: #17343a;
    --white: #ffffff;
    --ink: #1b2b2e;
    --ink-muted: #4a5d60;
    --border: #dce6e4;

    --on-dark-muted: #bfd6d3;
    --on-dark-accent: #e3b36c;

    --font-head: "Sora", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;

    --container: 1180px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(23, 52, 58, 0.06), 0 1px 3px rgba(23, 52, 58, 0.08);
    --shadow-md: 0 8px 24px rgba(23, 52, 58, 0.1);
    --shadow-lg: 0 20px 48px rgba(23, 52, 58, 0.16);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 180ms;
    --dur-med: 420ms;

    /* How long the crossfade itself takes between hero slides. The per-slide
       dwell time (how long each image is shown) is set in js/main.js. */
    --hero-fade-duration: 1400ms;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    color: var(--dark);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.15rem, 3.2vw + 1.2rem, 3.4rem);
    letter-spacing: -0.02em;
}
h1 span {
    text-wrap: nowrap;
}
h2 {
    font-size: clamp(1.7rem, 1.6vw + 1.2rem, 2.3rem);
    letter-spacing: -0.01em;
}
h3 {
    font-size: 1.15rem;
}

.trade-body h3 {
    line-height: 1.38;
}

p {
    margin: 0 0 1em;
    color: var(--ink-muted);
}

a {
    color: var(--primary);
}
img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow {
    max-width: 820px;
}

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

.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-sm);
    z-index: 100;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus {
    width: auto;
    height: auto;
    padding: 12px 18px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    top: 12px;
    left: 12px;
}

:focus-visible {
    outline: 2.5px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition:
        transform var(--dur-fast) var(--ease),
        box-shadow var(--dur-fast) var(--ease),
        background-color var(--dur-fast) var(--ease),
        border-color var(--dur-fast) var(--ease);
    white-space: nowrap;
}
.btn-icon {
    width: 16px;
    height: 16px;
    transition: transform var(--dur-fast) var(--ease);
}
.btn:hover .btn-icon {
    transform: translate(2px, -2px);
}
.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 0.9rem;
}
.btn-lg {
    padding: 14px 26px;
    font-size: 1rem;
    min-height: 48px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

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

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition:
        border-color var(--dur-fast) var(--ease),
        box-shadow var(--dur-fast) var(--ease);
}
.site-header.is-scrolled {
    border-color: var(--border);
    box-shadow: 0 2px 16px rgba(23, 52, 58, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto;
}
.brand-logo {
    display: block;
    height: 26px;
    width: auto;
    color: var(--primary);
    transition: color var(--dur-fast) var(--ease);
}
.brand:hover .brand-logo {
    color: var(--primary-dark);
}
.brand-logo-img {
    width: 100px;
    height: auto;
    margin: 10px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transition: right var(--dur-med) var(--ease);
}
.site-nav a:hover::after {
    right: 0;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    cursor: pointer;
}
.nav-toggle-bars {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 16px;
    flex-shrink: 0;
}
.nav-toggle-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
        transform var(--dur-med) var(--ease),
        opacity var(--dur-fast) var(--ease),
        top var(--dur-med) var(--ease);
}
.nav-toggle-bars span:nth-child(1) {
    top: 0;
}
.nav-toggle-bars span:nth-child(2) {
    top: 7px;
}
.nav-toggle-bars span:nth-child(3) {
    top: 14px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}
@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
    .nav-toggle-bars span {
        transition: none;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 140px 0 150px;
    background: linear-gradient(165deg, var(--dark) 0%, var(--primary-dark) 55%, var(--primary) 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-slideshow {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0;
    transition: opacity var(--hero-fade-duration, 1400ms) ease-in-out;
}
.hero-slide.is-active {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
    .hero-slide {
        transition: none;
    }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        165deg,
        rgba(23, 52, 58, 0.94) 0%,
        rgba(31, 69, 77, 0.92) 55%,
        rgba(42, 93, 103, 0.86) 100%
    );
}
/* Neutral, minimal scrim for the photo-only hero: just enough contrast behind the
   text for legibility, without washing the photo in a brand colour. */
.hero-overlay.hero-overlay--photo {
    background: radial-gradient(
        ellipse 620px 420px at center,
        rgba(6, 14, 16, 0.58) 0%,
        rgba(6, 14, 16, 0.32) 45%,
        rgba(6, 14, 16, 0.08) 75%,
        rgba(6, 14, 16, 0) 100%
    );
}
.hero-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--white);
    opacity: 0.05;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.35;
}
.blob-1 {
    width: 420px;
    height: 420px;
    background: var(--secondary);
    top: -140px;
    right: -80px;
    opacity: 0.45;
    animation: float-a 16s ease-in-out infinite;
}
.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -100px;
    right: 220px;
    opacity: 0.3;
    animation: float-b 18s ease-in-out infinite;
}
.blob-3 {
    width: 320px;
    height: 320px;
    background: var(--secondary);
    top: 100px;
    left: -120px;
    opacity: 0.22;
    animation: float-a 20s ease-in-out infinite reverse;
}

@keyframes float-a {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(24px, 30px) scale(1.06);
    }
}
@keyframes float-b {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20px, -24px) scale(1.08);
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 14px;
}

.hero .eyebrow {
    color: var(--on-dark-accent);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.hero h1 {
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}
.hero-lead {
    font-size: 1.15rem;
    max-width: 46ch;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
    color: var(--on-dark-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 32px 0 0;
}

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

/* ---------- Sections ---------- */
.section {
    padding: 96px 0;
}
.section-alt {
    background: var(--light);
}
.section-dark {
    background: var(--dark);
    color: var(--on-dark-muted);
}
.section-dark h2 {
    color: var(--white);
}
.section-dark .eyebrow {
    color: var(--on-dark-accent);
}
.section-dark p {
    color: var(--on-dark-muted);
}
.section-dark .text-link {
    color: var(--on-dark-accent);
}

.section-head {
    max-width: 640px;
    margin: 0 auto 52px;
    text-align: center;
}
.section-head .eyebrow {
    display: block;
}
.section-lead {
    font-size: 1.05rem;
}

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

.trade-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition:
        transform var(--dur-med) var(--ease),
        box-shadow var(--dur-med) var(--ease),
        border-color var(--dur-med) var(--ease);
}
/*
.trade-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}
	*/
.trade-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--light);
}
.trade-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-med) var(--ease);
}
/*
.trade-card:hover .trade-media img {
    transform: scale(1.05);
}
	*/
.trade-icon {
    position: absolute;
    left: 20px;
    bottom: -20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transition: background-color var(--dur-med) var(--ease);
}
.trade-icon svg {
    width: 28px;
    height: 28px;
}
.trade-card:hover .trade-icon {
    background: var(--primary-dark);
}
.trade-body {
    padding: 40px 28px 28px;
}
.trade-body p {
    margin-bottom: 0;
}

/* ---------- News ---------- */
.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition:
        transform var(--dur-med) var(--ease),
        box-shadow var(--dur-med) var(--ease),
        border-color var(--dur-med) var(--ease);
}
.news-card:hover,
.news-card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}
.news-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--light);
}
.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-med) var(--ease);
}
.news-card:hover .news-media img,
.news-card:focus-within .news-media img {
    transform: scale(1.05);
}
.news-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 24px 26px 26px;
}
.news-meta {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--accent-text);
}
.news-title {
    margin: 0 0 10px;
}
.news-excerpt {
    margin: 0 0 20px;
    flex: 1;
}
.news-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary);
    cursor: pointer;
}
.news-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.news-card:hover .news-cta .btn-icon,
.news-card:focus-within .news-cta .btn-icon {
    transform: translate(2px, -2px);
}

/* ---------- Brands ---------- */
.brand-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.brand-grid li {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    padding: 24px;
}
.brand-grid img {
    max-width: 70%;
    /*max-height: 32px;*/
    width: auto;
    height: auto;
    /*filter: grayscale(1) opacity(0.55);
    transition:
        filter var(--dur-med) var(--ease),
        transform var(--dur-med) var(--ease);*/
}
/*
.brand-grid li:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.06);
}*/

/* ---------- About ---------- */
.about-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}
.about-layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.about-intro p {
    max-width: none;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.about-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 32px 28px;
}
.about-block h3 {
    color: var(--white);
    margin: 0 0 12px;
}
.about-block p {
    margin: 0 0 12px;
}
.about-block p:last-child {
    margin-bottom: 0;
}
.about-cta {
    align-self: flex-start;
}
.text-link {
    display: inline-block;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    color: var(--primary);
    transition: text-decoration-color var(--dur-fast) var(--ease);
}
.text-link:hover {
    text-decoration-color: currentColor;
}
button.text-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0;
}
.stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 26px 20px;
    text-align: center;
}
.stat dd {
    margin: 0;
}
.stat-number {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.1rem;
    color: var(--on-dark-accent);
    display: block;
}
.stat p {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--on-dark-muted);
}

/* ---------- FAQ ---------- */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.accordion-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.accordion-item h3 {
    margin: 0;
    font-size: 1rem;
}
.accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}
.chev {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    flex-shrink: 0;
    transition: transform var(--dur-med) var(--ease);
}
.accordion-trigger[aria-expanded="true"] .chev {
    transform: rotate(180deg);
}

.accordion-panel {
    padding: 0 22px 20px;
    color: var(--ink-muted);
}
.accordion-panel p {
    margin: 0;
}

/* ---------- Apply form ---------- */
.apply-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
    margin-bottom: 30px;
}
.field-wide {
    grid-column: 1 / -1;
}

.form-divider {
    grid-column: 1 / -1;
    height: 1px;
    border: none;
    background: var(--secondary);
    opacity: 0.4;
    margin: 14px 0 4px;
}

.field {
    display: flex;
    flex-direction: column;
}
.field legend {
    padding: 0;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}
.field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 7px;
}
.optional {
    font-weight: 400;
    color: var(--ink-muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="password"],
.field select,
.field textarea {
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--ink);
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition:
        border-color var(--dur-fast) var(--ease),
        box-shadow var(--dur-fast) var(--ease);
}
.field textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-body);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--secondary);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(42, 93, 103, 0.12);
}

/* Browser/password-manager autofill (very common on a login field) paints
   its own background over ours regardless of normal specificity - this is
   the standard override so an autofilled field still matches. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    -webkit-box-shadow: 0 0 0px 1000px var(--white) inset;
    box-shadow: 0 0 0px 1000px var(--white) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.field-error {
    display: none;
    font-size: 0.82rem;
    color: #a3402d;
    margin-top: 6px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: #a3402d;
}
.field.has-error .field-error,
fieldset.has-error .field-error {
    display: block;
}
fieldset.field {
    border: none;
    padding: 0;
    margin: 0;
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink);
    cursor: pointer;
}
.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.btn-submit {
    width: 100%;
}

.form-status {
    margin: 18px 0 0;
    text-align: center;
    font-weight: 600;
    min-height: 1.4em;
}
.form-status.is-success {
    color: var(--primary);
}
.form-status.is-error {
    color: #a3402d;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.72);
    padding: 64px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-logo-footer {
    height: 30px;
    color: var(--white);
    margin-bottom: 14px;
}
.footer-tagline {
    margin-top: 15px;
    font-size: 0.9rem;
    max-width: 32ch;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav ul,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav li {
    margin-bottom: 12px;
}
.footer-nav a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.94rem;
}
.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--white);
}
.footer-contact p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.94rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 22px 0;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-legal ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}
.footer-legal-link {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition:
        color var(--dur-fast) var(--ease),
        text-decoration-color var(--dur-fast) var(--ease);
}
.footer-legal-link:hover,
.footer-legal-link:focus-visible {
    color: var(--white);
    text-decoration-color: currentColor;
}

/* ---------- Legal modal ---------- */
body.modal-open {
    overflow: hidden;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 32, 36, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--dur-med) var(--ease),
        visibility 0s linear var(--dur-med);
}
.modal-overlay[hidden] {
    display: flex;
}
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--dur-med) var(--ease);
}
.modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 760px;
    max-height: 85vh;
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(18px) scale(0.98);
    transition: transform var(--dur-med) var(--ease);
}
.modal-overlay.is-open .modal {
    transform: translateY(0) scale(1);
}
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.modal-head h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--dark);
}
.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    transition:
        background-color var(--dur-fast) var(--ease),
        border-color var(--dur-fast) var(--ease),
        color var(--dur-fast) var(--ease);
}
.modal-close:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
}
.modal-close svg {
    width: 18px;
    height: 18px;
}
.modal-body {
    padding: 26px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal-updated {
    margin: 0 0 20px;
    font-size: 0.85rem;
    color: var(--ink-muted);
}
.modal-body h3 {
    margin: 28px 0 10px;
    font-size: 1.05rem;
    color: var(--dark);
}
.modal-body h3:first-of-type {
    margin-top: 0;
}
.modal-body h4 {
    margin: 20px 0 8px;
    font-size: 0.95rem;
    color: var(--dark);
}
.modal-body p {
    margin: 0 0 14px;
    color: var(--ink-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}
.modal-body ul {
    margin: 0 0 14px;
    padding-left: 20px;
    color: var(--ink-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}
.modal-body li {
    margin-bottom: 8px;
}
.modal-body li strong {
    color: var(--ink);
}
.modal-body iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: var(--radius-sm);
    margin: 0 0 20px;
}

@media (max-width: 640px) {
    .modal-overlay {
        padding: 16px;
    }
    .modal {
        max-height: 90vh;
    }
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity var(--dur-med) var(--ease),
        transform var(--dur-med) var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* The hero is the only section that still fades in on scroll-reveal (every
   other section reveals immediately now) — give it a longer, later entrance
   to suit being the first thing a visitor sees. */
.hero-copy.reveal {
    transition-duration: 900ms;
    transition-delay: 300ms;
}

/* Reduced motion is only honoured below the mobile breakpoint — desktop
   visitors always get the full animation set regardless of their OS
   setting, per a deliberate choice for this site. */
@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .blob {
        animation: none !important;
    }
    * {
        scroll-behavior: auto !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .site-nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--dur-med) var(--ease);
    }
    .site-nav.is-open {
        max-height: 360px;
        box-shadow: var(--shadow-md);
    }
    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 20px;
    }
    .site-nav li {
        border-top: 1px solid var(--border);
    }
    .site-nav a {
        display: block;
        padding: 14px 0;
    }
    .site-nav a::after {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .header-actions .btn-sm {
        display: none;
    }
    .brand-logo-img {
        width: 72px;
        margin: 8px 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .apply-form {
        padding: 28px 22px;
    }
    .section {
        padding: 72px 0;
    }
    .hero {
        padding: 56px 0 72px;
    }
}
