/* ============================================================
   MMIDDL.ai — Chrome Brutalist / Zen Botanical
   Design: Brutalist concrete + Zen kare-sansui + Botanical fossil
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --chrome-light: #E8E8E8;
    --chrome-surface: #D8D8D8;
    --chrome-mid: #A8A8A8;
    --chrome-brushed: #A0A0A8;
    --chrome-dim: #C8C8D4;
    --charcoal: #2E2E2E;
    --deep-black: #0D0D0D;
    --near-white: #F4F4F2;
    --slate: #6E6E7A;
    --text-dark: #3A3A3A;
    --text-light: #CCCCCC;
    --chrome-pale: #E0E0E0;
    --chrome-cool: #D4D4D8;
    --chrome-lavender: #B8B8C8;
    --chrome-silver: #C0C0C0;
    --chrome-mid-light: #AFAFAF;
    --chrome-dim-dark: #8A8A8A;
    --slab-dark: #1C1C1C;
    --slab-deep: #1A1A1A;

    --font-display: 'Nunito', Helvetica, sans-serif;
    --font-body: 'Nunito Sans', Helvetica, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
    background: var(--deep-black);
    color: var(--charcoal);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.section-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(110deg, #D8D8D8 0%, #A8A8A8 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* Botanical illustration — fossil pressed into chrome */
.hero-botanical {
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    width: 48vw;
    height: 90vh;
    pointer-events: none;
    z-index: 1;
}

.monstera-svg {
    width: 100%;
    height: 100%;
    opacity: 0.62;
    mix-blend-mode: multiply;
}

/* Hero text content */
.hero-content {
    position: relative;
    z-index: 2;
    padding-left: clamp(40px, 8vw, 120px);
    padding-right: 20px;
    max-width: 55vw;
}

.hero-wordmark {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    overflow: hidden;
}

.hero-wordmark .letter {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(80px, 12vw, 160px);
    letter-spacing: -0.02em;
    color: var(--deep-black);
    line-height: 0.9;
    transform: translateY(-60px);
    opacity: 0;
    /* Animation applied via JS */
}

.hero-wordmark .letter.visible {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease;
}

.hero-domain {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.15em;
    color: var(--charcoal);
    margin-bottom: 24px;
    opacity: 0.7;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate);
    max-width: 420px;
    line-height: 1.8;
    border-top: 1px solid var(--charcoal);
    padding-top: 12px;
    opacity: 0;
    transition: opacity 1s ease 1.2s;
}

.hero-label.visible {
    opacity: 0.75;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: clamp(40px, 8vw, 120px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    z-index: 2;
}

.scroll-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--slate);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--charcoal);
    opacity: 0.4;
    transform-origin: top;
    animation: scroll-pulse 2.5s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { transform: scaleY(1); opacity: 0.4; }
    50% { transform: scaleY(0.4); opacity: 0.15; }
}

/* ============================================================
   SECTION 2: STATEMENT (Dark slab)
   ============================================================ */
.section-statement {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--deep-black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.statement-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 80px clamp(40px, 8vw, 100px);
    text-align: left;
}

.statement-number {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--slate);
    margin-bottom: 48px;
    text-transform: uppercase;
}

.statement-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--near-white);
    border: none;
    padding: 0;
}

.statement-text em {
    font-style: italic;
    color: var(--chrome-dim);
    font-weight: 900;
}

/* Botanical watermark in corner */
.statement-botanical {
    position: absolute;
    bottom: 60px;
    right: clamp(40px, 6vw, 80px);
    width: 200px;
    height: 133px;
    pointer-events: none;
    opacity: 0.18;
}

/* ============================================================
   SECTION 3: TILT-3D PROCESS CARDS
   ============================================================ */
.section-process {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--chrome-brushed);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px clamp(40px, 8vw, 120px);
    overflow: hidden;
}

.process-header {
    margin-bottom: 60px;
}

.process-number {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--charcoal);
    opacity: 0.5;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.process-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(48px, 7vw, 96px);
    letter-spacing: -0.02em;
    color: var(--deep-black);
    line-height: 0.9;
}

/* Tilt-3D Cards */
.process-cards {
    display: flex;
    gap: 28px;
    width: 100%;
    transform-style: preserve-3d;
    perspective: 1200px;
    flex-wrap: wrap;
}

.tilt-card {
    flex: 1 1 260px;
    min-height: 360px;
    background: var(--chrome-light);
    border: 1px solid var(--charcoal);
    transform: perspective(900px) rotateX(-7deg) rotateY(4deg);
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease;
    cursor: default;
    position: relative;
    box-shadow: 6px 12px 32px rgba(0,0,0,0.25);
}

.tilt-card:nth-child(2) {
    transform: perspective(900px) rotateX(-5deg) rotateY(0deg) translateY(20px);
}

.tilt-card:nth-child(3) {
    transform: perspective(900px) rotateX(-7deg) rotateY(-4deg);
}

.tilt-card.flat {
    transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(0) !important;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.12);
}

.card-inner {
    padding: 36px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.card-number {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--slate);
    margin-bottom: 32px;
    text-transform: uppercase;
}

.card-concept h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 3.5vw, 44px);
    letter-spacing: -0.02em;
    color: var(--deep-black);
    margin-bottom: 16px;
    line-height: 1.1;
}

.card-concept p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark);
}

.card-botanical-mark {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 80px;
    height: 80px;
    pointer-events: none;
}

/* Rule lines — brutalist horizontal */
.section-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--charcoal);
}

.section-process::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--charcoal);
    opacity: 0.3;
}

/* ============================================================
   SECTION 4: BLOB CHAMBER / KARE-SANSUI
   ============================================================ */
