/* ============================================================
   SafeDrop — shared design system
   Extends the visual language of safedrop-project.eu
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --navy: #0d3b5c;
    --blue: #1a7bb9;
    --cyan: #38bdf8;
    --deep: #000814;
    --hero-mid: #0a4d8c;
    --navy-rgb: 13, 59, 92;
    --blue-rgb: 26, 123, 185;
    --cyan-rgb: 56, 189, 248;
}

/* ── Page colour themes ── */
body[data-page="use-cases"] {
    --navy: #0c4a44;
    --blue: #0d9488;
    --cyan: #5eead4;
    --deep: #042f2e;
    --hero-mid: #0f766e;
    --navy-rgb: 12, 74, 68;
    --blue-rgb: 13, 148, 136;
    --cyan-rgb: 94, 234, 212;
}

body[data-page="consortium"] {
    --navy: #581c87;
    --blue: #a855f7;
    --cyan: #d8b4fe;
    --deep: #2e1065;
    --hero-mid: #7e22ce;
    --navy-rgb: 88, 28, 135;
    --blue-rgb: 168, 85, 247;
    --cyan-rgb: 216, 180, 254;
}

/* News page — warm brown/amber content theme; nav keeps site navy via :root */
body[data-page="news"] {
    --news-brown: #4a3728;
    --news-amber: #c9892a;
    --news-gold: #e5b85c;
    --news-warm-50: #faf7f2;
    --news-warm-100: #f0e8dc;
    --news-amber-rgb: 201, 137, 42;
    --news-brown-rgb: 74, 55, 40;
}

body[data-page="news"] .text-\[\#1a7bb9\] {
    color: var(--news-amber) !important;
}

body[data-page="news"] .text-\[\#0d3b5c\] {
    color: var(--news-brown) !important;
}

body[data-page="news"] .text-\[\#38bdf8\] {
    color: var(--news-gold) !important;
}

body[data-page="news"] .border-\[\#1a7bb9\]\/20 {
    border-color: rgba(var(--news-amber-rgb), 0.22) !important;
}

body[data-page="news"] .border-\[\#1a7bb9\]\/30 {
    border-color: rgba(var(--news-amber-rgb), 0.32) !important;
}

body[data-page="news"] .hover\:border-\[\#1a7bb9\]:hover {
    border-color: var(--news-amber) !important;
}

body[data-page="news"] .hover\:text-\[\#0d3b5c\]:hover {
    color: var(--news-brown) !important;
}

body[data-page="news"] .bg-gradient-to-r.from-\[\#0d3b5c\].to-\[\#1a7bb9\] {
    background-image: linear-gradient(to right, var(--news-brown), var(--news-amber)) !important;
}

