@font-face {
    font-family: 'Saturnest';
    src: url('../fonts/saturenest.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --color-black: #0a0a0a;
    --color-white: #fafafa;
    --color-soft-white: #f8f8f8;
    --color-off-white: #f2f2f2;
    --color-gray-100: #e8e8e8;
    --color-gray-200: #d0d0d0;
    --color-gray-300: #b0b0b0;
    --color-gray-400: #909090;
    --color-gray-500: #6a6a6a;
    --color-gray-600: #4a4a4a;
    --color-gray-700: #3a3a3a;
    --color-gray-800: #2a2a2a;
    --color-gray-900: #1a1a1a;

    --color-navy: #1a3a52;
    --color-navy-light: #2d5570;
    --color-navy-dark: #0d1f2d;

    --color-synthesis-1: rgba(26, 58, 82, 0.6);
    --color-synthesis-2: rgba(138, 138, 138, 0.4);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-secondary: 'Playfair Display', Georgia, 'Times New Roman', serif;

    --transition-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(to bottom, var(--color-white), var(--color-soft-white));
    color: var(--color-gray-900);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body.no-transition,
body.no-transition * {
    transition: none !important;
}

#ripple-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 1.2s var(--transition-ease);
}

#ripple-canvas.active {
    opacity: 1;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(248, 248, 248, 0.95), rgba(248, 248, 248, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-900);
    transition: color 0.3s var(--transition-ease);
}

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

.nav-link {
    color: var(--color-gray-500);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s var(--transition-ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s var(--transition-ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gray-900);
}

.nav-link.active::after {
    width: 100%;
}

.portfolio-container {
    position: relative;
}

.section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s var(--transition-ease), transform 1.2s var(--transition-ease);
    padding: 6rem 4rem;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.transition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1;
    transition: opacity 0.6s var(--transition-ease);
}

.section:hover .transition-overlay {
    opacity: 0.06;
}

.vellum-pattern {
    width: 100%;
    height: 100%;
    color: var(--color-gray-300);
}

/* FOREWORD SECTION */
.section-foreword {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-soft-white) 100%);
}

.foreword-wrapper {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.section-title-large {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: normal;
    letter-spacing: 0.05em;
    color: var(--color-gray-900);
    margin-bottom: 3rem;
    font-family: 'Saturnest', var(--font-primary);
}

.manifesto {
    margin: 4rem 0;
}

.manifesto-text {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--color-gray-700);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.manifesto-highlight {
    color: var(--color-navy);
    font-style: italic;
    font-family: var(--font-secondary);
}

.scroll-indicator {
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: float 3s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-gray-400), transparent);
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-500);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* WATER SECTION */
.section-water {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f2 50%, var(--color-soft-white) 100%);
}

.section-water .vellum-pattern {
    color: var(--color-navy-light);
}

.section-water .project-number {
    color: var(--color-navy);
}

.section-water .section-title {
    color: var(--color-navy-dark);
}

.section-water .section-subtitle {
    color: var(--color-navy);
}

.section-water .project-name {
    color: var(--color-navy-dark);
}

.section-water .project-text {
    color: var(--color-gray-700);
}

.section-water .detail-label {
    color: var(--color-navy);
}

.section-water .detail-value {
    color: var(--color-navy-dark);
}

/* SHADOW SECTION */
.section-shadow {
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 50%, var(--color-off-white) 100%);
}

.section-shadow .section-title,
.section-shadow .section-subtitle,
.section-shadow .project-name,
.section-shadow .project-text {
    color: var(--color-gray-900);
}

.section-shadow .project-number {
    color: var(--color-gray-600);
}

.section-shadow .detail-label {
    color: var(--color-gray-600);
}

.section-shadow .detail-value {
    color: var(--color-gray-900);
}

.section-shadow .vellum-pattern {
    color: var(--color-gray-400);
}

/* SYNTHESIS SECTION */
.section-synthesis {
    background: linear-gradient(135deg, #e8f4f8 0%, var(--color-gray-100) 50%, var(--color-off-white) 100%);
}

.section-synthesis .vellum-pattern {
    color: rgba(26, 58, 82, 0.3);
}

.section-synthesis .project-number {
    color: var(--color-navy);
}

.section-synthesis .section-title {
    color: var(--color-gray-900);
}

.section-synthesis .section-subtitle {
    color: var(--color-gray-600);
}

.section-synthesis .project-name {
    color: var(--color-gray-900);
}

.section-synthesis .project-text {
    color: var(--color-gray-700);
}

.section-synthesis .detail-label {
    color: var(--color-gray-600);
}

.section-synthesis .detail-value {
    color: var(--color-gray-900);
}

/* PROJECT LAYOUT */
.project-header {
    margin-bottom: 3rem;
}

.project-number {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    letter-spacing: 0.08em;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
}

.section-subtitle {
    font-size: 1rem;
    letter-spacing: 0.12em;
    color: var(--color-gray-600);
    text-transform: uppercase;
    font-weight: 300;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.project-description {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.project-name {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--color-gray-900);
    margin-bottom: 1.5rem;
}

.project-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-700);
    margin-bottom: 3rem;
    font-weight: 300;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.detail-value {
    font-size: 0.95rem;
    color: var(--color-gray-900);
    font-weight: 300;
}

.project-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
}

.placeholder-grid {
    width: 100%;
    height: 100%;
    position: relative;
}

/* WATER VISUAL */
.water-visual .grid-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-navy-light), transparent);
    opacity: 0.3;
}

