/* ═══════════════════════════════════════════════════════
   sebastiengrillot.com — Entity SSG Theme
   Koeki × Boost Academy palette (red + navy + clean neutrals)
   ═══════════════════════════════════════════════════════ */

/* ── 1. Tokens ── */

/* ── BACKUP: Blue theme (for reuse on other sites) ──
:root {
    --sg-primary: #2563EB;
    --sg-primary-dark: #1D4ED8;
    --sg-primary-darker: #1E3A5F;
    --sg-primary-light: #DBEAFE;
    --sg-primary-50: #EFF6FF;
    --sg-accent: #F59E0B;
    --sg-accent-hover: #D97706;
    --sg-gray-50: #F8FAFC;
    --sg-gray-100: #F1F5F9;
    --sg-gray-200: #E2E8F0;
    --sg-gray-800: #1E293B;
    --sg-gray-900: #0F172A;
}
── END BACKUP ── */

/* ── ACTIVE: Koeki × Boost Academy palette ──
   Red from Koeki, clean neutrals from Boost Academy.
   ONE accent (red), ONE dark (navy), clean gray scale. */
:root {
    --sg-primary: #E53935;
    --sg-primary-dark: #C62828;
    --sg-primary-light: #FFEBEE;
    --sg-primary-50: #FFF5F5;
    --sg-dark: #1A1A2E;
    --sg-dark-lighter: #16213E;
    --sg-white: #FFFFFF;
    --sg-gray-50: #FFF8F8;
    --sg-gray-100: #FCEDEC;
    --sg-gray-200: #FCCDCD;
    --sg-gray-300: #D1D5DB;
    --sg-gray-400: #9CA3AF;
    --sg-gray-500: #6B7280;
    --sg-gray-600: #4B5563;
    --sg-gray-700: #374151;
    --sg-gray-800: #1F2937;
    --sg-gray-900: #111827;
    --sg-lavender-50: #F5F4FA;
    --sg-lavender-100: #ECEAF5;
    --sg-lavender-200: #CFCDE6;
    --sg-success: #10B981;
    --sg-shadow-sm: 0 1px 3px rgba(0,0,0,.04);
    --sg-shadow: 0 2px 8px rgba(0,0,0,.06), 0 0 1px rgba(0,0,0,.1);
    --sg-shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --sg-shadow-lg: 0 8px 24px rgba(0,0,0,.1);
    --sg-shadow-xl: 0 16px 48px rgba(0,0,0,.12);
    --sg-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sg-max-width: 1200px;
    --sg-content-width: 768px;
    --sg-radius: 10px;
    --sg-radius-lg: 14px;
    --sg-radius-xl: 20px;
}

/* ── 2. Reset + Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sg-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--sg-gray-800);
    background: var(--sg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
a { color: var(--sg-primary); text-decoration: none; }
a:hover { color: var(--sg-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--sg-gray-900); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }

/* ── 3. Underscore accent ── */
.sg-u { color: var(--sg-primary); font-weight: inherit; }

/* ── 4. Header — Barnard-pattern: identity band + nav bar ── */
.sg-header {
    position: relative;
    z-index: 100;
    background: var(--sg-dark);
}
/* Identity band — top row: photo + name + claim + CTA */
.sg-header__identity {
    max-width: var(--sg-max-width);
    margin: 0 auto;
    padding: .7rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.sg-header__entity {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    flex-shrink: 0;
}
.sg-header__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sg-primary);
}
.sg-header__entity-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sg-white);
    white-space: nowrap;
}
.sg-header__entity-claim {
    flex: 1;
    font-size: .88rem;
    color: rgba(255,255,255,.6);
    margin: 0;
    line-height: 1.4;
}
.sg-header__identity .sg-btn {
    flex-shrink: 0;
    white-space: nowrap;
}
/* Nav bar — second row */
.sg-header__nav-bar {
    background: rgba(255,255,255,.06);
}
.sg-header__nav-inner {
    max-width: var(--sg-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    position: relative;
}
.sg-header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}
.sg-header__nav a {
    color: rgba(255,255,255,.85);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color .15s;
}
.sg-header__nav a:hover { color: var(--sg-white); }
.sg-header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}
.sg-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--sg-white);
    position: absolute;
    left: 0;
    transition: .2s;
}
.sg-header__burger span:nth-child(1) { top: 0; }
.sg-header__burger span:nth-child(2) { top: 9px; }
.sg-header__burger span:nth-child(3) { top: 18px; }

/* Header dropdown */
.sg-header__dropdown {
    position: relative;
}
.sg-header__dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.85);
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: 0;
    font-family: inherit;
    transition: color .15s;
}
.sg-header__dropdown-trigger:hover { color: var(--sg-white); }
.sg-header__dropdown-trigger svg {
    transition: transform .2s;
}
.sg-header__dropdown:hover .sg-header__dropdown-trigger svg {
    transform: rotate(180deg);
}
.sg-header__dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--sg-white);
    border: 1px solid var(--sg-gray-200);
    border-radius: var(--sg-radius-lg);
    box-shadow: var(--sg-shadow-lg);
    padding: .5rem 0;
    min-width: 220px;
    z-index: 200;
}
.sg-header__dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.sg-header__dropdown:hover .sg-header__dropdown-menu {
    display: block;
}
.sg-header__dropdown-menu a {
    display: block;
    padding: .55rem 1.2rem;
    font-size: .88rem;
    font-weight: 500;
    color: var(--sg-gray-700) !important;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.sg-header__dropdown-menu a:hover {
    background: var(--sg-gray-50);
    color: var(--sg-primary) !important;
}
.sg-header__dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--sg-gray-100);
    margin: .35rem 0;
}

/* ── 5. Buttons ── */
.sg-btn {
    display: inline-block;
    padding: .7rem 1.5rem;
    border-radius: var(--sg-radius);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .15s, box-shadow .15s;
    border: 2px solid transparent;
    text-align: center;
}
.sg-btn:hover { transform: translateY(-1px); }
.sg-btn--primary { background: var(--sg-primary); color: var(--sg-white); }
.sg-btn--primary:hover { background: var(--sg-primary-dark); color: var(--sg-white); }
.sg-btn--white { background: var(--sg-white); color: var(--sg-primary); }
.sg-btn--white:hover { background: var(--sg-gray-50); color: var(--sg-primary); box-shadow: var(--sg-shadow-md); }
.sg-btn--outline { border-color: var(--sg-primary); color: var(--sg-primary); background: transparent; }
.sg-btn--outline:hover { background: var(--sg-primary); color: var(--sg-white); }
.sg-btn--outline-white { border-color: rgba(255,255,255,.5); color: var(--sg-white); background: transparent; }
.sg-btn--outline-white:hover { background: rgba(255,255,255,.15); color: var(--sg-white); }
.sg-btn--sm { padding: .45rem 1rem; font-size: .8rem; }

/* ── 6. Hero — exact replica of sebastiengrillot.com ──
   Original uses: .header-area (bg blue) + ::before (curved blue extension below)
   + decorative shape images (large circles mostly offscreen → visible edge = white blob)
   We replicate: .sg-hero (bg blue) + ::before (curved extension) + ::after (white blob) */
.sg-hero {
    position: relative;
    background: var(--sg-dark);
    color: var(--sg-white);
    margin-bottom: 430px;
}
/* Curved dark extension below — exact original values:
   height:700px, bottom:-292px, border-radius:270px, rotate(6deg) */
.sg-hero::before {
    content: '';
    position: absolute;
    left: -50px;
    right: -70px;
    height: 700px;
    bottom: -292px;
    background: var(--sg-dark);
    border-bottom-left-radius: 270px;
    border-bottom-right-radius: 270px;
    transform: rotate(6deg);
    z-index: 1;
}
.sg-hero::after { display: none; }
/* Content layer above blob */
.sg-hero__inner {
    max-width: var(--sg-max-width);
    margin: 0 auto;
    padding: 80px 50px 60px 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    z-index: 3;
}
.sg-hero__text {
    flex: 1;
    max-width: 58%;
    padding-right: 30px;
}
.sg-hero__badge {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    background: rgba(255,255,255,.08);
    padding: .35rem .9rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    letter-spacing: .02em;
    border: 1px solid var(--sg-primary);
    color: var(--sg-primary-light);
}
.sg-hero h1 {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
    color: var(--sg-white);
    line-height: 1.3;
    font-weight: 700;
}
.sg-hero .sg-u { color: var(--sg-primary); }
.sg-hero__roles {
    font-size: .95rem;
    color: rgba(255,255,255,.8);
    margin-bottom: .8rem;
    letter-spacing: .01em;
}
.sg-hero__claim {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 1rem;
    max-width: 520px;
    line-height: 1.6;
    font-style: italic;
}
.sg-hero__subtitle {
    font-size: .9rem;
    opacity: .6;
    margin-bottom: 0;
    max-width: 520px;
    line-height: 1.8;
}
.sg-hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
/* Bigger buttons in hero — matching original 20px/16px padding */
.sg-hero .sg-btn {
    font-size: 1.15rem;
    padding: 1rem 1.5rem;
}
.sg-hero__photo {
    position: absolute;
    right: -100px;
    top: 100px;
    z-index: 3;
}
.sg-hero__photo img {
    width: 700px;
    height: auto;
    border-radius: 0;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,.12));
    display: block;
    animation: hero-float 1.5s ease-in-out infinite alternate;
}
@keyframes hero-float {
    0% { transform: translateY(16px); }
    50% { transform: translateY(4px); }
}

