/* ==========================================================================
   10 DISTINCT STRUCTURAL LAYOUT ENGINES
   Each layout structure arranges the portfolio sections differently while
   consuming the exact same PortfolioDataVersion contract.
   ========================================================================== */

/* Shared Structural Grids */
.metrics-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.metric-card {
    background: var(--surface-elevated);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.metric-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.metric-value {
    font-family: var(--font-heading);
    font-weight: var(--heading-weight);
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    line-height: 1.05;
    color: var(--accent-primary);
    letter-spacing: -0.03em;
}

.metric-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.metric-context {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Narrative Three-Tier Grid */
.narrative-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.75rem;
    align-items: start;
    margin-top: 2rem;
}

.narrative-lead {
    font-size: clamp(1.12rem, 1.8vw, 1.32rem);
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 1.35rem;
}

.narrative-body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.35rem;
}

.philosophy-box {
    background: var(--surface-elevated);
    border-left: 3px solid var(--accent-primary);
    padding: 1.35rem 1.5rem;
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
    margin-top: 1.25rem;
}

.philosophy-box-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 0.4rem;
    display: block;
}

.pull-quote-card {
    background: var(--bg-secondary);
    border: var(--border-width) solid var(--border-strong);
    border-radius: var(--card-radius);
    padding: 1.85rem;
}

.pull-quote-text {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2vw, 1.42rem);
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 1.35rem;
}

.focus-area-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.15rem;
}

.focus-area-item {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.focus-area-marker {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

/* Experience Chronicle Cards */
.experience-stack {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 2.25rem;
}

.experience-card {
    background: var(--surface-elevated);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--card-radius);
    padding: clamp(1.35rem, 3vw, 2.25rem);
    transition: border-color 0.2s ease;
}

.experience-card:hover {
    border-color: var(--border-strong);
}

.exp-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.15rem;
}

.exp-role {
    font-family: var(--font-heading);
    font-weight: var(--heading-weight);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    color: var(--text-primary);
}

.exp-org-line {
    font-size: 0.95rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-top: 0.2rem;
}

.exp-org-context {
    color: var(--text-muted);
    font-weight: 400;
}

.exp-meta-right {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.exp-summary {
    font-size: 0.98rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.exp-achievements {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.exp-achievement-li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.93rem;
    color: var(--text-primary);
    line-height: 1.55;
}

.exp-achievement-li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

/* Initiatives / Ventures / Thesis Grid */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.25rem;
}

.initiative-card {
    background: var(--surface-elevated);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--card-radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.15rem;
}

.init-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.init-title {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: var(--heading-weight);
    color: var(--text-primary);
    margin-top: 0.45rem;
}

.init-impact-banner {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
    background: var(--bg-secondary);
    border-left: 2px solid var(--accent-primary);
    color: var(--text-primary);
    margin: 0.75rem 0;
}

.init-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Domain Pillars & Education Dual Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.25rem;
}

.pillar-card {
    background: var(--bg-secondary);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--card-radius);
    padding: 1.65rem;
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: var(--heading-weight);
    color: var(--text-primary);
}

.pillar-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    margin-bottom: 1.1rem;
}

.pillar-items {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.35rem 0;
    border-bottom: 1px dashed var(--border-subtle);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.education-card {
    background: var(--surface-elevated);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--card-radius);
    padding: 1.65rem;
}

.edu-degree {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: var(--heading-weight);
    color: var(--text-primary);
}

.edu-institution {
    font-size: 0.95rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-top: 0.25rem;
}

.edu-meta {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
    margin: 0.45rem 0 0.85rem;
}

.edu-honors {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   LAYOUT VARIANT 1: MONOLITH_COMMAND (Apex Monolith)
   ========================================================================== */
.layout-MONOLITH_COMMAND .hero-monolith {
    padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
    border-bottom: 1px solid var(--border-strong);
}

.layout-MONOLITH_COMMAND .hero-headline {
    font-family: var(--font-heading);
    font-weight: var(--heading-weight);
    letter-spacing: var(--heading-tracking);
    font-size: clamp(2.25rem, 5.2vw, 4.4rem);
    line-height: 1.06;
    max-width: 18ch;
    margin-top: 1rem;
}

.layout-MONOLITH_COMMAND .hero-subheadline {
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    color: var(--text-secondary);
    max-width: 64ch;
    margin-top: 1.35rem;
}

/* ==========================================================================
   LAYOUT VARIANT 2: SPLIT_RAIL_STORY (Frontier Horizon)
   Sticky Left Identity Rail + Scrolling Chapter Stream on Right
   ========================================================================== */
.layout-SPLIT_RAIL_STORY .split-rail-shell {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 3.5rem;
    align-items: start;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.layout-SPLIT_RAIL_STORY .split-left-rail {
    position: sticky;
    top: 92px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--card-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.layout-SPLIT_RAIL_STORY .rail-headline {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    line-height: 1.2;
}

.layout-SPLIT_RAIL_STORY .rail-chapter-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
}

.layout-SPLIT_RAIL_STORY .rail-chapter-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    background: var(--bg-secondary);
}

.layout-SPLIT_RAIL_STORY .rail-chapter-link:hover {
    color: var(--accent-primary);
    border-left: 2px solid var(--accent-primary);
}

/* ==========================================================================
   LAYOUT VARIANT 3: SOVEREIGN_BROADSHEET (Titan Sovereign)
   Roman Numeral Newspaper/Broadsheet Columns
   ========================================================================== */
.layout-SOVEREIGN_BROADSHEET .broadsheet-masthead {
    text-align: center;
    padding: 3.5rem 0 2.5rem;
    border-bottom: 3px double var(--border-strong);
}

.layout-SOVEREIGN_BROADSHEET .broadsheet-dateline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.55rem 0;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.layout-SOVEREIGN_BROADSHEET .hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.6vw, 4.75rem);
    line-height: 1.04;
    max-width: 22ch;
    margin: 0 auto 1.25rem;
}

