/* IMAGES: every grey square is a placeholder. To swap one for a real image or GIF, replace the whole
   <div class="project-media placeholder" ...>...</div> with
   <div class="project-media"><img src="images/FILE.jpg" alt="what it shows"></div>
   Headshot: images/headshot.jpg (bump ?v=N in the HTML after replacing it). */
/* THEME: every color is a token. Light values here, dark values under [data-theme="dark"].
   The heat-mesh scale (--heat-0 cool ... --heat-3 hot) uses the same shades as each theme. */
:root {
  color-scheme: light;
  --navy: #002952; --on-navy: #ffffff; --btn-hover: #0b3c70;
  --gold: #d7dfe6; --gold-ink: #47617d;
  --ink: #172b3e; --muted: #56697b; --line: #d7dfe6; --canvas: #f7f6f3; --surface: #ffffff; --link: #0b4a8f;
  --paper: #f7f6f3; --hero-bg: #ffffff; --h-ink: #1f2328; --h-ink-2: #5f656e; --rule: #e3e1dc;
  --ph: #e4e9ee; --ph-ink: #7c8d9d; --soft: #f4f6f8; --chip: #e9eef3; --hilite: #fff6d6;
  --footer-bg: #002952; --footer-rule: #d7dfe6; --footer-ink: #dfe7ef; --footer-strong: #ffffff; --footer-sub: #a9b9c9;
  --ring: #002952; --photo-bg: #ffffff;
  --fheat-0: #123f6e; --fheat-1: #2c5f93; --fheat-2: #7aa6d3; --fheat-3: #d7dfe6; --fheat-line: #d7dfe6; --fheat-alpha: .55; --intro-bg: #edf1f5;
  --heat-0: #d7dfe6; --heat-1: #9fbbd8; --heat-2: #4a78a8; --heat-3: #002952; --heat-line: #002952; --heat-alpha: .40;
  --head: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --navy: #9cc0e6; --on-navy: #08111a; --btn-hover: #c2daf2;
  --gold: #1b2c40; --gold-ink: #8fa9c4;
  --ink: #e2e8ee; --muted: #9aabbb; --line: #23354a; --canvas: #0a121b; --surface: #0f1a26; --link: #9cc0e6;
  --paper: #0a121b; --hero-bg: #0e1823; --h-ink: #eef2f6; --h-ink-2: #9aabbb; --rule: #1d2c3d;
  --ph: #172636; --ph-ink: #6f859b; --soft: #13202e; --chip: #18293b; --hilite: #22344a;
  --footer-bg: #060d14; --footer-rule: #23354a; --footer-ink: #c9d6e3; --footer-strong: #eef2f6; --footer-sub: #6f859b;
  --ring: #9cc0e6; --photo-bg: #ffffff;
  --fheat-0: #12243a; --fheat-1: #2f5a86; --fheat-2: #6d9fd2; --fheat-3: #cfe3f7; --fheat-line: #9cc0e6; --fheat-alpha: .42; --intro-bg: #111e2b;
  --heat-0: #1d3048; --heat-1: #2f5a86; --heat-2: #6d9fd2; --heat-3: #cfe3f7; --heat-line: #9cc0e6; --heat-alpha: .36;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--canvas); transition: background-color .2s, color .2s; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4, p, ul { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 5; }

/* Top bar (icons + Resume + Let's Chat! on the left, theme toggle on the right) */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; z-index: 1; }
.topbar-left { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.icon-link { color: var(--h-ink); display: inline-flex; padding: 2px; border-radius: 6px; transition: color .15s, transform .15s; }
.icon-link:hover { color: var(--navy); transform: translateY(-1px); }
.icon-link svg { width: 24px; height: 24px; display: block; }
.topbar .sep { width: 1px; height: 22px; background: var(--line); }
.topbar .btn { font-size: .92rem; padding: 8px 18px; }
.theme-toggle { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 2px solid var(--h-ink); border-radius: 9px; background: var(--hero-bg); color: var(--h-ink); cursor: pointer; padding: 0; transition: border-color .15s, color .15s; }
.theme-toggle:hover { border-color: var(--navy); color: var(--navy); }
.theme-toggle:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .moon, [data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.page-top { background: var(--hero-bg); border-bottom: 1px solid var(--rule); }
.page-top .topbar { max-width: 1180px; margin: auto; padding: 16px 40px; }

/* Hero with the interactive heat mesh behind it */
.hero-band { position: relative; overflow: hidden; background: var(--hero-bg); border-bottom: 1px solid var(--rule); font-family: var(--head); color: var(--h-ink); }
.hero-band canvas.heat { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero { position: relative; z-index: 1; max-width: 1180px; margin: auto; padding: 26px 40px 64px; display: grid; gap: 40px; }
.hero-id { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; }
.hero-text { display: grid; gap: 14px; min-width: 0; }
.hero h1 { font: 800 clamp(2.9rem, 7.4vw, 5.4rem)/1 var(--head); letter-spacing: -.03em; color: var(--h-ink); }
.hero-credentials { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--h-ink-2); font-family: var(--body); }
.hero-credentials { color: var(--h-ink); }
.hero-credentials i { font-weight: 400; }
.hero-credentials b { color: var(--h-ink); font-weight: 600; }
.hero-credentials span { color: var(--h-ink-2); }
.hero-photo { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--ring); background: var(--photo-bg); }
.heat-legend { position: absolute; z-index: 1; right: 24px; bottom: 16px; display: flex; align-items: center; gap: 10px; font: 800 .95rem var(--head); letter-spacing: .02em; color: var(--navy); pointer-events: none; }
.heat-legend i { width: 160px; height: 13px; border-radius: 3px; background: linear-gradient(90deg, var(--heat-0), var(--heat-1), var(--heat-2), var(--heat-3)); }

/* Sections */
.home-main { max-width: 1180px; margin: auto; padding: 0 40px; }
section { padding: 52px 0 12px; }
.section-heading { margin-bottom: 26px; display: grid; gap: 4px; }
.eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.section-heading h2 { font: 600 clamp(1.6rem, 3vw, 2.1rem)/1.2 var(--head); color: var(--navy); }
.section-heading p { color: var(--muted); }

/* Cards */
.work-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: clip; display: grid; grid-template-columns: minmax(0, 1fr); }
.work-card.is-open { border-top: 3px solid var(--navy); }
.work-card.wide { grid-column: 1 / -1; }
.project-media-strip { display: grid; gap: 2px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-media-strip.n1 { grid-template-columns: minmax(0, 1fr); }
.project-media { position: relative; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ph); }
.project-media-strip.n1 .project-media { aspect-ratio: 32 / 9; }
.project-media > img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { background: var(--ph); display: grid; place-items: center; text-align: center; padding: 10px; }
.placeholder span { font-size: .74rem; font-weight: 500; color: var(--ph-ink); letter-spacing: .02em; line-height: 1.3; }
.work-body { padding: 20px 22px 22px; display: grid; gap: 10px; }
.work-body h3 { font: 600 1.3rem/1.25 var(--head); color: var(--navy); }
.project-focus { font-size: .88rem; font-weight: 600; color: var(--gold-ink); margin-top: -6px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: .88rem; color: var(--muted); margin-top: -4px; }
.project-role { font-size: .93rem; }
.project-role b, .details-body h4, .detail h2, .label { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.project-summary { font-weight: 500; line-height: 1.5; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { font: 600 .86rem var(--body); padding: 7px 15px; border-radius: 999px; border: 1px solid var(--navy); background: var(--surface); color: var(--navy); cursor: pointer; }
.btn:hover { background: var(--gold); text-decoration: none; }
.btn.primary { background: var(--navy); color: var(--on-navy); }
.btn.primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.details-body { padding: 4px 16px 14px; display: grid; gap: 6px; font-size: .94rem; background: var(--soft); border-left: 3px solid var(--navy); border-radius: 0 6px 6px 0; }
.details-body h4 { margin-top: 6px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; }
.skill-tags li { font-size: .78rem; font-weight: 500; color: var(--navy); background: var(--chip); border-radius: 999px; padding: 3px 10px; }
.project-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; font-weight: 600; }

/* Competition card */
.highlights { padding-left: 1.1em; display: grid; gap: 2px; font-size: .95rem; }
.seasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 22px; margin-top: 8px; }
.season { display: grid; gap: 6px; align-content: start; min-width: 0; }
.season .project-media { border-radius: 8px; }
.season h4 { font: 600 1rem/1.3 var(--head); color: var(--navy); }
.season .team { font-size: .8rem; color: var(--muted); margin-top: -4px; }
.season ul { padding-left: 1.05em; font-size: .86rem; line-height: 1.45; display: grid; gap: 2px; }
.season a { font-size: .84rem; font-weight: 600; }
.sub-label { margin-top: 14px; }