/* Hero compact (about, contact, index pages) */
.sg-hero--compact {
    min-height: auto;
    margin-bottom: 0;
    overflow: hidden;
}
.sg-hero--compact::before {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    height: auto;
    border-radius: 0;
    transform: none;
}
.sg-hero--compact::after {
    display: block;
    content: '';
    position: absolute;
    top: auto;
    right: 0;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 80px;
    border-radius: 0;
    transform: none;
    background: var(--sg-white);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 1;
}
.sg-hero--compact .sg-hero__inner {
    min-height: auto;
    padding: 80px 1.5rem 100px;
    align-items: center;
    justify-content: space-between;
}
.sg-hero--compact .sg-hero .sg-btn { font-size: .9rem; padding: .7rem 1.5rem; }
.sg-hero--compact h1 { font-size: 2.2rem; }
.sg-hero--compact .sg-hero__photo {
    position: relative;
    right: auto;
    top: auto;
    flex-shrink: 0;
    z-index: 2;
}
.sg-hero--compact .sg-hero__photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    animation: none;
    border: 4px solid rgba(255,255,255,.2);
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

/* ── 7. Sections ── */
.sg-section {
    padding: 4rem 1.5rem;
}
.sg-section--gray { background: var(--sg-gray-50); }
.sg-section--lavender { background: var(--sg-lavender-50); }
.sg-section--blue { background: var(--sg-dark); color: var(--sg-white); }
.sg-section__inner {
    max-width: var(--sg-max-width);
    margin: 0 auto;
}
.sg-section__title {
    text-align: center;
    margin-bottom: 2.5rem;
}
.sg-section__subtitle {
    text-align: center;
    color: var(--sg-gray-500);
    max-width: 600px;
    margin: -1.5rem auto 2.5rem;
}

/* ── 8. Expertise Section — watermark background ── */
.sg-section--expertise {
    position: relative;
    overflow: hidden;
    background: var(--sg-white);
}
/* Watermark layer — real DOM element for parallax (data-parallax on div).
   Shapes are large, high-opacity inside the SVG, controlled by container opacity. */
.sg-watermark {
    position: absolute;
    width: 100%;
    height: 140%;
    top: -20%;
    left: 0;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}
.sg-watermark--red {
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 800' fill='none'%3E%3Cellipse cx='1050' cy='250' rx='280' ry='220' fill='%23E53935' opacity='.6'/%3E%3Cellipse cx='200' cy='550' rx='250' ry='200' fill='%23E53935' opacity='.45'/%3E%3Cellipse cx='700' cy='450' rx='180' ry='160' fill='%23E53935' opacity='.3'/%3E%3Ccircle cx='400' cy='250' r='120' fill='%23E53935' opacity='.25'/%3E%3Ccircle cx='900' cy='600' r='100' fill='%23E53935' opacity='.2'/%3E%3C/svg%3E");
}
.sg-watermark--white {
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 800' fill='none'%3E%3Cellipse cx='200' cy='280' rx='250' ry='200' fill='white' opacity='.5'/%3E%3Cellipse cx='1050' cy='500' rx='280' ry='220' fill='white' opacity='.4'/%3E%3Cellipse cx='600' cy='400' rx='170' ry='140' fill='white' opacity='.3'/%3E%3Ccircle cx='900' cy='200' r='110' fill='white' opacity='.25'/%3E%3Ccircle cx='350' cy='620' r='90' fill='white' opacity='.2'/%3E%3C/svg%3E");
}
/* Gray variant for light --gray sections */
.sg-watermark--gray {
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 800' fill='none'%3E%3Cellipse cx='1100' cy='300' rx='260' ry='210' fill='%23E5E7EB' opacity='.6'/%3E%3Cellipse cx='250' cy='500' rx='230' ry='190' fill='%23E5E7EB' opacity='.5'/%3E%3Ccircle cx='700' cy='400' r='140' fill='%23E5E7EB' opacity='.35'/%3E%3Ccircle cx='400' cy='200' r='100' fill='%23E5E7EB' opacity='.25'/%3E%3C/svg%3E");
}
.sg-section--expertise .sg-section__inner,
.sg-section--talks .sg-section__inner {
    position: relative;
    z-index: 1;
}
.sg-section--talks {
    position: relative;
    overflow: hidden;
}

/* ── 8b. Expertise Cards (3x2 grid) ── */
.sg-expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.sg-expertise-card {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    border: 1px solid rgba(226,232,240,.6);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: border-color .3s, box-shadow .3s, transform .3s;
    position: relative;
    overflow: hidden;
}
/* Circle expand / radial reveal — blob hover effect
   The ::before starts as a small circle at the icon position,
   then scales up to cover the entire card on hover.
   Reusable: add overflow:hidden + this ::before pattern to any card. */
.sg-expertise-card::before {
    content: '';
    position: absolute;
    width: 72px;
    height: 72px;
    top: 2.5rem;
    left: 50%;
    transform: translate(-50%, 0) scale(1);
    background: var(--sg-primary);
    border-radius: 50%;
    opacity: 0;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .3s;
    z-index: 0;
    pointer-events: none;
}
.sg-expertise-card:hover::before {
    transform: translate(-50%, 0) scale(8);
    opacity: 1;
}
.sg-expertise-card:hover {
    border-color: var(--sg-primary);
    box-shadow: 0 8px 30px rgba(229,57,53,.12);
    transform: translateY(-2px);
}
.sg-expertise-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--sg-primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: var(--sg-primary);
    transition: background .3s, color .3s;
    position: relative;
    z-index: 1;
}
.sg-expertise-card:hover .sg-expertise-card__icon {
    background: rgba(255,255,255,.2);
    color: var(--sg-white);
}
.sg-expertise-card__icon svg {
    flex-shrink: 0;
}
.sg-expertise-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sg-gray-800);
    line-height: 1.4;
    position: relative;
    z-index: 1;
    transition: color .3s;
}
.sg-expertise-card:hover .sg-expertise-card__title {
    color: var(--sg-white);
}

/* ── 9. Affiliations Section — dark blue band with wave transitions ── */
.sg-section--affiliations {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sg-gray-900) 0%, var(--sg-dark) 50%, var(--sg-dark-lighter) 100%);
    color: var(--sg-white);
    padding-top: 10rem;
    padding-bottom: 10rem;
    margin-top: 0;
}
/* Wave transition top — matches Conférences section (lavender) */
.sg-section--affiliations::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--sg-lavender-50);
    clip-path: ellipse(55% 100% at 50% 0%);
    z-index: 2;
}
/* Wave transition bottom — matches Projets section (gray) */
.sg-section--affiliations::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--sg-gray-50);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}
.sg-section--affiliations .sg-section__title {
    color: var(--sg-white);
}
.sg-section--affiliations .sg-section__subtitle {
    color: rgba(255,255,255,.7);
}
.sg-section--affiliations .sg-section__inner {
    position: relative;
    z-index: 1;
}
/* Watermark shape — same compass star, but white on blue */
.sg-section--affiliations .sg-affiliations-grid {
    position: relative;
}
/* Watermark now injected as real DOM .sg-watermark--white div for parallax */

