html { scroll-behavior: smooth; }
a { color: inherit; }
.site-header, main, footer { position: relative; width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  color: var(--text);
  text-decoration: none;
  font: 700 .78rem ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
nav > a { text-decoration: none; border-bottom: 1px solid transparent; }
nav > a:hover { border-color: var(--accent); }
.theme-control { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .88rem; }
select {
  padding: .35rem 1.7rem .35rem .5rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--control-line);
  border-radius: 2px;
  font: inherit;
}

.hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(5rem, 10vw, 8rem); }
.eyebrow, .project-type {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font: 700 .75rem ui-monospace, monospace;
  letter-spacing: .12em;
}
h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .95;
}
.intro {
  max-width: 45rem;
  margin: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}
.scope { max-width: 50rem; margin: 0; border-top: 1px solid var(--line); }
.scope div, .project-details div { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.scope dt, .project-details dt { color: var(--accent); font: 700 .75rem ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; }
.scope dd, .project-details dd { margin: 0; }
.scope a { color: var(--accent); text-underline-offset: .2rem; }

.section {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
}
.section-label { display: flex; gap: 1rem; align-items: baseline; }
.section-label span { color: var(--accent); font: 700 .75rem ui-monospace, monospace; }
h2 { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
h3 { margin: 0 0 .7rem; font-size: clamp(1.5rem, 3vw, 2rem); font-style: italic; }
.project {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
}
.project:hover { border-color: var(--accent); }
.project p:not(.project-type) { max-width: 44rem; margin: 0; color: var(--muted); }
.project-details { max-width: 44rem; margin: 1.5rem 0 0; }
.arrow { color: var(--accent); font-size: 1.6rem; }
.context-copy { max-width: 44rem; }
.context-copy p { margin: 0 0 1rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .88rem;
}

@media (max-width: 720px) {
  .site-header, main, footer { width: min(100% - 1.5rem, 70rem); }
  nav > a { display: none; }
  .hero { padding-top: 4rem; }
  h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .scope div, .project-details div { grid-template-columns: 1fr; gap: .25rem; }
  .section { grid-template-columns: 1fr; gap: 2rem; }
  .project { padding: 1.4rem; }
  footer { flex-direction: column; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