body[data-page="news"] .section-heading {
    background: linear-gradient(135deg, var(--news-brown) 0%, var(--news-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body[data-page="news"] .eyebrow {
    color: var(--news-amber);
}

body[data-page="news"] .tag-chip {
    background: rgba(var(--news-amber-rgb), 0.12);
    color: #a86818;
}

body[data-page="news"] section.bg-gray-50 {
    background-color: var(--news-warm-100) !important;
}

body[data-page="news"] .hub-tile:hover,
body[data-page="news"] .news-card:hover {
    border-color: var(--news-amber);
    box-shadow: 0 18px 36px rgba(var(--news-amber-rgb), 0.12);
}

body[data-page="news"] .resource-row:hover {
    border-color: var(--news-amber);
    background: rgba(var(--news-amber-rgb), 0.04);
}

body[data-page="news"] .news-thumb:not(.news-thumb--has-image) {
    background: linear-gradient(135deg, #0d3b5c 0%, #5c4033 52%, #c9892a 100%);
}

body[data-page="news"] .dark-section {
    background: linear-gradient(135deg, #0d3b5c 0%, #4a3728 48%, #a86818 100%);
}

body[data-page="news"] .dark-section::before {
    background: radial-gradient(circle, rgba(229, 184, 92, 0.14) 0%, transparent 70%);
}

body[data-page="news"] .vision-panel {
    background: linear-gradient(135deg, #0d3b5c 0%, #5c4033 50%, #c9892a 100%);
}

body[data-page="news"] .nav-link:hover,
body[data-page="news"] .nav-link.active {
    color: #0d3b5c;
}

body[data-page="news"] .nav-link:hover::after,
body[data-page="news"] .nav-link.active::after {
    background: #1a7bb9;
}

body[data-page="news"] .hub-tile,
body[data-page="news"] .news-card,
body[data-page="news"] .resource-row {
    border-color: #e8dfd3;
}

body[data-page="news"] .inline-block.bg-gray-50 {
    background-color: var(--news-warm-50) !important;
}

body[data-page="news"] .news-thumb--has-image::after {
    background: linear-gradient(180deg, rgba(13, 59, 92, 0.12) 0%, rgba(74, 55, 40, 0.28) 100%);
}

/* Remap hardcoded Tailwind accent utilities on themed pages */
body[data-page="use-cases"] .text-\[\#1a7bb9\],
body[data-page="consortium"] .text-\[\#1a7bb9\] {
    color: var(--blue) !important;
}

body[data-page="use-cases"] .text-\[\#0d3b5c\],
body[data-page="consortium"] .text-\[\#0d3b5c\] {
    color: var(--navy) !important;
}

body[data-page="use-cases"] .text-\[\#38bdf8\],
body[data-page="consortium"] .text-\[\#38bdf8\] {
    color: var(--cyan) !important;
}

body[data-page="use-cases"] .border-\[\#1a7bb9\]\/20,
body[data-page="consortium"] .border-\[\#1a7bb9\]\/20 {
    border-color: rgba(var(--blue-rgb), 0.2) !important;
}

body[data-page="use-cases"] .border-\[\#1a7bb9\]\/30,
body[data-page="consortium"] .border-\[\#1a7bb9\]\/30 {
    border-color: rgba(var(--blue-rgb), 0.3) !important;
}

body[data-page="use-cases"] .hover\:border-\[\#1a7bb9\]:hover,
body[data-page="consortium"] .hover\:border-\[\#1a7bb9\]:hover {
    border-color: var(--blue) !important;
}

body[data-page="use-cases"] .hover\:text-\[\#0d3b5c\]:hover,
body[data-page="consortium"] .hover\:text-\[\#0d3b5c\]:hover {
    color: var(--navy) !important;
}

body[data-page="use-cases"] .bg-gradient-to-r.from-\[\#0d3b5c\].to-\[\#1a7bb9\],
body[data-page="consortium"] .bg-gradient-to-r.from-\[\#0d3b5c\].to-\[\#1a7bb9\] {
    background-image: linear-gradient(to right, var(--navy), var(--blue)) !important;
}

html {
    scroll-behavior: smooth;
}

.tail-container * {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Keep Font Awesome icon fonts — the rule above would otherwise turn icons into empty squares */
.tail-container .fa,
.tail-container .fas,
.tail-container .far,
.tail-container .fal,
.tail-container .fab,
.tail-container .fa-solid,
.tail-container .fa-regular,
.tail-container .fa-light,
.tail-container .fa-brands,
.tail-container [class^="fa-"],
.tail-container [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.tail-container .fa-solid,
.tail-container .fas {
    font-weight: 900;
}

.tail-container .fa-brands,
.tail-container .fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

.logo-font {
    font-family: 'Space Grotesk', sans-serif;
}

.font-mono {
    font-family: 'Space Grotesk', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── Navbar ── */
#site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-nav {
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(13, 59, 92, 0.08);
}

.nav-link {
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--navy);
}

/* ── Page hero (inner pages) ── */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--deep) 0%, var(--navy) 55%, var(--hero-mid) 100%);
    min-height: 320px;
}

.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0, 8, 20, 0.9) 0%, rgba(var(--navy-rgb), 0.82) 48%, rgba(var(--blue-rgb), 0.62) 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 20%;
    width: 60%;
    height: 90%;
    background: radial-gradient(ellipse, rgba(var(--blue-rgb), 0.24) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.page-hero--technology .page-hero__overlay,
.page-hero--project .page-hero__overlay {
    background: linear-gradient(135deg, rgba(0, 8, 20, 0.9) 0%, rgba(13, 59, 92, 0.8) 48%, rgba(10, 77, 140, 0.74) 100%);
}

.page-hero--news .page-hero__overlay {
    background: linear-gradient(135deg, rgba(13, 59, 92, 0.88) 0%, rgba(74, 55, 40, 0.84) 42%, rgba(201, 137, 42, 0.76) 100%);
}

.page-hero--news::before {
    background: radial-gradient(ellipse, rgba(229, 184, 92, 0.2) 0%, transparent 70%);
}

.page-hero--use-cases .page-hero__overlay {
    background: linear-gradient(135deg, rgba(4, 47, 46, 0.92) 0%, rgba(12, 74, 68, 0.84) 45%, rgba(13, 148, 136, 0.68) 100%);
}

.page-hero--consortium .page-hero__overlay {
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.92) 0%, rgba(88, 28, 135, 0.84) 45%, rgba(168, 85, 247, 0.66) 100%);
}

.page-hero--technology .page-hero__media img { object-position: center 45%; }
.page-hero--use-cases .page-hero__media img { object-position: center 35%; }
.page-hero--project .page-hero__media img { object-position: center 40%; }
.page-hero--consortium .page-hero__media img { object-position: center 30%; }
.page-hero--news .page-hero__media img { object-position: center 55%; }

/* ── Home hero ── */
.hero-banner {
    width: 100%;
    line-height: 0;
    background: var(--deep);
}

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

.hero-media-frame {
    position: relative;
    width: 100%;
    line-height: 0;
}

.hero-animated {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.hero-still {
    display: none;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.hero-still.is-active {
    display: block;
}

.hero-curtain {
    position: absolute;
    inset: 0;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #000814 0%, #0d3b5c 100%);
    transition: opacity 0.4s ease-in;
}

.hero-curtain.is-covering {
    opacity: 1;
}

.hero-curtain.is-revealing {
    opacity: 0;
    transition: opacity 0.75s ease-out;
}

.hero-content-section {
    background: linear-gradient(135deg, var(--deep) 0%, var(--navy) 55%, #0a4d8c 100%);
    position: relative;
    overflow: hidden;
}

.hero-content-section::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(26, 123, 185, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge { animation: fadeUp 0.8s ease both; }
.hero-title { animation: fadeUp 0.8s 0.1s ease both; }
.hero-subtitle { animation: fadeUp 0.8s 0.2s ease both; }
.hero-tags { animation: fadeUp 0.8s 0.3s ease both; }
.hero-cta { animation: fadeUp 0.8s 0.4s ease both; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tag-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

/* ── Buttons ── */
.btn-primary {
    background: white;
    color: var(--navy);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.btn-solid {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(26, 123, 185, 0.3);
}

.btn-ghost {
    border: 2px solid var(--blue);
    color: var(--navy);
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(26, 123, 185, 0.08);
    transform: translateY(-2px);
}

.stat-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
}

/* ── Sections ── */
.section-label {
    letter-spacing: 0.15em;
}

.section-heading {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(13, 59, 92, 0.1);
}

/* ── Use-case cards ── */
.use-case-card {
    position: relative;
    min-height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.use-case-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.use-case-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 8, 20, 0.94) 0%, rgba(0, 8, 20, 0.58) 48%, rgba(0, 8, 20, 0.18) 100%);
    transition: background 0.3s ease;
}

.use-case-card__body {
    position: relative;
    z-index: 2;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.use-case-card__body h4 {
    color: #fff;
}

.use-case-card__body p {
    color: rgba(255, 255, 255, 0.82);
}

.use-case-card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(26, 123, 185, 0.22);
}

.use-case-card:hover .use-case-card__media img {
    transform: scale(1.06);
}

.use-case-card:hover .use-case-card__overlay {
    background: linear-gradient(to top, rgba(0, 8, 20, 0.96) 0%, rgba(0, 8, 20, 0.62) 48%, rgba(0, 8, 20, 0.22) 100%);
}

.use-case-card .use-case-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.use-case-card--compact {
    min-height: 220px;
}

.use-case-card--compact .use-case-card__body {
    min-height: 220px;
}

.use-case-card--compact .use-case-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.use-case-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.12) 0%, rgba(var(--navy-rgb), 0.08) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision-panel {
    background: linear-gradient(135deg, var(--navy) 0%, var(--hero-mid) 50%, var(--blue) 100%);
    position: relative;
    overflow: hidden;
}

.use-case-media-panel {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.use-case-media-panel__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.use-case-media-panel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.use-case-media-panel__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0, 8, 20, 0.72) 0%, rgba(13, 59, 92, 0.58) 52%, rgba(26, 123, 185, 0.42) 100%);
}

.use-case-media-panel__content {
    position: relative;
    z-index: 2;
}

.vision-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Technology cards ── */
.tech-card {
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tech-card:hover::before {
    transform: scaleX(1);
}

.tech-card--expandable {
    align-self: start;
    overflow: visible;
}

.tech-card--expandable [data-expand-detail] {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.tech-card--expandable.open [data-expand-detail] {
    opacity: 1;
    margin-top: 1rem;
}

.tech-card--expandable [data-expand-detail] p,
.tech-card--expandable [data-expand-detail] ul {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #4b5563;
}

.tech-card--expandable [data-expand-detail] p + p {
    margin-top: 0.85rem;
}

.tech-card--expandable [data-expand-detail] ul {
    margin-top: 0.65rem;
    padding-left: 1.1rem;
    list-style: disc;
}

.tech-card--expandable [data-expand-detail] li + li {
    margin-top: 0.45rem;
}

.wp-card--expandable {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.wp-card--expandable.open {
    border-color: var(--blue);
    box-shadow: 0 16px 32px rgba(13, 59, 92, 0.1);
}

.wp-card--expandable [data-expand-detail] {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid transparent;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease, border-color 0.3s ease;
}

.wp-card--expandable.open [data-expand-detail] {
    opacity: 1;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top-color: #e5e7eb;
}

.wp-card--expandable [data-expand-detail] p + p {
    margin-top: 0.85rem;
}

.wp-card--expandable [data-expand-detail] ul {
    margin-top: 0.65rem;
    padding-left: 1.1rem;
    list-style: disc;
}

.wp-card--expandable [data-expand-detail] li + li {
    margin-top: 0.45rem;
}

.card-expand-toggle {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.card-expand-toggle:hover {
    color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
    .tech-card--expandable [data-expand-detail],
    .wp-card--expandable [data-expand-detail] {
        transition: none;
    }
}

.tech-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(26, 123, 185, 0.12);
    position: absolute;
    top: 1rem;
    right: 1.25rem;
}

/* ── How it works flow ── */
.flow-step {
    position: relative;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 16px 32px rgba(26, 123, 185, 0.12);
}

.flow-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

.flow-arrow {
    color: var(--blue);
    opacity: 0.5;
}

.flow-diagram {
    margin: 0;
    display: flex;
    justify-content: center;
}

.flow-diagram__img {
    display: block;
    width: 80%;
    height: auto;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
}

/* ── Targets / stats ── */
.target-card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.target-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(13, 59, 92, 0.1);
}

.geo-card__flag {
    display: block;
    width: 3rem;
    height: 2rem;
    margin-inline: auto;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(13, 59, 92, 0.12);
}

.target-value {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-target {
    background: rgba(var(--blue-rgb), 0.1);
    color: var(--blue);
}

/* ── Roadmap / timeline ── */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--blue), rgba(26, 123, 185, 0.15));
}

.timeline-item {
    position: relative;
    padding-left: 3.5rem;
}

.timeline-dot {
    position: absolute;
    left: 8px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--blue);
    z-index: 1;
}

.timeline-dot.done {
    background: var(--blue);
}

/* ── Work package cards ── */
.wp-card {
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.wp-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 16px 32px rgba(26, 123, 185, 0.12);
}

.wp-tag {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: white;
    border-radius: 0.75rem;
}

/* ── Partners ── */
.partner-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.partner-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem 2rem;
    align-items: start;
}

.partner-card--link {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
}

.partner-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.partner-card__tagline {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue);
    line-height: 1.45;
}

.partner-card__visit {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.2s ease;
}

.partner-card--link:hover .partner-card__visit {
    color: var(--blue);
}

.partner-row__text p {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.7;
}

.partner-card__wp {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.65;
}

@media (min-width: 1024px) {
    .partner-row {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    }
}

.partner-card--link:hover,
.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(13, 59, 92, 0.1);
    border-color: rgba(26, 123, 185, 0.3);
}

.partner-logo-wrap {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.partner-logo-wrap img {
    max-height: 56px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-card:hover .partner-logo-wrap img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ── News / resources cards ── */
.news-card {
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 18px 36px rgba(26, 123, 185, 0.12);
}

.news-thumb {
    height: 180px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--hero-mid) 60%, var(--blue) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
}

.news-thumb::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.25) 0%, transparent 70%);
    z-index: 1;
}

.news-thumb--has-image::after {
    inset: 0;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 59, 92, 0.15) 0%, rgba(13, 59, 92, 0.35) 100%);
}

.news-thumb__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.tag-chip {
    background: rgba(var(--blue-rgb), 0.1);
    color: var(--blue);
}

.resource-row {
    border: 1px solid #e5e7eb;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.resource-row:hover {
    border-color: var(--blue);
    background: rgba(26, 123, 185, 0.03);
    transform: translateX(4px);
}

.resource-row--link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.deliverables-table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
}

body[data-page="news"] .deliverables-table-wrap {
    border-color: #e8dfd3;
}

.deliverables-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
    font-size: 0.875rem;
    line-height: 1.5;
}