/* Affiliation cards — white on blue, with radial reveal in accent gold */
.sg-affiliations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}
/* Row 1: 2/3 + 1/3 */
.sg-affiliations-grid .sg-affiliation-card:nth-child(1) { grid-column: 1 / 3; }
.sg-affiliations-grid .sg-affiliation-card:nth-child(2) { grid-column: 3 / 4; }
/* Row 2: 1/3 + 2/3 */
.sg-affiliations-grid .sg-affiliation-card:nth-child(3) { grid-column: 1 / 2; }
.sg-affiliations-grid .sg-affiliation-card:nth-child(4) { grid-column: 2 / 4; }
@media (max-width: 700px) {
    .sg-affiliations-grid { grid-template-columns: 1fr; }
    .sg-affiliations-grid .sg-affiliation-card:nth-child(n) { grid-column: auto; }
}
.sg-affiliation-card {
    padding: 3rem 2.5rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    transition: transform .3s, box-shadow .3s, background .3s;
    position: relative;
    overflow: hidden;
}
/* Blob hover — accent gold reveal */
.sg-affiliation-card::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    top: 0;
    left: 0;
    transform: scale(1);
    transform-origin: top left;
    background: var(--sg-primary);
    border-radius: 50%;
    opacity: 0;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .3s;
    z-index: 0;
    pointer-events: none;
}
.sg-affiliation-card:hover::before {
    transform: scale(12);
    opacity: 1;
}
.sg-affiliation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
    border-color: var(--sg-primary);
}
.sg-affiliation-card__role {
    font-size: .8rem;
    font-weight: 700;
    color: var(--sg-primary);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .6rem;
    position: relative;
    z-index: 1;
    transition: color .3s;
}
.sg-affiliation-card:hover .sg-affiliation-card__role {
    color: rgba(255,255,255,.85);
}
.sg-affiliation-card__name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .6rem;
    position: relative;
    z-index: 1;
}
.sg-affiliation-card__name a { color: var(--sg-white); }
.sg-affiliation-card__name a:hover { color: var(--sg-white); text-decoration: underline; }
.sg-affiliation-card__desc {
    font-size: .95rem;
    line-height: 1.6;
    color: rgba(255,255,255,.7);
    margin: 0;
    position: relative;
    z-index: 1;
    transition: color .3s;
}
.sg-affiliation-card:hover .sg-affiliation-card__desc {
    color: rgba(255,255,255,.9);
}

/* ── 10a. Stat Bar (typographic, non-interactive) ── */
.sg-stat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--sg-gray-200);
}
.sg-stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
}
.sg-stat-block__number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--sg-dark);
    letter-spacing: -.02em;
}
.sg-stat-block__label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--sg-gray-600);
}
.sg-stat-block__context {
    font-size: .7rem;
    color: var(--sg-gray-400);
    font-weight: 400;
}
.sg-stat-bar--centered {
    justify-content: center;
    gap: 4rem;
}
a.sg-stat-block--link {
    text-decoration: none;
    color: inherit;
    padding: 1.2rem 2rem;
    border-radius: var(--sg-radius-lg);
    border: 1px solid var(--sg-gray-200);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.sg-stat-block--link:hover {
    border-color: var(--sg-primary);
    box-shadow: var(--sg-shadow-md);
    transform: translateY(-2px);
}
a.sg-stat-block--link .sg-stat-block__context {
    color: var(--sg-primary);
    font-weight: 600;
}
/* ── 10a-bis. Filter Bar (interactive pills) ── */
.sg-filter-bar {
    display: flex;
    gap: .5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.sg-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.2rem;
    border: 1px solid var(--sg-gray-200);
    border-radius: 20px;
    background: var(--sg-white);
    color: var(--sg-gray-600);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--sg-font);
}
.sg-filter-btn:hover {
    border-color: var(--sg-primary);
    color: var(--sg-primary);
    background: var(--sg-primary-50);
}
.sg-filter-btn.is-active {
    background: var(--sg-primary);
    color: var(--sg-white);
    border-color: var(--sg-primary);
}
.sg-filter-btn__count {
    font-size: .7rem;
    font-weight: 700;
    background: rgba(0,0,0,.08);
    padding: .1rem .45rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}
.sg-filter-btn.is-active .sg-filter-btn__count {
    background: rgba(255,255,255,.25);
}
.sg-filter-btn--miaou.is-active {
    background: var(--sg-primary);
}
.sg-filter-btn--linkedin.is-active {
    background: #0A66C2;
    border-color: #0A66C2;
}
.sg-filter-btn--site.is-active {
    background: var(--sg-dark);
    border-color: var(--sg-dark);
}
a.sg-filter-btn {
    text-decoration: none;
}
.sg-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--sg-gray-400);
}
.sg-empty-state p {
    margin: 0 0 .5rem;
}
.sg-empty-state a {
    color: var(--sg-primary);
}
/* ── 10a-ter. Section desc (under H2) ── */
.sg-section__desc {
    color: var(--sg-gray-500);
    font-size: .95rem;
    line-height: 1.6;
    max-width: 650px;
    margin-bottom: 2rem;
}

/* ── 10b. Article Cards ── */
.sg-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
/* Carousel: full-width swipeable cards */
.sg-carousel-wrap {
    position: relative;
}
.sg-articles-grid--scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
}
.sg-articles-grid--scroll::-webkit-scrollbar {
    display: none;
}
.sg-articles-grid--scroll .sg-article-card {
    flex: 0 0 calc(33.333% - 1rem);
    scroll-snap-align: start;
}
/* Carousel nav arrows */
.sg-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sg-white);
    border: 1px solid var(--sg-gray-200);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: border-color .2s, box-shadow .2s;
    color: var(--sg-dark);
}
.sg-carousel-btn:hover {
    border-color: var(--sg-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.sg-carousel-btn--prev { left: -20px; }
.sg-carousel-btn--next { right: -20px; }
.sg-carousel-btn[disabled] { opacity: .3; pointer-events: none; }
/* Carousel dots */
.sg-carousel-dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: .5rem;
}
.sg-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sg-gray-300);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.sg-carousel-dot.is-active {
    background: var(--sg-primary);
    transform: scale(1.25);
}
@media (max-width: 1024px) {
    .sg-articles-grid--scroll .sg-article-card {
        flex: 0 0 calc(50% - .75rem);
    }
}
@media (max-width: 640px) {
    .sg-articles-grid--scroll .sg-article-card {
        flex: 0 0 85%;
    }
    .sg-carousel-btn { display: none; }
}
.sg-article-card {
    background: var(--sg-white);
    border-radius: var(--sg-radius-lg);
    padding: 0;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--sg-gray-200);
}
.sg-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sg-shadow-lg);
    border-color: transparent;
}
/* Cover gradient banner */
.sg-article-card__cover {
    width: 100%;
    height: 140px;
    overflow: hidden;
}
.sg-article-card__cover svg {
    width: 100%;
    height: 100%;
    display: block;
}
.sg-article-card__body {
    padding: 1.5rem 1.8rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sg-article-card__tags { margin-bottom: .8rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.sg-article-card__tag {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--sg-gray-500);
    padding: 0;
    background: none;
}
.sg-article-card__source {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
    background: #0A66C2;
    padding: .15rem .5rem;
    border-radius: 3px;
    margin-right: .3rem;
}
.sg-article-card__source--miaou { background: var(--sg-primary); }
.sg-article-card__tag + .sg-article-card__tag::before {
    content: '\00b7';
    margin-right: .4rem;
    color: var(--sg-gray-400);
}
.sg-article-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .8rem;
    line-height: 1.4;
}
.sg-article-card__title a { color: var(--sg-gray-900); transition: color .2s; }
.sg-article-card__title a:hover { color: var(--sg-primary); }
.sg-article-card__excerpt {
    font-size: .88rem;
    color: var(--sg-gray-500);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sg-article-card__footer {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--sg-gray-400);
    padding: 1rem 1.8rem;
    margin-top: auto;
}
.sg-article-card__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.sg-article-card__author { font-weight: 600; color: var(--sg-gray-600); }
.sg-article-card__date::before { content: '\00b7'; margin: 0 .3rem; }

/* ── 11. Talks — featured + grid layout ── */
/* 1 featured (left, spans 2 rows) + 2 small (right, stacked) */
.sg-talks-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.25rem;
}
/* Featured video card (left column, spans both rows) */
.sg-video-card--featured {
    grid-row: 1 / 3;
    grid-column: 1;
}
/* Video cards — thumbnail-based with overlay */
.sg-video-card {
    position: relative;
    border-radius: var(--sg-radius-lg);
    overflow: hidden;
    background: var(--sg-gray-900);
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s;
}
.sg-video-card--featured { aspect-ratio: auto; min-height: 100%; }
.sg-video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sg-shadow-lg);
}
.sg-video-card__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .3s;
}
.sg-video-card:hover .sg-video-card__thumb {
    transform: scale(1.05);
}
/* Dark gradient overlay — bottom to top */
.sg-video-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.1) 100%);
    transition: background .3s;
}
.sg-video-card:hover .sg-video-card__overlay {
    background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.05) 100%);
}
/* Play button — centered */
.sg-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 56px;
    height: 56px;
    background: var(--sg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 4px 20px rgba(229,57,53,.4);
}
.sg-video-card--featured .sg-video-card__play { width: 68px; height: 68px; }
.sg-video-card:hover .sg-video-card__play {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(229,57,53,.5);
}
.sg-video-card__play svg { fill: var(--sg-white); width: 22px; height: 22px; margin-left: 3px; }
.sg-video-card--featured .sg-video-card__play svg { width: 28px; height: 28px; }
/* Text content — bottom of card over gradient */
.sg-video-card__body {
    position: relative;
    z-index: 1;
    padding: 1.2rem 1.4rem;
    color: var(--sg-white);
}
.sg-video-card--featured .sg-video-card__body { padding: 1.8rem 2rem; }
.sg-video-card__badge {
    display: inline-block;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--sg-white);
    padding: .25rem .6rem;
    border-radius: 4px;
    margin-bottom: .5rem;
}
.sg-video-card__title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--sg-white);
    margin-bottom: .3rem;
}
.sg-video-card--featured .sg-video-card__title { font-size: 1.2rem; }
.sg-video-card__title a { color: inherit; }
.sg-video-card__title a:hover { color: inherit; }
.sg-video-card__meta {
    font-size: .75rem;
    color: rgba(255,255,255,.65);
}
.sg-video-card--featured .sg-video-card__meta { font-size: .85rem; }

