:root {
    --bg-main: #0c0c0c;
    --text-main: #f0f0f0;
    --text-muted: #888888;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

i {
    font-style: italic;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

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

/* Fixed Frame */
.frame {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
    z-index: 90;
}

.frame-text {
    position: absolute;
    font-family: var(--font-body);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.top-left { top: 20px; left: 20px; }
.bottom-right { bottom: 20px; right: 20px; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #fff;
    left: 0;
    transition: all 0.4s ease;
}

.line-1 { top: 0; }
.line-2 { bottom: 0; width: 70%; right: 0; left: auto; }

.menu-toggle:hover .line-2 {
    width: 100%;
}

.menu-toggle.open .line-1 {
    transform: rotate(45deg);
    top: 10px;
}

.menu-toggle.open .line-2 {
    width: 100%;
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #111;
    transition: height 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.overlay-menu.active {
    pointer-events: all;
}

.overlay-menu.active .menu-bg {
    height: 100%;
}

.menu-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease 0.3s;
}

.overlay-menu.active .menu-content {
    opacity: 1;
    transform: translateY(0);
}

.menu-links {
    text-align: center;
}

.menu-item {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5rem);
    display: block;
    margin-bottom: 20px;
    transition: color 0.3s ease;
    position: relative;
}

.menu-item:hover {
    color: var(--text-muted);
    font-style: italic;
}

.menu-item .num {
    font-family: var(--font-body);
    font-size: 1rem;
    position: absolute;
    top: 20px;
    left: -40px;
    color: var(--text-muted);
    font-style: normal;
}

/* Panels */
.panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -2;
}

.bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

.overlay.heavy { background: rgba(0,0,0,0.6); }

/* Hero */
.hero-content {
    padding-left: 10vw;
}

.hero h1 {
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 0.9;
    margin-bottom: 30px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 400px;
    color: #ccc;
}

/* Chapters */
.chapter.dark {
    background: var(--bg-main);
}

.chapter-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.chapter-num {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 20px;
}

.chapter h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1;
    margin-bottom: 30px;
}

.chapter p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 400px;
}

.link-btn {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 5px;
    transition: opacity 0.3s ease;
}

.link-btn:hover { opacity: 0.7; }

.chapter-image {
    height: 80vh;
    overflow: hidden;
}

.chapter-image img {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

/* Horizontal Gallery */
.gallery-scroll {
    height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 10vw;
}

.gallery-track {
    display: flex;
    gap: 100px;
}

.gallery-item {
    flex: 0 0 60vw;
    height: 70vh;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
}

/* Full Img Chapter */
.center-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circle-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.circle-btn:hover {
    background: #fff;
    color: #000;
}

/* Footer */
.footer-content {
    width: 100%;
    padding: 100px 0;
}

.footer h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 40px;
}

.big-link {
    font-size: clamp(2rem, 4vw, 3rem);
    border-bottom: 2px solid var(--text-main);
    transition: color 0.3s ease;
}

.big-link:hover {
    color: var(--text-muted);
    border-color: var(--text-muted);
}

.footer-bottom {
    margin-top: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.socials {
    display: flex;
    gap: 30px;
}

.socials a {
    transition: color 0.3s ease;
}

.socials a:hover { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .frame { display: none; }
    .chapter-container { grid-template-columns: 1fr; gap: 40px; }
    .chapter-image { height: 50vh; }
    .gallery-scroll { padding: 0 5vw; }
    .gallery-item { flex: 0 0 85vw; height: 60vh; }
    .menu-item .num { display: none; }
    .footer-bottom { flex-direction: column; gap: 20px; }
}
