/* penclo.com - Zen Privacy Enclosure */
/* Palette:
   Soft lavender: #F0E8F0 (primary background)
   Blush warm: #F0D8D0 (secondary background)
   Ink charcoal: #2A2030 (text)
   Aurora lilac: #C0A0D0 (aurora accent)
   Aurora mint: #A0D0C0 (aurora accent)
   Screen gray: #B0A8B0 (line-illustration, borders)
   Cloud white: #FAF8FA (lightest)
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.9;
    color: #2A2030;
    background-color: #F0E8F0;
    overflow-x: hidden;
}

/* ========================
   Typography
   ======================== */

.domain-title {
    font-family: 'Poiret One', sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 3.5vw, 52px);
    letter-spacing: 0.05em;
    color: #2A2030;
    opacity: 0;
    animation: zenFadeIn 1000ms cubic-bezier(0.25, 0.1, 0.25, 1) 1500ms forwards;
}

.label {
    font-family: 'Poiret One', sans-serif;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #B0A8B0;
    display: block;
    margin-bottom: 16px;
}

.garden-heading,
.sanctum-heading {
    font-family: 'Poiret One', sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 3.5vw, 52px);
    letter-spacing: 0.05em;
    color: #2A2030;
    margin-bottom: 24px;
}

.garden-body {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.9;
    color: #2A2030;
    margin-bottom: 20px;
}

.garden-accent,
.sanctum-accent {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 14px;
    color: #2A2030;
    opacity: 0.7;
}

.entrance-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 14px;
    color: #2A2030;
    opacity: 0;
    margin-top: 16px;
    animation: zenFadeIn 800ms cubic-bezier(0.25, 0.1, 0.25, 1) 2200ms forwards;
}

/* ========================
   Zen Entrance (Hero)
   ======================== */

.zen-entrance {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F0E8F0;
    overflow: hidden;
}

.entrance-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.lattice-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    animation: zenFadeIn 1200ms ease 2000ms forwards;
}

.lattice-bg rect {
    opacity: 0.05;
}

/* Aurora bands */
.aurora-band {
    position: absolute;
    width: 120%;
    height: 200px;
    left: -10%;
    z-index: 1;
    opacity: 0;
}

.aurora-band-1 {
    top: 15%;
    animation: auroraSlideIn 1500ms ease 0ms forwards, auroraDrift1 25s ease-in-out infinite 1500ms;
}

.aurora-band-2 {
    bottom: 20%;
    animation: auroraSlideIn 1500ms ease 300ms forwards, auroraDrift2 25s ease-in-out infinite 1800ms;
}

/* Enso circles */
.enso-hero {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.enso-hero .enso-circle {
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    animation: ensoDrawHero 2000ms cubic-bezier(0.25, 0.1, 0.25, 1) 800ms forwards;
}

/* ========================
   Ma Spacers
   ======================== */

.ma-spacer {
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ma-spacer-large {
    height: 240px;
}

.aurora-transition {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* ========================
   Content Gardens
   ======================== */

.content-garden {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease 200ms, transform 600ms ease 200ms;
}

.content-garden.visible {
    opacity: 1;
    transform: translateY(0);
}

.garden-border {
    position: relative;
    transition: border-color 400ms ease;
}

.content-garden:hover .garden-border {
    /* Aurora lilac tint on hover */
}

.content-garden:hover .lattice-border-top line,
.content-garden:hover .lattice-border-bottom line {
    stroke: #C0A0D0;
    transition: stroke 400ms ease;
}

.lattice-border {
    width: 100%;
    height: 20px;
    display: block;
    overflow: visible;
}

.lattice-border .lattice-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke 400ms ease, stroke-dashoffset 800ms ease;
}

.content-garden.visible .lattice-line {
    stroke-dashoffset: 0;
}

.garden-inner {
    padding: 80px 0;
    position: relative;
}

.enso-marker {
    position: absolute;
    width: 120px;
    height: 120px;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

.enso-marker .enso-circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 800ms ease, transform 600ms ease;
}

.content-garden.visible .enso-marker .enso-circle {
    stroke-dashoffset: 0;
}

.content-garden:hover .enso-marker .enso-circle {
    transform: scale(1.01);
    transform-origin: center;
}

/* Content garden hover: lattice opacity increase */
.content-garden .lattice-bg-overlay {
    opacity: 0.05;
    transition: opacity 400ms ease;
}

.content-garden:hover .lattice-bg-overlay {
    opacity: 0.08;
}

/* Feature row */
.feature-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    min-width: 140px;
}

.feature .label {
    margin-bottom: 8px;
    color: #C0A0D0;
}

.feature .garden-accent {
    font-size: 13px;
    line-height: 1.7;
}

/* ========================
   Inner Sanctum (Footer)
   ======================== */

.inner-sanctum {
    position: relative;
    padding: 80px 20px 120px;
    overflow: hidden;
}

.sanctum-border {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.lattice-border-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lattice-border-full .lattice-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1200ms ease;
}

.inner-sanctum.visible .lattice-border-full .lattice-line {
    stroke-dashoffset: 0;
}

.sanctum-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 60px;
}

.sanctum-heading {
    font-size: clamp(32px, 4vw, 60px);
    margin-bottom: 24px;
}

.sanctum-body {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.9;
    color: #2A2030;
    margin-bottom: 16px;
}

.sanctum-accent {
    margin-bottom: 40px;
    display: block;
}

.sanctum-links .label {
    color: #C0A0D0;
    cursor: default;
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 1px solid #C0A0D0;
}

.enso-footer {
    width: 160px;
    height: 160px;
    margin: 0 auto 40px;
    display: block;
}

.enso-footer .enso-circle {
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1200ms ease;
}

.inner-sanctum.visible .enso-footer .enso-circle {
    stroke-dashoffset: 0;
}

/* Aurora concentrated in footer */
.aurora-concentrated {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 200px;
    opacity: 0.5;
    animation: auroraDrift1 25s ease-in-out infinite;
}

/* ========================
   Cursor Follow
   ======================== */

.content-garden[data-cursor-follow] {
    --cursor-x: 0px;
    --cursor-y: 0px;
    transition: opacity 600ms ease 200ms, transform 600ms ease 200ms;
}

.content-garden[data-cursor-follow]:hover .garden-inner {
    transform: translate(
        calc(var(--cursor-x) * 0.01),
        calc(var(--cursor-y) * 0.01)
    );
    transition: transform 200ms ease;
}

/* ========================
   Animations
   ======================== */

@keyframes zenFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auroraSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 0.7;
        transform: translateX(0);
    }
}

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

@keyframes auroraDrift2 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
}

@keyframes ensoDrawHero {
    from {
        stroke-dashoffset: 502;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* ========================
   Responsive
   ======================== */

@media (max-width: 768px) {
    .content-garden {
        padding: 0 24px;
    }

    .garden-inner {
        padding: 60px 0;
    }

    .sanctum-content {
        padding: 80px 30px;
    }

    .feature-row {
        flex-direction: column;
        gap: 24px;
    }

    .ma-spacer {
        height: 100px;
    }

    .ma-spacer-large {
        height: 160px;
    }

    .enso-hero {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .garden-inner {
        padding: 40px 0;
    }

    .sanctum-content {
        padding: 60px 20px;
    }

    .ma-spacer {
        height: 80px;
    }
}