/* storiographer.com — Mid-Century Modern Narrative Mapping */
/* Fonts: Cormorant 600/700, Work Sans 400/500, Space Grotesk 500 */

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Base === */
body {
    background: #FAF6F0;
    color: #7A6555;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
}

/* === Typography === */
.section-heading {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: #5C3D2E;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: 0.01em;
}

/* === Shared Components === */
.rounded-container {
    background: #F0E8DA;
    border-radius: 24px;
    padding: 2rem;
}

.cta-btn {
    display: inline-block;
    background: #C4714E;
    color: #FFFFFF;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.7rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
    background: #5C3D2E;
    transform: translateY(-1px);
}

/* === SVG Arc Text === */
.arc-text {
    font-size: 11px;
    fill: #7A6555;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

/* === Hero === */
.hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-left {
    flex: 1;
    min-width: 240px;
}

.hero-title {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    color: #5C3D2E;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: #C4714E;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero-desc {
    font-size: 0.95rem;
    color: #7A6555;
    margin-bottom: 1.8rem;
    max-width: 340px;
}

.hero-right {
    flex: 1;
    min-width: 280px;
}

.hero-arc-container {
    position: relative;
    overflow: hidden;
}

.story-arc {
    display: block;
    width: 100%;
    height: auto;
}

.arc-dot {
    transition: r 0.3s ease;
}

.hero-arc-container:hover .arc-dot {
    r: 7;
}

/* === Feature Trio === */
.features {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.feature-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1;
    min-width: 200px;
    background: #F0E8DA;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(92, 61, 46, 0.08);
}

/* Mid-Century Geometric Icons */
.feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1rem;
}

.arc-icon {
    width: 36px;
    height: 18px;
    border: 2.5px solid #C4714E;
    border-bottom: none;
    border-radius: 18px 18px 0 0;
}

.circle-cross-icon {
    width: 36px;
    height: 36px;
    border: 2.5px solid #C4714E;
    border-radius: 50%;
    position: relative;
}

.circle-cross-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2.5px;
    background: #C4714E;
    transform: translate(-50%, -50%);
}

.circle-cross-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5px;
    height: 18px;
    background: #C4714E;
    transform: translate(-50%, -50%);
}

.bars-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    height: 36px;
}

.bars-icon::before,
.bars-icon::after {
    content: '';
    display: block;
    height: 2.5px;
    background: #C4714E;
    border-radius: 1px;
}

.bars-icon::before {
    width: 36px;
}

.bars-icon::after {
    width: 26px;
}

.feature-name {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #5C3D2E;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: #7A6555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.feature-tag {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #3D7C5F;
    background: rgba(61, 124, 95, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* === Story Arc Demo === */
.arc-demo {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.arc-panel {
    text-align: center;
}

.arc-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.arc-control-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #7A6555;
    background: transparent;
    border: 1px solid #D4B896;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.arc-control-btn:hover {
    color: #5C3D2E;
    border-color: #C4714E;
}

.arc-control-btn.active {
    color: #FFFFFF;
    background: #C4714E;
    border-color: #C4714E;
}

.demo-arc {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
}

.demo-arc-path {
    transition: d 0.6s ease;
}

.demo-dot {
    transition: cx 0.6s ease, cy 0.6s ease;
}

.demo-label {
    transition: opacity 0.4s ease;
    font-size: 12px;
}

.arc-desc {
    font-size: 0.9rem;
    color: #7A6555;
    margin-top: 1.25rem;
    line-height: 1.6;
}

/* === Testimonials === */
.testimonials {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.testimonial-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.testimonial {
    flex: 1;
    min-width: 260px;
    background: #F0E8DA;
    border: 1px dotted #D4B896;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-2px);
}

.quote-mark {
    font-family: 'Cormorant', serif;
    font-size: 3rem;
    color: #C4714E;
    opacity: 0.15;
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: 4px;
}

.testimonial-quote {
    font-family: 'Cormorant', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1rem;
    color: #7A6555;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.testimonial-name {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #5C3D2E;
    display: block;
    margin-bottom: 0.15rem;
}

.testimonial-book {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #7A6555;
}

/* === Stats Bar === */
.stats-bar {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #C4714E;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #7A6555;
}

/* === Footer === */
.footer {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #D4B896;
}

.footer-accent {
    width: 40px;
    height: 4px;
    background: #C4714E;
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

.footer-tagline {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #5C3D2E;
    margin-bottom: 0.75rem;
}

.footer-link {
    display: inline-block;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #FFFFFF;
    background: #3D7C5F;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    background: #2d5c47;
    transform: translateY(-1px);
}

.footer-note {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #D4B896;
}

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered children inside feature-row */
.feature-row .feature-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.fade-in.visible .feature-card:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

.fade-in.visible .feature-card:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.fade-in.visible .feature-card:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

/* Arc path draw-in animation */
@keyframes drawArc {
    from {
        stroke-dashoffset: 800;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.arc-path {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
}

.fade-in.visible .arc-path {
    animation: drawArc 1.5s ease-out forwards;
    animation-delay: 0.3s;
}

/* Arc dot pop-in */
@keyframes dotPop {
    0% { r: 0; opacity: 0; }
    60% { r: 7; opacity: 1; }
    100% { r: 5; opacity: 1; }
}

.arc-dot {
    r: 0;
    opacity: 0;
}

.fade-in.visible .arc-dot:nth-child(2) {
    animation: dotPop 0.4s ease-out forwards;
    animation-delay: 0.8s;
}

.fade-in.visible .arc-dot:nth-child(3) {
    animation: dotPop 0.4s ease-out forwards;
    animation-delay: 1.0s;
}

.fade-in.visible .arc-dot:nth-child(4) {
    animation: dotPop 0.4s ease-out forwards;
    animation-delay: 1.2s;
}

.fade-in.visible .arc-dot:nth-child(5) {
    animation: dotPop 0.4s ease-out forwards;
    animation-delay: 1.4s;
}

.fade-in.visible .arc-dot:nth-child(6) {
    animation: dotPop 0.4s ease-out forwards;
    animation-delay: 1.6s;
}

/* Stat number count-up pulse */
@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stat-number.counted {
    animation: countPulse 0.3s ease-out;
}

/* === Responsive === */
@media (max-width: 640px) {
    .hero {
        flex-direction: column;
        padding: 3rem 1.5rem 2.5rem;
        gap: 2rem;
    }

    .hero-left {
        text-align: center;
    }

    .hero-desc {
        max-width: 100%;
    }

    .feature-row {
        flex-direction: column;
    }

    .testimonial-row {
        flex-direction: column;
    }

    .stats-bar {
        gap: 1.5rem;
    }

    .arc-controls {
        flex-wrap: wrap;
    }
}
