/* ============================================================
   HHASSL.com - Blobitecture + Zen Contemplative Design
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --bg-primary: #0B0B1A;
    --bg-secondary: #0F1B3D;
    --accent-amethyst: #6A0DAD;
    --accent-emerald: #0D6B4F;
    --accent-ruby: #8B1A3A;
    --text-primary: #E8DFD0;
    --text-heading: #F0EDE6;
    --highlight-topaz: #D4A843;
    --bg-depth: #0B0B1A;
    --ease-zen: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-silk: cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    font-size: 16px;
}

body {
    background: var(--bg-depth);
    background-image: linear-gradient(180deg, #0B0B1A 0%, #0F1B3D 50%, #0B0B1A 100%);
    background-size: 100% 300vh;
    color: var(--text-primary);
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Sections ---- */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
    padding: 60px 20px;
}

.section-footer {
    min-height: 60vh;
    flex-direction: column;
}

/* ---- Cursor Lantern ---- */
#cursor-lantern {
    position: fixed;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: left 0.08s linear, top 0.08s linear;
    will-change: transform;
}

/* ============================================================
   WATERMARK LAYER
   ============================================================ */
.watermark-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Enso Circles */
.enso {
    position: absolute;
    opacity: 0.06;
}

.enso-1 {
    width: 600px;
    height: 600px;
    top: 5%;
    right: -5%;
    z-index: -1;
}

.enso-2 {
    width: 400px;
    height: 400px;
    top: 40%;
    left: -3%;
    z-index: -2;
}

.enso-3 {
    width: 200px;
    height: 200px;
    top: 75%;
    right: 15%;
    z-index: -3;
}

/* Kanji Watermarks */
.kanji {
    position: absolute;
    font-family: 'Noto Serif JP', serif;
    font-weight: 200;
    opacity: 0.07;
    color: var(--text-heading);
    pointer-events: none;
}

.kanji-zen {
    font-size: 200px;
    top: 8%;
    left: 10%;
    animation: kanji-drift 120s linear infinite;
}

.kanji-ku {
    font-size: 160px;
    top: 35%;
    right: 8%;
    animation: kanji-drift 120s linear infinite reverse;
}

.kanji-ma {
    font-size: 180px;
    top: 60%;
    left: 5%;
    animation: kanji-drift 120s linear infinite;
    animation-delay: -30s;
}

.kanji-seki {
    font-size: 140px;
    top: 85%;
    right: 12%;
    animation: kanji-drift 120s linear infinite reverse;
    animation-delay: -60s;
}

@keyframes kanji-drift {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Rock Garden Lines */
.rock-garden-lines {
    position: absolute;
    width: 100%;
    opacity: 0.03;
}

.rock-garden-1 {
    top: 25%;
    left: 0;
    height: 300px;
}

.rock-garden-2 {
    top: 65%;
    left: 0;
    height: 250px;
}

/* ============================================================
   FLOATING ORBS
   ============================================================ */
.floating-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.orb-amethyst {
    background: rgba(106, 13, 173, 0.20);
}

.orb-emerald {
    background: rgba(13, 107, 79, 0.15);
}

.orb-ruby {
    background: rgba(139, 26, 58, 0.18);
}

.orb-1 {
    width: 18px;
    height: 18px;
    top: 10%;
    left: -20px;
    animation: orb-float-1 45s linear infinite;
}

.orb-2 {
    width: 14px;
    height: 14px;
    top: 25%;
    left: -20px;
    animation: orb-float-2 55s linear infinite;
    animation-delay: -10s;
}

.orb-3 {
    width: 22px;
    height: 22px;
    top: 45%;
    right: -20px;
    animation: orb-float-3 40s linear infinite;
    animation-delay: -5s;
}

.orb-4 {
    width: 12px;
    height: 12px;
    top: 60%;
    left: -20px;
    animation: orb-float-1 60s linear infinite;
    animation-delay: -20s;
}

.orb-5 {
    width: 16px;
    height: 16px;
    top: 75%;
    right: -20px;
    animation: orb-float-3 50s linear infinite;
    animation-delay: -15s;
}

.orb-6 {
    width: 20px;
    height: 20px;
    top: 15%;
    right: -20px;
    animation: orb-float-3 35s linear infinite;
    animation-delay: -25s;
}

.orb-7 {
    width: 13px;
    height: 13px;
    top: 50%;
    left: -20px;
    animation: orb-float-2 48s linear infinite;
    animation-delay: -8s;
}

.orb-8 {
    width: 24px;
    height: 24px;
    top: 88%;
    left: -20px;
    animation: orb-float-1 52s linear infinite;
    animation-delay: -30s;
}

@keyframes orb-float-1 {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(110vw, -20vh, 0); }
}

