:root {
  --paper: #fbfaf7;
  --ink: #0b0b0b;
  --muted: #5f5c57;
  --rule: #ddd8cf;
  --accent: #c94524;
  --focus: #7a2a16;
  --max-width: 1328px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell,
.site-header {
  width: min(calc(100% - 96px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.brand {
  width: 54px;
  height: 54px;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 62px);
}

.site-nav a,
.footer-links a,
.text-link {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav a {
  position: relative;
  padding-block: 10px;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .is-active {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.67fr) minmax(0, 1.33fr);
  gap: clamp(56px, 7vw, 116px);
  padding-top: 20px;
  padding-bottom: 42px;
}

.hero-intro {
  padding-top: 38px;
}

.hero-intro h1,
.featured-project h2,
.what-i-do h2,
.project-copy h2,
.site-footer h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-intro h1 {
  font-size: clamp(3.6rem, 5.4vw, 5.8rem);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow-line {
  margin: 30px 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.hero-summary {
  max-width: 460px;
  margin: 34px 0 0;
  font-size: clamp(1.25rem, 1.65vw, 1.6rem);
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.accent-rule {
  display: block;
  width: 66px;
  height: 2px;
  margin-top: 50px;
  background: var(--accent);
}

.section-label,
.featured-meta h3,
.practice-grid h3 {
  margin: 0;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-project > h2 {
  margin: 8px 0 14px;
  font-size: clamp(2.75rem, 3.45vw, 3.5rem);
  font-weight: 700;
}

.featured-image-link,
.project-visual {
  display: block;
  overflow: hidden;
  background: #ece7de;
}

.featured-image-link img,
.featured-image-link video {
  display: block;
  width: 100%;
  height: clamp(300px, 28vw, 405px);
  object-fit: cover;
  pointer-events: none;
  transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}

.featured-image-link:hover img,
.featured-image-link:focus-visible img,
.featured-image-link:hover video,
.featured-image-link:focus-visible video,
.project-visual:hover img,
.project-visual:focus-visible img,
.project-visual:hover video,
.project-visual:focus-visible video {
  transform: scale(1.018);
}

.featured-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  margin-top: 22px;
}

.featured-meta p,
.practice-grid p,
.project-copy > p,
.earlier-copy > span,
.copyright {
  color: #292826;
}

.featured-meta p {
  margin: 9px 0 0;
  font-size: 0.82rem;
  line-height: 1.62;
}

.section-rule {
  border-top: 1px solid var(--rule);
}

.what-i-do {
  padding-block: 56px 70px;
}

.what-i-do > h2 {
  max-width: 920px;
  margin-top: 24px;
  font-size: clamp(2.15rem, 3.55vw, 3.75rem);
  line-height: 1.2;
  font-weight: 700;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(30px, 5vw, 78px);
  margin-top: 52px;
  padding-top: 35px;
  border-top: 1px solid var(--rule);
}

.practice-grid p {
  margin: 15px 0 0;
  font-size: 0.91rem;
  line-height: 1.8;
}

.selected-work {
  padding-block: 48px 32px;
  scroll-margin-top: 24px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.48fr);
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
  min-height: 470px;
  padding-block: 56px;
  border-bottom: 1px solid var(--rule);
}

.project-row--reverse {
  grid-template-columns: minmax(0, 1.48fr) minmax(270px, .72fr);
}

.project-row--reverse .project-copy {
  grid-column: 2;
  grid-row: 1;
}

.project-row--reverse .project-visual {
  grid-column: 1;
  grid-row: 1;
}

.project-number {
  display: block;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
}

.project-copy h2 {
  font-size: clamp(2rem, 3.15vw, 3.25rem);
  font-weight: 700;
}

.project-copy > p {
  max-width: 390px;
  margin: 22px 0 0;
  font-size: 1rem;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--accent);
}

.text-link span,
.item-arrow {
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span,
.earlier-item:hover .item-arrow,
.earlier-item:focus-visible .item-arrow {
  transform: translateX(6px);
}

.project-visual img,
.project-visual video {
  display: block;
  width: 100%;
  aspect-ratio: 1.84 / 1;
  object-fit: cover;
  pointer-events: none;
  transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}

.earlier-work {
  padding-block: 46px 0;
}

.earlier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 20px;
}

.earlier-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 12px 20px;
  min-height: 190px;
  padding: 34px 34px 34px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.earlier-item:nth-child(odd) {
  padding-right: 48px;
  border-right: 1px solid var(--rule);
}

.earlier-item:nth-child(even) {
  padding-left: 48px;
}

.earlier-item .project-number {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.earlier-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.earlier-copy strong {
  font-size: 1.45rem;
  line-height: 1.2;
}

.earlier-copy > span {
  max-width: 440px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.item-arrow {
  align-self: center;
  color: var(--accent);
  font-size: 2rem;
}

.site-footer {
  margin-top: 70px;
  padding-block: 42px 32px;
}

.site-footer h2 {
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px clamp(28px, 5vw, 74px);
  margin-top: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--rule);
}

.footer-links a {
  color: var(--accent);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--focus);
}

.copyright {
  margin: 24px 0 0;
  font-size: 0.78rem;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

@media (max-width: 1060px) {
  .page-shell,
  .site-header {
    width: min(calc(100% - 56px), var(--max-width));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-intro {
    padding-top: 12px;
  }

  .hero-summary {
    max-width: 650px;
  }

  .featured-project {
    max-width: 900px;
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .page-shell,
  .site-header {
    width: min(calc(100% - 36px), var(--max-width));
  }

  .site-header {
    min-height: 86px;
  }

  .brand {
    width: 44px;
    height: 44px;
  }

  .site-nav {
    gap: clamp(0px, 1vw, 6px);
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 4px;
    font-size: clamp(0.58rem, 2.6vw, 0.64rem);
    white-space: nowrap;
  }

  .hero {
    padding-top: 22px;
    padding-bottom: 58px;
  }

  .hero-intro h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
    white-space: normal;
  }

  .featured-project > h2 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .featured-meta,
  .practice-grid,
  .earlier-grid {
    grid-template-columns: 1fr;
  }

  .featured-meta {
    gap: 30px;
  }

  .practice-grid {
    gap: 34px;
  }

  .project-row,
  .project-row--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding-block: 46px;
  }

  .project-row--reverse .project-copy,
  .project-row--reverse .project-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .project-row .project-copy {
    order: 1;
  }

  .project-row .project-visual {
    order: 2;
  }

  .earlier-item,
  .earlier-item:nth-child(odd),
  .earlier-item:nth-child(even) {
    padding: 30px 0;
    border-right: 0;
  }

  .site-footer {
    margin-top: 50px;
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding-inline: 2px;
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }

  .hero-summary {
    font-size: 1.12rem;
  }

  .featured-image-link img,
  .featured-image-link video {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
