/* =================================================================
   About Page — v3 Neo-Brutalism
   navy + orange + butter | Bricolage + Hanken + Fraunces + JetBrains
   共用 landing.css nav + mobile menu + footer v3
   本檔專注：hero、5 sections（origin/problem/how/indie/contact）、CTA
   ================================================================= */

body.about-page {
    font-family: var(--brand-v3-sans);
    color: var(--brand-v3-ink-soft);
    background: var(--brand-v3-cream);
}

/* em → Fraunces italic 強調 */
body.about-page em,
.about-page .italic {
    font-family: var(--brand-v3-serif);
    font-style: italic;
    font-weight: 500;
    color: var(--brand-v3-orange);
    font-variation-settings: "opsz" 144;
}

/* ========== Hero ========== */
.about-hero {
    position: relative;
    padding: 72px 24px 72px;
    text-align: center;
    overflow: hidden;
    background: var(--brand-v3-cream);
    border-bottom: 2.5px solid var(--brand-v3-navy);
}

/* Radial glow 背景裝飾（取代模糊 blob） */
.about-hero-bg-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.45;
    z-index: 0;
}

.about-hero-bg-blob.warm {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, var(--brand-v3-orange-soft) 0%, transparent 65%);
    top: -120px;
    right: -80px;
}

.about-hero-bg-blob.cool {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--brand-v3-butter) 0%, transparent 65%);
    bottom: -100px;
    left: -80px;
}

.about-hero-inner {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    z-index: 1;
}

.about-hero-tagline {
    font-family: var(--brand-v3-display);
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 800;
    color: var(--brand-v3-navy);
    margin: 0 0 22px;
    letter-spacing: -0.035em;
    line-height: 1.03;
    font-variation-settings: "opsz" 72, "wdth" 92;
}

.about-hero-subtitle {
    font-family: var(--brand-v3-sans);
    font-size: clamp(16px, 1.8vw, 19px);
    font-weight: 500;
    color: var(--brand-v3-ink-soft);
    margin: 0 auto;
    max-width: 620px;
    line-height: 1.6;
}

/* ========== Sections Common ========== */
.about-section {
    max-width: 780px;
    margin: 0 auto;
    padding: 72px 24px;
}

.about-section + .about-section {
    padding-top: 16px;
}

.about-section-title {
    font-family: var(--brand-v3-display);
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    color: var(--brand-v3-navy);
    margin: 0 0 28px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-variation-settings: "opsz" 72, "wdth" 92;
}

/* ========== Origin Story ========== */
.about-origin p {
    font-family: var(--brand-v3-sans);
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--brand-v3-ink-soft);
    margin: 0 0 18px;
}

.about-origin p:last-child {
    margin-bottom: 0;
}

.about-origin p strong {
    color: var(--brand-v3-navy);
    font-weight: 700;
}

/* ========== Problem Cards（4 張貼紙卡，交錯 rotate） ========== */
.about-problems {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 6px 2px 10px;
}

.about-problem-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    background: var(--brand-v3-paper);
    border: 2.5px solid var(--brand-v3-navy);
    border-radius: 18px;
    box-shadow: var(--brand-v3-shadow-md);
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
    will-change: transform;
}

.about-problem-card:nth-child(odd) {
    transform: rotate(-0.6deg);
}

.about-problem-card:nth-child(even) {
    transform: rotate(0.6deg);
}

.about-problem-card:hover {
    transform: rotate(0) translate(-2px, -2px);
    box-shadow: var(--brand-v3-shadow-lg);
}

.about-problem-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-v3-butter);
    border: 2px solid var(--brand-v3-navy);
    border-radius: 12px;
    color: var(--brand-v3-navy);
}

.about-problem-icon svg {
    width: 22px;
    height: 22px;
}

.about-problem-text {
    flex: 1;
    min-width: 0;
}

.about-problem-label {
    font-family: var(--brand-v3-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-v3-navy);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.about-problem-desc {
    font-family: var(--brand-v3-sans);
    font-size: 14.5px;
    color: var(--brand-v3-ink-soft);
    margin: 0;
    line-height: 1.6;
}

/* ========== How It Works ========== */
.about-how-desc {
    font-family: var(--brand-v3-sans);
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--brand-v3-ink-soft);
    margin: 0 0 24px;
}

.about-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    counter-reset: step;
}

.about-steps li {
    position: relative;
    padding: 14px 0 14px 56px;
    font-family: var(--brand-v3-sans);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--brand-v3-ink-soft);
    counter-increment: step;
}

.about-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-v3-butter);
    color: var(--brand-v3-navy);
    border: 2px solid var(--brand-v3-navy);
    border-radius: 50%;
    font-family: var(--brand-v3-display);
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--brand-v3-shadow-sm);
}

