/* ========================================
   TALEGRAPHER.COM - Bauhaus Storytelling
   ======================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --terracotta-warm: #c4613a;
    --clay-light: #d4825a;
    --bauhaus-blue: #2a5a8a;
    --bauhaus-yellow: #d4b040;
    --cream-paper: #f4ede0;
    --ink-dark: #2a1e18;
    --aurora-violet: #6a3a8a;
    --aurora-deep: #4a2a8a;
    --aurora-teal: #2a8a6a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    color: var(--ink-dark);
    background-color: var(--cream-paper);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    line-height: 1.1;
}

.accent-font {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
}

/* --- HERO SECTION --- */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--terracotta-warm) 0%, var(--clay-light) 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* Bokeh circles */
#hero-bokeh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

#hero-bokeh::before,
#hero-bokeh::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

#hero-bokeh::before {
    width: 150px;
    height: 150px;
    top: 15%;
    right: 20%;
    background: radial-gradient(circle, rgba(244,237,224,0.12) 0%, transparent 70%);
}

#hero-bokeh::after {
    width: 100px;
    height: 100px;
    bottom: 25%;
    right: 35%;
    background: radial-gradient(circle, rgba(212,176,64,0.1) 0%, transparent 70%);
}

/* Aurora underlay for hero */
#hero-aurora {
    position: absolute;
    inset: 0;
    /* aurora: #4a2a8a to #2a8a6a */
    background: linear-gradient(160deg, rgba(74,42,138,0.08) 0%, rgba(42,138,106,0.06) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    animation: auroraShift 12s ease-in-out infinite alternate;
}

@keyframes auroraShift {
    0% {
        opacity: 0.6;
        background-position: 0% 0%;
    }
    100% {
        opacity: 1;
        background-position: 100% 100%;
    }
}

/* Geometric shapes */
#hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.bauhaus-shape {
    position: absolute;
    opacity: 0;
    transform: scale(0);
    transition: none;
}

.shape-circle {
    top: 8%;
    right: 10%;
}

.shape-triangle {
    bottom: 12%;
    right: 25%;
}

.shape-rect {
    top: 30%;
    right: 40%;
}

.shape-circle-sm {
    bottom: 30%;
    left: 55%;
}

.shape-rect-sm {
    top: 15%;
    left: 60%;
}

/* Hero content */
#hero-content {
    position: relative;
    z-index: 3;
    padding-left: clamp(40px, 8vw, 120px);
    max-width: 800px;
}

#hero-title {
    font-size: clamp(60px, 12vw, 160px);
    color: var(--cream-paper);
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(30px);
}

#hero-tagline {
    font-size: clamp(13px, 1.4vw, 17px);
    color: var(--cream-paper);
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 12px;
}

/* Additional bokeh circles via pseudo-elements on hero */
#hero::before,
#hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

#hero::before {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 30%;
    background: radial-gradient(circle, rgba(212,130,90,0.08) 0%, transparent 70%);
}

#hero::after {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    background: radial-gradient(circle, rgba(244,237,224,0.1) 0%, transparent 70%);
}

/* --- CONTENT SECTIONS --- */
.content-section {
    position: relative;
    padding: clamp(60px, 8vw, 120px) 0;
    overflow: hidden;
}

.content-section:nth-child(even) {
    background-color: var(--cream-paper);
}

.content-section:nth-child(odd):not(#hero) {
    background-color: #f0e8d8;
}

.content-section--dark {
    background-color: var(--ink-dark) !important;
    color: var(--cream-paper);
}

.aurora-underlay {
    position: absolute;
    inset: 0;
    /* aurora gradient: #4a2a8a -> #6a3a8a -> #2a8a6a */
    background: linear-gradient(160deg, rgba(106,58,138,0.05) 0%, rgba(42,138,106,0.04) 60%, transparent 100%);
    pointer-events: none;
    animation: auroraPulse 15s ease-in-out infinite alternate;
}

@keyframes auroraPulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

/* F-PATTERN layout */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
    position: relative;
    z-index: 2;
}

.f-pattern .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.category-marker {
    flex-shrink: 0;
}

.section-label {
    font-size: clamp(11px, 1.2vw, 13px);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clay-light);
}

.content-section--dark .section-label {
    color: var(--bauhaus-yellow);
}

.section-title {
    font-size: clamp(36px, 6vw, 72px);
    color: var(--ink-dark);
    margin-bottom: 32px;
    max-width: 700px;
}

.content-section--dark .section-title {
    color: var(--cream-paper);
}

.section-body {
    max-width: 680px;
}

.section-body p {
    margin-bottom: 20px;
    color: var(--ink-dark);
    opacity: 0.85;
}

/* --- STORY CARDS --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 12px;
}

.story-card {
    background: var(--cream-paper);
    padding: 32px 28px;
    border-left: 4px solid var(--terracotta-warm);
    transition: transform 200ms ease, box-shadow 200ms ease;
    cursor: default;
}

.story-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-shape {
    margin-bottom: 16px;
}

.card-title {
    font-size: clamp(22px, 2.5vw, 30px);
    color: var(--ink-dark);
    margin-bottom: 12px;
}

.card-body {
    color: var(--ink-dark);
    opacity: 0.8;
    margin-bottom: 16px;
}

.card-meta {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clay-light);
}

/* --- PROCESS STEPS --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 36px;
    margin-top: 12px;
}

.process-step {
    padding: 24px 0;
    border-top: 3px solid var(--bauhaus-blue);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.process-step:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.step-number {
    font-size: clamp(28px, 3vw, 40px);
    color: var(--bauhaus-yellow);
    margin-bottom: 8px;
}

.step-title {
    font-size: clamp(20px, 2.2vw, 28px);
    color: var(--ink-dark);
    margin-bottom: 8px;
}

.step-desc {
    color: var(--ink-dark);
    opacity: 0.8;
}

/* --- WORK GRID --- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 12px;
}

.work-item {
    transition: transform 200ms ease, box-shadow 200ms ease;
    cursor: default;
}

.work-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.work-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.work-shape {
    opacity: 0.9;
}

.work-title {
    font-size: clamp(22px, 2.5vw, 30px);
    color: var(--ink-dark);
    margin-top: 14px;
    margin-bottom: 4px;
}

.work-desc {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clay-light);
}

/* --- CONTACT SECTION --- */
.contact-body {
    max-width: 680px;
}

.contact-body p {
    opacity: 0.85;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bauhaus-yellow);
}

.contact-value {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--cream-paper);
}

/* Footer shapes */
#footer-shapes {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 200px;
    pointer-events: none;
}

.footer-circle {
    bottom: 20px;
    right: 40px;
}

.footer-triangle {
    bottom: 60px;
    right: 140px;
}

.footer-rect {
    bottom: 10px;
    right: 220px;
}

/* --- SCROLL REVEAL --- */
.content-section .section-inner {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    #hero-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .shape-circle {
        width: 120px;
        height: 120px;
        top: 5%;
        right: 5%;
    }

    .shape-triangle {
        width: 100px;
        height: 100px;
        bottom: 8%;
        right: 10%;
    }

    .shape-rect {
        width: 80px;
        height: 80px;
        top: 25%;
        right: 30%;
    }

    .shape-circle-sm,
    .shape-rect-sm {
        display: none;
    }

    .card-grid,
    .process-steps,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .contact-details {
        flex-direction: column;
        gap: 24px;
    }

    #footer-shapes {
        display: none;
    }
}

@media (max-width: 480px) {
    #hero-title {
        font-size: clamp(48px, 14vw, 80px);
    }

    .section-title {
        font-size: clamp(28px, 8vw, 48px);
    }
}
