/* aei.st - Zen Japanese Minimal */
/* Palette: #faf8f5, #f2efe9, #2c2c2c, #8b7355, #d4cfc7, #c4a882, #e8e4dd */

:root {
    --canvas: #faf8f5;
    --canvas-alt: #f2efe9;
    --ink: #2c2c2c;
    --bronze: #8b7355;
    --divider: #d4cfc7;
    --hover: #c4a882;
    --shadow: #e8e4dd;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--canvas);
    color: var(--ink);
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* Noise Texture Overlay - Washi paper feel */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Sections */
.zen-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 3rem;
}

/* Bookend Dots */
.bookend-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bronze);
    flex-shrink: 0;
}

.top-dot {
    margin: 3rem auto;
}

.bottom-dot {
    margin: 0 auto;
}

/* ===================== */
/* ARRIVAL (0-100vh)     */
/* ===================== */
.arrival {
    min-height: 100vh;
    justify-content: center;
    align-items: flex-start;
    padding-left: 38.2%;
    background: var(--canvas);
}

.arrival-content {
    max-width: 400px;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(5rem, 12vw, 8rem);
    line-height: 1;
    color: var(--ink);
    opacity: 0;
    animation: slowReveal 2s ease 0.5s forwards;
    letter-spacing: -0.02em;
}

@keyframes slowReveal {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.extending-line {
    height: 1px;
    background: var(--divider);
    margin-top: 2.5rem;
    width: 0;
    animation: lineExtend 3s ease-in-out 1s forwards;
}

@keyframes lineExtend {
    0% { width: 0; }
    100% { width: 280px; }
}

/* ===================== */
/* SPACERS               */
/* ===================== */
.spacer-200 { height: 200px; }
.spacer-300 { height: 300px; }
.spacer-400 { height: 400px; }

/* ===================== */
/* CONTENT BLOCKS        */
/* ===================== */
.breath-block {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 1.5s ease;
}

.breath-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.left-anchor {
    align-self: flex-start;
    padding-left: 15%;
}

.right-anchor {
    align-self: flex-end;
    padding-right: 15%;
    text-align: right;
}

.body-text {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.8;
    color: var(--ink);
}

.small-text {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: rgba(44, 44, 44, 0.6);
}

.caption-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: rgba(44, 44, 44, 0.7);
}

/* Pull Quote with vertical line */
.pull-quote-container {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    justify-content: flex-end;
}

.pull-quote-line {
    width: 1px;
    background: var(--divider);
    flex-shrink: 0;
    align-self: stretch;
}

/* Fade In (generic) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 1.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== */
/* ENSO CIRCLES          */
/* ===================== */
.enso-container {
    align-self: center;
}

.enso-small {
    align-self: flex-end;
    padding-right: 20%;
}

.enso-circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 3s ease;
}

.enso-container.visible .enso-circle {
    stroke-dashoffset: 28;
}

/* ===================== */
/* FIRST BREATH          */
/* ===================== */
.breath {
    background: var(--canvas);
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* ===================== */
/* STILL POINT           */
/* ===================== */
.still {
    min-height: 90vh;
    justify-content: center;
    background: var(--canvas-alt);
    overflow: hidden;
}

.watermark-character {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(15rem, 30vw, 30rem);
    color: var(--ink);
    opacity: 0.03;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.vertical-label {
    position: absolute;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--divider);
    letter-spacing: 0.25em;
    text-transform: lowercase;
    white-space: nowrap;
}

.still-content {
    align-self: flex-end;
    padding-right: 10%;
    max-width: 50%;
}

.still-quote {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    line-height: 1.6;
    color: var(--ink);
}

/* ===================== */
/* INTERLUDE             */
/* ===================== */
.interlude {
    background: var(--canvas);
    padding-top: 10rem;
    padding-bottom: 10rem;
}

.horizontal-structural-line {
    width: 60%;
    height: 1px;
    background: var(--shadow);
    align-self: flex-start;
    margin-left: 20%;
    opacity: 0;
    transition: opacity 2s ease, width 3s ease-in-out;
}

.horizontal-structural-line.visible {
    opacity: 1;
}

/* ===================== */
/* CLOSING               */
/* ===================== */
.closing {
    background: var(--canvas);
    min-height: 60vh;
    justify-content: center;
    align-items: center;
    padding-top: 10rem;
    padding-bottom: 6rem;
}

.closing-block {
    max-width: 400px;
    text-align: center;
}

/* ===================== */
/* HOVER / INTERACTIVE   */
/* ===================== */
a {
    color: var(--bronze);
    text-decoration: none;
    transition: color 1.5s ease;
}

a:hover {
    color: var(--hover);
}

/* ===================== */
/* RESPONSIVE            */
/* ===================== */
@media (max-width: 768px) {
    .arrival {
        padding-left: 2rem;
    }

    .left-anchor {
        padding-left: 2rem;
        max-width: 85% !important;
    }

    .right-anchor {
        padding-right: 2rem;
        max-width: 85% !important;
    }

    .still-content {
        padding-right: 2rem;
        max-width: 85%;
    }

    .vertical-label {
        display: none;
    }

    .watermark-character {
        font-size: 12rem;
        left: 30%;
    }

    .spacer-300 { height: 150px; }
    .spacer-400 { height: 200px; }
    .spacer-200 { height: 100px; }

    .zen-section {
        padding: 3rem 1.5rem;
    }

    .enso-small {
        align-self: center;
        padding-right: 0;
    }

    .horizontal-structural-line {
        width: 80%;
        margin-left: 10%;
    }

    .pull-quote-container {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 3.5rem;
    }

    .body-text {
        font-size: 1rem;
    }

    .still-quote {
        font-size: 1.4rem;
    }
}
