:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6f6f68;
  --soft: #f5f5f1;
  --rule: #dfdfd7;
  --accent: #ff5a1f;
  --accent-soft: #fff0e9;
  --max: 1180px;
  --header-h: 78px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.site-footer,
.hero-meta,
.section-label,
.work-filters,
.contact-links {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 42px);
}

.site-nav a {
  position: relative;
  padding: 12px 0;
  color: var(--muted);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
}

.menu-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero,
.section,
.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100svh - var(--header-h));
  padding: clamp(54px, 8vw, 104px) 0 28px;
  border-bottom: 1px solid var(--rule);
}

.hero-copy {
  align-self: center;
}

.section-index {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.contact-card h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.9;
}

.hero-text {
  max-width: 650px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 38px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 2px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.text-link.muted {
  color: var(--muted);
  border-bottom-color: var(--rule);
}

.hero-visual {
  align-self: center;
  margin: 0;
  padding: clamp(20px, 3vw, 38px);
  background: var(--soft);
  border: 1px solid var(--rule);
}

.hero-visual img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.hero-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-self: end;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.hero-meta span {
  min-width: 0;
}

.section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  padding: clamp(72px, 9vw, 130px) 0;
  border-bottom: 1px solid var(--rule);
}

.section-label {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--muted);
}

.section-label span:first-child {
  color: var(--accent);
}

.section-body {
  max-width: 860px;
}

.section h2 {
  max-width: 880px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.96;
}

.section-body p {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.55;
}

.build-strip {
  align-items: stretch;
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.build-grid article {
  min-height: 260px;
  padding: clamp(24px, 3vw, 38px);
  background: var(--bg);
}

.build-grid span {
  display: block;
  margin-bottom: 72px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.build-grid h3 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.04;
}

.timeline {
  margin-top: 46px;
  border-top: 1px solid var(--rule);
}

.timeline-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}

.period {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-row h3 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
}

.timeline-row p {
  max-width: 710px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.collaborators ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.collaborators li {
  min-height: 92px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(22px, 2.5vw, 38px);
  font-weight: 800;
  line-height: 1;
}

.work-section {
  align-items: start;
}

.work-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.work-section h2 {
  font-size: clamp(56px, 7vw, 116px);
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.filter-button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--ink);
  border-color: var(--ink);
}

.work-list {
  border-top: 1px solid var(--ink);
}

.work-item {
  transition: opacity 160ms ease, transform 160ms ease;
}

.work-item.is-hidden {
  display: none;
}

.work-item a {
  display: grid;
  grid-template-columns: 72px minmax(230px, 0.9fr) minmax(260px, 1fr) 64px;
  gap: 28px;
  align-items: center;
  min-height: 116px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.work-item a:hover .work-title {
  color: var(--accent);
}

.work-number,
.work-meta,
.work-year {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-title {
  font-size: clamp(26px, 2.7vw, 42px);
  font-weight: 800;
  line-height: 1.02;
  transition: color 160ms ease;
}

.work-meta {
  font-size: 12px;
  line-height: 1.45;
}

.work-year {
  text-align: right;
}

.contact-section {
  border-bottom: 0;
}

.contact-card {
  padding: clamp(36px, 5vw, 62px);
  background: var(--ink);
  color: var(--bg);
}

.contact-card h2 {
  max-width: 850px;
  font-size: clamp(42px, 6vw, 96px);
  line-height: 0.92;
}

.contact-card p {
  max-width: 640px;
  margin: 30px 0 0;
  color: #d8d8d0;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.5;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding-right: 18px;
  border-bottom: 1px solid #75756f;
}

.contact-links a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

.site-footer a {
  color: var(--ink);
}

@media (max-width: 920px) {
  .hero,
  .section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-meta,
  .build-grid,
  .collaborators ul {
    grid-template-columns: 1fr;
  }

  .section-label {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }

  .work-header {
    display: grid;
    align-items: start;
  }

  .work-filters {
    justify-content: flex-start;
  }

  .work-item a {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .work-meta,
  .work-year {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 700px) {
  :root {
    --header-h: 68px;
  }

  .site-header {
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 16px 20px 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-125%);
    transition: transform 200ms ease;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 18px;
  }

  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero {
    padding-top: 46px;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 72px);
  }

  .hero-actions,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    padding: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .build-grid article {
    min-height: 210px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-card {
    padding: 30px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
