/* LOGICIEL V8 */
/* ============================================
   Mathis C. — Personal Diplomatic Site
   EU Blue (#003399) + White — Editorial Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --blue: #003399;
    --blue-dark: #001d5c;
    --blue-deeper: #000f33;
    --blue-light: #1a4db3;
    --blue-muted: #e8edf7;
    --gold: #c8a951;
    --white: #ffffff;
    --off-white: #f5f6f9;
    --grey-50: #fafbfc;
    --grey-100: #eef0f5;
    --grey-200: #d5d9e3;
    --grey-300: #b0b6c8;
    --grey-500: #6b7394;
    --grey-700: #363d54;
    --grey-900: #111827;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w: 1180px;
    --article-w: 720px;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --shadow-sm: 0 1px 3px rgba(0,20,60,0.06);
    --shadow-md: 0 4px 20px rgba(0,20,60,0.08);
    --shadow-lg: 0 12px 40px rgba(0,20,60,0.1);
    --shadow-xl: 0 20px 60px rgba(0,20,60,0.12);
    --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--grey-900);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
a { color: var(--blue); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--blue-light); }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.solid {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}
/* On non-hero pages, header starts solid */
.page-no-hero .site-header { background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-sm); }
.page-no-hero .nav-logo img { filter: none !important; }
.page-no-hero .nav-logo span,
.page-no-hero .nav-links a { color: var(--grey-700); }
.page-no-hero .nav-links a:hover { color: var(--blue); }
.page-no-hero .nav-toggle span { background: var(--blue-dark) !important; }

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav-logo { display: flex; align-items: center; gap: 0.85rem; }
/* Logo img: blanc par défaut (header transparent sur le hero) */
.nav-logo img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1) !important;
    transition: filter 0.4s var(--ease);
}
/* Logo img: couleur normale quand header est solid (blanc) */
.site-header.solid .nav-logo img { filter: none !important; }

.nav-logo span {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.01em;
    transition: color 0.4s var(--ease);
}
.site-header.solid .nav-logo span { color: var(--blue-dark); }

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s var(--ease);
}
.site-header.solid .nav-links a { color: var(--grey-500); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--blue);
    transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.site-header.solid .nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.site-header.solid .nav-links a.active { color: var(--blue); }

/* LinkedIn button — desktop */
.nav-linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--white);
    color: var(--blue) !important;
    padding: 0.7rem 2.2rem 0.7rem 1.6rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    white-space: nowrap;
}
.nav-linkedin-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); color: var(--blue) !important; }
.nav-linkedin-btn::after { display: none !important; }
.site-header.solid .nav-linkedin-btn { background: var(--blue); color: var(--white) !important; }
.site-header.solid .nav-linkedin-btn:hover { background: var(--blue-light); color: var(--white) !important; }
.nav-linkedin-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; display: block; }

/* Mobile nav — hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 36px;
    height: 36px;
    z-index: 1002;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 0 auto;
    transition: 0.35s var(--ease);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 25px; }
/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) { top: 17px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 17px; transform: translateX(-50%) rotate(-45deg); }
.site-header.solid .nav-toggle span { background: var(--blue-dark); }

/* Mobile nav — fullscreen overlay */
@media (max-width: 860px) {
    .nav-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--blue-deeper) !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 5rem 2rem 3rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s var(--ease), visibility 0.4s;
        z-index: 1001;
        transform: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
        right: auto !important;
        bottom: auto !important;
        overflow-y: auto;
    }
    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    /* Stagger animation */
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    }
    .nav-links.open li { opacity: 1; transform: translateY(0); }
    .nav-links.open li:nth-child(1) { transition-delay: 0.08s; }
    .nav-links.open li:nth-child(2) { transition-delay: 0.14s; }
    .nav-links.open li:nth-child(3) { transition-delay: 0.20s; }
    .nav-links.open li:nth-child(4) { transition-delay: 0.26s; }
    .nav-links.open li:nth-child(5) { transition-delay: 0.32s; }

    /* Links style in mobile overlay */
    .nav-links a,
    .nav-links a:link,
    .nav-links a:visited {
        color: rgba(255,255,255,0.85) !important;
        font-size: 1.4rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.06em;
        padding: 0.9rem 0 !important;
        display: block;
        text-align: center;
    }
    .nav-links a:hover { color: var(--white) !important; }
    .nav-links a::after { display: none !important; }

    /* LinkedIn button in mobile menu */
    .nav-links .nav-linkedin-btn,
    .nav-links .nav-linkedin-btn:link,
    .nav-links .nav-linkedin-btn:visited {
        background: var(--white) !important;
        color: var(--blue) !important;
        padding: 0.85rem 2.5rem !important;
        font-size: 0.95rem !important;
        margin-top: 1rem;
        border-radius: 8px;
        display: inline-flex !important;
        width: auto;
    }
    .nav-links .nav-linkedin-btn:hover {
        background: rgba(255,255,255,0.9) !important;
        color: var(--blue) !important;
    }

    /* Hamburger lines always white when menu is open */
    .nav-toggle.active span { background: var(--white) !important; }
}

