/* iisugi.com — Seapunk Oracle */
:root {
    --marble-white: #faf7f2;
    --abyssal-navy: #05141c;
    --seafoam: #c8d6d2;
    --kelp-teal: #0b4d4a;
    --holographic-teal: #17b5a0;
    --mist: #e8f4f0;
    --bone: #e0dbd3;
    --deep-marine: #071f2b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    color: var(--abyssal-navy);
    background: var(--abyssal-navy);
    overflow-x: hidden;
}

/* === SURFACE PANEL === */
.surface-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at 50% 80%, var(--kelp-teal) 0%, var(--deep-marine) 60%, var(--abyssal-navy) 100%);
    position: relative;
    overflow: hidden;
}

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

.surface-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--marble-white);
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(23, 181, 160, 0.3);
    animation: surfaceReveal 2s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.surface-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: var(--seafoam);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 1rem;
    opacity: 0;
    animation: surfaceReveal 2s ease-out 0.5s forwards;
}

.scroll-indicator {
    margin-top: 3rem;
    opacity: 0;
    animation: surfaceReveal 2s ease-out 1s forwards, float 3s ease-in-out infinite 2s;
}

.caustic-overlay {
    position: absolute;
    inset: 0;
    background: 
        repeating-conic-gradient(from 0deg at 20% 30%, transparent 0deg, rgba(23, 181, 160, 0.03) 2deg, transparent 4deg),
        repeating-conic-gradient(from 45deg at 70% 60%, transparent 0deg, rgba(23, 181, 160, 0.02) 3deg, transparent 6deg);
    animation: causticShift 12s linear infinite;
    pointer-events: none;
}

.bubble-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), rgba(23,181,160,0.1));
    border: 1px solid rgba(23, 181, 160, 0.2);
    animation: rise linear forwards;
}

/* === GRID SECTION === */
.grid-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--abyssal-navy) 0%, var(--deep-marine) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--marble-white);
    letter-spacing: 0.01em;
}

.section-desc {
    font-family: 'Source Serif 4', serif;
    font-size: 1.125rem;
    color: var(--seafoam);
    margin-top: 0.75rem;
    opacity: 0.8;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.marble-card {
    background: var(--marble-white);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.marble-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(200, 214, 210, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(224, 219, 211, 0.4), transparent 60%);
    pointer-events: none;
}

.marble-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--kelp-teal), var(--holographic-teal), var(--kelp-teal));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.marble-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(23, 181, 160, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.marble-card:hover::after {
    opacity: 1;
}

.marble-card.span-2 {
    grid-row: span 2;
}

.card-inner {
    padding: 2rem;
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-glyph {
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--deep-marine);
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.card-text {
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--kelp-teal);
    flex: 1;
}

/* === ORACLE SECTION === */
.oracle-section {
    min-height: 80vh;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at 50% 50%, var(--kelp-teal) 0%, var(--abyssal-navy) 80%);
    padding: 4rem 2rem;
    position: relative;
}

.oracle-content {
    text-align: center;
    max-width: 700px;
}

.oracle-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--holographic-teal);
    margin-bottom: 2rem;
}

.oracle-quote {
    border-left: 2px solid var(--holographic-teal);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.oracle-quote p {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.8;
    color: var(--marble-white);
    font-style: italic;
}

.oracle-button {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--holographic-teal);
    background: transparent;
    border: 1px solid var(--holographic-teal);
    padding: 0.875rem 2rem;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.oracle-button:hover {
    background: var(--holographic-teal);
    color: var(--abyssal-navy);
    box-shadow: 0 0 20px rgba(23, 181, 160, 0.3);
}

/* === FOOTER === */
.site-footer {
    background: var(--abyssal-navy);
    border-top: 1px solid rgba(23, 181, 160, 0.2);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-glyph {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--holographic-teal);
    display: block;
    margin-bottom: 0.75rem;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--seafoam);
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* === ANIMATIONS === */
@keyframes surfaceReveal {
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes causticShift {
    from { transform: rotate(0deg) scale(1.2); }
    to { transform: rotate(360deg) scale(1.2); }
}

@keyframes rise {
    to { transform: translateY(-110vh); opacity: 0; }
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .marble-card.span-2 {
        grid-row: span 1;
    }
}
