/* ==========================================================================
   ABOUT PAGE (/about)
   Uses existing design tokens + theme duality. No new palette.
   ========================================================================== */

body {
    font-family: var(--font-body);
    background: var(--theme-bg);
    color: var(--theme-text);
}

.about-page {
    max-width: 960px;
    margin: 0 auto;
    padding: calc(var(--space-24) + var(--space-8)) var(--space-6) var(--space-16);
}

/* ---- Page hero ------------------------------------------------------------ */
.page-hero-kicker {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 var(--space-3);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
    margin: 0 0 var(--space-4);
    background: var(--theme-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero-lead {
    max-width: 62ch;
    font-size: var(--text-lg);
    line-height: 1.65;
    color: var(--theme-text-secondary);
    margin: 0;
}

/* ---- Roles grid -------------------------------------------------------------- */
.about-roles {
    margin: var(--space-12) 0;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-grid li {
    background: var(--theme-surface-bg);
    border: var(--theme-surface-border);
    border-radius: var(--rounded-lg);
    box-shadow: var(--theme-surface-shadow-sm);
    backdrop-filter: blur(var(--theme-surface-blur));
    -webkit-backdrop-filter: blur(var(--theme-surface-blur));
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.role-grid strong {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 400;
}

.role-grid span {
    font-size: var(--text-sm);
    line-height: 1.55;
    color: var(--theme-text-secondary);
}

/* ---- Story ---------------------------------------------------------------------- */
.about-story {
    margin-bottom: var(--space-16);
    max-width: 68ch;
}

.about-story h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin: 0 0 var(--space-5);
}

.about-story p {
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0 0 var(--space-4);
}

/* ---- Beyond the Code ---------------------------------------------------------------- */
.beyond-code,
.creative-lab {
    margin-bottom: var(--space-16);
}

.beyond-code h2,
.creative-lab h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin: 0 0 var(--space-2);
}

.case-section-no {
    font-family: var(--font-display);
}

.beyond-lede {
    font-size: var(--text-base);
    color: var(--theme-text-secondary);
    margin: 0 0 var(--space-6);
}

.beyond-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-4);
}

.beyond-card {
    background: var(--theme-surface-bg);
    border: var(--theme-surface-border);
    border-radius: var(--rounded-xl);
    box-shadow: var(--theme-surface-shadow-sm);
    backdrop-filter: blur(var(--theme-surface-blur));
    -webkit-backdrop-filter: blur(var(--theme-surface-blur));
    padding: var(--space-5);
}

.beyond-icon {
    width: 28px;
    height: 28px;
    margin-bottom: var(--space-3);
    color: var(--theme-icon);
}

.beyond-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-base);
    line-height: 1.3;
    margin: 0 0 var(--space-2);
}

.beyond-card p {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--theme-text-secondary);
    margin: 0;
}

/* ---- Creative Lab --------------------------------------------------------------------- */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}

.lab-slot {
    margin: 0;
}

.showcase-image-placeholder.lab-media {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--theme-surface-border);
    border-radius: var(--rounded-lg);
    background: var(--theme-gradient-glow);
}

.showcase-placeholder-label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
}

.lab-slot figcaption {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--theme-text-muted);
    text-align: center;
}

/* ---- Footer ------------------------------------------------------------------------------ */
.page-footer {
    margin-top: var(--space-16);
    text-align: center;
    font-size: var(--text-lg);
}

.page-footer .hand {
    margin: 0;
}
.page-footer a {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 600;
}
.page-footer a:hover {
    text-decoration: underline;
}

/* ---- Gate P: section headings, notes, fig captions -------------------------------------- */
.about-page .section-head {
    margin: 0 0 var(--space-4);
}

/* Handwritten aside under the roles grid */
.about-note {
    margin: var(--space-4) 0 0;
    text-align: right;
    font-size: 1.125rem;
}

/* Ledes that are now handwritten garnish stay readable + on-brand */
.beyond-code .beyond-lede.hand,
.creative-lab .beyond-lede.hand {
    font-size: 1.25rem;
    margin-bottom: var(--space-6);
}

/* Lab figure captions use the shared FIG grammar */
.lab-slot .fig-caption {
    margin-top: var(--space-2);
    text-align: center;
}

/* Doodle underline inside section-head sits on its own row */
.section-head .doodle {
    margin-top: 6px;
}

/* ---- Responsive ---------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .about-page {
        padding-inline: var(--space-4);
    }
}
