:root {
  --ink: #17202B;
  --sheet: #1B2531;
  --grid: #1D2733;
  --grid-major: #233040;
  --rule: #34445A;
  --paper: #DCE1E6;
  --muted: #8C99A8;
  --amber: #F2B33D;
  --blue: #69A7E0;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  --gut: clamp(20px, 4vw, 48px);
  --head: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + env(safe-area-inset-top, 0px));
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--paper); text-decoration-color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: var(--ink); padding: .6em 1em; z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(23, 32, 43, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.top-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  height: var(--head); display: flex; align-items: center; justify-content: space-between;
}
.mark {
  font-stretch: 125%; font-weight: 800; font-size: 1rem; text-decoration: none;
  border: 1.5px solid var(--paper); padding: .15em .45em; line-height: 1.2;
}
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.top nav a:hover { color: var(--paper); }

/* Hero */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gut) 0;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
h1 {
  margin: 0 0 .35em;
  font-size: clamp(3.25rem, 7.4vw, 6.25rem);
  font-stretch: 125%; font-weight: 800;
  line-height: .88; letter-spacing: -.015em;
}
.lede { font-size: 1.375rem; font-stretch: 108%; line-height: 1.4; margin: 0 0 .8em; max-width: 30ch; }
.hero-text p:not(.lede) { color: var(--muted); max-width: 40ch; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.btn {
  display: inline-block; padding: .7em 1.15em;
  border: 1px solid var(--rule); background: var(--ink);
  text-decoration: none; font-weight: 600; line-height: 1.2;
}
.btn:hover { border-color: var(--paper); color: var(--paper); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.primary:hover { background: #FFC655; border-color: #FFC655; color: var(--ink); }

.rig { margin: 0; border: 1px solid var(--rule); background: rgba(27, 37, 49, .55); }
#arm { display: block; width: 100%; aspect-ratio: 4 / 3; touch-action: pan-y; cursor: crosshair; }
.rig figcaption {
  border-top: 1px solid var(--rule); padding: .75rem 1rem;
  color: var(--muted); font-size: .9375rem; font-style: italic; line-height: 1.45;
}
.hint-touch { display: none; }
@media (hover: none) {
  .hint-pointer { display: none; }
  .hint-touch { display: inline; }
}

/* Sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 11vw, 136px) var(--gut) 0; }
h2 {
  margin: 0; font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-stretch: 125%; font-weight: 800; line-height: 1; letter-spacing: -.01em;
}
.section-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end; gap: 12px 32px;
  border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: 2rem;
}
.section-head p { margin: 0; color: var(--muted); max-width: 56ch; }

.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }

.dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--amber); flex: none; vertical-align: -1px;
}
.s-run { background: var(--amber); }
.s-prog { background: linear-gradient(90deg, var(--amber) 50%, transparent 50%); }
.s-design { border-style: dashed; border-color: var(--muted); }

/* Build sheets */
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sheet { background: var(--sheet); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.sheet-main { flex: 1; display: flex; flex-direction: column; }
.sheet-body { padding: 1.5rem 1.5rem .5rem; }
.sheet h3 { margin: 0 0 .6rem; font-size: 1.5rem; font-stretch: 112%; font-weight: 700; line-height: 1.15; }
.sheet p { margin: 0 0 1em; max-width: 62ch; }

.drawing {
  margin: 0; position: relative; aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--rule); color: var(--muted);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;
  overflow: hidden;
}
.drawing .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.sheet-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.sheet-wide .drawing { aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--rule); }
.sheet-wide .sheet-body { padding: 2rem 2rem .75rem; }
.sheet-wide h3 { font-size: 2rem; }

.draw { display: block; width: 100%; height: 100%; }
.draw * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.draw .o { stroke-width: 13; }
.draw .i { stroke: var(--sheet); stroke-width: 10; }
.draw .o.thin { stroke-width: 9; }
.draw .i.thin { stroke-width: 6; }
.draw .joint { fill: var(--sheet); }
.draw .pin { fill: currentColor; stroke: none; }
.draw .hatch { stroke-width: 1; opacity: .6; }
.draw .ref { stroke-dasharray: 3 4; stroke-width: 1; }
.draw .amber, .draw .amber * { stroke: var(--amber); }
.draw .blue, .draw .blue * { stroke: var(--blue); }
.draw .blue-fill { fill: var(--blue); stroke: none; }
.draw .band { fill: var(--amber); stroke: none; opacity: .22; }
.draw .dash { stroke-dasharray: 4 4; }
.draw .note { fill: var(--amber); stroke: none; font-family: var(--font); font-size: 11px; font-weight: 600; }
.draw .blue-text { fill: var(--blue); }

.titleblock {
  margin: auto 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--rule); border-top: 1px solid var(--rule);
}
.titleblock div { background: var(--sheet); padding: .65rem 1.5rem .75rem; }
.titleblock dt { font-size: .75rem; color: var(--muted); letter-spacing: .02em; margin-bottom: .15rem; }
.titleblock dd { margin: 0; font-size: .9375rem; line-height: 1.35; display: flex; align-items: center; gap: 8px; }
.sheet-wide .titleblock div { padding-left: 2rem; padding-right: 2rem; }

/* Work */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 8px 32px;
  padding: 1.75rem 0; border-bottom: 1px solid var(--rule);
}
.timeline li:first-child { padding-top: .5rem; }
.years { font-stretch: 125%; font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; padding-top: .15rem; }
.timeline h3 { margin: 0; font-size: 1.375rem; font-stretch: 112%; font-weight: 700; line-height: 1.2; }
.timeline .role { margin: .2rem 0 .6rem; color: var(--muted); }
.timeline p { margin: 0; max-width: 64ch; }
.timeline .role:last-child { margin-bottom: 0; }
.timeline .edu .years { color: var(--muted); }

