/* ============================================================
   Poseidon Duikschool Leuven — flashy redesign
   ============================================================ */

:root {
    --abyss: #030814;
    --deep: #071324;
    --deep-2: #0a1d38;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.1);
    --border: rgba(120, 200, 255, 0.18);
    --text: #eaf6ff;
    --muted: #9fc2de;
    --cyan: #22d3ee;
    --aqua: #38bdf8;
    --teal: #2dd4bf;
    --violet: #6366f1;
    --coral: #ff7a59;
    --gold: #ffd166;
    --grad-brand: linear-gradient(120deg, #22d3ee 0%, #38bdf8 40%, #6366f1 100%);
    --grad-warm: linear-gradient(120deg, #ff7a59 0%, #ffd166 100%);
    --shadow: 0 24px 60px -20px rgba(2, 12, 30, 0.8);
    --radius: 20px;
    --nav-h: 76px;
    --maxw: 1180px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display: "Sora", "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--abyss);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Fixed ocean backdrop */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1200px 700px at 80% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
        radial-gradient(900px 600px at 0% 20%, rgba(99, 102, 241, 0.14), transparent 55%),
        radial-gradient(1000px 800px at 50% 120%, rgba(45, 212, 191, 0.12), transparent 60%),
        linear-gradient(180deg, #030814 0%, #05101f 40%, #030a16 100%);
}

/* Caustic light shimmer */
body::after {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.08), transparent 12%),
        radial-gradient(circle at 70% 60%, rgba(45, 212, 191, 0.07), transparent 14%),
        radial-gradient(circle at 40% 80%, rgba(99, 102, 241, 0.06), transparent 12%);
    animation: drift 26s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(2%, -3%, 0) scale(1.08); }
}