@keyframes orb-float-2 {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(110vw, 10vh, 0); }
}

@keyframes orb-float-3 {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-110vw, -15vh, 0); }
}

/* ============================================================
   MICRO-BLOBS (Stepping Stones)
   ============================================================ */
.micro-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.micro-blob-1 {
    width: 60px;
    height: 60px;
    background: var(--accent-amethyst);
    opacity: 0.08;
    top: 115vh;
    left: 15%;
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
}

.micro-blob-2 {
    width: 45px;
    height: 45px;
    background: var(--accent-emerald);
    opacity: 0.06;
    top: 230vh;
    right: 10%;
    border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
}

.micro-blob-3 {
    width: 70px;
    height: 70px;
    background: var(--accent-ruby);
    opacity: 0.07;
    top: 345vh;
    left: 20%;
    border-radius: 45% 55% 60% 40% / 55% 45% 50% 50%;
}

.micro-blob-4 {
    width: 50px;
    height: 50px;
    background: var(--highlight-topaz);
    opacity: 0.05;
    top: 460vh;
    right: 18%;
    border-radius: 60% 40% 45% 55% / 40% 60% 50% 50%;
}

.micro-blob-5 {
    width: 40px;
    height: 40px;
    background: var(--accent-amethyst);
    opacity: 0.06;
    top: 575vh;
    left: 12%;
    border-radius: 50% 50% 40% 60% / 60% 40% 55% 45%;
}

.footer-micro-1 {
    width: 30px;
    height: 30px;
    background: var(--accent-amethyst);
    opacity: 0.05;
    position: relative;
    top: 40px;
    left: -15%;
}

.footer-micro-2 {
    width: 20px;
    height: 20px;
    background: var(--accent-emerald);
    opacity: 0.04;
    position: relative;
    top: 60px;
    left: 20%;
}

.footer-micro-3 {
    width: 15px;
    height: 15px;
    background: var(--accent-ruby);
    opacity: 0.03;
    position: relative;
    top: 80px;
    left: -5%;
}

/* ============================================================
   BLOB CONTAINERS
   ============================================================ */
.blob {
    position: relative;
    overflow: hidden;
    transition: transform 600ms var(--ease-silk), box-shadow 600ms var(--ease-silk);
    z-index: 3;
}

/* Specular highlight */
.blob-specular {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 5;
}

/* Blob hover effects */
.blob:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px 10px rgba(212, 168, 67, 0.15);
}

.blob:hover .blob-morph-active {
    animation-play-state: paused;
}

/* Gradient overlays inside blobs */
.blob-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.blob-gradient-amethyst-emerald {
    background: radial-gradient(ellipse at 30% 40%, rgba(106, 13, 173, 0.35) 0%, rgba(13, 107, 79, 0.2) 60%, transparent 100%);
}

.blob-gradient-deep {
    background: radial-gradient(ellipse at 60% 50%, rgba(15, 27, 61, 0.6) 0%, rgba(11, 11, 26, 0.4) 100%);
}

.blob-gradient-ruby {
    background: radial-gradient(ellipse at 40% 60%, rgba(139, 26, 58, 0.3) 0%, rgba(106, 13, 173, 0.15) 70%, transparent 100%);
}

