/* Editorial portfolio theme. Order: palette/type → SVG composition → motion.
   Component geometry remains in styles.css; these are the final shared tokens. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/dm-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-serif-display-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/dm-serif-display-italic.woff2") format("woff2"); }

html[data-theme] {
  --bg: #f7f6f2; --bg-raised: #fdfcf9; --bg-soft: #e7ede5;
  --ink: #192c29; --muted: #52635d; --faint: #56645a;
  --line: #d6ddd3; --line-strong: #a8b6aa;
  --accent: #156b56; --accent-strong: #105342; --accent-ink: #ffffff;
  --warning: #875b24; --danger: #9f3c39;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
  --display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1200px; --gutter: clamp(22px, 5vw, 80px);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #101c19; --bg-raised: #172622; --bg-soft: #21372e;
  --ink: #f0f1e8; --muted: #b8c5ba; --faint: #a4b4a8;
  --line: #34483d; --line-strong: #63816d;
  --accent: #96d4ad; --accent-strong: #b2e5c3; --accent-ink: #10291d;
  --warning: #e1bc7d; --danger: #f3aaa2;
  color-scheme: dark;
}
html { scroll-padding-top: 88px; }
html[data-theme] body { background: var(--bg); background-image: none; font-size: 17px; line-height: 1.65; letter-spacing: -.015em; }
h1, h2, h3, h4 { text-wrap: balance; }
main section[id] { scroll-margin-top: 20px; }
html[data-theme] .site-header { min-height: 82px; gap: 32px; background: color-mix(in srgb, var(--bg) 96%, transparent); border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(12px); }
.brand-glyph { width: 40px; height: 40px; border-radius: 50%; font: 25px var(--serif); }
.brand-copy strong { font-size: 14px; letter-spacing: .03em; }
.brand-copy small { font-family: var(--sans); font-size: 10px; letter-spacing: .07em; }
.main-nav { gap: clamp(16px, 1.8vw, 27px); }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; white-space: nowrap; }
.main-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
html[data-theme] :is(.text-button, .key-button, .menu-button) { min-height: 44px; border: 1px solid var(--line); border-radius: 5px; background: transparent; font-size: 10px; }
html[data-theme] .mobile-nav { max-height: calc(100svh - 105px); overflow-y: auto; background: var(--bg-raised); border-color: var(--line-strong); border-radius: 8px; box-shadow: 0 20px 50px #10291d18; }
.eyebrow, .campus-label { color: var(--accent); font: 600 11px/1.5 var(--sans); letter-spacing: .13em; text-transform: uppercase; }

/* A personal introduction, not a simulated financial terminal. */
html[data-theme] .hero { position: relative; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); min-height: 790px; gap: clamp(50px, 7vw, 100px); padding-block: 80px 96px; }
html[data-theme] .hero::before { content: none; }
.hero h1 { margin: 20px 0 24px; max-width: 720px; font-family: var(--serif); font-size: clamp(84px, 8.9vw, 132px); font-weight: 400; line-height: .98; letter-spacing: -.045em; text-wrap: initial; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-statement { margin: 0 0 20px; color: var(--ink); font-size: 23px; font-weight: 500; line-height: 1.35; letter-spacing: -.03em; }
.hero-deck { max-width: 600px; font-size: 17px; line-height: 1.75; }
.hero-actions { gap: 10px; margin-top: 30px; }
.button { min-height: 50px; gap: 26px; padding: 0 20px; border-radius: 5px; font-size: 13px; transition: background-color .18s, border-color .18s; }
html[data-theme] .button-primary { box-shadow: none; }
.button-primary:hover { color: var(--accent-ink); border-color: var(--accent-strong); }
.hero-secondary-links { display: flex; gap: 22px; margin-top: 22px; }
.hero-secondary-links a { color: var(--muted); font-size: 12px; text-underline-offset: 5px; }
.hero-secondary-links a:hover { color: var(--accent); }
.role-list { gap: 0; margin-top: 28px; }
html[data-theme] .role-list span { padding: 0; border: 0; background: transparent; font: 11px var(--sans); letter-spacing: .01em; text-transform: none; }
.role-list span + span::before { content: "·"; margin-inline: 11px; }
html[data-theme] .candidate-brief { position: relative; align-self: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); box-shadow: none; }
html[data-theme] .brief-head { min-height: 48px; padding-inline: 26px; background: transparent; color: var(--muted); font: 10px var(--sans); letter-spacing: .1em; }
.brief-head i { width: 6px; height: 6px; box-shadow: none; }
.brief-intro { position: relative; z-index: 1; padding: 30px 26px 24px; }
.brief-intro h2 { max-width: none; margin-top: 12px; font: 400 clamp(29px, 2.7vw, 36px)/1.14 var(--serif); letter-spacing: -.02em; }
.brief-rows { position: relative; z-index: 1; border-top: 0; }
.brief-rows div { padding: 13px 26px; border-color: color-mix(in srgb, var(--line-strong) 50%, transparent); }
dt { font: 500 10px/1.5 var(--sans); letter-spacing: .07em; }
dd { font-size: 14px; }
.brief-rows dd { margin-top: 2px; }
.brief-rows a { text-decoration: none; }
.brief-rows a:hover { text-decoration: underline; text-underline-offset: 4px; }
.brief-note { position: relative; z-index: 1; padding: 18px 26px 0; font-size: 12px; }
.brief-art { position: relative; height: 102px; overflow: hidden; }
.brief-art img { display: block; position: absolute; width: 100%; height: auto; bottom: -2px; mix-blend-mode: multiply; }
html[data-theme="dark"] .brief-art img { mix-blend-mode: screen; opacity: .3; }