.deliverables-table th,
.deliverables-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
}

body[data-page="news"] .deliverables-table th,
body[data-page="news"] .deliverables-table td {
    border-bottom-color: #e8dfd3;
}

.deliverables-table thead th {
    background: #f9fafb;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
}

body[data-page="news"] .deliverables-table thead th {
    background: #faf7f2;
    color: var(--news-brown);
}

.deliverables-table tbody tr:last-child td {
    border-bottom: none;
}

.deliverables-table td {
    color: #374151;
}

body[data-page="news"] .deliverables-table td {
    color: #4b5563;
}

.media-kit-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 1rem 0 1.5rem;
}

.media-kit-list__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body[data-page="news"] .media-kit-list__item {
    border-color: #e8dfd3;
    background: #faf7f2;
}

.media-kit-list__item:hover {
    border-color: var(--blue);
    background: rgba(var(--blue-rgb), 0.04);
    transform: translateX(4px);
}

body[data-page="news"] .media-kit-list__item:hover {
    border-color: var(--news-amber);
    background: rgba(var(--news-amber-rgb), 0.06);
}

.media-kit-list__preview {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8.5rem;
    height: 3.5rem;
    padding: 0.4rem;
    box-sizing: border-box;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
}

body[data-page="news"] .media-kit-list__preview {
    border-color: #e8dfd3;
}

