@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f7ef;
  --stock: #edeee4;
  --ink: #1d2520;
  --muted: #515a51;
  --line: #b8bdb1;
  --acid: #e2ed68;
  --dark: #202e26;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(20px, 5.4vw, 85px);
  --max-width: 1280px;
}

/* Typography and controls */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem / 1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--acid); color: var(--ink); }

.shell { width: min(var(--max-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: clamp(54px, 7.3vw, 108px); }
section[id] { scroll-margin-top: 6rem; }
.project[id] { scroll-margin-top: 6rem; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.2em;
}

h1, h2, h3 { font-family: var(--display); }
h2 { font-size: clamp(2.7rem, 6vw, 6rem); font-weight: 710; letter-spacing: -.033em; line-height: .98; }
h3 { font-size: clamp(1.45rem, 2.45vw, 2.4rem); font-weight: 700; letter-spacing: -.027em; line-height: 1.08; }

.overline {
  font: 650 .76rem / 1.4 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  padding: .72rem 1rem;
  transform: translateY(-180%);
  background: var(--acid);
}

.skip-link:focus { transform: translateY(0); }

.action {
  display: inline-flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1rem;
  border: 1px solid var(--ink);
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: start;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}

.action-dark { background: var(--ink); color: var(--paper); }
.action-dark:hover { background: var(--acid); color: var(--ink); }
.action-outline:hover { background: var(--stock); }
.action-accent { background: var(--acid); color: var(--ink); }
.action-accent:hover { background: var(--paper); }

.line-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .45rem;
  font-size: .89rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}

.line-link:hover { text-decoration-thickness: 2px; }

/* Header */
.page-header {
  position: sticky;
  z-index: 4;
  top: 0;
  background: var(--paper);
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .65rem;
  font: 730 .95rem / .98 var(--display);
  letter-spacing: -.02em;
  text-decoration: none;
}

.monogram {
  display: grid;
  width: 40px;
  height: 40px;
  padding-right: .06em;
  place-items: center;
  background: var(--ink);
  color: var(--acid);
  font: 790 1.16rem / 1 var(--display);
  letter-spacing: -.115em;
  transition: background-color .16s ease, color .16s ease;
}

.wordmark:hover .monogram { background: var(--acid); color: var(--ink); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.7vw, 42px);
  font-size: .88rem;
  font-weight: 640;
}

.site-nav > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
}

.site-nav > a:hover { text-decoration: underline; text-underline-offset: .28em; }

.site-nav > .nav-contact {
  padding-inline: .8rem;
  background: var(--acid);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.28rem;
}

.menu-toggle[aria-expanded="false"] .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* Introduction */
.hero {
  --portrait-column: min(37.5vw, 540px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--portrait-column);
  align-items: center;
  gap: clamp(26px, 5vw, 88px);
  padding-block: clamp(64px, 7.6vw, 118px) clamp(69px, 7.25vw, 108px);
}

.hero-copy { min-width: 0; }

.hero-role {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding-bottom: .46rem;
  border-bottom: 1px solid var(--ink);
}

.hero-role::before {
  width: .55rem;
  height: .55rem;
  border: 1px solid var(--ink);
  background: var(--acid);
  content: "";
}

.hero h1 {
  margin-top: .62rem;
  font-size: clamp(4.3rem, 10.15vw, 9.4rem);
  font-weight: 730;
  letter-spacing: -.036em;
  line-height: .86;
}

.hero h1 > span { display: block; }

.title-dot { color: var(--ink); }

.hero-intro {
  max-width: 30rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.275rem);
  line-height: 1.5;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

.portrait {
  width: 100%;
  max-width: calc(var(--portrait-column) - 14px);
  min-width: 0;
  align-self: end;
  justify-self: start;
}

.portrait-plane {
  position: relative;
  isolation: isolate;
}

.portrait-plane::before {
  position: absolute;
  z-index: -1;
  inset: -15px -14px 16% 16%;
  background: var(--acid);
  content: "";
}

.portrait img { width: 100%; aspect-ratio: 4 / 3; background: #b7b3a1; }

.portrait-mark {
  position: absolute;
  right: -12px;
  bottom: 12px;
  width: clamp(46px, 6.3vw, 91px);
  height: auto;
  fill: none;
  stroke: var(--acid);
  stroke-width: 5;
  stroke-linecap: square;
}

.portrait figcaption {
  display: flex;
  min-height: 48px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
  padding-block: .16rem;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-size: .7rem;
}

.portrait figcaption a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .25rem;
  color: var(--ink);
  text-underline-offset: .3em;
}