/* Photo inside blobs */
.blob-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

/* Content inside blobs */
.blob-content {
    position: relative;
    z-index: 4;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

/* ============================================================
   HERO BLOB
   ============================================================ */
.blob-hero {
    width: min(80vw, 900px);
    height: 70vh;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph-hero 12s ease-in-out infinite;
    background: var(--bg-secondary);
    opacity: 0;
    transform: scale(0.95);
}

.blob-hero.revealed {
    opacity: 1;
    transform: scale(1);
    transition: opacity 2.5s var(--ease-zen), transform 2.5s var(--ease-zen);
}

.hero-photo {
    background: linear-gradient(135deg, #0F1B3D 0%, #0B0B1A 40%, #0D6B4F 80%, #0F1B3D 100%);
    opacity: 0.5;
}

@keyframes blob-morph-hero {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25%      { border-radius: 58% 42% 55% 45% / 50% 60% 40% 50%; }
    50%      { border-radius: 40% 60% 35% 65% / 65% 35% 60% 40%; }
    75%      { border-radius: 65% 35% 50% 50% / 40% 55% 45% 60%; }
}

/* Hero title */
#site-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(48px, 10vw, 96px);
    letter-spacing: 0.08em;
    color: var(--text-heading);
    margin-bottom: 24px;
}

.title-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
}

.title-letter.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms var(--ease-zen), transform 400ms var(--ease-zen);
}

.hero-tagline {
    font-family: 'EB Garamond', serif;
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(15px);
    letter-spacing: 0.04em;
}

.hero-tagline.visible {
    opacity: 0.8;
    transform: translateY(0);
    transition: opacity 800ms var(--ease-zen), transform 800ms var(--ease-zen);
}

/* ============================================================
   CONTENT BLOBS
   ============================================================ */

/* Blob 1 - Philosophy (left-aligned in F-pattern) */
.blob-content-1 {
    width: min(65vw, 750px);
    min-height: 50vh;
    background: var(--bg-secondary);
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    animation: blob-morph-1 14s ease-in-out infinite;
    margin-left: -10%;
}

@keyframes blob-morph-1 {
    0%, 100% { border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; }
    25%      { border-radius: 55% 45% 40% 60% / 45% 55% 50% 50%; }
    50%      { border-radius: 35% 65% 60% 40% / 60% 40% 45% 55%; }
    75%      { border-radius: 50% 50% 45% 55% / 35% 65% 55% 45%; }
}

/* Blob 2 - Texture (wider, F-pattern secondary sweep) */
.blob-content-2 {
    width: min(75vw, 850px);
    min-height: 55vh;
    background: var(--bg-secondary);
    border-radius: 55% 45% 40% 60% / 45% 55% 50% 50%;
    animation: blob-morph-2 11s ease-in-out infinite;
    margin-right: -8%;
}

