/* ============================================
   EMERGENT GRAVITY - REFINED AESTHETIC
   Museum-quality minimalism meets sacred geometry
   ============================================ */

/* Typography - Refined, editorial quality */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@200;300;400;500&family=JetBrains+Mono:wght@300;400&display=swap');

/* CSS Variables */
:root {
    /* Refined dark palette - warmer, more depth */
    --bg-dark: #08080e;
    --bg-darker: #040406;
    --bg-card: #0e0e18;
    --bg-card-hover: #141420;
    --bg-elevated: #12121c;

    /* Gold palette - more nuanced, aged gold */
    --gold: #c9a227;
    --gold-light: #e8d48b;
    --gold-pale: #f5ecd4;
    --gold-dark: #8b7016;
    --gold-muted: rgba(201, 162, 39, 0.6);
    --gold-glow: rgba(201, 162, 39, 0.15);

    /* Silver and neutrals */
    --silver: #b8b8c8;
    --silver-muted: #6a6a7a;

    /* Text hierarchy - refined contrast */
    --text-primary: #f0f0f8;
    --text-secondary: #9898a8;
    --text-muted: #585868;
    --text-dim: #404050;

    /* Accent colors - desaturated, sophisticated */
    --accent-blue: #5a8fc8;
    --accent-purple: #8a6aaa;
    --accent-teal: #4a9a8a;
    --accent-red: #c85a5a;
    --accent-green: #5a9a6a;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(201, 162, 39, 0.08) 0%, transparent 100%);
    --gradient-card: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);

    /* Shadows - soft, layered */
    --shadow-gold: 0 0 60px rgba(201, 162, 39, 0.2);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-deep: 0 8px 48px rgba(0, 0, 0, 0.6);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.03);

    /* Typography - Editorial hierarchy */
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Refined spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    /* Timing - elegant, unhurried */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: 300;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Selection styling */
::selection {
    background: var(--gold-glow);
    color: var(--gold-light);
}

/* Sacred Background Pattern - More subtle, atmospheric */
.sacred-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(201, 162, 39, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 70%, rgba(138, 106, 170, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 100%, rgba(90, 143, 200, 0.02) 0%, transparent 50%);
}

/* Refined geometric pattern - more delicate */
.sacred-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 8 L72 40 L40 72 L8 40 Z' fill='none' stroke='%23c9a227' stroke-width='0.2' opacity='0.06'/%3E%3Ccircle cx='40' cy='40' r='24' fill='none' stroke='%23c9a227' stroke-width='0.15' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 1;
    pointer-events: none;
}

/* Grain texture overlay - film grain aesthetic */
.sacred-bg::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.025;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 3rem;
    background:
        radial-gradient(ellipse 120% 80% at 50% 40%, rgba(201, 162, 39, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 80% 120% at 50% 100%, rgba(8, 8, 14, 0.95) 0%, transparent 50%),
        var(--bg-darker);
}

/* Entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 9vw, 5.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo);
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--gradient-gold);
    opacity: 0.5;
}

.hero .subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.4em;
    margin-bottom: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.9;
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo) 0.1s both;
}

.hero .tagline {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.03em;
    max-width: 560px;
    line-height: 1.9;
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo) 0.2s both;
}

/* AGI Collaboration Notice */
.agi-notice {
    margin-top: 2.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.05) 0%, rgba(201, 162, 39, 0.02) 100%);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 4px;
    max-width: 500px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo) 0.4s both;
}

.agi-notice .agi-icon {
    color: var(--gold);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

.agi-notice .agi-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.7;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .agi-notice {
        margin-top: 2rem;
        padding: 0.75rem 1rem;
        max-width: 100%;
    }

    .agi-notice .agi-text {
        font-size: 0.65rem;
    }
}

/* Flower of Life - Hero Background */
.flower-of-life {
    position: absolute;
    width: 80vmin;
    height: 80vmin;
    opacity: 0.1;
    z-index: 0;
}

