/* ---------------------------------------------------------
   Elodie Courrié - Portfolio
   Palette: warm cream / deep ink / muted gold accent
--------------------------------------------------------- */

:root {
    --bg-cream: #f5f1ea;
    --bg-light: #fbf8f3;
    --bg-white: #ffffff;
    --bg-dark: #1f1a14;
    --bg-dark-2: #171310;
    --ink: #1a1a1a;
    --ink-soft: #3a3a3a;
    --ink-muted: #6b6b6b;
    --line: #e3dccd;
    --line-dark: #3a2f22;
    --accent: #9b6a3f;
    --accent-hover: #7d5430;
    --accent-soft: #c9a572;
    --highlight: #b8893f;
    --shadow-sm: 0 1px 2px rgba(20, 25, 35, 0.04), 0 2px 8px rgba(20, 25, 35, 0.05);
    --shadow-md: 0 4px 16px rgba(20, 25, 35, 0.07), 0 12px 32px rgba(20, 25, 35, 0.06);
    --shadow-lg: 0 8px 28px rgba(20, 25, 35, 0.1), 0 24px 64px rgba(20, 25, 35, 0.08);
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --max-w: 1240px;
    --transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    --serif: "Fraunces", "Times New Roman", Georgia, serif;
    --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif-soft: 30;
    --serif-opsz: 96;
}

.serif,
h1, h2, h3, h4, h5 {
    font-family: var(--serif);
    font-variation-settings: "opsz" 96, "SOFT" 30, "wght" 400;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg-light);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.12;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
}

h1, h2, h3 { font-weight: 400; letter-spacing: 0; }
h4, h5     { font-weight: 500; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(251, 248, 243, 0.86);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition);
}

.site-header.scrolled {
    border-bottom-color: var(--line);
    background: rgba(251, 248, 243, 0.94);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-weight: 400;
    position: relative;
}

.logo::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    align-self: center;
    flex-shrink: 0;
    transition: transform var(--transition), background var(--transition);
}

.logo:hover::before {
    transform: scale(1.4);
    background: var(--accent-hover);
}

.logo-text {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: -0.005em;
    color: var(--ink);
    font-variation-settings: "opsz" 24, "SOFT" 30, "wght" 420;
    line-height: 1;
}

.main-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink-soft);
    position: relative;
    padding: 4px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0;
    background: var(--accent);
    transition: width var(--transition);
}

.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.nav-cta {
    padding: 8px 18px !important;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--bg-light) !important;
    transition: background var(--transition), color var(--transition);
}

.nav-cta::after { display: none; }

.nav-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform var(--transition), opacity var(--transition);
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 140px 32px 96px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(155, 106, 63, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 0.75fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.hero-image {
    max-width: 360px;
    margin-left: auto;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(56px, 8.5vw, 116px);
    line-height: 0.98;
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 28px;
    font-variation-settings: "opsz" 144, "SOFT" 20, "wght" 380;
}

.accent-name {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
    font-variation-settings: "opsz" 144, "SOFT" 60, "wght" 380;
}

.hero-title .kinetic-word {
    display: inline-block;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.hero-tagline {
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-quote {
    border-left: 2px solid var(--accent);
    padding: 4px 0 4px 18px;
    margin-top: 40px;
    margin-bottom: 0;
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
    font-weight: 400;
    color: var(--ink-muted);
    max-width: 460px;
    line-height: 1.5;
    font-variation-settings: "opsz" 24, "wght" 380;
}

.hero-quote cite {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
    text-transform: uppercase;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--ink);
    color: var(--bg-light);
    border-color: var(--ink);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--bg-light);
}

.hero-image {
    position: relative;
}

.hero-photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: var(--shadow-lg);
}

.hero-photo-frame::before {
    content: '';
    position: absolute;
    inset: -20px -20px 20px 20px;
    border: 1px solid var(--accent);
    z-index: -1;
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.14);
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .hero-photo-frame img {
        transform: none;
    }
}

.hero-side-card {
    position: absolute;
    bottom: -36px;
    left: -36px;
    background: var(--bg-white);
    padding: 22px 28px;
    box-shadow: var(--shadow-md);
    border-left: 3px solid var(--accent);
    max-width: 280px;
}

.card-label {
    font-size: 11px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.card-role {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 4px;
}

.card-org {
    font-size: 13px;
    color: var(--ink-soft);
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); transform-origin: top; }
    50% { transform: scaleY(0.4); transform-origin: top; }
}

/* ---------------------------------------------------------
   Page banner (multi-page header)
--------------------------------------------------------- */

.page-banner {
    padding: 168px 32px 80px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    border-bottom: 1px solid var(--line);
}

.page-banner .container {
    max-width: var(--max-w);
    margin: 0 auto;
}

.banner-title {
    font-family: var(--serif);
    font-size: clamp(44px, 6vw, 84px);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--ink);
    margin-bottom: 22px;
    font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 380;
}

.banner-intro {
    font-size: 19px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 720px;
}

.breadcrumb {
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 36px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line); }

/* ---------------------------------------------------------
   Page-end pager
--------------------------------------------------------- */

.page-pager {
    background: var(--bg-cream);
    border-top: 1px solid var(--line);
    padding: 56px 32px;
}

.pager-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.pager-link {
    display: block;
    padding: 28px 32px;
    background: var(--bg-white);
    border-left: 3px solid var(--accent);
    transition: background var(--transition), color var(--transition);
}

.pager-link:hover { background: var(--bg-cream); }
.pager-link:hover .pager-label { color: var(--accent-hover); }

.pager-link.next { text-align: right; border-left: none; border-right: 3px solid var(--accent); }

.pager-label {
    font-size: 11px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
    display: block;
}

.pager-title {
    font-family: var(--serif);
    font-size: 24px;
    color: var(--ink);
    font-weight: 500;
}

@media (max-width: 768px) {
    .pager-inner { grid-template-columns: 1fr; }
    .pager-link.next { text-align: left; border-right: none; border-left: 3px solid var(--accent); }
    .page-banner { padding: 130px 24px 60px; }
}

/* ---------------------------------------------------------
   Section base
--------------------------------------------------------- */

.section {
    padding: 120px 32px;
}

.section-light { background: var(--bg-light); }
.section-cream { background: var(--bg-cream); }
.section-dark { background: var(--bg-dark); color: var(--bg-light); }
.section-dark .section-eyebrow.light { color: rgba(255, 255, 255, 0.55); }
.section-dark .section-eyebrow.light::before { background: var(--accent-soft); }

/* ---------------------------------------------------------
   Marquee — bandeau défilant éditorial
--------------------------------------------------------- */