/* Fallback text-only card for talks without video */
.sg-talk-card {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--sg-white);
    border-radius: var(--sg-radius);
    border: 1px solid var(--sg-gray-200);
    transition: box-shadow .2s, border-color .2s;
    align-items: flex-start;
}
.sg-talk-card:hover { box-shadow: var(--sg-shadow-md); border-color: transparent; }
.sg-talk-card__icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--sg-gray-50);
    border-radius: var(--sg-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sg-talk-card__body { flex: 1; min-width: 0; }
.sg-talk-card__title { font-size: .95rem; font-weight: 600; margin-bottom: .2rem; }
.sg-talk-card__title a { color: var(--sg-gray-900); }
.sg-talk-card__title a:hover { color: var(--sg-primary); }
.sg-talk-card__meta { font-size: .8rem; color: var(--sg-gray-400); }
.sg-talk-card__badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--sg-primary-light);
    color: var(--sg-primary);
    padding: .15rem .5rem;
    border-radius: 4px;
    margin-top: .3rem;
}
/* CTA card inside video grid — gradient Koeki */
.sg-talks-cta {
    position: relative;
    border-radius: var(--sg-radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 60%, #2A1A2E 100%);
    color: var(--sg-white);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.sg-talks-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(229,57,53,.25);
}
.sg-talks-cta__title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.sg-talks-cta__btn {
    display: inline-block;
    padding: .6rem 1.4rem;
    background: var(--sg-white);
    color: var(--sg-dark);
    font-weight: 700;
    font-size: .85rem;
    border-radius: var(--sg-radius);
    transition: background .15s;
}
.sg-talks-cta:hover .sg-talks-cta__btn {
    background: var(--sg-primary-light);
}
/* Non-video talks grid below the video layout */
.sg-talks-text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ── 11b. Media Hub Grid ── */
.sg-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* ── 12. Project Cards — flat, no borders ── */
.sg-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.sg-project-card {
    position: relative;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
}
.sg-project-card__year {
    font-size: .7rem;
    font-weight: 600;
    color: var(--sg-gray-400);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .5rem;
}
.sg-project-card__name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: .15rem;
    line-height: 1.2;
}
.sg-project-card__name a {
    color: var(--sg-gray-900);
    transition: color .15s;
}
.sg-project-card__name a:hover { color: var(--sg-primary); }
.sg-project-card__role {
    font-size: .8rem;
    color: var(--sg-primary);
    font-weight: 600;
    margin-bottom: .6rem;
}
.sg-project-card__desc {
    font-size: .88rem;
    color: var(--sg-gray-500);
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
    padding-top: .6rem;
    border-top: 1px solid var(--sg-gray-200);
}
.sg-project-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.sg-project-card__tags { display: flex; gap: .3rem; flex-wrap: wrap; }
.sg-project-card__tag {
    font-size: .65rem;
    background: var(--sg-lavender-100);
    color: var(--sg-gray-600);
    padding: .15rem .45rem;
    border-radius: 3px;
}
.sg-project-card__link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--sg-primary);
    white-space: nowrap;
    transition: gap .2s;
}
.sg-project-card:hover .sg-project-card__link { gap: .5rem; }
.sg-project-card__link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* CTA inside projects grid — spans 2 cols on last row */
.sg-projects-cta {
    grid-column: 2 / 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem;
    background: var(--sg-dark);
    border-radius: var(--sg-radius-lg);
    color: var(--sg-white);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.sg-projects-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.sg-projects-cta__title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.2rem;
}
.sg-projects-cta__btn {
    display: inline-block;
    padding: .6rem 1.4rem;
    background: var(--sg-white);
    color: var(--sg-dark);
    font-weight: 700;
    font-size: .85rem;
    border-radius: var(--sg-radius);
    transition: background .15s;
}
.sg-projects-cta:hover .sg-projects-cta__btn {
    background: var(--sg-primary-light);
}
@media (max-width: 700px) {
    .sg-projects-cta { grid-column: auto; }
}

/* ── 13. About page ── */
.sg-about__bio {
    max-width: var(--sg-content-width);
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}
.sg-about__expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.sg-about__expertise-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1rem;
    background: var(--sg-gray-50);
    border-radius: var(--sg-radius);
    font-weight: 500;
    font-size: .9rem;
}
.sg-about__expertise-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    color: var(--sg-primary);
}
.sg-about__expertise-icon svg {
    width: 20px;
    height: 20px;
}
.sg-section__cta {
    text-align: center;
    margin-top: 3rem;
}
/* ── Section "voir plus" links (maillage interne) ── */
.sg-section__more {
    text-align: center;
    margin-top: 2rem;
    font-size: .9rem;
}
.sg-section__more a {
    color: var(--sg-gray-500);
    text-decoration: none;
    transition: color .2s;
}
.sg-section__more a:hover {
    color: var(--sg-dark);
}
/* ── Expertise page links on About page ── */
.sg-about__expertise-links {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: center;
    margin-top: 2rem;
}
.sg-about__expertise-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .5rem 1.2rem;
    background: var(--sg-white);
    border-radius: 2rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--sg-dark);
    text-decoration: none;
    transition: background .2s, color .2s;
}
.sg-about__expertise-link:hover {
    background: var(--sg-dark);
    color: var(--sg-white);
}
.sg-about__expertise-link svg {
    transition: transform .2s;
}
.sg-about__expertise-link:hover svg {
    transform: translateX(3px);
}
.sg-sameas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
}
.sg-sameas-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .4rem .8rem;
    background: var(--sg-gray-50);
    border: 1px solid var(--sg-gray-200);
    border-radius: 20px;
    font-size: .8rem;
    color: var(--sg-gray-600);
    transition: all .15s;
}
.sg-sameas-link:hover {
    background: var(--sg-primary-light);
    border-color: var(--sg-primary);
    color: var(--sg-primary);
}

/* ── 13b. Entity Summary ── */
.sg-entity-summary {
    max-width: 800px;
    margin: 0 auto;
}
.sg-entity-summary .sg-stat-bar {
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}
.sg-entity-summary__card {
    background: var(--sg-gray-50);
    border: 1px solid var(--sg-gray-200);
    border-radius: var(--sg-radius-lg);
    padding: 2rem 2.5rem;
}
.sg-entity-summary__card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--sg-gray-700);
    margin: 0;
    text-align: left;
}
.sg-entity-summary strong {
    color: var(--sg-gray-900);
    font-weight: 600;
}
.sg-section__inner--narrow {
    max-width: 800px;
}

