/* mechanic.party - Neomorphic Opulence */
/* Palette:
   Obsidian Void: #0d0d12
   Shadow Charcoal: #1a1a24
   Abyss Black: #08080c
   Phantom Silver: #2a2a38
   Plasma Magenta: #e8175d
   Cryo Cyan: #00e5c8
   Forge Amber: #ffb627
   Carrara White: #e8e2da
   Travertine Gray: #8a8178
   Verdigris Green: #4a9e7e
   Lavender Mist: #b8b0c4
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    background-color: #0d0d12;
    color: #b8b0c4;
    overflow-x: hidden;
    line-height: 1.72;
    letter-spacing: 0.01em;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
}

/* ===== Marble Colonnade ===== */
.marble-colonnade {
    position: fixed;
    left: 0;
    top: 0;
    width: 8px;
    height: 100vh;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.marble-colonnade.visible {
    opacity: 1;
}

.colonnade-strip {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        #c9c0b6 0%,
        #e8e2da 8%,
        #8a8178 12%,
        #c9c0b6 18%,
        #e8e2da 25%,
        #8a8178 30%,
        #c9c0b6 38%,
        #e8e2da 45%,
        #8a8178 50%,
        #c9c0b6 58%,
        #e8e2da 65%,
        #8a8178 72%,
        #c9c0b6 80%,
        #e8e2da 88%,
        #8a8178 92%,
        #c9c0b6 100%
    );
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #0d0d12;
    overflow: hidden;
}

.hero-neon-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: #e8175d;
    box-shadow: 0 0 12px rgba(232, 23, 93, 0.5), 0 0 30px rgba(232, 23, 93, 0.2);
    transform-origin: center;
    z-index: 1;
}

.hero-neon-line.animate {
    animation: neonLineDraw 0.8s ease-out forwards;
}

@keyframes neonLineDraw {
    from { transform: translate(-50%, -50%) scaleX(0); }
    to { transform: translate(-50%, -50%) scaleX(1); }
}

.hero-circle {
    position: relative;
    width: 60vmin;
    height: 60vmin;
    border-radius: 50%;
    background-color: #0d0d12;
    box-shadow: 8px 8px 20px #050508, -8px -8px 20px #15151e;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-circle.animate {
    opacity: 1;
    transform: scale(1);
}

