/* Approved Dark Layers career treatment, without lab navigation or theme state. */
body[data-layout="mature"] .career-story {
    --career-fg:var(--paper);
    --career-muted:color-mix(in srgb,var(--paper) 75%,transparent);
    --career-left:calc(var(--signal-spine-x) + 6rem);
    --career-right:clamp(1.25rem,5vw,5rem);
    --career-background:radial-gradient(circle at 77% 9%,color-mix(in srgb,var(--channel-2) 12%,transparent),transparent 30%),linear-gradient(120deg,transparent 0 58%,color-mix(in srgb,var(--paper) 2%,transparent) 58% 59%,transparent 59%),var(--ink);
    container-type:inline-size;
    padding:clamp(4rem,7vw,7rem) var(--career-right) clamp(4rem,7vw,7rem) var(--career-left);
    scroll-margin-top:4rem; color:var(--career-fg); background:var(--career-background);
}
.career-story > .career-intro, .career-chapters { max-width:80rem; margin-inline:auto; }
.career-story > .career-intro { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:1.8rem 2rem; margin-bottom:2rem; }
.career-story > .career-intro h2 { grid-column:1/-1; max-width:18ch; margin:0; font:400 clamp(3.5rem,5.9vw,6rem)/.95 var(--serif); letter-spacing:-.065em; }
.career-opening { grid-column:1/-1; max-width:36rem; margin:0; font-size:1rem; font-weight:500; line-height:1.5; }
.career-explore { display:inline-flex; align-items:center; justify-content:space-between; grid-column:2; justify-self:start; width:min(16rem,100%); margin:0; padding-bottom:.55rem; border-bottom:1px solid currentColor; gap:1rem; font:700 .75rem/1.3 var(--mono); letter-spacing:.08em; text-transform:uppercase; }
.career-explore span { font-size:1rem; line-height:.65; }
.career-story .career-intro > .history-actions { grid-column:2; justify-content:flex-start; flex-wrap:wrap; margin:0; visibility:visible; opacity:1; }
.career-story .history-actions a { border-color:var(--paper); color:var(--paper); background:transparent; }
.career-story .history-actions .history-action-primary { background:var(--paper); color:var(--ink); }
.career-story .history-actions a:hover { background:var(--channel-2); color:var(--paper); }
.career-chapter { position:relative; display:block; padding:.85rem 0; border-top:1px solid color-mix(in srgb,var(--paper) 24%,transparent); }
.career-chapter::before { content:""; position:absolute; z-index:-1; inset:0 calc(-1 * var(--career-right)) 0 calc(-1 * var(--career-left)); background:var(--career-background); pointer-events:none; }
.career-chapter-body { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.6fr); align-items:start; gap:1.5rem; min-width:0; }
.career-chapter h3 { max-width:20ch; margin:0; padding-top:.65rem; font:400 clamp(1.35rem,2.1vw,1.9rem)/1.08 var(--serif); letter-spacing:-.035em; text-wrap:balance; }
.career-story-highlight { color:var(--channel-3); }
.career-story-record { position:relative; min-width:0; margin:0; padding:.65rem .85rem; background:#182b45; border:1px solid #52657e; }
.career-role-records { padding:0; margin:0; list-style:none; }
.career-role-records li { display:flex; justify-content:space-between; align-items:baseline; gap:.25rem .6rem; padding:.35rem 0; border:0; }
.career-role-records li:first-child { padding-top:0; }
.career-role-records li:last-child { padding-bottom:0; }
.career-role-records li > div { min-width:0; }
.career-role-records strong { display:block; font-size:.82rem; font-weight:600; line-height:1.35; }
.career-role-records div > span { display:block; color:var(--career-muted); font-size:.78rem; line-height:1.4; }
.career-company-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:.4rem; }
.career-role-records li > p { flex-shrink:0; margin:0; color:var(--career-muted); font:.68rem/1.5 var(--mono); text-align:right; white-space:nowrap; }
.career-company-lineage { margin:0 0 .6rem; font-size:.82rem; font-weight:600; line-height:1.35; }
.career-company-lineage span { padding:0 .2rem; color:var(--career-muted); font-size:.78rem; font-weight:400; line-height:1.4; }
/* Keep the in-section document links; do not duplicate them in the fixed header. */
body[data-layout="mature"] .landing-career-actions { display:none; }
.landing-header[data-career-active="true"] .landing-role { visibility:hidden; }
@media (max-width:1250px) {
    body[data-layout="mature"] .career-story { --career-left:calc(var(--signal-spine-x) + 4rem); --career-right:2rem; }
    .career-story > .career-intro { grid-template-columns:minmax(0,1fr); gap:1.5rem; }
    .career-explore, .career-story .career-intro > .history-actions { grid-column:1; }
}
@media (min-width:48.01rem) and (max-width:70rem) {
    .career-chapter-body { grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr); gap:1rem; }
}
@media (max-width:48rem) {
    body[data-layout="mature"] .career-story { --career-left:calc(var(--signal-spine-x) + 2rem); --career-right:1rem; padding-top:3rem; padding-bottom:4rem; }
    body[data-history-active="true"] .landing-header-main > strong { opacity:0; }
    .landing-header[data-career-active="true"] .landing-header-main { visibility:hidden; }
    .career-story > .career-intro h2 { min-width:0; max-width:13ch; font-size:clamp(2rem,8.8vw,3.8rem); }
    .career-chapter { padding:1rem 0; }
    .career-chapter-body { display:block; }
    .career-chapter h3 { max-width:23ch; padding:0; margin-bottom:.8rem; font-size:1.5rem; }
    .career-role-records li { display:block; }
    .career-role-records li > p { margin-top:.25rem; text-align:left; font-size:.72rem; }
}