/* One palette across every section. The legacy component sheet owns structure. */
html[data-theme] :is(.selected-work, .work, .capabilities, .evidence, .research, .about, .finance-toolkit, .role-pathways, .contact-section, .campus-section) {
  --accent: inherit; --accent-strong: inherit; --accent-ink: inherit;
  position: relative; isolation: isolate; padding-block: clamp(72px, 8vw, 110px);
  border-top: 1px solid var(--line); border-bottom: 0;
  background: transparent; background-image: none; box-shadow: none; clip-path: none;
}
.section-heading { grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); gap: clamp(32px, 6vw, 80px); margin-bottom: 44px; }
.section-heading h2, .contact-copy h2 { margin-top: 12px; font: 400 clamp(36px, 4.2vw, 57px)/1.08 var(--serif); letter-spacing: -.025em; }
.section-heading > p { max-width: 470px; font-size: 15px; line-height: 1.7; }
html[data-theme] :is(.selected-card, .pathway-grid article, .toolkit-grid article) { background: var(--bg-raised); border-color: var(--line); box-shadow: none; transform: none; }
.selected-grid { gap: 18px; border: 0; }
.selected-card { min-height: 408px; padding: 30px; border: 1px solid var(--line); border-radius: 8px; }
html[data-theme] .selected-card-primary { background: var(--bg-soft); }
.selected-card-head { flex-wrap: wrap; font: 500 10px/1.5 var(--sans); letter-spacing: .05em; }
.selected-card h3 { margin-top: 26px; font-size: 38px; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.selected-card > p { font-size: 15px; }
.selected-card dl { margin-block: 22px; background: transparent; border-top: 1px solid var(--line); }
html[data-theme] .selected-card dl div { padding: 12px 10px 6px 0; background: transparent; }
.selected-card .selected-action { min-height: 48px; padding-top: 12px; font: 600 11px var(--sans); letter-spacing: .02em; text-transform: none; }
.selected-card .selected-action span { transition: transform .18s; }
.selected-card:has(a:hover) .selected-action span { transform: translate(2px, -2px); }
html[data-theme] .evidence-strip { background: var(--bg-soft); border-color: var(--line); box-shadow: none; }
.evidence-strip div { padding-block: 23px; }
.evidence-strip strong { font: 400 36px/1 var(--serif); }
.evidence-strip span { font: 10px/1.5 var(--sans); letter-spacing: .03em; }
.pathway-grid { gap: 18px; border: 0; }
.pathway-grid article { border: 1px solid var(--line); padding: 28px; border-radius: 8px; }
.pathway-grid h3 { font-size: 26px; font-weight: 500; line-height: 1.15; letter-spacing: -.03em; }
.pathway-grid p { min-height: 76px; font-size: 15px; }
.pathway-grid a, .toolkit-grid a { display: inline-flex; align-items: center; min-height: 44px; font: 500 11px var(--sans); letter-spacing: 0; text-transform: none; }

/* Current roles and unfinished projects deliberately have different treatments. */
.campus-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.campus-role { min-width: 0; padding: 24px 0; border-top: 2px solid var(--accent); }
.campus-role h3 { margin: 18px 0 6px; font: 400 clamp(27px, 2.9vw, 37px)/1.13 var(--serif); letter-spacing: -.02em; }
.campus-role p { max-width: 480px; color: var(--muted); font-size: 15px; }
.campus-role .campus-institution { margin: 0 0 16px; color: var(--accent-strong); font-size: 12px; font-weight: 500; }
.campus-projects-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 42px 0 20px; }
.campus-projects-heading h3 { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -.025em; }
.campus-projects-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.campus-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.campus-project { display: flex; flex-direction: column; min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-raised); }
.campus-project-top { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.campus-project-top .campus-label { font-size: 9px; letter-spacing: .06em; }
.project-stage { padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 20px; color: var(--accent-strong); font-size: 10px; white-space: nowrap; }
.campus-project-symbol { display: grid; place-items: center; width: 45px; height: 45px; margin-top: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); color: var(--accent); font: 23px var(--serif); }
.campus-project h4 { margin: 22px 0 12px; font: 400 29px/1.1 var(--serif); letter-spacing: -.015em; text-wrap: initial; }
.campus-project > p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.campus-project dl { display: grid; gap: 14px; margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.campus-project dd { font-size: 12px; }
.campus-footnote { max-width: 850px; margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

html[data-theme] :is(.project-preview, .evidence-board, .dialog-shell, .command-shell) { background: var(--bg-raised); border-color: var(--line); box-shadow: none; }
.project-lab { grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); }
html[data-theme] .project-row { background: transparent; min-height: 94px; }
html[data-theme] .project-row:is(:hover, .is-active) { background: var(--bg-soft); }
.project-row small { font-size: 12px; }
.project-row .status { font: 9px var(--sans); }
.project-number { font: 10px var(--sans); }
html[data-theme] .preview-chrome, html[data-theme] .dialog-header { background: transparent; font: 10px var(--sans); }
#preview-refresh { min-height: 36px; font-size: 10px; }
.preview-meta { font: 10px/1.5 var(--sans); letter-spacing: .04em; }
.preview-body { padding: 30px; }
.preview-body h3 { margin-top: 30px; font: 400 clamp(33px, 4vw, 50px)/1.08 var(--serif); letter-spacing: -.02em; }
.preview-body > p { font-size: 15px; }
.architecture { font: 9px var(--sans); }
html[data-theme] .architecture span { border-color: var(--line); background: var(--bg); }
.preview-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-theme] .preview-facts div { background: var(--bg-raised); }
.preview-footer { font: 10px/1.6 var(--sans); letter-spacing: 0; text-transform: none; }
.preview-footer > span:last-child { display: none; }
.toolkit-grid h3 { font: 400 35px/1.15 var(--serif); letter-spacing: -.02em; }
.toolkit-grid ul { font-size: 15px; }
.capability-map article { grid-template-columns: 35px minmax(260px, 1fr) minmax(220px, .65fr); }
.capability-map h3 { font-size: 21px; font-weight: 500; }
.capability-map p { font-size: 15px; }
html[data-theme] .capability-map li { background: transparent; border-color: var(--line); font: 10px var(--sans); text-transform: none; }
.capability-map .credential-links a { font: 11px/1.7 var(--sans); letter-spacing: 0; text-transform: none; }
.evidence-board { grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); border-radius: 8px; }
.evidence-summary h3 { font: 400 35px/1.1 var(--serif); letter-spacing: -.02em; }
.evidence-summary > p { font-size: 15px; }
.evidence-list li { gap: 12px; grid-template-columns: 25px 1fr; }
.evidence-list strong { font-size: 15px; }
.evidence-list p { font-size: 13px; }
.evidence-list b { grid-column: 2; font: 10px var(--sans); }
.research-row { gap: 22px; grid-template-columns: 65px minmax(0, 1fr) auto; }
.research-row.is-learning, .research-row.is-stealth { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 3%, transparent); }
.research-row.is-learning .note-index, .research-row.is-learning .note-open span, .research-row.is-stealth .note-index { color: var(--accent-strong); }
.note-main h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; letter-spacing: -.01em; }
.note-main > p { font-size: 14px; }
.note-index, .note-meta, .note-open { font-family: var(--sans); font-size: 10px; }
.note-meta { letter-spacing: .03em; gap: 8px; }
.note-meta span + span::before { margin-right: 8px; }
.note-open { min-width: 115px; letter-spacing: .02em; }
.archive-attribution { border-radius: 5px; }
.archive-attribution p { font-size: 13px; }
.latest-update { grid-template-columns: 85px minmax(0, 1fr) auto; border-radius: 8px; }
.latest-update-copy h3 { font-size: 28px; font-weight: 400; }
.latest-update-copy p { font-size: 14px; }
.latest-update-index, .latest-update-copy > span, .archive-cta p { font: 10px/1.6 var(--sans); letter-spacing: .03em; }
.filter-button { font: 10px var(--sans); }
.archive-controls label { font: 11px var(--sans); }
html[data-theme] .archive-controls :is(input, select) { background: var(--bg-raised); border-color: var(--line-strong); border-radius: 5px; color-scheme: inherit; }
.archive-hero { padding-block: 90px 75px; }
.archive-hero h1, .case-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6.4vw, 88px); letter-spacing: -.025em; line-height: 1.05; }
.archive-hero > p:not(.eyebrow) { font-size: 18px; }
.case-shell > .case-hero { padding-top: 80px; }
.case-hero { padding-bottom: 55px; }
.case-hero .case-deck { font: 21px/1.6 var(--sans); }
.case-body h2 { font-weight: 400; }
.case-body h3 { font-weight: 400; }
.case-body p, .case-body li { font-size: 17px; }
.case-toc strong, .case-toc a { font-family: var(--sans); font-size: 10px; }
html[data-theme] :is(.case-meta div, .case-table th, .case-table td) { background: var(--bg-raised); }
html[data-theme] .case-table-wrap, html[data-theme] .case-figure, html[data-theme] .evidence-warning { box-shadow: none; }
.case-figure figcaption { background: var(--bg-raised); font: 11px/1.6 var(--sans); }
.contact-copy > p:last-child { font-size: 16px; }
.contact-copy h2 { max-width: 780px; }
.site-footer { min-height: 180px; gap: 30px; padding-block: 40px; }
html[data-theme] .site-footer { background: transparent; }
.site-footer p { font-size: 13px; }
.footer-meta { color: var(--muted); font: 10px/1.8 var(--sans); letter-spacing: .03em; }
.back-top { font: 11px var(--sans); }
#dialog-content .dialog-meta, #dialog-content .report-link, #dialog-content .boundary { font: 11px/1.7 var(--sans); }
#dialog-content .note-visual-frame figcaption { background: var(--bg-raised); font: 11px/1.6 var(--sans); }
#dialog-content h2, #dialog-content h3 { font-weight: 400; letter-spacing: -.02em; }
.command-shell { border-radius: 8px; }
.command-shell header, .command-shell > p { font: 11px var(--sans); }
.command-list button { border-radius: 4px; font-size: 14px; }
.error-shell h1 { font: 400 clamp(50px, 8vw, 100px)/1.05 var(--serif); letter-spacing: -.025em; }