/* ── 13c. Timeline ── */
.sg-timeline {
    position: relative;
    padding-left: 2.5rem;
    max-width: 100%;
    width: 100%;
}
.sg-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: .4rem;
    bottom: .4rem;
    width: 3px;
    background: linear-gradient(to bottom, var(--sg-primary), var(--sg-gray-300));
    border-radius: 2px;
}
.sg-timeline__item {
    position: relative;
    padding-bottom: 2rem;
}
.sg-timeline__item:last-child {
    padding-bottom: 0;
}
.sg-timeline__item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: .45rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--sg-white);
    border: 3px solid var(--sg-primary);
    z-index: 1;
}
.sg-timeline__item:first-child::before {
    background: var(--sg-primary);
    width: 13px;
    height: 13px;
    left: calc(-2.5rem - 1px);
}
.sg-timeline__year {
    font-size: .85rem;
    font-weight: 700;
    color: var(--sg-primary);
    letter-spacing: .03em;
    margin-bottom: .2rem;
}
.sg-timeline__label {
    font-size: .95rem;
    color: var(--sg-gray-700);
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ── 13c-bis. Career Timeline (editorial, no cards) ── */
.sg-career-tl {
    position: relative;
    padding-left: 2.5rem;
    max-width: 100%;
    width: 100%;
}
.sg-career-tl::before {
    content: '';
    position: absolute;
    left: 0;
    top: .4rem;
    bottom: .4rem;
    width: 3px;
    background: linear-gradient(to bottom, var(--sg-primary), var(--sg-gray-300));
    border-radius: 2px;
}
.sg-career-tl__item {
    position: relative;
    padding-bottom: 2.5rem;
}
.sg-career-tl__item:last-child {
    padding-bottom: 0;
}
.sg-career-tl__item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: .35rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--sg-white);
    border: 3px solid var(--sg-primary);
    z-index: 1;
}
.sg-career-tl__item:first-child::before {
    background: var(--sg-primary);
    width: 13px;
    height: 13px;
    left: calc(-2.5rem - 1px);
}
.sg-career-tl__header {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: .2rem;
}
.sg-career-tl__company {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--sg-dark);
    line-height: 1.2;
}
.sg-career-tl__company a {
    color: var(--sg-dark);
    transition: color .2s;
}
.sg-career-tl__company a:hover {
    color: var(--sg-primary);
}
.sg-career-tl__dates {
    font-size: .78rem;
    font-weight: 500;
    color: var(--sg-gray-400);
}
.sg-career-tl__role {
    font-size: .9rem;
    font-weight: 600;
    color: var(--sg-primary);
    margin-bottom: .15rem;
}
.sg-career-tl__location {
    font-size: .78rem;
    color: var(--sg-gray-400);
    margin-bottom: .5rem;
}
.sg-career-tl__desc {
    font-size: .9rem;
    color: var(--sg-gray-600);
    line-height: 1.6;
    margin-bottom: .4rem;
}
.sg-career-tl__achievements {
    font-size: .85rem;
    color: var(--sg-gray-500);
    line-height: 1.6;
}
.sg-career-tl__badges {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}
.sg-career-tl__badge {
    display: inline-flex;
    align-items: center;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .15rem .5rem;
    border-radius: 3px;
}
.sg-career-tl__badge--ymyl {
    background: #FEF3C7;
    color: #92400E;
}
.sg-career-tl__badge--founder {
    background: var(--sg-lavender-100);
    color: #4338CA;
}
.sg-career-tl__badge--current {
    background: #D1FAE5;
    color: #065F46;
}

/* ── 13c-ter. Education (compact, no cards) ── */
.sg-education-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.sg-education-entry {
    display: flex;
    align-items: baseline;
    gap: .8rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--sg-gray-200);
}
.sg-education-entry:last-child {
    border-bottom: none;
}
.sg-education-entry__year {
    flex-shrink: 0;
    font-size: .8rem;
    font-weight: 700;
    color: var(--sg-primary);
    min-width: 65px;
}
.sg-education-entry__body {
    flex: 1;
    min-width: 0;
}
.sg-education-entry__degree {
    font-size: .92rem;
    font-weight: 700;
    color: var(--sg-dark);
}
.sg-education-entry__school {
    font-size: .85rem;
    color: var(--sg-gray-500);
}
.sg-education-entry__meta {
    font-size: .78rem;
    color: var(--sg-gray-400);
}
.sg-education-entry__honors {
    display: inline-flex;
    font-size: .65rem;
    font-weight: 700;
    color: #92400E;
    background: #FEF3C7;
    padding: .1rem .4rem;
    border-radius: 3px;
    margin-left: .35rem;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .sg-career-tl { padding-left: 2rem; }
    .sg-career-tl__item::before { left: -2rem; }
    .sg-career-tl__item:first-child::before { left: calc(-2rem - 1px); }
    .sg-career-tl__header { flex-direction: column; gap: .1rem; }
    .sg-education-entry { flex-direction: column; gap: .1rem; }
}

/* ── 13d. Publications ── */
.sg-publications-grid {
    display: grid;
    gap: 1rem;
    max-width: 750px;
    margin: 0 auto;
}
.sg-publication-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--sg-white);
    border-radius: var(--sg-radius);
    border: 1px solid var(--sg-gray-200);
    transition: border-color .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
}
.sg-publication-card:hover {
    border-color: var(--sg-primary);
    box-shadow: var(--sg-shadow);
}
.sg-publication-card__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sg-primary-50);
    border-radius: 8px;
    font-size: 1rem;
}
.sg-publication-card__body {
    flex: 1;
    min-width: 0;
}
.sg-publication-card__title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--sg-gray-900);
    margin-bottom: .2rem;
    line-height: 1.3;
}
.sg-publication-card__meta {
    font-size: .8rem;
    color: var(--sg-gray-400);
}
.sg-publication-card__publisher {
    color: var(--sg-primary);
    font-weight: 500;
}
.sg-publication-card__arrow {
    flex-shrink: 0;
    align-self: center;
    color: var(--sg-gray-300);
    transition: color .2s, transform .2s;
}
.sg-publication-card:hover .sg-publication-card__arrow {
    color: var(--sg-primary);
    transform: translateX(3px);
}

/* ── 13e. Services (Homepage) ── */
.sg-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.sg-service-card {
    background: var(--sg-white);
    border: 1px solid var(--sg-gray-200);
    border-radius: var(--sg-radius-lg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
}
.sg-service-card:hover {
    border-color: var(--sg-primary);
    box-shadow: var(--sg-shadow-md);
}
.sg-service-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sg-primary-50);
    border-radius: 10px;
    margin-bottom: 1.2rem;
    color: var(--sg-primary);
}
.sg-service-card__icon svg {
    width: 22px;
    height: 22px;
}
.sg-service-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sg-gray-900);
    margin-bottom: .5rem;
}
.sg-service-card__desc {
    font-size: .9rem;
    color: var(--sg-gray-500);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.2rem;
}
.sg-service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--sg-primary);
    text-decoration: none;
    transition: gap .2s;
}
.sg-service-card__cta:hover {
    gap: .7rem;
}
.sg-service-card__cta svg {
    width: 14px;
    height: 14px;
}

/* ── 13f. Service Page ── */
.sg-service-hero {
    background: var(--sg-gray-50);
    padding: 5rem 1.5rem 3.5rem;
    text-align: center;
}
.sg-service-hero__inner {
    max-width: 700px;
    margin: 0 auto;
}
.sg-service-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--sg-primary);
    background: var(--sg-primary-50);
    padding: .4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
}
.sg-service-hero__badge svg {
    width: 16px;
    height: 16px;
}
.sg-service-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--sg-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.sg-service-hero__for {
    font-size: 1rem;
    color: var(--sg-gray-500);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.sg-service-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--sg-gray-600);
    max-width: 650px;
    margin: 0 auto;
}
.sg-approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: step;
    max-width: 900px;
    margin: 0 auto;
}
.sg-approach-step {
    text-align: center;
    counter-increment: step;
}
.sg-approach-step__number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sg-primary);
    color: var(--sg-white);
    font-weight: 700;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .8rem;
}
.sg-approach-step__title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--sg-gray-900);
    margin-bottom: .3rem;
}
.sg-approach-step__detail {
    font-size: .85rem;
    color: var(--sg-gray-500);
    line-height: 1.5;
}
.sg-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}
.sg-proof-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: 1rem;
    background: var(--sg-white);
    border-radius: var(--sg-radius);
    border: 1px solid var(--sg-gray-200);
}
.sg-proof-item__check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sg-success);
    color: var(--sg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.sg-proof-item__check svg {
    width: 12px;
    height: 12px;
}
.sg-proof-item__text {
    font-size: .9rem;
    color: var(--sg-gray-700);
    line-height: 1.4;
}
.sg-cta-bar__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ── 13g. Chiffres Clés (Homepage) ── */
.sg-section--chiffres {
    position: relative;
    overflow: hidden;
}
.sg-chiffres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.sg-chiffre {
    background: var(--sg-white);
    border: 1px solid var(--sg-gray-200);
    border-left: 3px solid var(--sg-primary);
    border-radius: var(--sg-radius);
    padding: 1.2rem 1rem;
    text-align: left;
}
.sg-chiffre__value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--sg-dark);
    line-height: 1.1;
    letter-spacing: -.02em;
}
.sg-chiffre__label {
    font-size: .85rem;
    font-weight: 500;
    color: var(--sg-gray-700);
    margin-top: .25rem;
}
.sg-chiffre__suffix {
    font-size: .75rem;
    color: var(--sg-gray-400);
    margin-top: .1rem;
}

