:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  --bg: #1b1d1b;
  --ink: #f4f2e9;
  --muted: #b7b9ae;
  --line: #42453e;
  --surface: #232621;
  --accent: #f6ac76;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  background: var(--bg);
  color: var(--ink);
}
:root.interconnect {
  --bg: #101d2c;
  --ink: #f0f4fa;
  --muted: #b4c4d7;
  --line: #35465b;
  --surface: #18283b;
  --accent: #91c5ff;
}
:root.folio {
  color-scheme: light;
  --bg: #f5f1e7;
  --ink: #291f28;
  --muted: #665c5d;
  --line: #d4cbc1;
  --surface: #eae3d6;
  --accent: #753350;
  --plum: #452638;
}
*, *::before, *::after { box-sizing: border-box; }
body, p, h1, h2, h3, figure, fieldset { margin: 0; }
body { line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.1; font-weight: 590; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.85rem); }
.wrap { width: min(100% - clamp(2.25rem, 9vw, 9rem), 78rem); margin-inline: auto; }
.skip, .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  clip-path: none; inset: .5rem auto auto .5rem; width: auto; height: auto; z-index: 3;
  padding: .5rem 1rem; background: var(--ink); color: var(--bg);
}
.studies { background: var(--surface); border-bottom: 1px solid var(--line); }
.studies nav { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 clamp(.7rem, 2vw, 1.6rem); font-size: .76rem; }
.studies nav span { color: var(--muted); margin-right: auto; align-self: center; }
.studies a { color: var(--muted); padding: .48rem 0; border-bottom: 2px solid transparent; }
.studies a[aria-current] { border-color: var(--accent); color: var(--ink); font-weight: 650; }
.mast, footer, .mast nav, footer nav, .brand, .contact { display: flex; align-items: center; }
.mast, footer, .contact { justify-content: space-between; }
.mast { min-height: 4.5rem; border-bottom: 1px solid var(--line); }
.mast nav, footer nav { gap: clamp(.85rem, 2.4vw, 2.2rem); font-size: .9rem; }
.mast nav a, footer nav a { padding-block: .7rem; }
nav a:hover, .index a:hover, .folio-contact:hover { color: var(--accent); }
.brand { gap: .6rem; font-size: 1.05rem; font-weight: 620; letter-spacing: -.025em; }
.mark {
  display: inline-block; width: 1.35rem; height: 1.6rem; background: var(--accent);
  clip-path: polygon(0 28%,71% 0,100% 10%,28% 38%,0 28%,0 45%,71% 17%,100% 27%,28% 55%,0 45%,0 62%,71% 34%,100% 44%,28% 72%,0 62%,0 79%,71% 51%,100% 61%,28% 89%,0 79%);
}
.hero h1 { font-size: clamp(3.6rem, 6.5vw, 6.25rem); letter-spacing: -.065em; line-height: .99; }
.kicker, .formula, .project-meta, .source, #result, .readout { font-size: .85rem; }
.kicker { color: var(--accent); font-weight: 550; }
.intro-detail, .feature p, .history p, .contact p:not(.kicker) { color: var(--muted); }
.intro-detail { max-width: 43ch; }
.work-link, #run {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem; font: inherit;
  line-height: 1.2; font-size: .9rem; font-weight: 590; min-height: 2.65rem;
  border-radius: 2rem; padding: .65rem 1.1rem; cursor: pointer;
}
.work-link { background: var(--ink); color: var(--bg); }
.work-link:hover { background: var(--accent); }
.work-link::after { content: "→" / ""; }
.work { padding-block: clamp(2.6rem, 4.3vw, 4.5rem); border-top: 1px solid var(--line); }
.work h2 { margin-bottom: 1.75rem; }
.feature {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 2rem; border-top: 1px solid var(--line); padding: 1.8rem 0;
}
.feature p { max-width: 58ch; }
.project-meta { margin-top: .45rem; }
.text-link, .folio-contact {
  display: inline-block; margin-top: .9rem; font-size: .9rem; font-weight: 600;
  color: var(--accent); text-decoration: underline; text-underline-offset: .28em;
}
.text-link:hover { color: var(--ink); }
.index { margin-top: 1.5rem; }
.index h3 { font-size: 1.12rem; margin-bottom: .9rem; }
.index a { border-top: 1px solid var(--line); padding: .95rem 0; display: grid; grid-template-columns: 7rem 1fr auto; gap: 1.25rem; align-items: baseline; }
.index .kicker, .source, .history .kicker { color: var(--muted); }
.background { background: var(--surface); border-block: 1px solid var(--line); padding: clamp(3rem, 5.5vw, 5.5rem) 0; }
.background-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; }
.background h2, .contact h2 { margin-top: .7rem; }
.history > div + div { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1.4rem; }
.history h3 { margin: .5rem 0 .2rem; font-size: clamp(1.18rem, 1.7vw, 1.55rem); }
.history .institution { color: var(--ink); }
.history p + p { margin-top: .5rem; max-width: 57ch; }
.contact { padding-block: clamp(2.8rem, 5.6vw, 5.3rem); gap: 1.25rem; }
.contact .work-link { margin-top: .8rem; }
footer { flex-wrap: wrap; gap: .35rem 1rem; border-top: 1px solid var(--line); padding-block: 1.3rem; }

/* The surface continues into the charcoal page around it. */
.ridgeline .hero {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
  align-items: center; gap: clamp(1.8rem, 4.5vw, 4.5rem); padding-block: clamp(2.8rem, 5.2vw, 5.4rem);
}
.ridgeline h1 { margin: 1.25rem 0; }
.lede { max-width: 23ch; font-size: clamp(1.3rem, 2.1vw, 2rem); line-height: 1.18; letter-spacing: -.025em; }
.ridgeline .intro-detail { margin: 1rem 0 1.55rem; }
.instrument { min-width: 0; }
.instrument-head, figcaption { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.instrument-head { border-bottom: 1px solid var(--line); padding-block: .55rem; }
.instrument-head .kicker { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); }
.cross { width: .65rem; height: .65rem; background: linear-gradient(var(--accent),var(--accent)) center/100% 1px no-repeat, linear-gradient(var(--accent),var(--accent)) center/1px 100% no-repeat; }
.formula { font-family: var(--mono); color: var(--muted); }
.plot { position: relative; }
.plot img, .plot canvas { display: block; width: 100%; height: auto; }
.plot canvas { position: absolute; inset: 0; pointer-events: none; }
figcaption { padding-top: .8rem; border-top: 1px solid var(--line); }
.instrument-title, #result { display: block; }
.instrument-title { font-weight: 600; }
#result { color: var(--muted); font-variant-numeric: tabular-nums; }
#run { color: var(--ink); border: 1px solid #716e60; background: transparent; white-space: nowrap; }
#run:hover { border-color: var(--accent); }
.play { border-style: solid; border-width: .24rem 0 .24rem .38rem; border-color: transparent transparent transparent var(--accent); }
.ridgeline .features, .interconnect .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.ridgeline .features { gap: 0 clamp(2rem, 4vw, 4rem); }
.ridgeline .feature { display: block; padding: 1.35rem 0 .5rem; }
.ridgeline .feature > div + div { margin-top: 1rem; }