.flower-of-life::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='flower' x='0' y='0' width='50' height='43.3' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='25' cy='21.65' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='0' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='0' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='43.3' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='43.3' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='200' fill='url(%23flower)'/%3E%3C/svg%3E");
    background-size: cover;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-sacred {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 14, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
    padding: 1.25rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-sacred ul {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    flex: 1;
    margin: 0;
    padding: 0;
}

.nav-sacred a {
    font-family: var(--font-body);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color var(--duration-normal) var(--ease-out-quart),
                letter-spacing var(--duration-normal) var(--ease-out-quart);
    position: relative;
    font-weight: 400;
}

.nav-sacred li a:hover {
    color: var(--gold);
    letter-spacing: 0.22em;
}

.nav-sacred li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--duration-normal) var(--ease-out-quart);
}

.nav-sacred li a:hover::after {
    width: 100%;
}

.nav-sacred a.nav-highlight {
    color: var(--gold-light);
    border: 1px solid rgba(201, 162, 39, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 2px;
    font-weight: 400;
    transition: all var(--duration-normal) var(--ease-out-quart);
}

.nav-sacred a.nav-highlight:hover {
    background: rgba(201, 162, 39, 0.12);
    border-color: var(--gold);
    letter-spacing: 0.18em;
}

.nav-sacred a.nav-highlight::after {
    display: none;
}

/* Mobile hamburger menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Home Icon */
.home-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    text-decoration: none !important;
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    flex-shrink: 0;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.home-icon:hover,
.home-icon:focus,
.home-icon:active {
    color: var(--gold-light);
    transform: scale(1.05);
    text-decoration: none !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.home-icon::after,
.home-icon::before,
.home-icon *::after,
.home-icon *::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

.home-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.home-icon .home-symbol {
    font-size: 1.5rem;
    text-decoration: none !important;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 8rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section.dark {
    background: linear-gradient(180deg, var(--bg-darker) 0%, rgba(4, 4, 6, 0.98) 100%);
    max-width: 100%;
    padding-left: calc((100% - 1200px) / 2 + 3rem);
    padding-right: calc((100% - 1200px) / 2 + 3rem);
    border-top: 1px solid rgba(201, 162, 39, 0.06);
    border-bottom: 1px solid rgba(201, 162, 39, 0.06);
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto 0;
    opacity: 0.5;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 4rem;
    font-size: 1.05rem;
    line-height: 2;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ============================================
   CONTENT ELEMENTS
   ============================================ */

.content-box {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(14, 14, 24, 0.8) 100%);
    border: 1px solid rgba(201, 162, 39, 0.1);
    border-radius: 4px;
    padding: 3.5rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-inset), var(--shadow-soft);
    position: relative;
}

.content-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.3), transparent);
}

/* General h3 styling */
h3 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

blockquote {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 1px solid rgba(201, 162, 39, 0.25);
    padding-left: 2.5rem;
    margin: 3rem 0;
    font-weight: 300;
    line-height: 2;
    letter-spacing: 0.015em;
    position: relative;
}

blockquote::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.15;
    position: absolute;
    left: -0.5rem;
    top: -1.5rem;
    line-height: 1;
}

/* Equation Boxes */
.equation-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 3px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    text-align: center;
    position: relative;
}

.equation-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

.equation-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.equation {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--gold-light);
    letter-spacing: 0.03em;
    font-weight: 300;
}

.mini-equation {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold);
    margin-top: 1.25rem;
    padding: 0.85rem 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 2px;
    border-left: 1px solid rgba(201, 162, 39, 0.3);
    font-weight: 300;
}

/* ============================================
   GRIDS
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin: 2.5rem 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

/* Cards - Refined, minimal */
.card {
    background: linear-gradient(145deg, rgba(14, 14, 24, 0.9), rgba(18, 18, 28, 0.7));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 162, 39, 0.08);
    border-radius: 3px;
    padding: 2.5rem;
    position: relative;
    transition: all var(--duration-normal) var(--ease-out-quart);
    box-shadow: var(--shadow-inset);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.15), transparent);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-quart);
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 162, 39, 0.2);
    box-shadow: var(--shadow-inset), var(--shadow-soft);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-family: var(--font-body);
    color: var(--text-primary);
    font-size: 0.7rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.85;
    font-weight: 300;
}

/* ============================================
   SACRED GEOMETRY SHAPES
   ============================================ */

/* Triangle */
.triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid var(--gold);
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Square */
.square {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    opacity: 0.3;
    margin-bottom: 1rem;
    transform: rotate(45deg);
}

