/* ===================================
   WILLIS POLIGONU — Main Stylesheet
   Dark, Atmospheric, Literary
   =================================== */

:root {
    --bg-darkest: #050308;
    --bg-dark: #0a0610;
    --bg-mid: #110a1a;
    --bg-card: #160e22;
    --bg-card-hover: #1e1530;
    --accent-blood: #8b1a1a;
    --accent-crimson: #c0392b;
    --accent-ruby: #e74c3c;
    --accent-gold: #c9a84c;
    --accent-gold-light: #e8c97a;
    --accent-purple: #6b2fa0;
    --accent-purple-light: #9b59b6;
    --text-primary: #e8e0f0;
    --text-secondary: #a89bc0;
    --text-muted: #6a5f7a;
    --text-dim: #3d3550;
    --border-subtle: rgba(139, 26, 26, 0.2);
    --border-medium: rgba(139, 26, 26, 0.4);
    --glow-blood: rgba(139, 26, 26, 0.5);
    --glow-ruby: rgba(231, 76, 60, 0.3);
    --glow-gold: rgba(201, 168, 76, 0.3);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-body: 'Crimson Text', Georgia, serif;
    --font-ui: 'Inter', sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: default;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-darkest); }
::-webkit-scrollbar-thumb { background: var(--accent-blood); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-crimson); }

/* ===== PARTICLE CANVAS ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ===== NAVIGATION ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.4s var(--transition-smooth);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(5, 3, 8, 0.92);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.logo-icon {
    color: var(--accent-blood);
    font-size: 1.4rem;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 4px var(--accent-blood)); opacity: 0.8; }
    50% { filter: drop-shadow(0 0 12px var(--accent-ruby)); opacity: 1; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.3rem;
}

.nav-links a {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(139, 26, 26, 0.15);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    filter: saturate(0.7) contrast(1.2);
    transform: scale(1.05);
    animation: subtle-zoom 20s ease-in-out infinite alternate;
}

@keyframes subtle-zoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(139, 26, 26, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(5, 3, 8, 0.95) 0%, transparent 60%),
        linear-gradient(180deg, 
            rgba(5,3,8,0.5) 0%, 
            rgba(10,6,16,0.3) 40%, 
            rgba(10,6,16,0.6) 70%,
            rgba(5,3,8,0.98) 100%
        );
}

.hero-vein-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Ccircle cx='400' cy='400' r='250' fill='none' stroke='rgba(139,26,26,0.08)' stroke-width='1'/%3E%3Ccircle cx='400' cy='400' r='200' fill='none' stroke='rgba(139,26,26,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 800px 800px;
    background-position: center;
    background-repeat: no-repeat;
    animation: rotate-slow 60s linear infinite;
    opacity: 0.5;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    animation: hero-fade-in 1.5s ease forwards;
}

@keyframes hero-fade-in {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-crimson);
    margin-bottom: 1.5rem;
    animation: fade-up 1s ease 0.3s both;
}

.hero-title {
    font-family: var(--font-serif);
    line-height: 0.9;
    margin-bottom: 1rem;
    animation: fade-up 1s ease 0.5s both;
}

.hero-title-main {
    display: block;
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(232, 224, 240, 0.15);
    letter-spacing: -0.02em;
    line-height: 0.85;
}

.hero-title-sub {
    display: block;
    font-size: clamp(2rem, 7vw, 5.5rem);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-book-name {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem auto 2rem;
    padding: 0.6rem 2rem;
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    background: rgba(139, 26, 26, 0.1);
    animation: fade-up 1s ease 0.7s both;
}

.book-number {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--accent-gold);
    font-weight: 400;
}

.book-title-word {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    letter-spacing: 0.15em;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: fade-up 1s ease 0.9s both;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-up 1s ease 1.1s both;
}

.btn-primary {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 2.5rem;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--accent-blood), var(--accent-crimson));
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(139, 26, 26, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 40px rgba(192, 57, 43, 0.6);
    background: linear-gradient(135deg, var(--accent-crimson), var(--accent-ruby));
}

.btn-outline {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 2.5rem;
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(139, 26, 26, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-blood);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fade-up 1s ease 1.5s both;
}

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

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 1; height: 50px; }
}

.scroll-indicator span {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-float-element {
    position: absolute;
    color: rgba(139, 26, 26, 0.15);
    pointer-events: none;
    animation: float-drift 8s ease-in-out infinite;
}

.element-1 { top: 15%; left: 5%; font-size: 8rem; animation-delay: 0s; }
.element-2 { top: 60%; right: 5%; font-size: 5rem; animation-delay: -3s; }
.element-3 { bottom: 20%; left: 10%; font-size: 3rem; animation-delay: -6s; }

@keyframes float-drift {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    33% { transform: translateY(-20px) rotate(10deg); opacity: 0.25; }
    66% { transform: translateY(10px) rotate(-5deg); opacity: 0.1; }
}

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

/* ===== SECTION COMMON ===== */
section {
    position: relative;
    z-index: 2;
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-crimson);
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    margin-bottom: 1.2rem;
    background: rgba(139, 26, 26, 0.08);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-title.center { text-align: center; }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== WHAT IS SECTION ===== */
