/* ============================================
   ANTOINE CANOT — EMMA Site
   Theme: Duality / Big Bug
   Modes: Human (cream/warm) + AI (dark/terminal)
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Human Mode (default) */
    --bg-primary: #FAF6F1;
    --bg-secondary: #F0EBE3;
    --bg-accent: #E8E0D4;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4540;
    --text-muted: #8A8279;
    --accent: #C45D3E;
    --accent-hover: #A84B30;
    --accent-glow: rgba(196, 93, 62, 0.3);
    --cyan: #00D4FF;
    --cyan-dim: rgba(0, 212, 255, 0.15);
    --border: rgba(26, 26, 26, 0.1);
    --card-bg: rgba(255, 255, 255, 0.6);
    --nav-bg: rgba(250, 246, 241, 0.9);
    --overlay: rgba(250, 246, 241, 0.85);

    /* Fonts */
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;

    /* Spacing */
    --nav-height: 72px;
    --section-padding: clamp(80px, 12vh, 160px);
    --container-width: 1200px;

    /* Transitions */
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* AI Mode */
[data-mode="ai"] {
    --bg-primary: #0A0A0F;
    --bg-secondary: #0F0F18;
    --bg-accent: #141422;
    --text-primary: #E0E0E0;
    --text-secondary: #A0A0A0;
    --text-muted: #606060;
    --accent: #00D4FF;
    --accent-hover: #00B8E0;
    --accent-glow: rgba(0, 212, 255, 0.3);
    --border: rgba(0, 212, 255, 0.15);
    --card-bg: rgba(15, 15, 24, 0.8);
    --nav-bg: rgba(10, 10, 15, 0.92);
    --overlay: rgba(10, 10, 15, 0.9);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-serif);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background var(--transition-slow), color var(--transition-slow);
    overflow-x: hidden;
}

.mono { font-family: var(--font-mono); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

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

a { color: inherit; text-decoration: none; }

/* Mode visibility */
.human-only { display: block; }
.ai-only { display: none; }
[data-mode="ai"] .human-only { display: none; }
[data-mode="ai"] .ai-only { display: block; }

/* --- NAVIGATION --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 60px);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition-slow), border-color var(--transition-slow);
}

.nav-left { flex: 0 0 auto; }

.logo-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.nav-center {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity var(--transition), color var(--transition);
}

.nav-link:hover { opacity: 1; color: var(--accent); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 12px;
    cursor: pointer;
    transition: all var(--transition);
}

.lang-switch:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pill-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 16px;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: 20px;
}

.pill-switch:hover {
    border-color: var(--accent);
}

.pill {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4488FF;
    transition: background var(--transition);
    box-shadow: 0 0 8px rgba(68, 136, 255, 0.5);
}

[data-mode="ai"] .pill {
    background: #FF3344;
    box-shadow: 0 0 8px rgba(255, 51, 68, 0.5);
}

.pill-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-burger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: background var(--transition-slow);
}

.mobile-menu.active { display: flex; }

.mobile-link {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-bg-terminal {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A0A0F 0%, #0F1A2E 50%, #0A0A0F 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-terminal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 255, 0.03) 2px,
        rgba(0, 212, 255, 0.03) 4px
    );
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(40px, 6vw, 100px);
    max-width: var(--container-width);
    padding: 0 clamp(20px, 4vw, 60px);
    width: 100%;
}

.hero-emma-img {
    flex: 0 0 auto;
    width: clamp(250px, 30vw, 420px);
    margin-top: 8%;
}

.emma-hero-photo {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: opacity var(--transition-slow);
}

[data-mode="ai"] .emma-hero-photo {
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

.hero-text {
    flex: 1;
}

.hero-pre {
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Glitch Effect */
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-primary);
    transition: color var(--transition-slow);
}

.glitch {
    position: relative;
}

.glitch:hover {
    animation: glitch-text 0.4s linear;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch:hover::before {
    animation: glitch-before 0.4s linear;
    color: var(--cyan);
    opacity: 0.8;
}

.glitch:hover::after {
    animation: glitch-after 0.4s linear;
    color: var(--accent);
    opacity: 0.8;
}

@keyframes glitch-text {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

@keyframes glitch-before {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-5px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(5px); }
    60% { clip-path: inset(10% 0 70% 0); transform: translate(-3px); }
    80% { clip-path: inset(80% 0 5% 0); transform: translate(3px); }
}

@keyframes glitch-after {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(5px); }
    40% { clip-path: inset(10% 0 50% 0); transform: translate(-5px); }
    60% { clip-path: inset(70% 0 10% 0); transform: translate(3px); }
    80% { clip-path: inset(5% 0 80% 0); transform: translate(-3px); }
}