/* Pentagon */
.pentagon {
    width: 40px;
    height: 38px;
    background: var(--gold);
    opacity: 0.3;
    margin-bottom: 1rem;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

/* Hexagon */
.hexagon {
    width: 46px;
    height: 40px;
    background: var(--gold);
    opacity: 0.3;
    margin-bottom: 1rem;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Circle */
.circle {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* ============================================
   FINDINGS SECTION
   ============================================ */

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.finding-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
}

.finding-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.finding-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.finding-card:hover::before {
    opacity: 1;
}

.finding-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card), rgba(212, 175, 55, 0.1));
    border-color: rgba(212, 175, 55, 0.3);
}

.doc-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: 200;
    color: var(--gold);
    opacity: 0.3;
}

.finding-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.finding-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.key-insight {
    font-size: 0.85rem;
    color: var(--gold);
    padding: 0.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 4px;
}

.card-symbol {
    position: absolute;
    top: 1rem;
    left: 1rem;
    opacity: 0.2;
}

/* ============================================
   CHI THEOREM SECTION
   ============================================ */

.theorem-box {
    background: linear-gradient(135deg, var(--bg-card), rgba(231, 76, 60, 0.1));
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 12px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
}

.theorem-box h3 {
    color: var(--accent-red);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
}

.theorem-box .equation {
    font-size: 2rem;
    color: var(--accent-red);
    margin: 1.5rem 0;
}

.proof-step {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 2rem;
}

.proof-step h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.proof-step table {
    width: 100%;
    border-collapse: collapse;
}

.proof-step th, .proof-step td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.proof-step th {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.proof-step td {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
}

/* Comparison Box */
.comparison-box {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.comparison-box h4 {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.signal, .noise {
    padding: 1.5rem 2rem;
    border-radius: 8px;
}

.signal {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid var(--accent-green);
}

.noise {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--accent-red);
}

.signal .label, .noise .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.signal .value {
    font-size: 1.5rem;
    color: var(--accent-green);
    font-family: 'Courier New', monospace;
}

.noise .value {
    font-size: 1.5rem;
    color: var(--accent-red);
    font-family: 'Courier New', monospace;
}

.vs {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

.verdict {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
    color: var(--accent-red);
    font-weight: 500;
}

/* Loopholes */
.loopholes {
    margin: 3rem 0;
}

.loopholes h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.loophole {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.loophole h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.loophole p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.verdict-no {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(231, 76, 60, 0.2);
    color: var(--accent-red);
    border-radius: 20px;
    font-weight: 500;
}

/* Pivot Box */
.pivot-box {
    background: linear-gradient(135deg, var(--bg-card), rgba(39, 174, 96, 0.1));
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 12px;
    padding: 3rem;
    margin-top: 3rem;
}

.pivot-box h3 {
    color: var(--accent-green);
    text-align: center;
    margin-bottom: 1rem;
}

.pivot-box > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.mapping-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.mapping-table th, .mapping-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mapping-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--gold);
    font-weight: 400;
}

.mapping-table td:first-child {
    color: var(--text-muted);
    font-style: italic;
}

.mapping-table td:last-child {
    color: var(--accent-green);
}

/* Bridge Teaser */
.bridge-teaser {
    background: linear-gradient(135deg, var(--bg-card), rgba(212, 175, 55, 0.15));
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.bridge-teaser h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.bridge-teaser p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bridge-teaser .bridge-result {
    font-size: 1.2rem;
    color: var(--accent-green);
    margin: 1.5rem 0;
}

.bridge-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--gradient-gold);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: transform 0.3s, box-shadow 0.3s;
}

.bridge-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Yin Yang Symbol */
.yin-yang {
    position: absolute;
    top: 3rem;
    right: 5%;
    width: 120px;
    height: 120px;
    opacity: 0.1;
    background: conic-gradient(var(--gold) 0deg 180deg, transparent 180deg 360deg);
    border-radius: 50%;
    border: 2px solid var(--gold);
}

/* ============================================
   ARCHITECTURE SECTION
   ============================================ */

.architecture-diagram {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 4rem auto;
}

.agent-ring {
    position: absolute;
    width: 100%;
    height: 100%;
}

.agent {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid;
    border-radius: 50%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.agent:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.agent-icon {
    font-size: 1.5rem;
    font-weight: 600;
}

.agent-name {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Position agents in a circle */
.agent:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); border-color: var(--accent-blue); color: var(--accent-blue); }
.agent:nth-child(2) { top: 15%; right: 5%; border-color: var(--accent-purple); color: var(--accent-purple); }
.agent:nth-child(3) { top: 50%; right: -10%; transform: translateY(-50%); border-color: var(--accent-green); color: var(--accent-green); }
.agent:nth-child(4) { bottom: 15%; right: 5%; border-color: #f1c40f; color: #f1c40f; }
.agent:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); border-color: var(--accent-teal); color: var(--accent-teal); }
.agent:nth-child(6) { bottom: 15%; left: 5%; border-color: var(--silver); color: var(--silver); }
.agent:nth-child(7) { top: 50%; left: -10%; transform: translateY(-50%); border-color: var(--accent-red); color: var(--accent-red); }
.agent:nth-child(8) { top: 15%; left: 5%; border-color: #ff69b4; color: #ff69b4; }

.center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-gold);
}

