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

/* ── LIGHT THEME ── */
:root {
    --bg: #F2E8D9;
    --clay: #C97D5B;
    --bark: #3B2A1A;
    --moss: #7A8C6E;
    --dust: #D9C4A8;
    --ink: #2A1A0E;
    --border: rgba(201, 125, 91, 0.35);
    --blob1: rgba(201, 125, 91, 0.13);
    --blob2: rgba(122, 140, 110, 0.10);
    --blob3: rgba(217, 196, 168, 0.22);
}

/* ── DARK THEME ── */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1A120A;
        --clay: #D4896A;
        --bark: #E8D5BE;
        --moss: #8FA882;
        --dust: #4A3828;
        --ink: #F0E2CC;
        --border: rgba(212, 137, 106, 0.28);
        --blob1: rgba(201, 125, 91, 0.07);
        --blob2: rgba(122, 140, 110, 0.06);
        --blob3: rgba(80, 55, 35, 0.28);
    }
}

html,
body {
    height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Cormorant Garamond', Georgia, serif;
    overflow: hidden;
    cursor: none;
    transition: background 0.5s, color 0.5s;
}

/* grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10;
    opacity: 0.45;
}

/* blobs */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 55% at 15% 18%, var(--blob1) 0%, transparent 60%),
        radial-gradient(ellipse 55% 65% at 85% 82%, var(--blob2) 0%, transparent 60%),
        radial-gradient(ellipse 45% 45% at 50% 50%, var(--blob3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--clay);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
}

/* corners */
.corner {
    position: fixed;
    width: 38px;
    height: 38px;
    z-index: 5;
    opacity: 0;
    animation: fadeIn 1s ease 0.4s forwards;
}

.corner--tl {
    top: 22px;
    left: 22px;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.corner--tr {
    top: 22px;
    right: 22px;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.corner--bl {
    bottom: 22px;
    left: 22px;
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.corner--br {
    bottom: 22px;
    right: 22px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

/* badge */
.badge {
    position: fixed;
    top: 28px;
    right: 32px;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clay);
    opacity: 0;
    animation: fadeIn 1s ease 1.7s forwards;
    z-index: 5;
}

/* ── LAYOUT ── */
.wrapper {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 110px;
}

.name {
    font-family: 'Petit Formal Script', cursive;
    font-size: clamp(3rem, 12vw, 7rem);
    color: var(--bark);
    line-height: 1.1;
    opacity: 0;
    transform: translateY(18px);
    animation: riseIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    user-select: none;
}

.divider {
    margin: 18px auto 22px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clay), transparent);
    animation: expandLine 1s ease 0.9s forwards;
}

@keyframes expandLine {
    to {
        width: clamp(80px, 30vw, 130px);
    }
}

/* static line + animated word */
.tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 10px;
    opacity: 0;
    animation: riseIn 0.8s ease 1.1s forwards;
}

.static-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 3.5vw, 1.8rem);
    font-weight: 300;
    color: var(--ink);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    opacity: 0.8;
    white-space: nowrap;
}

/* slot holds the animated platform word */
.platform-slot {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: clamp(1.8rem, 5vw, 2.8rem);
}

.platform {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.5vw, 12px);
    color: var(--clay);
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.1rem, 4.2vw, 2.3rem);
    font-style: italic;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
}

.platform-icon {
    width: clamp(1.1rem, 4vw, 1.9rem);
    height: clamp(1.1rem, 4vw, 1.9rem);
    background-color: currentColor;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.platform.active {
    opacity: 1;
    transform: translateY(0);
}

.platform.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* ── SOCIALS — pinned, perfectly centred ── */
.socials {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 6vw, 56px);
    padding: 18px 20px 26px;
    z-index: 5;
    opacity: 0;
    animation: riseIn 1s ease 1.8s forwards;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--ink);
    text-decoration: none;
    font-size: clamp(0.56rem, 1.5vw, 0.68rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.45;
    transition: opacity 0.3s, color 0.3s, transform 0.3s;
}

.social-link svg {
    width: clamp(17px, 3vw, 21px);
    height: clamp(17px, 3vw, 21px);
    fill: currentColor;
}

.social-link:hover {
    opacity: 1;
    color: var(--clay);
    transform: translateY(-3px);
}

/* leaves */
.leaf {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.055;
}

.leaf-1 {
    top: 5%;
    left: 3%;
    width: clamp(70px, 11vw, 150px);
    transform: rotate(-22deg);
    animation: floatLeaf 9s ease-in-out infinite;
}

.leaf-2 {
    bottom: 9%;
    right: 3%;
    width: clamp(55px, 8vw, 110px);
    transform: rotate(28deg);
    animation: floatLeaf 11s ease-in-out 2s infinite;
}

@keyframes floatLeaf {

    0%,
    100% {
        transform: rotate(-22deg) translateY(0);
    }

    50% {
        transform: rotate(-22deg) translateY(-10px);
    }
}

@keyframes riseIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 0.7;
    }
}

/* mobile tweaks */
@media (max-width: 500px) {
    .badge {
        display: none;
    }

    .corner {
        width: 26px;
        height: 26px;
        top: 16px;
        left: 16px;
    }

    .corner--tr {
        top: 16px;
        left: auto;
        right: 16px;
    }

    .corner--bl {
        top: auto;
        bottom: 16px;
        left: 16px;
    }

    .corner--br {
        top: auto;
        bottom: 16px;
        right: 16px;
        left: auto;
    }

    .tagline {
        flex-direction: column;
        gap: 6px;
    }
}

/* ── MANDALA ── */
.mandala-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(150px, 30vw, 800px);
    height: clamp(150px, 30vw, 800px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.25;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.mandala-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--clay);
    stroke-width: 0.5;
    stroke-linecap: round;
}

.mandala-layer--1 {
    opacity: 1;
}

.mandala-layer--2 {
    opacity: 0.85;
}

.mandala-layer--3 {
    opacity: 0.7;
}

.mandala-layer--4 {
    opacity: 0.55;
}

.mandala-layer--5 {
    opacity: 0.4;
}

.mandala-layer--6 {
    opacity: 0.25;
}

/* draw-in animation */
.mandala-layer path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}