:root {
    --page: light-dark(#f6f5f0, #191b19);
    --surface: light-dark(#eeede7, #222521);
    --ink: light-dark(#252923, #efeee7);
    --muted: light-dark(#686c62, #a7ada0);
    --line: light-dark(#d9dbd1, #3d4239);
    --accent: light-dark(#b74c2b, #ec9671);
    --chip-light: light-dark(#383e32, #d1d4c7);
    --chip-dark: light-dark(#20261e, #929a87);
    --chip-side: light-dark(#d0d1c5, #353c30);
    --chip-edge: light-dark(#aeb3a2, #69745d);
    --chip-ink: light-dark(#e4e5d8, #20261e);
    --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body.personal-site { max-width: none; padding: 0; margin: 0; background: var(--page); color: var(--ink); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.6; }
.personal-site ::selection { background: var(--accent); color: var(--page); }
.personal-site a { color: inherit; text-decoration: none; }
.personal-site button { font: inherit; }
.personal-site a, .personal-site button { -webkit-tap-highlight-color: transparent; }
.personal-site :focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.personal-site section { margin: 0; }
.personal-site h1, .personal-site h2, .personal-site h3, .personal-site p { margin: 0; }
.personal-site h2 { color: var(--ink); font-size: clamp(32px, 3.4vw, 43px); font-weight: 450; letter-spacing: -1.7px; line-height: 1.15; }
.personal-site em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.shell { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 10px 20px; z-index: 10; background: var(--ink); color: var(--page) !important; }
.skip-link:focus { top: 10px; }
.site-header { display: flex; align-items: center; height: 108px; gap: 32px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 36px; font-weight: 650; letter-spacing: -3px; line-height: 1; }
.brand-dot { color: var(--accent); }
.site-header nav { display: flex; gap: 30px; margin-left: auto; font-size: 13px; }
.site-header nav a { position: relative; }
.site-header nav a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--accent); transition: width .2s; }
.site-header nav a:hover::after { width: 100%; }
#theme-toggle.theme-button { margin: 0; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; padding: 0; color: var(--ink); background: transparent; cursor: pointer; }
#theme-toggle.theme-button:hover { background: var(--surface); transform: rotate(25deg); }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 60px; padding: 82px 0 70px; align-items: center; }
.eyebrow { font: 10px/1.6 var(--mono); letter-spacing: 1.4px; color: var(--muted); }
.status-dot { display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px light-dark(#b74c2b0d, #ec96710d); }
.hero h1 { font-size: clamp(68px, 7.7vw, 100px); font-weight: 450; letter-spacing: -5.5px; line-height: .99; margin: 26px 0 27px; }
.hero h1 em { color: var(--accent); letter-spacing: -5px; }
.hero-intro { font-size: 19px; line-height: 1.6; letter-spacing: -.35px; }
.hero-intro strong { font-weight: 550; }
.hero-description { max-width: 380px; color: var(--muted); font-size: 14px; line-height: 1.85; margin-top: 14px !important; }
.hero-links { display: flex; align-items: center; gap: 26px; margin-top: 29px; font-size: 12px; }
.primary-link { background: var(--ink); color: var(--page) !important; padding: 13px 18px; display: flex; align-items: center; gap: 23px; border: 1px solid var(--ink); transition: background .2s, border-color .2s; }
.primary-link:hover { background: var(--accent); border-color: var(--accent); }
.quiet-link { padding-block: 10px; }
.quiet-link span { margin-left: 9px; color: var(--accent); }
.compiler-art { align-self: center; min-width: 0; }
.art-topline { display: flex; justify-content: space-between; color: var(--muted); font: 9px/1.5 var(--mono); letter-spacing: 1px; border-top: 1px solid var(--line); padding-top: 14px; }
.art-indicator { display: inline-flex; align-items: center; gap: 6px; }
.art-indicator i { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.chip-scene { position: relative; padding: 4px 0 15px; }
.chip-art { display: block; width: 100%; height: auto; }
.art-coordinate { position: absolute; bottom: 8px; right: 0; font: 8px var(--mono); letter-spacing: 1px; color: var(--muted); }
.signal { stroke-dasharray: 12 160; animation: signal-flow 5s linear 3; }
.signal-two { animation-delay: -1.5s; }
.signal-three { animation-delay: -3s; }
@keyframes signal-flow { to { stroke-dashoffset: -344; } }
.chip-emblem { transition: stroke .3s; }
.intro-strip { border-block: 1px solid var(--line); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.intro-strip > span, .intro-strip > a { font: 8px var(--mono); letter-spacing: .8px; color: var(--muted); }
.intro-strip > div { font-size: 13px; letter-spacing: -.2px; }
.intro-strip > div span { margin: 0 17px; color: var(--line); }
.intro-strip > a span { color: var(--accent); margin-left: 12px; font-size: 15px; }
.section-block { display: grid; grid-template-columns: 1fr 1.55fr; gap: 100px; padding: 92px 0; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 18px 0 19px; }
.section-heading > p:last-child { font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 245px; }
.job { padding: 0 0 29px; }
.job + .job { border-top: 1px solid var(--line); padding: 29px 0 0; }
.job-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.company-name { font-size: 12px; font-weight: 550; }
.current-label { display: inline-block; margin-left: 8px; color: var(--accent); font: 8px var(--mono); letter-spacing: .7px; }
.mono { font: 9px/1.6 var(--mono); color: var(--muted); }
.job h3 { font-size: 19px; letter-spacing: -.4px; font-weight: 450; margin: 10px 0 9px; }
.job > p { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 510px; }
.job-location { display: block; margin-top: 11px; color: var(--muted); font: 10px var(--mono); }
.playground-section { padding: 87px 0 90px; border-bottom: 1px solid var(--line); }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 36px; }
.section-title-row h2 { margin-top: 17px; }
.section-title-row > p { font-size: 12px; line-height: 1.8; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-card { display: block; min-width: 0; border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.project-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.project-art { position: relative; height: 190px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.art-tag { position: absolute; bottom: 13px; font: 8px var(--mono); letter-spacing: .6px; opacity: .75; }
.unicode-art { background: light-dark(#e8ebdf, #2d3326); color: light-dark(#586448, #bdc9a8); }
.unicode-art pre { font: 11px/1.15 var(--mono); margin: -10px 0 0 -17px; transition: letter-spacing .3s; }
.project-card:hover .unicode-art pre { letter-spacing: 1px; }
.audio-art { background: light-dark(#eee5df, #342b26); color: var(--accent); }
.waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 120px; margin-top: -13px; }
.waveform i { display: block; width: 3px; border-radius: 3px; background: currentColor; height: var(--bar); transform: scaleY(.8); }
.project-card:hover .waveform i { animation: wave .9s var(--delay) ease-in-out infinite alternate; }
@keyframes wave { to { transform: scaleY(.35); } }
.prayer-art { background: light-dark(#ece9df, #302f25); color: light-dark(#8c7b48, #c7ba8e); }
.project-art svg { width: 86%; height: 160px; margin-top: -10px; fill: none; stroke: currentColor; stroke-width: 1; }
.prayer-art .sun-orbit { stroke-dasharray: 3 5; opacity: .5; }
.prayer-art .sun { fill: currentColor; stroke: var(--page); stroke-width: 5; transition: transform .3s; }
.project-card:hover .sun { transform: translate(-10px, -4px); }
.map-art { background: light-dark(#e3e9e7, #25332d); color: light-dark(#507566, #a1c1b2); }
.map-art svg { stroke-width: 1.2; }
.map-art circle { fill: var(--accent); stroke: none; }
.project-info { padding: 23px 25px 17px; }
.project-category { font: 8px/1.6 var(--mono); letter-spacing: 1px; color: var(--muted); }
.project-info h3 { font-size: 24px; font-weight: 450; letter-spacing: -.8px; margin: 8px 0 9px; display: flex; align-items: center; justify-content: space-between; }
.project-info h3 > span { font-size: 23px; color: var(--accent); transition: transform .2s; }
.project-card:hover h3 > span { transform: translate(2px, -2px); }
.project-info > p { font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 360px; min-height: 47px; }
.project-bottom { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 22px; display: flex; justify-content: space-between; font: 9px var(--mono); color: var(--muted); }
.publications-section { gap: 100px; }
.paper { display: grid; grid-template-columns: 36px 1fr; gap: 18px; padding: 22px 0; }
.paper:first-child { padding-top: 0; }
.paper + .paper { border-top: 1px solid var(--line); }
.paper:last-child { padding-bottom: 0; }
.paper-year { color: var(--accent); padding-top: 4px; }
.paper h3 { font-size: 16px; font-weight: 450; letter-spacing: -.3px; line-height: 1.5; }
.paper p { font-size: 11px; margin-top: 8px; color: var(--muted); }
.paper div > span { display: block; font-size: 10px; margin-top: 4px; color: var(--muted); }
.about-section { padding: 88px 0; display: grid; grid-template-columns: 1.55fr 1fr; gap: 120px; border-bottom: 1px solid var(--line); }
.about-section h2 { margin: 18px 0 24px; }
.about-copy { font-size: 14px; color: var(--muted); line-height: 1.9; margin-top: 12px !important; }
.education-note { display: flex; align-items: flex-start; gap: 15px; margin-top: 29px; padding-top: 23px; border-top: 1px solid var(--line); }
.education-mark { color: var(--accent); font-size: 24px; line-height: 1; }
.education-note strong { font-size: 12px; font-weight: 550; }
.education-note p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.education-note div > span { display: block; font-size: 10px; color: var(--muted); margin-top: 6px; }
.about-details { padding-top: 43px; }
.about-details > div + div { margin-top: 30px; }
.about-details p { font-size: 13px; line-height: 1.9; margin-top: 10px; }
.personal-note { display: flex; align-items: center; gap: 19px; padding-top: 24px; border-top: 1px solid var(--line); }
.personal-note > span { font-size: 59px; color: var(--accent); line-height: 1; }
.personal-note > p { font-family: Georgia, serif; font-size: 16px; font-style: italic; color: var(--muted); margin: 0; line-height: 1.5; }
#contact.contact-section { display: block; padding: 74px 0 55px; }
#contact h2 { font-size: clamp(62px, 8vw, 96px); letter-spacing: -4px; font-weight: 450; line-height: 1.2; margin: 16px 0 30px; width: auto; display: flex; gap: 20px; }
#contact h2 em { color: var(--accent); }
#contact h2 > span { margin-left: auto; font-size: .8em; font-weight: 300; color: var(--accent); }
.contact-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
#contact .email-link { font-size: 16px; letter-spacing: -.3px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.social-links { display: flex; gap: 22px; font-size: 11px; }
#contact a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 10px; }
.site-footer > span:nth-child(2) { font: 8px var(--mono); letter-spacing: .5px; }
@media (min-width: 1500px) { .hero { padding-block: 100px; } }
@media (max-width: 1000px) {
    .shell { width: calc(100% - 64px); }
    .hero { gap: 30px; padding-block: 65px; }
    .hero h1 { font-size: 78px; }
    .hero .eyebrow { font-size: 8px; letter-spacing: 1px; }
    .hero-intro { font-size: 17px; }
    .hero-description { font-size: 13px; }
    .hero-links { gap: 18px; font-size: 11px; }
    .primary-link { gap: 14px; padding: 12px; }
    .intro-strip > span { display: none; }
    .section-block, .about-section { gap: 48px; }
    .job-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (max-width: 700px) {
    .shell { width: calc(100% - 40px); }
    .site-header { height: 82px; gap: 20px; }
    .site-header nav { gap: 20px; font-size: 12px; }
    .wordmark { font-size: 31px; }
    .hero { grid-template-columns: 1fr; gap: 42px; padding: 51px 0 37px; }
    .hero h1 { font-size: clamp(76px, 15vw, 100px); margin-block: 24px; }
    .hero .eyebrow { font-size: 9px; }
    .hero-intro { font-size: 19px; }
    .hero-description { font-size: 14px; max-width: 430px; }
    .hero-links { font-size: 12px; gap: 26px; }
    .primary-link { padding: 13px 18px; gap: 23px; }
    .compiler-art { max-width: 480px; width: 100%; justify-self: center; }
    .chip-scene { padding-bottom: 13px; }
    .chip-art { max-height: 265px; }
    .intro-strip { padding-block: 19px; }
    .intro-strip > div { font-size: 11px; }
    .intro-strip > div span { margin-inline: 7px; }
    .intro-strip > a { font-size: 0; letter-spacing: 0; }
    .intro-strip > a span { font-size: 18px; }
    .section-block { grid-template-columns: 1fr; gap: 33px; padding-block: 58px; }
    .section-heading h2 { margin-top: 13px; }
    .section-heading h2 br { display: none; }
    .section-heading > p:last-child { max-width: 330px; }
    .job-meta { flex-direction: row; gap: 10px; align-items: center; }
    .job-meta .mono { font-size: 8px; }
    .company-name { font-size: 11px; }
    .job h3 { font-size: 20px; }
    .playground-section { padding-block: 57px; }
    .section-title-row { display: block; margin-bottom: 27px; }
    .section-title-row > p { margin-top: 13px; }
    .section-title-row > p br { display: none; }
    .project-grid { gap: 20px; }
    .project-art { height: 155px; }
    .project-info { padding: 17px 18px 15px; }
    .project-info h3 { font-size: 21px; }
    .project-info > p { font-size: 12px; min-height: 85px; }
    .project-category { font-size: 7px; letter-spacing: .3px; }
    .waveform { gap: 2px; }
    .waveform i { width: 2px; max-height: 90px; }
    .art-tag { font-size: 6px; letter-spacing: .2px; }
    .project-bottom { font-size: 7px; }
    .about-section { grid-template-columns: 1fr; gap: 25px; padding-block: 58px; }
    .about-details { padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
    .about-details > div + div { margin: 0; }
    .about-details > .personal-note { grid-column: 1 / -1; margin-top: 2px; }
    #contact.contact-section { padding-block: 49px 39px; }
    #contact h2 { font-size: clamp(46px, 10.5vw, 72px); letter-spacing: -2.5px; gap: 12px; margin-bottom: 26px; }
    .contact-bottom { align-items: flex-start; flex-direction: column; gap: 22px; }
    #contact .email-link { font-size: 16px; }
    .site-footer { flex-wrap: wrap; padding-block: 22px; font-size: 9px; }
    .site-footer > span:nth-child(2) { display: none; }
}
@media (max-width: 450px) {
    .site-header { gap: 16px; }
    .site-header nav { gap: 16px; font-size: 11px; }
    .project-grid { grid-template-columns: 1fr; }
    .project-art { height: 180px; }
    .project-info { padding: 22px; }
    .project-info h3 { font-size: 25px; }
    .project-info > p { font-size: 13px; min-height: 0; }
    .project-category { font-size: 8px; letter-spacing: .7px; }
    .art-tag { font-size: 8px; }
    .project-bottom { font-size: 9px; }
    .waveform { gap: 3px; }
    .waveform i { width: 3px; }
    .about-details { gap: 18px; }
    .about-details p { font-size: 11px; }
    .about-details .eyebrow { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* qwac stays a static example until the visitor asks to load the compiler. */
.personal-site [hidden] { display: none !important; }
.compiler-art .chip-scene { padding-block: 0 12px; }
.compiler-art .chip-art { height: 195px; }
.compiler-art .art-coordinate { display: none; }
.qwac-placeholder, .qwac-editor { border: 1px solid var(--line); background: light-dark(#faf9f580, #20231e80); }
.qwac-preview-grid { display: grid; grid-template-columns: 1.35fr 1fr; }
.qwac-preview-grid > div { min-width: 0; padding: 14px 12px; }
.qwac-preview-grid > div + div { border-left: 1px solid var(--line); }
.qwac-preview-label { color: var(--accent); font: 8px var(--mono); letter-spacing: .7px; }
.qwac-preview-grid pre { margin: 11px 0 0; font: 10px/1.85 var(--mono); overflow: auto; }
.qwac-preview-note { border-top: 1px solid var(--line); padding: 10px 13px 0; color: var(--muted); font-size: 10px; }
.qwac-load-row { display: flex; align-items: center; gap: 15px; padding: 14px 13px; }
.qwac-load-row > span { color: var(--muted); font: 9px/1.7 var(--mono); max-width: 170px; }
.qwac-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--page); cursor: pointer; padding: 10px 13px; font-size: 11px !important; white-space: nowrap; }
.qwac-button:hover { border-color: var(--accent); background: var(--accent); }
.qwac-button:disabled { opacity: .6; cursor: wait; }
.qwac-editor { margin-top: 24px; }
.qwac-editor-heading, .qwac-output-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; color: var(--muted); font: 10px var(--mono); }
.qwac-editor select { color: var(--ink); background: var(--page); border: 1px solid var(--line); border-radius: 0; padding: 5px; font: 10px var(--mono); max-width: 130px; }
#qwac-source { display: block; width: 100%; height: 164px; padding: 14px; border: 0; border-block: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--page); resize: vertical; font: 11px/1.7 var(--mono); tab-size: 2; }
.qwac-input-note { display: block; padding: 9px 14px 0; font-size: 9px; color: var(--muted); }
.qwac-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.qwac-controls label { font-size: 10px; display: inline-flex; align-items: center; gap: 7px; }
.qwac-controls input { margin: 0; accent-color: var(--accent); }
.qwac-controls .qwac-button { padding: 8px 12px; gap: 12px; }
.qwac-unload { padding: 0; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 10px !important; cursor: pointer; }
#qwac-output { margin: 0; height: 160px; overflow: auto; padding: 4px 14px 14px; font: 11px/1.8 var(--mono); white-space: pre; }
.qwac-stats { border-top: 1px solid var(--line); padding: 9px 14px; color: var(--muted); font: 9px/1.6 var(--mono); }
.qwac-status { color: var(--accent); font-size: 11px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 130px; overflow: auto; }
.qwac-status:not(:empty) { margin-top: 10px; }
.qwac-footnote { font-size: 10px; color: var(--muted); margin-top: 11px !important; }
.qwac-footnote a { margin-left: 8px; border-bottom: 1px solid var(--line); }
.qwac-support { margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.8; border-top: 1px solid var(--line); padding-top: 10px; }
.qwac-support summary { cursor: pointer; }
.qwac-support p { margin-top: 8px !important; }
.qwac-support strong { font-weight: 550; color: var(--ink); }
.qwac-loaded .chip-scene { display: none; }
@media (max-width: 1000px) and (min-width: 701px) {
    .qwac-preview-grid { grid-template-columns: 1fr; }
    .qwac-preview-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .compiler-art .chip-art { height: 140px; }
    .qwac-optimize { order: 3; }
}
@media (max-width: 450px) {
    .qwac-preview-grid { grid-template-columns: 1fr; }
    .qwac-preview-grid > div { padding: 14px; }
    .qwac-preview-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .qwac-preview-grid pre { font-size: 11px; }
    .compiler-art .chip-art { height: 160px; }
    .qwac-optimize { order: 3; }
}