/* ── 14. Article page ── */
.sg-article__header {
    max-width: var(--sg-content-width);
    margin: 2rem auto;
    text-align: center;
}
.sg-article__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    margin-bottom: 1.5rem;
    font-size: .85rem;
    color: var(--sg-gray-400);
}
.sg-article__author-link {
    color: var(--sg-dark);
    text-decoration: none;
    font-weight: 500;
}
.sg-article__author-link:hover {
    text-decoration: underline;
}
.sg-article__content {
    max-width: var(--sg-content-width);
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.8;
}
.sg-article__content h2 { margin: 2rem 0 1rem; }
.sg-article__content h3 { margin: 1.5rem 0 .8rem; }
.sg-article__content blockquote {
    border-left: 4px solid var(--sg-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--sg-primary-50);
    border-radius: 0 var(--sg-radius) var(--sg-radius) 0;
    color: var(--sg-gray-600);
    font-style: italic;
}
.sg-article__content code {
    background: var(--sg-gray-100);
    padding: .15rem .4rem;
    border-radius: 4px;
    font-size: .9em;
}
.sg-article__content pre {
    background: var(--sg-gray-900);
    color: #e2e8f0;
    padding: 1.2rem;
    border-radius: var(--sg-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}
.sg-article__content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.sg-author-box {
    max-width: var(--sg-content-width);
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--sg-gray-200);
    border-bottom: 1px solid var(--sg-gray-200);
}
.sg-author-box__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sg-primary-light);
    margin-bottom: 1rem;
}
.sg-author-box__name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sg-dark);
    margin-bottom: .8rem;
}
.sg-author-box__bio {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--sg-gray-600);
    max-width: 540px;
    margin: 0 auto 1.2rem;
}
.sg-author-box__bio a {
    color: var(--sg-primary);
    font-weight: 600;
}
.sg-author-box__bio a:hover { color: var(--sg-primary-dark); }
.sg-author-box__social {
    display: flex;
    gap: .6rem;
}
.sg-author-box__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sg-gray-200);
    color: var(--sg-gray-600);
    transition: background .2s, color .2s;
}
.sg-author-box__social a:hover {
    background: var(--sg-primary);
    color: var(--sg-white);
}

/* ── 15. Contact ── */
.sg-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.sg-form-group { margin-bottom: 1rem; }
.sg-form-group label {
    display: block;
    margin-bottom: .3rem;
    font-weight: 600;
    font-size: .9rem;
    color: var(--sg-gray-600);
}
.sg-form-group input,
.sg-form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--sg-gray-200);
    border-radius: var(--sg-radius);
    font-family: var(--sg-font);
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}
.sg-form-group input:focus,
.sg-form-group textarea:focus {
    outline: none;
    border-color: var(--sg-primary);
    box-shadow: 0 0 0 3px rgba(229,57,53,.1);
}
.sg-contact__channels {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.sg-contact__channel {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1rem;
    background: var(--sg-gray-50);
    border-radius: var(--sg-radius);
    font-size: .9rem;
    color: var(--sg-gray-600);
    transition: background .15s;
}
.sg-contact__channel:hover { background: var(--sg-primary-light); color: var(--sg-primary); }
.sg-contact__channel span { font-size: 1.2rem; }

/* ── 16. CTA Bar ── */
.sg-cta-bar {
    background: var(--sg-dark);
    color: var(--sg-white);
    text-align: center;
    padding: 6rem 1.5rem;
    margin: 3rem 0;
}
.sg-cta-bar__inner {
    max-width: 600px;
    margin: 0 auto;
}
.sg-cta-bar h2 { color: var(--sg-white); margin-bottom: .8rem; }
.sg-cta-bar p { opacity: .85; margin-bottom: 1.5rem; }
.sg-cta-bar__sub {
    margin-top: 1.2rem;
    font-size: .85rem;
    opacity: .7;
}
.sg-cta-bar__sub a {
    color: var(--sg-white);
    text-decoration: none;
}
.sg-cta-bar__sub a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ── 16b. CTA Inline (light, intercalated) ── */
.sg-cta-inline {
    background: var(--sg-white);
    border-top: 2px solid #FCCDCD;
    border-bottom: 2px solid #FCCDCD;
    padding: 5rem 1.5rem;
    margin: 3rem 0;
}
.sg-cta-inline__inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.sg-cta-inline__text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sg-dark);
    line-height: 1.4;
    margin: 0;
}
.sg-cta-inline__text span {
    display: block;
    font-size: .88rem;
    font-weight: 400;
    color: #252031;
    opacity: .55;
    margin-top: .25rem;
}
.sg-cta-inline .sg-btn {
    flex-shrink: 0;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .sg-cta-inline__inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ── 17. Footer ── */
.sg-footer {
    background: var(--sg-dark);
    color: rgba(255,255,255,.7);
    padding: 3rem 1.5rem 1rem;
}
.sg-footer__inner {
    max-width: var(--sg-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}
.sg-footer__brand {
    font-size: 1.1rem;
    color: var(--sg-white);
    margin-bottom: .3rem;
}
.sg-footer__job {
    color: rgba(255,255,255,.5);
    font-size: .85rem;
    margin-bottom: 1rem;
}
.sg-footer__desc {
    font-size: .8rem;
    line-height: 1.6;
    color: rgba(255,255,255,.45);
    max-width: 320px;
}
.sg-footer h3 {
    color: var(--sg-white);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}
.sg-footer nav { display: flex; flex-direction: column; gap: .4rem; }
.sg-footer a { color: rgba(255,255,255,.6); font-size: .85rem; transition: color .15s; }
.sg-footer a:hover { color: var(--sg-white); }
.sg-footer__social { display: flex; gap: .6rem; margin-top: .8rem; }
.sg-footer__social a { font-size: 1.2rem; }
.sg-footer__bottom {
    max-width: var(--sg-max-width);
    margin: 2rem auto 0;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1rem;
    text-align: center;
    font-size: .8rem;
}

/* ── 18. Page wrapper ── */
.sg-page {
    max-width: var(--sg-content-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
.sg-page h1 { margin-bottom: 1rem; }
.sg-page__intro { color: var(--sg-gray-500); margin-bottom: 2rem; }

/* ── 19. Parallax watermark layers ──
   Driven by JS (data-parallax). The ::before pseudo-elements on
   .sg-section--expertise and .sg-section--affiliations get
   translate3d applied via a tiny scroll observer. */
[data-parallax] {
    will-change: transform;
    transition: transform 0s linear;
}

/* ── 20. Responsive ── */
@media (max-width: 768px) {
    /* Header identity band — compact on mobile */
    .sg-header__identity { padding: .5rem 1rem; gap: .8rem; }
    .sg-header__avatar { width: 40px; height: 40px; border-width: 2px; }
    .sg-header__entity-name { font-size: .95rem; }
    .sg-header__entity-claim { display: none; }
    .sg-header__identity .sg-btn { display: none; }
    /* Nav bar — mobile dropdown */
    .sg-header__nav {
        display: none;
        position: absolute;
        top: 44px;
        left: 0;
        right: 0;
        background: var(--sg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--sg-shadow-lg);
        z-index: 200;
    }
    .sg-header__nav.is-open { display: flex; }
    .sg-header__burger { display: block; }
    .sg-header__dropdown { width: 100%; }
    .sg-header__dropdown-menu {
        display: block;
        position: static;
        transform: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 .75rem;
        min-width: auto;
    }
    .sg-header__dropdown-menu::before { display: none; }
    .sg-header__dropdown-menu a {
        padding: .4rem 0;
        color: var(--sg-gray-500) !important;
        font-size: .85rem;
    }
    .sg-header__dropdown-trigger svg { display: none; }
    .sg-header__dropdown-trigger {
        font-size: .9rem;
        font-weight: 600;
        color: var(--sg-gray-800);
    }
    .sg-hero { min-height: auto; margin-bottom: 0; }
    .sg-hero::before { display: none; }
    .sg-hero::after { display: none; }
    .sg-hero__inner { flex-direction: column; text-align: center; min-height: auto; padding: 60px 1.5rem 40px; }
    .sg-hero__text { padding-right: 0; max-width: 100%; }
    .sg-hero h1 { font-size: 2rem; }
    .sg-hero .sg-btn { font-size: .9rem; padding: .7rem 1.5rem; }
    .sg-hero__photo { display: none; }
    .sg-hero--compact .sg-hero__photo { display: block; }
    .sg-hero--compact .sg-hero__photo img { width: 120px; height: 120px; }
    .sg-hero__cta { justify-content: center; }
    .sg-hero--compact::after { display: block; height: 50px; }
    .sg-hero--compact .sg-hero__inner { flex-direction: column; }
    .sg-expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .sg-services-grid { grid-template-columns: 1fr; }
    .sg-approach-grid { grid-template-columns: repeat(2, 1fr); }
    .sg-proof-grid { grid-template-columns: 1fr; }
    .sg-service-hero h1 { font-size: 1.6rem; }
    .sg-stat-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
    .sg-stat-block__number { font-size: 1.5rem; }
    .sg-articles-grid { grid-template-columns: 1fr; }
    .sg-projects-grid { grid-template-columns: 1fr; }
    .sg-talks-layout { grid-template-columns: 1fr; }
    .sg-video-card--featured { grid-row: auto; }
    .sg-video-card--featured .sg-video-card__play { width: 56px; height: 56px; }
    .sg-video-card--featured .sg-video-card__play svg { width: 22px; height: 22px; }
    .sg-video-card--featured .sg-video-card__title { font-size: 1rem; }
    .sg-contact { grid-template-columns: 1fr; }
    .sg-footer__inner { grid-template-columns: 1fr; }
    .sg-chiffres-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .sg-chiffre__value { font-size: 1.8rem; }
    .sg-entity-summary__card { padding: 1.5rem; }
    .sg-entity-summary__card p { font-size: .95rem; }
    .sg-timeline { padding-left: 2rem; }
    .sg-timeline__item::before { left: -2rem; }
    .sg-timeline__item:first-child::before { left: calc(-2rem - 1px); }
}
@media (max-width: 480px) {
    .sg-expertise-grid { grid-template-columns: 1fr; }
    h1 { font-size: 1.8rem; }
}

/* ── Video Modal ── */
.sg-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}
.sg-modal.is-open { display: flex; }
.sg-modal__inner {
    position: relative;
    width: 90vw;
    max-width: 960px;
    aspect-ratio: 16/9;
    cursor: default;
}
.sg-modal__inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--sg-radius-lg);
}
.sg-modal__close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: var(--sg-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: .25rem .5rem;
    opacity: .7;
    transition: opacity .2s;
}
.sg-modal__close:hover { opacity: 1; }

/* ── Expertise clusters (homepage) ── */
.sg-expertise-clusters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.sg-expertise-cluster {
    display: flex;
    flex-direction: column;
    background: var(--sg-white);
    border: 1px solid var(--sg-gray-200);
    border-radius: var(--sg-radius-lg);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sg-expertise-cluster:hover {
    border-color: var(--sg-primary);
    box-shadow: var(--sg-shadow-md);
    transform: translateY(-2px);
}
.sg-expertise-cluster__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}
.sg-expertise-cluster__icon {
    width: 44px;
    height: 44px;
    background: var(--sg-primary-50);
    color: var(--sg-primary);
    border-radius: var(--sg-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sg-expertise-cluster__icon svg { width: 22px; height: 22px; }
.sg-expertise-cluster__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sg-dark);
    margin: 0;
}
.sg-expertise-cluster__headline {
    font-size: .95rem;
    color: var(--sg-gray-600);
    line-height: 1.5;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}
.sg-expertise-cluster__convictions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sg-gray-100);
}
.sg-cluster__conviction {
    font-size: .8rem;
    color: var(--sg-gray-600);
    text-decoration: none;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
    transition: color .2s;
}
.sg-cluster__conviction::before {
    content: "\2192";
    position: absolute;
    left: 0;
    color: var(--sg-primary);
    font-size: .75rem;
}
.sg-cluster__conviction:hover { color: var(--sg-primary); }
.sg-expertise-cluster__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--sg-gray-100);
}
.sg-expertise-cluster__count {
    font-size: .8rem;
    color: var(--sg-gray-500);
    font-weight: 500;
}
.sg-expertise-cluster__cta {
    font-size: .85rem;
    font-weight: 600;
    color: var(--sg-primary);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.sg-expertise-cluster__cta svg { width: 16px; height: 16px; }

/* ── Expertise page ── */
.sg-expertise-intro,
.sg-expertise-philosophy {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--sg-gray-700);
}
.sg-expertise-intro p,
.sg-expertise-philosophy p {
    margin: 0 0 1rem;
}

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