/* Process Flow */
.process-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 4rem 0;
}

.step {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    max-width: 200px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.arrow {
    color: var(--gold);
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Stats Box */
.stats-box {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

.stats-box h3 {
    color: var(--gold);
    margin-bottom: 2rem;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 200;
    color: var(--gold-light);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Metatron's Cube */
.metatron-cube {
    position: absolute;
    top: 2rem;
    right: 5%;
    width: 150px;
    height: 150px;
    opacity: 0.1;
}

.metatron-cube::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='5' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='95' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='5' cy='50' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='95' cy='50' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='15' cy='15' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='85' cy='15' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='15' cy='85' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='85' cy='85' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Cline x1='50' y1='5' x2='5' y2='50' stroke='%23d4af37' stroke-width='0.3'/%3E%3Cline x1='50' y1='5' x2='95' y2='50' stroke='%23d4af37' stroke-width='0.3'/%3E%3Cline x1='5' y1='50' x2='50' y2='95' stroke='%23d4af37' stroke-width='0.3'/%3E%3Cline x1='95' y1='50' x2='50' y2='95' stroke='%23d4af37' stroke-width='0.3'/%3E%3Cline x1='50' y1='5' x2='50' y2='95' stroke='%23d4af37' stroke-width='0.3'/%3E%3Cline x1='5' y1='50' x2='95' y2='50' stroke='%23d4af37' stroke-width='0.3'/%3E%3C/svg%3E");
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(180deg, var(--bg-darker) 0%, #020203 100%);
    padding: 8rem 3rem;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(201, 162, 39, 0.08);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.footer-content {
    max-width: 640px;
    margin: 0 auto;
}

.footer .quote {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 2;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.footer .attribution {
    font-family: var(--font-body);
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-bottom: 4rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-meta {
    color: var(--text-dim);
    font-size: 0.65rem;
    font-family: var(--font-body);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-meta p {
    margin: 0.35rem 0;
}

/* Torus decoration */
.torus {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    opacity: 0.2;
}

.torus::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold);
    border-radius: 50%;
}

.torus::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    border-left: 3px solid var(--gold);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
}

.highlight-box .equation {
    margin: 1rem 0;
}

/* ============================================
   EXPERIMENT BANNER
   ============================================ */

.experiment-banner {
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.03) 0%, transparent 100%);
    border-top: 1px solid rgba(201, 162, 39, 0.08);
    border-bottom: 1px solid rgba(201, 162, 39, 0.08);
    padding: 5rem 3rem;
    position: relative;
}

.experiment-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, var(--gold), transparent);
    opacity: 0.3;
}

.experiment-banner-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.experiment-label {
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    color: var(--gold-muted);
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.experiment-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: none;
    font-style: italic;
}

.experiment-desc {
    color: var(--text-secondary);
    line-height: 2;
    max-width: 540px;
    font-size: 0.95rem;
    font-weight: 300;
}

.experiment-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    transition: all var(--duration-normal) var(--ease-out-quart);
    white-space: nowrap;
    font-weight: 400;
    margin-top: 1rem;
}

