:root {
    --bg-color: #000510e7;
    --accent-color: #007aff;
    --text-color: #ffffff;
    --glass-bg: rgba(26, 26, 27, 0.81);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Space Grotesk', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    touch-action: none;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.zone {
    position: absolute;
    background-color: var(--zone-color);
    box-shadow: var(--zone-shadow);
    cursor: grab;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    border-radius: 4px;
    z-index: 10;
    transition: transform 0.1s ease-out, box-shadow 0.2s ease;
    will-change: transform, left, top;
}

.zone:active {
    cursor: grabbing;
    transform: scale(1.002);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.zone h1 {
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 1rem 0;
    opacity: 0.9;
    font-size: 2.5rem;
}

.building-content {
    width: 100%;
    height: 100%;
    padding: 3rem;
    box-sizing: border-box;
    overflow-y: auto;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.building-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.building-content .chapeau {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555;
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
}

.building-content .description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.building-content .description ul {
    padding-left: 1.2rem;
}

.building-content .description li {
    margin-bottom: 0.5rem;
}

#zone1::-webkit-scrollbar {
    width: 8px;
}

#zone1::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

#zone1::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

#zone1::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.building-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #000;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.building-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 0;
    flex-shrink: 0;
}

#zone1 {
    background-color: transparent;
    position: absolute;
    cursor: grab;
    /* Precise zoom pivot requires scale from top-left */
    transform-origin: 0 0;
    will-change: transform;
    touch-action: none;
}

#zone1:active {
    cursor: grabbing;
}

.paper-page {
    position: absolute;
    background-color: #fff;
    width: 850px;
    min-height: 1100px;
    box-shadow: 0 5px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
    padding: 5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    /* All links and buttons are accessible */
    border-radius: 4px;
    overflow-y: auto;
    scrollbar-width: none;
    background-image:
        linear-gradient(rgba(0, 0, 0, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, .02) 1px, transparent 1px);
    background-size: 40px 40px;
    user-select: text;
}

.paper-page::-webkit-scrollbar {
    display: none;
}

.page-header {
    height: 250px;
    margin: -5rem -5rem 2.5rem -5rem;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f8f9fa;
}

.paper-page h2 {
    font-size: 2.2rem;
    margin: 0 0 1rem 0;
    color: #111;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.page-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.page-tag {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
}

.page-id {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: #bbb;
}

.chapeau {
    font-size: 1.25rem;
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.section-title {
    font-size: 1.5rem;
    color: #333;
    margin: 3rem 0 1.5rem 0;
    font-weight: 600;
    border-left: 4px solid var(--accent-color);
    padding-left: 1.2rem;
}

.footer-image {
    width: calc(100% + 10rem);
    margin: auto -5rem -5rem -5rem;
    height: 180px;
    object-fit: cover;
    border-top: 1px solid #eee;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    text-align: center;
}

.cta-button:hover {
    background: #0088ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.3);
}

/* Allow only buttons to be interactive */
/* Fixed Nav Bar - Pro Max Pill Version */
.top-nav {
    position: fixed;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: 75px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    box-sizing: border-box;
    z-index: 2000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.top-nav:hover {
    background: rgba(6, 2, 48, 0.747);
    border-color: rgba(255, 255, 255, 0.15);
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: 0.3s;
}

.logo:hover {
    letter-spacing: 0.15em;
}

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

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.05);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

/* Full Screen Menu - Premium Version */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: rgba(0, 5, 16, 0.8);
    backdrop-filter: blur(40px);
    z-index: 3000;
    transition: 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    padding: 120px 4rem 4rem 4rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
    scrollbar-width: thin;
}

.side-menu::-webkit-scrollbar {
    width: 5px;
}

.side-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.side-menu.active {
    right: 0;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.menu-link {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    transition: 0.3s;
    display: block;
}

.menu-link:hover {
    color: var(--accent-color);
    transform: translateX(10px);
}

.sub-menu {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    height: 0;
    overflow: hidden;
    transition: 0.4s ease;
    opacity: 0;
}

.menu-item.active .sub-menu {
    height: auto;
    opacity: 1;
}

.sub-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 1rem;
    transition: 0.3s;
}

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

/* Legal Footer in Menu (Compliance) */
.menu-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: auto;
    flex-shrink: 0;
}

.legal-link {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

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

.paper-page .chapeau {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #444;
    border-left: 5px solid var(--accent-color);
    padding-left: 1.5rem;
}

.paper-page .description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

#zone2 {
    display: none;
    /* Hide for now, focusing on the main canvas */
}

.ui-overlay {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    text-align: center;
    z-index: 100;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.status-badge {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px border rgba(255, 255, 255, 0.1);
    z-index: 100;
}