[data-mode="ai"] .hero-title {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.typing-container {
    min-height: 5rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
}

.typing {
    font-family: var(--font-mono);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    color: var(--accent);
    font-weight: 700;
}

.cursor {
    font-family: var(--font-mono);
    color: var(--accent);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.scroll-indicator .mono {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- SECTIONS --- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    margin-bottom: clamp(40px, 6vh, 80px);
}

.section-tag {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4.2vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    transition: color var(--transition-slow);
}

/* --- LE ROMAN --- */
.roman { background: var(--bg-secondary); transition: background var(--transition-slow); }

.roman-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.roman-cover {
    position: relative;
}

.cover-img {
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transition: transform var(--transition), box-shadow var(--transition);
}

.cover-img:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.cover-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition);
}

.cover-img:hover + .cover-glow { opacity: 1; }

.roman-synopsis {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-align: justify;
}

.roman-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.theme-tag {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    padding: 6px 14px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--transition);
}

.theme-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.roman-quote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.roman-quote p {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.roman-quote cite {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- CTA BLOCK --- */
.cta-block {
    margin-top: 2.5rem;
    text-align: left;
}

.cta-offer {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
    animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; text-shadow: none; }
    50% { opacity: 0.7; text-shadow: 0 0 12px var(--accent-glow); }
}

.btn-large {
    font-size: 1rem;
    padding: 18px 36px;
    letter-spacing: 0.12em;
}

.btn-large s {
    opacity: 0.5;
    text-decoration: line-through;
    margin-right: 4px;
}

/* --- TEASER --- */
.video-wrapper-outer {
    display: flex;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.15);
    width: 50%;
}

.video-wrapper video {
    width: 100%;
    display: block;
}

/* --- L'AUTEUR --- */
.auteur {
    position: relative;
    overflow: hidden;
}

.auteur-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.auteur-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.auteur .container { position: relative; z-index: 1; }

.auteur-grid {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.auteur-photo img {
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.auteur-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: justify;
}

.auteur-formation {
    font-size: 0.8rem !important;
    letter-spacing: 0.1em;
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    display: inline-block;
    padding: 8px 16px;
}

/* --- INTERVIEW (ex-MANIFESTE) --- */
.manifeste { background: var(--bg-secondary); transition: background var(--transition-slow); }

.interview-content {
    max-width: 900px;
}

.interview-intro {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.manifeste-lead {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-style: italic;
}

.interview-intro p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
    text-align: justify;
}

.interview-qa {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.interview-question {
    margin-top: 2rem;
}

.interview-question p {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.6;
}

.interview-answer {
    margin-top: 0.8rem;
}

.interview-answer p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.interview-final-quote {
    font-size: 1.3rem !important;
    color: var(--accent) !important;
    line-height: 1.5 !important;
    margin-top: 1rem !important;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent);
}

.interview-credit {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* --- EDITIONS --- */
.editions-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 700px;
    text-align: justify;
}

.editions-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* --- CONTACT --- */
.contact { background: var(--bg-secondary); transition: background var(--transition-slow); }

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.newsletter-block p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-align: justify;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.input-email {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 14px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition);
}

.input-email:focus {
    border-color: var(--accent);
}

.social-block p {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
    transition: all var(--transition);
}

.social-link:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateX(8px);
}

/* --- FOOTER --- */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    transition: border-color var(--transition-slow);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-inner .mono {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.footer-center {
    display: flex;
    gap: 2rem;
}

.footer-link {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.footer-link:hover { opacity: 1; color: var(--accent); }

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .nav-center { display: none; }
    .nav-right .pill-label { display: none; }
    .nav-burger { display: flex; }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 3rem;
    }

    .hero-emma-img { width: clamp(200px, 50vw, 300px); }

    .hero-cta { justify-content: center; }

    .roman-grid,
    .auteur-grid,
    .manifeste-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .auteur-photo { max-width: 350px; }

    .video-wrapper { width: 85%; }

    .newsletter-form { flex-direction: column; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-center { justify-content: center; }
}

@media (max-width: 600px) {
    .hero-title { font-size: clamp(3.5rem, 18vw, 6rem); }
    .hero-emma-img { width: 220px; }
    .roman-cover { max-width: 250px; margin: 0 auto; }
    .editions-info { flex-direction: column; gap: 0.8rem; }
}

/* ===== MODAL MENTIONS LÉGALES / CONFIDENTIALITÉ ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 18, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    animation: modalIn 0.28s ease;
}

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

/* Scrollbar */
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-track { background: var(--bg-accent); }
.modal-box::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 2rem;
    height: 2rem;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

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

/* Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.modal-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1px;
}

.modal-tab:hover:not(.active) { color: var(--text-primary); }

.modal-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

/* Content */
.modal-content { }
.modal-hidden  { display: none; }

.modal-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1.8rem;
}

.modal-section {
    margin-bottom: 1.6rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--border);
}

.modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-section-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

.modal-section p {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--text-secondary);
    text-align: left;
}

/* Dark mode adaptation */
[data-mode="ai"] .modal-box {
    background: var(--bg-secondary);
    border-color: var(--border);
}

[data-mode="ai"] .modal-section p {
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .modal-box {
        padding: 1.5rem;
        max-height: 90vh;
    }
    .modal-tab { padding: 0.5rem 0.8rem; font-size: 0.65rem; }
}

/* LinkedIn (coming soon) */
.social-link-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