.media-kit-list__preview img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-kit-list__preview--pdf {
    background: rgba(var(--blue-rgb), 0.08);
    color: var(--blue);
    font-size: 1.35rem;
}

body[data-page="news"] .media-kit-list__preview--pdf {
    background: rgba(var(--news-amber-rgb), 0.12);
    color: var(--news-amber);
}

.media-kit-list__info {
    flex: 1;
    min-width: 0;
}

.media-kit-list__info strong {
    display: block;
    font-size: 0.875rem;
    color: var(--navy);
}

body[data-page="news"] .media-kit-list__info strong {
    color: var(--news-brown);
}

.media-kit-list__info span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.media-kit-list__action {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue);
    white-space: nowrap;
}

body[data-page="news"] .media-kit-list__action {
    color: var(--news-amber);
}

.media-kit-list__action i {
    margin-right: 0.25rem;
}

@media (max-width: 639px) {
    .media-kit-list__item {
        flex-wrap: wrap;
    }

    .media-kit-list__action {
        width: 100%;
        padding-left: 9.5rem;
    }
}

@media (max-width: 767px) {
    .deliverables-table {
        min-width: 0;
    }

    .deliverables-table thead {
        display: none;
    }

    .deliverables-table tbody tr {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #e5e7eb;
    }

    body[data-page="news"] .deliverables-table tbody tr {
        border-bottom-color: #e8dfd3;
    }

    .deliverables-table tbody tr:last-child {
        border-bottom: none;
    }

    .deliverables-table td {
        display: block;
        padding: 0.35rem 1rem;
        border-bottom: none;
    }

    .deliverables-table td::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: var(--navy);
    }

    body[data-page="news"] .deliverables-table td::before {
        color: var(--news-brown);
    }
}