/* Tech note — navy callout 風格 */
.about-tech-note {
    position: relative;
    padding: 18px 22px 18px 28px;
    background: var(--brand-v3-cream-2);
    border: 2.5px solid var(--brand-v3-navy);
    border-radius: 14px;
    box-shadow: var(--brand-v3-shadow-sm);
    font-family: var(--brand-v3-sans);
    font-size: 14.5px;
    line-height: 1.72;
    color: var(--brand-v3-ink-soft);
}

.about-tech-note::before {
    content: "";
    position: absolute;
    left: -2.5px;
    top: -2.5px;
    bottom: -2.5px;
    width: 6px;
    background: var(--brand-v3-navy);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

/* ========== Indie Developer ========== */
.about-indie-content {
    font-family: var(--brand-v3-sans);
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--brand-v3-ink-soft);
    margin: 0 0 24px;
}

.about-indie-content strong {
    color: var(--brand-v3-navy);
    font-weight: 700;
}

.about-indie-points {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.about-indie-points li {
    position: relative;
    padding: 10px 0 10px 32px;
    font-family: var(--brand-v3-sans);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--brand-v3-ink-soft);
}

.about-indie-points li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--brand-v3-orange);
    border: 2px solid var(--brand-v3-navy);
    border-radius: 50%;
}

/* Indie closing — orange callout 風格 */
.about-indie-closing {
    position: relative;
    font-family: var(--brand-v3-sans);
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--brand-v3-navy);
    font-weight: 500;
    padding: 20px 24px 20px 30px;
    background: var(--brand-v3-orange-soft);
    border: 2.5px solid var(--brand-v3-navy);
    border-radius: 14px;
    box-shadow: var(--brand-v3-shadow-md);
    margin: 0;
}

.about-indie-closing::before {
    content: "";
    position: absolute;
    left: -2.5px;
    top: -2.5px;
    bottom: -2.5px;
    width: 6px;
    background: var(--brand-v3-orange-deep);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

/* ========== Contact Box ========== */
.about-contact-box {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px 30px;
    background: var(--brand-v3-paper);
    border: 2.5px solid var(--brand-v3-navy);
    border-radius: 20px;
    box-shadow: var(--brand-v3-shadow-md);
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}

.about-contact-box:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--brand-v3-shadow-lg);
}

.about-contact-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-v3-butter);
    border: 2.5px solid var(--brand-v3-navy);
    border-radius: 14px;
    color: var(--brand-v3-navy);
}

.about-contact-icon svg {
    width: 26px;
    height: 26px;
}

.about-contact-info {
    flex: 1;
    min-width: 0;
}

.about-contact-label {
    font-family: var(--brand-v3-mono);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand-v3-muted);
    margin: 0 0 6px;
}

.about-contact-email {
    font-family: var(--brand-v3-display);
    font-size: 19px;
    color: var(--brand-v3-orange);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin: 0 0 6px;
    border-bottom: 2.5px solid var(--brand-v3-orange-soft);
    transition: border-color 0.2s ease, color 0.2s ease;
    letter-spacing: -0.01em;
}

.about-contact-email:hover {
    color: var(--brand-v3-orange-deep);
    border-bottom-color: var(--brand-v3-orange);
}

.about-contact-response {
    font-family: var(--brand-v3-sans);
    font-size: 13.5px;
    color: var(--brand-v3-muted);
    margin: 0;
    line-height: 1.5;
}

/* ========== CTA（navy 深底，類 pricing footer CTA） ========== */
.about-cta {
    text-align: center;
    padding: 96px 24px;
    background: var(--brand-v3-navy);
    position: relative;
    overflow: hidden;
    border-top: 2.5px solid var(--brand-v3-navy);
}

.about-cta::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, var(--brand-v3-orange-deep) 0%, transparent 55%);
    opacity: 0.22;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.about-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: 0 auto;
}

.about-cta-title {
    font-family: var(--brand-v3-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--brand-v3-cream);
    margin: 0 0 14px;
    letter-spacing: -0.03em;
    line-height: 1.08;
    font-variation-settings: "opsz" 72, "wdth" 92;
}

.about-cta-subtitle {
    font-family: var(--brand-v3-sans);
    font-size: 16px;
    color: var(--brand-v3-cream);
    opacity: 0.82;
    margin: 0 0 36px;
    line-height: 1.6;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    background: var(--brand-v3-orange);
    color: var(--brand-v3-paper);
    border: 2.5px solid var(--brand-v3-paper);
    border-radius: 999px;
    font-family: var(--brand-v3-sans);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 5px 5px 0 var(--brand-v3-orange-deep);
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    letter-spacing: -0.005em;
}