@media (max-width: 1160px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .menu-button { display: inline-block; }
}
@media (max-width: 1040px) {
  html[data-theme] .hero { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 35px; min-height: 720px; padding-block: 65px 80px; }
  .hero h1 { font-size: clamp(76px, 10vw, 110px); }
  .hero-statement { font-size: 21px; }
  .hero-deck { font-size: 16px; }
  .section-heading { grid-template-columns: minmax(0, 1fr) minmax(240px, .75fr); gap: 30px; }
  .campus-projects { gap: 12px; }
  .campus-project { padding: 20px; }
  .campus-project h4 { font-size: 26px; }
  .project-lab { grid-template-columns: 1fr; }
  .evidence-board { grid-template-columns: 1fr; }
  .pathway-grid { grid-template-columns: 1fr; }
  .pathway-grid p { min-height: 0; }
}
@media (max-width: 760px) {
  html[data-theme] .site-header { min-height: 72px; gap: 12px; }
  .brand-copy { display: flex; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { font-size: 9px; }
  .brand-glyph { width: 34px; height: 34px; font-size: 22px; }
  .key-button { display: none; }
  html[data-theme] .text-button { display: inline-block; font-size: 9px; padding-inline: 10px; }
  html[data-theme] .hero { grid-template-columns: minmax(0, 1fr); gap: 42px; min-height: auto; padding-block: 54px 60px; }
  .hero h1 { font-size: clamp(72px, 15vw, 106px); margin-block: 22px; }
  .hero-statement { font-size: 21px; }
  .hero-deck { max-width: 580px; font-size: 16px; }
  .hero-actions { flex-direction: row; }
  .hero-actions .button { width: auto; flex: 1 1 150px; gap: 16px; }
  .hero-secondary-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .role-list { margin-top: 16px; }
  .role-list span { line-height: 2; }
  .candidate-brief { display: block; max-width: none; }
  .brief-intro { padding-block: 24px; }
  .brief-intro h2 { max-width: 430px; font-size: 35px; }
  .brief-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-rows div { padding: 12px 20px; }
  .brief-art { height: 80px; }
  .brief-art img { bottom: -25px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .section-heading h2, .contact-copy h2 { font-size: 38px; }
  .section-heading > p { max-width: 600px; }
  .campus-roles { grid-template-columns: 1fr; gap: 10px; }
  .campus-projects { grid-template-columns: 1fr; gap: 16px; }
  .campus-projects-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .campus-project { padding: 25px; }
  .campus-project h4 { font-size: 31px; max-width: 440px; }
  .campus-project-symbol { margin-top: 18px; }
  .campus-project dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selected-grid { grid-template-columns: 1fr; }
  .selected-card { min-height: 0; padding: 25px; }
  .selected-card-head { flex-direction: row; }
  .selected-card h3 { font-size: 34px; }
  .selected-card .selected-action { margin-top: 4px; }
  .capability-map article { grid-template-columns: 25px minmax(0, 1fr); gap: 16px; }
  .capability-map article ul { grid-column: 2; justify-content: flex-start; }
  .latest-update { grid-template-columns: 1fr; gap: 14px; }
  .latest-update .button { width: 100%; }
  .research-row { grid-template-columns: 1fr; }
  .note-open { width: 100%; }
  .site-footer { grid-template-columns: 1fr; gap: 25px; }
  .case-hero .case-deck { font-size: 18px; }
  .case-shell > .case-hero { padding-top: 60px; }
  .archive-hero { padding-block: 65px; }
}
@media (max-width: 380px) {
  .brand-copy small { display: none; }
  .hero h1 { font-size: 66px; }
  .brief-rows { grid-template-columns: 1fr; }
  .campus-project dl { grid-template-columns: 1fr; }
}

/* Motion last: a one-time arrival, not a gate that hides readable content. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-visible { animation: editorial-arrival .5s cubic-bezier(.22, 1, .36, 1) both; }
  .hero .reveal:nth-child(2) { animation-delay: .08s; }
}
@keyframes editorial-arrival { from { opacity: .55; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { animation: none !important; opacity: 1; transform: none; }
}
@media print {
  html[data-theme] { --bg: #fff; --bg-raised: #fff; --bg-soft: #fff; --ink: #000; --muted: #333; --accent: #000; --accent-strong: #000; --line: #bbb; --line-strong: #888; }
  html[data-theme] body { background: #fff; font-size: 11pt; }
  .brief-art, .hero-secondary-links { display: none; }
  .reveal, .reveal.is-visible { animation: none; opacity: 1; transform: none; }
  .case-shell > .case-hero { padding-top: 0; }
  .case-hero h1 { font-size: 38pt; }
  .campus-project, .campus-role { break-inside: avoid; }
}
