@font-face {
  font-family: "DM Sans";
  src: url("dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #101615;
  --paper: #f6f6f0;
  --light: #eaf3e8;
  --accent: #99e8de;
  --muted: #b4c3be;
  --line: #36413c;
  --paper-line: #cbcec3;
  --frame: 78rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  color: var(--light);
  background: var(--ink);
  font: 400 1.0625rem/1.55 "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { color: #0b2826; background: #a8ece1; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #008785; outline-offset: 5px; }
:is(.masthead, .hero, .contact-section, .footer) a:focus-visible { outline-color: var(--accent); }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 550; text-wrap: balance; }
h1 em, h2 em { font: italic 400 1.12em/.91 "Instrument Serif", Georgia, serif; letter-spacing: -.025em; }
.frame { width: min(calc(100% - clamp(2.5rem, 10vw, 10rem)), var(--frame)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 3; top: .5rem; left: .5rem; padding: .65rem 1rem; color: var(--ink); background: white; transform: translateY(-170%); }
.skip-link:focus { transform: translateY(0); }
.masthead {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.4rem; font-weight: 650; letter-spacing: -.055em; text-decoration: none; }
.logo-glyph {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0 .16rem .15rem 0;
  font: bold italic 1.43rem/.9 "Instrument Serif", Georgia, serif;
  color: var(--ink);
  background: var(--accent);
  border-radius: .25rem;
}
nav { display: flex; align-items: center; gap: clamp(.8rem, 3.1vw, 3rem); }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-size: .98rem; }
nav a:hover { color: var(--accent); }
.nav-contact { border: 1px solid #5c6c66; padding: 0 1.1rem; border-radius: 100px; }
.nav-contact:hover { border-color: var(--accent); }
.hero-panel { padding-block: clamp(2.5rem, 5vw, 5rem); }
.banner.style1.hero { gap: clamp(2rem, 5vw, 5.5rem); align-items: center; overflow: visible; }
.banner.style1.hero .content { flex: 1 1 auto; width: 51%; max-width: unset; padding: 0; }
.eyebrow { font-size: .83rem; font-weight: 600; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; }
.location { display: inline-flex; align-items: center; gap: .65rem; color: var(--muted); }
.location::before { content: ""; display: inline-block; width: 2rem; border-top: 1px solid var(--accent); }
h1 { padding-block: clamp(1.35rem, 2.4vw, 2.1rem) 0; font-size: clamp(3.5rem, 7.25vw, 7.4rem); line-height: .94; letter-spacing: -.085em; }
h1 em { color: var(--accent); white-space: nowrap; }
.hero-intro { max-width: 32rem; margin-top: clamp(1.5rem, 2.35vw, 2.2rem); font-size: clamp(1.08rem, 1.45vw, 1.35rem); color: #d5ded8; }
.hero-actions { display: flex; align-items: center; gap: 1.7rem; margin-top: clamp(1.5rem, 2.6vw, 2.4rem); }
.button, .text-link { font-size: 1rem; font-weight: 600; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.12rem; padding: .72rem 1.45rem; border-radius: .3rem; text-decoration: none; }
.button.primary { color: #102726; background: var(--accent); }
.button.primary:hover { background: #c2fff3; }
.text-link { display: inline-block; padding-block: .25rem; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .34em; text-decoration-color: currentColor; }
.text-link:hover { text-decoration-thickness: 2px; }
.banner.style1.hero .profile-art {
  position: relative;
  width: 43%;
  height: auto;
  aspect-ratio: 1.12;
  max-height: 32rem;
  border: .55rem solid #1e2b29;
  outline: 1px solid #40514c;
  background: #0e2529;
}
.banner.style1.hero .profile-art img { object-position: center 39%; }
.work-section { background: var(--paper); color: var(--ink); padding: clamp(3.5rem, 6.5vw, 6.5rem) 0; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 4rem); }
h2 { font-size: clamp(2.8rem, 5.8vw, 5.6rem); line-height: 1; letter-spacing: -.072em; }
h3 { font-size: clamp(2rem, 3.6vw, 3.95rem); line-height: 1.04; letter-spacing: -.065em; }
.spotlight.style1.project { gap: clamp(2rem, 5.5vw, 5.2rem); align-items: center; padding-block: clamp(1.65rem, 3vw, 3rem); border-top: 1px solid var(--paper-line); }
.project:last-child { border-bottom: 1px solid var(--paper-line); }
.spotlight.style1.project .content { flex: 1 1 auto; width: 50%; min-width: 0; padding: 0; margin: 0; }
.project .eyebrow { color: #47635c; margin-bottom: .75rem; }
.project .content > p:not(.eyebrow) { font-size: clamp(1rem, 1.32vw, 1.2rem); color: #43504a; margin-top: 1rem; max-width: 36rem; }
.project .text-link { margin-top: 1.1rem; }
.spotlight.style1.project .project-art { position: relative; width: 49%; min-width: 0; aspect-ratio: 1.65; overflow: hidden; background: #1e2928; }
.spotlight.style1.project .project-art img { height: 100%; }
.spotlight.style1.project :is(.chart, .kernel) img { object-fit: contain; }
.about-section { color: var(--ink); background: #e2ece4; border-bottom: 1px solid var(--line); padding: clamp(3.5rem, 7vw, 7rem) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.about-copy { max-width: 43rem; }
.about-copy p { font-size: clamp(1.08rem, 1.65vw, 1.45rem); line-height: 1.55; }
.about-copy p + p { margin-top: .9em; }
.about-copy a { margin-top: 1.35rem; }
.contact-section { padding: clamp(4rem, 7vw, 7rem) 0; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.contact-inner em { color: var(--accent); }
.footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; padding: 1.6rem 0; font-size: .875rem; }
.footer a { text-underline-offset: .2em; }
@media (orientation: portrait) and (min-width: 761px) {
  .banner.style1.hero { flex-direction: row; text-align: left; }
  .banner.style1.hero .content { display: block; }
}
@media (max-width: 760px) {
  .masthead { min-height: 4.6rem; }
  .banner.style1.hero { flex-direction: column; text-align: left; align-items: stretch; gap: 2rem; }
  .banner.style1.hero .content { width: 100%; display: block; max-width: none; }
  h1 { font-size: clamp(3.1rem, 15.5vw, 5.5rem); }
  .hero-intro { max-width: 34rem; }
  .banner.style1.hero .profile-art { width: 100%; max-height: 24rem; aspect-ratio: 1.6; }
  .banner.style1.hero .profile-art img { object-position: 50% 32%; }
  .section-header { flex-wrap: wrap; align-items: center; }
  .spotlight.style1.project { flex-direction: column-reverse; gap: 1.3rem; align-items: stretch; text-align: left !important; padding-block: 2rem; }
  .spotlight.style1.project .content, .spotlight.style1.project .project-art { width: 100%; }
  .spotlight.style1.project .project-art img { position: absolute; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .masthead { align-items: flex-start; flex-direction: column; gap: 0; padding-block: .75rem .45rem; }
  .wordmark { font-size: 1.2rem; }
  .logo-glyph { height: 1.6rem; width: 1.6rem; font-size: 1.25rem; }
  nav { width: 100%; justify-content: space-between; gap: .3rem; }
  nav a { font-size: .92rem; }
  .nav-contact { border: none; padding: 0; }
  .section-header .text-link { font-size: .95rem; }
  .hero-panel { padding-block: 2rem; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