/* =============================================
   HERO — Full viewport, dramatic
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-deeper);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}
/* Animated mesh gradient background */
.hero::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%; height: 200%;
    background:
        conic-gradient(from 0deg at 30% 40%, var(--blue-deeper), var(--blue-dark), var(--blue), var(--blue-dark), var(--blue-deeper)),
        conic-gradient(from 180deg at 70% 60%, var(--blue-deeper), #0a1628, var(--blue-dark), #0a1628, var(--blue-deeper));
    background-blend-mode: screen;
    animation: heroMesh 20s ease-in-out infinite;
    filter: blur(60px);
}
@keyframes heroMesh {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-5%, 3%) rotate(3deg); }
    50% { transform: translate(3%, -3%) rotate(-2deg); }
    75% { transform: translate(-2%, -4%) rotate(1deg); }
}
/* Grid pattern overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}
/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}
.hero-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,51,153,0.5), transparent 70%);
    top: -10%; right: -5%;
    animation: orbFloat1 15s ease-in-out infinite;
}
.hero-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(200,169,81,0.15), transparent 70%);
    bottom: -5%; left: -5%;
    animation: orbFloat2 18s ease-in-out infinite;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(26,77,179,0.3), transparent 70%);
    top: 40%; left: 50%;
    animation: orbFloat3 12s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-40px,30px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-40px)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,-30px)} }

/* Decorative lines */
.hero-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-lines span {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06), transparent);
    width: 1px;
    height: 100%;
}
.hero-lines span:nth-child(1) { left: 15%; animation: lineGlow 4s 0s ease-in-out infinite; }
.hero-lines span:nth-child(2) { left: 35%; animation: lineGlow 4s 1s ease-in-out infinite; }
.hero-lines span:nth-child(3) { left: 65%; animation: lineGlow 4s 2s ease-in-out infinite; }
.hero-lines span:nth-child(4) { left: 85%; animation: lineGlow 4s 3s ease-in-out infinite; }
@keyframes lineGlow { 0%,100%{opacity:0.3} 50%{opacity:1} }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    text-align: center;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s forwards;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s forwards;
    color: var(--white);
}
.hero-description {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    animation: fadeUp 0.8s 0.7s forwards;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s forwards;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
    cursor: pointer;
    border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--white); color: var(--blue) !important; }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.2); color: var(--blue) !important; }
.btn-outline { background: transparent; color: var(--white) !important; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white) !important; }
.btn-blue { background: var(--blue); color: var(--white) !important; }
.btn-blue:hover { background: var(--blue-light); box-shadow: var(--shadow-md); color: var(--white) !important; }

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeUp 0.8s 1.2s forwards;
    opacity: 0;
    text-align: center;
    width: auto;
}
.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(20px); } }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 6rem 2rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-alt { background: var(--off-white); }

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--grey-900);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--grey-500);
    margin-top: 0.75rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* =============================================
   PAGE HEADER (for sub-pages, no giant hero)
   ============================================= */