.marquee {
    overflow: hidden;
    padding: 40px 0;
    background: var(--bg-cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: baseline;
    gap: 48px;
    width: max-content;
    animation: marqueeScroll 38s linear infinite;
    font-family: var(--serif);
    line-height: 1;
    white-space: nowrap;
    will-change: transform;
}

.marquee-track .m-word {
    font-size: clamp(34px, 4.4vw, 64px);
    font-style: italic;
    font-weight: 400;
    color: var(--ink);
    font-variation-settings: "opsz" 96, "SOFT" 60, "wght" 360;
    letter-spacing: -0.015em;
}

.marquee-track .m-word.alt {
    color: var(--accent);
    font-style: normal;
    font-variation-settings: "opsz" 96, "SOFT" 30, "wght" 380;
}

.marquee-track .m-dot {
    font-size: clamp(26px, 3.4vw, 48px);
    color: var(--accent-soft);
    font-style: normal;
    font-weight: 300;
    align-self: center;
}

@keyframes marqueeScroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-head {
    margin-bottom: 80px;
    max-width: 720px;
}

.section-eyebrow {
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 24px;
    color: var(--ink);
    font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 380;
}

.section-title.light { color: #fff; }

.section-intro {
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 640px;
}

.section-intro.light { color: rgba(255, 255, 255, 0.72); }

/* ---------------------------------------------------------
   Homepage index grid
--------------------------------------------------------- */

.index-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.index-card {
    padding: 40px 32px;
    background: var(--bg-white);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background var(--transition), color var(--transition);
    min-height: 220px;
    justify-content: space-between;
    position: relative;
}

.index-card::after {
    content: '→';
    position: absolute;
    bottom: 32px;
    right: 32px;
    font-size: 22px;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--transition), transform var(--transition);
}

.index-card:hover {
    background: var(--bg-cream);
}

.index-card:hover .index-num { color: var(--accent-hover); }

.index-card:hover::after {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

.index-num {
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0;
    color: var(--accent);
    transition: color var(--transition);
}

.index-title {
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1.15;
    color: var(--ink);
    font-weight: 500;
    transition: color var(--transition);
}

.index-sub {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.5;
    transition: color var(--transition);
}

@media (max-width: 1024px) {
    .index-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .index-grid { grid-template-columns: 1fr; }
    .index-card { min-height: 0; padding: 28px 24px; }
}

/* ---------------------------------------------------------
   About
--------------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text { font-size: 16.5px; }

.about-text .lead {
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 28px;
    font-weight: 500;
}

.about-text p { margin-bottom: 18px; color: var(--ink-soft); }
.about-text strong { color: var(--ink); font-weight: 600; }

.about-actions {
    margin-top: 26px;
    margin-bottom: 0;
}

.about-side {
    padding: 36px 32px;
    background: var(--bg-white);
    border-top: 3px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.info-block {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.info-block:last-child { border-bottom: none; }

.info-label {
    font-size: 11px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.info-value {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.25;
    color: var(--ink);
}

.info-sub {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-soft);
    display: block;
    margin-top: 2px;
}

/* ---------------------------------------------------------
   Formation timeline
--------------------------------------------------------- */

.timeline-entry {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    padding: 64px 0;
    border-top: 1px solid var(--line-dark);
    align-items: start;
}

.timeline-entry:first-of-type { border-top: none; padding-top: 0; }

/* Removed sticky behaviour and reverse alternation to keep visual flow predictable. */
.timeline-side {
    position: static;
    height: auto;
}

.timeline-period {
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 20px;
    font-weight: 500;
}

.timeline-logo {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 2px;
    height: 120px;
    display: grid;
    place-items: center;
}

.timeline-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.timeline-logo.plain {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 24px 18px;
}

.timeline-logo-text {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-variation-settings: "opsz" 24, "SOFT" 30, "wght" 380;
}

.timeline-logo-text em {
    color: var(--accent-soft);
    font-style: italic;
}

.timeline-title {
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
}

.timeline-subtitle {
    font-size: 16px;
    color: var(--accent-soft);
    font-style: italic;
    margin-bottom: 10px;
}

.timeline-place {
    font-size: 14px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 28px;
}

.timeline-body p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
    line-height: 1.7;
}

.chip-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 22px;
}

.chip-list li {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
}

.section-light .chip-list li,
.section-cream .chip-list li {
    border-color: var(--line);
    color: var(--ink-soft);
    background: var(--bg-white);
}

.timeline-figure {
    margin: 28px 0;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 16 / 10;
    background: var(--bg-cream);
}

.timeline-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
}

.timeline-link {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--accent-soft);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color var(--transition);
}

.timeline-link:hover { color: #fff; }

.section-light .timeline-link,
.section-cream .timeline-link { color: var(--accent); }
.section-light .timeline-link:hover,
.section-cream .timeline-link:hover { color: var(--accent-hover); }

/* ---------------------------------------------------------
   Skills board (GACO acquis avec étoiles)
--------------------------------------------------------- */

.skills-board {
    margin-top: 64px;
    padding: 56px clamp(28px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-dark);
    border-radius: 4px;
}

.skills-board-head { margin-bottom: 40px; max-width: 720px; }

.skills-board-eyebrow {
    font-size: 11px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 14px;
    display: block;
}

.skills-board-title {
    font-family: var(--serif);
    font-size: clamp(28px, 3.4vw, 42px);
    color: #fff;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: 0;
    font-variation-settings: "opsz" 96, "SOFT" 30, "wght" 380;
}

.skills-board-intro {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15.5px;
    line-height: 1.55;
}

.skills-board-list {
    display: grid;
    gap: 0;
}

.skill-row {
    padding: 24px 0;
    border-top: 1px solid var(--line-dark);
}

.skill-row:first-child { border-top: none; padding-top: 8px; }

.skill-row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.skill-row-title {
    font-family: var(--serif);
    font-size: 22px;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0;
    font-variation-settings: "opsz" 36, "SOFT" 30, "wght" 400;
}

.skill-row p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 820px;
    margin: 0;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.rating-stars {
    display: inline-flex;
    gap: 4px;
}

.star {
    width: 16px;
    height: 16px;
    background: linear-gradient(to right, var(--accent-soft) 0%, var(--accent-soft) 0%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.12) 100%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star.full {
    background: var(--accent-soft);
}

.star.half {
    background: linear-gradient(to right, var(--accent-soft) 0%, var(--accent-soft) 50%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.16) 100%);
}

.rating-num {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--accent-soft);
    letter-spacing: 0;
    font-variation-settings: "opsz" 24, "wght" 380;
}

@media (max-width: 640px) {
    .skill-row-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .skills-board { padding: 36px 24px; }
}

/* ---------------------------------------------------------
   Experience cards
--------------------------------------------------------- */

.experience-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: start;
    background: var(--bg-white);
    margin-bottom: 48px;
    padding: 52px;
    border: 1px solid rgba(227, 220, 205, 0.55);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20, 25, 35, 0.02), 0 8px 24px rgba(20, 25, 35, 0.04);
    overflow: hidden;
}

.experience-card.featured {
    grid-template-columns: 1.1fr 1.3fr;
    box-shadow: 0 1px 2px rgba(155, 106, 63, 0.04), 0 12px 32px rgba(155, 106, 63, 0.07);
}

.experience-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
}

.exp-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-cream);
    border-radius: 10px;
}

.exp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.experience-card:hover .exp-image img {
    transform: scale(1.04);
}

.experience-card.compact .exp-image { aspect-ratio: 16 / 9; }
.experience-card.featured .exp-image { aspect-ratio: 4 / 5; }
.experience-card.featured .exp-image.edf-image { aspect-ratio: 16 / 10; }

.exp-logo {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(20, 25, 35, 0.08), 0 8px 20px rgba(20, 25, 35, 0.1);
    max-width: 130px;
    max-height: 60px;
    display: grid;
    place-items: center;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.experience-card:hover .exp-logo {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(20, 25, 35, 0.1), 0 14px 30px rgba(20, 25, 35, 0.15);
}

.exp-logo img {
    display: block;
    max-width: 100%;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.exp-period {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.experience-card.featured .exp-period::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(155, 106, 63, 0.18);
    animation: expPulse 2.4s ease-in-out infinite;
}

@keyframes expPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(155, 106, 63, 0.18); }
    50%      { box-shadow: 0 0 0 7px rgba(155, 106, 63, 0.04); }
}

.exp-title {
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 10px;
    font-weight: 500;
    font-variation-settings: "opsz" 96, "SOFT" 30, "wght" 420;
}

.exp-org {
    font-size: 15px;
    letter-spacing: 0;
    color: var(--ink-soft);
    margin-bottom: 20px;
    font-weight: 500;
}

.exp-content > p {
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.exp-subtitle {
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 28px 0 14px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.exp-subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 1px;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s;
}

.experience-card.reveal .exp-subtitle::after {
    transform: scaleX(1);
}

.exp-list {
    list-style: none;
    margin-bottom: 16px;
}

.exp-list li {
    padding: 7px 0 7px 22px;
    color: var(--ink-soft);
    position: relative;
    font-size: 14.5px;
    line-height: 1.6;
}

.exp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 10px;
    height: 1.5px;
    background: var(--accent);
}

