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

html {
    scroll-behavior: smooth;
    background: #0a0f14;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #0a0f14;
    color: #00e5ff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* === SKELETON OVERLAY === */
#skeleton-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #0a0f14;
    display: grid;
    place-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#skeleton-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    width: 80vw;
    height: 60vh;
}

.skeleton-cell {
    background: #1a2a38;
    border-radius: 2px;
    animation: skeletonPulse 1.5s ease-in-out infinite alternate;
}

.skeleton-cell:nth-child(2) { animation-delay: 0.2s; }
.skeleton-cell:nth-child(3) { animation-delay: 0.4s; }
.skeleton-cell:nth-child(4) { animation-delay: 0.6s; }
.skeleton-cell:nth-child(5) { animation-delay: 0.8s; }
.skeleton-cell:nth-child(6) { animation-delay: 1.0s; }

@keyframes skeletonPulse {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
}

/* === TYPOGRAPHY === */
.display-title {
    font-family: 'Dela Gothic One', cursive;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: #00e5ff;
    text-transform: lowercase;
}

.mono-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #005f6b;
}

.body-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.4;
    color: #2a3a4a;
}

.item-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #00e5ff;
}

.hud-coord {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #005f6b;
    letter-spacing: 0.05em;
}

.hud-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    color: #00e5ff;
}

/* === BENTO TRAY LAYOUT === */
.bento-tray {
    display: grid;
    gap: 2px;
    min-height: 100vh;
    padding: 2px;
    background: #005f6b;
}

#tray-void {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 3fr 1fr;
}

#tray-void .cell-main {
    grid-row: 1;
    grid-column: 1;
}

#tray-void .cell-side {
    grid-row: 1;
    grid-column: 2;
}

#tray-void .cell-bottom {
    grid-row: 2;
    grid-column: 1 / -1;
}

#tray-assembly {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

#tray-assembly .cell-wide {
    grid-column: 1;
    grid-row: 1 / -1;
}

#tray-assembly .cell-square:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
}

#tray-assembly .cell-square:nth-of-type(3) {
    grid-column: 3;
    grid-row: 1;
}

#tray-assembly .cell-tall {
    grid-column: 2 / -1;
    grid-row: 2;
}

#tray-practice {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

#tray-contact {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

/* === BENTO CELLS === */
.bento-cell {
    background: #0a0f14;
    padding: clamp(2rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cell-center {
    align-items: center;
    text-align: center;
}

.cell-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* === BLOBS === */
.blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphBlob 20s ease-in-out infinite alternate;
}

.garden-stone {
    width: 200px;
    height: 200px;
    background: #141e28;
    opacity: 0.6;
}

#stone-1 {
    bottom: 10%;
    right: 15%;
}

#stone-2 {
    top: 20%;
    left: 10%;
    width: 120px;
    height: 120px;
}

.active-blob {
    width: 150px;
    height: 150px;
    background: radial-gradient(ellipse at center, #005f6b 0%, #00e5ff 50%, transparent 70%);
    opacity: 0.4;
    filter: blur(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.active-blob:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

#blob-1 { top: 20%; left: 20%; }
#blob-2 { bottom: 20%; right: 20%; }
#blob-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes morphBlob {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 34% 66% / 63% 68% 32% 37%; }
    50% { border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%; }
    75% { border-radius: 42% 58% 64% 36% / 47% 32% 68% 53%; }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* === HUD READOUT === */
.hud-readout {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pulse-line {
    width: 40px;
    height: 2px;
    background: #005f6b;
    animation: pulseLine 2s ease-in-out infinite;
}

@keyframes pulseLine {
    0%, 100% { opacity: 0.3; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.5); }
}

/* === PRACTICE GRID === */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.practice-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* === CONTACT === */
.contact-link {
    margin-top: 2rem;
    color: #00e5ff;
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid #005f6b;
    padding: 1rem 2rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.contact-link:hover {
    background: #1a2a38;
    border-color: #00e5ff;
}

/* === REVEAL ANIMATION === */
.bento-tray {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.bento-tray.visible {
    opacity: 1;
    transform: translateY(0);
}