.page-header {
    padding: 8rem 2rem 3rem;
    text-align: center;
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 0.5rem;
}
.page-header p {
    font-size: 1.05rem;
    color: var(--grey-500);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}
.page-header-line {
    width: 50px;
    height: 3px;
    background: var(--blue);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* =============================================
   ABOUT PREVIEW (Homepage)
   ============================================= */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-preview-img {
    position: relative;
}
.about-preview-img .photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-300);
    font-size: 0.85rem;
}
.about-preview-img::after {
    content: '';
    position: absolute;
    top: 1.5rem; left: 1.5rem;
    right: -1.5rem; bottom: -1.5rem;
    border: 2px solid var(--blue);
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.15;
}
.about-preview-text .label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1rem;
}
.about-preview-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--grey-900);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.about-preview-text p {
    font-size: 1.05rem;
    color: var(--grey-500);
    margin-bottom: 1rem;
    line-height: 1.8;
}
.about-preview-text .btn { margin-top: 0.5rem; }

@media (max-width: 860px) {
    .about-preview { grid-template-columns: 1fr; gap: 2rem; }
    .about-preview-img { max-width: 350px; }
}

/* =============================================
   EXPERTISE CARDS
   ============================================= */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.expertise-card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.expertise-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.expertise-icon {
    width: 48px; height: 48px;
    background: var(--blue-muted);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--blue);
}
.expertise-icon svg { width: 24px; height: 24px; }
.expertise-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--grey-900);
    margin-bottom: 0.6rem;
}
.expertise-card p {
    font-size: 0.95rem;
    color: var(--grey-500);
    line-height: 1.6;
}

@media (max-width: 860px) {
    .expertise-grid { grid-template-columns: 1fr; }
}

/* =============================================
   ARTICLE CARDS
   ============================================= */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}
.article-card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    display: flex;
    flex-direction: column;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

.article-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--blue-muted), var(--grey-100));
}

.article-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.78rem;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.article-tag {
    background: var(--blue);
    color: var(--white);
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.article-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 0.7rem;
    line-height: 1.3;
}
.article-card-body p {
    font-size: 0.95rem;
    color: var(--grey-500);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--grey-100);
}
.article-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--grey-500);
    font-weight: 500;
}
.article-card-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.article-read-more {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blue);
}
.article-read-more:hover { color: var(--blue-light); }

@media (max-width: 500px) {
    .articles-grid { grid-template-columns: 1fr; }
}

/* =============================================
   SINGLE ARTICLE — Dark Hero Header
   ============================================= */
.article-dark-header {
    background: var(--blue-deeper);
    color: var(--white);
    padding: 10rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}
.article-dark-header::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%; height: 200%;
    background:
        conic-gradient(from 220deg at 25% 70%, var(--blue-deeper), var(--blue-dark), var(--blue), var(--blue-dark), var(--blue-deeper));
    filter: blur(80px);
    animation: articleHeaderShift 18s ease-in-out infinite;
}
@keyframes articleHeaderShift {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(-3%, 2%); }
}
.article-dark-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
}
.article-dark-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}
.article-dark-header .article-tag {
    background: var(--blue);
    margin-bottom: 1rem;
    display: inline-block;
}
.article-dark-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.article-dark-meta .dot { margin: 0 0.25rem; }
.article-dark-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.8rem;
    max-width: 820px;
}
.article-dark-summary {
    font-size: 1.18rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.65);
    max-width: 680px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}
.article-dark-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.article-dark-author img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15); }
.article-dark-author-text .name { font-weight: 600; font-size: 1rem; }
.article-dark-author-text .role { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
/* Bottom edge — sharp, no white fade */
.article-dark-header-edge {
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light), var(--blue));
    position: relative;
    z-index: 2;
}

/* =============================================
   ARTICLE LAYOUT — Sidebar + Content
   ============================================= */
.article-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    max-width: 1060px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
    position: relative;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--grey-200) transparent;
}