.exp-note {
    position: relative;
    margin-top: 24px;
    padding: 18px 22px 18px 24px;
    background: var(--bg-cream);
    border-left: 2px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.exp-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.exp-gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.exp-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 56px;
}

.exp-pair .experience-card { margin-bottom: 0; }

.experience-card.compact {
    grid-template-columns: 1fr;
    padding: 0;
}

.experience-card.compact .exp-image {
    aspect-ratio: 16 / 9;
}

.experience-card.compact .exp-content {
    padding: 32px;
}

/* ---------------------------------------------------------
   Image grids & galleries
--------------------------------------------------------- */

.image-grid {
    display: grid;
    gap: 16px;
    margin: 28px 0;
}

.image-grid.one { grid-template-columns: 1fr; }
.image-grid.two { grid-template-columns: 1fr 1fr; }
.image-grid.three { grid-template-columns: repeat(3, 1fr); }
.image-grid.four { grid-template-columns: repeat(4, 1fr); }

.image-grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    background: var(--bg-cream);
}

.image-grid.one img { aspect-ratio: 16 / 9; object-fit: contain; background: var(--ink); }
.image-grid.two img { aspect-ratio: 9 / 16; object-fit: contain; background: var(--ink); }
.image-grid.three img { aspect-ratio: 3 / 4; }
.image-grid.four img { aspect-ratio: 1 / 1; }

.masonry-gallery {
    columns: 4;
    column-gap: 12px;
    margin: 24px 0 32px;
}

.masonry-gallery img {
    width: 100%;
    margin-bottom: 12px;
    break-inside: avoid;
}

.poster-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.poster-row img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--bg-cream);
    box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------
   Interest cards
--------------------------------------------------------- */

.interest-card {
    background: var(--bg-white);
    padding: 56px;
    margin-bottom: 40px;
    border: 1px solid rgba(227, 220, 205, 0.55);
    box-shadow: 0 1px 2px rgba(20, 25, 35, 0.025), 0 10px 28px rgba(20, 25, 35, 0.045);
}

.interest-card.large { padding: 64px; }

.interest-head {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.interest-title {
    font-family: var(--serif);
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 8px;
    font-weight: 500;
    font-variation-settings: "opsz" 96, "SOFT" 30, "wght" 420;
}

.interest-title.small { font-size: 26px; margin-bottom: 12px; }

.interest-role {
    font-size: 15px;
    color: var(--ink-muted);
    font-style: italic;
}

.interest-subtitle {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--ink);
    margin: 36px 0 16px;
    font-weight: 500;
}

.interest-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.interest-card p { color: var(--ink-soft); margin-bottom: 14px; }

.interest-row,
.interest-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.interest-feature {
    margin: 0 0 40px;
    padding: 88px 0 20px;
    position: relative;
}

.interest-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 1px;
    background: var(--accent);
    opacity: 0.55;
}

.interest-feature.voyage {
    padding-top: 96px;
}

.feature-head { max-width: 720px; margin-bottom: 36px; }

.feature-title {
    font-family: var(--serif);
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.018em;
    color: var(--ink);
    margin-bottom: 20px;
    font-weight: 500;
    font-variation-settings: "opsz" 96, "SOFT" 30, "wght" 420;
}

.feature-intro {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.55;
}

.interest-head.no-border {
    border-bottom: none;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.poster-row.two-col {
    grid-template-columns: 1fr 1fr;
}

.poster-row.five-col {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

@media (max-width: 768px) {
    .interest-split,
    .interest-row { grid-template-columns: 1fr; }
    .interest-feature { padding-top: 32px; }
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0;
    margin: 36px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.metric-box {
    padding: 32px 24px;
    border-right: 1px solid var(--line);
}

.metric-box:last-child { border-right: none; }

.metric-num {
    font-family: var(--serif);
    font-size: 44px;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 500;
}

.metric-label {
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink-muted);
    line-height: 1.4;
}

.travel-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 36px 0;
}

.travel-card {
    padding: 30px 28px 28px;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-top: 2px solid var(--accent);
    transition: transform var(--transition), box-shadow var(--transition);
}

.travel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 25, 35, 0.06);
}

.travel-card.highlight {
    background: linear-gradient(160deg, #1d2735 0%, #141c28 100%);
    color: var(--bg-light);
    border: 1px solid #2a3445;
    border-top: 2px solid var(--accent-soft);
}

.travel-card.highlight:hover {
    box-shadow: 0 10px 30px rgba(20, 25, 35, 0.22);
}

.travel-period {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.travel-card.highlight .travel-period { color: var(--accent-soft); }

.travel-place {
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1.06;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 16px;
    font-weight: 500;
    font-variation-settings: "opsz" 96, "SOFT" 30, "wght" 420;
}

.travel-card.highlight .travel-place { color: #fff; }

.travel-note {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin-bottom: 0;
}

.travel-card:not(.highlight) .travel-note {
    color: var(--ink-soft);
}

.travel-solo-note {
    max-width: 760px;
    margin: 8px 0 30px;
    padding: 24px 28px;
    background: var(--bg-cream);
    border-left: 3px solid var(--accent);
}

.travel-solo-note .travel-section-title {
    margin-top: 0;
}

.travel-solo-note p {
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.travel-solo-note p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   Carousel
--------------------------------------------------------- */

.image-carousel {
    position: relative;
    overflow: hidden;
    margin: 24px 0;
    background: var(--bg-cream);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink);
    display: grid;
    place-items: center;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.travel-carousel {
    max-width: 560px;
    margin: 28px auto;
    background: transparent;
}

.travel-carousel .carousel-slide {
    aspect-ratio: 3 / 4;
    background: var(--bg-cream);
}

.travel-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.interest-carousel {
    max-width: 860px;
    margin: 28px auto 40px;
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
}

.interest-carousel .carousel-slide {
    aspect-ratio: 16 / 10;
    background: var(--bg-light);
}

.interest-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-carousel,
.poster-carousel {
    max-width: 520px;
}

.gaco-linkedin-carousel,
.event-carousel,
.social-carousel,
.poster-carousel {
    width: min(100%, 520px);
    margin-left: auto;
    margin-right: auto;
}

.gaco-linkedin-carousel .carousel-slide,
.social-carousel .carousel-slide,
.poster-carousel .carousel-slide {
    aspect-ratio: 9 / 16;
    background: var(--bg-light);
}

.event-carousel .carousel-slide {
    aspect-ratio: 4 / 5;
    background: var(--bg-light);
}

.event-carousel .carousel-slide img,
.gaco-linkedin-carousel .carousel-slide img,
.social-carousel .carousel-slide img,
.poster-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    border: none;
    width: 52px;
    height: 52px;
    font-size: 28px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-family: var(--serif);
}

.carousel-btn:hover {
    background: var(--accent);
    color: #fff;
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition);
}

.carousel-dots button.active {
    background: #fff;
}

.timeline-body strong,
.exp-note strong,
.standard-project strong,
.featured-project strong,
.interest-card strong,
.interest-intro strong,
.feature-intro strong {
    color: inherit;
    font-weight: 700;
}

/* ---------------------------------------------------------
   Skills
--------------------------------------------------------- */

.skills-title {
    font-family: var(--serif);
    font-size: 26px;
    color: #fff;
    margin: 40px 0 32px;
    font-weight: 500;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-dark);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 64px;
}

.skill-block {
    padding: 40px;
    border: 1px solid var(--line-dark);
    margin: -1px 0 0 -1px;
}

.skill-block h4 {
    font-family: var(--serif);
    font-size: 24px;
    color: #fff;
    margin-bottom: 18px;
    font-weight: 500;
    line-height: 1.2;
}

.skill-block ul { list-style: none; }

.skill-block li {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 12px;
    padding-left: 18px;
    position: relative;
    font-size: 14.5px;
    line-height: 1.55;
}

.skill-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 1px;
    background: var(--accent-soft);
}