.hero-title {
    font-family: 'Righteous', cursive;
    font-size: clamp(2.8rem, 7vw, 6rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e8e2da;
    text-shadow: 0 0 12px rgba(0, 229, 200, 0.3);
    text-align: center;
    padding: 0 1.5rem;
    white-space: nowrap;
    overflow: hidden;
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
}

.hero-title .char.visible {
    opacity: 1;
    transition: opacity 0.06s ease;
}

/* Hero Wreath */
.hero-wreath {
    position: relative;
    width: 180px;
    height: 180px;
    margin-top: -20px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-wreath.animate {
    opacity: 1;
}

.wreath-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.wreath-path,
.wreath-leaf {
    opacity: 0.18;
}

.wreath-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

.wreath-path.draw {
    animation: drawWreath 1.2s ease-in-out forwards;
}

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

.wreath-leaf {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
}

.wreath-leaf.draw {
    animation: drawLeaf 0.5s ease-in-out forwards;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
}

.scroll-indicator.animate {
    animation: scrollPulse 1.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(3px);
    }
}

.chevron-svg {
    width: 30px;
    height: 20px;
}

/* ===== Acanthus Dividers ===== */
.acanthus-divider {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: visible;
}

.acanthus-svg {
    width: 100%;
    height: 80px;
    display: block;
}

.acanthus-path {
    opacity: 0.15;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

.acanthus-path.draw {
    animation: drawAcanthus 0.8s ease-in-out forwards;
}

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

.capital-marker {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
}

.capital-svg {
    width: 100%;
    height: 100%;
}

/* ===== Content Sections ===== */
.content-section {
    position: relative;
    width: 100%;
    background-color: #08080c;
    padding: clamp(2rem, 5vw, 4rem) 0;
    overflow: hidden;
}

.content-section.revealed {
    background-color: #0d0d12;
}

.section-content {
    position: relative;
    max-width: 52ch;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    background-color: transparent;
    border-radius: 16px;
    z-index: 2;
}

.content-section.revealed .section-content {
    box-shadow: 6px 6px 16px #050508, -6px -6px 16px #15151e;
    background-color: #0d0d12;
}

/* Skeleton Loading */
.skeleton-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-section.revealed .skeleton-wrapper {
    display: none;
}

.skeleton-block {
    background: linear-gradient(90deg, #1a1a24 25%, #22222e 37%, #1a1a24 63%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 2.4s ease-in-out infinite;
    box-shadow: inset 4px 4px 12px #050508, inset -4px -4px 12px #15151e;
    border-radius: 8px;
}

.skeleton-heading {
    height: 40px;
    width: 60%;
}

.skeleton-text {
    height: 16px;
    width: 100%;
}

.skeleton-text.short {
    width: 75%;
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.section-real-content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.content-section.revealed .section-real-content {
    opacity: 1;
    transform: translateY(0);
}

/* Section Headings */
.section-heading {
    font-family: 'Righteous', cursive;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e8e2da;
    margin-bottom: 8px;
}

.marble-heading-band {
    height: 4px;
    width: 100%;
    margin-bottom: clamp(1.2rem, 3vw, 2rem);
    background: linear-gradient(90deg, #e8e2da 0%, #c9c0b6 30%, #8a8178 50%, #c9c0b6 70%, #e8e2da 100%);
    border-radius: 2px;
}

/* Body Text */
.body-text {
    color: #b8b0c4;
    margin-bottom: 1.2em;
}

/* Pull Quotes */
.pull-quote {
    padding: clamp(1rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2.5rem);
    margin: 1.5em 0;
    border-radius: 12px;
    box-shadow: inset 4px 4px 12px #050508, inset -4px -4px 12px #15151e;
    position: relative;
}

.pull-quote p {
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.02em;
    font-style: italic;
    color: #e8e2da;
    line-height: 1.4;
}

/* Drawer Stack */
.drawer-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 1.5em;
}

.drawer-item {
    display: flex;
    flex-direction: column;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1rem, 2.5vw, 1.5rem);
    background-color: #0d0d12;
    border-radius: 12px;
    border: 1px solid #1a1a24;
    box-shadow: 6px 6px 16px #050508, -6px -6px 16px #15151e;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.drawer-item:hover {
    box-shadow: inset 4px 4px 12px #050508, inset -4px -4px 12px #15151e, 0 0 20px rgba(232, 23, 93, 0.15);
}

.drawer-item:active {
    box-shadow: inset 4px 4px 12px #050508, inset -4px -4px 12px #15151e;
}

.drawer-label {
    font-family: 'Righteous', cursive;
    font-size: clamp(1rem, 2vw, 1.3rem);
    letter-spacing: 0.04em;
    color: #e8e2da;
    text-transform: uppercase;
}

.drawer-detail {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    color: #8a8178;
    margin-top: 4px;
}

/* Neomorphic Button Interaction */
.neo-button {
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.neo-button.pressed {
    box-shadow: inset 4px 4px 12px #050508, inset -4px -4px 12px #15151e, 0 0 20px rgba(232, 23, 93, 0.15) !important;
    transform: scale(0.98);
}

/* Links */
a {
    color: #00e5c8;
    text-decoration: none;
    background-image: linear-gradient(#00e5c8, #00e5c8);
    background-size: 0% 2px;
    background-position: bottom left;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

a:hover {
    background-size: 100% 2px;
}

/* ===== Fern Decorations ===== */
.fern-decoration {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.fern-1 {
    bottom: 0;
    left: 0;
    width: 160px;
    height: 240px;
}

.fern-2 {
    bottom: 0;
    left: 0;
    width: 140px;
    height: 220px;
}

.fern-3 {
    bottom: 0;
    right: 0;
    width: 160px;
    height: 240px;
}

.fern-footer {
    bottom: 0;
    left: 20px;
    width: 120px;
    height: 200px;
}

.fern-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.fern-path {
    opacity: 0.15;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}

.fern-path.draw {
    animation: drawFern 2s ease-in-out forwards;
}

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

/* ===== Engine Vine ===== */
.engine-vine-decoration {
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 1;
    pointer-events: none;
}

.engine-vine-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.engine-vine-path {
    opacity: 0.12;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
}

.engine-vine-path.draw {
    animation: drawEngineVine 2.5s ease-in-out forwards;
}

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

.engine-vine-gear {
    opacity: 0.12;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
}

.engine-vine-gear.draw {
    animation: drawGear 0.8s ease-in-out forwards;
}

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

.engine-vine-leaf {
    opacity: 0.15;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
}

.engine-vine-leaf.draw {
    animation: drawLeaf 0.6s ease-in-out forwards;
}

/* ===== Forge Footer ===== */
.forge-footer {
    position: relative;
    width: 100%;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3rem);
    text-align: center;
    overflow: hidden;
}

.forge-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 120%, rgba(255, 182, 39, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-wreath {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.footer-wreath-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.footer-wreath-path {
    opacity: 0.6;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}

.footer-wreath-path.draw {
    animation: drawFooterWreath 1.5s ease-in-out forwards;
}

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

.footer-title {
    font-family: 'Righteous', cursive;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffb627;
    text-shadow: 0 0 20px rgba(255, 182, 39, 0.2);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-style: italic;
    color: #ffb627;
    opacity: 0.7;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.footer-year {
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: #8a8178;
    letter-spacing: 0.15em;
}

/* ===== Recessed Channels between sections ===== */
.acanthus-divider {
    background-color: #0d0d12;
    box-shadow: inset 0 4px 12px #050508, inset 0 -4px 12px #050508;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .hero-circle {
        width: 80vmin;
        height: 80vmin;
    }

    .hero-wreath {
        width: 120px;
        height: 120px;
    }

    .section-content {
        padding: clamp(1.5rem, 4vw, 2.5rem);
    }

    .marble-colonnade {
        width: 4px;
    }

    .engine-vine-decoration {
        display: none;
    }

    .fern-decoration {
        opacity: 0.5;
    }

    .capital-marker {
        width: 24px;
        height: 24px;
    }
}
