:root {
  color-scheme: dark;
  --paper: #05070d;
  --ink: #e8eefc;
  --muted: #9aa8c7;
  --line: #18213a;
  --line-strong: #263459;
  --surface: #0a0f1e;
  --surface-raised: #0b1430;
  --accent: #60a5fa;
  --accent-ink: #05070d;
  --accent-soft: #7cc4ff;
  --gradient-accent: linear-gradient(135deg, #93c5fd 0%, #60a5fa 45%, #3b82f6 100%);
  --gradient-accent-hover: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 45%, #60a5fa 100%);
  --gradient-text: linear-gradient(100deg, #bfdbfe 0%, #60a5fa 55%, #3b82f6 100%);
  --gradient-panel: linear-gradient(160deg, #12285a 0%, #0b1430 55%, #060a18 100%);
  --gradient-card: linear-gradient(180deg, #0c1428 0%, #080d1b 100%);
  --gradient-card-featured: linear-gradient(160deg, #13295a 0%, #0b1736 60%, #080d1b 100%);
  --gradient-band: linear-gradient(180deg, #070c1a 0%, #0b1530 50%, #070c1a 100%);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: radial-gradient(ellipse 70% 50% at 10% 0%, rgba(59, 130, 246, .20), transparent 70%), radial-gradient(ellipse 50% 40% at 95% 15%, rgba(14, 165, 233, .12), transparent 70%), var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
p { line-height: 1.7; }
h1, h2, h3, p { margin-top: 0; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
h1 .serif, h2 .serif { color: var(--accent-soft); background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .08em; }
.eyebrow { font-size: .69rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px 20px; background: var(--accent); color: var(--accent-ink); z-index: 5; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 108px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.site-identity { display: inline-flex; align-items: center; gap: 16px; }
.site-identity:hover { text-decoration: none; }
.identity-copy { display: flex; flex-direction: column; gap: 6px; font-size: .7rem; color: var(--muted); line-height: 1.5; }
nav { display: flex; align-items: center; gap: 32px; font-size: .82rem; font-weight: 600; }
nav a:last-child { padding-left: 26px; border-left: 1px solid var(--line); }
nav a[aria-current="page"] { color: var(--accent-soft); text-decoration: underline; text-underline-offset: .4em; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-block: 64px 80px; align-items: center; }
h1 { font-size: clamp(3.8rem, 6.7vw, 6rem); font-weight: 550; line-height: 1.02; letter-spacing: -.065em; margin-bottom: 30px; }
.hero-intro { font-size: 1.18rem; font-weight: 550; margin-bottom: 12px; letter-spacing: -.02em; }
.hero-description { max-width: 520px; font-size: .94rem; color: var(--muted); }
.hero-actions, .connect-links { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.hero-social-links { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 16px 21px; background: var(--gradient-accent); color: var(--accent-ink); border: 0; border-radius: 2px; font-size: .8rem; font-weight: 600; box-shadow: 0 8px 24px -10px rgba(59, 130, 246, .7); transition: box-shadow .15s; }
.button:hover { background: var(--gradient-accent-hover); box-shadow: 0 10px 30px -8px rgba(96, 165, 250, .85); text-decoration: none; }
.text-link { font-size: .8rem; font-weight: 600; display: inline-flex; gap: 16px; align-items: center; }
.portrait-frame { display: block; flex: 0 0 68px; width: 68px; aspect-ratio: 1; padding: 2px; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, #bfdbfe 0%, #60a5fa 35%, #2563eb 65%, #7cc4ff 100%); box-shadow: 0 8px 32px -12px rgba(59, 130, 246, .65); }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; border-radius: 50%; }
.portrait-frame:focus-visible { outline-offset: 4px; }
.portrait-name { color: var(--accent-soft); font-size: .95rem; font-weight: 650; }
.hero-video { min-width: 0; margin: 0; }
.video-frame { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); box-shadow: 0 24px 70px -35px rgba(59, 130, 246, .5); }
.video-frame iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.hero-video figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: .7rem; }
.hero-video .text-link { font-size: .7rem; }
.focus-strip { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(59, 130, 246, .10), transparent 60%); }
.focus-content { min-height: 82px; display: flex; align-items: center; gap: 44px; }
.focus-content .eyebrow { white-space: nowrap; color: var(--muted); }
.focus-content p, .focus-content .eyebrow { margin-bottom: 0; }
.focus-content p { font-size: .9rem; font-weight: 500; }
.focus-content p span { color: var(--muted); margin-inline: 25px; }
.section { padding-block: 86px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 38px; }
.section-heading .text-link { margin-bottom: 8px; }
.section .eyebrow { margin-bottom: 15px; }
h2 { font-size: clamp(2.4rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 500; margin-bottom: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card { position: relative; padding: 27px 25px 22px; border: 1px solid var(--line); display: flex; flex-direction: column; background: var(--gradient-card); border-radius: 3px; }
.project-card.featured { background: var(--gradient-card-featured); border-color: #2c4a8a; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 50px; }
.project-number { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--muted); }
.tag { border: 1px solid var(--line-strong); color: var(--muted); border-radius: 30px; font-size: .57rem; padding: 5px 9px; }
.project-card h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.04em; font-weight: 550; margin-bottom: 18px; padding-right: 20px; }
.project-card h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.project-card:hover { border-color: var(--accent-soft); }
.card-arrow { position: absolute; right: 25px; font-size: 1.1rem; font-weight: 400; }
.project-card > p { font-size: .83rem; color: var(--muted); margin-bottom: 28px; }
.card-bottom { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; border-top: 1px solid var(--line-strong); padding-top: 17px; margin-top: auto; font-size: .59rem; color: var(--muted); line-height: 1.5; }
.selected-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.selected-work { border-top: 1px solid var(--line-strong); padding-block: 24px; }
.selected-work .eyebrow { color: var(--muted); margin-bottom: 10px; }
.selected-work h3 { font-size: 1.13rem; line-height: 1.35; letter-spacing: -.02em; font-weight: 550; margin-bottom: 10px; }
.selected-work p:not(.eyebrow) { font-size: .82rem; color: var(--muted); margin-bottom: 0; }
.selected-work a { color: var(--accent-soft); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
.selected-work a:hover { text-decoration-color: currentColor; }
.selected-work-list .selected-work p:not(.eyebrow) { font-size: .8rem; }
.talks-section { background: var(--gradient-band); border-block: 1px solid var(--line); }
.talks-layout { display: grid; grid-template-columns: .8fr 1.4fr; gap: 64px; }
.talks-intro > p:not(.eyebrow) { font-size: .9rem; color: var(--muted); max-width: 300px; margin-top: 24px; margin-bottom: 26px; }
.talk { position: relative; display: block; padding: 23px 34px 23px 0; border-top: 1px solid var(--line-strong); }
.talk:first-child { padding-top: 0; border-top: 0; }
.talk .eyebrow { display: block; font-size: .59rem; color: var(--muted); margin-bottom: 10px; }
.talk h3 { font-size: 1.05rem; line-height: 1.4; letter-spacing: -.02em; font-weight: 550; margin-bottom: 0; }
.talk p { font-size: .8rem; color: var(--muted); margin-bottom: 0; }
.talk:hover { text-decoration: none; }
.talk[href]:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.talk-arrow { position: absolute; top: 45px; right: 0; }
.talk:first-child .talk-arrow { top: 22px; }
.more-talks { border-top: 1px solid var(--line-strong); }
.more-talks summary { padding-block: 20px; cursor: pointer; color: var(--accent-soft); font-size: .85rem; font-weight: 600; }
.more-talks summary:hover { text-decoration: underline; text-underline-offset: .25em; }
.more-talks summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.see-less, .more-talks[open] .see-more { display: none; }
.more-talks[open] .see-less { display: inline; }
.more-talks-list > .talk:first-child { border-top: 1px solid var(--line-strong); padding-top: 23px; }
.more-talks-list > .talk:first-child .talk-arrow { top: 45px; }
.archive-link { margin-block: 12px 24px; color: var(--accent-soft); }
.connect-section { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; }
.connect-copy > p { color: var(--muted); font-size: .92rem; }
.connect-links { margin-block: 25px; }
.connect-copy .project-note { font-size: .76rem; max-width: 410px; }
.site-footer { display: flex; gap: 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 28px; }
.footer-identity { gap: 0; }
.resume-page { width: min(980px, calc(100% - 96px)); margin-block: 40px; padding: clamp(32px, 5vw, 56px); background: linear-gradient(160deg, rgba(18, 40, 90, .28), transparent 24%), var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 20px 60px -30px rgba(0, 0, 0, .6); font-size: .92rem; line-height: 1.6; }
.resume-intro { padding-bottom: 24px; border-bottom: 1px solid var(--line-strong); }
.resume-page h1 { font-size: clamp(2.5rem, 5vw, 3.25rem); color: var(--ink); font-weight: 650; line-height: 1.05; letter-spacing: -.05em; margin-bottom: 16px; }
.resume-summary { max-width: 800px; margin-block: 18px 0; color: var(--muted); font-size: .94rem; }
.resume-download { margin-top: 20px; }
.resume-page .resume-download { color: var(--accent-ink); text-decoration: none; }
.resume-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .78rem; color: var(--muted); }
.resume-page a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.resume-section { padding-top: 30px; }
.resume-section-heading { border-bottom: 1px solid var(--line-strong); padding-bottom: 9px; margin-bottom: 16px; }
.resume-page h2 { font-size: .91rem; font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft); }
.resume-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 28px; margin: 0; }
.resume-skills > div { border-top: 1px solid var(--line); padding-top: 8px; }
.resume-skills dt, .resume-skills dd { display: block; font-size: .84rem; }
.resume-skills dt { color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.resume-skills dt::after { content: none; }
.resume-skills dd { margin: 3px 0 0; color: var(--muted); }
.resume-role { padding-block: 13px; border-bottom: 1px solid var(--line); }
.resume-role-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 10px; }
.resume-role-heading .eyebrow { color: var(--accent-soft); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.resume-role h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; margin-bottom: 0; }
.resume-role .resume-date { flex-shrink: 0; font-size: .8rem; text-align: right; margin-bottom: 0; }
.resume-date span { display: block; }
.resume-role > p, .resume-role li { font-size: .86rem; line-height: 1.55; }
.resume-date { color: var(--muted); }
.resume-role ul { margin: 0; padding-left: 20px; }
.resume-role li + li { margin-top: 7px; }
.resume-role li::marker { color: var(--accent-soft); }
.resume-role > p:last-child { margin-bottom: 0; }
.resume-page .selected-work-grid { display: block; }
.resume-page .selected-work { border: 0; padding-block: 10px; }
.resume-page .selected-work .eyebrow { font-size: .78rem; font-weight: 400; letter-spacing: 0; text-transform: none; margin-bottom: 2px; }
.resume-page .selected-work h3 { font-size: .95rem; font-weight: 650; letter-spacing: 0; margin-bottom: 6px; }
.resume-page .selected-work p:not(.eyebrow) { font-size: .86rem; color: var(--muted); line-height: 1.55; }

@media (min-width: 1500px) {
  .hero { gap: 72px; }
}

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 36px; padding-block: 64px; }
  h1 { font-size: 4.3rem; }
  .hero-actions { gap: 20px; }
  .project-card { padding-inline: 20px; }
  .tag { font-size: .53rem; }
  .project-card h3 { font-size: 1.3rem; }
  .card-arrow { right: 20px; }
  .focus-content { gap: 28px; }
  .focus-content p span { margin-inline: 14px; }
  .talks-layout { gap: 32px; }
  .connect-section { gap: 36px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 88px; flex-wrap: wrap; padding-block: 24px; gap: 20px; }
  nav { flex-wrap: wrap; gap: 16px 18px; font-size: .73rem; }
  nav a:last-child { padding-left: 0; border-left: 0; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 52px; }
  h1 { font-size: clamp(3.5rem, 11vw, 5rem); }
  .hero-description { max-width: 560px; }
  .focus-content { padding-block: 23px; flex-direction: column; align-items: start; gap: 9px; }
  .focus-content p { font-size: .82rem; }
  .focus-content p span { margin-inline: 8px; }
  .section { padding-block: 56px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; margin-bottom: 25px; }
  .project-grid { grid-template-columns: 1fr; }
  .selected-work-grid { grid-template-columns: 1fr; }
  .project-card { padding: 25px; }
  .card-top { margin-bottom: 32px; }
  .project-card h3 { font-size: 1.6rem; }
  .project-card h3 br { display: none; }
  .project-card > p { max-width: 520px; }
  .tag { font-size: .6rem; }
  .card-arrow { right: 25px; }
  .talks-layout, .connect-section { grid-template-columns: 1fr; gap: 36px; }
  .talks-intro > p:not(.eyebrow) { max-width: 400px; }
  .talk:first-child { border-top: 1px solid var(--line-strong); padding-top: 23px; }
  .talk:first-child .talk-arrow { top: 45px; }
  .site-footer { flex-wrap: wrap; gap: 18px 24px; }
  .resume-page { width: calc(100% - 40px); margin-block: 24px; padding: 28px 20px; }
  .resume-skills { grid-template-columns: 1fr; gap: 10px; }
  .resume-role-heading { flex-direction: column; gap: 4px; }
  .resume-role .resume-date { text-align: left; }
}

@media (max-width: 380px) {
  .site-header { flex-direction: column; justify-content: center; gap: 16px; padding-block: 20px; }
  nav { width: 100%; justify-content: space-between; gap: 12px; font-size: .68rem; }
  .hero-actions { align-items: start; flex-direction: column; }
  .focus-content p { line-height: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

@media print {
  @page { size: letter; margin: .52in .58in; }
  :root { color-scheme: light; }
  body { background: white; color: black; }
  body:has(.resume-page) { background: white; color: #171717; font-family: Arial, Helvetica, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .resume-page { width: auto; max-width: none; margin: 0; padding: 0; background: white; border: 0; border-radius: 0; box-shadow: none; font-size: 9pt; line-height: 1.42; }
  body:has(.resume-page) .site-header, body:has(.resume-page) .site-footer, body:has(.resume-page) .skip-link { display: none; }
  .resume-intro { padding-bottom: 12pt; border-color: #9ca3af; }
  .resume-page h1 { color: #111827; font-size: 26pt; margin-bottom: 7pt; }
  .resume-page h2 { color: #1e3a8a; font-size: 9pt; }
  .resume-summary { color: #374151; font-size: 9pt; line-height: 1.42; margin-top: 9pt; }
  .resume-contact { gap: 3pt 12pt; font-size: 8pt; }
  .resume-download { display: none; }
  .resume-page a { color: #111827; text-decoration: none; }
  .resume-section { padding-top: 14pt; }
  .resume-section-heading { border-color: #9ca3af; padding-bottom: 4pt; margin-bottom: 7pt; break-after: avoid; }
  .resume-skills { gap: 6pt 18pt; }
  .resume-skills > div { border-color: #d1d5db; padding-top: 4pt; break-inside: avoid; }
  .resume-skills dt { color: #111827; font-size: 7pt; }
  .resume-skills dd { color: #374151; font-size: 8pt; margin-top: 1pt; }
  .resume-role { padding-block: 6pt; border-color: #d1d5db; break-inside: avoid; }
  .resume-role-heading { flex-direction: row; gap: 14pt; margin-bottom: 5pt; break-after: avoid; }
  .resume-role-heading .eyebrow { color: #1e3a8a; font-size: 7pt; }
  .resume-role h3 { color: #111827; font-size: 9pt; }
  .resume-role .resume-date { color: #374151; font-size: 7.5pt; text-align: right; }
  .resume-role > p, .resume-role li { color: #374151; font-size: 8pt; line-height: 1.35; }
  .resume-role li + li { margin-top: 3pt; }
  .resume-role li::marker { color: #1e3a8a; }
  .resume-page .selected-work { border-color: #d1d5db; padding-block: 5pt; break-inside: avoid; }
  .resume-page .selected-work .eyebrow { color: #1e3a8a; font-size: 7pt; }
  .resume-page .selected-work h3 { color: #111827; font-size: 8.5pt; }
  .resume-page .selected-work p:not(.eyebrow) { color: #374151; font-size: 8pt; line-height: 1.35; }
}