.about-cta-btn:hover {
    background: var(--brand-v3-paper);
    color: var(--brand-v3-navy);
    border-color: var(--brand-v3-navy);
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--brand-v3-cream);
}

/* ========== Divider ========== */
.about-divider {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-divider hr {
    border: none;
    border-top: 2px dashed var(--brand-v3-navy);
    opacity: 0.28;
    margin: 0;
}

/* =================================================================
   RWD 斷點系統（對齊 v3 skill §17 三主斷點）
   ≤820: hero padding 縮、section padding 縮、標題 clamp 自縮
   ≤640: hero h1 再縮、contact-box 改直式、problem icon 上方
   ================================================================= */

@media (max-width: 820px) {
    .about-hero {
        padding: 56px 20px 56px;
    }

    .about-hero-tagline {
        font-size: clamp(30px, 7vw, 42px);
    }

    .about-hero-subtitle {
        font-size: 15.5px;
    }

    .about-section {
        padding: 56px 20px;
    }

    .about-section-title {
        font-size: clamp(22px, 5vw, 30px);
        margin-bottom: 22px;
    }

    .about-problem-card {
        padding: 20px 22px;
    }

    .about-contact-box {
        padding: 24px 22px;
    }

    .about-cta {
        padding: 72px 20px;
    }

    .about-hero-bg-blob.warm {
        width: 320px;
        height: 320px;
        opacity: 0.32;
    }

    .about-hero-bg-blob.cool {
        width: 280px;
        height: 280px;
        opacity: 0.32;
    }
}

@media (max-width: 640px) {
    .about-hero {
        padding: 44px 18px 48px;
    }

    .about-hero-tagline {
        font-size: clamp(26px, 8vw, 34px);
        letter-spacing: -0.025em;
    }

    .about-section {
        padding: 48px 18px;
    }

    .about-origin p,
    .about-how-desc,
    .about-indie-content {
        font-size: 15.5px;
    }

    .about-steps li {
        padding-left: 48px;
        font-size: 15px;
    }

    .about-steps li::before {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .about-problem-card {
        flex-direction: row;
        padding: 18px 20px;
        gap: 14px;
    }

    .about-problem-icon {
        width: 42px;
        height: 42px;
    }

    .about-problem-icon svg {
        width: 20px;
        height: 20px;
    }

    .about-problem-label {
        font-size: 15.5px;
    }

    .about-contact-box {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 24px 20px;
    }

    .about-cta {
        padding: 60px 18px;
    }

    .about-cta-btn {
        padding: 14px 30px;
        font-size: 15px;
    }
}

/* =================================================================
   滾動進場動畫（v3 skill §18）
   ================================================================= */
.about-scroll-animate {
    opacity: 0;
    translate: 0 30px;
    transition: opacity 0.7s cubic-bezier(.2,.8,.2,1),
                translate 0.7s cubic-bezier(.2,.8,.2,1);
}

.about-scroll-animate.in-view {
    opacity: 1;
    translate: 0 0;
}

/* Problem cards stagger（保留 rotate） */
@keyframes aboutCardReveal {
    from { opacity: 0; translate: 0 24px; scale: 0.96; }
    to   { opacity: 1; translate: 0 0; scale: 1; }
}

.about-problems.in-view > .about-problem-card {
    animation: aboutCardReveal 0.55s cubic-bezier(.2,.8,.2,1) both;
}

.about-problems.in-view > .about-problem-card:nth-child(1) { animation-delay: 0.05s; }
.about-problems.in-view > .about-problem-card:nth-child(2) { animation-delay: 0.14s; }
.about-problems.in-view > .about-problem-card:nth-child(3) { animation-delay: 0.23s; }
.about-problems.in-view > .about-problem-card:nth-child(4) { animation-delay: 0.32s; }

/* Steps stagger（純 translate 無 rotate） */
.about-steps.in-view > li {
    animation: aboutCardReveal 0.5s cubic-bezier(.2,.8,.2,1) both;
}

.about-steps.in-view > li:nth-child(1) { animation-delay: 0.05s; }
.about-steps.in-view > li:nth-child(2) { animation-delay: 0.13s; }
.about-steps.in-view > li:nth-child(3) { animation-delay: 0.21s; }
.about-steps.in-view > li:nth-child(4) { animation-delay: 0.29s; }
.about-steps.in-view > li:nth-child(5) { animation-delay: 0.37s; }

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    .about-scroll-animate {
        opacity: 1 !important;
        translate: 0 0 !important;
        transition: none !important;
    }

    .about-problems > .about-problem-card,
    .about-steps > li {
        animation: none !important;
    }

    .about-problem-card {
        transform: none !important;
    }
}