/* ==========================================================================
   LAYOUT VARIANT 4: SWISS_DAYLIGHT_GRID (Nordic Daylight)
   Asymmetric 12-Column Swiss International Typographic Grid
   ========================================================================== */
.layout-SWISS_DAYLIGHT_GRID .swiss-section-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border-strong);
}

.layout-SWISS_DAYLIGHT_GRID .swiss-index-col {
    border-top: 3px solid var(--accent-primary);
    padding-top: 0.85rem;
}

/* ==========================================================================
   LAYOUT VARIANT 5: LINEAR_CHANGELOG (Linear Precision)
   Compact Technical Interface + Vertical Changelog Spine
   ========================================================================== */
.layout-LINEAR_CHANGELOG .changelog-timeline {
    position: relative;
    border-left: 2px solid var(--border-strong);
    margin-left: 0.75rem;
    padding-left: 1.85rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.layout-LINEAR_CHANGELOG .changelog-node {
    position: relative;
}

.layout-LINEAR_CHANGELOG .changelog-node::before {
    content: "";
    position: absolute;
    left: -2.32rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid var(--bg-primary);
}

/* ==========================================================================
   LAYOUT VARIANT 7: BAUHAUS_CONSTRUCT (Atelier Construct)
   Bold Geometric Poster Frame & Architectural Borders
   ========================================================================== */
.layout-BAUHAUS_CONSTRUCT .bauhaus-poster-hero {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    border: 2px solid var(--border-strong);
    margin-top: 2rem;
    background: var(--surface-elevated);
}

.layout-BAUHAUS_CONSTRUCT .bauhaus-hero-main {
    padding: clamp(2rem, 5vw, 4rem);
    border-right: 2px solid var(--border-strong);
}

.layout-BAUHAUS_CONSTRUCT .bauhaus-hero-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--accent-primary);
    color: #FAF7F0;
    padding: 2.25rem;
}

.layout-BAUHAUS_CONSTRUCT .experience-card,
.layout-BAUHAUS_CONSTRUCT .metric-card,
.layout-BAUHAUS_CONSTRUCT .initiative-card {
    border: 2px solid var(--border-strong);
    box-shadow: 5px 5px 0 var(--border-strong);
}

/* ==========================================================================
   LAYOUT VARIANT 8: KINFOLK_MONOGRAPH (Kinfolk Monograph)
   Literary Editorial Essay + Drop-Cap Narrative
   ========================================================================== */
.layout-KINFOLK_MONOGRAPH .monograph-essay-dropcap::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 4.1rem;
    line-height: 0.82;
    padding-right: 0.65rem;
    padding-top: 0.2rem;
    color: var(--accent-primary);
    font-weight: 700;
}

/* ==========================================================================
   LAYOUT VARIANT 9: SYSTEMS_BLUEPRINT (Systems Blueprint)
   Engineering Spec Dossier & Telemetry Matrix
   ========================================================================== */
.layout-SYSTEMS_BLUEPRINT .blueprint-spec-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    border: 1px solid var(--border-strong);
    background: var(--bg-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-top: 1.5rem;
}

.layout-SYSTEMS_BLUEPRINT .spec-cell {
    padding: 0.75rem 1rem;
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.layout-SYSTEMS_BLUEPRINT .spec-cell span {
    display: block;
    color: var(--text-muted);
    font-size: 0.66rem;
}

/* ==========================================================================
   LAYOUT VARIANT 10: CAPITAL_PROSPECTUS (Capital Prospectus)
   Institutional Investment Memorandum & Ledger Tables
   ========================================================================== */
.layout-CAPITAL_PROSPECTUS .ledger-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-strong);
    background: var(--surface-elevated);
    margin-top: 1.75rem;
}

.layout-CAPITAL_PROSPECTUS .ledger-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.layout-CAPITAL_PROSPECTUS .ledger-table th {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.9rem 1.15rem;
    background: var(--bg-secondary);
    color: var(--accent-primary);
    border-bottom: 1px solid var(--border-strong);
}

.layout-CAPITAL_PROSPECTUS .ledger-table td {
    padding: 1.1rem 1.15rem;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
    font-size: 0.92rem;
}

/* Responsive Breakpoints across all 10 Layouts */
@media (max-width: 960px) {
    .narrative-grid,
    .layout-SPLIT_RAIL_STORY .split-rail-shell,
    .layout-SWISS_DAYLIGHT_GRID .swiss-section-row,
    .layout-BAUHAUS_CONSTRUCT .bauhaus-poster-hero {
        grid-template-columns: 1fr;
    }

    .layout-SPLIT_RAIL_STORY .split-left-rail {
        position: static;
    }

    .layout-BAUHAUS_CONSTRUCT .bauhaus-hero-main {
        border-right: none;
        border-bottom: 2px solid var(--border-strong);
    }

    .exp-meta-right {
        text-align: left;
    }
}
