:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --ink: #233037;
  --muted: #4e5b62;
  --line: #d8dedb;
  --accent: #28556a;
  --dark: #244554;
  --powder: #dce9ed;
  --yellow: #f5d695;
  --sans: Geist, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--powder); color: var(--dark); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 3px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
.wrap { width: min(1280px, calc(100% - 104px)); margin-inline: auto; }
.skip { position: fixed; inset: 10px auto auto 10px; padding: 12px; background: var(--yellow); z-index: 10; transform: translateY(-150%); }
.skip:focus { transform: none; }
.eyebrow, .section-heading > span, .instrument-top, .art-label, .footer-bottom {
  font: 500 .76rem/1.4 var(--mono);
  letter-spacing: .045em;
  text-transform: uppercase;
}

.site-header { position: sticky; top: 0; z-index: 5; background: rgba(245, 243, 238, .92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { height: 71px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; justify-self: start; font-weight: 650; letter-spacing: -.035em; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 50%; background: var(--dark); color: var(--paper); font: 500 1.5rem/1 var(--serif); letter-spacing: -.06em; padding-bottom: 2px; }
.brand-mark span { color: var(--yellow); }
nav { display: flex; gap: clamp(22px, 3vw, 44px); }
nav a, .header-contact { font-size: .9rem; font-weight: 550; color: var(--muted); }
nav a { padding-block: 12px; }
nav a:hover, nav a[aria-current], .header-contact:hover { color: var(--accent); }
.header-contact { justify-self: end; color: var(--dark); }
.header-contact span { padding-left: 5px; }
.reading-progress { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: #547f90; transform: scaleX(0); transform-origin: left; pointer-events: none; }

.hero { padding-block: clamp(52px, 8vw, 112px) clamp(62px, 8vw, 112px); display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(28px, 4vw, 65px); }
.hero-location { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--muted); }
.hero-location span { display: inline-block; width: 8px; height: 8px; border: 1px solid #547f90; border-radius: 50%; }
.hero h1 { font: 400 clamp(4.4rem, 8.9vw, 8.6rem)/.88 var(--serif); letter-spacing: -.049em; margin: 0 0 30px; }
.hero h1 em, .section-heading em, .footer-main em { font-weight: 400; color: var(--accent); }
.intro { max-width: 26ch; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.38; font-weight: 550; letter-spacing: -.03em; }
.intro a, .about-detail a { color: var(--accent); text-decoration: underline; text-decoration-color: #7896a0; text-underline-offset: 4px; }
.hero-note { color: var(--muted); max-width: 33ch; margin-top: 13px; }
.hero-links { display: flex; align-items: center; gap: 24px; margin-top: 31px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; gap: 18px; border-radius: 999px; padding: 12px 19px; font-size: .92rem; font-weight: 600; transition: background .25s, color .25s, transform .35s var(--ease); }
.primary { background: var(--dark); color: #fff; }
.primary:hover { background: var(--accent); transform: translateY(-3px); }
.text-link { display: inline-flex; align-items: baseline; gap: 8px; width: fit-content; font-size: .92rem; font-weight: 650; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 5px; }
.text-link span { display: inline-block; transition: transform .35s var(--ease); }
.text-link:hover span { transform: translate(3px, -3px); }

.instrument { background: #e5ecec; border: 1px solid #d1dedf; padding: 7px; border-radius: 24px; min-width: 0; }
.instrument-view { position: relative; isolation: isolate; aspect-ratio: 1.34; border-radius: 17px; overflow: hidden; background: radial-gradient(ellipse at 48% 64%, #eaf2f3, #c6dce2 78%); color: #243e49; }
.instrument-top, .instrument-bottom { position: absolute; z-index: 2; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.instrument-top { top: 16px; color: #34586a; }
.instrument-cross { font-size: 1.24rem; font-weight: 400; }
.instrument-bottom { bottom: 17px; }
.instrument-bottom a { font: 500 .83rem/1.4 var(--mono); }
.instrument-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.instrument-bottom a span { color: #805022; }
.motion-toggle { border: 1px solid #9bb1b8; border-radius: 999px; padding: 6px 9px; background: #edf4f4; font-size: .75rem; }
.motion-toggle:hover { background: #d8e7e9; }
#sketch, .art-fallback { width: 100%; height: 100%; position: absolute; inset: 0; }
.art-fallback { background: repeating-radial-gradient(ellipse at 50% 54%, transparent 0 13px, #4e879875 14px 15px, transparent 16px 24px); mask-image: radial-gradient(ellipse, #000 7%, transparent 61%); }
.instrument-view[data-rendered] .art-fallback { display: none; }
.instrument-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px 0 0; }
.instrument-controls button { background: transparent; border: none; border-radius: 999px; min-height: 39px; font-size: .85rem; font-weight: 550; color: #355260; padding-inline: 3px; transition: background .25s, color .25s; }
.instrument-controls button:hover { background: #d2e1e3; }
.instrument-controls button[aria-pressed="true"] { background: #fff; color: var(--dark); box-shadow: 0 1px 3px #19394c15; }

.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 27px; }
.section-heading h2, .footer-main h2 { font: 400 clamp(3.4rem, 6.25vw, 6.3rem)/.92 var(--serif); letter-spacing: -.041em; }
.section-heading > span { color: var(--muted); text-align: right; }
.work-section { padding-bottom: clamp(75px, 9vw, 135px); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.project { border: 1px solid var(--line); border-radius: 21px; overflow: clip; background: #fcfaf6; min-width: 0; transition: border-color .3s, box-shadow .45s; }
.project:hover { border-color: #9eb7be; box-shadow: 0 12px 34px #1b394e14; }
.project-feature { grid-column: 1 / -1; display: grid; grid-template-columns: .82fr 1.18fr; min-height: 335px; }
.project-copy { padding: clamp(23px, 3.1vw, 45px); align-self: center; }
.project-copy .eyebrow, .company .eyebrow { color: var(--accent); margin-bottom: 10px; }
.project h3, .company h3 { font: 400 clamp(2.65rem, 4.4vw, 4.7rem)/.95 var(--serif); letter-spacing: -.035em; }
.project-copy p:not(.eyebrow) { margin-top: 14px; color: var(--muted); max-width: 48ch; }
.project-copy .text-link { margin-top: 22px; }
.project-art { position: relative; isolation: isolate; min-height: 230px; overflow: hidden; }
.project-art canvas { width: 100%; height: 100%; position: absolute; inset: 0; transition: transform .65s var(--ease); }
.project:hover canvas { transform: scale(1.04); }
.fire-art { background: radial-gradient(ellipse at 54% 62%, #fff0da, #efc9ae 85%); color: #67412d; }
.rocket-art { background: radial-gradient(ellipse at 50% 64%, #edf3f1, #ccdedd 85%); color: #2c565c; }
.art-label { position: absolute; inset: auto 16px 12px; display: flex; justify-content: space-between; gap: 12px; color: inherit; }
.school-art { display: grid; place-items: center; background: #dce5cb; padding: 28px 15%; }
.school-window { width: min(100%, 360px); border: 1px solid #a6b592; background: #f8f7ee; overflow: hidden; border-radius: 10px; box-shadow: 0 17px 30px #3c521d25; transform: rotate(-5deg); transition: transform .65s var(--ease); }
.project-school:hover .school-window { transform: rotate(0deg) scale(1.05); }
.school-bar { display: flex; gap: 4px; height: 22px; align-items: center; padding-left: 10px; }
.school-bar i { width: 4px; height: 4px; background: #7c8a6b; border-radius: 50%; }
.school-cover { position: relative; isolation: isolate; overflow: hidden; padding: 12px 16px; background: #223e2b; color: #f4f0d5; font: 400 clamp(1.65rem, 3.2vw, 2.65rem)/.86 var(--serif); }
.school-sun { z-index: -1; position: absolute; right: -4%; bottom: -48%; width: 61%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, #e8ed9a 0 1px, transparent 2px 6px); }
.school-lines { display: flex; justify-content: space-between; gap: 5px; padding: 8px 11px; font: 500 .68rem/1.4 var(--mono); color: #30472c; }

.company-section { background: #e6ece7; color: var(--ink); padding-block: clamp(66px, 8vw, 112px); }
.company-section .section-heading { border-color: #b9c9c1; }
.company-section .section-heading > span, .company .eyebrow { color: #3a6258; }
.company { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; border-bottom: 1px solid #b9c9c1; padding-block: 29px 34px; }
.company:last-child { border: 0; padding-bottom: 0; }
.company-copy { color: #42574f; max-width: 55ch; }
.company-copy .text-link { color: var(--accent); margin-top: 15px; }
.product-list { display: grid; margin-top: 18px; gap: 12px; }
.product-list div { display: grid; grid-template-columns: 75px 1fr; gap: 10px; }
.product-list dt { color: var(--ink); font-weight: 650; }
.product-list dd { color: #42574f; }

.about-section { padding-block: clamp(67px, 9vw, 125px); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 80px); padding-top: 7px; }
.about-lead { font: 400 clamp(2.1rem, 4.4vw, 4.4rem)/1.01 var(--serif); letter-spacing: -.025em; }
.about-detail { color: var(--muted); max-width: 52ch; }
.about-detail p + p { margin-top: 1rem; }
.site-footer { background: var(--powder); color: var(--dark); padding-top: 49px; }
.footer-main { display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; padding-bottom: 39px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; }
.footer-bottom { border-top: 1px solid #abc4cc; display: flex; justify-content: space-between; gap: 15px; padding-block: 17px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .instrument { animation: arrival .8s var(--ease) both; }
  .hero h1 { animation-delay: .06s; }
  .hero .intro { animation-delay: .12s; }
  .hero-note { animation-delay: .17s; }
  .hero-links { animation-delay: .22s; }
  .instrument { animation-delay: .14s; }
  @keyframes arrival { from { opacity: 0; transform: translateY(16px); } }
  .reveal.is-pending { opacity: 0; transform: translateY(22px); }
  .reveal { transition: opacity .62s var(--ease), transform .75s var(--ease), border-color .3s, box-shadow .45s; }
  .reveal:focus-within { opacity: 1; transform: none; }
}
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; gap: 37px; }
  .hero h1 { font-size: clamp(4.3rem, 15vw, 7rem); margin-bottom: 20px; }
  .hero-location { margin-bottom: 15px; }
  .hero-note { max-width: 36ch; }
  .hero-links { margin-top: 24px; }
  .instrument-view { aspect-ratio: 1.4; }
  .project-feature { grid-template-columns: 1fr; }
  .project-feature .project-art { grid-row: 1; min-height: 240px; }
  .projects-grid, .about-grid { grid-template-columns: 1fr; }
  .footer-main { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .header-inner { height: 62px; grid-template-columns: auto 1fr auto; gap: 12px; }
  .brand > :last-child { display: none; }
  nav { justify-content: center; gap: clamp(8px, 3vw, 19px); }
  nav a, .header-contact { font-size: .81rem; }
  .header-contact span { display: none; }
  .instrument-top, .instrument-bottom { left: 13px; right: 13px; }
  .instrument-top { top: 10px; }
  .instrument-bottom { bottom: 10px; }
  .company { grid-template-columns: 1fr; gap: 14px; }
  .section-heading > span { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
}


.tars-feature, .internship { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.2fr; }
.tars-feature { min-height: 460px; background: #f8f3e7; border-color: #e3dbcc; }
.tars-copy h3 { font-size: clamp(4rem, 7.5vw, 7rem); color: #263c48; }
.tars-copy .eyebrow { color: #76502c; }
.flight-details { display: flex; flex-wrap: wrap; gap: 12px 27px; margin-top: 24px; }
.flight-details div { display: grid; gap: 3px; min-width: 65px; border-top: 1px solid #d3c7b4; padding-top: 8px; }
.flight-details dt { font: 500 .72rem/1.4 var(--mono); text-transform: uppercase; color: #654c36; }
.flight-details dd { font-weight: 650; }
.tars-stage { position: relative; isolation: isolate; min-width: 0; min-height: 360px; overflow: hidden; background: radial-gradient(ellipse at 48% 40%, #eef2e9, #c9dce0 87%); }
.tars-stage canvas, .tars-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; }
.tars-backdrop { display: grid; place-items: center; background-image: linear-gradient(#698c951e 1px, transparent 1px), linear-gradient(90deg, #698c951e 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse, #000 40%, #0006 100%); }
.tars-backdrop span { position: absolute; width: min(53%, 295px); aspect-ratio: 1; border: 1px solid #789ba58c; border-radius: 50%; }
.tars-backdrop span:nth-child(2) { transform: scale(1.22); border-style: dashed; }
.tars-backdrop span:nth-child(3) { transform: scale(.76); }
.rocket-fallback { position: absolute; top: 21%; left: 46%; width: 8%; height: 57%; transform: rotate(17deg); border: 1px solid #526b73; border-radius: 50% 50% 5px 5px / 20% 20% 5px 5px; background: linear-gradient(90deg, #8ea4ab, #fffdf2 46%, #b4c4c6); }
.tars-stage[data-rendered] .rocket-fallback { display: none; }
.tars-stage figcaption { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; justify-content: space-between; gap: 10px; color: #244554; font: 600 .75rem/1.4 var(--mono); }
.tars-stage figcaption span { font-weight: 400; }
.internship { background: #f8faf4; }
.posture-art { min-height: 220px; display: grid; place-items: center; background: radial-gradient(ellipse at center, #edf3dd, #dce6c8 75%); }
.posture-study { position: relative; width: 134px; height: 166px; border: 1px dashed #648066; border-radius: 50%; transform: rotate(-8deg); transition: transform .65s var(--ease); }
.internship:hover .posture-study { transform: rotate(0); }
.posture-study::after { content: ""; position: absolute; inset: 12px -19px; border: 1px solid #64806650; border-radius: 50%; transform: rotate(42deg); }
.posture-study span { position: absolute; color: #3a6258; }
.posture-study .head { top: 22px; left: 57px; width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; }
.posture-study .shoulder, .posture-study .hip { left: 40px; width: 52px; top: 59px; border-top: 2px solid currentColor; }
.posture-study .hip { top: 113px; left: 47px; width: 38px; }
.posture-study .spine { inset: 46px auto auto 65px; height: 85px; border-left: 2px solid currentColor; }
.posture-study .spine::before, .posture-study .spine::after { content: ""; position: absolute; left: -4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #aa6138; }
.posture-study .spine::after { top: 64px; }
@media (max-width: 760px) {
  .tars-feature, .internship { grid-template-columns: 1fr; }
  .tars-feature { min-height: 0; }
  .tars-stage { min-height: 320px; }
}