/* Outputs and honors */
.publications { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 24px; }
.pub-year { font: 600 1rem var(--head); color: var(--navy); padding: 16px 0 4px; }
.publication { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 3px; }
.publication:first-of-type { border-top: 0; }
.publication:target { background: var(--hilite); box-shadow: 0 0 0 12px var(--hilite); }
.pub-venue { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-ink); }
.pub-title { font-weight: 600; }
.pub-authors { font-size: .9rem; color: var(--muted); }
.honors { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.honors li { padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.honors span { display: block; font-size: .85rem; color: var(--muted); }
.honors .scope { font-weight: 600; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }

/* Footer */
.site-footer { margin-top: 64px; background: var(--footer-bg); border-top: 3px solid var(--footer-rule); color: var(--footer-ink); }
.footer-inner { max-width: 1180px; margin: auto; padding: 32px 40px 40px; display: grid; gap: 10px; }
.footer-name { font: 600 1.2rem var(--head); color: var(--footer-strong); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a, .footer-links span { color: var(--footer-strong); font-size: .93rem; }
.site-footer small { color: var(--footer-sub); }

@media (max-width: 1000px) { .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .work-row, .honors { grid-template-columns: minmax(0, 1fr); }
  .hero, .home-main, .footer-inner, .page-top .topbar { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 18px; padding-bottom: 52px; gap: 28px; }
  .topbar { align-items: flex-start; }
  .topbar-left { gap: 10px; }
  .topbar .sep { display: none; }
  .icon-link svg { width: 22px; height: 22px; }
  .topbar .btn { padding: 6px 12px; font-size: .84rem; }
  .theme-toggle { width: 38px; height: 38px; }
  .hero-id { flex-direction: column-reverse; align-items: flex-start; }
  .hero-photo { width: 132px; height: 132px; }
  .heat-legend { display: none; }
}
@media (max-width: 460px) { .seasons { grid-template-columns: minmax(0, 1fr); } }

/* Project detail pages */
.detail { max-width: 900px; margin: auto; padding: 40px 40px 0; display: grid; gap: 14px; }
.back { font-size: .9rem; font-weight: 600; }
.detail h1 { font: 600 clamp(2rem, 4.5vw, 2.8rem)/1.12 var(--head); color: var(--navy); letter-spacing: -.01em; }
.detail .project-summary { font-size: 1.15rem; }
.detail h2 { margin: 18px 0 -6px; }
.detail ul { padding-left: 1.15em; display: grid; gap: 4px; }
.detail .skill-tags { padding: 0; display: flex; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0; }
.gallery .project-media { border-radius: 8px; aspect-ratio: 4 / 3; }
.detail-season { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: grid; gap: 6px; }
.detail-season h3 { font: 600 1.15rem var(--head); color: var(--navy); }
@media (max-width: 760px) { .detail { padding: 28px 20px 0; } .gallery { grid-template-columns: minmax(0, 1fr); } }


/* Under-construction note above Research (remove when the projects are finished) */
.wip-note { margin-top: 40px; background: var(--chip); border-left: 3px solid var(--navy); border-radius: 0 8px 8px 0; padding: 14px 20px; color: var(--ink); font-size: .97rem; }
.wip-note b { color: var(--navy); }
.wip-note + section { padding-top: 36px; }

@media print { .site-footer canvas.heat, .hero-band canvas.heat, .heat-legend, .theme-toggle { display: none; } }

/* Intro band (typing words left, plain text right), tinted strip between the hero and Research */
.intro-band { background: var(--intro-bg); border-bottom: 1px solid var(--line); }
.intro { max-width: 1180px; margin: auto; padding: 30px 40px; display: grid; grid-template-columns: 22rem minmax(0, 1fr); gap: 24px 40px; align-items: center; }
.intro-text { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--ink); }
.intro-words { font: 800 clamp(2.1rem, 4.4vw, 3.2rem)/1.1 var(--head); letter-spacing: -.02em; color: var(--navy); white-space: nowrap; min-height: 1.1em; }
.intro-words .caret { display: inline-block; width: .08em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: var(--navy); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .intro-words .caret { animation: none; } }
.intro-band { position: relative; }
.intro-words.has-arm .caret { visibility: hidden; }
@media (max-width: 760px) { .intro-band.arm-on .intro { padding-top: 54px; } }
.tw-measure { position: absolute; visibility: hidden; white-space: pre; left: -9999px; top: 0; }
.arm { --arm: var(--h-ink); position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.arm .slot-o { stroke: url(#armg); stroke-linecap: round; fill: none; }
.arm .slot-i { stroke: var(--intro-bg); stroke-linecap: round; fill: none; }
.arm .jt, .arm .collar { fill: var(--intro-bg); stroke: url(#armg); stroke-width: 3; stroke-linejoin: round; }
.arm .cart, .arm .whl { fill: var(--intro-bg); stroke: var(--arm); stroke-width: 3; stroke-linejoin: round; }
.arm .whl { stroke-width: 2.5; }
.arm .rail { fill: var(--arm); }
.arm .jd { fill: url(#armg); }
.arm .jaw { fill: url(#armg); stroke: var(--intro-bg); stroke-width: 1; stroke-linejoin: round; }
.arm .g0 { stop-color: var(--arm); }
.arm-lever { position: absolute; left: 0; top: 0; z-index: 3; width: 28px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; }
.arm-lever::before { content: ""; position: absolute; left: 9px; top: 0; width: 10px; height: 7px; border-radius: 0 0 5px 5px; background: var(--h-ink); }
.arm-lever .lv { position: absolute; left: 12.5px; top: 3px; width: 3px; height: 21px; border-radius: 2px; background: var(--h-ink); transform-origin: 50% 1.5px; transform: rotate(32deg); transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.arm-lever .lv::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--h-ink-2); transition: background-color .2s; }
.arm-lever[aria-pressed="true"] .lv { transform: rotate(-32deg); }
.arm-lever[aria-pressed="true"] .lv::after { background: var(--navy); animation: knob-blink .7s ease-in-out infinite alternate; }
@keyframes knob-blink { from { background-color: var(--navy); } to { background-color: var(--heat-1); } }
.arm-lever:hover .lv::after { box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 22%, transparent); }
.arm-lever:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
.arm .g1 { stop-color: var(--navy); }
@media (max-width: 760px) { .intro { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; gap: 12px; } }

/* Footer: heat mesh behind name, icon links and buttons */
.site-footer { position: relative; overflow: hidden; }
.site-footer canvas.heat { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.site-footer .footer-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.footer-left { display: grid; gap: 12px; }
.footer-name { font: 700 1.35rem var(--head); color: var(--footer-strong); }
.footer-links.icons { display: flex; align-items: center; gap: 10px 18px; }
.footer-links.icons .icon-link { color: var(--footer-strong); }
.footer-links.icons .icon-link:hover { color: var(--fheat-3); }
.footer-links.icons .sep { width: 1px; height: 22px; background: var(--footer-sub); opacity: .6; }
.footer-links.icons .btn { font-size: .9rem; padding: 7px 17px; background: transparent; color: var(--footer-strong); border-color: var(--footer-strong); }
.footer-links.icons .btn.primary { background: var(--footer-strong); color: var(--footer-bg); }
@media (max-width: 760px) {
  .footer-links.icons { gap: 10px; }
  .footer-links.icons .sep { display: none; }
  .footer-links.icons .icon-link svg { width: 22px; height: 22px; }
  .footer-links.icons .btn { padding: 6px 12px; font-size: .84rem; }
}

/* Back-to-top arrow: plain at rest, glows hot on hover (click also sends a heat burst) */
.to-top { flex: none; display: grid; place-items: center; width: 64px; height: 64px; color: var(--footer-strong); opacity: .85; transition: color .25s, opacity .25s, transform .25s, filter .25s; }
.to-top svg { width: 52px; height: 52px; }
.to-top:hover, .to-top:focus-visible { opacity: 1; color: #ffffff; transform: translateY(-4px); filter: drop-shadow(0 0 6px var(--fheat-3)) drop-shadow(0 0 16px var(--fheat-2)); text-decoration: none; }
@media (max-width: 760px) { .to-top { width: 48px; height: 48px; } .to-top svg { width: 38px; height: 38px; } }

/* Recognition: features carousel + two-column honors */
.sub-heading { font: 800 1.2rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.news-nav { display: flex; gap: 8px; }
.news-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--navy); background: var(--surface); color: var(--navy); font: 600 1rem var(--body); cursor: pointer; }
.news-btn:hover { background: var(--navy); color: var(--on-navy); }
.news-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 10px; scrollbar-width: thin; }
.news-card { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.news-body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.news-outlet { font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.news-body h3 { font: 600 1.05rem/1.3 var(--head); color: var(--navy); }
.news-link { font-size: .88rem; font-weight: 600; }
.news-cover { display: grid; place-items: center; background: var(--navy); }
.news-cover span { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 var(--head); letter-spacing: -.02em; color: var(--on-navy); }
.honors-heading { margin: 40px 0 10px; }

/* Interests */
.interest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px 40px; align-items: center; }
.interest .project-media { border-radius: 12px; }
.interest-body { display: grid; gap: 12px; justify-items: start; }
.interest-body h3 { font: 600 1.3rem var(--head); color: var(--navy); }
.yt-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.yt-link svg { width: 30px; height: 30px; color: #e62117; flex: none; }
.yt-link:hover { color: var(--navy); }
@media (max-width: 760px) {
  .news-track { grid-auto-columns: 82%; }
  .interest { grid-template-columns: minmax(0, 1fr); }
}

/* Sticky section bar: slides in after the hero; bottom edge is a ΔT progress bar with section ticks */
section[id] { scroll-margin-top: 76px; }
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: color-mix(in srgb, var(--hero-bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); transform: translateY(-110%); transition: transform .28s ease; }
.navbar.show { transform: none; }
.navbar-inner { max-width: 1180px; margin: auto; padding: 10px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.navbar-name { font: 800 1.1rem var(--head); color: var(--h-ink); letter-spacing: -.01em; }
.navbar-name:hover { text-decoration: none; color: var(--navy); }
.navbar-links { display: flex; gap: 4px 26px; }
.navbar-links a { font: 600 .92rem var(--body); color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.navbar-links a:hover { color: var(--navy); text-decoration: none; }
.navbar-links a.active { color: var(--navy); border-bottom-color: var(--navy); }
.navbar-right { display: flex; align-items: center; gap: 10px; }
.navbar .theme-toggle { width: 36px; height: 36px; border-width: 1.5px; }
.navbar .theme-toggle svg { width: 19px; height: 19px; }
.nav-menu { display: none; width: 36px; height: 36px; border: 1.5px solid var(--h-ink); border-radius: 9px; background: transparent; color: var(--h-ink); cursor: pointer; place-items: center; padding: 0; }
.nav-menu svg { width: 20px; height: 20px; }
.heat-progress { position: relative; height: 5px; background: var(--rule); }
.heat-progress .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--heat-0) 0%, var(--heat-1) 35%, var(--heat-2) 70%, var(--heat-3) 100%); } /* full cool-to-hot range across the filled part */
.heat-progress b { position: absolute; top: -3px; width: 2px; height: 10px; border-radius: 1px; background: var(--muted); opacity: .55; }
.heat-progress b.passed { background: var(--navy); opacity: 1; }

/* Section chips under the intro */

@media (max-width: 860px) {
  .navbar-inner { padding: 8px 20px; }
  .navbar-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--hero-bg); border-bottom: 1px solid var(--rule); padding: 6px 20px 12px; }
  .navbar.open .navbar-links { display: flex; }
  .navbar-links a { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .navbar-links a.active { border-bottom-color: var(--rule); }
  .nav-menu { display: grid; }
}

.interest-photo { aspect-ratio: 1; max-width: 380px; border-radius: 12px; overflow: hidden; background: var(--ph); }
.interest-photo img { width: 100%; height: 100%; object-fit: cover; }
.interest { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.interest-body p { font-size: 1.05rem; line-height: 1.65; max-width: 60ch; }
@media (max-width: 760px) { .interest { grid-template-columns: minmax(0, 1fr); } }

/* Interests: compact photo, text column about the same height */
.interest { grid-template-columns: 260px minmax(0, 1fr); gap: 24px 40px; align-items: center; }
.interest-photo { max-width: 260px; }
.interest-body { display: grid; gap: 16px; }
.interest-body .interest-main { display: grid; gap: 12px; }
.interest-body h3 { font-size: 1.4rem; }
.interest-body p { font-size: 1.08rem; line-height: 1.65; max-width: 64ch; }
.other-interests { border-top: 1px solid var(--line); padding-top: 14px; color: var(--ink); }
.other-interests b { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 760px) { .interest { grid-template-columns: minmax(0, 1fr); } }

#recognition .section-heading { margin-bottom: 12px; }

/* Résumé-style entries (Leadership) */
.work-body.res { gap: 10px; }
.res-title { font: 700 1.15rem/1.3 var(--head); color: var(--navy); }
.res-title .sc { font-variant: small-caps; }
.res-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 16px; margin-top: -4px; color: var(--ink); }
.res-line > :first-child { flex: 1 1 14rem; }
.res-date { font-weight: 600; white-space: nowrap; }
.res-bullets { margin: 2px 0 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink); line-height: 1.5; }
.skill-rows { display: grid; gap: 8px; margin-top: 6px; }
.skill-fill { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-fill li { flex: 1 1 auto; text-align: center; white-space: nowrap; font: 600 .82rem var(--body); color: var(--navy); background: var(--intro-bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.project-media.logo-media { background: #ffffff; }
.project-media.logo-media > img { object-fit: contain; padding: 14px; }
#leadership .project-media-strip.n1 .project-media { aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .skill-rows { grid-template-columns: 1fr 1fr; } .skill-fill { display: contents; } .skill-fill li { font-size: .74rem; padding: 7px 6px; } }
