/* Restored original noir palette; portrait deliberately remains unfiltered. */
[data-theme=dark]{--bg:#0d1012;--ink:#e8e5df;--muted:#a6abae;--line:#2b3033;--soft:#151a1d;--blue:#bdaa8f;--navy:#11171b}
[data-theme=dark] .button{background:#4a4237;border-color:#82735f;color:#f5f1eb}
[data-theme=dark] .button.secondary{background:transparent;color:var(--ink);border-color:var(--line)}
.portrait img,[data-theme=dark] .portrait img{filter:none!important;mix-blend-mode:normal!important;opacity:1!important}
[data-theme=dark] .portrait:before{background:#998872;height:2px}
[data-theme=dark] ::selection{background:#5c5146;color:#fff}
.research-overview{--scene-accent:#5b8fc0;--scene-text:#f1f4f7;--scene-muted:#b7c3ce;--scene-line:#284968;position:relative;background:radial-gradient(ellipse at 84% 10%,rgba(80,133,184,.20) 0%,rgba(0,53,107,.18) 24%,transparent 48%),linear-gradient(180deg,#06111d 0%,#081827 48%,#07131f 100%);color:var(--scene-text);border-block:1px solid #24425e;padding-block:52px}
.research-overview .eyebrow,.research-overview .research-number{color:var(--scene-accent)}
.research-overview .visual-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:44px;align-items:center;margin:0}
.research-copy{min-width:0;max-width:510px}
.research-overview .research-intro h2{color:var(--scene-text);font-size:clamp(2.2rem,3.6vw,3.2rem);max-width:480px;line-height:1.13;letter-spacing:-.025em;text-wrap:balance}
.research-lead{font-size:1rem;line-height:1.9;color:var(--scene-muted);max-width:405px;margin:24px 0 0}
.research-scene{margin:0;min-width:0;position:relative;isolation:isolate}
.scene-topline{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-height:38px}
.motion-toggle,.atlas-motion-toggle{color:#c7c3ba;font-size:.69rem;background:transparent;border:1px solid #3b4143;border-radius:3px;padding:5px 10px;min-height:32px;white-space:nowrap}
.motion-toggle:hover,.atlas-motion-toggle:hover{background:#ffffff09;border-color:#8b7e6b}
.motion-toggle:disabled,.atlas-motion-toggle:disabled{cursor:default;opacity:1;color:#a6adaf}
.scene-viewport{height:290px;position:relative;overflow:hidden}
.scene-viewport canvas,.scene-fallback{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.scene-viewport canvas{visibility:hidden}
.research-scene[data-ready=true] canvas{visibility:visible}
.research-scene[data-ready=true] .scene-fallback{display:none}
.research-scene figcaption{border-top:1px solid #30383d;padding-top:12px;display:flex;gap:8px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;line-height:1.5}
#scene-title{font-size:.72rem;color:#d4c7b4}
.research-overview .current-interest-grid{margin-top:32px;gap:20px;perspective:1200px}
.research-overview .current-interest{position:relative;display:flex;flex-direction:column;padding:24px;border:1px solid var(--scene-line);background:linear-gradient(145deg,rgba(20,19,17,.72),rgba(12,14,17,.58));border-radius:3px;transform:perspective(1200px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transition:transform .4s ease,border-color .4s ease,background .4s ease;transform-origin:50% 50%;min-width:0}
.research-overview .current-interest h3{font-size:1.2rem;line-height:1.45;color:#f0f4f7;min-height:3.48rem;margin:16px 0 15px;text-wrap:balance}
.research-overview .current-interest p{color:var(--scene-muted);font-size:.9rem;line-height:1.85;margin:0 0 16px}
.research-overview .current-interest[data-active=true]{border-color:#4778a6;background:linear-gradient(145deg,rgba(31,27,20,.82),rgba(12,19,26,.68));box-shadow:inset 0 1px 0 rgba(208,173,105,.05)}
.scene-select{align-self:flex-start;margin-top:auto;min-height:32px;padding:5px 0;border:0;background:none;color:#8eb4d8;font-size:.73rem;letter-spacing:.025em;display:inline-flex;align-items:center;gap:18px}
.scene-select:hover{text-decoration:underline;text-underline-offset:5px}
.research-overview .phd-research{margin-top:44px;border-color:var(--scene-line);padding-top:28px}
.research-overview .phd-heading-row{display:grid;grid-template-columns:280px minmax(0,1fr) auto;gap:24px;align-items:center}
.phd-identity{min-width:0}
.research-overview .phd-research .eyebrow{color:#8eb4d8}
.research-overview .phd-heading-row h3{color:#f0f4f7}
.research-overview .phd-subtitle,.research-overview .phd-summary,.research-overview .phd-theme-description{color:var(--scene-muted)}
.research-overview .phd-theme{border-color:var(--scene-line)}
.research-overview .phd-theme dt{color:#dbe5ed}
.research-overview .phd-projects a,.research-overview .dissertation-link{color:#9fc0de;border-color:#416b92}
.research-overview .phd-projects a:hover,.research-overview .dissertation-link:hover{color:#dcecf8}
/* Retain the connected cell-to-atlas sequence without the pale-blue panel. */
.atlas-journey{position:relative;margin:0;padding:0 0 14px;min-width:0;color:#abb5ba}
#atlas-model{display:block;width:100%;height:auto;margin:0 0 -13px}
#atlas-model [stroke]:not([stroke="none"]){stroke:#8c8778}
#atlas-model [fill]:not([fill="none"]):not([fill^="url("]){fill:#849690}
#atlas-model [fill="#edf5fc"]{fill:#172023}
#atlas-model [fill="#dcecf4"],#atlas-model [fill="#e1eef4"],#atlas-model [fill="#f6faf5"]{fill:#263331}
#atlas-model [fill="#ba9b62"],#atlas-model [fill="#b89b65"],#atlas-model [fill="#b49863"],#atlas-gold-cell [fill]{fill:#b69c73}
#atlas-cell-fill stop:first-child{stop-color:#aab8b0}
#atlas-cell-fill stop:nth-child(2){stop-color:#73877d}
#atlas-cell-fill stop:last-child{stop-color:#344740}
#atlas-nucleus-fill stop:first-child{stop-color:#b6a07b}
#atlas-nucleus-fill stop:last-child{stop-color:#78664a}
#atlas-volume-fill stop:first-child{stop-color:#546a60}
#atlas-volume-fill stop:nth-child(2){stop-color:#7a8d7d}
#atlas-volume-fill stop:last-child{stop-color:#485f58}
#atlas-model .scale-halo{fill:#bdaa8f;fill-opacity:.04;stroke:#bdaa8f;stroke-opacity:.3;stroke-width:.8;opacity:.3}
.atlas-labels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;font-size:.67rem;line-height:1.4;text-align:center;font-weight:500;color:#a9aea9}
.atlas-labels span[data-active=true]{color:#b7d1e8}
.atlas-motion-toggle{position:absolute;right:0;top:-5px;font-size:.6rem;min-height:24px;padding:3px 6px}
.research-overview[data-motion=off] .current-interest{transform:none;transition:none}
@media(max-width:1100px){.research-overview .phd-heading-row{grid-template-columns:260px minmax(0,1fr)}.phd-heading-row .dissertation-link{grid-column:2;justify-self:start;margin-top:-14px}.phd-heading-row .atlas-journey{grid-row:1/3}}
@media(max-width:1000px){.research-overview .visual-intro{gap:24px}.scene-viewport{height:255px}.research-overview .current-interest{padding:20px}.research-overview .current-interest h3{min-height:5.22rem}}
@media(max-width:760px){.research-overview{padding-block:36px}.research-overview .visual-intro{grid-template-columns:1fr;gap:24px}.research-copy{max-width:560px}.research-overview .research-intro h2{font-size:2.5rem;max-width:450px}.research-lead{margin-top:18px;max-width:490px}.research-scene{width:100%;max-width:530px;margin-inline:auto}.scene-viewport{height:250px}.research-overview .current-interest-grid{grid-template-columns:1fr;gap:14px;margin-top:28px}.research-overview .current-interest h3{min-height:0;max-width:500px}.research-overview .current-interest p{margin-bottom:12px}.research-overview .phd-research{margin-top:32px}.research-overview .phd-heading-row{grid-template-columns:minmax(0,1fr);gap:20px}.phd-heading-row .phd-identity{grid-column:1;grid-row:1}.phd-heading-row .atlas-journey{grid-column:1;grid-row:2;width:100%;max-width:360px}.phd-heading-row .dissertation-link{grid-column:1;grid-row:3;justify-self:start;margin-top:-8px}.research-overview .phd-heading-row h3{font-size:1.6rem}.atlas-labels{font-size:.72rem}}
@media(max-width:400px){.research-overview .research-intro h2{font-size:2.2rem}.scene-viewport{height:225px}.atlas-labels{font-size:.65rem}}
@media(pointer:coarse){.motion-toggle,.scene-select,.atlas-motion-toggle{min-height:44px}.scene-topline{min-height:44px}.atlas-motion-toggle{top:-12px;border:0}}
@media(prefers-reduced-motion:reduce){.research-overview .current-interest{transform:none!important;transition:none!important}}
@media print{.motion-toggle,.atlas-motion-toggle,.scene-select{display:none!important}.research-scene{display:none!important}.research-overview{background:white;color:black}.research-overview .visual-intro{display:block}.research-overview *{color:black!important;transform:none!important}}

/* Yale palette: deep Yale blue, slate blue and warm ivory. */
.research-overview:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 0 68%,rgba(91,143,192,.07) 100%)}
.research-overview .wrap{position:relative;z-index:1}
.research-overview .phd-research{border-top-color:#284968}
.research-overview .current-interest[data-active=true]{border-color:#5b8fc0;background:linear-gradient(145deg,rgba(12,37,59,.92),rgba(7,23,38,.82));box-shadow:inset 0 1px 0 rgba(151,190,224,.08)}
.research-overview .dissertation-link:hover,.research-overview .phd-projects a:hover{color:#e6f1fa;border-color:#5b8fc0}

/* Flat Yale research surfaces; multislice artwork keeps its own internal shading. */
.research-overview{background:#071827!important;background-image:none!important}
.research-overview:after{display:none!important}
.research-overview .current-interest{background:#081b2a!important;background-image:none!important}
.research-overview .current-interest[data-active=true]{background:#0b2438!important;background-image:none!important}

/* Match research to the same narrow Selected Work navy range. */
.research-overview{background:#071521!important}
.research-overview .current-interest{background:#06131f!important}
.research-overview .current-interest[data-active=true]{background:#091c2b!important}
