/* ronri.xyz — Logic Garden */

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

:root {
    --deep-green: #0d1f18;
    --parchment: #f0e6d6;
    --jewel-magenta: #7b2d5a;
    --brass: #a67c52;
    --deep-blue: #1a3d5a;
    --forest: #2d5a4a;
    --midnight: #1a0f1f;
    --copper: #c4956a;
}

html {
    scroll-behavior: smooth;
}

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

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    pointer-events: none;
}

.scroll-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--copper);
    opacity: 0.3;
}

.scroll-diamond {
    width: 8px;
    height: 8px;
    background: var(--copper);
    transform: rotate(45deg);
    opacity: 0.4;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
}

.scroll-diamond.active {
    opacity: 1;
    transform: rotate(45deg) scale(1.5);
}

/* Bokeh Background Layer */
.bokeh-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bokeh-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: bokehFloat 12s ease-in-out infinite;
}

@keyframes bokehFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
    50% { transform: translateY(-20px) scale(1.05); opacity: 0.25; }
}

/* Panels */
.panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 4rem 2rem;
}

.panel-content {
    max-width: 800px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.panel-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section 1: Atrium */
.panel-atrium {
    background: radial-gradient(ellipse at center, var(--midnight) 0%, var(--deep-green) 100%);
}

.hero-word {
    font-family: 'Fraunces', serif;
    font-size: clamp(6rem, 15vw, 14rem);
    font-weight: 900;
    font-optical-sizing: auto;
    color: var(--parchment);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 60px rgba(123, 45, 90, 0.3);
}

.hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 2rem;
}

.leaf-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--forest), transparent);
    margin: 2rem auto;
}

/* Section 2: Proposition */
.panel-proposition {
    background: radial-gradient(ellipse at 30% 70%, rgba(123, 45, 90, 0.1) 0%, var(--deep-green) 60%);
}

.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--parchment);
    margin-bottom: 1.5rem;
}

.section-body {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    line-height: 1.8;
    color: var(--parchment);
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.leaf-cluster {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.leaf {
    width: 12px;
    height: 24px;
    background: var(--forest);
    border-radius: 50% 0 50% 0;
    opacity: 0.6;
    animation: leafSway 4s ease-in-out infinite;
}

.leaf:nth-child(2) { animation-delay: 0.5s; transform: rotate(15deg); }
.leaf:nth-child(3) { animation-delay: 1s; transform: rotate(-10deg); }

@keyframes leafSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

/* Section 3: Mechanism */
.panel-mechanism {
    background: radial-gradient(ellipse at 70% 30%, rgba(26, 61, 90, 0.15) 0%, var(--deep-green) 60%);
}

.gear-motif {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 3rem auto 0;
}

.gear-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--brass);
    border-radius: 50%;
    opacity: 0.5;
    animation: gearSpin 20s linear infinite;
}

.gear-ring-inner {
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border-color: var(--copper);
    animation-direction: reverse;
    animation-duration: 15s;
}

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Section 4: Evidence */
.panel-evidence {
    background: radial-gradient(ellipse at 50% 50%, rgba(45, 90, 74, 0.1) 0%, var(--deep-green) 60%);
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 700px;
}

.evidence-card {
    padding: 2rem;
    border: 1px solid rgba(196, 149, 106, 0.2);
    border-radius: 4px;
    text-align: left;
    transition: border-color 0.3s ease;
}

.evidence-card:hover {
    border-color: var(--copper);
}

.evidence-number {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--jewel-magenta);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}

.evidence-card p {
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--parchment);
    opacity: 0.8;
}

/* Section 5: Garden */
.panel-garden {
    background: radial-gradient(ellipse at 40% 60%, rgba(45, 90, 74, 0.15) 0%, var(--deep-green) 60%);
}

.vine-drawing {
    margin: 2rem auto 0;
    width: 100px;
}

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

.vine-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 2s ease;
}

.panel-garden .panel-content.visible .vine-path {
    stroke-dashoffset: 0;
}

.vine-bloom {
    transform-origin: center;
    animation: bloomPulse 3s ease-in-out infinite;
}

.vine-bloom:nth-child(2) { animation-delay: 0.5s; }
.vine-bloom:nth-child(3) { animation-delay: 1s; }

@keyframes bloomPulse {
    0%, 100% { r: 6; opacity: 0.4; }
    50% { r: 10; opacity: 0.7; }
}

/* Section 6: Coda */
.panel-coda {
    background: radial-gradient(ellipse at center, var(--midnight) 0%, var(--deep-green) 100%);
}

.coda-word {
    font-family: 'Fraunces', serif;
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 900;
    color: var(--parchment);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.coda-tagline {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: var(--copper);
}