.sidebar-progress {
    background: var(--grey-900);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
}
.sidebar-progress-label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-progress-label .dot-live {
    width: 8px; height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.progress-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-bottom: 0.4rem;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    border-radius: 2px;
    width: 0%;
    transition: width 0.15s linear;
}
.progress-percent {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    text-align: right;
}
/* Circular progress */
.progress-circle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}
.progress-circle {
    width: 48px; height: 48px;
    transform: rotate(-90deg);
}
.progress-circle-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 4; }
.progress-circle-fill { fill: none; stroke: var(--blue-light); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 0.2s linear; }

.sidebar-toc {
    background: var(--grey-900);
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--white);
}
.sidebar-toc-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}
.sidebar-toc ul { list-style: none; }
.sidebar-toc li { margin-bottom: 0.15rem; }
.sidebar-toc a {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all 0.25s var(--ease);
    line-height: 1.4;
}
.sidebar-toc a:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); }
.sidebar-toc a.active {
    color: var(--white);
    background: rgba(0,51,153,0.25);
    border-left-color: var(--blue-light);
}

/* Article content column */
.article-content-col { min-width: 0; }

/* Article body */
.article-body {
    max-width: var(--article-w);
    padding: 0 0 4rem;
}
.article-body > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 700;
    float: left;
    line-height: 0.8;
    margin: 0.1em 0.12em 0 0;
    color: var(--blue);
}
.article-body p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--grey-700);
    margin-bottom: 1.4rem;
    text-align: justify;
}
.article-body h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--grey-900);
    margin: 2.8rem 0 1rem;
    line-height: 1.3;
}
.article-body h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--grey-900);
    margin: 2rem 0 0.75rem;
}
.article-body blockquote {
    border-left: 3px solid var(--blue);
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    background: var(--grey-50);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body blockquote p {
    font-style: italic;
    color: var(--grey-500);
    font-size: 1.1rem;
    margin-bottom: 0;
}
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.article-body li { margin-bottom: 0.5rem; font-size: 1.1rem; color: var(--grey-700); line-height: 1.8; }
.article-body img {
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}
.article-body figcaption,
.article-body .img-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--grey-300);
    margin-top: -1.2rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Summary box */
.article-summary {
    background: var(--blue-muted);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--blue);
}
.article-summary strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
    margin-bottom: 0.4rem;
}
.article-summary p { font-size: 1rem; color: var(--grey-700); margin-bottom: 0; line-height: 1.7; }

/* Article tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--grey-100);
}
.article-tags .tag {
    background: var(--grey-100);
    color: var(--grey-500);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Sources & references */
.article-sources {
    margin: 3rem 0 2rem;
    padding: 2rem 2rem 1.5rem;
    background: var(--off-white);
    border-radius: var(--radius);
    border-left: 4px solid var(--blue);
}
.article-sources h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    font-style: italic;
    color: var(--grey-900) !important;
    margin: 0 0 1.2rem !important;
}
.article-sources p {
    font-size: 0.88rem !important;
    color: var(--grey-500) !important;
    font-style: italic;
    margin-bottom: 0.85rem !important;
    line-height: 1.6 !important;
    padding-left: 1rem;
    border-left: 2px solid var(--grey-200);
}
.article-sources strong { color: var(--grey-900) !important; font-style: normal; }
.article-sources a { color: var(--blue) !important; font-weight: 600; font-style: normal; }

/* Article bottom nav */
.article-bottom-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }

/* Share */
.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--grey-50);
    border-radius: var(--radius);
    border: 1px solid var(--grey-100);
}
.article-share span { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-300); }
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--grey-100);
    color: var(--grey-500);
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.share-btn:hover { background: var(--blue); color: var(--white); }

/* Author bio */
.author-bio {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--grey-50);
    border-radius: var(--radius);
    border: 1px solid var(--grey-100);
    margin: 2rem 0;
}
.author-bio-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--grey-100); }
.author-bio-text { flex: 1; }
.author-bio-text .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-300); margin-bottom: 0.25rem; font-weight: 600; }
.author-bio-text h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--grey-900); margin-bottom: 0.4rem; }
.author-bio-text p { font-size: 0.92rem; color: var(--grey-500); line-height: 1.6; margin-bottom: 0.6rem; }
.author-bio-text .links { display: flex; gap: 0.75rem; }
.author-bio-text .links a { font-size: 0.82rem; font-weight: 600; color: var(--blue); }