/* Projects */
.work { border-top: 1px solid var(--ink); background: var(--stock); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-bottom: clamp(28px, 4.2vw, 58px);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.feature .project-copy { padding: clamp(28px, 4.25vw, 61px); }
.project-copy { min-width: 0; }
.project-type { color: var(--muted); }

.feature h3 {
  margin-top: .85rem;
  font-size: clamp(2.2rem, 4.7vw, 4.75rem);
  font-weight: 715;
  letter-spacing: -.034em;
  line-height: .94;
}

.project-copy h3 + p { margin-top: .65rem; color: var(--muted); line-height: 1.55; }
.feature h3 + p { max-width: 28rem; margin-top: .95rem; }

.project-notes { margin-top: 1.32rem; border-block: 1px solid var(--line); }
.project-notes:not([open]) > :not(summary) { display: none; }

.project-notes summary {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .86rem;
  font-weight: 720;
  list-style: none;
  cursor: pointer;
}

.project-notes summary::-webkit-details-marker { display: none; }
.project-notes summary:hover { text-decoration: underline; text-underline-offset: .24em; }
.project-notes[open] summary .icon { transform: rotate(45deg); }
.project-notes p { padding-bottom: .9rem; color: var(--muted); font-size: .9rem; }

.project-visual {
  display: grid;
  min-width: 0;
  align-content: center;
  padding: clamp(25px, 4.1vw, 60px);
  background: var(--dark);
  color: var(--paper);
}

.visual-label { margin-bottom: 1.33rem; color: var(--acid); font-size: .72rem; }
.flow { display: grid; gap: 0; padding: 0; list-style: none; }

.flow li {
  display: flex;
  min-height: 67px;
  align-items: center;
  gap: 1rem;
  padding-block: .54rem;
  border-top: 1px solid #647269;
}

.flow li:last-child { border-bottom: 1px solid #647269; }
.flow .icon { width: 1.6rem; height: 1.6rem; color: var(--acid); }
.flow strong, .flow small { display: block; }
.flow strong { font-family: var(--display); font-weight: 690; }
.flow small { color: #d1dbcc; font-size: .82rem; line-height: 1.4; }

.project-index { margin-top: clamp(26px, 3.5vw, 47px); }

.index-row {
  display: grid;
  grid-template-columns: minmax(106px, .55fr) minmax(0, 2.5fr) minmax(76px, .48fr);
  align-items: center;
  gap: clamp(18px, 4vw, 62px);
  padding-block: clamp(23px, 3.1vw, 43px);
  border-top: 1px solid var(--ink);
}

.index-row:last-child { border-bottom: 1px solid var(--ink); }
.index-label span { display: block; }
.index-label { align-self: start; padding-top: .24rem; color: var(--muted); }
.index-row .line-link { margin-top: .16rem; }
.project-links { display: flex; flex-wrap: wrap; gap: 0 1rem; }

.study-marker {
  display: flex;
  width: fit-content;
  justify-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(.75rem, 1.15vw, 1rem);
  font-weight: 700;
  line-height: 1;
}

.study-marker span { display: grid; min-width: 2.2em; min-height: 2.15em; place-items: center; border: 1px solid var(--line); }
.study-marker span + span { border-left: 0; }
.study-marker span:first-child { background: var(--acid); color: var(--ink); }
.project-icon { width: clamp(42px, 6.8vw, 88px); justify-self: end; }

.event-mark {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--acid);
}

.event-mark .icon { width: 58%; height: auto; }

/* Experience and profile */
.experience { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: clamp(27px, 6.2vw, 88px); }
.experience h2 { font-size: clamp(2.75rem, 5.1vw, 5.3rem); }

.experience-row {
  display: grid;
  grid-template-columns: minmax(106px, .75fr) minmax(0, 2fr);
  gap: .6rem 1.2rem;
  padding-block: 1.26rem 1.55rem;
  border-top: 1px solid var(--ink);
}

.experience-row:last-child { border-bottom: 1px solid var(--ink); }
.role-date { padding-top: .2rem; color: var(--muted); }
.experience-row h3 { font-size: clamp(1.24rem, 2.05vw, 1.8rem); }
.experience-row p:not(.role-date) { margin-top: .55rem; color: var(--muted); }
.experience-row p.employer { margin-top: .28rem; color: var(--ink); font-weight: 650; font-size: .88rem; }

.skills-section { border-block: 1px solid var(--ink); background: var(--stock); }

.skills-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(24px, 4vw, 52px);
  border-block: 1px solid var(--ink);
}

.skills-list div { min-width: 0; padding: 1.2rem clamp(16px, 2.6vw, 35px); }
.skills-list div:first-child { padding-left: 0; }
.skills-list div + div { border-left: 1px solid var(--ink); }
.skills-list dt { font: 720 clamp(1.13rem, 2.4vw, 1.66rem) / 1.1 var(--display); letter-spacing: -.04em; }
.skills-list dd { margin-top: .52rem; color: var(--muted); }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 8vw, 123px); }
.profile-grid h2 { font-size: clamp(2.3rem, 4.35vw, 4.2rem); }
.profile-grid h2 + p, .credential-list { margin-top: 1.05rem; }
.profile-grid p { max-width: 35rem; color: var(--muted); }
.profile-grid .education { margin-top: 1rem; font-size: .9rem; }
.credential-list { padding: 0; list-style: none; }
.credential-list li { border-top: 1px solid var(--line); }
.credential-list li:last-child { border-bottom: 1px solid var(--line); }

