/* =============================================================
   haru.works — Bauhaus Opulence
   Colors: #1C1C1E #6B6B6B #A63B1A #D4A017 #F0D4B8 #F7F3EE #C8442A #E8832A
   Fonts: Plus Jakarta Sans (400, 600, 800), DM Mono (400)
   ============================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    background-color: #F7F3EE;
    color: #1C1C1E;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-feature-settings: "kern" 1, "liga" 1;
    overflow-x: hidden;
}

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

/* ---- Typography ---- */
.dm-mono {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
}

/* ---- Navigation ---- */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 60px;
    background-color: transparent;
    pointer-events: none;
}

.nav-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: #1C1C1E;
    text-transform: lowercase;
    pointer-events: all;
}

.nav-links {
    display: flex;
    gap: 32px;
    pointer-events: all;
}

.nav-links a {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #6B6B6B;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #E8832A;
}

/* ---- Spread Base ---- */
.spread {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background-color: #F7F3EE;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

/* ---- Magazine Grid ---- */
.spread-grid {
    display: grid;
    grid-template-columns: 7fr 2fr 4fr;
    width: 100%;
    height: 100%;
    padding: 0 60px;
    column-gap: 0;
}

.spread-grid--reversed {
    grid-template-columns: 4fr 2fr 7fr;
}

.zone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 40px;
}

.zone-gutter {
    /* The deliberate non-filled gutter */
    padding: 0;
    position: relative;
}

.zone-gutter::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background-color: #D4A017;
    transform: translateX(-50%);
    opacity: 0.4;
}

/* ---- Floating Elements ---- */
.float-el {
    position: absolute;
    z-index: 10;
    box-shadow: 8px 12px 32px rgba(163, 59, 26, 0.15);
    will-change: transform;
}

.float-large {
    width: 220px;
    height: 140px;
}

.float-medium {
    width: 90px;
    height: 90px;
}

.float-small {
    width: 40px;
    height: 60px;
}

.float-amber {
    background-color: #E8832A;
    transform: rotate(3deg);
}

.float-coral {
    background-color: #C8442A;
    transform: rotate(-2deg);
}

.float-gold {
    background-color: #D4A017;
    transform: rotate(4deg);
}

/* ---- Spread 1: Hero ---- */
.spread-hero .hero-content {
    padding-top: 80px;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(64px, 9vw, 120px);
    letter-spacing: -0.02em;
    color: #E8832A;
    line-height: 1;
    margin-bottom: 48px;
}

.hero-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #D4A017;
}

/* Watermark H */
.watermark-h {
    position: absolute;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(300px, 40vw, 500px);
    color: #E8832A;
    opacity: 0.05;
    line-height: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

/* ---- Spread 2: Concept ---- */
.coral-stripe {
    position: absolute;
    left: 60px;
    top: 80px;
    bottom: 80px;
    width: 180px;
    background-color: #C8442A;
    z-index: 1;
}

.zone-4 {
    position: relative;
}

.gold-float-sq {
    position: absolute;
    top: calc(80px - 20px);
    left: calc(60px + 180px - 20px);
    width: 40px;
    height: 40px;
    background-color: #D4A017;
    z-index: 5;
    box-shadow: 4px 4px 16px rgba(163, 59, 26, 0.15);
}

.card-group {
    position: absolute;
    bottom: 100px;
    left: 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

/* Card Flip */
.flip-card {
    width: 240px;
    height: 160px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-front {
    /* background set inline */
}

/* Blush mid: used as subtle fill on spread gutter & arch blocks */
.arch-side {
    background-color: transparent;
    border-left: 2px solid #F0D4B8;
    padding-left: 20px;
}

.flip-card-back {
    background-color: #1C1C1E;
    transform: rotateY(180deg);
}

.flip-card-back span {
    font-family: 'DM Mono', monospace;
    font-size: 18px;
    color: #D4A017;
    letter-spacing: 0.1em;
}

/* Concept text */
.concept-content {
    padding-top: 0;
}

.concept-seq {
    font-size: 13px;
    color: #A63B1A;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.concept-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3vw, 44px);
    color: #1C1C1E;
    margin-bottom: 40px;
    letter-spacing: 0;
}

.concept-body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.8;
    color: #1C1C1E;
    margin-bottom: 20px;
    max-width: 480px;
}

.concept-body em {
    font-style: normal;
    color: #A63B1A;
}

.gold-rule {
    width: 100%;
    height: 1px;
    background-color: #D4A017;
    margin-top: 40px;
}

/* ---- Spread 3: Architecture ---- */
.arch-content {
    padding: 0;
}

.arch-seq {
    font-size: 13px;
    color: #A63B1A;
    letter-spacing: 0.15em;
    margin-bottom: 60px;
}

.arch-poem {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.arch-line-sm {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 2.5vw, 32px);
    letter-spacing: -0.02em;
    color: #1C1C1E;
    line-height: 1.1;
}

.arch-line-lg {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(60px, 8vw, 96px);
    letter-spacing: -0.02em;
    color: #C8442A;
    line-height: 0.95;
}

.arch-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    align-items: flex-start;
}

.arch-block {
    box-shadow: 6px 8px 24px rgba(163, 59, 26, 0.12);
}

.arch-block--amber {
    width: 80px;
    height: 80px;
    background-color: #E8832A;
    transform: rotate(-1deg);
    margin-left: 20px;
}

.arch-block--gold {
    width: 120px;
    height: 50px;
    background-color: #D4A017;
    transform: rotate(2deg);
    margin-left: 50px;
}

.arch-block--coral {
    width: 60px;
    height: 100px;
    background-color: #C8442A;
    transform: rotate(-3deg);
    margin-left: 80px;
}

/* ---- Spread 4: Close ---- */
.spread-close {
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.golden-rule {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #D4A017;
    /* golden ratio: 61.8% from top */
    top: 61.8%;
    z-index: 1;
}

.close-content {
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.close-seq {
    font-size: 13px;
    color: #A63B1A;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.close-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.02em;
    color: #6B6B6B;
    line-height: 1;
}

.close-contact {
    font-size: 13px;
    color: #6B6B6B;
    letter-spacing: 0.05em;
}

/* ---- Section Slide Transition ---- */
.zone-left,
.zone-right,
.zone-gutter {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

.spread.is-entering .zone-left {
    transform: translateX(0);
}

.spread.is-entering .zone-right {
    transform: translateX(0);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .spread-grid,
    .spread-grid--reversed {
        grid-template-columns: 1fr;
        padding: 0 24px;
    }

    .zone-gutter {
        display: none;
    }

    .zone {
        padding: 60px 16px;
        justify-content: flex-start;
    }

    .coral-stripe {
        display: none;
    }

    .card-group {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 32px;
        left: auto;
        bottom: auto;
    }

    .flip-card {
        width: 140px;
        height: 100px;
    }

    .spread-hero .zone-right {
        display: none;
    }

    #nav {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
    }

    .float-large {
        width: 120px;
        height: 80px;
    }

    .float-medium {
        width: 60px;
        height: 60px;
    }

    .float-small {
        width: 28px;
        height: 40px;
    }
}