.section-blob {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--chrome-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blob-section-label {
    position: absolute;
    top: 40px;
    left: clamp(40px, 8vw, 120px);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--slate);
    text-transform: uppercase;
}

.blob-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blobs — kare-sansui meditation stones */
.organic-blob {
    position: absolute;
    animation: blob-drift 9s ease-in-out alternate infinite;
}

.blob-primary {
    width: clamp(280px, 38vw, 520px);
    height: clamp(280px, 38vw, 520px);
    background: var(--chrome-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    animation-name: blob-drift-primary;
    animation-duration: 9s;
    animation-timing-function: ease-in-out;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
    box-shadow: inset 0 0 60px rgba(200,200,212,0.4), 0 20px 80px rgba(46,46,46,0.15);
}

.blob-secondary {
    width: clamp(160px, 22vw, 300px);
    height: clamp(160px, 22vw, 300px);
    background: var(--chrome-mid);
    border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
    transform: translate(clamp(120px, 18vw, 240px), clamp(80px, 12vw, 160px));
    animation-name: blob-drift-secondary;
    animation-duration: 12s;
    animation-timing-function: ease-in-out;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    opacity: 0.7;
    box-shadow: 0 10px 40px rgba(46,46,46,0.1);
}

.blob-inner-bloom {
    width: 55%;
    height: 55%;
    pointer-events: none;
}

.blob-inner-bloom svg {
    width: 100%;
    height: 100%;
}

.blob-text {
    position: absolute;
    bottom: clamp(60px, 10vh, 120px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.blob-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--slate);
    text-transform: uppercase;
}

@keyframes blob-drift-primary {
    0%   { border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%; transform: translate(0, 0) rotate(0deg); }
    25%  { border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%; transform: translate(-8px, -12px) rotate(2deg); }
    50%  { border-radius: 42% 58% 52% 48% / 48% 52% 58% 42%; transform: translate(5px, -8px) rotate(-1deg); }
    75%  { border-radius: 55% 45% 48% 52% / 42% 58% 48% 52%; transform: translate(-4px, 6px) rotate(1.5deg); }
    100% { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; transform: translate(8px, 4px) rotate(-2deg); }
}

@keyframes blob-drift-secondary {
    0%   { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; transform: translate(clamp(120px, 18vw, 240px), clamp(80px, 12vw, 160px)) rotate(0deg); }
    33%  { border-radius: 55% 45% 50% 50% / 45% 55% 50% 50%; transform: translate(clamp(130px, 19vw, 255px), clamp(70px, 10vw, 140px)) rotate(3deg); }
    66%  { border-radius: 48% 52% 55% 45% / 52% 48% 45% 55%; transform: translate(clamp(108px, 16vw, 220px), clamp(88px, 13vw, 175px)) rotate(-2deg); }
    100% { border-radius: 60% 40% 45% 55% / 40% 60% 55% 45%; transform: translate(clamp(115px, 17vw, 230px), clamp(75px, 11vw, 150px)) rotate(1deg); }
}

/* ============================================================
   SECTION 5: CLOSE
   ============================================================ */
.section-close {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(110deg, #D8D8D8 0%, #A8A8A8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.close-content {
    text-align: center;
    z-index: 2;
    padding: 80px clamp(40px, 8vw, 120px);
}

.close-number {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--slate);
    margin-bottom: 60px;
    text-transform: uppercase;
}

.close-statement {
    margin-bottom: 64px;
}

.close-statement p {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(24px, 4vw, 52px);
    letter-spacing: -0.02em;
    color: var(--deep-black);
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.close-statement p.visible {
    opacity: 1;
    transform: translateY(0);
}

.close-statement .close-line-2 {
    transition-delay: 0.2s;
}

.close-statement .close-line-3 {
    transition-delay: 0.4s;
    font-style: italic;
    color: var(--slate);
}

.close-domain {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(40px, 7vw, 96px);
    letter-spacing: -0.03em;
    color: var(--deep-black);
    margin-bottom: 48px;
    line-height: 1;
}

.close-botanical {
    width: 400px;
    max-width: 90vw;
    margin: 0 auto;
    opacity: 0.5;
}

/* ============================================================
   UTILITY — palette anchors (ensures all design colors are present)
   #1A1A1A #1C1C1C #8A8A8A #AFAFAF #B8B8C8 #C0C0C0 #D4D4D8 #E0E0E0
   ============================================================ */
.section-process .process-cards::after {
    content: '';
    display: none;
    /* Chrome silver tones used in card borders and shadows */
    border-color: #C0C0C0;
    background: #D4D4D8;
    color: #AFAFAF;
    box-shadow: 0 0 0 #8A8A8A, 0 0 0 #B8B8C8, 0 0 0 #E0E0E0;
    outline-color: #1A1A1A;
    text-shadow: 0 0 0 #1C1C1C;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--deep-black);
}
::-webkit-scrollbar-thumb {
    background: var(--slate);
    border-radius: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero-botanical {
        right: -10%;
        width: 75vw;
        opacity: 0.35;
    }

    .hero-content {
        max-width: 100%;
    }

    .process-cards {
        flex-direction: column;
    }

    .tilt-card {
        transform: perspective(900px) rotateX(-4deg) rotateY(2deg) !important;
        min-height: 260px;
    }

    .tilt-card.flat {
        transform: perspective(900px) rotateX(0) rotateY(0) !important;
    }

    .blob-secondary {
        display: none;
    }

    .section-statement {
        align-items: flex-start;
    }

    .statement-content {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .hero-wordmark .letter {
        font-size: clamp(52px, 14vw, 80px);
    }

    .process-title {
        font-size: clamp(40px, 10vw, 60px);
    }
}