.skill-block strong { color: #fff; font-weight: 500; }

.soft-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.soft-card {
    padding: 32px 28px;
    border: 1px solid var(--line-dark);
    margin: -1px 0 0 -1px;
    transition: background var(--transition);
}

.soft-card:hover { background: rgba(155, 106, 63, 0.08); }

.soft-card h4 {
    font-family: var(--serif);
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.soft-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.55;
}

/* ---------------------------------------------------------
   Cert
--------------------------------------------------------- */

.cert-card {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    background: var(--bg-white);
    padding: 48px;
    box-shadow: var(--shadow-sm);
    align-items: start;
}

.cert-card-simple {
    display: block;
    max-width: 820px;
    margin: 0 auto;
}

.cert-image {
    overflow: hidden;
    border: 1px solid var(--line);
}

.cert-image img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: var(--bg-white);
}

.cert-tag {
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 14px;
}

.cert-title {
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 14px;
    font-weight: 500;
}

.cert-org {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.cert-content > p { color: var(--ink-soft); margin-bottom: 16px; }

.cert-outcome {
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--bg-cream);
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink);
    font-size: 16px;
}

/* ---------------------------------------------------------
   Contact
--------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-subtitle {
    font-family: var(--serif);
    font-size: 24px;
    color: var(--ink);
    margin: 28px 0 20px;
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.contact-subtitle:first-child { margin-top: 0; }

.contact-list {
    list-style: none;
    margin-bottom: 12px;
}

.contact-list li {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    align-items: baseline;
}

.contact-key {
    flex: 0 0 110px;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.contact-val {
    flex: 1;
    font-size: 16px;
    color: var(--ink);
    font-weight: 500;
}

a.contact-val:hover { color: var(--accent); }

.linkedin-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px 26px;
    background: var(--ink);
    color: #fff;
    transition: background var(--transition);
}

.linkedin-link:hover { background: var(--accent); }

.ll-label {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
}

.ll-text {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
}

.ll-arrow { font-size: 22px; }

.docs-row {
    display: grid;
    gap: 12px;
}

.doc-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 26px;
    background: var(--bg-white);
    border: 1px solid var(--line);
    transition: all var(--transition);
    position: relative;
}

.doc-link::after {
    content: '↓';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--accent);
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}

.doc-link:hover:not(.disabled) {
    border-color: var(--accent);
    background: var(--bg-cream);
    padding-right: 56px;
}

.doc-link:hover:not(.disabled) .doc-status { color: var(--accent-hover); border-color: rgba(155, 106, 63, 0.3); }

.doc-link:hover:not(.disabled)::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.doc-link.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.doc-name {
    font-family: var(--serif);
    font-size: 19px;
    color: var(--ink);
    font-weight: 400;
    font-variation-settings: "opsz" 36, "SOFT" 30, "wght" 400;
    transition: color var(--transition);
}

.doc-status {
    font-size: 11px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding: 5px 12px;
    border: 1px solid var(--line);
    background: var(--bg-cream);
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.contact-form {
    background: var(--bg-white);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 22px;
}

.contact-form label span {
    display: block;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-cream);
    border: 1px solid transparent;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ink);
    transition: border-color var(--transition), background var(--transition);
    border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--sans);
}

.form-submit {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
}

.form-note {
    margin-top: 18px;
    padding: 14px 18px;
    background: var(--bg-cream);
    color: var(--accent);
    border-left: 2px solid var(--accent);
    font-style: italic;
}

.form-note.is-error {
    color: #8a2c2c;
    border-left-color: #8a2c2c;
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */

.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 32px 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--line-dark);
}

.footer-name {
    font-family: var(--serif);
    font-size: 28px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 6px;
}

.footer-tag {
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-content: start;
}

