/* quirk.one — flat-design gold-black stage */

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

:root {
    --luxury-gold: #C8A840;
    --warm-dark: #4A4838;
    --muted-gold: #8A7830;
    --black-depth: #0A0A08;
    --stage-white: #FFFDF6;
    --card-surface: #FFFFFF;
    --flare-glow: rgba(255, 215, 0, 0.08);
    --circuit-gold: rgba(200, 168, 64, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--warm-dark);
    background-color: var(--stage-white);
    overflow-x: hidden;
    line-height: 1.8;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

/* ===== Typography ===== */
.hero-title,
.display-title,
.billboard-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: var(--luxury-gold);
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    color: var(--luxury-gold);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 0.6em;
}

.card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    color: var(--luxury-gold);
    font-size: 1.2rem;
    margin-bottom: 0.5em;
}

.tech-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--muted-gold);
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: var(--warm-dark);
    line-height: 1.8;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

/* ===== Bounce-In Animation ===== */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.92);
    }
    50% {
        opacity: 1;
        transform: translateY(-8px) scale(1.02);
    }
    70% {
        transform: translateY(3px) scale(0.995);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bounce-in {
    opacity: 0;
    transform: translateY(40px);
}

.bounce-in.visible {
    animation: bounceIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bounce-in[data-delay="1"].visible {
    animation-delay: 0.12s;
}

.bounce-in[data-delay="2"].visible {
    animation-delay: 0.24s;
}

.bounce-in[data-delay="3"].visible {
    animation-delay: 0.36s;
}

.bounce-in[data-delay="4"].visible {
    animation-delay: 0.5s;
}

/* ===== Circuit Background Layer ===== */
.circuit-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

/* ===== Lens Flare Layer ===== */
.flare-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.flare {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    will-change: transform;
}

.flare-1 {
    width: 600px;
    height: 600px;
    top: -10%;
    left: 20%;
    animation: flareFloat1 12s ease-in-out infinite;
}

.flare-2 {
    width: 500px;
    height: 500px;
    top: 40%;
    right: -5%;
    animation: flareFloat2 15s ease-in-out infinite;
}

.flare-3 {
    width: 450px;
    height: 450px;
    bottom: 10%;
    left: 5%;
    animation: flareFloat3 18s ease-in-out infinite;
}

@keyframes flareFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(40px, 30px) scale(1.15); opacity: 1; }
}

@keyframes flareFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(-30px, -20px) scale(1.1); opacity: 0.9; }
}

@keyframes flareFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(20px, -40px) scale(1.2); opacity: 0.8; }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(200, 168, 64, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, var(--stage-white) 0%, rgba(255, 253, 246, 0.95) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 880px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: 0.05em;
    margin: 0.3em 0 0.2em;
    text-shadow: 0 2px 40px rgba(200, 168, 64, 0.15);
}

.hero-dot {
    display: inline-block;
    color: var(--luxury-gold);
    animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.15); }
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--warm-dark);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-circuit-ornament {
    max-width: 480px;
    margin: 0 auto;
}

.circuit-svg {
    width: 100%;
    height: auto;
}

.hero-scroll-hint {
    margin-top: 3rem;
}

.scroll-arrow-svg {
    width: 24px;
    height: 40px;
}

@keyframes scrollBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.scroll-dot {
    animation: scrollBob 1.8s ease-in-out infinite;
}

/* ===== Layer Section ===== */
.layer-section {
    position: relative;
    z-index: 2;
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--stage-white) 0%, rgba(10, 10, 8, 0.02) 100%);
}