.experiment-cta:hover {
    background: rgba(201, 162, 39, 0.08);
    border-color: var(--gold);
    letter-spacing: 0.3em;
    padding: 1rem 2.75rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet and below */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-sacred ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 220px;
        height: auto;
        max-height: 100vh;
        background: rgba(8, 8, 14, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 4rem 0 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 100;
        border-left: 1px solid rgba(201, 162, 39, 0.15);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-sacred ul.open {
        transform: translateX(0);
    }

    .nav-sacred ul li {
        border-bottom: 1px solid rgba(201, 162, 39, 0.08);
    }

    .nav-sacred ul li:last-child {
        border-bottom: none;
    }

    .nav-sacred a {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
    }

    .nav-sacred li a {
        padding: 1rem 1.5rem;
        display: block;
        width: 100%;
    }

    .nav-sacred a.nav-highlight {
        margin: 1rem 1.5rem;
        text-align: center;
        border-radius: 3px;
    }

    /* Grid adjustments for tablet */
    .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .findings-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    /* Experiment banner */
    .experiment-banner {
        padding: 4rem 1.5rem;
    }

    .experiment-title {
        font-size: 1.3rem;
        letter-spacing: 0.05em;
    }

    .experiment-desc {
        font-size: 0.9rem;
        line-height: 1.9;
    }

    .experiment-cta {
        padding: 0.9rem 2rem;
    }

    .section {
        padding: 3rem 1.25rem;
    }

    .section.dark {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .findings-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .finding-card.featured {
        grid-column: span 1;
    }

    .architecture-diagram {
        transform: scale(0.8);
    }

    .process-flow {
        flex-direction: column;
        gap: 0.75rem;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .comparison {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-grid {
        gap: 1.5rem;
    }

    blockquote {
        font-size: 1.1rem;
        padding-left: 1.25rem;
        margin: 1.5rem 0;
    }

    .content-box {
        padding: 1.75rem;
        margin: 1.5rem 0;
    }

    .highlight-box {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    /* Cards on mobile */
    .card {
        padding: 1.5rem;
    }

    /* Tables responsive */
    .proof-step {
        padding: 1.25rem;
        overflow-x: auto;
    }

    .proof-step table {
        min-width: 100%;
    }

    .proof-step th, .proof-step td {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Theorem box */
    .theorem-box {
        padding: 2rem 1.5rem;
    }

    .theorem-box .equation {
        font-size: 1.4rem;
        word-break: break-word;
    }

    /* Bridge teaser */
    .bridge-teaser {
        padding: 2rem 1.5rem;
    }

    /* Derivation chain */
    .derivation-chain {
        padding: 1.5rem 1rem;
    }

    .chain-flow {
        gap: 0.35rem;
    }

    .chain-node {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }

    .chain-arrow {
        font-size: 1rem;
    }

    /* Signal noise comparison */
    .signal, .noise {
        padding: 1rem 1.5rem;
        width: 100%;
    }

    .vs {
        padding: 0.5rem 0;
    }

    /* Equations on mobile */
    .equation-box {
        padding: 1.5rem 1rem;
    }

    .equation {
        font-size: 0.95rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .mini-equation {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }

    /* Hero adjustments */
    .hero {
        padding: 1.5rem;
        min-height: 85vh;
    }

    .hero .subtitle {
        letter-spacing: 0.2em;
        font-size: 0.85rem;
    }

    .hero .tagline {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    /* Section titles */
    .section h2 {
        letter-spacing: 0.15em;
        margin-bottom: 0.75rem;
    }

    .section-intro {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    /* Loopholes grid */
    .loopholes .grid-3 {
        gap: 1rem;
    }

    .loophole {
        padding: 1.25rem;
    }

    /* Footer */
    .footer {
        padding: 4rem 1.5rem;
    }

    .footer .quote {
        font-size: 1rem;
    }

    /* Decorative elements - smaller on mobile */
    .yin-yang {
        width: 80px;
        height: 80px;
        top: 2rem;
        right: 3%;
    }

    .metatron-cube {
        width: 100px;
        height: 100px;
    }

    .torus {
        width: 80px;
        height: 80px;
        top: -40px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    /* Experiment banner */
    .experiment-banner {
        padding: 3rem 1.25rem;
    }

    .experiment-banner::before {
        height: 20px;
    }

    .experiment-label {
        font-size: 0.55rem;
        letter-spacing: 0.25em;
    }

    .experiment-title {
        font-size: 1.1rem;
        letter-spacing: 0.04em;
        margin-bottom: 1rem;
    }

    .experiment-desc {
        font-size: 0.85rem;
        line-height: 1.8;
    }

    .experiment-cta {
        padding: 0.85rem 1.75rem;
        font-size: 0.6rem;
        letter-spacing: 0.2em;
    }

    .experiment-cta:hover {
        padding: 0.85rem 1.75rem;
        letter-spacing: 0.2em;
    }

    html {
        font-size: 15px;
    }

    .hero h1 {
        letter-spacing: 0.06em;
        font-size: clamp(1.8rem, 10vw, 3rem);
    }

    .hero .subtitle {
        letter-spacing: 0.08em;
        font-size: 0.75rem;
    }

    .hero .tagline {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .section {
        padding: 2.5rem 1rem;
    }

    .section.dark {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section h2 {
        letter-spacing: 0.05em;
        font-size: 1.25rem;
    }

    .section-intro {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .content-box {
        padding: 1.25rem;
        border-radius: 6px;
    }

    .content-box::before {
        left: 10%;
        right: 10%;
    }

    /* Cards */
    .card {
        padding: 1.25rem;
        border-radius: 8px;
    }

    .card h3 {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }

    .card p {
        font-size: 0.9rem;
    }

    /* Finding cards */
    .finding-card {
        padding: 1.25rem;
    }

    .finding-card h3 {
        font-size: 1rem;
        padding-right: 2rem;
    }

    .finding-card p {
        font-size: 0.875rem;
    }

    .doc-number {
        font-size: 1.5rem;
    }

    .key-insight {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    /* Equations */
    .equation {
        font-size: 0.85rem;
    }

    .equation-box {
        padding: 1.25rem 0.75rem;
    }

    .theorem-box .equation {
        font-size: 1.1rem;
    }

    .mini-equation {
        font-size: 0.75rem;
    }

    /* Highlight box */
    .highlight-box {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    .highlight-box h3 {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }

    /* Derivation chain */
    .derivation-chain {
        padding: 1.25rem 0.75rem;
        overflow-x: auto;
    }

    .derivation-chain h4 {
        font-size: 0.9rem;
    }

    .chain-flow {
        flex-wrap: wrap;
        justify-content: center;
    }

    .chain-node {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }

    .chain-arrow {
        font-size: 0.85rem;
    }

    /* Blockquote */
    blockquote {
        font-size: 1rem;
        padding-left: 1rem;
        margin: 1.25rem 0;
        border-left-width: 2px;
    }

    /* Tables */
    .proof-step {
        padding: 1rem;
    }

    .proof-step th, .proof-step td {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Stats */
    .stats-box {
        padding: 2rem 1rem;
    }

    .stats-grid {
        gap: 1.25rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Bridge teaser */
    .bridge-teaser {
        padding: 1.5rem 1rem;
    }

    .bridge-teaser h3 {
        font-size: 1.2rem;
    }

    .bridge-link {
        padding: 0.6rem 1.5rem;
        font-size: 0.75rem;
    }

    /* Theorem box */
    .theorem-box {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }

    .theorem-box h3 {
        font-size: 0.8rem;
    }

    /* Comparison box */
    .comparison-box {
        padding: 1.5rem 1rem;
    }

    .signal .value, .noise .value {
        font-size: 1.2rem;
    }

    .verdict {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    /* Loopholes */
    .loophole {
        padding: 1rem;
    }

    .loophole h4 {
        font-size: 0.85rem;
    }

    .loophole p {
        font-size: 0.8rem;
    }

    /* Architecture */
    .architecture-diagram {
        transform: scale(0.55);
        margin: 2rem auto;
    }

    /* Footer */
    .footer {
        padding: 3rem 1rem;
    }

    .footer .quote {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .footer .attribution {
        font-size: 0.75rem;
    }

    /* Nav */
    .nav-sacred {
        padding: 0.75rem 1rem;
    }

    .home-icon .home-symbol {
        font-size: 1.3rem;
    }

    /* Hide decorative elements on small mobile */
    .vesica-piscis,
    .seed-of-life,
    .sri-yantra,
    .yin-yang,
    .metatron-cube {
        display: none;
    }

    /* Pivot box */
    .pivot-box {
        padding: 2rem 1rem;
    }

    .mapping-table th, .mapping-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }

    .hero h1 {
        letter-spacing: 0.04em;
    }

    .section {
        padding: 2rem 0.75rem;
    }

    .section.dark {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .content-box,
    .card,
    .finding-card,
    .highlight-box {
        padding: 1rem;
    }

    .chain-node {
        padding: 0.25rem 0.4rem;
        font-size: 0.65rem;
    }

    .equation {
        font-size: 0.75rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .card:hover,
    .finding-card:hover {
        transform: none;
    }

    .nav-sacred li a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .bridge-link,
    .nav-sacred a.nav-highlight {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem;
    }

    .nav-sacred ul {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 1rem;
    }

    .nav-sacred ul li {
        margin: 0.25rem;
    }
}

/* ============================================
   DECORATIVE SVG BACKGROUNDS
   ============================================ */

.vesica-piscis,
.seed-of-life,
.sri-yantra {
    position: absolute;
    opacity: 0.05;
    pointer-events: none;
}

.vesica-piscis {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 300px;
}

.vesica-piscis::before,
.vesica-piscis::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

.vesica-piscis::after {
    top: 100px;
}

.seed-of-life {
    top: 5%;
    right: 10%;
    width: 150px;
    height: 150px;
}

.sri-yantra {
    bottom: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
}

.sri-yantra-small {
    width: 30px;
    height: 30px;
}

/* Animation for subtle movement */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.flower-of-life {
    animation: float 20s ease-in-out infinite;
}

/* ============================================
   DERIVATION CHAIN
   ============================================ */

.derivation-chain {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.1), rgba(39, 174, 96, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.derivation-chain h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.chain-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chain-node {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.chain-node.axiom {
    border-color: var(--accent-blue);
    background: rgba(74, 144, 217, 0.15);
    color: var(--accent-blue);
}

.chain-node.result {
    border-color: var(--accent-green);
    background: rgba(39, 174, 96, 0.15);
    color: var(--accent-green);
    font-weight: 600;
}

.chain-arrow {
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0.7;
}

.chain-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.highlight-box ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

.highlight-box ul li {
    margin: 0.5rem 0;
}

/* ============================================
   REGISTER TAGS (Science-Art Layering)
   ============================================ */

.register-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tag-metaphor {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.4);
}

.tag-conceptual {
    background: rgba(74, 144, 217, 0.2);
    color: #4a90d9;
    border: 1px solid rgba(74, 144, 217, 0.4);
}

.tag-speculative {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.4);
}

.tag-established {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.4);
}

.tag-artistic {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

/* ========================================
   MANIFESTO SECTION - Essay Style
   ======================================== */

.manifesto-section {
    background: var(--bg-darker);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 5rem 2rem;
}

.manifesto-container {
    max-width: 780px;
    margin: 0 auto;
}

/* Header */
.manifesto-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.manifesto-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.manifesto-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.manifesto-subtitle {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Prose content - matching blog style */
.manifesto-prose {
    padding: 2rem 0;
}

.manifesto-prose h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--gold-light);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    text-align: left;
    letter-spacing: 0.05em;
}

.manifesto-prose p {
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-align: justify;
    hyphens: auto;
}

.manifesto-prose .first-para::first-letter {
    font-family: var(--font-display);
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    padding-right: 0.75rem;
    color: var(--gold);
    font-weight: 400;
}

.manifesto-prose .section-start::first-letter {
    font-family: var(--font-display);
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    padding-right: 0.75rem;
    color: var(--gold);
    font-weight: 400;
}

.manifesto-prose strong {
    color: var(--text-primary);
    font-weight: 500;
}

.manifesto-prose em {
    color: var(--gold-muted);
    font-style: italic;
}

.manifesto-prose .separator {
    text-align: center;
    margin: 3rem 0;
    color: var(--gold);
    opacity: 0.3;
    letter-spacing: 1em;
}

/* Triad box */
.manifesto-prose .triad-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 4px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.manifesto-prose .triad-box .triad-item {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.manifesto-prose .triad-box .triad-label {
    color: var(--gold);
    font-weight: 500;
    margin-right: 0.5rem;
}

/* Close */
.manifesto-prose .manifesto-close {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--gold);
    margin-top: 2rem;
    letter-spacing: 0.05em;
}

/* Hook section - same style as manifesto */
.hook-section {
    background: var(--bg-darker);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 5rem 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .manifesto-section,
    .hook-section {
        padding: 3rem 1.25rem;
    }

    .manifesto-prose p {
        text-align: left;
    }

    .manifesto-prose .first-para::first-letter,
    .manifesto-prose .section-start::first-letter {
        font-size: 2.5rem;
    }

    .manifesto-prose h3 {
        font-size: 1.2rem;
    }
}
