/* ============================================
   Scroll Story — Text-driven, Apple-style
   Big typography IS the animation
   ============================================ */

.scroll-story { background: var(--black); }

/* --- Scene: Fullscreen with bg image --- */
.story-scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

/* --- Background Image (subtle) --- */
.scene-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.scene-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 2s ease;
}

.story-scene.visible .scene-media img {
    opacity: 0.35;
    transform: scale(1);
}

/* Vignette overlay */
.scene-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(13,19,19,0.8) 100%);
    z-index: 2;
}

/* --- Text Content (centered, big) --- */
.scene-content {
    position: relative;
    z-index: 3;
    padding: 40px 24px;
    max-width: 900px;
}

/* Step label */
.scene-step {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Big headline — the star of the show */
.scene-content h2 {
    text-align: center;
    color: var(--white);
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

/* Each word/line animates independently */
.scene-content h2 .line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scene-content h2 .line:nth-child(1) { transition-delay: 0s; }
.scene-content h2 .line:nth-child(2) { transition-delay: 0.15s; }
.scene-content h2 .line:nth-child(3) { transition-delay: 0.3s; }

.story-scene.visible .scene-content h2 .line {
    opacity: 1;
    transform: translateY(0);
}

/* Subtext */
.scene-content p {
    color: rgba(255,255,255,0.55);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

/* Animate in */
.story-scene.visible .scene-step,
.story-scene.visible .scene-content p {
    opacity: 1;
    transform: translateY(0);
}

/* --- First scene: animate on page load --- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slowZoomIn {
    from { opacity: 0; transform: scale(1.12); }
    to { opacity: 0.35; transform: scale(1); }
}

.story-scene:first-child .scene-media img {
    animation: slowZoomIn 2s ease forwards;
}

.story-scene:first-child .scene-step {
    animation: fadeSlideUp 0.6s ease 0.3s forwards;
}

.story-scene:first-child .scene-content h2 .line:nth-child(1) {
    animation: fadeSlideUp 0.7s ease 0.6s forwards;
}

.story-scene:first-child .scene-content h2 .line:nth-child(2) {
    animation: fadeSlideUp 0.7s ease 0.85s forwards;
}

.story-scene:first-child .scene-content p {
    animation: fadeSlideUp 0.6s ease 1.1s forwards;
}

/* --- Gold accent line between scenes --- */
.story-scene + .story-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
    z-index: 5;
}

/* --- Special: Gold text emphasis --- */
.scene-content h2 .gold {
    color: var(--gold);
}

/* --- Use Cases Section --- */
.use-cases {
    padding: 100px 0;
    background: var(--warmgrey);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.case-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.case-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.case-card p { color: var(--text-light); font-size: 0.95rem; }

/* --- Materials Section --- */
.materials { padding: 100px 0; }

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.material-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(182,151,69,0.2);
    border-radius: 16px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease;
}

/* Glass shine sweep on hover */
.material-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.03) 45%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.03) 55%,
        transparent 60%
    );
    transition: left 0.7s ease;
    pointer-events: none;
}

.material-card:hover::after {
    left: 125%;
}

.material-card:hover {
    border-color: rgba(182,151,69,0.5);
}

.material-card h3 { color: var(--gold); font-size: 1.8rem; margin-bottom: 8px; }

.material-badge {
    display: inline-block;
    background: rgba(182,151,69,0.15);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.material-card ul { list-style: none; }

.material-card li {
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.material-card li::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); transform: translateY(-50%);
}

/* --- CTA Section --- */
.cta-section { padding: 120px 0; background: var(--warmgrey); }
.cta-section h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }

/* --- Mobile --- */
@media (max-width: 768px) {
    .story-scene { min-height: 85vh; }
    .scene-content h2 { font-size: clamp(2rem, 8vw, 3rem); }
    .scene-media img { opacity: 0.15; }
    .story-scene.visible .scene-media img { opacity: 0.25; }
    .use-cases, .cta-section { padding: 64px 0; }
}