.layer-stack {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.layer-card {
    position: relative;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.layer-card:hover {
    transform: translateY(-4px);
}

.layer-card-inner {
    padding: 2.5rem 3rem;
}

.layer-bg {
    background: var(--card-surface);
    border: 1px solid rgba(200, 168, 64, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    z-index: 1;
}

.layer-mid {
    background: var(--card-surface);
    border: 1px solid rgba(200, 168, 64, 0.18);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    z-index: 2;
    margin-left: 1.5rem;
    margin-right: -0.5rem;
}

.layer-fg {
    background: var(--card-surface);
    border: 1px solid rgba(200, 168, 64, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 3;
    margin-left: 3rem;
    margin-right: -1rem;
}

.layer-card .tech-label {
    display: block;
    margin-bottom: 1rem;
}

/* ===== Showcase Section ===== */
.showcase {
    position: relative;
    z-index: 2;
    padding: 8rem 2rem;
    background: var(--stage-white);
}

.showcase-header {
    text-align: center;
    max-width: 880px;
    margin: 0 auto 4rem;
}

.showcase-header .tech-label {
    display: block;
    margin-bottom: 1rem;
}

.showcase-grid {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.showcase-card {
    background: var(--card-surface);
    border: 1px solid rgba(200, 168, 64, 0.12);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.showcase-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

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

/* ===== Billboard Section ===== */
.billboard {
    position: relative;
    z-index: 2;
    padding: 10rem 2rem;
    overflow: hidden;
}

.billboard-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, var(--black-depth) 0%, #1a1a14 100%);
    z-index: -1;
}

.billboard-content {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.billboard-title {
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--luxury-gold);
    margin: 1rem 0 2rem;
    text-shadow: 0 4px 60px rgba(200, 168, 64, 0.2);
}

.billboard-divider {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.divider-svg {
    width: 100%;
    height: auto;
}

.billboard-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 253, 246, 0.7);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.billboard .tech-label {
    color: var(--muted-gold);
    opacity: 0.7;
}

/* ===== Depth Section ===== */
.depth-section {
    position: relative;
    z-index: 2;
    padding: 8rem 2rem;
    background: var(--stage-white);
}

.depth-container {
    max-width: 880px;
    margin: 0 auto;
}

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

.depth-header .tech-label {
    display: block;
    margin-bottom: 1rem;
}

.depth-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
}

.depth-panel {
    background: var(--card-surface);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.depth-panel .tech-label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.7rem;
}

.depth-panel-back {
    border: 1px solid rgba(200, 168, 64, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transform: translateY(0);
}

.depth-panel-back:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.depth-panel-mid {
    border: 1px solid rgba(200, 168, 64, 0.15);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-8px);
}

.depth-panel-mid:hover {
    transform: translateY(-14px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}

.depth-panel-front {
    border: 1px solid rgba(200, 168, 64, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-16px);
}

.depth-panel-front:hover {
    transform: translateY(-22px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ===== Rhythm Section ===== */
.rhythm-section {
    position: relative;
    z-index: 2;
    padding: 8rem 2rem;
    background: linear-gradient(180deg, rgba(10, 10, 8, 0.02) 0%, var(--stage-white) 100%);
}

.rhythm-container {
    max-width: 880px;
    margin: 0 auto;
}

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

.rhythm-header .tech-label {
    display: block;
    margin-bottom: 1rem;
}

.rhythm-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.2rem;
    height: 260px;
    padding: 0 1rem;
}

.rhythm-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    max-width: 60px;
    height: 100%;
    position: relative;
}

.rhythm-bar-fill {
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--luxury-gold) 0%, rgba(200, 168, 64, 0.3) 100%);
    border-radius: 4px 4px 0 0;
    transition: height 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rhythm-bar.animated .rhythm-bar-fill {
    height: var(--bar-height, 50%);
}

.rhythm-bar-label {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted-gold);
}

.rhythm-caption {
    text-align: center;
    margin-top: 3rem;
    opacity: 0.8;
}

/* ===== Manifesto Section ===== */
.manifesto-section {
    position: relative;
    z-index: 2;
    padding: 8rem 2rem;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(255, 215, 0, 0.04) 0%, transparent 50%),
        var(--stage-white);
}

.manifesto-container {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.manifesto-left .tech-label {
    display: block;
    margin-bottom: 1rem;
}

.manifesto-right {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.manifesto-item {
    position: relative;
    padding-left: 3rem;
}

.manifesto-number {
    position: absolute;
    left: 0;
    top: 0.25em;
    font-size: 0.8rem;
    color: var(--luxury-gold);
    opacity: 0.6;
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    background: var(--stage-white);
    border-top: 1px solid rgba(200, 168, 64, 0.1);
}

.footer-circuit {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
}

.footer-circuit-svg {
    width: 100%;
    height: 60px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-dot {
    color: var(--luxury-gold);
    font-size: 0.4rem;
    opacity: 0.5;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .depth-panels {
        grid-template-columns: 1fr;
    }

    .depth-panel-mid {
        transform: translateY(0);
    }

    .depth-panel-mid:hover {
        transform: translateY(-4px);
    }

    .depth-panel-front {
        transform: translateY(0);
    }

    .depth-panel-front:hover {
        transform: translateY(-4px);
    }

    .layer-mid {
        margin-left: 0.75rem;
        margin-right: 0;
    }

    .layer-fg {
        margin-left: 1.5rem;
        margin-right: 0;
    }

    .layer-card-inner {
        padding: 2rem;
    }

    .billboard {
        padding: 6rem 2rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .billboard-title {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }

    .manifesto-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .rhythm-bars {
        gap: 0.6rem;
        height: 200px;
    }

    .rhythm-bar {
        max-width: 40px;
    }
}

@media (max-width: 480px) {
    .layer-mid {
        margin-left: 0.5rem;
        margin-right: 0;
    }

    .layer-fg {
        margin-left: 1rem;
        margin-right: 0;
    }

    .showcase-card {
        padding: 1.5rem;
    }

    .depth-panel {
        padding: 1.5rem;
    }

    .rhythm-bars {
        gap: 0.4rem;
        height: 160px;
    }

    .rhythm-bar-label {
        font-size: 0.7rem;
    }

    .manifesto-item {
        padding-left: 2.5rem;
    }
}