.water-visual .grid-line:nth-child(1) { top: 30%; }
.water-visual .grid-line:nth-child(2) { top: 50%; }
.water-visual .grid-line:nth-child(3) { top: 70%; }

.water-visual .flow-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.water-visual .flow-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--color-navy-light), transparent);
    opacity: 0.2;
    animation: flow 8s ease-in-out infinite;
}

.water-visual .flow-line:nth-child(1) {
    left: 25%;
    animation-delay: 0s;
}

.water-visual .flow-line:nth-child(2) {
    left: 50%;
    animation-delay: 2s;
}

.water-visual .flow-line:nth-child(3) {
    left: 75%;
    animation-delay: 4s;
}

@keyframes flow {
    0%, 100% { transform: translateY(-20px); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* SHADOW VISUAL */
.shadow-visual .void-block {
    position: absolute;
    border: 1px solid var(--color-gray-700);
    background: rgba(0, 0, 0, 0.4);
}

.shadow-visual .void-block:nth-child(1) {
    width: 30%;
    height: 40%;
    top: 15%;
    left: 10%;
    animation: voidShift1 10s ease-in-out infinite;
}

.shadow-visual .void-block:nth-child(2) {
    width: 35%;
    height: 30%;
    top: 40%;
    right: 15%;
    animation: voidShift2 12s ease-in-out infinite;
}

.shadow-visual .void-block:nth-child(3) {
    width: 25%;
    height: 35%;
    bottom: 10%;
    left: 35%;
    animation: voidShift3 14s ease-in-out infinite;
}

.shadow-visual .mass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(138, 138, 138, 0.15) 50%, transparent 70%);
    animation: massShift 8s ease-in-out infinite;
}

@keyframes voidShift1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

@keyframes voidShift2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, 10px); }
}

@keyframes voidShift3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 15px); }
}

@keyframes massShift {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* SYNTHESIS VISUAL */
.synthesis-visual .synthesis-layer {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.synthesis-visual .layer-1 {
    width: 60%;
    height: 60%;
    top: 10%;
    left: 10%;
    background: var(--color-synthesis-1);
}

.synthesis-visual .layer-2 {
    width: 50%;
    height: 50%;
    top: 30%;
    right: 15%;
    background: var(--color-synthesis-2);
}

.synthesis-visual .layer-3 {
    width: 40%;
    height: 40%;
    bottom: 15%;
    left: 25%;
    background: linear-gradient(135deg, var(--color-synthesis-1), var(--color-synthesis-2));
}

.synthesis-visual .reflection-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
}

/* ABOUT SECTION */
.section-about {
    background: linear-gradient(135deg, var(--color-soft-white) 0%, var(--color-white) 50%, var(--color-off-white) 100%);
}

.section-about .vellum-pattern {
    color: var(--color-gray-300);
}

.about-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.about-header {
    margin-bottom: 4rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about-bio {
    max-width: 600px;
}

.about-name {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.about-title {
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gray-600);
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-700);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-section-title {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.about-item-title {
    font-size: 1rem;
    color: var(--color-gray-900);
    font-weight: 300;
}

.about-item-detail {
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

.about-item-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gray-600);
}

.about-item-value {
    font-size: 0.95rem;
    color: var(--color-gray-900);
    font-weight: 300;
}

/* PROJECT IMAGE DISPLAY */
.visual-placeholder.has-images {
    background: transparent;
    border: none;
}

.project-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    border-radius: 12px;
}

.project-image.active {
    opacity: 1;
}

/* MODAL GALLERY */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
}

.gallery-modal-content {
    position: relative;
    z-index: 10001;
    width: 90%;
    max-width: 1400px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gallery-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 3rem;
    height: 3rem;
}

.gallery-close:hover {
    opacity: 0.7;
}

.gallery-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.gallery-main {
    flex: 1;
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-main img {
    max-width: 80%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.gallery-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.gallery-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-nav:disabled {
    cursor: not-allowed;
}

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    justify-content: center;
    overflow-x: auto;
    padding: 1rem 0;
}

.gallery-thumbnail {
    width: 100px;
    height: 75px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-thumbnail:hover {
    transform: translateY(-4px);
}

.gallery-thumbnail.active {
    border-color: var(--color-white);
}

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

/* RESPONSIVE */
@media (max-width: 1200px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .project-visual {
        height: 400px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .section-title-large {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .manifesto-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .project-name {
        font-size: 1.4rem;
    }

    .project-text {
        font-size: 0.95rem;
    }

    .project-visual {
        height: 350px;
    }

    .project-content {
        gap: 3rem;
    }

    .gallery-modal-content {
        width: 95%;
        height: 95vh;
    }

    .gallery-main img {
        max-width: 90%;
        max-height: 70vh;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .gallery-thumbnails {
        gap: 0.5rem;
    }

    .gallery-thumbnail {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding: 0.75rem 1rem;
    }

    .nav-logo {
        font-size: 0.9rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 0.4rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .section-title-large {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .manifesto-text {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .project-name {
        font-size: 1.2rem;
    }

    .project-text {
        font-size: 0.85rem;
    }

    .project-visual {
        height: 280px;
    }

    .project-content {
        gap: 2rem;
    }

    .project-header {
        margin-bottom: 2rem;
    }

    .gallery-nav {
        display: none;
    }

    .gallery-main img {
        max-width: 95%;
        max-height: 65vh;
    }

    .gallery-thumbnail {
        width: 50px;
        height: 38px;
    }
}