/* Light contact surface and the original fused signal, lit at the join. */
body[data-layout="mature"] .contact-footer {
    z-index:4; overflow:visible; background:var(--paper); color:var(--ink);
    padding-bottom:max(6rem,8vw);
    --contact-ink-1:#a52e27; --contact-ink-2:#154b9c; --contact-ink-3:#8c7200;
    --contact-ring-opacity:.38; --contact-particle-opacity:.85;
}
/* Keep page navigation at the page edge, separate from the centered contact content. */
body[data-layout="mature"] .contact-footer > nav {
    position:absolute; left:clamp(4rem,8vw,8rem); right:clamp(4rem,8vw,8rem);
    bottom:max(1rem,env(safe-area-inset-bottom)); min-height:44px;
    justify-content:flex-end; align-items:center; padding:0; border:0;
}
body[data-layout="mature"] .contact-footer > nav a { display:inline-flex; align-items:center; min-height:44px; }
body[data-layout="mature"] .contact-intro h2 { text-shadow:none; }
.contact-impact-canvas { mix-blend-mode:multiply; }
.contact-footer::before {
    content:""; position:absolute; z-index:3; pointer-events:none;
    left:var(--signal-spine-x); top:-4rem; width:clamp(8px,.9rem,16px); height:8rem; transform:translateX(-50%);
    background:linear-gradient(to bottom,rgba(255,210,130,0),#ffd58a 22%,#fff5d5 38%,#fff 50%,#fff5d5 62%,rgba(255,213,138,.6) 80%,rgba(255,210,130,0));
    filter:drop-shadow(0 0 .35rem rgba(255,219,157,.8));
}
.contact-footer::after {
    content:""; position:absolute; z-index:3; pointer-events:none;
    left:var(--signal-spine-x); top:0; width:11rem; height:11rem; transform:translate(-50%,-50%);
    background:radial-gradient(circle,rgba(255,221,163,.3) 0%,rgba(255,211,142,.23) 16%,rgba(255,213,148,.12) 34%,rgba(255,221,172,0) 68%);
    animation:career-weld-glow 3.2s ease-in-out infinite alternate;
}
@keyframes career-weld-glow { from { opacity:.8; } to { opacity:1; } }
body[data-layout="mature"] .contact-footer form { background:color-mix(in srgb,var(--paper) 94%,transparent); border-color:color-mix(in srgb,var(--ink) 35%,transparent); box-shadow:none; }
body[data-layout="mature"] .contact-footer label span,
body[data-layout="mature"] .contact-footer .form-note { color:color-mix(in srgb,var(--ink) 75%,var(--paper)); }
body[data-layout="mature"] .contact-footer input,
body[data-layout="mature"] .contact-footer textarea { background:color-mix(in srgb,white 35%,var(--paper)); color:var(--ink); border-color:color-mix(in srgb,var(--ink) 40%,transparent); }
body[data-layout="mature"] .contact-footer input:hover,
body[data-layout="mature"] .contact-footer textarea:hover { border-color:var(--ink); }
body[data-layout="mature"] .contact-footer input:focus,
body[data-layout="mature"] .contact-footer textarea:focus { background:var(--paper); border-color:var(--channel-2); box-shadow:0 0 0 2px color-mix(in srgb,var(--channel-2) 25%,transparent); }
body[data-layout="mature"] .contact-footer button { border-color:var(--ink); }
body[data-layout="mature"] .contact-footer button:hover { background:var(--ink); color:var(--paper); }
@media (min-width:48.01rem) and (max-width:60rem) {
    body[data-layout="mature"] .contact-footer { grid-template-columns:minmax(0,1fr); gap:3rem; }
    body[data-layout="mature"] .contact-intro h2 { max-width:14ch; font-size:clamp(4.5rem,9vw,6rem); }
}
@media (max-width:48rem) {
    body[data-layout="mature"] .contact-footer { padding-bottom:6rem; }
    body[data-layout="mature"] .contact-footer > nav { left:1rem; right:1rem; }
    .contact-footer::before { top:-3rem; width:clamp(8px,.55rem,16px); height:6rem; }
}
@media (prefers-reduced-motion:reduce) {
    .career-story *, .career-story *::before, .career-story *::after, .contact-footer::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