.what-is-section {
    background: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 50%, var(--bg-darkest) 100%);
    padding: 8rem 0;
}

.what-is-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.polygon-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.willis-svg {
    width: 100%;
    max-width: 320px;
    filter: drop-shadow(0 0 30px rgba(139, 26, 26, 0.4));
}

.pulse-dot {
    animation: dot-pulse 1.5s ease-in-out infinite;
}
.pulse-dot-2 {
    animation: dot-pulse 1.5s ease-in-out infinite 0.3s;
}
.pulse-dot-3 {
    animation: dot-pulse 1.5s ease-in-out infinite 0.6s;
}

@keyframes dot-pulse {
    0%, 100% { r: 5; opacity: 0.7; }
    50% { r: 9; opacity: 1; }
}

.diagram-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

.what-is-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.what-is-desc strong {
    color: var(--accent-ruby);
}

.fact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.fact-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blood);
    transform: translateX(4px);
}

.fact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.fact-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.fact-text strong {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-primary);
}

.fact-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-ui);
}

/* ===== STORY / TIMELINE SECTION ===== */
.story-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.story-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(139, 26, 26, 0.06) 0%, transparent 60%),
        var(--bg-mid);
    z-index: 0;
}

.story-timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--accent-blood) 20%, var(--accent-blood) 80%, transparent);
    transform: translateX(-50%);
    opacity: 0.4;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 3rem);
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s var(--transition-smooth);
}

.timeline-item.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 3rem);
    transform: translateX(30px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 1.5rem;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-blood);
    border: 2px solid var(--bg-darkest);
    box-shadow: 0 0 15px var(--glow-blood);
    z-index: 2;
}

.timeline-dot.danger {
    background: var(--accent-ruby);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.7);
    animation: danger-pulse 1.5s ease-in-out infinite;
}

.timeline-dot.mystery {
    background: var(--accent-purple);
    box-shadow: 0 0 20px rgba(107, 47, 160, 0.7);
}

.timeline-dot.gold {
    background: var(--accent-gold);
    box-shadow: 0 0 20px var(--glow-gold);
}

@keyframes danger-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(231,76,60,0.5); }
    50% { box-shadow: 0 0 30px rgba(231,76,60,0.9); }
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.8rem 2rem;
    max-width: 480px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blood);
    box-shadow: 0 8px 30px rgba(139, 26, 26, 0.2);
}

.timeline-date {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-crimson);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.danger-badge {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--accent-ruby);
    letter-spacing: 0.1em;
}