img { max-width: 100%; display: block; }
a { color: var(--aqua); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; font-weight: 700; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

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

/* ============================ Bubbles ============================ */
.bubbles { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bubble {
    position: absolute;
    bottom: -80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), rgba(56,189,248,.12) 60%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: rise linear infinite;
    opacity: 0;
}
@keyframes rise {
    0% { transform: translateY(0) scale(.6); opacity: 0; }
    10% { opacity: .8; }
    90% { opacity: .5; }
    100% { transform: translateY(-108vh) scale(1.1); opacity: 0; }
}

/* ============================ Navbar ============================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
    background: rgba(5, 14, 28, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.nav__brands { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: #fff; }
/* keep logos at their natural aspect ratio (147x80) */
.brand img { height: 44px; width: auto; filter: drop-shadow(0 4px 10px rgba(56,189,248,.5)); }
.brand span b { color: var(--cyan); }

/* divider + partner (federation) logos in the header */
.nav__brand-sep { width: 1px; height: 34px; background: var(--border); flex: none; }
.partner-logo { display: flex; align-items: center; }
.partner-logo img { height: 38px; width: auto; }
.cmas-logo img { height: 40px; }

.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links > li { position: relative; }
.nav__links a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-weight: 500;
    border-radius: 12px;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.nav__links a:hover, .nav__links li.active > a { background: var(--surface); color: #fff; }
.nav__links a.pill {
    background: var(--grad-brand);
    color: #04121f;
    font-weight: 700;
    box-shadow: 0 10px 24px -10px rgba(56, 189, 248, 0.7);
}
.nav__links a.pill:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* dropdown */
.dropdown > a::after { content: "▾"; margin-left: 6px; font-size: 1.6em; line-height: 1; opacity: .9; }
.dropdown__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 250px;
    background: rgba(9, 22, 40, 0.96);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    list-style: none;
    margin: 0; padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.dropdown:hover .dropdown__menu, .dropdown.open .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__menu a { padding: 10px 14px; border-radius: 10px; color: var(--muted); }
.dropdown__menu a:hover { color: #fff; background: var(--surface); }

.nav__toggle {
    display: none; background: none; border: 1px solid var(--border);
    color: #fff; width: 46px; height: 42px; border-radius: 12px; cursor: pointer;
    flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav__toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ Buttons ============================ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px; font-weight: 700; font-family: var(--display);
    cursor: pointer; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    font-size: 1rem;
}
.btn--primary { background: var(--grad-brand); color: #04121f; box-shadow: 0 14px 34px -12px rgba(56,189,248,.7); }
.btn--primary:hover { transform: translateY(-3px); color: #04121f; box-shadow: 0 22px 44px -14px rgba(56,189,248,.85); }
.btn--warm { background: var(--grad-warm); color: #2a1200; box-shadow: 0 14px 34px -12px rgba(255,122,89,.6); }
.btn--warm:hover { transform: translateY(-3px); color: #2a1200; }
.btn--ghost { background: var(--surface); color: #fff; border-color: var(--border); backdrop-filter: blur(8px); }
.btn--ghost:hover { transform: translateY(-3px); background: var(--surface-strong); color: #fff; }
.btn--block { width: 100%; justify-content: center; }

/* ============================ Hero ============================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 8s ease;
}
.hero__slide.active { opacity: 1; transform: scale(1); }
.hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(3,8,20,.55) 0%, rgba(3,8,20,.7) 55%, rgba(3,8,20,.96) 100%);
}
.hero__inner { width: min(100% - 40px, var(--maxw)); margin-inline: auto; padding: 60px 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--cyan); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.7); } }

.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: 22px 0 12px; letter-spacing: -0.02em; }
.hero-tagline { font-family: var(--display); font-size: clamp(1.7rem, 4.2vw, 2.85rem); font-weight: 700; color: var(--text); margin: 0 0 20px; letter-spacing: -0.02em; line-height: 1.2; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--muted); max-width: 620px; margin: 0 0 34px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__lang { position: absolute; top: calc(var(--nav-h) + 20px); right: 20px; }

.scroll-cue {
    position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
    color: var(--muted); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; z-index: 80; pointer-events: none;
    opacity: 0; visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
}
.scroll-cue.show { opacity: .8; visibility: visible; pointer-events: auto; }
.scroll-cue.show:hover { opacity: 1; }
.scroll-cue .mouse { width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--cyan); border-radius: 2px; transform: translateX(-50%); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 22px; } }

/* ============================ Page header (inner pages) ============================ */
.page-hero { padding: calc(var(--nav-h) + 70px) 0 50px; position: relative; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 14px; }
.page-hero p { color: var(--muted); max-width: 720px; font-size: 1.1rem; margin: 0; }

/* ============================ Sections ============================ */
section { position: relative; }
.section { padding: 70px 0; }
.section--tight { padding: 40px 0; }
.section-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* glass card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(10px);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(56,189,248,.5); box-shadow: var(--shadow); }
.card .ic {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.6rem; margin-bottom: 18px; background: var(--grad-brand); color: #04121f;
}
.card h3 { margin: 0 0 10px; font-size: 1.3rem; }
.card p { color: var(--muted); margin: 0; }

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

/* prose blocks */
.prose { font-size: 1.05rem; }
.prose p { color: #cfe4f4; }
.prose h2 { font-size: 1.7rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.3rem; margin: 30px 0 10px; color: #fff; }
.prose ul { padding-left: 22px; color: #cfe4f4; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--cyan); }
.prose img { border-radius: 16px; box-shadow: var(--shadow); margin: 8px 0; }

.panel {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; backdrop-filter: blur(10px);
}
.panel--brand { background: linear-gradient(135deg, rgba(56,189,248,.16), rgba(99,102,241,.14)); border-color: rgba(56,189,248,.4); }

.media-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #04101d; }
.media-frame video, .media-frame iframe { width: 100%; display: block; aspect-ratio: 16/9; border: 0; }

.figure-round { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ============================ Stats ============================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(10px); }
.stat .num { font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted); margin-top: 10px; font-size: .95rem; }

/* ============================ CTA band ============================ */
.cta {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(99,102,241,.16));
    border: 1px solid var(--border); border-radius: 28px; padding: 54px; text-align: center;
    box-shadow: var(--shadow);
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 14px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================ Accordion (FAQ) ============================ */
.accordion { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color .2s ease; }
.acc-item.open { border-color: rgba(56,189,248,.5); }
.acc-q {
    width: 100%; text-align: left; background: none; border: 0; color: #fff; cursor: pointer;
    padding: 20px 22px; font-family: var(--display); font-weight: 600; font-size: 1.05rem;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc-q .plus { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-strong); display: grid; place-items: center; transition: transform .3s ease, background .3s ease; }
.acc-item.open .acc-q .plus { transform: rotate(45deg); background: var(--grad-brand); color: #04121f; }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-a__inner { padding: 0 22px 20px; color: var(--muted); }

/* ============================ Tables ============================ */
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(10px); -webkit-overflow-scrolling: touch; }

/* Horizontal-scroll affordance for wide tables on small screens */
.table-scroll { position: relative; min-width: 0; }
.table-scroll::before, .table-scroll::after {
    content: ""; position: absolute; top: 1px; bottom: 1px; width: 44px; z-index: 2;
    pointer-events: none; opacity: 0; transition: opacity .25s ease;
}
.table-scroll::before { left: 1px; border-radius: 18px 0 0 18px; background: linear-gradient(to right, rgba(3,8,20,.92), rgba(3,8,20,0)); }
.table-scroll::after { right: 1px; border-radius: 0 18px 18px 0; background: linear-gradient(to left, rgba(3,8,20,.92), rgba(3,8,20,0)); }
.table-scroll.is-scrollable:not(.at-start)::before { opacity: 1; }
.table-scroll.is-scrollable:not(.at-end)::after { opacity: 1; }
.table-scroll__hint {
    position: absolute; right: 12px; bottom: 12px; z-index: 3; pointer-events: none;
    display: none; align-items: center; gap: 7px;
    background: rgba(56,189,248,.18); border: 1px solid var(--border); color: #fff;
    font-size: .8rem; font-weight: 600; padding: 7px 13px; border-radius: 999px;
    backdrop-filter: blur(6px); box-shadow: 0 6px 20px -8px rgba(2,12,30,.8);
}
.table-scroll.is-scrollable:not(.at-end) .table-scroll__hint { display: inline-flex; }
.table-scroll__arrow { display: inline-block; animation: table-nudge 1.2s ease-in-out infinite; }
@keyframes table-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .table-scroll__arrow { animation: none; } }
table.pricing { width: 100%; border-collapse: collapse; min-width: 640px; }
table.pricing th, table.pricing td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.pricing thead th { background: rgba(56,189,248,.12); color: #fff; font-family: var(--display); font-weight: 600; }
table.pricing tbody tr:hover { background: rgba(255,255,255,.04); }
table.pricing td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.pricing th.num { text-align: right; }
table.pricing td.num--total, table.pricing th.num:last-child { font-weight: 700; color: #fff; }
table.pricing tbody td:not(.num) { color: var(--muted); }
table.pricing th.col-div, table.pricing td.col-div { border-left: 2px solid rgba(120,200,255,.45); }

/* ===================== Lidgeld interactive picker ===================== */
body[data-page="lidgeld"] .page-hero { padding-bottom: 6px; }
body[data-page="lidgeld"] .section--tight { padding-top: 16px; }
.lidgeld-picker { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.lidgeld-sentence { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-family: var(--display); font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-weight: 600; color: var(--text); margin: 0; }
.lidgeld-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.lidgeld-verb { color: var(--muted); font-weight: 500; }
.lidgeld-select {
    appearance: none; -webkit-appearance: none;
    font: inherit; color: var(--text); font-weight: 600;
    background: rgba(56,189,248,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid var(--border); border-radius: 12px; padding: 10px 40px 10px 16px; cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}
.lidgeld-select:hover { border-color: var(--aqua); }
.lidgeld-select:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.lidgeld-select option { background: var(--deep); color: var(--text); }
.lidgeld-valid { margin: 16px 0 0; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.lidgeld-valid::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); flex: none; }

.lidgeld-content { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.lidgeld-note { color: var(--muted); margin: 4px 0; font-size: .98rem; }
.lidgeld-subhead { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--text); margin: 10px 0 2px; }
.lidgeld-benefits { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 22px 26px; }
.lidgeld-benefits h3 { font-family: var(--display); margin: 0 0 12px; font-size: 1.15rem; }
.lidgeld-benefits ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lidgeld-benefits li { position: relative; padding-left: 26px; color: var(--muted); }
.lidgeld-benefits li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

/* contact info list */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-strong); color: var(--cyan); font-size: 1.1rem; border: 1px solid var(--border); }
.info-list strong { color: #fff; display: block; }
.info-list span { color: var(--muted); }

/* ============================ Organogram ============================ */
.org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; position: relative; }
.org-grid::before { content: ""; position: absolute; top: 34px; left: calc(50% - 20px); width: 40px; height: 2px; background: var(--border); }

.org-head {
    position: relative; text-align: center; font-family: var(--display); font-weight: 700;
    font-size: 1.1rem; letter-spacing: .01em; padding: 18px 20px; border-radius: 16px;
    color: #04121f; background: var(--grad-brand); box-shadow: 0 16px 36px -16px rgba(56, 189, 248, 0.6);
}
.org-head small { display: block; font-weight: 600; font-size: .78rem; opacity: .8; margin-top: 2px; }
.org-head::after { content: ""; position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); width: 2px; height: 22px; background: var(--border); }

.org-people { display: grid; gap: 14px; margin-top: 22px; }

.person-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--cyan);
    border-radius: 14px; padding: 14px 18px; backdrop-filter: blur(10px);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.person-card:hover { transform: translateX(5px); border-color: rgba(56, 189, 248, 0.6); box-shadow: var(--shadow); }
.person-card .avatar {
    flex: none; width: 52px; height: 52px; border-radius: 50%;
    background: var(--surface-strong); border: 1px solid var(--border);
    display: grid; place-items: center; color: var(--aqua);
}
.person-card .avatar svg { width: 28px; height: 28px; }
.person-card__info { display: flex; flex-direction: column; min-width: 0; }
.person-card .role { color: var(--cyan); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.person-card .name { color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.08rem; }

.org-node-wide {
    text-align: center; padding: 24px 22px; border-radius: 16px; margin-top: 14px;
    background: var(--grad-warm); color: #2a1200; font-family: var(--display); font-weight: 700;
    letter-spacing: .02em; box-shadow: 0 16px 36px -16px rgba(255, 122, 89, 0.5); position: relative;
}
.org-node-wide::before { content: ""; position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 2px; height: 22px; background: var(--border); }

@media (max-width: 900px) {
    .org-grid { grid-template-columns: 1fr; gap: 46px; }
    .org-grid::before { display: none; }
}

/* ============================ Footer ============================ */
.footer { border-top: 1px solid var(--border); background: rgba(3, 10, 22, 0.6); margin-top: 40px; }
.footer__inner { padding: 50px 0 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--muted); margin: 0 0 8px; }
.footer h4 { font-size: 1rem; margin: 0 0 16px; color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--cyan); }
.footer__bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* ============================ Modal ============================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2, 8, 18, 0.7); backdrop-filter: blur(6px); }
.modal__box {
    position: relative; max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto;
    background: rgba(9, 22, 40, 0.98); border: 1px solid var(--border); border-radius: 22px;
    padding: 34px; box-shadow: var(--shadow); animation: pop .35s ease;
}
@keyframes pop { from { transform: translateY(20px) scale(.96); opacity: 0; } }
.modal__box h3 { margin-top: 0; }
.modal__box p { color: var(--muted); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: #fff; font-size: 1.3rem; cursor: pointer; }
.modal__close:hover { background: var(--surface-strong); }

/* back to top */
.to-top { position: fixed; bottom: 24px; right: 24px; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border); background: rgba(9,22,40,.85); color: #fff; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; z-index: 90; backdrop-filter: blur(8px); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--grad-brand); color: #04121f; }

/* ============================ Reveal animation ============================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ============================ Responsive ============================ */
@media (max-width: 900px) {
    .nav__toggle { display: flex; }
    .nav__links {
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: rgba(5, 14, 28, 0.98); backdrop-filter: blur(18px);
        padding: 16px; border-bottom: 1px solid var(--border);
        transform: translateY(-16px);
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
        max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
    }
    .nav.open .nav__links { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
    .dropdown__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding: 4px 0 4px 12px; display: none; }
    .dropdown.open .dropdown__menu { display: block; }
    .dropdown > a::after { float: right; }
    .grid-3, .grid-2, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr; }
    .cta { padding: 40px 24px; }
    .hero__lang { position: static; margin-bottom: 20px; }
}

@media (max-width: 620px) {
    /* keep both logos visible next to the hamburger by dropping the wordmark */
    .brand span { display: none; }
    .nav__brands { gap: 10px; }
    .brand img { height: 38px; }
    .partner-logo img { height: 30px; }
    .cmas-logo img { height: 32px; }
    .nav__brand-sep { height: 28px; }
}

@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}