.footer-nav a {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer-nav a:hover { color: var(--accent-soft); }

.footer-thanks p { font-size: 15px; line-height: 1.6; }
.footer-thanks .footer-sub { font-style: italic; margin-top: 8px; color: rgba(255, 255, 255, 0.55); }

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-top: 32px;
    font-size: 12px;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .timeline-entry,
    .experience-card,
    .contact-grid,
    .cert-card {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .experience-card.featured,
    .timeline-entry.reverse {
        grid-template-columns: 1fr;
    }

    .timeline-entry.reverse .timeline-side { order: unset; }
    .timeline-entry.reverse .timeline-content { order: unset; }
    .timeline-side { position: static; }

    .skills-grid,
    .soft-grid { grid-template-columns: 1fr 1fr; }

    .interest-row,
    .exp-pair { grid-template-columns: 1fr; }

    .masonry-gallery { columns: 3; }

    .footer-inner { grid-template-columns: 1fr; gap: 36px; }

    .hero-side-card {
        position: static;
        margin-top: 24px;
        max-width: none;
    }
}

@media (max-width: 768px) {
    html,
    body { overflow-x: hidden; }

    body.nav-open { overflow: hidden; }

    body { font-size: 15.5px; }

    .section { padding: 80px 24px; }

    .site-header {
        z-index: 500;
        background: rgba(251, 248, 243, 0.96);
    }

    .header-inner {
        min-height: 64px;
        padding: 12px 20px;
    }

    .logo-text {
        display: block;
        font-size: 17px;
    }

    .main-nav {
        position: fixed;
        inset: 64px 0 0 0;
        background: var(--bg-light);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
        padding: 22px 24px 40px;
        gap: 0;
        transform: translate3d(100%, 0, 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition), visibility 0s linear 0.3s;
        overflow-y: auto;
        box-shadow: -16px 0 40px rgba(20, 25, 35, 0.12);
        z-index: 490;
    }

    .main-nav.open {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .main-nav a {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
        font-size: 17px;
        line-height: 1.2;
    }

    .main-nav a::after { display: none; }

    .nav-cta {
        margin-top: 18px;
        padding: 14px 18px !important;
        text-align: center;
        border-bottom: none !important;
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 510;
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .hero { padding: 100px 24px 60px; min-height: auto; }
    .hero-grid { gap: 48px; }
    .hero-title { font-size: 56px; }

    .section-head { margin-bottom: 48px; }
    .section-title { font-size: 36px; }

    .experience-card,
    .interest-card.large,
    .interest-card,
    .cert-card,
    .contact-form { padding: 28px; }

    .image-grid.three,
    .image-grid.four { grid-template-columns: 1fr 1fr; }

    .exp-image,
    .experience-card.featured .exp-image,
    .experience-card.compact .exp-image {
        aspect-ratio: auto;
        overflow: visible;
        background: transparent;
    }

    .exp-image > img:first-child {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .exp-logo {
        position: static;
        width: max-content;
        min-width: 110px;
        min-height: 56px;
        max-width: 100%;
        max-height: none;
        margin-top: 12px;
        padding: 10px 14px;
        border: 1px solid var(--line);
        box-shadow: var(--shadow-sm);
        overflow: visible;
    }

    .exp-logo img {
        max-width: 160px;
        max-height: 42px;
        width: auto;
        height: auto;
    }

    .masonry-gallery { columns: 2; }

    .skills-grid,
    .soft-grid { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .stat-num { font-size: 36px; }
    .metric-num { font-size: 32px; }

    .carousel-btn { width: 40px; height: 40px; font-size: 22px; }

    .interest-feature.voyage { padding-top: 48px; }

    .interest-detail-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .metrics-row {
        grid-template-columns: 1fr 1fr;
    }

    .metric-box:nth-child(2n) { border-right: none; }
    .metric-box:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

    .travel-plans {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .travel-card { padding: 22px 20px; }

    .travel-carousel {
        width: min(100%, 420px);
        max-width: 100%;
        margin: 24px auto 12px;
    }

    .gaco-linkedin-carousel,
    .event-carousel,
    .social-carousel,
    .poster-carousel {
        width: min(100%, 420px);
        max-width: 100%;
        margin: 24px auto 32px;
    }

    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }
    .carousel-dots {
        bottom: 10px;
        gap: 6px;
        max-width: calc(100% - 64px);
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-banner { padding: 116px 18px 52px; }
    .section { padding: 64px 18px; }

    .hero-title { font-size: 44px; }
    .section-title { font-size: 30px; }
    .project-title { font-size: 26px; }
    .exp-title,
    .interest-title { font-size: 24px; }

    .banner-title { font-size: 38px; }
    .banner-intro,
    .feature-intro { font-size: 15.5px; }

    .interest-card.large,
    .interest-card,
    .cert-card,
    .contact-form { padding: 22px 18px; }

    .interest-head {
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .masonry-gallery { columns: 1; }

    .metrics-row {
        grid-template-columns: 1fr;
        margin: 24px 0 4px;
    }

    .metric-box,
    .metric-box:nth-child(2n),
    .metric-box:nth-child(-n + 2) {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .metric-box:last-child { border-bottom: none; }

    .poster-row.two-col { grid-template-columns: 1fr; }
    .poster-row.five-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

    .sub-projects { grid-template-columns: 1fr; }
    .sub-project { padding: 22px 18px; }

    .image-grid.three,
    .image-grid.four,
    .image-grid.two { grid-template-columns: 1fr; }

    .timeline-title { font-size: 26px; }
    .timeline-place,
    .exp-period,
    .project-tag,
    .travel-period { letter-spacing: 0; }

    .travel-section-title {
        font-size: 22px;
        margin-top: 22px;
    }

    .travel-place { font-size: 24px; }

    .travel-solo-note {
        padding: 20px 18px;
    }

    .travel-carousel {
        width: min(100%, 340px);
    }

    .gaco-linkedin-carousel,
    .event-carousel,
    .social-carousel,
    .poster-carousel {
        width: min(100%, 340px);
    }

    .event-carousel .carousel-slide {
        aspect-ratio: 3 / 4;
    }

    .exp-logo img {
        max-width: 140px;
        max-height: 40px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .carousel-dots button {
        width: 7px;
        height: 7px;
    }

    .footer-nav { grid-template-columns: 1fr; }

    .contact-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .contact-key { flex: none; }

    .contact-val,
    .ll-text {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .linkedin-link {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px;
    }

    .doc-link {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
        padding: 18px 20px;
    }
}

/* ---------------------------------------------------------
   Reveal animations (non-blocking - content always shows)
--------------------------------------------------------- */

.reveal {
    animation: revealUp 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

/* Staggered children inside experience cards */
.experience-card.reveal .exp-period,
.experience-card.reveal .exp-title,
.experience-card.reveal .exp-org,
.experience-card.reveal .exp-content > p,
.experience-card.reveal .exp-subtitle,
.experience-card.reveal .exp-list li,
.experience-card.reveal .exp-note {
    animation: revealUpSoft 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.experience-card.reveal .exp-period { animation-delay: 0.20s; }
.experience-card.reveal .exp-title  { animation-delay: 0.28s; }
.experience-card.reveal .exp-org    { animation-delay: 0.36s; }
.experience-card.reveal .exp-content > p { animation-delay: 0.44s; }
.experience-card.reveal .exp-subtitle { animation-delay: 0.50s; }
.experience-card.reveal .exp-list li:nth-child(1) { animation-delay: 0.58s; }
.experience-card.reveal .exp-list li:nth-child(2) { animation-delay: 0.64s; }
.experience-card.reveal .exp-list li:nth-child(3) { animation-delay: 0.70s; }
.experience-card.reveal .exp-list li:nth-child(4) { animation-delay: 0.76s; }
.experience-card.reveal .exp-list li:nth-child(5) { animation-delay: 0.82s; }
.experience-card.reveal .exp-list li:nth-child(6) { animation-delay: 0.88s; }
.experience-card.reveal .exp-list li:nth-child(7) { animation-delay: 0.94s; }
.experience-card.reveal .exp-list li:nth-child(8) { animation-delay: 1.00s; }
.experience-card.reveal .exp-note { animation-delay: 1.08s; }

@keyframes revealUpSoft {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .experience-card.reveal .exp-period,
    .experience-card.reveal .exp-title,
    .experience-card.reveal .exp-org,
    .experience-card.reveal .exp-content > p,
    .experience-card.reveal .exp-subtitle,
    .experience-card.reveal .exp-list li,
    .experience-card.reveal .exp-note { animation: none; }
}

/* ---------------------------------------------------------
   Hero load animation
--------------------------------------------------------- */

.hero-text > * {
    opacity: 0;
    transform: translateY(18px);
    animation: heroIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero-text > .eyebrow      { animation-delay: 0.10s; }
.hero-text > .hero-title   { animation-delay: 0.20s; }
.hero-text > .hero-tagline { animation-delay: 0.35s; }
.hero-text > .hero-quote   { animation-delay: 0.50s; }
.hero-text > .hero-cta     { animation-delay: 0.65s; }

.hero-image .hero-photo-frame,
.hero-image .hero-side-card {
    opacity: 0;
    animation: heroFadeIn 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero-image .hero-photo-frame { animation-delay: 0.25s; }
.hero-image .hero-side-card   { animation-delay: 0.55s; transform: translateY(14px); }

@keyframes heroIn {
    to { opacity: 1; transform: none; }
}

@keyframes heroFadeIn {
    to { opacity: 1; transform: none; }
}

.site-header {
    animation: headerSlide 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes headerSlide {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

/* ---------------------------------------------------------
   Scroll progress bar
--------------------------------------------------------- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    z-index: 200;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ---------------------------------------------------------
   Smooth card lift on hover
--------------------------------------------------------- */

.featured-project,
.standard-project,
.interest-card,
.cert-card,
.experience-card,
.index-card {
    transition: box-shadow 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.standard-project:hover,
.interest-card:hover,
.cert-card:hover {
    box-shadow: var(--shadow-md);
}

.experience-card:hover {
    box-shadow: 0 2px 4px rgba(20, 25, 35, 0.025), 0 12px 32px rgba(20, 25, 35, 0.06);
}

.experience-card.featured:hover {
    box-shadow: 0 2px 4px rgba(155, 106, 63, 0.05), 0 14px 38px rgba(155, 106, 63, 0.09);
}


/* ---------------------------------------------------------
   Banner subtle entrance
--------------------------------------------------------- */

.banner-title,
.banner-intro,
.breadcrumb {
    opacity: 0;
    transform: translateY(18px);
    animation: heroIn 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.banner-title   { animation-delay: 0.22s; }
.banner-intro   { animation-delay: 0.35s; }
.breadcrumb     { animation-delay: 0.48s; }

/* ---------------------------------------------------------
   Section title underline reveal on view
--------------------------------------------------------- */

.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 2px;
    background: var(--accent);
    margin-top: 18px;
    animation: underlineGrow 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both;
}

@keyframes underlineGrow {
    from { width: 0; }
    to { width: 64px; }
}

/* (gallery stagger removed - content always visible to avoid scroll glitches) */

/* ---------------------------------------------------------
   Patches - December 2026 corrections
--------------------------------------------------------- */

/* Stack of timeline links (e.g. "Voir le diplôme" + "En savoir plus") */
.timeline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 8px;
}

.timeline-links .timeline-link { margin: 0; }

/* Two-column experience gallery for the CNPE tours */
.exp-gallery.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
}

.exp-gallery.two-cols img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    border-radius: 2px;
}

/* Italic sub-intro under engagement card */
.interest-intro {
    font-style: italic;
    color: var(--ink-soft);
    margin-top: 8px;
    margin-bottom: 4px;
}

/* Section title inside the voyages feature */
.travel-section-title {
    font-family: var(--serif);
    font-size: 26px;
    margin-top: 18px;
    margin-bottom: 12px;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.012em;
    font-variation-settings: "opsz" 96, "SOFT" 30, "wght" 420;
}

/* Refined centres d'interet page */
.interests-page .container {
    max-width: 1180px;
}

.metric-section {
    scroll-margin-top: 116px;
}

.interest-overview {
    position: relative;
    overflow: hidden;
}

.interest-overview::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
    opacity: 0.85;
}

.interest-overview .interest-head,
.interest-overview > p,
.interest-overview .metrics-row,
.interest-overview .interest-detail-grid {
    position: relative;
}

.metric-nav {
    background: transparent;
}

.metric-link {
    position: relative;
    display: flex;
    min-height: 168px;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    border: 0;
    border-right: 1px solid var(--line);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: var(--ink);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.metric-link::after {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.metric-link:last-child { border-right: none; }

.metric-link .metric-num {
    color: var(--accent);
    margin-bottom: 10px;
    transition: color var(--transition);
}

.metric-link .metric-label {
    color: var(--ink-muted);
    transition: color var(--transition);
}

.metric-action {
    display: block;
    margin-top: 16px;
    font-size: 11.5px;
    color: var(--accent);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.metric-link:hover,
.metric-link:focus-visible,
.metric-link.is-active {
    background: var(--bg-cream);
}

.metric-link:hover::after,
.metric-link:focus-visible::after,
.metric-link.is-active::after {
    transform: scaleX(1);
}

.metric-link:hover .metric-num,
.metric-link:focus-visible .metric-num,
.metric-link.is-active .metric-num {
    color: var(--ink);
}

.metric-link:hover .metric-label,
.metric-link:focus-visible .metric-label,
.metric-link.is-active .metric-label {
    color: var(--ink-soft);
}

.metric-link:hover .metric-action,
.metric-link:focus-visible .metric-action,
.metric-link.is-active .metric-action {
    color: var(--accent-hover);
}

.metric-link:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: -2px;
}

.interest-panels {
    margin-bottom: 32px;
}

[data-interest-content][hidden] {
    display: none !important;
}

[data-interest-content].is-active {
    animation: revealUp 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.interest-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    gap: 46px;
    align-items: center;
}

.interest-showcase.reverse {
    grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1fr);
    align-items: start;
}

.showcase-copy {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.7;
}

.showcase-copy > p {
    margin-bottom: 18px;
}

.showcase-copy .exp-list {
    margin-top: 18px;
}

.portrait-carousel,
.created-event-carousel {
    width: min(100%, 540px);
    margin: 0 auto;
}

.portrait-carousel .carousel-slide,
.created-event-carousel .carousel-slide {
    aspect-ratio: 4 / 5;
    background: var(--bg-cream);
}

.portrait-carousel .carousel-slide img {
    object-fit: cover;
}

.created-event-carousel .carousel-slide img {
    object-fit: contain;
}

.event-strip-carousel {
    width: 100%;
    max-width: none;
    margin: 24px 0 0;
    box-shadow: none;
}

.event-strip-carousel .carousel-slide {
    aspect-ratio: 16 / 10;
    background: var(--bg-cream);
}

.event-strip-carousel .carousel-slide img {
    object-fit: cover;
}

.travel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border: 1px solid rgba(155, 106, 63, 0.22);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(155, 106, 63, 0.06);
    border-radius: 999px;
}

.travel-kicker::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.future-note {
    max-width: 760px;
    margin: 4px 0 32px;
    padding: 16px 22px;
    border-left: 2px solid var(--accent);
    background: var(--bg-cream);
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

.travel-card {
    min-height: 0;
    padding: 26px 24px 24px;
    display: flex;
    flex-direction: column;
}

.travel-status {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.travel-card.highlight .travel-status {
    color: var(--accent-soft);
}

@media (max-width: 960px) {
    .interest-showcase,
    .interest-showcase.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .interest-showcase.reverse .showcase-copy {
        order: -1;
    }

    .portrait-carousel,
    .created-event-carousel,
    .social-carousel {
        width: min(100%, 460px);
    }
}

@media (max-width: 480px) {
    .metric-link {
        min-height: 138px;
    }

    .metric-link,
    .metric-link:last-child {
        border-right: none;
    }

    .metric-action {
        margin-top: 10px;
        font-size: 11.5px;
    }

    .interest-showcase {
        gap: 24px;
    }

    .future-note {
        padding: 14px 16px;
    }

    .travel-card {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .exp-gallery.two-cols { grid-template-columns: 1fr; }
    .hero-image { max-width: none; }
}

/* ---------------------------------------------------------
   Refined projects page
--------------------------------------------------------- */

.projects-page {
    padding-top: 92px;
}

.projects-page .container {
    max-width: 1100px;
}

.projects-intro {
    max-width: 760px;
    margin-bottom: 32px;
}

.projects-intro .section-title {
    margin-bottom: 16px;
}

.projects-intro .section-title::after {
    margin-top: 14px;
}

.projects-section-title {
    font-family: var(--serif);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: 0;
    margin: 56px 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-variation-settings: "opsz" 72, "SOFT" 30, "wght" 430;
}

.projects-intro + .projects-section-title {
    margin-top: 0;
}

/* ----- FEATURED ----- */

.featured-stack {
    display: grid;
    gap: 44px;
}

.featured-project {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.featured-hero {
    position: relative;
    width: 100%;
    height: 380px;
    margin: 0;
    background: var(--bg-cream);
    overflow: hidden;
}

.featured-hero > img:first-of-type {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#communication-gaco .featured-hero {
    background: var(--bg-cream);
    height: 520px;
}

#communication-gaco .featured-hero > img:first-of-type {
    object-fit: cover;
    object-position: center 44%;
}

#communication-gaco:hover .featured-hero > img:first-of-type {
    transform: scale(1.02);
}

.featured-hero-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 88px;
    height: 88px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.featured-content {
    padding: 40px 44px;
}

.featured-content .project-tag {
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.featured-content .project-title {
    font-family: var(--serif);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 6px;
    letter-spacing: 0;
    font-variation-settings: "opsz" 96, "SOFT" 30, "wght" 400;
}

.featured-content .project-role {
    font-size: 15px;
    color: var(--ink-muted);
    font-weight: 400;
    margin: 0 0 18px;
}

.featured-content .project-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 720px;
    margin: 0;
}

.featured-content .project-points {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
}

.featured-content .project-points li {
    position: relative;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
}

.featured-content .project-points li::before {
    content: '';
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.featured-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 28px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
}

.featured-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-stats .stat-num {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
    margin: 0;
    font-variation-settings: "opsz" 72, "wght" 430;
}

.featured-stats .stat-label {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

/* ----- STANDARD ----- */

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

.standard-project {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.standard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 2px;
}

.standard-head {
    flex: 1;
    min-width: 0;
}

.standard-project .project-tag {
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.standard-project .project-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 4px;
    letter-spacing: 0;
    font-variation-settings: "opsz" 48, "SOFT" 30, "wght" 430;
}

.standard-project .project-role {
    font-size: 14px;
    color: var(--ink-muted);
    font-weight: 400;
    margin: 0;
}

.standard-mark {
    flex-shrink: 0;
    max-width: 72px;
    max-height: 40px;
    object-fit: contain;
    opacity: 0.9;
}

.standard-project .project-lead {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 4px 0 0;
    max-width: none;
}

.standard-project .project-points {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.standard-project .project-points.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.standard-project .project-points li {
    position: relative;
    padding-left: 16px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
}

.standard-project .project-points li::before {
    content: '';
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--accent);
}

.standard-project .chip-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.standard-project .chip-list li {
    padding: 6px 12px;
    font-size: 12.5px;
    color: var(--ink-soft);
    background: var(--bg-cream);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.standard-metric {
    margin: 2px 0;
    font-size: 14px;
    color: var(--ink-soft);
}

.standard-metric strong {
    color: var(--accent);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    margin-right: 8px;
    line-height: 1;
    font-variation-settings: "opsz" 48, "wght" 430;
}

.standard-project .project-link {
    display: inline-block;
    margin-top: 2px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    align-self: flex-start;
    transition: color var(--transition);
}

.standard-project .project-link:hover {
    color: var(--accent-hover);
}

/* ----- DETAILS (light, consistent) ----- */

.project-details {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.project-details summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    list-style: none;
    user-select: none;
}

.project-details summary:hover { color: var(--accent-hover); }

.project-details summary::-webkit-details-marker {
    display: none;
}

.project-details summary::after {
    content: '→';
    display: inline-block;
    font-size: 15px;
    transition: transform var(--transition);
}

.project-details[open] summary::after {
    transform: rotate(90deg);
}

.project-details-inner {
    margin-top: 20px;
}

.project-details-inner .project-subtitle {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 400;
    color: var(--ink);
    margin: 24px 0 12px;
    line-height: 1.25;
    letter-spacing: 0;
    font-variation-settings: "opsz" 48, "SOFT" 30, "wght" 430;
}

.project-details-inner .project-subtitle:first-child { margin-top: 0; }
.project-details-inner .project-subtitle.no-margin { margin-top: 0; }

.project-detail-intro {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0 0 16px;
    line-height: 1.55;
}

/* Carousel inside details */
.featured-content .image-carousel,
.standard-project .image-carousel {
    margin: 14px 0 4px;
    border: 1px solid var(--line);
    background: var(--bg-cream);
    box-shadow: none;
}

/* Sub-projects (Move'Alt) */
.sub-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.sub-project {
    padding: 22px 20px;
    background: var(--bg-cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.sub-project p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 8px 0 0;
}

.sub-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    background: #fff;
}

.sub-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.sub-images .sub-img {
    aspect-ratio: 3 / 4;
    margin-top: 0;
}

.metric {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Quote (NetPilote) */
.project-quote {
    margin: 4px 0 18px;
    padding: 8px 0 8px 16px;
    border-left: 3px solid var(--accent);
    font-family: var(--serif);
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* Video grid (light, consistent) */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 8px 0 0;
}

.video-frame {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-tile {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.video-tile video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-caption {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-muted);
    margin: 0;
}

/* Image grid override inside details (4 supports) */
.project-details-inner .image-grid.four {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0 0;
}

.project-details-inner .image-grid.four img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
}

/* Responsive */

@media (max-width: 900px) {
    .projects-page .container {
        max-width: 760px;
    }

    .featured-hero { height: 300px; }
    #communication-gaco .featured-hero { height: 430px; }
    .featured-content { padding: 32px 30px; }
    .featured-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }

    .standard-grid { grid-template-columns: 1fr; }

    .sub-projects { grid-template-columns: 1fr; }
    .standard-project .project-points.two-col { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .projects-page { padding-top: 72px; }

    .projects-section-title {
        font-size: 20px;
        margin: 44px 0 20px;
    }

    .featured-hero { height: 220px; }
    #communication-gaco .featured-hero { height: 340px; }
    .featured-hero-badge { width: 64px; height: 64px; bottom: 14px; left: 14px; }
    .featured-content { padding: 26px 22px; }
    .featured-content .project-lead { font-size: 15.5px; }

    .standard-project { padding: 24px 22px; }
    .standard-mark { max-width: 56px; max-height: 32px; }
    .sub-project { padding: 18px 16px; }

    .featured-stats .stat-num { font-size: 26px; }
}

/* ---------------------------------------------------------
   Refined competences page
--------------------------------------------------------- */

.competences-page {
    background: linear-gradient(180deg, #191d1f 0%, #11171d 100%);
}

.competences-page .container {
    max-width: 1180px;
}

.skills-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: -28px 0 72px;
}

.skills-overview-card {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(251, 248, 243, 0.96);
    color: var(--ink);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.skills-overview-card:hover,
.skills-overview-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--accent-soft);
    background: #fff;
}

.skills-overview-card:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 3px;
}

.overview-count {
    width: max-content;
    min-width: 42px;
    padding: 5px 10px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-family: var(--serif);
    font-size: 14px;
    line-height: 1;
    color: var(--accent);
    font-variation-settings: "opsz" 24, "wght" 450;
}

.overview-label {
    display: block;
    font-family: var(--serif);
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.08;
    color: inherit;
    font-variation-settings: "opsz" 72, "SOFT" 30, "wght" 430;
}

.overview-text {
    display: block;
    color: rgba(26, 26, 26, 0.68);
    font-size: 13.5px;
    line-height: 1.45;
}

.competences-page .skills-board,
.competences-page .skills-title {
    scroll-margin-top: 112px;
}

.competences-page .skills-board {
    margin: 0 0 72px;
    padding: clamp(28px, 4vw, 46px);
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.competences-page .skills-board-head {
    max-width: 780px;
    margin-bottom: 30px;
}

.competences-page .skills-board-eyebrow {
    color: var(--accent);
    font-weight: 700;
}

.competences-page .skills-board-title {
    color: var(--ink);
}

.competences-page .skills-board-intro {
    color: var(--ink-soft);
}

.competences-page .skills-board-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.competences-page .skill-row {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
}

.competences-page .skill-row:first-child {
    padding-top: 24px;
}

.competences-page .skill-row:nth-child(5) {
    grid-column: 1 / -1;
}

.competences-page .skill-row-title {
    color: var(--ink);
}

.competences-page .skill-row p {
    max-width: none;
    color: var(--ink-soft);
}

.competences-page .star {
    background: #ded2bf;
}

.competences-page .star.full {
    background: var(--accent);
}

.competences-page .star.half {
    background: linear-gradient(to right, var(--accent) 0%, var(--accent) 50%, #ded2bf 50%, #ded2bf 100%);
}

.competences-page .rating-num {
    color: var(--accent);
    font-weight: 600;
}

.competences-page .skills-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.08;
    color: #fff;
    font-weight: 400;
    font-variation-settings: "opsz" 96, "SOFT" 30, "wght" 380;
}

.competences-page .skills-title:not(:first-of-type) {
    margin-top: 72px;
}

.competences-page .skills-board + .skills-title {
    margin-top: 0;
}

.competences-page .skills-title::after {
    content: '';
    height: 1px;
    flex: 1;
    min-width: 54px;
    background: rgba(255, 255, 255, 0.16);
}

.competences-page .skills-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 36px;
    margin-bottom: 0;
}

.competences-page .skill-block {
    grid-column: span 6;
    position: relative;
    margin: 0;
    padding: 40px;
    overflow: hidden;
    border: 1px solid rgba(227, 220, 205, 0.92);
    border-radius: var(--radius-lg);
    background: rgba(251, 248, 243, 0.98);
    color: var(--ink);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.competences-page .skill-block::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
}

.competences-page .competency-grid .skill-block {
    grid-column: span 4;
}

.competences-page .competency-grid .skill-block:nth-child(-n + 2) {
    grid-column: span 6;
}

.competences-page .skill-block h3,
.competences-page .skill-block h4 {
    font-family: var(--serif);
    font-size: clamp(21px, 2vw, 26px);
    color: var(--ink);
    margin-bottom: 22px;
    font-weight: 500;
    line-height: 1.14;
    font-variation-settings: "opsz" 72, "SOFT" 30, "wght" 430;
}

.competences-page .skill-block ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.competences-page .skill-block li {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.56;
}

.competences-page .skill-block li::before {
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.competences-page .skill-block strong {
    color: var(--ink);
    font-weight: 500;
}

.competences-page .soft-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 80px;
}

.competences-page .soft-card {
    min-height: 210px;
    margin: 0;
    padding: 32px 28px 28px;
    border: 1px solid rgba(227, 220, 205, 0.92);
    border-radius: var(--radius-lg);
    background: rgba(251, 248, 243, 0.98);
    color: var(--ink);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.07);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.competences-page .soft-card:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.competences-page .soft-card h3,
.competences-page .soft-card h4 {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.18;
    font-variation-settings: "opsz" 48, "SOFT" 30, "wght" 430;
}

.competences-page .soft-card p {
    color: var(--ink-soft);
}

@media (max-width: 1024px) {
    .skills-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -12px;
    }

    .competences-page .skills-board-list {
        grid-template-columns: 1fr;
    }

    .competences-page .skill-row:nth-child(5) {
        grid-column: auto;
    }

    .competences-page .competency-grid .skill-block,
    .competences-page .competency-grid .skill-block:nth-child(-n + 2) {
        grid-column: span 6;
    }

    .competences-page .soft-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .skills-overview {
        grid-template-columns: 1fr;
        margin-bottom: 42px;
    }

    .skills-overview-card {
        min-height: 0;
        padding: 22px;
    }

    .competences-page .skills-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .competences-page .skills-title::after {
        width: 100%;
        min-width: 0;
    }

    .competences-page .skills-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .competences-page .skill-block,
    .competences-page .competency-grid .skill-block,
    .competences-page .competency-grid .skill-block:nth-child(-n + 2) {
        grid-column: 1 / -1;
    }

    .competences-page .skill-block,
    .competences-page .soft-card,
    .competences-page .skill-row {
        padding: 22px;
    }

    .competences-page .soft-grid {
        grid-template-columns: 1fr;
        margin-bottom: 52px;
    }
}

/* ---------------------------------------------------------
   Micro-interactions — page-wide hover & reveal polish
--------------------------------------------------------- */

/* ---------- Featured project (projets.html) ---------- */
.featured-project {
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.featured-project:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(20, 25, 35, 0.04), 0 18px 44px rgba(20, 25, 35, 0.09);
}

.featured-hero > img:first-of-type {
    transition: transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.featured-project:hover .featured-hero > img:first-of-type {
    transform: scale(1.05);
}

.featured-hero-badge {
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.featured-project:hover .featured-hero-badge {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

/* ---------- Standard / sub project cards ---------- */
.standard-project,
.sub-project {
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.standard-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(20, 25, 35, 0.07);
}

.sub-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(20, 25, 35, 0.06);
}

/* ---------- Cert cards — image zoom ---------- */
.cert-card {
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cert-card:hover {
    transform: translateY(-2px);
}

.cert-image {
    overflow: hidden;
}

.cert-image img {
    transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cert-card:hover .cert-image img {
    transform: scale(1.04);
}

/* ---------- Skill blocks — accent line slides in ---------- */
.skill-block {
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.skill-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.skill-block:hover::after {
    transform: scaleY(1);
}

.skill-block li {
    transition: padding-left 0.3s;
}

/* ---------- Soft cards — subtle lift ---------- */
.soft-card {
    transition: background var(--transition),
                transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.soft-card:hover {
    transform: translateY(-2px);
}

/* ---------- Chip list — interactive feel ---------- */
.chip-list li {
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease;
}

.chip-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(155, 106, 63, 0.45);
    color: var(--accent-soft);
}

.section-light .chip-list li:hover,
.section-cream .chip-list li:hover {
    background: var(--bg-cream);
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- Stats — pulse when entering view ---------- */
.featured-stats .stat.reveal .stat-num {
    animation: statPop 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both;
}

.stat.reveal .stat-num {
    animation: statPop 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both;
}

@keyframes statPop {
    0%   { opacity: 0; transform: scale(0.85); }
    55%  { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* ---------- Buttons — micro arrow push ---------- */
.btn,
.nav-cta {
    transition: background var(--transition),
                color var(--transition),
                border-color var(--transition),
                transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(20, 25, 35, 0.12);
}

.btn:active {
    transform: translateY(0);
}

/* ---------- Index cards (homepage) — arrow slide ---------- */
.index-card {
    transition: background 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                color 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.index-card:hover {
    transform: translateY(-3px);
}

/* ---------- Video frames — zoom on hover ---------- */
.video-frame {
    overflow: hidden;
    transition: box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.video-frame:hover {
    box-shadow: 0 12px 36px rgba(20, 25, 35, 0.12);
}

/* ---------- Timeline figure (formation) — image zoom ---------- */
.timeline-figure {
    overflow: hidden;
}

.timeline-figure img {
    transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.timeline-entry:hover .timeline-figure img {
    transform: scale(1.04);
}

/* ---------- Hero photo subtle float ---------- */
.hero-photo-frame:hover {
    box-shadow: 0 12px 36px rgba(20, 25, 35, 0.14), 0 28px 72px rgba(20, 25, 35, 0.1);
}

.hero-photo-frame {
    transition: box-shadow 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Form fields — smoother focus ---------- */
.contact-form input,
.contact-form textarea {
    transition: border-color 0.3s ease,
                background 0.3s ease,
                box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(155, 106, 63, 0.12);
}

/* ---------- Footer nav — underline grow on hover ---------- */
.footer-nav a {
    position: relative;
    transition: color 0.3s ease;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--accent-soft);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.footer-nav a:hover {
    color: #fff;
}

.footer-nav a:hover::after {
    transform: scaleX(1);
}

/* ---------- Stagger reveal for grid children ---------- */
.skills-grid > .skill-block.reveal,
.soft-grid > .soft-card.reveal,
.competency-grid > .skill-block.reveal,
.featured-stats > .stat.reveal,
.cert-grid > .cert-card.reveal,
.standard-projects > .standard-project.reveal,
.standard-projects-grid > .standard-project.reveal,
.sub-projects > .sub-project.reveal {
    animation-delay: 0s;
}

.skills-grid > *:nth-child(2).reveal,
.soft-grid > *:nth-child(2).reveal,
.competency-grid > *:nth-child(2).reveal,
.featured-stats > *:nth-child(2).reveal,
.sub-projects > *:nth-child(2).reveal {
    animation-delay: 0.08s;
}

.skills-grid > *:nth-child(3).reveal,
.soft-grid > *:nth-child(3).reveal,
.competency-grid > *:nth-child(3).reveal,
.featured-stats > *:nth-child(3).reveal,
.sub-projects > *:nth-child(3).reveal {
    animation-delay: 0.16s;
}

.skills-grid > *:nth-child(4).reveal,
.soft-grid > *:nth-child(4).reveal,
.competency-grid > *:nth-child(4).reveal,
.featured-stats > *:nth-child(4).reveal,
.sub-projects > *:nth-child(4).reveal {
    animation-delay: 0.24s;
}

.skills-grid > *:nth-child(5).reveal,
.soft-grid > *:nth-child(5).reveal,
.competency-grid > *:nth-child(5).reveal {
    animation-delay: 0.32s;
}

.skills-grid > *:nth-child(6).reveal,
.soft-grid > *:nth-child(6).reveal,
.competency-grid > *:nth-child(6).reveal {
    animation-delay: 0.40s;
}

/* ---------- Section title underline — already exists, reinforce ---------- */
.section-title::after {
    transition: width 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reduced motion fallback ---------- */
@media (prefers-reduced-motion: reduce) {
    .featured-project:hover,
    .featured-project:hover .featured-hero > img:first-of-type,
    .featured-project:hover .featured-hero-badge,
    .standard-project:hover,
    .sub-project:hover,
    .cert-card:hover,
    .cert-card:hover .cert-image img,
    .soft-card:hover,
    .chip-list li:hover,
    .index-card:hover,
    .timeline-entry:hover .timeline-figure img,
    .hero-photo-frame:hover img,
    .btn:hover {
        transform: none;
    }

    .skill-block:hover::after {
        transform: scaleY(0);
    }

    .featured-stats .stat.reveal .stat-num,
    .stat.reveal .stat-num {
        animation: none;
    }

    .skills-grid > *.reveal,
    .soft-grid > *.reveal,
    .competency-grid > *.reveal,
    .featured-stats > *.reveal,
    .cert-grid > *.reveal,
    .standard-projects > *.reveal,
    .standard-projects-grid > *.reveal,
    .sub-projects > *.reveal {
        animation-delay: 0s;
    }

    .footer-nav a:hover::after {
        transform: scaleX(0);
    }
}