.mystery-badge {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(107, 47, 160, 0.15);
    border: 1px solid rgba(107, 47, 160, 0.4);
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--accent-purple-light);
    letter-spacing: 0.1em;
}

/* ===== TRILOGY SECTION ===== */
.trilogy-section {
    background: var(--bg-darkest);
    padding: 8rem 0;
}

.trilogy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.trilogy-book {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s ease;
}

.trilogy-book.upcoming {
    opacity: 0.6;
}

.trilogy-book.upcoming:hover {
    opacity: 0.8;
}

.trilogy-book.active:hover .book-cover-wrapper {
    transform: translateY(-8px);
}

.book-cover-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s ease;
    aspect-ratio: 2/3;
    background: var(--bg-card);
}

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

.book-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(139,26,26,0.3) 0%, transparent 60%);
    pointer-events: none;
}

.book-glow.coming {
    background: radial-gradient(ellipse at 50% 100%, rgba(107,47,160,0.3) 0%, transparent 60%);
}

.book-glow.dark {
    background: radial-gradient(ellipse at 50% 100%, rgba(30,20,50,0.5) 0%, transparent 60%);
}

.book-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-mid));
    border: 1px solid var(--border-subtle);
}

.book-placeholder.dark {
    background: linear-gradient(135deg, var(--bg-darkest), var(--bg-card));
}

.placeholder-roman {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--accent-blood);
    opacity: 0.4;
    line-height: 1;
}

.placeholder-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.book-info {
    padding: 0.5rem;
}

.book-number-badge {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-bottom: 0.3rem;
}

.book-name {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.book-status {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.book-status.available { color: #27ae60; }
.book-status.coming-soon { color: var(--text-muted); }

.book-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.book-tags span {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ===== AUTHORS SECTION ===== */
.authors-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.authors-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 70% 30%, rgba(107,47,160,0.07) 0%, transparent 50%),
        var(--bg-dark);
    z-index: 0;
}

.authors-intro {
    max-width: 750px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

.authors-photos-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.photo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.photo-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.photo-card.featured .photo-frame {
    aspect-ratio: 3/4;
}

.photo-card.small .photo-frame {
    aspect-ratio: 1;
}

.author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: sepia(0.15) contrast(1.05);
    transition: all 0.5s ease;
}

.photo-card:hover .author-photo {
    transform: scale(1.05);
    filter: sepia(0) contrast(1.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(5,3,8,0.85));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-caption-inner {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* Error fallback for missing photos */
.photo-frame.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-mid));
}

.photo-frame.no-img::after {
    content: '📷';
    font-size: 3rem;
    opacity: 0.3;
}

.photo-names {
    padding: 1rem 1.2rem;
    background: var(--bg-card);
}

.author-name-pair {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-name {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.name-label {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-primary);
}

.name-role {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.name-divider {
    color: var(--accent-blood);
    font-size: 1.5rem;
    line-height: 1;
}

.photo-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.authors-bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.bio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.bio-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blood);
    box-shadow: 0 8px 30px rgba(139,26,26,0.15);
}

.bio-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bio-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.bio-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.bio-role-badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.25rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 0.6rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.35);
    color: var(--accent-gold-light);
}

.bio-role-badge.hero {
    background: rgba(139, 26, 26, 0.12);
    border-color: rgba(192, 57, 43, 0.35);
    color: var(--accent-crimson);
}

/* ===== VIDEO SECTION ===== */
.video-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(139,26,26,0.08) 0%, transparent 70%),
        var(--bg-mid);
    z-index: 0;
}

.video-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.video-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-medium);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(139,26,26,0.2);
    aspect-ratio: 16/9;
    background: var(--bg-card);
}

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

.video-overlay-play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(5,3,8,0.6);
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-overlay-play:hover {
    background: rgba(5,3,8,0.4);
}

.video-overlay-play.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(139,26,26,0.8);
    border: 2px solid rgba(192,57,43,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px rgba(139,26,26,0.5);
}

