:root {
  --bg: #ffffff;
  --ink: #080808;
  --muted: #5f6368;
  --soft: #f4f4f4;
  --line: #dedede;
  --line-strong: #c9c9c9;
  --focus: #111111;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::selection {
  background: var(--ink);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.brand {
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
}

.nav-pill,
.nav-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-pill.active {
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

.nav-link {
  color: #3f4248;
}

.nav-button {
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.hero {
  padding: 66px 0 44px;
}

.eyebrow,
.project-kicker,
.control-group span,
.meta-grid span,
.hero-stats dt {
  color: #6a6f77;
  font-size: 14px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 12px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 56px;
  line-height: 1.02;
  font-weight: 820;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 44px;
  color: #3f4248;
  font-size: 19px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 760px;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stats div {
  padding: 18px 20px 18px 0;
}

.hero-stats div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.hero-stats dd {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 780;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 512px) minmax(180px, 224px);
  justify-content: space-between;
  gap: 32px;
  padding: 4px 0 32px;
}

.control-group {
  display: grid;
  gap: 8px;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: 0;
}

input {
  padding: 0 16px;
}

input::placeholder {
  color: #8a8d92;
}

select {
  appearance: auto;
  padding: 0 14px;
}

input:focus,
select:focus,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.project-list {
  display: grid;
  gap: 18px;
  padding-bottom: 36px;
}

.project-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid transparent;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 28px 22px;
}

.title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.rank {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

.project-kicker {
  margin-bottom: 6px;
}

h2 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.08;
  font-weight: 820;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 430px;
}

.actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.actions a + a {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.project-body {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(320px, 1fr);
  gap: 28px;
  padding: 0 28px 28px;
}

.project-visual {
  display: block;
  min-height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}

.project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  background: #16181c;
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slideshow-track img.is-active {
  opacity: 1;
}

.slideshow-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.slideshow-dots .dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.slideshow-dots .dot.is-active {
  background: #ffffff;
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
}

.project-copy p {
  margin-bottom: 0;
  color: #3f4248;
  font-size: 17px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.meta-grid div {
  min-width: 0;
}

.meta-grid span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}

.meta-grid strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
}

.empty-state {
  margin: 12px 0 60px;
  color: #3f4248;
}

.site-footer {
  padding: 16px 0 42px;
  color: #5f6368;
  font-size: 14px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 880px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 32px, var(--max));
  }

  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .controls,
  .project-body,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .sort-control {
    max-width: none;
  }

  .card-head {
    flex-direction: column;
  }

  .actions {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .brand {
    white-space: normal;
  }

  .nav-button {
    display: none;
  }

  .hero {
    padding-bottom: 32px;
  }

  h1 {
    max-width: 320px;
    font-size: 34px;
    line-height: 1.06;
  }

  .hero-copy,
  .project-copy p {
    max-width: 330px;
  }

  .card-head,
  .project-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .title-wrap {
    gap: 12px;
  }

  .rank {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  h2 {
    font-size: 23px;
  }

  .actions a {
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }
}