/* Responsive sidebar */
@media (max-width: 960px) {
    .article-layout { grid-template-columns: 1fr; gap: 0; padding: 0 1.5rem 3rem; }
    .article-sidebar {
        position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; z-index: 2000;
        background: var(--grey-900); padding: 1.5rem; overflow-y: auto; transition: left 0.35s var(--ease); border-radius: 0;
    }
    .article-sidebar.mobile-open { left: 0; box-shadow: 4px 0 30px rgba(0,0,0,0.4); }
    .sidebar-progress, .sidebar-toc { background: transparent; padding: 0.75rem 0; }
    .sidebar-mobile-toggle {
        display: flex !important; position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 1999;
        width: 48px; height: 48px; background: var(--grey-900); color: var(--white); border: none;
        border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-lg);
    }
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1998; }
    .sidebar-overlay.show { display: block; }
    .author-bio { flex-direction: column; text-align: center; }
    .author-bio-text .links { justify-content: center; }
}
@media (min-width: 961px) {
    .sidebar-mobile-toggle { display: none !important; }
    .sidebar-overlay { display: none !important; }
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-content { max-width: var(--article-w); margin: 0 auto; padding: 0 2rem 4rem; }
.about-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--grey-900);
    margin: 2.5rem 0 1rem;
}
.about-content p { font-size: 1.05rem; color: var(--grey-500); margin-bottom: 1rem; line-height: 1.8; text-align: justify; }

/* =============================================
   LINKEDIN CTA (horizontal)
   ============================================= */
.linkedin-section {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}
.linkedin-section h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.linkedin-section p {
    font-size: 1.05rem;
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.linkedin-section .btn-primary svg { width: 16px; height: 16px; fill: currentColor; }

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-info h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 1rem;
}
.contact-info p { color: var(--grey-500); margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.8; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--grey-700);
}
.contact-item svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

.contact-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--grey-500);
    margin-bottom: 0.4rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-muted); }
.contact-form textarea { min-height: 150px; resize: vertical; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-content { max-width: var(--article-w); margin: 0 auto; padding: 0 2rem 4rem; }
.legal-content h1 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 0.5rem;
}
.legal-content .last-updated { font-size: 0.9rem; color: var(--grey-300); margin-bottom: 2rem; }
.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--grey-900);
    margin: 2rem 0 0.75rem;
}
.legal-content p, .legal-content li { font-size: 1rem; margin-bottom: 0.8rem; color: var(--grey-500); }
.legal-content ul { padding-left: 1.5rem; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--grey-900);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light), var(--gold), var(--blue-light), var(--blue));
}
.footer-top {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.footer-brand img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer-brand span { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); font-weight: 700; }
.footer-desc { max-width: 300px; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    transition: all 0.25s var(--ease);
}
.footer-social a:hover { background: var(--blue); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-col h4 {
    color: var(--white);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.2rem;
    font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.45); transition: color 0.25s, padding-left 0.25s; }
.footer-col a:hover { color: var(--white); padding-left: 4px; }
/* Newsletter / CTA column */
.footer-cta p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.5);
}
.footer-cta .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.7rem 1.2rem;
}
.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.25); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }
@media (max-width: 860px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
@media (max-width: 500px) {
    .footer-top { grid-template-columns: 1fr; }
}

/* =============================================
   CONTACT FORM (advanced)
   ============================================= */
.contact-form fieldset { border: none; padding: 0; margin: 0; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .form-group { margin-bottom: 1.2rem; }
.contact-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--grey-500);
    margin-bottom: 0.4rem;
}
.contact-form label .required { color: #e74c3c; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--grey-200);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    background: var(--white);
    color: var(--grey-900);
}
.contact-form select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7394' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-muted); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .form-consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 1.5rem 0;
    font-size: 0.88rem;
    color: var(--grey-500);
    line-height: 1.5;
}
.contact-form .form-consent input[type="checkbox"] {
    width: 18px; height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--blue);
}
.contact-form .hidden-field { display: none; }
.contact-form .form-note { font-size: 0.8rem; color: var(--grey-300); margin-top: 0.5rem; }
@media (max-width: 600px) { .contact-form .form-row { grid-template-columns: 1fr; } }

/* =============================================
   COOKIE BANNER — Centered modal popup
   ============================================= */

/* Overlay backdrop */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 15, 51, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    display: none;
}
.cookie-overlay.show { display: block; animation: cookieOverlayIn 0.4s var(--ease); }
@keyframes cookieOverlayIn { from { opacity: 0; } to { opacity: 1; } }

/* Modal card */
.cookie-banner {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 92%;
    max-width: 480px;
    background: var(--white);
    color: var(--grey-900);
    border-radius: 16px;
    padding: 0;
    display: none;
    box-shadow: 0 25px 80px rgba(0,15,51,0.25), 0 8px 24px rgba(0,15,51,0.12);
    overflow: hidden;
}
.cookie-banner.show {
    display: block;
    animation: cookiePopIn 0.5s var(--ease);
}
@keyframes cookiePopIn {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.95); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Top accent bar */
.cookie-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light), var(--gold));
    border-radius: 16px 16px 0 0;
}

/* Inner content */
.cookie-banner-inner {
    padding: 2.5rem 2rem 2rem;
}

/* Icon */
.cookie-banner-icon {
    width: 52px; height: 52px;
    background: var(--blue-muted);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
}

/* Title */
.cookie-banner h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

/* Description */
.cookie-banner p {
    font-size: 0.92rem;
    color: var(--grey-500);
    line-height: 1.7;
    margin-bottom: 0;
}
.cookie-banner a {
    color: var(--blue);
    font-weight: 600;
    transition: color 0.25s var(--ease);
}
.cookie-banner a:hover { color: var(--blue-light); }

/* Features list */
.cookie-features {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.cookie-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--grey-700);
    line-height: 1.5;
}
.cookie-features li svg {
    width: 18px; height: 18px;
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Separator */
.cookie-separator {
    height: 1px;
    background: var(--grey-100);
    margin: 1.5rem 0 0;
}

/* Small print */
.cookie-small {
    padding: 1rem 2rem;
    font-size: 0.78rem;
    color: var(--grey-300);
    line-height: 1.55;
}
.cookie-small a { font-weight: 500; color: var(--grey-500); }

/* Buttons row */
.cookie-btns {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--grey-100);
}
.cookie-btn {
    flex: 1;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 0;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-family: var(--font-body);
    white-space: nowrap;
    text-align: center;
    letter-spacing: 0.01em;
}
.cookie-reject {
    background: var(--white);
    color: var(--grey-500);
    border-right: 1px solid var(--grey-100);
    border-radius: 0 0 0 16px;
}
.cookie-reject:hover {
    background: var(--grey-50);
    color: var(--grey-700);
}
.cookie-accept {
    background: var(--blue);
    color: var(--white);
    border-radius: 0 0 16px 0;
}
.cookie-accept:hover {
    background: var(--blue-light);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

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

/* =============================================
   RESPONSIVE (global)
   ============================================= */
@media (max-width: 860px) {
    .hero { padding: 0 1.5rem; }
    .hero h1 { font-size: clamp(2.4rem, 8vw, 3.5rem); }
    .hero-description { font-size: 1rem; }
    .section { padding: 4rem 1.5rem; }
    .page-header { padding: 7rem 1.5rem 2.5rem; }
    .page-header h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
    .article-dark-header { padding: 8rem 1.5rem 3rem; }
    .article-dark-header h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
    .article-dark-summary { font-size: 1rem; }
    .linkedin-section { padding: 3rem 1.5rem; }
    .linkedin-section h2 { font-size: 1.4rem; }
}

@media (max-width: 500px) {
    html { font-size: 15px; }
    .nav-inner { padding: 0 1rem; height: 64px; }
    .nav-logo img { height: 36px; }
    .nav-logo span { font-size: 1.15rem; }

    .hero { min-height: 100svh; padding: 0 1.2rem; }
    .hero h1 { font-size: 2.4rem; margin-bottom: 1rem; }
    .hero-eyebrow { font-size: 0.65rem; letter-spacing: 0.12em; margin-bottom: 1rem; }
    .hero-description { font-size: 0.92rem; line-height: 1.7; margin-bottom: 2rem; }
    .hero-actions { flex-direction: column; gap: 0.75rem; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-scroll { bottom: 1.5rem; }
    .hero-orb-1 { width: 280px; height: 280px; }
    .hero-orb-2 { width: 220px; height: 220px; }
    .hero-orb-3 { width: 180px; height: 180px; }

    .section { padding: 3rem 1.2rem; }
    .section-title { font-size: 1.6rem; }
    .section-desc { font-size: 0.92rem; }

    .page-header { padding: 6rem 1.2rem 2rem; }
    .page-header h1 { font-size: 1.8rem; }
    .page-header p { font-size: 0.92rem; }

    .about-preview { gap: 1.5rem; }
    .about-preview-img { max-width: 100%; }
    .about-preview-img::after { top: 1rem; left: 1rem; right: -1rem; bottom: -1rem; }
    .about-preview-text h2 { font-size: 1.5rem; }

    .expertise-card { padding: 1.5rem; }
    .expertise-card h3 { font-size: 1.1rem; }
    .expertise-card p { font-size: 0.88rem; }

    .article-card-img { height: 180px; }
    .article-card-body { padding: 1.25rem; }
    .article-card-body h3 { font-size: 1.15rem; }

    .article-dark-header { padding: 6rem 1.2rem 2.5rem; }
    .article-dark-header h1 { font-size: 1.8rem; line-height: 1.15; }
    .article-dark-summary { font-size: 0.92rem; margin-bottom: 1.5rem; }
    .article-dark-author img { width: 40px; height: 40px; }

    .article-body p { font-size: 1rem; text-align: left; }
    .article-body h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
    .article-body h3 { font-size: 1.1rem; }
    .article-body > p:first-of-type::first-letter { font-size: 3rem; }
    .article-body blockquote { padding: 1rem; }

    .article-sources { padding: 1.5rem; }
    .article-share { flex-wrap: wrap; padding: 1rem; }

    .contact-info h2 { font-size: 1.5rem; }
    .contact-info p { font-size: 0.95rem; }

    .legal-content { padding: 0 1.2rem 3rem; }
    .legal-content h1 { font-size: 1.8rem; }
    .legal-content h2 { font-size: 1.2rem; }

    .about-content { padding: 0 1.2rem 3rem; }
    .about-content h2 { font-size: 1.3rem; }
    .about-content p { font-size: 0.95rem; text-align: left; }

    .linkedin-section { padding: 2.5rem 1.2rem; }
    .linkedin-section h2 { font-size: 1.3rem; }
    .linkedin-section p { font-size: 0.92rem; }

    .author-bio { padding: 1.5rem; gap: 1rem; }
    .author-bio-img { width: 56px; height: 56px; }

    /* Cookie modal mobile */
    .cookie-banner { width: 95%; max-width: none; border-radius: 14px; }
    .cookie-banner-inner { padding: 2rem 1.5rem 1.5rem; }
    .cookie-banner-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 1.4rem; margin-bottom: 1rem; }
    .cookie-banner h4 { font-size: 1.3rem; }
    .cookie-banner p { font-size: 0.85rem; }
    .cookie-features li { font-size: 0.82rem; }
    .cookie-small { padding: 0.85rem 1.5rem; font-size: 0.72rem; }
    .cookie-btn { padding: 0.9rem 1rem; font-size: 0.82rem; }

    .btn { padding: 0.8rem 1.5rem; font-size: 0.85rem; }

    .footer-top { padding: 3rem 1.2rem 2rem; }
    .footer-desc { font-size: 0.85rem; }
    .footer-bottom { padding: 1.2rem; }
}