/* About page — engineering dossier layout.
   Two columns: a sticky datasheet-style identity panel + a narrative column.
   All colour comes from the --rae-* token layer in rae-theme.css, which is
   already theme-scoped, so light mode follows automatically. Only translucent
   overlays and shadows need explicit per-theme handling. */

/* ===== Layout ===== */

.about-dossier {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 3.25rem;
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 0 4rem;
}

/* ===== Identity panel ===== */

.about-panel {
    position: sticky;
    top: 90px; /* clears the fixed-top public navbar */
    align-self: start;
    background: var(--rae-surface);
    border: 1px solid var(--rae-border);
    border-radius: 0.6rem;
    padding: 1.1rem;
}

[data-coreui-theme="dark"] .about-panel {
    background: rgba(22, 33, 62, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-coreui-theme="light"] .about-panel {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Square crop, not a circle — reads as a datasheet part photo rather than a
   social profile picture. */
.panel-portrait {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.4rem;
    border: 1px solid var(--rae-border);
    margin-bottom: 0.85rem;
}

.panel-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.panel-name {
    font-family: var(--rae-mono);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--rae-text);
    margin-bottom: 0.25rem;
}

.landing-hero .panel-role {
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--rae-text-muted);
    margin-bottom: 1rem;
}

/* ===== Panel key:value rows ===== */

.panel-rows {
    margin: 0;
}

.panel-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.65rem;
    font-family: var(--rae-mono);
    font-size: 0.66rem;
    line-height: 1.75;
    border-top: 1px dashed var(--rae-border);
    padding: 0.3rem 0;
}

.panel-row dt {
    color: var(--rae-text-faint);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex: none;
    font-weight: 500;
}

.panel-row dd {
    margin: 0;
    text-align: right;
    color: var(--rae-text);
}

/* Values too long to sit beside their label get their own line instead. Sharing
   the line forces a wrap mid-value — and because browsers break after a hyphen,
   "AI-native" splits into "AI-" / "native". Stacked, each value fits on one
   line, so no break happens at all. Values stay right-aligned, keeping the
   column edge consistent with the single-line rows above. */
.panel-row.is-stacked {
    display: block;
}

.panel-row.is-stacked dd {
    white-space: nowrap;
    margin-top: 0.1rem;
}

/* ===== Panel sub-blocks (contact, ledger) ===== */

.panel-block-label {
    font-family: var(--rae-mono);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rae-text-faint);
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
}

.panel-contact {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--rae-border);
}

.panel-email {
    display: block;
    font-family: var(--rae-mono);
    font-size: 0.66rem;
    color: var(--rae-mint);
    text-decoration: none;
    word-break: break-all;
    margin-bottom: 0.7rem;
    transition: color 0.2s ease;
}

.panel-email:hover,
.panel-email:focus-visible {
    color: var(--rae-coral);
    text-decoration: underline;
}

/* The shared social_links include centres itself by default; the panel wants
   it flush left and tighter. */
.panel-contact .social-links {
    gap: 0.6rem !important;
}

/* ===== Ledger ===== */

.panel-ledger {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--rae-mint);
}

[data-coreui-theme="dark"] .panel-ledger {
    border-top-color: rgba(78, 204, 163, 0.3);
}

[data-coreui-theme="light"] .panel-ledger {
    border-top-color: rgba(23, 138, 104, 0.3);
}

.ledger-label {
    color: var(--rae-mint);
}

.led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: none;
    margin-right: 0.45rem;
    background: var(--rae-mint);
    box-shadow: 0 0 7px var(--rae-mint);
    animation: ledPulse 2.4s ease-in-out infinite;
}

/* Runners have stopped — say so rather than showing a reassuring green dot. */
.led.stale {
    background: var(--rae-gold);
    box-shadow: 0 0 7px var(--rae-gold);
    animation: none;
}

.panel-ledger:has(.led.stale) {
    border-top-color: var(--rae-gold);
}

.panel-ledger:has(.led.stale) .ledger-label {
    color: var(--rae-gold);
}

@keyframes ledPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .led { animation: none; }
}

.ledger-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: var(--rae-mono);
    font-size: 0.66rem;
    line-height: 2;
    color: var(--rae-text-muted);
}

.ledger-row b {
    color: var(--rae-gold);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* ===== Narrative column ===== */

/* The opening two lines read as the page's masthead. Separated from the sections
   below by a hairline that fades out to the right — enough to mark the break
   without the weight of a full rule. */
.about-intro {
    position: relative;
    padding-bottom: 1.9rem;
    margin-bottom: 2.4rem;
}

.about-intro::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 46rem;
    height: 1px;
    background: linear-gradient(90deg, var(--rae-border), transparent);
}

.landing-hero .about-lede {
    font-size: 1.75rem;
    line-height: 1.45;
    font-weight: 300;
    color: var(--rae-text);
    margin: 0 0 0.6rem;
    max-width: 40ch;
}

.landing-hero .about-sub {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--rae-text-muted);
    margin: 0;
    max-width: 58ch;
}

.about-section {
    margin-bottom: 2.25rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

.landing-hero .about-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--rae-text-muted);
    margin: 0 0 0.75rem;
    max-width: 70ch;
}

.landing-hero .about-section p:last-child {
    margin-bottom: 0;
}

/* Mono uppercase heading with a fading rule trailing off to the right. */
.about-heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--rae-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rae-coral);
    margin: 0 0 0.8rem;
}

.about-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--rae-coral), transparent);
    opacity: 0.4;
}

.landing-hero .about-quote {
    border-left: 3px solid var(--rae-coral);
    padding: 0.2rem 0 0.2rem 1.1rem;
    margin: 0 0 1rem;
    max-width: 66ch;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 300;
    color: var(--rae-text);
}

/* ===== Principles ===== */

.principles {
    list-style: none;
    margin: 0;
    padding: 0;
}

.principles li {
    display: flex;
    gap: 0.95rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--rae-border);
}

.principle-n {
    font-family: var(--rae-mono);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.9;
    color: var(--rae-coral);
    flex: none;
    width: 1.5rem;
}

.principle-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--rae-text);
    margin-bottom: 0.2rem;
}

/* Beats landing.css's blanket `.landing-hero li` sizing. */
.landing-hero .principles .principle-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--rae-text-muted);
    margin: 0;
}

/* ===== Tool chips ===== */

.tool-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.landing-hero .tool-chips li {
    font-family: var(--rae-mono);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
    padding: 0.45rem 0.65rem;
    border-radius: 0.25rem;
    color: var(--rae-mint);
    border: 1px solid var(--rae-mint);
}

[data-coreui-theme="dark"] .tool-chips li {
    background: rgba(78, 204, 163, 0.09);
    border-color: rgba(78, 204, 163, 0.26);
}

[data-coreui-theme="light"] .tool-chips li {
    background: rgba(23, 138, 104, 0.07);
    border-color: rgba(23, 138, 104, 0.28);
}

/* ===== Responsive ===== */

@media (max-width: 820px) {
    .about-dossier {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
    }

    /* Sticky is meaningless once the panel is stacked above the text. */
    .about-panel {
        position: static;
        max-width: 340px;
    }

    .landing-hero .about-lede {
        font-size: 1.45rem;
    }

    .about-intro {
        padding-bottom: 1.5rem;
        margin-bottom: 2rem;
    }

    .landing-hero .about-quote {
        font-size: 1.1rem;
    }
}
