@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap");

.about-page {
    --ink: #0b3b3a;
    --ink-soft: #2e5f5a;
    --accent: #ff5b4a;
    --accent-dark: #d54a3b;
    --mint: #e7f4f1;
    --sky: #e9f1fb;
    --sand: #f7f1e7;
    --card: #ffffff;
    --border: #d7e5e1;
    --shadow: 0 18px 48px rgba(8, 44, 43, 0.14);
    --shadow-soft: 0 10px 24px rgba(8, 44, 43, 0.08);
    color: var(--ink);
    font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
    background: linear-gradient(140deg, #ffffff 0%, #f8f4ea 45%, #e7f4f1 100%);
    padding: 40px 0 90px;
    position: relative;
    overflow: hidden;
    min-width: 0;
    container-type: inline-size;
}

.about-page::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(255, 91, 74, 0.2), transparent 70%);
    pointer-events: none;
}

.about-page::after {
    content: "";
    position: absolute;
    bottom: -180px;
    left: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(14, 92, 88, 0.18), transparent 70%);
    pointer-events: none;
}

.about-shell {
    width: min(100%, 1200px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.about-shell > *,
.about-hero,
.hero-text,
.hero-actions,
.hero-metrics {
    min-width: 0;
}

.about-shell section {
    margin-top: 72px;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
    margin-top: 20px;
}

.hero-text {
    animation: rise 0.8s ease both;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--ink-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

.hero-title {
    font-family: "Fraunces", serif;
    font-size: clamp(2.3rem, 3vw, 3.5rem);
    line-height: 1.1;
    margin: 18px 0 16px;
}

.hero-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(255, 91, 74, 0.25);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: #ffffff;
    color: var(--ink);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: var(--shadow-soft);
    animation: rise 0.7s ease both;
}

.metric-card:nth-child(2) {
    animation-delay: 0.1s;
}

.metric-card:nth-child(3) {
    animation-delay: 0.2s;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: rise 0.8s ease both;
    animation-delay: 0.15s;
}

.portrait-shell {
    position: relative;
    display: grid;
    gap: 18px;
    justify-items: center;
    width: min(430px, 100%);
}

.portrait-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
    animation: float 4s ease-in-out infinite;
    text-align: center;
}

.portrait-card {
    width: 100%;
    background: linear-gradient(180deg, rgba(231, 244, 241, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-radius: 28px;
    border: 1px solid var(--border);
    padding: 18px;
    box-shadow: var(--shadow);
}

.portrait-frame {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, #f0eadf 0%, #e2d6c3 100%);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait-caption {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 16px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.caption-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.caption-subtitle {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.certificate-panel {
    width: 100%;
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(12, 74, 70, 0.12);
    box-shadow: var(--shadow-soft);
}

.certificate-head {
    display: grid;
    gap: 8px;
}

.certificate-head h2 {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: 1.4rem;
    line-height: 1.2;
}

.certificate-head p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.6;
    font-size: 0.96rem;
}

.certificate-grid {
    display: grid;
    gap: 12px;
}

.certificate-link {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(231, 244, 241, 0.72) 0%, rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid rgba(12, 74, 70, 0.1);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.certificate-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 91, 74, 0.24);
    box-shadow: var(--shadow-soft);
}

.certificate-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.certificate-title {
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.4;
}

.certificate-meta {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.about-story {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 36px;
    align-items: start;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--sky);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 16px;
}

.about-story h2,
.about-diff h2,
.course-map h2,
.about-cta h2 {
    font-family: "Fraunces", serif;
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    margin-bottom: 12px;
}

.about-story p,
.section-head p {
    color: var(--ink-soft);
    line-height: 1.7;
}

.story-note {
    margin-top: 16px;
    padding: 16px;
    border-left: 4px solid var(--accent);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.story-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.story-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--mint);
    display: grid;
    place-items: center;
    color: var(--ink);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.section-head {
    max-width: 650px;
    margin-bottom: 28px;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pillar-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.pillar-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--sand);
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: var(--ink);
}

.course-map {
    position: relative;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.module-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.module-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.module-meta {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.module-badge {
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sand);
    color: var(--ink);
    font-weight: 700;
}

.module-card ul {
    padding-left: 18px;
    margin: 0;
    color: var(--ink-soft);
}

.module-card li {
    margin-bottom: 8px;
}

.course-note {
    margin-top: 28px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(120deg, #0e5c58, #0b3b3a);
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.course-note h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.course-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.about-cta {
    background: #ffffff;
    border-radius: 28px;
    padding: 32px;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    box-shadow: var(--shadow);
}

.cta-content p {
    color: var(--ink-soft);
}

.cta-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cta-panel {
    display: grid;
    gap: 12px;
}

.cta-stat {
    background: var(--mint);
    border-radius: 18px;
    padding: 16px;
}

.cta-stat span {
    font-size: 1.4rem;
    font-weight: 700;
}

.cta-stat p {
    margin: 4px 0 0;
    color: var(--ink-soft);
}

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

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 1024px) {
    .about-hero,
    .about-story,
    .about-cta {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-note {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .story-grid,
    .pillar-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .about-shell {
        padding: 0 16px;
    }

    .about-cta {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-text,
    .hero-visual,
    .metric-card,
    .portrait-badge {
        animation: none;
    }

    .btn-primary,
    .btn-ghost,
    .pillar-card,
    .certificate-link {
        transition: none;
    }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .about-page {
        padding: 32px 0 72px;
    }

    .about-shell {
        width: min(100%, var(--content-shell-wide-max));
        padding: 0 max(16px, var(--page-gutter-x));
        gap: var(--section-gap);
    }

    .about-hero,
    .about-story,
    .about-cta {
        gap: var(--section-gap);
    }

    .about-hero,
    .about-cta {
        padding: calc(var(--card-padding) + 8px);
    }

    .course-note,
    .module-card,
    .pillar-card {
        padding: var(--card-padding);
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .about-page {
        padding: 24px 0 60px;
    }

    .about-shell {
        width: min(100%, var(--content-shell-max));
        padding: 0 max(16px, var(--page-gutter-x));
        gap: max(18px, calc(var(--section-gap) - 2px));
    }

    .about-hero,
    .about-story,
    .about-cta {
        gap: max(18px, calc(var(--section-gap) - 2px));
    }

    .about-hero,
    .about-cta,
    .course-note,
    .module-card,
    .pillar-card {
        padding: var(--card-padding);
    }
}