/* ── Dark accent sections ── */
.dark-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--hero-mid) 60%, color-mix(in srgb, var(--blue) 75%, var(--navy)) 100%);
    position: relative;
    overflow: hidden;
}

.dark-section::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.calendar-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
}

.calendar-date {
    background: white;
    color: var(--navy);
}

/* ── Login page ── */
.login-page {
    background: linear-gradient(135deg, #000814 0%, #0d3b5c 45%, #1a7bb9 100%);
}

.login-page__card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 64px rgba(0, 8, 20, 0.28);
}

/* ── Newsletter (EmailOctopus embed) ── */
.emailoctopus-newsletter {
    width: 100%;
    position: relative;
    z-index: 2;
}

.emailoctopus-newsletter iframe {
    width: 100% !important;
    max-width: 100%;
    border: none !important;
    display: block;
    background: transparent;
    box-shadow: none !important;
}

.emailoctopus-newsletter form {
    width: 100%;
}

.emailoctopus-newsletter input[type="email"],
.emailoctopus-newsletter input[type="text"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.emailoctopus-newsletter button[type="submit"]:disabled,
.emailoctopus-newsletter input[type="submit"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.newsletter-input {
    border: 1px solid #d1d5db;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 123, 185, 0.15);
}

.newsletter-mock {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(13, 59, 92, 0.08);
}

.newsletter-mock__banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.1) 0%, rgba(var(--navy-rgb), 0.06) 100%);
    border-bottom: 1px solid #e5e7eb;
}

