:root {
  color-scheme: light;
  font-family: "Onest", Arial, sans-serif;
  font-synthesis: none;
  --ink: #101820;
  --blue: #164b78;
  --paper: #f5f5f1;
  --header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 30;
  top: -100px;
  left: 16px;
  padding: 12px 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  height: var(--header-height);
  color: #fff;
  background: #0b111a;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  height: 100%;
  padding: 0 clamp(22px, 3.6vw, 64px);
}
.wordmark {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark a { text-decoration: none; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .015em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  transition: border-color .25s ease, opacity .25s ease;
}
.nav-link:hover { border-color: #fff; opacity: .72; }
.nav-link span { font-size: 20px; font-weight: 400; line-height: .7; }

.team-hero { height: 100vh; height: 100svh; min-height: 550px; overflow: hidden; }
.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 100%; }
.person { position: relative; min-width: 0; isolation: isolate; overflow: hidden; background: #273445; }
.person:not(:last-child) { border-right: 1px solid rgba(255,255,255,.3); }
.person img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal) center;
  transform: scale(1);
  transition: transform .9s cubic-bezier(.18,.66,.26,1);
}
.person:hover img { transform: scale(1.065); }
.person::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5,11,20,.24) 0%, transparent 30%, rgba(4,10,18,.12) 56%, rgba(5,12,21,.88) 100%);
}
.person-content {
  position: absolute;
  z-index: 2;
  right: clamp(16px, 1.8vw, 30px);
  bottom: clamp(28px, 4.3vw, 70px);
  left: clamp(16px, 1.8vw, 30px);
  color: #fff;
  text-shadow: 0 1px 18px rgba(0,0,0,.2);
}
.person h2 {
  max-width: 11ch;
  margin: 0 0 12px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(20px, 2.1vw, 34px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.07;
}
.person p { margin: 0; font-size: clamp(11px, .95vw, 14px); font-weight: 500; line-height: 1.35; }

.projects { min-height: 100vh; min-height: 100svh; padding: clamp(84px, 9vw, 152px) clamp(22px, 4vw, 72px) 130px; background: var(--paper); scroll-margin-top: 0; }
.projects-inner { max-width: 1420px; margin: 0 auto; }
.projects h2 {
  margin: 0 0 clamp(62px, 7vw, 112px);
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(42px, 5.8vw, 96px);
  font-weight: 600;
  letter-spacing: -.072em;
  line-height: .98;
}
.project-list { border-top: 1px solid #aeb5ba; }
.project-row {
  display: grid;
  grid-template-columns: minmax(185px, 23%) 1fr;
  align-items: baseline;
  gap: 32px;
  min-height: 115px;
  padding: 30px 4px;
  text-decoration: none;
  border-bottom: 1px solid #aeb5ba;
  transition: color .22s ease, padding-left .22s ease;
}
.project-row:hover { color: var(--blue); padding-left: 12px; }
.project-row:focus-visible, .nav-link:focus-visible, .wordmark a:focus-visible { outline: 2px solid #4e91c3; outline-offset: 5px; }
.project-row time { color: #59646c; font-size: 14px; font-weight: 500; white-space: nowrap; }
.project-title {
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(23px, 2.5vw, 42px);
  font-weight: 550;
  letter-spacing: -.05em;
  line-height: 1.18;
}

@media (max-width: 850px) {
  :root { --header-height: 68px; }
  .team-grid { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .team-grid::-webkit-scrollbar { display: none; }
  .person { flex: 0 0 72vw; scroll-snap-align: start; }
  .person h2 { font-size: clamp(28px, 5vw, 45px); }
  .person p { font-size: 14px; }
  .person-content { bottom: 44px; left: 28px; right: 28px; }
  .projects { padding-bottom: 100px; }
}

@media (max-width: 560px) {
  .header-inner { padding-inline: 20px; }
  .wordmark { font-size: 17px; }
  .nav-link { gap: 7px; font-size: 11px; }
  .nav-link span { font-size: 16px; }
  .person { flex-basis: 83vw; }
  .person-content { left: 24px; right: 24px; }
  .projects h2 { max-width: 9ch; margin-bottom: 64px; }
  .project-row { display: block; min-height: 0; padding: 24px 2px 30px; }
  .project-row time { display: block; margin-bottom: 16px; font-size: 12px; }
  .project-title { display: block; font-size: clamp(25px, 7vw, 34px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .person img, .nav-link, .project-row { transition: none; }
}
