/* concepts.news — styles.css */

:root {
    --amber: #e8a84c;
    --earth-dark: #6b5745;
    --parchment: #f5ece1;
    --terracotta-light: #c4956a;
    --sand: #d4b896;
    --terracotta: #d4764e;
    --cream: #e8d5c0;
    --ink: #2a1f16;
    --ink-mid: #3d2b1f;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--parchment);
    color: var(--ink-mid);
    overflow-x: hidden;
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--parchment);
    color: var(--ink);
    overflow-x: hidden;
}

/* Concept Frames */
.concept-frame {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.frame-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Typography */
.concept-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 0.5em;
    line-height: 1.05;
}

.concept-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    display: block;
    margin-bottom: 1rem;
}

.concept-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--earth-dark);
    max-width: 540px;
    margin: 0 auto 1.5rem;
}

.concept-meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--earth-dark);
    max-width: 480px;
}

.concept-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--terracotta-light);
    border: 1px solid var(--sand);
    padding: 0.4em 1em;
    border-radius: 2em;
    display: inline-block;
}

.concept-card {
    position: relative;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--terracotta);
    display: block;
    animation: pulse-line 2s ease-in-out infinite;
}

.scroll-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--terracotta-light);
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Inflated 3D Objects */
.inflated-object {
    margin-bottom: 2rem;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.inflated-sphere {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 35% 30%, var(--amber), var(--terracotta) 60%, var(--earth-dark) 100%);
    box-shadow:
        inset -20px -20px 40px rgba(42, 31, 22, 0.3),
        inset 10px 10px 30px rgba(232, 168, 76, 0.4),
        0 20px 60px rgba(212, 118, 78, 0.3),
        0 5px 15px rgba(42, 31, 22, 0.2);
    animation: breathe 4s ease-in-out infinite;
}

.inflated-cube {
    width: 140px;
    height: 140px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--sand) 0%, var(--terracotta-light) 50%, var(--earth-dark) 100%);
    box-shadow:
        inset -15px -15px 30px rgba(42, 31, 22, 0.25),
        inset 8px 8px 20px rgba(232, 213, 192, 0.5),
        0 15px 50px rgba(196, 149, 106, 0.35),
        0 5px 15px rgba(42, 31, 22, 0.15);
    transform: rotate(15deg);
    animation: breathe 4.5s ease-in-out infinite 0.5s;
}

.inflated-torus {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 50%, transparent 35%, var(--amber) 38%, var(--terracotta) 55%, var(--earth-dark) 70%, transparent 73%);
    box-shadow:
        0 15px 50px rgba(232, 168, 76, 0.3),
        inset 0 0 30px rgba(42, 31, 22, 0.2);
    animation: breathe 5s ease-in-out infinite 1s;
}

.inflated-pillow {
    width: 200px;
    height: 120px;
    border-radius: 60px;
    background: linear-gradient(160deg, var(--cream) 0%, var(--sand) 40%, var(--terracotta-light) 80%, var(--earth-dark) 100%);
    box-shadow:
        inset -12px -12px 25px rgba(42, 31, 22, 0.2),
        inset 8px 8px 20px rgba(245, 236, 225, 0.6),
        0 20px 50px rgba(212, 184, 150, 0.4),
        0 5px 15px rgba(42, 31, 22, 0.1);
    animation: breathe 3.8s ease-in-out infinite 0.3s;
}

.inflated-blob {
    width: 160px;
    height: 150px;
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    background: radial-gradient(ellipse at 40% 35%, var(--amber), var(--terracotta) 55%, var(--ink) 100%);
    box-shadow:
        inset -15px -15px 35px rgba(42, 31, 22, 0.35),
        inset 10px 10px 25px rgba(232, 168, 76, 0.3),
        0 20px 60px rgba(212, 118, 78, 0.25),
        0 5px 15px rgba(42, 31, 22, 0.2);
    animation: breathe 4.2s ease-in-out infinite 0.7s;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.inflated-cube {
    animation-name: breathe-rotate;
}

@keyframes breathe-rotate {
    0%, 100% { transform: rotate(15deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.05); }
}

/* Frame backgrounds with subtle variation */
#frame-temporal {
    background: linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%);
}

#frame-inflation {
    background: linear-gradient(180deg, var(--cream) 0%, var(--parchment) 100%);
}

#frame-pneumatic {
    background: linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%);
}

#frame-governance {
    background: linear-gradient(180deg, var(--cream) 0%, var(--parchment) 100%);
}

/* Footer */
.frame-footer {
    background: var(--ink);
}

.footer-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--sand);
    margin-bottom: 1rem;
}

.footer-sub {
    font-size: 0.85rem;
    color: var(--earth-dark);
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Reveal animation */
.concept-frame .frame-inner {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.concept-frame.visible .frame-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Opening frame always visible */
.frame-opening .frame-inner {
    opacity: 1;
    transform: translateY(0);
}
