:root {
  --void: #07090d;
  --surface: #0c1017;
  --surface-raised: #111722;
  --surface-soft: #161d29;
  --text: #f1f5f7;
  --muted: #97a3b4;
  --line: rgba(184, 206, 229, 0.14);
  --cyan: #76e5f4;
  --violet: #ad8dff;
  --lime: #c9f36d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--void); color: var(--text); font-family: "DM Sans", sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 20; padding: .6rem .9rem; background: var(--cyan); color: var(--void); font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 10; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 clamp(1.25rem, 4vw, 4.5rem); background: rgba(7, 9, 13, .78); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.monogram { color: var(--text); font: 500 1.2rem "DM Mono", monospace; letter-spacing: -.12em; }
.monogram span { color: var(--cyan); }
nav { display: flex; gap: clamp(.9rem, 2.3vw, 2.3rem); font: 500 .72rem "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
nav a, .header-link { color: var(--muted); transition: color .18s ease; }
nav a:hover, .header-link:hover { color: var(--cyan); }
.header-link { font-size: .78rem; }
.header-link span { color: var(--cyan); font-size: 1.1rem; }

.section-shell { padding-right: clamp(1.25rem, 9vw, 10rem); padding-left: clamp(1.25rem, 9vw, 10rem); }
.hero { position: relative; min-height: calc(100vh - 76px); isolation: isolate; overflow: hidden; padding-top: clamp(5.5rem, 12vw, 10rem); padding-bottom: 2rem; background: radial-gradient(circle at 76% 26%, rgba(70, 165, 187, .17), transparent 20rem), radial-gradient(circle at 82% 90%, rgba(173, 141, 255, .12), transparent 26rem), var(--void); }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; opacity: .38; background-image: linear-gradient(rgba(118, 229, 244, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(118, 229, 244, .07) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, black, transparent 78%); }
.hero::after { position: absolute; right: clamp(-14rem, -10vw, -6rem); bottom: -14rem; z-index: -1; width: clamp(30rem, 65vw, 65rem); aspect-ratio: 1; content: ""; border: 1px solid rgba(118, 229, 244, .2); border-radius: 50%; box-shadow: 0 0 0 4rem rgba(118, 229, 244, .025), 0 0 0 8rem rgba(118, 229, 244, .018), 0 0 100px rgba(118, 229, 244, .14); }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.55rem; color: var(--muted); font: 500 .68rem "DM Mono", monospace; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { display: block; width: 1.9rem; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(15rem, .55fr); gap: 4rem; align-items: end; }
.hero h1 { max-width: 950px; margin: 0; font: 500 clamp(3.25rem, 7.4vw, 7.6rem)/.94 "Playfair Display", serif; letter-spacing: -.06em; text-wrap: balance; }
.hero h1::selection, .statement-text::selection { color: var(--void); background: var(--cyan); }
.hero-copy { max-width: 38rem; margin: 2rem 0; color: var(--muted); font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.7rem; }
.button { display: inline-flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border: 1px solid var(--cyan); font: 500 .76rem "DM Mono", monospace; letter-spacing: .03em; text-transform: uppercase; transition: transform .18s ease, background .18s ease; }
.button-primary { background: var(--cyan); color: var(--void); }
.button-primary:hover { background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.text-link { padding-bottom: .22rem; border-bottom: 1px solid rgba(241, 245, 247, .55); color: var(--text); font-size: .85rem; }
.text-link:hover { border-color: var(--cyan); color: var(--cyan); }
.hero-note { max-width: 23rem; padding: 1.2rem; border: 1px solid rgba(118, 229, 244, .26); background: rgba(12, 16, 23, .6); box-shadow: inset 0 1px rgba(255, 255, 255, .04); backdrop-filter: blur(10px); }
.note-label { margin: 0; color: var(--cyan); font: 500 .65rem "DM Mono", monospace; letter-spacing: .11em; text-transform: uppercase; }
.hero-note p:not(.note-label) { margin: .8rem 0 0; font-size: 1.03rem; }
.pulse-row { margin-top: 1.65rem; color: var(--muted); font-size: .75rem; }
.pulse-row i { display: inline-block; width: .5rem; height: .5rem; margin-right: .4rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.hero-index { display: flex; align-items: center; gap: .8rem; margin-top: clamp(5rem, 11vw, 11rem); color: var(--muted); font: .62rem "DM Mono", monospace; }
.hero-index div { width: 7rem; height: 1px; background: var(--line); }

.statement { position: relative; overflow: hidden; padding-top: clamp(5rem, 10vw, 10rem); padding-bottom: clamp(5rem, 10vw, 10rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.statement::after { position: absolute; right: 7%; top: 50%; width: 25rem; height: 25rem; content: ""; border: 1px solid rgba(173, 141, 255, .18); border-radius: 50%; transform: translateY(-50%); box-shadow: 0 0 80px rgba(173, 141, 255, .08); }
.statement-text { position: relative; max-width: 67rem; margin: 0; font: 500 clamp(2.1rem, 4.5vw, 4.7rem)/1.08 "Playfair Display", serif; letter-spacing: -.04em; }
.statement-text em { color: var(--cyan); font-style: normal; }

.research-section, .writing-section, .experience-section, .updates { padding-top: clamp(5rem, 8vw, 8rem); padding-bottom: clamp(5rem, 8vw, 8rem); }
.section-heading { display: grid; grid-template-columns: 1fr .55fr; gap: 3rem; align-items: end; margin-bottom: 3.2rem; }
.section-heading h2, .updates h2, .contact h2 { margin: 0; font: 500 clamp(2.35rem, 4.6vw, 4.6rem)/1 "Playfair Display", serif; letter-spacing: -.05em; }
.section-heading > p, .updates-intro > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .95rem; }
.research-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.feature-card { min-height: 25rem; display: flex; flex-direction: column; padding: 1.45rem; background: var(--surface-raised); transition: background .2s ease, transform .2s ease; }
.feature-card:hover { z-index: 1; background: #192333; transform: translateY(-4px); }
.feature-card-main { background: linear-gradient(145deg, #172735, #0f141e 62%); }
.card-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font: .62rem "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.feature-card h3 { max-width: 25rem; margin: auto 0 1rem; font: 500 clamp(1.5rem, 2.4vw, 2.35rem)/1.06 "Playfair Display", serif; letter-spacing: -.035em; }
.feature-card p { margin: 0 0 1.65rem; color: var(--muted); font-size: .89rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-row span { padding: .24rem .48rem; border: 1px solid rgba(118, 229, 244, .26); color: #c6e5e9; border-radius: 1rem; font: .6rem "DM Mono", monospace; }

.writing-section { border-top: 1px solid var(--line); background: var(--surface); }.compact-heading { display: block; }.work-list { border-top: 1px solid var(--line); }
.work-item { display: grid; grid-template-columns: 8rem minmax(0, 1fr) 2rem; gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); transition: padding .2s ease; }
.work-item:hover { padding-left: .7rem; background: linear-gradient(90deg, rgba(118, 229, 244, .055), transparent); }
.work-year, .work-type { color: var(--muted); font: .65rem "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }.work-type { margin: 0 0 .45rem; color: var(--cyan); }
.work-item h3 { max-width: 49rem; margin: 0; font: 500 clamp(1.25rem, 2vw, 2rem)/1.15 "Playfair Display", serif; letter-spacing: -.03em; }
.work-title-link:hover, .inline-link:hover { color: var(--cyan); }.inline-link { color: var(--text); border-bottom: 1px solid var(--violet); white-space: nowrap; }
.work-item div p:last-child { max-width: 44rem; margin: .55rem 0 0; color: var(--muted); font-size: .88rem; }.arrow { align-self: center; color: var(--cyan); font-size: 1.5rem; }

.experience-section { background: #0a0e14; border-top: 1px solid var(--line); }.timeline { border-top: 1px solid var(--line); }.timeline article { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; padding: 1.65rem 0; border-bottom: 1px solid var(--line); }.timeline article:hover { background: rgba(173, 141, 255, .035); }.timeline-date { color: var(--violet); font: .67rem "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }.timeline h3 { margin: 0; font: 600 1.07rem/1.2 "DM Sans", sans-serif; }.timeline p { max-width: 46rem; margin: .45rem 0 0; color: var(--muted); font-size: .91rem; }

.updates { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; background: var(--surface); }.updates-intro { position: sticky; top: 6.5rem; align-self: start; }.updates-intro > p:not(.eyebrow) { max-width: 19rem; margin-top: 1.2rem; }.updates-list { border-top: 1px solid var(--line); }.update { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }.update time { color: var(--violet); font: .64rem "DM Mono", monospace; text-transform: uppercase; }.update h3 { margin: 0 0 .3rem; font: 600 1rem "DM Sans", sans-serif; }.update p { margin: 0; color: var(--muted); font-size: .88rem; }

.contact { position: relative; overflow: hidden; padding-top: clamp(5rem, 10vw, 9rem); padding-bottom: clamp(5rem, 10vw, 9rem); background: linear-gradient(135deg, #102635, #14202e 55%, #241c39); border-top: 1px solid rgba(118, 229, 244, .25); }.contact::after { position: absolute; right: -8rem; bottom: -12rem; width: 36rem; height: 36rem; content: ""; border: 1px solid rgba(118, 229, 244, .35); border-radius: 50%; box-shadow: 0 0 0 4rem rgba(118, 229, 244, .035), 0 0 80px rgba(118, 229, 244, .16); }.contact h2 { position: relative; max-width: 65rem; font-size: clamp(2.7rem, 6vw, 6.4rem); }.contact-email { position: relative; display: inline-block; margin-top: 3rem; padding-bottom: .2rem; border-bottom: 1px solid var(--cyan); color: var(--cyan); font-size: clamp(1rem, 2vw, 1.5rem); }.contact-email:hover { color: var(--lime); border-color: var(--lime); }.contact-email span { margin-left: .4rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem clamp(1.25rem, 4vw, 4.5rem); background: #050609; color: var(--muted); font-size: .69rem; }.site-footer p { margin: 0; }.site-footer div { display: flex; gap: 1.2rem; }.site-footer a:hover { color: var(--cyan); }

@media (max-width: 760px) { .site-header { min-height: 66px; }.site-header nav { display: none; }.header-link { font-size: .72rem; }.hero { min-height: auto; }.hero-layout, .section-heading, .updates { grid-template-columns: 1fr; gap: 2rem; }.hero h1 { font-size: clamp(3.05rem, 14vw, 5.5rem); }.hero-note { max-width: 24rem; }.research-grid { grid-template-columns: 1fr; }.feature-card { min-height: 18rem; }.work-item { grid-template-columns: 1fr 1.5rem; gap: .55rem; }.work-year { grid-column: 1 / -1; }.timeline article { grid-template-columns: 1fr; gap: .35rem; }.updates-intro { position: static; }.site-footer { flex-direction: column; }.site-footer p:last-child { display: none; } }

/* Light academic reading surface: dark only where emphasis helps. */
:root { --paper: #f7f8fa; --paper-warm: #eff2f3; --ink: #15212a; --ink-muted: #5e6d78; --paper-line: rgba(21, 33, 42, .15); --academic-blue: #0e6577; }
body { background: var(--paper); color: var(--ink); }
.site-header { background: rgba(247, 248, 250, .88); border-bottom-color: var(--paper-line); }
.monogram { color: var(--ink); }.monogram span { color: var(--academic-blue); } nav a, .header-link { color: var(--ink-muted); } nav a:hover, .header-link:hover { color: var(--academic-blue); }.header-link span { color: var(--academic-blue); }
.hero { background: radial-gradient(circle at 76% 26%, rgba(118, 229, 244, .17), transparent 20rem), radial-gradient(circle at 82% 90%, rgba(173, 141, 255, .12), transparent 26rem), #0b1118; }.hero h1, .hero .text-link { color: #f6f8f9; }.hero-copy, .hero .eyebrow, .hero-note, .hero-index { color: #b6c3cd; }.hero-note { border-color: rgba(118, 229, 244, .3); background: rgba(15, 24, 34, .76); }.text-link { border-bottom-color: rgba(246, 248, 249, .55); }
.statement { background: #f0f4f4; border-color: var(--paper-line); }.statement .eyebrow { color: var(--ink-muted); }.statement-text { color: var(--ink); }.statement-text em { color: var(--academic-blue); }.statement::after { border-color: rgba(14, 101, 119, .16); box-shadow: 0 0 80px rgba(14, 101, 119, .08); }
.research-section { background: var(--paper); }.eyebrow, .section-heading > p, .updates-intro > p:not(.eyebrow) { color: var(--ink-muted); }.eyebrow span { background: var(--academic-blue); box-shadow: none; }.section-heading h2, .updates h2, .contact h2 { color: var(--ink); }
.research-grid { border-color: var(--paper-line); background: var(--paper-line); }.feature-card { background: #ffffff; color: var(--ink); }.feature-card-main { background: linear-gradient(145deg, #e8f4f4, #ffffff 70%); }.feature-card:hover { background: #f5fbfb; }.card-top, .feature-card p { color: var(--ink-muted); }.tag-row span { border-color: rgba(14, 101, 119, .25); color: var(--academic-blue); }
.writing-section { background: #ffffff; border-top-color: var(--paper-line); }.work-list, .work-item { border-color: var(--paper-line); }.work-item:hover { background: linear-gradient(90deg, rgba(14, 101, 119, .06), transparent); }.work-year { color: var(--ink-muted); }.work-type, .arrow { color: var(--academic-blue); }.work-item div p:last-child { color: var(--ink-muted); }.inline-link { color: var(--academic-blue); border-bottom-color: var(--academic-blue); }
.experience-section { background: #e8eff1; border-top-color: var(--paper-line); }.timeline, .timeline article { border-color: var(--paper-line); }.timeline article:hover { background: rgba(14, 101, 119, .045); }.timeline-date { color: var(--academic-blue); }.timeline p { color: var(--ink-muted); }
.updates { background: var(--paper); }.updates-list, .update { border-color: var(--paper-line); }.update time { color: var(--academic-blue); }.update p { color: var(--ink-muted); }
.contact { background: linear-gradient(135deg, #102c38, #174958 55%, #233450); }.contact h2 { color: #f6f8f9; }.contact .eyebrow { color: #c3d8dc; }.contact .eyebrow span { background: var(--cyan); }.site-footer { background: #0b1118; }

/* About: education, awards, skills. */
.about-section { padding-top: clamp(5rem, 8vw, 8rem); padding-bottom: clamp(5rem, 8vw, 8rem); background: #ffffff; border-top: 1px solid var(--paper-line); }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--paper-line); background: var(--paper-line); }
.about-card { display: flex; flex-direction: column; padding: 1.6rem 1.45rem; background: var(--paper); color: var(--ink); }
.about-card h3 { margin: 0 0 1rem; color: var(--academic-blue); font: 500 .68rem "DM Mono", monospace; letter-spacing: .13em; text-transform: uppercase; }
.about-card h3 + p, .about-card ul + h3 { margin-top: 0; }
.about-card ul + h3 { margin-top: 1.6rem; }
.about-card ul { margin: 0; padding: 0; list-style: none; }
.about-card li { display: flex; flex-direction: column; gap: .2rem; padding: 0 0 1.1rem; }
.about-card li + li { padding-top: 1.1rem; border-top: 1px solid var(--paper-line); }
.about-card li strong { font: 600 1.02rem/1.25 "DM Sans", sans-serif; }
.about-card li span, .about-card p { color: var(--ink-muted); font-size: .88rem; }
.about-card p { margin: 0; line-height: 1.6; }
.about-card .tag-row { margin-top: auto; padding-top: 1.4rem; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } }
