.portfolio-page {
  background: #08131e;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #edf3f8;
  line-height: 1.6;
  color-scheme: dark;
}
.portfolio-page *, .portfolio-page *::before, .portfolio-page *::after { box-sizing: border-box; }
.portfolio-page .video-bg { opacity: 0.8; }
.portfolio-page .video-overlay {
  background: linear-gradient(90deg, rgba(6, 16, 26, 0.88), rgba(6, 16, 26, 0.5)),
    linear-gradient(0deg, rgba(6, 16, 26, 0.65), transparent 65%);
}
.portfolio-page .page-width { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.portfolio-page a { color: inherit; }
.portfolio-page a:focus-visible, .portfolio-page button:focus-visible {
  outline: 2px solid #83e6eb;
  outline-offset: 5px;
}
.portfolio-page .skip-link { position: fixed; top: -100px; left: 16px; padding: 12px; background: #142c3c; z-index: 10; }
.portfolio-page .skip-link:focus { top: 12px; }
.portfolio-nav { display: flex; justify-content: space-between; align-items: center; padding-block: 26px; border-bottom: 1px solid #a1c9e027; gap: 24px; }
.wordmark { font-size: 1.6rem; font-weight: 750; text-decoration: none; letter-spacing: -0.08em; }
.wordmark span, .portfolio-hero h1 span, .lab-intro h2 span { color: #77dae1; }
.portfolio-nav nav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.portfolio-nav nav a { font-size: 0.85rem; color: #c7d5e0; text-decoration: none; }
.portfolio-nav nav a:hover, .portfolio-footer a:hover { color: #83e6eb; }
.portfolio-nav .nav-resume { border: 1px solid #708b9d; padding: 7px 15px; border-radius: 6px; }
.portfolio-hero { display: grid; grid-template-columns: 1.5fr 0.8fr; gap: 80px; align-items: center; padding: 90px 0 64px; min-height: 640px; }
.portfolio-page .eyebrow { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #a6c9d5; margin: 0 0 20px; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #77dae1; border-radius: 50%; margin-right: 9px; }
.portfolio-hero h1 { font-size: clamp(3.6rem, 7vw, 6.4rem); letter-spacing: -0.065em; line-height: 1.08; margin: 0 0 24px; font-weight: 700; }
.hero-statement { font-size: clamp(1.5rem, 2.8vw, 2.15rem); letter-spacing: -0.025em; line-height: 1.35; margin: 0 0 24px; }
.hero-statement span { color: #9ddce1; }
.hero-intro { max-width: 550px; color: #c0cfdc; font-size: 1rem; margin-bottom: 30px; }
.hero-actions, .focus-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.portfolio-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 12px 20px; border: 1px solid #678090; border-radius: 7px; text-decoration: none; font-size: 0.85rem; font-weight: 600; background: #101f2ccc; transition: background 150ms, border-color 150ms; }
.portfolio-page .portfolio-button.primary { color: #08232e; background: #8be0e3; border-color: #8be0e3; }
.portfolio-button:hover { background: #223e50; border-color: #a0e4e8; }
.portfolio-page .portfolio-button.primary:hover { background: #b6f1ef; border-color: #b6f1ef; }
.file-label { font-size: 0.65rem; letter-spacing: 0.05em; opacity: 0.8; }
.focus-tags { padding: 0; margin: 28px 0 0; list-style: none; gap: 8px; }
.focus-tags li { color: #c1d3df; font-size: 0.72rem; border: 1px solid #7da0b13d; border-radius: 30px; padding: 5px 12px; background: #13273588; }
.profile-card { background: #102130dc; border: 1px solid #8aaabd42; border-radius: 16px; padding: 12px; transform: rotate(2deg); box-shadow: 0 24px 64px #0004; }
.profile-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 9px; display: block; }
.profile-caption { padding: 23px 12px 16px; }
.profile-caption .eyebrow { font-size: 0.57rem; letter-spacing: 0.1em; }
.profile-caption p { margin: 12px 0 16px; font-size: 1.08rem; }
.profile-caption a { color: #91dce4; font-size: 0.8rem; text-underline-offset: 5px; }
.background-controls { display: flex; gap: 14px; align-items: center; justify-content: flex-end; flex-wrap: wrap; padding-bottom: 24px; color: #adc1d0; font-size: 0.7rem; }
.background-controls button { border: 1px solid #567082; border-radius: 20px; padding: 5px 12px; color: #d5e8ee; background: #0e202fe6; font: inherit; cursor: pointer; }
.background-controls button:disabled { cursor: default; }
.portfolio-section { padding-block: 64px; border-top: 1px solid #a1c9e02e; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.portfolio-page h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.04em; font-weight: 600; line-height: 1.2; margin: 0; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading > p { max-width: 320px; color: #b6c9d8; margin: 0; font-size: 0.9rem; }
.portfolio-page .publication-card { display: grid; grid-template-columns: minmax(0, 1fr) 280px; max-width: none; margin: 0; padding: 0; border: 1px solid #617e9370; border-radius: 12px; overflow: hidden; background: #0e1e2ef5; }
.publication-copy { padding: 34px; min-width: 0; }
.publication-copy h3 { font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.35; letter-spacing: -0.025em; margin: 0 0 20px; }
.publication-copy h3 a { text-decoration: none; }
.publication-copy h3 a:hover { color: #92e1e6; text-decoration: underline; text-underline-offset: 5px; }
.publication-authors { font-size: 0.85rem; line-height: 1.8; color: #b6c9d8; }
.publication-authors strong { color: #edf3f8; font-weight: 600; }
.publication-venue { font-size: 0.8rem; color: #92d2dc; }
.publication-summary { color: #b6c9d8; font-size: 0.9rem; margin: 24px 0 0; }
.publication-copy .focus-tags { margin-top: 22px; }
.publication-link { margin-top: 28px; }
.publication-results { padding: 32px 26px; background: #152e3d; border-left: 1px solid #617e934d; }
.publication-results .eyebrow { font-size: 0.62rem; margin-bottom: 24px; }
.publication-results dl { margin: 0; }
.publication-results dl > div + div { border-top: 1px solid #617e935e; padding-top: 20px; margin-top: 20px; }
.publication-results dt { font-size: 0.75rem; color: #b6c9d8; margin-bottom: 6px; }
.publication-results dd { color: #98e2e6; font-size: 2rem; line-height: 1.3; margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.publication-results sup { font-size: 0.6em; }
.publication-results .result-unit { display: block; font-size: 0.85rem; font-weight: 400; margin-top: 5px; }
.publication-results .inline-unit { font-size: 1rem; font-weight: 400; }
.publication-results .result-baseline { font-size: 0.75rem; line-height: 1.6; color: #b6c9d8; font-weight: 400; margin-top: 8px; }
.publication-caveat { font-size: 0.7rem; color: #b6c9d8; margin: 24px 0 0; }
.publication-figure { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 28px 34px; border-top: 1px solid #617e934d; scroll-margin-top: 24px; }
.publication-figure-image { display: block; max-width: 729px; margin-inline: auto; background: #fff; border-radius: 8px; overflow: hidden; }
.publication-figure-image img { display: block; width: 100%; height: auto; }
.publication-figure figcaption { max-width: 729px; margin: 18px auto 0; color: #b6c9d8; font-size: 0.8rem; line-height: 1.7; }
.publication-figure figcaption strong { color: #edf3f8; }
.portfolio-page .publication-figure-link { display: block; width: fit-content; max-width: 100%; margin: 14px auto 0; color: #92e1e6; font-size: 0.8rem; text-underline-offset: 4px; }
.publication-animation { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 28px 34px; border-top: 1px solid #617e934d; scroll-margin-top: 24px; }
.mixing-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.mixing-heading .eyebrow { margin-bottom: 8px; }
.mixing-heading h3 { margin: 0; font-size: 1.2rem; line-height: 1.4; font-weight: 600; }
.mixing-heading button { font-family: inherit; cursor: pointer; }
.mixing-heading button:disabled { cursor: default; color: #b6c9d8; }
.mixing-diagrams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mixing-diagrams svg { display: block; width: 100%; height: auto; border: 1px solid #617e934d; border-radius: 10px; background: #081923; }
.mixing-label { fill: #edf3f8; font: 600 17px "Segoe UI", Arial, sans-serif; }
.mixing-small { fill: #c2d5e2; font: 15px "Segoe UI", Arial, sans-serif; }
.mixing-heat-label { fill: #ffbb85; }
.mixing-track { fill: none; stroke: #83e6eb; stroke-width: 1.5; opacity: 0.4; }
.mixing-tracer { fill: none; stroke: #83e6eb; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 26; animation: mixing-transport 1.4s linear infinite; animation-play-state: paused; }
.mixing-diagrams.is-playing .mixing-tracer { animation-play-state: running; }
.publication-animation figcaption { color: #b6c9d8; font-size: 0.8rem; line-height: 1.7; margin-top: 18px; }
.publication-animation figcaption strong { color: #edf3f8; }
.mixing-status { color: #92d2dc; font-size: 0.75rem; margin-bottom: 0; }
@keyframes mixing-transport { to { stroke-dashoffset: -28; } }
.research-explainer-link { display: block; width: fit-content; margin-top: 18px; font-size: 0.85rem; color: #92e1e6 !important; text-underline-offset: 4px; }
.research-article-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 28px; padding: 24px; border-top: 1px solid #617e934d; font-size: 0.85rem; }
.research-article-links a { color: #92e1e6; text-underline-offset: 4px; scroll-margin-top: 24px; }
.research-explainer { grid-column: 1 / -1; min-width: 0; padding: 28px 34px; border-top: 1px solid #617e934d; scroll-margin-top: 24px; }
.research-explainer .eyebrow { margin-bottom: 10px; }
.research-explainer h3 { font-size: 1.4rem; line-height: 1.35; margin: 0 0 18px; }
.research-explainer p { max-width: 78ch; color: #b6c9d8; font-size: 0.9rem; line-height: 1.8; }
.research-explainer .research-takeaway { color: #edf3f8; margin-bottom: 24px; }
.research-explainer details { padding: 18px 0; border-top: 1px solid #617e934d; }
.research-explainer summary { cursor: pointer; color: #98e2e6; font-size: 0.95rem; font-weight: 600; }
.research-explainer summary:focus-visible { outline: 2px solid #83e6eb; outline-offset: 5px; }
.research-explainer strong { color: #edf3f8; }
.research-explainer .research-source { font-size: 0.8rem; margin-bottom: 0; }
.heat-distribution { margin: 28px 0; scroll-margin-top: 24px; }
.research-explainer h4 { font-size: 1.1rem; line-height: 1.4; margin: 0 0 12px; }
.heat-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.heat-panel { min-width: 0; padding: 16px; border: 1px solid #617e934d; border-radius: 10px; background: #081923; }
.heat-panel h5 { font-size: 1rem; line-height: 1.4; margin: 0 0 12px; color: #edf3f8; }
.heat-panel svg { display: block; width: 100%; height: auto; }
.heat-panel p { margin-bottom: 0; }
.heat-distribution figcaption { color: #b6c9d8; font-size: 0.8rem; line-height: 1.8; margin-top: 16px; }
.heat-mechanism { margin-bottom: 28px; }
.heat-equation { white-space: nowrap; font-family: "Cambria Math", Cambria, serif; }
.work-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.portfolio-page .work-card { padding: 0; margin: 0; max-width: none; background: #0e1e2eed; border: 1px solid #617e934d; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.loop-preview, .work-image { height: 230px; width: 100%; object-fit: cover; border-bottom: 1px solid #617e934d; }
.loop-preview { display: flex; flex-direction: column; justify-content: center; padding: 18px; background: radial-gradient(#638f9c40 1px, transparent 1px) 0 0 / 18px 18px, #0b1c2b; }
.loop-preview svg { width: 100%; min-height: 0; }
.preview-label { color: #a5cfda; font-size: 0.6rem; letter-spacing: 0.12em; }
.work-copy { padding: 28px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.work-copy .eyebrow { margin-bottom: 12px; }
.work-copy h3 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -0.02em; margin: 0; }
.work-copy p { font-size: 0.9rem; color: #b6c9d8; }
.work-copy .work-note { font-size: 0.75rem; color: #b9c5ce; margin-top: 0; }
.work-article-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; }
.portfolio-page .text-link { color: #92e1e6; font-size: 0.85rem; text-decoration: none; padding-top: 12px; margin-top: auto; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.lab-section { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; }
.lab-intro > p:not(.eyebrow) { color: #b6c9d8; max-width: 360px; font-size: 0.95rem; }
.lab-intro .lab-tagline { color: #e2edf4 !important; font-size: 1.1rem !important; }
.lab-intro .lab-instruction { color: #91dce4 !important; margin-top: 30px; font-size: 0.8rem !important; }
.topic-list { border: 1px solid #617e934d; border-radius: 12px; overflow: hidden; }
.topic-list a { display: flex; align-items: center; gap: 20px; text-decoration: none; padding: 20px 24px; background: #0e1e2eed; }
.topic-list a + a { border-top: 1px solid #617e934d; }
.topic-list a:hover { background: #1b3448; }
.topic-number { color: #83d4df; font: 0.75rem Consolas, monospace; }
.topic-list a > div { flex: 1; min-width: 0; }
.topic-list h3 { font-size: 0.95rem; font-weight: 500; margin: 0 0 4px; }
.topic-list p { color: #a9becf; font-size: 0.75rem; margin: 0; }
.topic-list a > span:last-child { color: #83d4df; }
.contact-section { display: flex; align-items: center; justify-content: space-between; gap: 40px; border: 1px solid #617e935e; border-radius: 12px; background: #102638eb; padding: 44px; margin: 12px 0 64px; scroll-margin-top: 24px; }
.contact-section p:not(.eyebrow) { color: #b6c9d8; font-size: 0.9rem; max-width: 440px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.portfolio-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid #a1c9e02e; color: #b5c7d6; font-size: 0.75rem; }
.portfolio-footer span { padding: 0 10px; color: #7dcfdc; }
.portfolio-footer a { white-space: nowrap; text-decoration: none; }
.about-page { animation: none; background: radial-gradient(ellipse at 85% 5%, #153142, #08131e 60%); }
.about-page > header, .about-page > main, .about-page > footer { position: relative; z-index: 1; }
.portfolio-nav nav a[aria-current="page"] { color: #92e1e6; text-decoration: underline; text-underline-offset: 7px; }
.about-hero { display: grid; grid-template-columns: 1.3fr 0.85fr; align-items: center; gap: 72px; padding-block: 80px; }
.about-intro h1 { font-size: clamp(2.8rem, 5vw, 4.7rem); letter-spacing: -0.055em; line-height: 1.1; margin: 0 0 24px; }
.about-intro h1 span { color: #77dae1; }
.about-intro .hero-intro { margin-bottom: 18px; }
.about-lead { font-size: 0.95rem; color: #b6c9d8; margin: 0 0 30px; }
.about-portrait { margin: 0; padding: 12px; border: 1px solid #617e9366; border-radius: 14px; background: #102130ee; }
.about-portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.about-portrait figcaption { padding: 20px 10px 12px; display: grid; gap: 5px; color: #b6c9d8; font-size: 0.8rem; }
.about-portrait .eyebrow { margin: 0; color: #e1f2f6; }
.about-story { display: grid; grid-template-columns: 0.85fr 1.3fr; gap: 72px; }
.about-story-copy > p { margin: 0 0 22px; color: #bfceda; font-size: 1rem; }
.about-research-link { display: block; padding: 24px; border: 1px solid #617e9366; border-left: 3px solid #77dae1; border-radius: 8px; background: #102638ee; text-decoration: none; }
.about-research-link:hover { background: #193449; }
.about-research-link .eyebrow { display: block; margin: 0 0 12px; }
.about-research-link strong { display: block; font-weight: 500; font-size: 1.08rem; line-height: 1.5; }
.about-research-link .text-link { display: block; margin-top: 8px; }
.about-interest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.about-interest { padding: 26px; border: 1px solid #617e934d; border-radius: 10px; background: #102130ee; }
.interest-number { font: 0.8rem Consolas, monospace; color: #92e1e6; }
.about-interest h3, .about-lab-note h3 { font-size: 1.1rem; line-height: 1.4; font-weight: 500; margin: 18px 0 14px; }
.about-interest p, .about-lab-note p { color: #b6c9d8; font-size: 0.9rem; margin: 0; }
.about-lab-note { margin-top: 32px; padding: 24px; background: #102130ee; border-radius: 8px; border: 1px solid #617e934d; }
.about-lab-note h3 { margin-top: 0; }
.about-lab-note .text-link { display: inline-block; margin-top: 8px; }
@media (max-width: 900px) {
  .about-hero, .about-story { gap: 36px; }
  .about-interest-grid { gap: 14px; }
  .about-interest { padding: 20px; }
  .portfolio-page .publication-card { grid-template-columns: minmax(0, 1fr) 240px; }
  .publication-copy { padding: 26px; }
  .portfolio-hero { gap: 36px; padding-top: 64px; grid-template-columns: 1.4fr 0.8fr; }
  .portfolio-nav nav { gap: 16px; }
  .lab-section { gap: 36px; }
  .contact-section { padding: 28px; }
}
@media (max-width: 680px) {
  .about-hero, .about-story, .about-interest-grid { grid-template-columns: 1fr; }
  .about-hero { padding-block: 48px; }
  .about-portrait { width: min(100%, 380px); justify-self: center; }
  .portfolio-page .publication-card { grid-template-columns: 1fr; }
  .publication-copy { padding: 22px; }
  .publication-figure { padding: 22px; }
  .publication-animation { padding: 22px; }
  .research-explainer { padding: 22px; }
  .heat-comparison { grid-template-columns: 1fr; }
  .heat-panel { padding: 12px; }
  .mixing-diagrams { grid-template-columns: 1fr; }
  .publication-results { padding: 24px; border-left: 0; border-top: 1px solid #617e934d; }
  .portfolio-page .page-width { width: calc(100% - 36px); }
  .portfolio-nav { align-items: flex-start; padding-block: 20px; gap: 20px; }
  .portfolio-nav nav { justify-content: flex-end; gap: 10px 16px; }
  .portfolio-nav nav a { font-size: 0.75rem; }
  .portfolio-nav .nav-resume { padding: 2px 10px; }
  .portfolio-hero { grid-template-columns: 1fr; padding: 54px 0 32px; gap: 40px; }
  .portfolio-hero h1 { font-size: clamp(3rem, 13vw, 4.6rem); }
  .hero-intro { font-size: 0.95rem; }
  .profile-card { width: min(100%, 360px); justify-self: center; transform: none; }
  .profile-card img { aspect-ratio: 1.2; }
  .background-controls { justify-content: center; }
  .portfolio-section { padding-block: 40px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; max-width: none; }
  .work-grid, .lab-section { grid-template-columns: 1fr; }
  .work-copy { padding: 22px; }
  .lab-intro > p:not(.eyebrow) { max-width: none; }
  .topic-list a { padding: 18px 16px; gap: 14px; }
  .contact-section { flex-direction: column; align-items: stretch; padding: 24px; margin-bottom: 40px; gap: 20px; }
  .portfolio-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .portfolio-footer p { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-page *, .portfolio-page *::before, .portfolio-page *::after { animation: none !important; transition: none !important; }
}