.play-button-large:hover {
    background: var(--accent-crimson);
    transform: scale(1.1);
    box-shadow: 0 0 60px rgba(192,57,43,0.7);
}

.play-button-large svg {
    width: 30px;
    height: 30px;
}

.video-meta {
    text-align: center;
}

.video-doctor {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-primary);
}

.video-topic {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
}

.video-info h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.video-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.video-facts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vfact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.vfact-num {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-crimson);
    min-width: 60px;
    line-height: 1;
}

.vfact-label {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== PREFACE SECTION ===== */
.preface-section {
    background: var(--bg-darkest);
    padding: 8rem 0;
}

.preface-wrapper {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: inset 0 0 60px rgba(139,26,26,0.05);
}

.preface-quote-mark {
    font-family: var(--font-serif);
    font-size: 8rem;
    color: var(--accent-blood);
    opacity: 0.25;
    line-height: 0.8;
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-style: italic;
}

.preface-quote-mark.close {
    top: auto;
    left: auto;
    bottom: 1rem;
    right: 2rem;
    line-height: 0;
}

.preface-text {
    position: relative;
    z-index: 1;
    padding: 1rem 2rem;
}

.preface-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.preface-text p:first-child {
    padding-top: 2rem;
}

.preface-text strong {
    color: var(--text-primary);
    font-style: normal;
}

.preface-text em {
    color: var(--accent-gold-light);
}

.preface-final {
    font-size: 1.25rem !important;
    color: var(--text-primary) !important;
    font-style: italic !important;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.2rem !important;
    margin-top: 1.2rem;
}

.preface-author {
    text-align: right;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
    padding-right: 2rem;
}

/* ===== ANATOMY SECTION ===== */
.anatomy-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-darkest), var(--bg-dark));
}

.anatomy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.anatomy-text .section-title {
    margin-bottom: 1.5rem;
}

.anatomy-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.anatomy-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent-gold-light);
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-blood);
    line-height: 1.6;
}

.anatomy-img {
    width: 100%;
    border-radius: var(--radius-xl);
    filter: drop-shadow(0 0 40px rgba(139,26,26,0.3));
    transition: all 0.5s ease;
}

.anatomy-img:hover {
    filter: drop-shadow(0 0 60px rgba(192,57,43,0.4));
    transform: scale(1.02);
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    background: var(--bg-darkest);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
    overflow: hidden;
}

.footer-vein {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blood), transparent);
    opacity: 0.5;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4, .footer-books h4 {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-links ul, .footer-books ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-ui);
    transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--accent-crimson); }

.footer-books li {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.available-dot { color: #27ae60; font-size: 0.6rem; }
.coming-dot { color: var(--text-muted); font-size: 0.6rem; }

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-subtitle {
    font-style: italic;
    color: var(--accent-blood) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .what-is-grid,
    .anatomy-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .polygon-diagram {
        max-width: 280px;
        margin: 0 auto;
    }

    .trilogy-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }

    .authors-photos-grid {
        grid-template-columns: 1fr;
    }

    .video-wrapper {
        grid-template-columns: 1fr;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5,3,8,0.98);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.open { display: flex; }

    .nav-toggle { display: flex; }

    .hero-title-main { font-size: clamp(3.5rem, 18vw, 8rem); }

    .timeline-line { display: none; }

    .timeline-item,
    .timeline-item.right {
        justify-content: center;
        padding: 0;
        flex-direction: column;
        align-items: center;
    }

    .timeline-dot {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin-bottom: 1rem;
    }

    .timeline-content {
        max-width: 100%;
    }

    .authors-bio-grid {
        grid-template-columns: 1fr;
    }

    .photo-side-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .preface-wrapper {
        padding: 2rem 1.5rem;
    }

    .preface-text { padding: 0.5rem; }
}

@media (max-width: 480px) {
    section { padding: 4rem 0; }

    .photo-side-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-outline {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }
}