.cta {
  margin-top: 2.5rem; padding: 1.5rem 1.75rem; border: 1px solid var(--amber);
  background: var(--sheet);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cta p { margin: 0; max-width: 60ch; }
.cta .btn { flex: none; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about h2 { margin-bottom: 1.25rem; }
.about-text p { max-width: 60ch; margin: 0 0 1em; }
.headshot {
  margin: 0; position: relative; aspect-ratio: 4 / 5;
  border: 1px solid var(--rule); background-color: var(--sheet);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
}
.headshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.monogram { display: none; }
.headshot.empty .monogram {
  display: grid; place-items: center; position: absolute; inset: 0;
  font-size: clamp(4rem, 9vw, 6.5rem); font-stretch: 125%; font-weight: 800;
  color: transparent; -webkit-text-stroke: 1.5px var(--muted);
}

.facts { display: inline-grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0 0 1.25em; }
.facts div { background: var(--sheet); padding: .65rem 1.25rem .75rem; }
.facts dt { font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.facts dd { margin: 0; font-stretch: 112%; font-weight: 700; font-size: 1.125rem; }

/* Contact */
.contact p { color: var(--muted); margin: 1rem 0 .5rem; }
.email {
  display: inline-block; font-size: clamp(1.25rem, 4vw, 2.5rem);
  font-stretch: 112%; font-weight: 700; overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
}

/* Footer */
.foot { margin-top: clamp(80px, 12vw, 140px); border-top: 1px solid var(--rule); background: var(--ink); }
.foot-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1.25rem var(--gut);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: .875rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .sheets { grid-template-columns: 1fr; }
  .sheet-wide { grid-template-columns: 1fr; }
  .sheet-wide .drawing { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--rule); }
  .sheet-wide .sheet-body { padding: 1.5rem 1.5rem .5rem; }
  .sheet-wide .titleblock div { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sheet-wide h3 { font-size: 1.5rem; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .about { grid-template-columns: 1fr; }
  .headshot { max-width: 280px; }
}
@media (max-width: 480px) {
  .top nav { gap: 14px; font-size: .9375rem; }
  .titleblock { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