.texture-photo {
    background: linear-gradient(160deg, #0B0B1A 0%, #0D6B4F 30%, #0F1B3D 60%, #6A0DAD 100%);
    opacity: 0.3;
}

@keyframes blob-morph-2 {
    0%, 100% { border-radius: 55% 45% 40% 60% / 45% 55% 50% 50%; }
    25%      { border-radius: 45% 55% 60% 40% / 55% 45% 40% 60%; }
    50%      { border-radius: 60% 40% 50% 50% / 40% 60% 55% 45%; }
    75%      { border-radius: 40% 60% 45% 55% / 60% 40% 50% 50%; }
}

/* Blob 3 - Light (left-aligned, F-pattern vertical scan) */
.blob-content-3 {
    width: min(60vw, 700px);
    min-height: 48vh;
    background: var(--bg-secondary);
    border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
    animation: blob-morph-3 13s ease-in-out infinite;
    margin-left: -5%;
}

@keyframes blob-morph-3 {
    0%, 100% { border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; }
    25%      { border-radius: 55% 45% 45% 55% / 45% 55% 45% 55%; }
    50%      { border-radius: 50% 50% 55% 45% / 50% 50% 50% 50%; }
    75%      { border-radius: 40% 60% 50% 50% / 55% 45% 60% 40%; }
}

/* Blob 4 - Form (wider, with photo) */
.blob-content-4 {
    width: min(70vw, 800px);
    min-height: 52vh;
    background: var(--bg-secondary);
    border-radius: 50% 50% 45% 55% / 40% 60% 50% 50%;
    animation: blob-morph-4 10s ease-in-out infinite;
    margin-right: -6%;
}

.form-photo {
    background: linear-gradient(200deg, #0F1B3D 0%, #8B1A3A 30%, #0B0B1A 70%, #0D6B4F 100%);
    opacity: 0.25;
}

@keyframes blob-morph-4 {
    0%, 100% { border-radius: 50% 50% 45% 55% / 40% 60% 50% 50%; }
    25%      { border-radius: 60% 40% 55% 45% / 50% 50% 40% 60%; }
    50%      { border-radius: 45% 55% 50% 50% / 60% 40% 55% 45%; }
    75%      { border-radius: 55% 45% 40% 60% / 45% 55% 50% 50%; }
}

/* Blob 5 - Stillness (left-aligned) */
.blob-content-5 {
    width: min(65vw, 720px);
    min-height: 50vh;
    background: var(--bg-secondary);
    border-radius: 35% 65% 55% 45% / 55% 45% 55% 45%;
    animation: blob-morph-5 15s ease-in-out infinite;
    margin-left: -8%;
}

@keyframes blob-morph-5 {
    0%, 100% { border-radius: 35% 65% 55% 45% / 55% 45% 55% 45%; }
    25%      { border-radius: 50% 50% 40% 60% / 45% 55% 60% 40%; }
    50%      { border-radius: 60% 40% 50% 50% / 50% 50% 45% 55%; }
    75%      { border-radius: 45% 55% 60% 40% / 60% 40% 50% 50%; }
}

/* Footer blob */
.blob-footer {
    width: min(40vw, 400px);
    min-height: 25vh;
    background: var(--bg-secondary);
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    animation: blob-morph-footer 12s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes blob-morph-footer {
    0%, 100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
    25%      { border-radius: 45% 55% 55% 45% / 55% 45% 45% 55%; }
    50%      { border-radius: 55% 45% 45% 55% / 45% 55% 55% 45%; }
    75%      { border-radius: 48% 52% 52% 48% / 52% 48% 48% 52%; }
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: 0.06em;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.footer-sub {
    font-family: 'EB Garamond', serif;
    font-size: clamp(14px, 2vw, 18px);
    color: var(--text-primary);
    opacity: 0.5;
    letter-spacing: 0.03em;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(28px, 5vw, 56px);
    letter-spacing: 0.03em;
    color: var(--text-heading);
    margin-bottom: 28px;
    line-height: 1.2;
}

.blob-content p {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.75;
    color: var(--text-primary);
    max-width: 580px;
}

/* ============================================================
   FADE-REVEAL ANIMATION
   ============================================================ */
.fade-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1000ms var(--ease-zen), transform 1000ms var(--ease-zen);
}

.fade-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.fade-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 800ms var(--ease-zen), transform 800ms var(--ease-zen);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .blob-hero {
        width: 92vw;
        height: 60vh;
    }

    .blob-content-1,
    .blob-content-2,
    .blob-content-3,
    .blob-content-4,
    .blob-content-5 {
        width: 90vw;
        margin-left: 0;
        margin-right: 0;
    }

    .blob-content {
        padding: 40px 30px;
    }

    .kanji {
        display: none;
    }

    .enso {
        opacity: 0.03;
    }

    .micro-blob {
        display: none;
    }
}

@media (max-width: 480px) {
    .blob-hero {
        width: 96vw;
        height: 55vh;
    }

    .blob-content {
        padding: 30px 20px;
    }

    h2 {
        margin-bottom: 20px;
    }
}