/* ── Service detail blocks (inline in expertise pages) ── */
.sg-services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.sg-service-detail {
    --_accent: var(--sg-primary);
    --_accent-bg: #FFF5F5;
    --_accent-bg-end: #FFFFFF;
    background: linear-gradient(160deg, var(--_accent-bg) 0%, var(--_accent-bg-end) 60%);
    border: 1px solid color-mix(in srgb, var(--_accent) 12%, transparent);
    border-radius: var(--sg-radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.sg-service-detail:nth-child(1) { --_accent: #EB1807; --_accent-bg: #FFF5F4; --_accent-bg-end: #FFFCFC; }
.sg-service-detail:nth-child(2) { --_accent: #6360BF; --_accent-bg: #F0F0FA; --_accent-bg-end: #F9F9FE; }
.sg-service-detail:nth-child(3) { --_accent: #3D8F7D; --_accent-bg: #EDF7F4; --_accent-bg-end: #F7FCFA; }
.sg-service-detail:nth-child(4) { --_accent: #F25757; --_accent-bg: #FFF0EF; --_accent-bg-end: #FFFAFA; }
.sg-service-detail:hover {
    border-color: color-mix(in srgb, var(--_accent) 25%, transparent);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--_accent) 8%, transparent);
}
.sg-service-detail__header {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.sg-service-detail__icon {
    width: 40px;
    height: 40px;
    background: var(--_accent-bg, var(--sg-primary-50));
    color: var(--_accent, var(--sg-primary));
    border-radius: var(--sg-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sg-service-detail__icon svg { width: 20px; height: 20px; }
.sg-service-detail__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sg-dark);
    margin: 0;
}
.sg-service-detail__headline {
    font-size: .9rem;
    font-weight: 600;
    color: var(--_accent, var(--sg-primary));
    margin: 0;
    line-height: 1.4;
}
.sg-service-detail__context {
    font-size: .88rem;
    color: var(--sg-gray-600);
    line-height: 1.6;
    margin: 0;
}
/* Compact approach grid for inline services */
.sg-approach-grid--compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: none;
}
.sg-approach-grid--compact .sg-approach-step {
    text-align: left;
}
.sg-approach-grid--compact .sg-approach-step__number {
    width: 28px;
    height: 28px;
    font-size: .8rem;
    margin-bottom: .4rem;
    background: var(--_accent, var(--sg-primary));
}
.sg-approach-grid--compact .sg-approach-step__title {
    font-size: .85rem;
}
.sg-approach-grid--compact .sg-approach-step__detail {
    font-size: .8rem;
}
/* Inline proof grid for service details */
.sg-proof-grid--inline {
    grid-template-columns: 1fr;
    gap: .5rem;
    max-width: none;
}
.sg-proof-grid--inline .sg-proof-item {
    padding: .5rem .75rem;
    background: var(--sg-gray-50);
    border: none;
}
.sg-proof-grid--inline .sg-proof-item__text {
    font-size: .8rem;
}

@media (max-width: 768px) {
    .sg-services-detail-grid {
        grid-template-columns: 1fr;
    }
    .sg-approach-grid--compact {
        grid-template-columns: 1fr;
    }
}

/* ── Philosophical anchor (homepage) ── */
.sg-section--anchor {
    padding: 4rem 0;
}
.sg-philosophical-anchor {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sg-dark);
    line-height: 1.5;
    text-align: center;
    margin: 0;
    padding: 2.5rem 1.5rem;
    border: none;
    position: relative;
}
.sg-philosophical-anchor::before {
    content: "\201C";
    font-size: 3rem;
    color: var(--sg-primary);
    opacity: .3;
    position: absolute;
    top: .5rem;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
}

/* ── Philosophy block (about page) ── */
.sg-philosophy-block__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--sg-gray-700);
    margin: 0 0 2rem;
}
.sg-quotable-sentences {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sg-gray-200);
}
.sg-quotable {
    font-size: .92rem;
    line-height: 1.6;
    color: var(--sg-gray-600);
    padding-left: 1rem;
    border-left: 3px solid var(--sg-primary);
    margin: 0;
}

/* ── FAQ (about page) ── */
.sg-faq {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.sg-faq__item {
    border: 1px solid var(--sg-gray-200);
    border-radius: var(--sg-radius);
    overflow: hidden;
}
.sg-faq__question {
    font-size: .95rem;
    font-weight: 600;
    color: var(--sg-dark);
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sg-faq__question::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--sg-primary);
    font-weight: 400;
    transition: transform .2s;
}
.sg-faq__item[open] .sg-faq__question::after {
    transform: rotate(45deg);
}
.sg-faq__question::-webkit-details-marker { display: none; }
.sg-faq__answer {
    padding: 0 1.25rem 1rem;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--sg-gray-600);
}
.sg-faq__answer p { margin: 0; }

/* ── YMYL sector cards (SEO expertise) ── */
.sg-ymyl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.sg-ymyl-card {
    background: var(--sg-white);
    border: 1px solid var(--sg-gray-200);
    border-radius: var(--sg-radius-lg);
    padding: 1.5rem;
    transition: border-color .2s, box-shadow .2s;
}
.sg-ymyl-card:hover {
    border-color: var(--sg-primary);
    box-shadow: var(--sg-shadow-md);
}
.sg-ymyl-card__icon {
    width: 36px;
    height: 36px;
    background: var(--sg-primary-50);
    color: var(--sg-primary);
    border-radius: var(--sg-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
}
.sg-ymyl-card__icon svg { width: 18px; height: 18px; }
.sg-ymyl-card__title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--sg-dark);
    margin: 0 0 .4rem;
}
.sg-ymyl-card__detail {
    font-size: .85rem;
    color: var(--sg-gray-500);
    line-height: 1.5;
    margin: 0;
}