.credential-list a {
  display: flex;
  min-height: 61px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .55rem;
  text-decoration: none;
}

.credential-list a:hover strong { text-decoration: underline; text-underline-offset: .25em; }
.credential-list strong, .credential-list small { display: block; }
.credential-list small { color: var(--muted); font-size: .83rem; }

/* Contact */
.contact {
  padding-block: clamp(48px, 6.5vw, 94px);
  background: var(--dark);
  color: var(--paper);
}

.contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 1.4rem 2rem; }
.contact h2 { font-size: clamp(3.6rem, 9vw, 8.7rem); }
.contact p { margin-top: .8rem; color: #e0e8dc; }
.contact :focus-visible { outline-color: var(--paper); }
.contact .action { min-width: 140px; border-color: var(--acid); }
.footer-inner { display: flex; min-height: 69px; align-items: center; justify-content: space-between; gap: .7rem; }
.footer-inner p { font: 710 1rem / 1 var(--display); }

/* Project case studies */
.case-study {
  max-width: 880px;
  padding-block: clamp(32px, 6vw, 84px);
}

.case-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
}

.case-breadcrumbs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  text-underline-offset: .25em;
}

.case-heading {
  padding-block: clamp(24px, 5vw, 60px);
}

.case-heading .overline { color: var(--muted); }

.case-heading h1 {
  margin-top: .55rem;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  font-weight: 730;
  letter-spacing: -.042em;
  line-height: .94;
}

.case-lede {
  max-width: 37rem;
  margin-top: 1rem;
  font-size: clamp(1.08rem, 2.35vw, 1.4rem);
}

.case-byline { margin-top: .85rem; color: var(--muted); }
.case-byline a { text-underline-offset: .25em; }
.case-heading .action { margin-top: 1.2rem; }

.case-section {
  padding-block: clamp(20px, 3.15vw, 36px);
  border-top: 1px solid var(--line);
}

.case-section h2 {
  font-size: clamp(1.5rem, 3.3vw, 2.4rem);
  line-height: 1.1;
}

.case-section p { max-width: 43rem; margin-top: .62rem; color: var(--muted); }

.case-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  padding-block: .6rem;
  border-top: 1px solid var(--ink);
}

@media (max-width: 950px) {
  .experience { grid-template-columns: 1fr; }
  .experience-row { grid-template-columns: minmax(140px, .65fr) minmax(0, 2fr); }
}

@media (max-width: 760px) {
  .page-header:not([data-menu-ready]) { position: static; }
  .header-inner { flex-wrap: wrap; min-height: 63px; gap: .2rem 1rem; }
  .menu-toggle:not([hidden]) { display: grid; }
  .page-header[data-menu-ready] .site-nav:not([data-open]) { display: none; }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: .1rem .7rem;
  }

  .site-nav a { justify-content: space-between; padding-inline: .28rem; border-top: 1px solid var(--line); }
  .site-nav > .nav-contact { width: fit-content; margin-top: .38rem; border-top: 0; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(50px, 10vw, 68px);
    padding-block: 46px 47px;
  }

  .hero h1 { margin-top: .75rem; font-size: clamp(3.65rem, 15.6vw, 7.4rem); }
  .hero-intro { margin-top: 1.08rem; }
  .hero-actions { margin-top: 1.12rem; }
  .portrait { width: calc(100% - 14px); max-width: 510px; }
  .portrait-plane::before { top: -11px; }

  .feature, .skills-list, .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .project-visual { padding-block: 1.6rem; }
  .index-row { grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; }
  .index-label { grid-column: 1 / -1; }
  .index-label span { display: inline; }
  .index-label span::before { content: "· "; }
  .index-row .study-marker, .index-row .project-icon { align-self: start; }

  .experience-row { grid-template-columns: minmax(0, 1fr); }
  .skills-list div, .skills-list div:first-child { padding: 1rem 0; }
  .skills-list div + div { border-top: 1px solid var(--ink); border-left: 0; }
  .contact-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 380px) {
  .hero-actions { align-items: start; flex-direction: column; }
  .section-head { align-items: start; flex-direction: column; }
  .index-row .study-marker { grid-column: 1 / -1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .action, .monogram { transition: none; }
}
