:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --text: #ededeb;
  --muted: #999995;
  --line: #292927;
  --container: 1320px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .65rem .9rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner,
main,
footer {
  width: min(100% - (2 * var(--gutter)), var(--container));
  margin-inline: auto;
}
.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { font-weight: 650; }
.site-header nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.site-header nav a { color: var(--muted); font-size: .93rem; }
.site-header nav a:hover { color: var(--text); }

.hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.position { margin-bottom: 1.25rem; font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.position span { margin: 0 .12em; color: #62625f; }
.location,
.hero-support { margin-bottom: .25rem; color: var(--muted); }
.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid currentColor;
  font-size: .9rem;
  font-weight: 600;
}
.text-link:hover { color: var(--muted); }

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.section > h2 {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 580;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 2.5rem);
}
.project-card { min-width: 0; }
.project-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.project-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #141414;
}
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s ease;
}
.project-button:hover img { opacity: .86; }
.project-title-row { display: block; padding-top: .9rem; }
.project-title-row h3 { margin: 0 0 .1rem; font-size: 1.2rem; font-weight: 600; }
.project-title-row span { color: var(--muted); font-size: .93rem; }

.about-copy { max-width: 780px; }
.about-copy p { margin-bottom: 1.2rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.about-copy p:last-child { margin-bottom: 0; color: var(--muted); }

.capability-list > div,
.experience-list > div {
  display: grid;
  gap: 2rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.capability-list > div { grid-template-columns: minmax(13rem, .7fr) 2fr; }
.capability-list h3,
.experience-list h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.capability-list p,
.experience-list p,
.experience-list time { margin: 0; color: var(--muted); }
.experience-list > div { grid-template-columns: 1.2fr 1fr auto; }
.experience-list time { text-align: right; }

.contact-details p { margin: 0; color: var(--muted); font-size: 1.1rem; }
footer { min-height: 6rem; display: flex; align-items: center; color: var(--muted); font-size: .85rem; }
footer p { margin: 0; }

.project-dialog {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--text);
}
.project-dialog::backdrop { background: #000; }
.dialog-inner { width: min(100% - (2 * var(--gutter)), var(--container)); min-height: 100%; margin-inline: auto; padding: 5rem 0; }
.dialog-close {
  position: fixed;
  z-index: 2;
  top: 1.25rem;
  right: var(--gutter);
  padding: .55rem .8rem;
  border: 1px solid #444;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.dialog-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(17rem, .75fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; min-height: calc(100vh - 10rem); }
.dialog-media { display: grid; place-items: center; min-height: 60vh; overflow: hidden; background: #131313; }
.dialog-media video,
.dialog-media img { display: block; width: 100%; max-height: 82vh; object-fit: contain; background: #111; }
.dialog-copy h2 { margin-bottom: 1.25rem; font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 580; line-height: 1.08; letter-spacing: -.035em; }
.dialog-description { color: var(--muted); }
.dialog-copy dl { margin-top: 2.5rem; }
.dialog-copy dl div { padding: .9rem 0; border-top: 1px solid var(--line); }
.dialog-copy dt { margin-bottom: .25rem; font-size: .85rem; font-weight: 600; }
.dialog-copy dd { margin: 0; color: var(--muted); }
body.dialog-open { overflow: hidden; }

@media (max-width: 700px) {
  .header-inner { min-height: 4rem; align-items: flex-start; padding: .9rem 0; gap: 1rem; }
  .brand { white-space: nowrap; }
  .site-header nav { display: grid; grid-template-columns: repeat(2, auto); gap: .15rem 1rem; }
  .hero { padding: 3.5rem 0 3.75rem; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 4.25rem); }
  .hero-support { max-width: 28rem; }
  .section { padding: 4.25rem 0; }
  .project-grid { grid-template-columns: 1fr; gap: 3rem; }
  .capability-list > div,
  .experience-list > div { grid-template-columns: 1fr; gap: .35rem; }
  .experience-list time { text-align: left; }
  .dialog-inner { padding: 4.75rem 0 3rem; }
  .dialog-layout { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .dialog-media { min-height: 42vh; }
}

@media (max-width: 420px) {
  .header-inner { display: block; }
  .site-header nav { display: flex; justify-content: space-between; margin-top: .65rem; }
  .hero { padding-top: 3rem; }
  .position { max-width: 22rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