/* The strip separating the two chip packages contains only crossing signals. */
.interconnect .hero { padding-block: clamp(2.5rem, 5.5vw, 5.5rem); }
.circuit-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.circuit-intro h1 { margin-top: .55rem; }
.circuit-intro .intro-detail { justify-self: end; font-size: clamp(1rem, 1.4vw, 1.3rem); line-height: 1.5; }
.interconnect .work { padding-top: clamp(1.8rem, 3vw, 2.7rem); }
.interconnect .features { gap: 1.1rem; }
.interconnect .feature {
  display: flex; flex-direction: column; gap: .85rem; padding: clamp(1.1rem, 2vw, 1.65rem);
  background: var(--surface); border: 1px solid var(--line); border-top: 2px solid #84adc9; border-radius: .5rem;
}
.interconnect .feature h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); }
.interconnect .feature .project-meta { color: var(--accent); }
.interconnect .feature > div:last-child { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.interconnect .feature .text-link { margin-top: auto; }
.current-work { border-top: 1px solid var(--line); padding-block: clamp(1.8rem, 3vw, 2.7rem); }
.current-work .role-description { color: var(--muted); max-width: 67ch; margin: .7rem 0 1.4rem; }
/* A bound margin for the profile and an open column for the work. */
.folio main {
  width: min(100% - clamp(2.25rem, 9vw, 9rem), 78rem); margin: 2.4rem auto 0;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr); gap: 0 clamp(2rem, 4.3vw, 4.6rem);
}
.folio main .wrap { width: 100%; }
.folio .hero { grid-column: 1; }
.profile {
  background: var(--plum); color: #fff1df; border-radius: .22rem; padding: clamp(1.6rem, 3.15vw, 3.2rem);
  border-left: .5rem solid #b9716e;
}
.profile .kicker { color: #e2c2bc; }
.profile h1 { font-size: clamp(4.25rem, 7.4vw, 7.75rem); line-height: .9; margin: 2.45rem 0 1.7rem; }
.profile .role { font-weight: 550; font-size: clamp(1.1rem, 1.7vw, 1.5rem); line-height: 1.25; }
.profile .intro-detail { color: #e1cdd2; margin: 1.5rem 0 1rem; }
.folio-contact { color: #ffddd5; }
.folio-contact:hover, .folio-contact:focus-visible { color: white; outline-color: white; }
.folio .work { grid-column: 2; border: 0; padding: .1rem 0 2.75rem; }
.folio .work h2 { font-size: 1.05rem; letter-spacing: 0; margin-bottom: .9rem; }
.folio .feature { display: block; border-color: #b8a79f; padding: 1.35rem 0 1.55rem; }
.folio .feature h3 { font-size: clamp(1.85rem, 3.3vw, 3.2rem); }
.folio .feature > div + div { margin-top: .7rem; }
.folio .index { margin-top: .55rem; }
.folio .index a { grid-template-columns: 5rem 1fr; gap: .8rem; }
.folio .index .source { display: none; }
.folio .background, .folio .contact { grid-column: 1 / -1; }
.folio .background { background: transparent; }
.folio .background-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr); gap: clamp(2rem, 4.3vw, 4.6rem); }

.archive h1 { margin-block: clamp(2rem, 4.8vw, 4.5rem); font-size: clamp(3.25rem, 7vw, 6rem); }
.archive-layout { display: grid; grid-template-columns: minmax(10rem, .45fr) minmax(0, 1.55fr); gap: clamp(2rem, 6vw, 6rem); margin-bottom: 4rem; }
.archive-nav { position: sticky; top: 1.25rem; align-self: start; display: grid; gap: .15rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.archive-nav a { width: fit-content; padding-block: .35rem; }
.archive-groups section + section { margin-top: clamp(2.8rem, 5vw, 4.8rem); }
.archive-groups h2 { scroll-margin-top: 1rem; margin-bottom: 1.25rem; }
.archive-groups article { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 1.5rem; border-top: 1px solid var(--line); padding-block: 1.1rem; }
.archive-groups h3 { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.015em; }
.archive-groups h3 a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.archive-groups p { color: var(--muted); }
.archive footer .text-link { margin: 0; }

@media (max-width: 48rem) {
  .archive-layout { grid-template-columns: 1fr; gap: 2rem; }
  .archive-nav { position: static; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
  .ridgeline .hero, .circuit-intro, .folio main, .background-grid, .folio .background-grid { grid-template-columns: 1fr; }
  .ridgeline .hero { gap: 2.2rem; }
  .ridgeline h1 { margin-block: .85rem; }
  .ridgeline .features { display: block; }
  .ridgeline .feature { padding-block: 1.45rem; }
  .circuit-intro { gap: 1rem; }
  .circuit-intro .intro-detail { justify-self: start; max-width: 52ch; }
  .folio main { margin-top: 1.45rem; }
  .folio .work { grid-column: 1; padding-top: 1.8rem; }
  .profile h1 { margin: 1.15rem 0; }
  .profile h1 br { display: none; }
  .profile .intro-detail { margin: .85rem 0 0; }
}
@media (max-width: 36rem) {
  .archive-groups article { grid-template-columns: 1fr; gap: .45rem; }
  .mast { min-height: 3.8rem; }
  .mast nav, footer nav { font-size: .83rem; }
  .feature { grid-template-columns: 1fr; gap: .8rem; }
  .index a, .folio .index a { grid-template-columns: 1fr; gap: .2rem; }
  .index .source { display: none; }
  .contact { align-items: flex-start; flex-direction: column; }
  .studies nav { font-size: .71rem; }
  .folio main { gap: 0; }
}