.newsletter-mock__badge {
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: var(--navy);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.newsletter-mock__meta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
}

.newsletter-mock__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 1.75rem 0;
}

.newsletter-mock__logo {
    width: 2.5rem;
    height: 2.5rem;
}

.newsletter-mock__brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--navy);
}

.newsletter-mock__issue {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

.newsletter-mock__body {
    padding: 1.75rem;
}

.newsletter-mock__body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
}

.newsletter-mock__body h2:first-child {
    margin-top: 0;
}

.newsletter-mock__body p,
.newsletter-mock__body li {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #4b5563;
}

.newsletter-mock__body ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.newsletter-mock__body a {
    color: var(--blue);
    text-decoration: underline;
}

.newsletter-mock__lead {
    font-size: 1.0625rem !important;
    color: var(--navy) !important;
    font-weight: 500;
    line-height: 1.7 !important;
}

.newsletter-mock__highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.newsletter-mock__highlight {
    text-align: center;
    padding: 1rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
}

.newsletter-mock__highlight-num {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
}

.newsletter-mock__highlight-label {
    display: block;
    font-size: 0.6875rem;
    color: #6b7280;
    margin-top: 0.25rem;
    line-height: 1.35;
}

.newsletter-mock__partners {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem !important;
    color: var(--navy) !important;
    letter-spacing: 0.02em;
}