/* ── Secondary Entity Home — collapsible entity anchor ── */
.sg-entity-anchor {
    background: var(--sg-gray-50);
    padding: 0;
}
.sg-entity-anchor[open] {
    padding-bottom: 2rem;
}
.sg-entity-anchor__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    -webkit-appearance: none;
    font-size: .75rem;
    font-weight: 600;
    color: var(--sg-gray-400);
    text-transform: uppercase;
    letter-spacing: .06em;
    transition: color .2s;
    user-select: none;
}
.sg-entity-anchor__toggle::-webkit-details-marker { display: none; }
.sg-entity-anchor__toggle::marker { display: none; content: ''; }
.sg-entity-anchor__toggle:hover { color: var(--sg-gray-600); }
.sg-entity-anchor__toggle svg {
    transition: transform .25s;
    flex-shrink: 0;
}
.sg-entity-anchor[open] .sg-entity-anchor__toggle svg {
    transform: rotate(180deg);
}
.sg-entity-anchor__content {
    max-width: var(--sg-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.sg-entity-anchor__inner {
    max-width: 680px;
    margin: 0 auto;
}
.sg-entity-anchor__profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.sg-entity-anchor__profile img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
.sg-entity-anchor__name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--sg-dark);
    margin: 0;
}
.sg-entity-anchor__name a { color: var(--sg-dark); }
.sg-entity-anchor__name a:hover { color: var(--sg-primary); }
.sg-entity-anchor__role {
    font-size: .8rem;
    color: var(--sg-gray-500);
    margin: 0;
}
.sg-entity-anchor__bio {
    font-size: .85rem;
    line-height: 1.65;
    color: var(--sg-gray-600);
    margin-bottom: 1rem;
}
.sg-entity-anchor__context {
    font-size: .82rem;
    line-height: 1.6;
    color: var(--sg-gray-500);
    font-style: italic;
    margin-bottom: 1rem;
}
.sg-entity-anchor__credentials {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}
.sg-entity-anchor__credential {
    font-size: .7rem;
    font-weight: 600;
    color: var(--sg-gray-500);
    background: var(--sg-white);
    padding: .25rem .65rem;
    border-radius: 20px;
}
.sg-entity-anchor__links {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}
.sg-entity-anchor__links a {
    font-size: .8rem;
    font-weight: 600;
    color: var(--sg-primary);
    transition: color .15s;
}
.sg-entity-anchor__links a:hover { color: var(--sg-primary-dark); }
.sg-entity-anchor__links a + a::before {
    content: '\00b7';
    margin-right: .6rem;
    color: var(--sg-gray-300);
}

/* ── Persistent Entity Sidebar Card ── */
.sg-entity-sidebar {
    max-width: 340px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: var(--sg-white);
    border-radius: var(--sg-radius-lg);
    box-shadow: var(--sg-shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.sg-entity-sidebar__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}
.sg-entity-sidebar__name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--sg-dark);
    margin: 0 0 .8rem;
}
.sg-entity-sidebar__name a { color: var(--sg-dark); }
.sg-entity-sidebar__name a:hover { color: var(--sg-primary); }
.sg-entity-sidebar__claim {
    font-size: .82rem;
    line-height: 1.55;
    color: var(--sg-primary);
    font-weight: 600;
    font-style: italic;
    margin: 0 0 .8rem;
}
.sg-entity-sidebar__stats {
    font-size: .75rem;
    line-height: 1.7;
    color: var(--sg-gray-500);
    font-style: italic;
    margin: 0 0 1.2rem;
}
.sg-entity-sidebar__testimonial {
    padding-top: 1.2rem;
    width: 100%;
}
.sg-entity-sidebar__quote {
    font-size: .78rem;
    line-height: 1.6;
    color: var(--sg-gray-600);
    font-style: italic;
    margin: 0 0 .6rem;
}
.sg-entity-sidebar__quote::before {
    content: '\201C';
    color: var(--sg-primary);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 0;
    vertical-align: -.35em;
    margin-right: .15rem;
}
.sg-entity-sidebar__source {
    font-size: .7rem;
    font-weight: 600;
    color: var(--sg-gray-400);
    margin: 0;
}
.sg-entity-sidebar__source a {
    color: var(--sg-primary);
    font-weight: 700;
}
.sg-entity-sidebar__source a:hover { color: var(--sg-primary-dark); }
/* Wrapper: on small screens, static card between content and footer */
.sg-entity-sidebar-wrap {
    padding: 2rem 1.5rem;
    background: var(--sg-gray-50);
}
/* Wide desktop: fixed in right margin */
@media (min-width: 1500px) {
    .sg-entity-sidebar-wrap {
        position: fixed;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 50;
        padding: 0;
        background: none;
    }
    .sg-entity-sidebar {
        width: 260px;
        max-width: 260px;
        box-shadow: var(--sg-shadow-lg);
    }
    .sg-entity-sidebar__claim { font-size: .78rem; }
    .sg-entity-sidebar__stats { font-size: .72rem; }
    .sg-entity-sidebar__quote { font-size: .74rem; }
}

@media (max-width: 768px) {
    .sg-philosophical-anchor { font-size: 1.1rem; }
    .sg-ymyl-grid { grid-template-columns: 1fr; }
}

/* ── Section illustrations (visual breaks between content) ── */
.sg-illustration {
    max-width: var(--sg-max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}
.sg-illustration img {
    width: 100%;
    height: auto;
    border-radius: var(--sg-radius-lg);
    display: block;
    object-fit: cover;
}
.sg-illustration figcaption {
    text-align: center;
    font-size: .78rem;
    color: var(--sg-gray-400);
    margin-top: .5rem;
}
.sg-illustration--wide {
    max-width: none;
    padding: 0;
}
.sg-illustration--wide img {
    border-radius: 0;
    max-height: 400px;
}
.sg-illustration--placeholder .sg-illustration__box {
    background: var(--sg-gray-50);
    border: 2px dashed var(--sg-gray-200);
    border-radius: var(--sg-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    color: var(--sg-gray-300);
}
.sg-illustration__box svg {
    width: 36px;
    height: 36px;
    stroke: var(--sg-gray-300);
}
.sg-illustration__label {
    font-size: .78rem;
    font-weight: 500;
}
.sg-illustration__caption {
    font-size: .82rem;
    color: var(--sg-gray-400);
    text-align: center;
    margin-top: .6rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}
@media (max-width: 768px) {
    .sg-illustration { padding: .75rem 1rem; }
    .sg-illustration--placeholder .sg-illustration__box { height: 160px !important; }
}

/* ── Testimonial cards ── */
.sg-testimonial-card {
    background: var(--sg-white);
    border-radius: var(--sg-radius-lg);
    padding: 2rem;
    box-shadow: var(--sg-shadow-sm);
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 400px;
    flex-shrink: 0;
}
.sg-testimonial-card__quote {
    font-size: .92rem;
    line-height: 1.65;
    color: var(--sg-gray-600);
    margin: 0 0 1.2rem;
    position: relative;
    padding-top: 1.2rem;
}
.sg-testimonial-card__quote::before {
    content: "\201C";
    position: absolute;
    top: -.2rem;
    left: 0;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--sg-primary);
    opacity: .25;
    line-height: 1;
}
.sg-testimonial-card__highlight {
    display: block;
    font-weight: 700;
    color: var(--sg-dark);
    font-style: italic;
    margin-top: .6rem;
}
.sg-testimonial-card__author {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: .7rem;
}
.sg-testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sg-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: var(--sg-primary);
    flex-shrink: 0;
}
.sg-testimonial-card__name {
    font-weight: 700;
    font-size: .85rem;
    color: var(--sg-dark);
    line-height: 1.3;
}
.sg-testimonial-card__role {
    font-size: .75rem;
    color: var(--sg-gray-400);
    line-height: 1.3;
}
.sg-testimonial-card__source {
    font-size: .7rem;
    color: var(--sg-gray-300);
    margin-left: auto;
    flex-shrink: 0;
}

/* Testimonials scroll grid (homepage carousel) */
.sg-testimonials-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: .5rem 0 1rem;
    scrollbar-width: none;
}
.sg-testimonials-scroll::-webkit-scrollbar { display: none; }
.sg-testimonials-scroll .sg-testimonial-card {
    scroll-snap-align: start;
}

/* Testimonials wall (dedicated page) */
.sg-testimonials-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}
.sg-testimonials-wall .sg-testimonial-card {
    min-width: 0;
    max-width: none;
}

/* Stat pill for testimonials section */
.sg-testimonials-stat {
    text-align: center;
    font-size: .85rem;
    color: var(--sg-gray-400);
    margin-bottom: 1.5rem;
}
.sg-testimonials-stat strong {
    color: var(--sg-dark);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .sg-testimonial-card { min-width: 280px; padding: 1.5rem; }
    .sg-testimonials-wall { grid-template-columns: 1fr; }
}
