:root {
  color-scheme: light;
  --sky: #d8edfa; --paper: #fffaf7; --pink: #efacd0;
  --ink: #193d5b; --ink-soft: #4c657a; --line: rgb(25 61 91 / 18%);
  --content-width: 1120px; --page-gutter: clamp(1.25rem, 5vw, 3rem);
  --surface: rgb(255 250 247 / 85%); --surface-border: rgb(255 255 255 / 80%);
  --ease-out: cubic-bezier(.22,.72,.2,1); --banner-height: clamp(14rem, 27svh, 21rem);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 7.5rem; }
body { position: relative; isolation: isolate; min-width: 320px; margin: 0; color: var(--ink); font: 1rem/1.7 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible, input:focus-visible { outline: 3px solid #ab3a79; outline-offset: 5px; }
::selection { background: #edbbd5; color: #15364d; }
.content-width { width: min(calc(100% - 2 * var(--page-gutter)), var(--content-width)); margin-inline: auto; }
body::before { position: fixed; z-index: -3; inset: 0; content: ''; background: url('../images/sky-preview.jpg?v=20261013-7') center 34% / cover no-repeat; pointer-events: none; }
.sky-background { position: fixed; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 34%; pointer-events: none; transition: opacity 850ms ease; }
html[data-image-loading] .sky-background { opacity: 0; }
html[data-image-loaded] .sky-background { opacity: 1; }
body::after { position: fixed; z-index: -1; inset: 0; content: ''; background: rgb(249 249 252 / 68%); -webkit-backdrop-filter: blur(19px) saturate(.82); backdrop-filter: blur(19px) saturate(.82); -webkit-mask-image: linear-gradient(180deg, transparent var(--blur-ramp-start,22vh), rgb(0 0 0 / 65%) var(--blur-ramp-middle,30vh), #000 var(--blur-ramp-end,42vh)); mask-image: linear-gradient(180deg, transparent var(--blur-ramp-start,22vh), rgb(0 0 0 / 65%) var(--blur-ramp-middle,30vh), #000 var(--blur-ramp-end,42vh)); pointer-events: none; }
.skip-link { position: fixed; z-index: 20; top: .75rem; left: .75rem; padding: .6rem 1rem; background: white; color: var(--ink); transform: translateY(-160%); border-radius: .4rem; }
.skip-link:focus { transform: none; }
h1,h2,h3,p,figure { margin-top: 0; }
h2,h3 { font-family: Georgia,'Times New Roman',serif; font-weight: 400; letter-spacing: -.035em; line-height: 1.12; }
h2 { margin-bottom: 0; font-size: clamp(2.3rem,4vw,3.5rem); }
h3 { font-size: 1.7rem; }
.eyebrow { margin: 0 0 .9rem; color: var(--ink-soft); font-size: .67rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.section-note { max-width: 50ch; margin: .9rem 0 0; color: var(--ink-soft); font-size: .91rem; }
.section-heading { margin-bottom: 2rem; }
.masthead { display: grid; position: relative; height: var(--banner-height); place-items: center; overflow: hidden; transition: height 1400ms var(--ease-out); }
.masthead__inner { width: 100%; padding: 0 var(--page-gutter) 1.1rem; text-align: center; }
.masthead__wash { display: none; }
.wordmark { width: max-content; margin: 0 auto; color: #173f70; font: 400 clamp(3.25rem,6.2vw,5.5rem)/1.12 Georgia,'Times New Roman',serif; letter-spacing: -.055em; white-space: nowrap; text-shadow: 0 2px 24px rgb(255 250 247 / 35%); }
.initial { font-family: 'Cambria Math','STIXGeneral','Times New Roman',serif; letter-spacing: -.075em; }
.wordmark::after { content: ''; display: block; height: 1px; width: 100%; margin: .14em auto 0; background: linear-gradient(90deg,transparent,#173f70 19.1%,#173f70 80.9%,transparent); opacity: .7; transform-origin: center; }
html[data-intro='name'] { --banner-height: 100svh; }
html[data-intro='name'] .wordmark { animation: name-reveal 2000ms var(--ease-out) both; }
html[data-intro='name'] .wordmark::after { animation: underline-reveal 2000ms var(--ease-out) both; }
@keyframes name-reveal { from { opacity: 0; transform: translateY(2.5rem); filter: blur(16px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes underline-reveal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.site-nav { position: sticky; z-index: 10; top: .8rem; display: flex; align-items: center; gap: 1.4rem; width: min(calc(100% - 2 * var(--page-gutter)),var(--content-width)); min-height: 4rem; margin: -1.5rem auto 0; padding: .65rem 1.2rem; border: 1px solid rgb(255 255 255 / 85%); border-radius: 1rem; background: rgb(255 253 251 / 84%); box-shadow: 0 8px 28px rgb(25 61 91 / 6%); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: opacity 650ms ease, transform 850ms var(--ease-out); }
.site-nav__home, .site-footer__name { flex-shrink: 0; font: 600 1.08rem Georgia,serif; text-decoration: none; }
.site-nav__links { display: flex; flex: 1; align-items: center; justify-content: center; gap: clamp(.8rem,1.7vw,1.6rem); min-width: 0; }
.site-nav__links a { padding-block: .2rem; color: #4c657a; font-size: .81rem; white-space: nowrap; text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav__links a:hover, .site-nav__links a[aria-current] { color: var(--ink); border-color: #a83b78; }
.mode-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .45rem; min-height: 2.5rem; max-width: 100%; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--ink); font-size: .65rem; white-space: nowrap; cursor: pointer; }
.mode-toggle__track { position: relative; display: block; width: 1.8rem; height: 1rem; border-radius: 1rem; background: #8ebcd0; }
.mode-toggle__thumb { position: absolute; left: 2px; top: 2px; width: calc(1rem - 4px); height: calc(1rem - 4px); border-radius: 50%; background: white; transition: transform 200ms ease; box-shadow: 0 1px 3px #41647744; }
.mode-toggle[aria-checked='true'] .mode-toggle__thumb { transform: translateX(.8rem); }
.mode-toggle__option--immersive { font-weight: 700; }
.mode-toggle[aria-checked='true'] .mode-toggle__option--immersive { font-weight: 400; }
.mode-toggle[aria-checked='true'] .mode-toggle__option--reading { font-weight: 700; }
html[data-intro='name'] .site-nav { opacity: 0; transform: translateY(1rem); pointer-events: none; }
.page-content { padding-top: clamp(4rem,8vw,7rem); transition: opacity 1000ms ease, transform 1400ms var(--ease-out); }
html[data-intro='name'] .page-content { opacity: 0; transform: translateY(3rem); }
.intro-copy { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: clamp(2rem,5vw,5rem); }
.intro-copy__heading { min-width: 0; }
.signature-name--image { width: min(75%,18rem); margin: 0 0 1.7rem -.65rem; }
.signature-name--image svg { display: block; width: 100%; height: auto; opacity: .98; }
.signature-name__plain { display: none; }
.intro-copy__lead { max-width: 28ch; margin: 0 0 1.3rem; font: 400 clamp(1.65rem,2.6vw,2.25rem)/1.28 Georgia,serif; letter-spacing: -.025em; }
.intro-copy__lead em { font-style: normal; }
.intro-copy__heading > p:not(.eyebrow):not(.intro-copy__lead) { max-width: 49ch; color: #34536c; font-size: .95rem; }
.intro-copy__links { display: flex; flex-wrap: wrap; gap: 1.7rem; margin-top: 1.6rem; }
.text-link { display: inline-flex; gap: .6rem; align-items: center; font-size: .84rem; font-weight: 650; text-decoration: none; border-bottom: 1px solid #7993a5; padding-bottom: .2rem; }
.text-link span { transition: transform 200ms ease; }
.text-link:hover span { transform: translate(2px,-2px); }
.intro-copy__photo { min-width: 0; position: relative; }
.intro-copy__portrait { width: 100%; aspect-ratio: 1.28; margin: 0; overflow: hidden; border-radius: 5px; border: .5rem solid #fffdfa; box-shadow: 0 24px 50px rgb(25 61 91 / 14%); }
.intro-copy__portrait-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro-copy__portrait-image--immersive { object-position: center; transform: scale(1.035); }
.intro-copy__portrait-image--reading { display: none; object-position: center 34%; transform: scale(1.08); }
.portrait-caption { display: block; margin-top: .75rem; color: #526d82; font: italic .85rem Georgia,serif; text-align: right; }
.education,.experience,.skills,.interests { margin-top: clamp(5.5rem,10vw,9rem); }
.education { display: grid; grid-template-columns: .65fr 1.6fr; gap: 3rem; }
.education .section-heading { margin: .8rem 0 0; }
.education-record { border-top: 2px solid var(--ink); }
.education-card { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 1.5rem; padding: 2rem 0 1.5rem; }
.education-card__meta { margin: 0 0 1.1rem; font-size: .75rem; color: var(--ink-soft); }
.education-card__meta span { padding-inline: .3em; }
.education-card h3 { margin-bottom: 1rem; font-size: clamp(1.5rem,2.5vw,2rem); }
.education-card__details > p:not(.education-card__meta) { margin-bottom: .8rem; font-size: .9rem; line-height: 1.65; }
.education-card__note { color: #536d82; font-size: .78rem !important; }
.education-card__logo { width: 4.5rem; height: auto; margin-top: 2.8rem; }
.coursework { margin-top: 1.5rem; max-width: 62ch; }
.coursework summary { display: flex; justify-content: space-between; gap: 1rem; width: fit-content; min-width: 12rem; font-size: .79rem; cursor: pointer; list-style: none; }
.coursework summary::-webkit-details-marker { display: none; }
.coursework p { margin: .6rem 0 0; color: var(--ink-soft); font-size: .82rem; }
.education-earlier { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; margin: 0; padding: 1.2rem 0; border-block: 1px solid var(--line); color: var(--ink-soft); font-size: .76rem; }
.education-earlier strong { color: var(--ink); font-weight: 600; }
.section-heading--projects { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.experience-controls { display: none; flex-shrink: 0; align-items: center; gap: .55rem; }
.experience--ready .experience-controls { display: flex; }
.experience-controls > span { margin-right: .5rem; color: var(--ink-soft); font-size: .75rem; font-variant-numeric: tabular-nums; }
.experience-controls__button { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fffaf7b3; color: var(--ink); cursor: pointer; transition: background 200ms ease,transform 200ms ease; }
.experience-controls__button:not(:disabled):hover { background: var(--ink); color: white; transform: translateY(-2px); }
.experience-controls__button:disabled { opacity: .3; cursor: default; }
.experience-track { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; align-items: stretch; gap: 1.4rem; overflow-x: auto; overscroll-behavior-inline: contain; padding: .25rem 0 1.8rem; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #6d8ca480 transparent; -webkit-overflow-scrolling: touch; }
.project-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid rgb(25 61 91 / 12%); border-radius: 8px; background: #fffdfa; box-shadow: 0 9px 25px rgb(25 61 91 / 5%); overflow: hidden; scroll-snap-align: start; transition: box-shadow 350ms ease; }
.project-card:hover { box-shadow: 0 18px 32px rgb(25 61 91 / 12%); }
.experience-cover { position: relative; isolation: isolate; height: 11.5rem; flex: 0 0 11.5rem; padding: 1.6rem; overflow: hidden; background: #dcecf8; color: #306680; }
.experience-cover .project-mark { position: relative; z-index: 2; display: block; width: 2.8rem; height: 2.8rem; object-fit: contain; border-radius: 5px; }
.cover-art { position: absolute; inset: 0 0 0 40%; opacity: .85; transition: transform 650ms var(--ease-out); }
.cover-art svg { width: 100%; height: 100%; object-fit: cover; }
.project-card:hover .cover-art { transform: translateX(-5px); }
.cover-subject { position: absolute; left: 1.6rem; bottom: 1.3rem; max-width: 70%; font: 500 .66rem/1.2 -apple-system,BlinkMacSystemFont,sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.cover-number { position: absolute; right: 1.3rem; bottom: .7rem; font: 400 2.8rem/1 Georgia,serif; opacity: .45; }
.experience-card--research .experience-cover { background: #15384d; color: #b1e8ec; }
.experience-card--research .project-mark { border: 1px solid #bad4da45; }
.experience-card--poker .experience-cover { background: #dcecf8; }
.poker-cards { display: flex; position: absolute; width: 12rem; height: 8rem; top: 2.8rem; left: 5%; }
.poker-cards > span { position: absolute; width: 5.4rem; height: 7rem; padding: .6rem; border: 1px solid #a0becd; border-radius: .35rem; background: #fffdfb; font: 1.7rem Georgia,serif; transform: rotate(-18deg); }
.poker-cards > span:nth-child(2) { left: 2.4rem; top: -.6rem; color: #ae5679; transform: rotate(1deg); }
.poker-cards > span:nth-child(3) { left: 4.8rem; transform: rotate(19deg); }
.poker-cards small { display: block; position: absolute; right: .6rem; bottom: .5rem; font-size: 1.2rem; }
.experience-card--datafest .experience-cover { background: #f0e6dd; color: #9d654f; }
.datafest-cover-time { position: absolute; right: 20%; top: .25rem; font: 6rem/1 Georgia,serif; letter-spacing: -.07em; }
.datafest-cover-time span { display: block; margin-top: .4rem; text-align: right; font: .75rem -apple-system,sans-serif; letter-spacing: .1em; }
.experience-card--trading .experience-cover { background: #33354e; color: #ded3f3; }
.experience-cover .project-mark--prosperity { width: 6rem; height: 3rem; object-fit: cover; }
.trading-cover-text { display: flex; flex-direction: column; position: absolute; right: 2rem; top: 1.4rem; gap: .5rem; font: 600 1.25rem/1.2 ui-monospace,monospace; letter-spacing: -.04em; opacity: .45; }
.trading-cover-text span:nth-child(2) { transform: translateX(-1rem); }
.trading-cover-text span:nth-child(3) { transform: translateX(-2rem); }
.experience-card--lidar .experience-cover { background: #d9e8e3; color: #3d7166; }
.experience-cover .project-mark--seyond { width: 4rem; background: white; padding: .25rem; }
.experience-card__body { display: flex; flex: 1; min-height: 28rem; flex-direction: column; padding: 1.65rem 1.8rem 1.8rem; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: .15rem .75rem; margin: 0 0 1.1rem; font-size: .69rem; font-weight: 650; color: #36566f; }
.project-card__meta > span { color: #617688; font-weight: 400; }
.project-card h3 { margin: 0 0 1rem; font-size: clamp(1.65rem,2.5vw,2.1rem); }
.project-card__description { margin: 0 0 1.3rem; color: #3d566c; font-size: .88rem; line-height: 1.7; }
.research-card__status { align-self: start; margin: -.3rem 0 1rem; padding-left: .6rem; border-left: 2px solid #6ba69b; color: #476a62; font-size: .67rem; }
.project-card__footer { display: flex; flex-direction: column; gap: 1.1rem; margin-top: auto; }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem .7rem; }
.tag-row span { font-size: .65rem; line-height: 1.4; color: #526c7f; }
.project-card .tag-row span:not(:last-child)::after { content: ' /'; padding-left: .5rem; color: #9bacb7; }
.project-card__action { display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--ink); font-size: .76rem; font-weight: 650; text-decoration: none; }
.project-card__action span { transition: transform 200ms ease; }
.project-card__action:hover span { transform: translate(3px,-3px); }
.experience-index { display: none; gap: .75rem; justify-content: space-between; margin-top: .5rem; border-top: 1px solid var(--line); }
.experience--ready .experience-index { display: flex; }
.experience-index button { display: flex; flex: 1; align-items: start; gap: .6rem; padding: .8rem 0; border: 0; border-top: 2px solid transparent; margin-top: -1px; background: none; color: #6b7f90; text-align: left; cursor: pointer; font-size: .67rem; line-height: 1.5; }
.experience-index button[aria-current] { border-top-color: #193d5b; color: var(--ink); }
.experience-index button > span:first-child { font-family: Georgia,serif; }
.skills { display: grid; grid-template-columns: .75fr 1.5fr; gap: 3rem; }
.skills h2 { font-size: clamp(2rem,3vw,2.8rem); }
.skills-list { border-top: 1px solid var(--line); }
.skill-group { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.skill-group summary { display: flex; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer; font-size: .9rem; }
.skill-group summary::-webkit-details-marker { display: none; }
.skill-group summary > span { color: #637a8d; }
.skill-group[open] summary > span { transform: rotate(45deg); }
.skill-group .tag-row { margin-top: .8rem; }
.skill-group .tag-row span { font-size: .78rem; }
.skill-group .tag-row span:not(:last-child)::after { content: ' ·'; padding-left: .45rem; color: #8ca0ad; }
.music { margin-top: clamp(5.5rem,10vw,9rem); padding: clamp(2rem,5vw,4rem); background: #17394d; color: #f9f6f1; border-radius: 8px; box-shadow: 0 22px 50px rgb(25 61 91 / 12%); }
.music .eyebrow { color: #9dbfce; }
.music h2 { max-width: 13ch; color: #fff8ef; font-size: clamp(2.5rem,4vw,3.8rem); }
.music .section-note { color: #bad0da; }
.music-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.5rem; }
.track-card { min-width: 0; padding-top: 1.4rem; border-top: 1px solid #bdcfda55; }
.track-card__eyebrow { margin: 0 0 .5rem; color: #b4cbd4; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.track-card h3 { margin: 0; color: #fff8ef; font-size: 1.7rem; }
.track-card__credit { margin: .3rem 0 1.2rem; color: #abc1cc; font-size: .73rem; }
.track-waveform[data-waveform="breath-away"] { --waveform-image: url("../images/waveforms/breath-away.svg"); }
.track-waveform[data-waveform="camelia-overdose"] { --waveform-image: url("../images/waveforms/camelia-overdose.svg"); }
.track-player { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); align-items: center; gap: 0.2rem 0.8rem; }
.track-player__play { display: grid; grid-row: 1 / span 2; width: 2.8rem; aspect-ratio: 1; place-items: center; border: 1px solid rgb(255 255 255 / 82%); border-radius: 50%; background: linear-gradient(145deg, #fff, #dff1ff); color: #173f70; box-shadow: 0 5px 14px rgb(23 63 112 / 12%); cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease; }
.track-player__play:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgb(23 63 112 / 17%); }
.track-player__play:focus-visible, .track-waveform:focus-visible { outline: 3px solid #dd78b4; outline-offset: 4px; }
.track-player__play span::before { content: "▶"; display: block; margin-left: 0.14rem; font-size: 0.78rem; }
.track-player__play[aria-pressed="true"] span::before { content: "Ⅱ"; margin-left: 0; font-size: 1rem; font-weight: 800; }
.track-waveform { --played: 0%; --waveform-image: none; --wave-base: rgb(34 76 120 / 37%); --wave-left: #287bb8; --wave-middle: #63c5ec; --wave-end: #ef9bc8; display: block; grid-column: 2; width: 100%; min-width: 0; height: 3.25rem; margin: 0; padding: 0; border: 0; border-radius: 0.45rem; appearance: none; -webkit-appearance: none; background: none; cursor: pointer; touch-action: pan-y; }
.track-waveform::-webkit-slider-runnable-track { height: 3.25rem; border: 0; border-radius: 0.45rem; background-image: linear-gradient(90deg, var(--wave-left), var(--wave-middle) 58%, var(--wave-end)), linear-gradient(var(--wave-base), var(--wave-base)); background-repeat: no-repeat; background-position: left center; background-size: var(--played) 100%, 100% 100%; -webkit-mask-image: var(--waveform-image); mask-image: var(--waveform-image); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.track-waveform::-moz-range-track { height: 3.25rem; border: 0; border-radius: 0.45rem; background-image: linear-gradient(90deg, var(--wave-left), var(--wave-middle) 58%, var(--wave-end)), linear-gradient(var(--wave-base), var(--wave-base)); background-repeat: no-repeat; background-position: left center; background-size: var(--played) 100%, 100% 100%; mask-image: var(--waveform-image); mask-repeat: no-repeat; mask-position: center; mask-size: 100% 100%; }
.track-waveform::-webkit-slider-thumb { width: 0.68rem; height: 0.68rem; margin-top: calc((3.25rem - 0.68rem) / 2); border: 2px solid #397caa; border-radius: 50%; appearance: none; -webkit-appearance: none; background: #fff; box-shadow: 0 1px 5px rgb(23 63 112 / 28%); }
.track-waveform::-moz-range-thumb { width: 0.42rem; height: 0.42rem; border: 2px solid #397caa; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgb(23 63 112 / 28%); }
.track-player__time { display: flex; grid-column: 2; justify-content: space-between; gap: 0.5rem; color: #456889; font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.track-player__status { grid-column: 1 / -1; color: #8a3158; font-size: 0.78rem; }
.track-player--enhanced > audio { display: none; }
.music .track-waveform { --wave-base: #b3d1df70; --wave-left: #7dbfce; --wave-middle: #9fcfd9; --wave-end: #e8b6cd; }
.music .track-player__play { background: transparent; box-shadow: none; color: #f5e9ed; border-color: #bad0da77; }
.music .track-player__time, .music .track-player__time time { color: #b4cbd4; font-size: .65rem; }
.music .track-player__status { color: #ffcade; }
.music audio { display: block; width: 100%; }
.interest-board { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; gap: 1.5rem; }
.interest-card { min-width: 0; padding: 2rem; border-radius: 5px; }
.interest-card h3 { margin: .6rem 0 .8rem; font-size: 1.9rem; }
.interest-card p { font-size: .86rem; line-height: 1.7; }
.interest-card a { display: inline-block; font-size: .75rem; font-weight: 600; text-underline-offset: .3em; }
.interest-card__symbol { display: block; width: 2.5rem; height: 2.5rem; margin-bottom: 1.1rem; }
.interest-card__symbol svg, .interest-card__symbol img { display: block; width: 100%; height: 100%; object-fit: contain; }
.interest-card--running { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: minmax(0,1fr) 8rem; gap: 1rem; background: #ecf1e2; color: #344c3e; }
.interest-card--running h3 { margin-top: 0; }
.interest-card--running .interest-card__symbol { width: 1.9rem; height: 1.9rem; margin-bottom: .9rem; }
.interest-card__running-route { margin: 0 0 1.2rem; font-size: .73rem !important; }
.running-stats { display: flex; flex-wrap: wrap; gap: 1rem 1.3rem; margin: 0; }
.running-stats > div:nth-child(2) { order: -1; flex-basis: 100%; }
.running-stats dt { font-size: .61rem; color: #526958; }
.running-stats dd { margin: .2rem 0 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.running-stats > div:nth-child(2) dd { font: 400 clamp(2rem,3.8vw,3rem)/1.1 Georgia,serif; letter-spacing: -.045em; }
.running-preview { position: relative; display: block !important; align-self: end; width: 100%; aspect-ratio: .65; margin: 0; overflow: hidden; border-radius: 5px; box-shadow: 0 8px 20px #344c3e22; background: #111; }
.running-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.running-preview__caption { position: absolute; inset: auto 0 0; padding: .35rem; background: #101810d9; color: #f8faf3; font-size: .48rem; text-align: center; }
.interest-card--gaming { grid-column: 2; grid-row: 1; position: relative; background: #292f47; color: #e8e7f2; }
.interest-card--gaming h3 { font: 600 .9rem -apple-system,sans-serif; letter-spacing: .07em; }
.interest-card__symbol--valorant { position: absolute; right: 1.6rem; top: 1.7rem; width: 3rem; height: 1.7rem; }
.interest-card__symbol--valorant img { object-fit: cover; transform: scale(1.7); }
.interest-card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0 0; }
.interest-card__stats > div { text-align: center; }
.interest-card__stats dt { color: #bac1d7; font-size: .62rem; }
.interest-card__stats dd { display: flex; flex-direction: column; align-items: center; gap: .4rem; margin: .4rem 0 0; font-family: Georgia,serif; font-size: 1rem; }
.interest-card__rank-badge { display: block; width: 5.2rem; height: 5.2rem; object-fit: contain; }
.interest-card .rank-updated { margin: 1rem 0 0; color: #a7b2ca; font-size: .56rem; }
.interest-card--theatre { grid-column: 1; grid-row: 2 / span 2; background: #fbf6f0; border-top: 3px solid #af6f7f; }
.interest-card--theatre .interest-card__symbol { width: 3rem; height: 3rem; }
.interest-card__eyebrow { color: #7b6570; font-size: .64rem !important; letter-spacing: .08em; text-transform: uppercase; }
.interest-card__credits { display: grid; gap: .6rem; margin: 1.3rem 0; padding: 0; list-style: none; }
.interest-card__credits li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .65rem; border-bottom: 1px solid #c8b7b466; font-size: .88rem; }
.interest-card__credits li > span:last-child { font-size: .75rem; }
.interest-card__credits small { display: block; margin-top: .15rem; color: #89737b; font-size: .62rem; }
.interest-card .interest-card__note { margin: 1.5rem 0; font-size: .83rem; }
.interest-card--soula { grid-column: 2; grid-row: 2; background: #e9e4f0; }
.interest-card--soula .interest-card__symbol { width: 3rem; height: 3rem; }
.interest-card--chess { grid-column: 2; grid-row: 3; position: relative; padding-block: 1.6rem; border-block: 1px solid var(--line); border-radius: 0; }
.interest-card--chess .interest-card__symbol { position: absolute; top: 1.8rem; right: 1.7rem; width: 2.3rem; height: 2.3rem; }
.interest-card--chess h3 { margin-top: 0; font-size: 1.6rem; }
.interest-card--chess p { max-width: 25ch; margin-bottom: .7rem; }
.site-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem 2rem; margin-top: 6rem; padding-block: 2rem 3rem; border-top: 1px solid var(--line); }
.site-footer p { margin: .4rem 0 0; color: #506b80; font-size: .75rem; }
.site-footer__links { display: flex; gap: 1.8rem; font-size: .78rem; }
.site-footer__credit { grid-column: 1 / -1; }
.scroll-cue { position: fixed; z-index: 15; bottom: 1rem; left: 50%; display: grid; place-items: center; width: 3.3rem; height: 2.25rem; border: 1px solid #ffffff55; border-radius: 99px; background: #142e40e0; color: white; opacity: 0; transform: translate(-50%,.6rem); pointer-events: none; cursor: pointer; transition: opacity 260ms ease,transform 260ms ease; }
body.show-scroll-cue .scroll-cue, .scroll-cue:focus-visible { opacity: 1; transform: translate(-50%,0); pointer-events: auto; }
html[data-intro='name'] .scroll-cue { display: none; }
/* Reading shares the actual content, but presents it as a compact CV. */
html[data-mode='accessible'] { background: white; scroll-behavior: auto; }
body[data-mode='accessible'] { background: white; color: #222; font: 1rem/1.5 Georgia,'Times New Roman',serif; }
body[data-mode='accessible']::before, body[data-mode='accessible']::after, body[data-mode='accessible'] .sky-background { display: none; }
body[data-mode='accessible'] .content-width, body[data-mode='accessible'] .site-nav, body[data-mode='accessible'] .masthead__inner { max-width: 880px; }
body[data-mode='accessible'] .masthead { height: 7rem; }
body[data-mode='accessible'] .masthead__inner { width: calc(100% - 2 * var(--page-gutter)); padding: 0; text-align: left; }
body[data-mode='accessible'] .wordmark { margin: 0; color: #222; font-size: 2.7rem; text-shadow: none; }
body[data-mode='accessible'] .wordmark::after { display: none; }
body[data-mode='accessible'] .site-nav { position: static; margin: 0 auto; padding: .5rem 0; border: 0; border-block: 1px solid #ccc; border-radius: 0; background: white; box-shadow: none; backdrop-filter: none; }
body[data-mode='accessible'] .page-content { padding-top: 2rem; }
body[data-mode='accessible'] h2 { color: #222; font-size: 1.6rem; }
body[data-mode='accessible'] h3 { color: #222; }
body[data-mode='accessible'] .intro-copy { grid-template-columns: 1fr 9rem; gap: 2rem; }
body[data-mode='accessible'] .signature-name--image { display: none; }
body[data-mode='accessible'] .intro-copy__lead { max-width: 48ch; font: 1.15rem/1.5 Georgia,serif; margin-bottom: .7rem; }
body[data-mode='accessible'] .intro-copy__heading > p:not(.eyebrow):not(.intro-copy__lead) { font-size: .95rem; color: #333; }
body[data-mode='accessible'] .intro-copy__heading > p:nth-last-of-type(1), body[data-mode='accessible'] .intro-copy__links, body[data-mode='accessible'] .portrait-caption { display: none; }
body[data-mode='accessible'] .intro-copy__portrait { width: 9rem; aspect-ratio: 4 / 5; border: 0; border-radius: 3px; box-shadow: none; }
body[data-mode='accessible'] .intro-copy__portrait-image--immersive { display: none; }
body[data-mode='accessible'] .intro-copy__portrait-image--reading { display: block; }
body[data-mode='accessible'] .education, body[data-mode='accessible'] .skills { display: block; }
body[data-mode='accessible'] .education, body[data-mode='accessible'] .experience, body[data-mode='accessible'] .skills { margin-top: 2.5rem; }
body[data-mode='accessible'] .section-heading { margin: 0 0 1rem; }
body[data-mode='accessible'] .section-heading .eyebrow, body[data-mode='accessible'] .section-heading .section-note { display: none; }
body[data-mode='accessible'] .section-heading h2 br { display: none; }
body[data-mode='accessible'] .education-record { border-top: 1px solid #bbb; }
body[data-mode='accessible'] .education-card { display: block; padding: 1rem 0; }
body[data-mode='accessible'] .education-card h3 { font-size: 1.3rem; }
body[data-mode='accessible'] .education-card h3 br { display: none; }
body[data-mode='accessible'] .education-card__logo { display: none; }
body[data-mode='accessible'] .coursework { margin-top: .7rem; }
body[data-mode='accessible'] .experience-controls, body[data-mode='accessible'] .experience-index, body[data-mode='accessible'] .experience-cover { display: none; }
body[data-mode='accessible'] .experience-track { display: grid; grid-auto-flow: row; grid-auto-columns: unset; gap: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
body[data-mode='accessible'] .project-card { min-height: 0; border: 0; border-top: 1px solid #ccc; border-radius: 0; background: white; box-shadow: none; }
body[data-mode='accessible'] .experience-card__body { min-height: 0; padding: 1.2rem 0; }
body[data-mode='accessible'] .project-card h3 { font-size: 1.3rem; margin-bottom: .7rem; }
body[data-mode='accessible'] .project-card__description { color: #333; font-size: .95rem; }
body[data-mode='accessible'] .project-card__action { display: inline-flex; gap: .5rem; padding: 0; border: 0; align-self: start; text-decoration: underline; }
body[data-mode='accessible'] .project-card__footer { gap: .6rem; }
body[data-mode='accessible'] .tag-row span { color: #444; font-size: .75rem; }
body[data-mode='accessible'] .music, body[data-mode='accessible'] .interests, body[data-mode='accessible'] .scroll-cue, body[data-mode='accessible'] .site-nav a[href='#interests'], body[data-mode='accessible'] .site-nav a[href='#music'] { display: none; }
body[data-mode='accessible'] .site-footer { margin-top: 3rem; }
html[data-mode='accessible'] *, html[data-mode='accessible'] *::before, html[data-mode='accessible'] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (max-width: 1050px) {
 .site-nav { flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; }
 .site-nav__links { order: 3; flex-basis: 100%; padding-top: .3rem; justify-content: space-between; }
 .site-nav__home { margin-right: auto; }
 .intro-copy { gap: 2rem; grid-template-columns: 1fr 1fr; }
 .intro-copy__lead { font-size: 1.6rem; }
 .experience-track { grid-auto-columns: 58%; }
 .interest-card { padding: 1.5rem; }
 .education { gap: 2rem; grid-template-columns: .6fr 1.6fr; }
}
@media (max-width: 760px) {
 html { scroll-padding-top: 9rem; }
 .wordmark { font-size: clamp(3.2rem,10vw,4.2rem); }
 .site-nav { top: .5rem; padding-inline: .9rem; border-radius: .85rem; }
 .site-nav__links { flex-wrap: wrap; justify-content: flex-start; gap: .1rem 1rem; padding-bottom: .1rem; }
 .site-nav__links a { font-size: .76rem; }
 .intro-copy { grid-template-columns: 1fr; gap: 2.2rem; }
 .intro-copy__lead { max-width: 34ch; font-size: clamp(1.7rem,4.8vw,2.1rem); }
 .intro-copy__heading > p:not(.eyebrow):not(.intro-copy__lead) { max-width: 55ch; }
 .signature-name--image { width: 14rem; margin-bottom: 1.3rem; }
 .intro-copy__photo { width: min(100%,32rem); justify-self: center; }
 .education { grid-template-columns: 1fr; gap: 1.8rem; }
 .education .section-heading h2 br { display: none; }
 .education-card__logo { width: 3.8rem; }
 .experience-controls > span { display: none; }
 .experience-controls { gap: .35rem; }
 .experience-controls__button { width: 2.25rem; height: 2.25rem; }
 .experience-track { grid-auto-columns: 85%; gap: 1rem; }
 .experience-card__body { padding: 1.5rem; min-height: 27rem; }
 .experience-cover { height: 10rem; flex-basis: 10rem; }
 .experience-index { gap: .4rem; }
 .experience-index button { justify-content: center; }
 .experience-index button > span:nth-child(2) { display: none; }
 .skills { grid-template-columns: 1fr; gap: .5rem; }
 .music-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: 1.8rem; }
 .interest-board { grid-template-columns: 1fr; gap: 1.3rem; }
 .interest-card--running, .interest-card--gaming, .interest-card--theatre, .interest-card--soula, .interest-card--chess { grid-column: 1; grid-row: auto; }
 .interest-card--running { order: 0; }
 .interest-card--theatre { order: 1; }
 .interest-card--soula { order: 2; }
 .interest-card--gaming { order: 3; }
 .interest-card--chess { order: 4; }
 .site-footer { grid-template-columns: 1fr; gap: 1rem; }
 .site-footer__credit { grid-column: 1; }
 body[data-mode='accessible'] .intro-copy { grid-template-columns: 1fr 7rem; gap: 1rem; }
 body[data-mode='accessible'] .intro-copy__portrait { width: 7rem; }
}
@media (max-width: 420px) {
 .mode-toggle { font-size: .58rem; gap: .3rem; padding-inline: .5rem; }
 .site-nav__home { font-size: 1rem; }
 .experience-track { grid-auto-columns: 94%; }
 .project-card h3 { font-size: 1.8rem; }
 .section-heading--projects h2 { font-size: 2.1rem; }
 .education-card { gap: .75rem; }
 .education-card__logo { width: 3rem; }
 .education-card h3 { font-size: 1.4rem; }
 .interest-card--running { grid-template-columns: minmax(0,1fr) 6.2rem; gap: .7rem; }
 .music { padding: 1.7rem; }
 body[data-mode='accessible'] .intro-copy { grid-template-columns: 1fr; }
 body[data-mode='accessible'] .intro-copy__photo { grid-row: 1; justify-self: start; }
}
/* Immersive is the animated presentation; Reading is the still alternative. */
@media (prefers-reduced-motion: reduce) {
 html:not([data-mode='animated']) { scroll-behavior: auto; }
 html:not([data-mode='animated']) *, html:not([data-mode='animated']) *::before, html:not([data-mode='animated']) *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
 body::after { background: rgb(249 249 252 / 90%); }
 .site-nav { background: #fffdfa; }
}
.reading-title { display: none; }
html[data-mode='accessible'] .reading-title { display: inline; }
html[data-mode='accessible'] .immersive-title { display: none; }

.music .track-player--enhanced > audio { display: none; }
.project-page::after { -webkit-mask-image: none; mask-image: none; background: rgb(249 249 252 / 85%); }

/* A clear view through the same fixed sky at the closing section. */
body::after {
  -webkit-mask-image: linear-gradient(180deg, transparent var(--blur-ramp-start,22vh), rgb(0 0 0 / 65%) var(--blur-ramp-middle,30vh), #000 var(--blur-ramp-end,42vh)), linear-gradient(180deg, #000 var(--sky-window-top,200vh), transparent var(--sky-window-clear-top,210vh), transparent var(--sky-window-clear-bottom,220vh), #000 var(--sky-window-bottom,230vh));
  mask-image: linear-gradient(180deg, transparent var(--blur-ramp-start,22vh), rgb(0 0 0 / 65%) var(--blur-ramp-middle,30vh), #000 var(--blur-ramp-end,42vh)), linear-gradient(180deg, #000 var(--sky-window-top,200vh), transparent var(--sky-window-clear-top,210vh), transparent var(--sky-window-clear-bottom,220vh), #000 var(--sky-window-bottom,230vh));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.project-page::after { -webkit-mask-image: none; mask-image: none; }
.sky-interlude { height: clamp(17rem,34svh,25rem); margin-top: 3rem; pointer-events: none; }
.experience { position: relative; }
.anchor-alias { position: absolute; top: 0; }
.experience-track > .project-card:last-child { scroll-snap-align: end; }
.education-record { padding: 0 2rem; background: #fffdfa; border: 1px solid #d3dee5; border-top: 4px solid #173f70; border-radius: 4px; box-shadow: 0 16px 36px rgb(25 61 91 / 7%); }
.education-card h3 { color: #173f70; font-size: clamp(1.8rem,2.8vw,2.3rem); }
.education-card__logo { width: 5rem; }
.education-earlier { border-bottom: 0; padding-bottom: 1.5rem; }
body[data-mode='accessible'] .intro-copy { grid-template-columns: 1fr 13rem; }
body[data-mode='accessible'] .intro-copy__portrait { width: 13rem; }
body[data-mode='accessible'] .education-record { padding: 0; border: 0; border-top: 1px solid #bbb; border-radius: 0; background: white; box-shadow: none; }
body[data-mode='accessible'] .education-card h3 { max-width: none; color: #222; font-size: 1.3rem; }
body[data-mode='accessible'] .sky-interlude { display: none; }
@media (max-width: 760px) {
 .education-record { padding-inline: 1.5rem; }
 .education-card { gap: 1rem; }
 .education-card__logo { width: 4rem; }
 body[data-mode='accessible'] .intro-copy { grid-template-columns: 1fr 10rem; }
 body[data-mode='accessible'] .intro-copy__portrait { width: 10rem; }
}
@media (max-width: 420px) {
 .education-record { padding-inline: 1.2rem; }
 .education-card h3 { font-size: 1.65rem; }
 .education-card__logo { width: 3.2rem; }
 body[data-mode='accessible'] .intro-copy { grid-template-columns: 1fr; }
 body[data-mode='accessible'] .intro-copy__portrait { width: 11rem; }
}

/* Small, subject-specific details keep the personal entries feeling intentional. */
.interest-card--chess { isolation: isolate; overflow: hidden; min-height: 12rem; background: #f5f0e8; border: 1px solid #d9d0c4; border-radius: 5px; box-shadow: 0 8px 24px rgb(67 57 44 / 5%); }
.interest-card--chess::before { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 48%; content: ''; background: conic-gradient(#a99d8825 25%, transparent 0 50%, #a99d8825 0 75%, transparent 0) 0 0 / 3rem 3rem; -webkit-mask-image: linear-gradient(90deg,transparent,#000); mask-image: linear-gradient(90deg,transparent,#000); }
.interest-card--chess .interest-card__symbol { padding: .3rem; width: 2.8rem; height: 2.8rem; border-radius: 4px; background: #fffdf6; }
.interest-card--soula { position: relative; isolation: isolate; overflow: hidden; }
.interest-card--soula::before { position: absolute; z-index: -1; top: -4.5rem; right: -4.5rem; width: 13rem; height: 13rem; content: ''; border: 1px solid #a69bb740; border-radius: 50%; box-shadow: 0 0 0 1.3rem #a69bb712,0 0 0 2.6rem #a69bb70c; }
.interest-card--theatre { box-shadow: 0 10px 26px rgb(83 50 56 / 5%); }
.experience-card--datafest .cover-art::before { position: absolute; inset: 0; content: ''; opacity: .1; background: repeating-linear-gradient(90deg,transparent 0 1.9rem,currentColor 1.9rem calc(1.9rem + 1px)); }
.poker-cards > span { transition: transform 650ms var(--ease-out); }
@media (hover: hover) {
 .experience-card--research:hover .scan-frame { animation: scan-drift 2600ms ease-in-out infinite alternate; }
 .experience-card--poker:hover .poker-cards > span:first-child { transform: translateX(-.2rem) rotate(-23deg); }
 .experience-card--poker:hover .poker-cards > span:nth-child(3) { transform: translateX(.2rem) rotate(24deg); }
}
@keyframes scan-drift { from { transform: translateX(-12px); } to { transform: translateX(16px); } }
@media (prefers-reduced-motion: reduce) { .experience-card--research:hover .scan-frame { animation: none; } }

/* A larger supplied script wordmark forms the education record's letterhead. */
.education-card { display: block; padding-top: 8.1rem; }
.education-card__logo--script { position: absolute; top: 1.5rem; left: -.3rem; width: 11.5rem; height: auto; margin: 0; }
.education-card__meta { position: absolute; top: 3rem; right: 0; max-width: 13rem; margin: 0; text-align: right; }
.education-card h3 { max-width: 24ch; }
body[data-mode='accessible'] .education-card { padding-top: 1rem; }
body[data-mode='accessible'] .education-card__meta { position: static; max-width: none; margin-bottom: 1rem; text-align: left; }
body[data-mode='accessible'] .coursework summary > span { display: none; }
@media (max-width: 760px) {
 .education-card { padding-top: 7.5rem; }
 .education-card__logo--script { width: 10rem; }
 .education-card__meta { max-width: 10rem; font-size: .67rem; }
}
@media (max-width: 420px) {
 .education-card__logo--script { top: 1.6rem; width: 8.5rem; }
 .education-card__meta { top: 2.5rem; max-width: 7rem; font-size: .62rem; }
}
@media (max-width: 360px) {
 .education-card__logo--script { width: 7rem; }
 .education-card__meta { max-width: 6rem; }
}

/* The clear sky has a destination: the closing links at the end of the page. */
.sky-outro { display: block; height: auto; min-height: clamp(27rem,65svh,39rem); margin: clamp(4.5rem,9vw,8rem) 0 0; pointer-events: auto; }
.sky-outro__inner { display: flex; min-height: inherit; flex-direction: column; align-items: center; justify-content: center; padding-block: 5rem 2.5rem; text-align: center; }
.sky-outro .eyebrow { color: #294c68; }
.sky-outro h2 { color: #173f70; font-size: clamp(3.2rem,6.5vw,5.7rem); text-shadow: 0 2px 24px rgb(255 253 251 / 40%); }
.sky-outro__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; }
.sky-outro__links a { display: inline-flex; align-items: center; gap: 1.5rem; padding: .65rem 1.15rem; border: 1px solid #ffffffbb; border-radius: 4px; background: #fffdfbe8; color: #193d5b; font-size: .86rem; font-weight: 650; text-decoration: none; transition: background 200ms ease,transform 200ms ease; }
.sky-outro__links a:hover { background: white; transform: translateY(-3px); }
.sky-outro__name { margin: 2.2rem 0 0; color: #294c68; font-size: .73rem; padding: .35rem .7rem; background: #fffdfbe8; border-radius: 4px; }
.sky-outro .site-footer__credit { max-width: 74ch; margin: 2rem 0 0; padding: .65rem 1rem; border-radius: 4px; background: #fffdfbdf; color: #415a6c; font-size: .68rem; line-height: 1.7; }
body[data-mode='accessible'] .sky-outro { display: block; height: auto; min-height: 0; margin-top: 3rem; border-top: 1px solid #ccc; }
body[data-mode='accessible'] .sky-outro__inner { min-height: 0; align-items: start; padding-block: 2rem; text-align: left; }
body[data-mode='accessible'] .sky-outro .eyebrow { display: none; }
body[data-mode='accessible'] .sky-outro h2 { color: #222; font-size: 1.5rem; text-shadow: none; }
body[data-mode='accessible'] .sky-outro__links { justify-content: start; margin-top: .8rem; }
body[data-mode='accessible'] .sky-outro__links a { padding: 0; border: 0; color: #222; background: white; text-decoration: underline; }
body[data-mode='accessible'] .sky-outro__name { margin-top: 1rem; padding: 0; background: white; color: #444; }
body[data-mode='accessible'] .sky-outro .site-footer__credit { padding: 0; margin-top: .8rem; background: white; }