.newsletter-mock__cta {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.08) 0%, rgba(var(--navy-rgb), 0.05) 100%);
    border: 1px solid rgba(var(--blue-rgb), 0.15);
}

.newsletter-mock__cta h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--navy);
}

.newsletter-mock__cta p {
    margin-top: 0.35rem;
    font-size: 0.875rem;
}

.newsletter-mock__footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
}

.newsletter-mock__footer p + p {
    margin-top: 0.5rem;
}

.newsletter-mock__footer a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.newsletter-mock__footer a:hover {
    text-decoration: underline;
}

.hub-page-cover {
    border-bottom: 1px solid #e5e7eb;
}

.hub-page-cover img {
    display: block;
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.hub-page-cover--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 2rem;
    background: #fff;
    min-height: 9rem;
}

.hub-page-cover--logo img {
    width: auto;
    max-width: min(100%, 22rem);
    height: auto;
    max-height: 5rem;
    object-fit: contain;
}

.hub-carousel {
    border-bottom: 1px solid #e5e7eb;
    background: #111827;
}

.hub-carousel__viewport {
    position: relative;
}

.hub-carousel__track {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.hub-carousel__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hub-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hub-carousel__slide img {
    display: block;
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.hub-carousel__btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: -1.125rem;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hub-carousel__btn:hover {
    background: #fff;
    transform: scale(1.05);
}

.hub-carousel__btn--prev {
    left: 0.75rem;
}

.hub-carousel__btn--next {
    right: 0.75rem;
}

.hub-carousel__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: #fff;
}

.hub-carousel__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hub-carousel__dot.is-active {
    background: var(--blue);
    transform: scale(1.15);
}

body[data-page="news"] .hub-carousel__dot.is-active {
    background: var(--news-amber);
}

@media (prefers-reduced-motion: reduce) {
    .hub-carousel__slide {
        transition: none;
    }
}

@media (min-width: 640px) {
    .hub-carousel__track,
    .hub-carousel__slide img {
        height: 16rem;
    }
}

.hub-resource-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 1rem 0 0;
}

.hub-resource-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    font-size: 0.875rem;
    color: var(--navy);
}

body[data-page="news"] .hub-resource-list__item {
    border-color: #e8dfd3;
    background: #faf7f2;
    color: var(--news-brown);
}

.hub-resource-list__item i {
    margin-right: 0.5rem;
    color: var(--blue);
}

body[data-page="news"] .hub-resource-list__item i {
    color: var(--news-amber);
}

.hub-resource-list__status {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
}

.hub-resource-list__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hub-resource-list__item--category {
    font-weight: 600;
}

.hub-resource-list__item--sub {
    margin-left: 1.25rem;
    font-size: 0.8125rem;
}

.hub-resource-list__status--live {
    color: #047857;
}

.hub-resource-list__item--link {
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hub-resource-list__item--link:hover {
    border-color: var(--blue);
    background: rgba(var(--blue-rgb), 0.04);
}

body[data-page="news"] .hub-resource-list__item--link:hover {
    border-color: var(--news-amber);
    background: rgba(var(--news-amber-rgb), 0.06);
}

.hub-deliverable-feature {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fafafa;
}

body[data-page="news"] .hub-deliverable-feature {
    border-color: #e8dfd3;
    background: #faf7f2;
}

.hub-deliverable-feature__banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hub-deliverable-feature__badge {
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hub-page-cover--inset {
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.hub-page-cover--inset img {
    height: 10rem;
}

@media (max-width: 639px) {
    .newsletter-mock__highlights {
        grid-template-columns: 1fr;
    }
}

/* ── Prose (legal pages) ── */
.prose-legal h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.prose-legal h3 {
    color: var(--navy);
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose-legal p,
.prose-legal li {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.prose-legal ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose-legal a {
    color: var(--blue);
    text-decoration: underline;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile menu ── */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mobile-menu.open {
    max-height: 420px;
}

/* ── Footer ── */
.footer-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
    color: white;
    padding-left: 4px;
}

.footer-social a { opacity: 0.85; transition: opacity 0.15s ease; }
.footer-social a:hover { opacity: 1; }

.footer-social img {
    display: block;
    object-fit: contain;
}

/* ── Back to top ── */
.to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── EU project patterns ── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1.25rem;
    background: white;
    color: var(--navy);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.project-facts {
    background: linear-gradient(135deg, var(--deep) 0%, var(--navy) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fact-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.fact-item:last-child {
    border-right: none;
}

.fact-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
}

.fact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.5rem;
}

.fact-note {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.35rem;
    line-height: 1.35;
}

.quote-block {
    border-left: 4px solid var(--blue);
    background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.06) 0%, rgba(var(--navy-rgb), 0.04) 100%);
    border-radius: 0 1rem 1rem 0;
    padding: 1.75rem 2rem;
}

.quote-block p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--navy);
    font-style: italic;
}

.aim-section {
    position: relative;
    overflow: hidden;
}

.aim-section__inner {
    position: relative;
}

.aim-section__grid {
    position: relative;
    z-index: 1;
}

.aim-section__dog {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
    opacity: 0.3;
    transform: translateY(4.75rem);
}

@media (min-width: 640px) {
    .aim-section__dog {
        width: calc(50% - 0.5rem);
    }
}

@media (min-width: 1024px) {
    .aim-section__dog {
        width: calc((100% - 5rem) / 2);
    }
}

@media (max-width: 639px) {
    .aim-section__dog {
        opacity: 0.22;
    }
}

.impact-metric {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.impact-metric--translucent {
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.impact-metric:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 16px 32px rgba(26, 123, 185, 0.1);
}

.impact-metric .metric-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.objective-card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.objective-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 16px 32px rgba(26, 123, 185, 0.1);
}

.objective-card__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.objective-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(var(--blue-rgb), 0.15);
    line-height: 1;
    margin-bottom: 0;
}

.objective-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    object-fit: contain;
}

.audience-card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 16px 32px rgba(26, 123, 185, 0.1);
}

.audience-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.12) 0%, rgba(var(--navy-rgb), 0.08) 100%);
    color: var(--blue);
    margin-bottom: 1rem;
}

.audience-icon__img {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.hub-tile {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hub-tile--image {
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.hub-tile--split {
    min-height: 18rem;
}

.hub-tile__media {
    width: 100%;
    height: 9.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.hub-tile--split .hub-tile__media {
    flex: 0 0 50%;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    background: #0d3b5c;
    box-sizing: border-box;
}

.hub-tile__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-tile--split .hub-tile__media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hub-tile__media--logo img {
    filter: brightness(0) invert(1);
}

.hub-tile__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.5rem 1.5rem;
}

.hub-tile--split .hub-tile__body {
    flex: 0 0 50%;
    background: #fff;
    box-sizing: border-box;
}

.hub-tile:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 16px 32px rgba(26, 123, 185, 0.12);
}

.hub-tile-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-item.open {
    border-color: var(--blue);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    color: var(--navy);
    background: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(26, 123, 185, 0.04);
}

.faq-question i {
    color: var(--blue);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    color: #4b5563;
    line-height: 1.75;
    font-size: 0.95rem;
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.video-placeholder {
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--navy) 0%, #0a4d8c 60%, var(--blue) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(56, 189, 248, 0.2) 0%, transparent 60%);
}

.video-play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(0, 8, 20, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .fact-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .fact-item:last-child {
        border-bottom: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-badge, .hero-title, .hero-subtitle, .hero-tags, .hero-cta {
        animation: none;
    }
    .card-hover:hover, .partner-card:hover, .use-case-card:hover,
    .btn-primary:hover, .btn-outline:hover, .btn-solid:hover, .btn-ghost:hover,
    .tech-card:hover, .flow-step:hover, .news-card:hover, .wp-card:hover,
    .target-card:hover, .resource-row:hover, .impact-metric:hover,
    .objective-card:hover, .audience-card:hover, .hub-tile:hover {
        transform: none;
    }
}
