/* ===== THE CHALICE — Production Breakdown ===== */

:root {
    --black: #0a0908;
    --near-black: #14110f;
    --cream: #f0e6d8;
    --gold: #c9a24b;
    --gold-bright: #e3bd63;
    --burgundy: #6b1f2a;
    --text-dim: #9a8e7d;
    --serif: 'Georgia', 'Times New Roman', serif;
    --sans: -apple-system, 'Helvetica Neue', 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--cream);
    font-family: var(--sans);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background: radial-gradient(ellipse at center, #1a1512 0%, var(--black) 70%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('img/sh12_money.jpg') center/cover;
    opacity: 0.18;
    filter: blur(2px);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroReveal 2s ease forwards;
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.title {
    font-family: var(--serif);
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--cream);
    text-shadow: 0 0 40px rgba(201, 162, 75, 0.3);
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--gold);
    margin-top: 1rem;
    letter-spacing: 0.1em;
    font-weight: 300;
}

.tech {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-hint {
    position: absolute;
    bottom: -25vh;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SECTIONS ===== */
.section {
    padding: 12vh 0;
    position: relative;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
    color: var(--cream);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1.5rem auto 0;
}

.body-text {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--cream);
    max-width: 680px;
    margin: 1.5rem auto;
    text-align: center;
}

.body-text strong {
    color: var(--gold-bright);
    font-weight: 600;
}

.body-text.highlight {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2.6vw, 1.4rem);
    color: var(--gold);
    border-left: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    padding: 1rem 2rem;
    margin: 2.5rem auto;
}

/* ===== DUAL FRAME (180 rule) ===== */
.dual-frame {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.frame-box {
    flex: 1;
    min-width: 240px;
    max-width: 340px;
    position: relative;
}

.still {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    display: block;
}

.arrow {
    width: 80px;
    height: 40px;
    position: absolute;
    top: 45%;
    opacity: 0;
}

.arrow-left {
    right: -50px;
}

.arrow-right {
    left: -50px;
}

.frame-box.arrows-visible .arrow {
    animation: arrowPulse 2s ease-in-out infinite;
    opacity: 1;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.caption {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 0.8rem;
    font-style: italic;
}

/* ===== HERO FRAME (visual storytelling) ===== */
.hero-frame {
    margin: 2rem auto 3rem;
    max-width: 420px;
}

.still-hero {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    display: block;
}

/* ===== SECONDARY ROW ===== */
.secondary-row {
    display: flex;
    gap: 24px;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.secondary-frame {
    flex: 1;
    min-width: 240px;
}

.still-sm {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
}

/* ===== PACING CHART ===== */
.chart-container {
    margin: 3rem 0;
    background: var(--near-black);
    border-radius: 10px;
    padding: 2rem 1.5rem 1rem;
    border: 1px solid rgba(201, 162, 75, 0.15);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 4px;
}

.bar {
    flex: 1;
    height: 0;
    background: linear-gradient(to top, var(--burgundy), var(--gold));
    border-radius: 3px 3px 0 0;
    position: relative;
    transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.85;
}

.bar[data-zone="setup"] { --bar-color: var(--text-dim); }
.bar[data-zone="climax"] { background: linear-gradient(to top, #2a2420, var(--cream)); }

.bar::after {
    content: var(--label);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-dim);
}

.chart-bars.animate .bar {
    height: calc(var(--height) * 32px);
}

.chart-zones {
    display: flex;
    margin-top: 2rem;
    gap: 8px;
    text-align: center;
}

.zone {
    flex: 1;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    padding: 0.5rem;
    border-top: 2px solid var(--gold);
}

.zone small {
    display: block;
    color: var(--text-dim);
    letter-spacing: 0;
    text-transform: none;
    margin-top: 0.3rem;
    font-size: 0.7rem;
}

.zone-setup { flex: 4; }
.zone-escalation { flex: 8; }
.zone-climax { flex: 6; }

/* ===== FOOTER ===== */
.footer {
    padding: 8vh 0;
    text-align: center;
    border-top: 1px solid rgba(201, 162, 75, 0.15);
}

.tech-line {
    color: var(--text-dim);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .dual-frame, .secondary-row { flex-direction: column; align-items: center; }
    .arrow-left, .arrow-right { display: none; }
    .body-text.highlight { padding: 1rem; }
    .chart-zones { font-size: 0.65rem; }
}
