:root {
  color-scheme: light;
  --bg: #f5f1e9;
  --text: #101010;
  --muted: #6d6a64;
  --line: #171717;
  --soft-line: rgba(16, 16, 16, 0.18);
  --paper: #fbf8f1;
  --accent: #c75b36;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, "Helvetica Neue", sans-serif;
  background:
    linear-gradient(rgba(16, 16, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 16, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--text);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
span,
a,
button {
  overflow-wrap: anywhere;
  word-break: normal;
}

.site-header {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(245, 241, 233, 0.86);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
}

.menu-button {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  gap: 16px;
}

.site-header nav a {
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: clamp(26px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  position: relative;
  transform: translate3d(0, var(--section-y, 0), 0);
  will-change: transform;
}

.hero-label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(14px, 1.4vw, 19px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  align-self: center;
  margin: 0;
  font-size: clamp(72px, 16vw, 220px);
  font-weight: 900;
  line-height: 0.74;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-statement {
  align-self: center;
  display: grid;
  gap: 22px;
  max-width: 420px;
  min-width: 0;
}

.hero-statement p {
  margin: 0;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.45;
}

.scroll-link {
  width: fit-content;
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.featured {
  height: min(68vw, 720px);
  min-height: 360px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transform: translate3d(0, var(--section-y, 0), 0);
  will-change: transform;
}

.featured img {
  width: 100%;
  height: 118%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transform:
    translate3d(var(--image-x, 0), var(--image-y, -8%), 0)
    scale(var(--image-scale, 1.08));
  will-change: transform;
}

.work-section,
.other-section,
.about-section,
.contact-section {
  padding: clamp(40px, 7vw, 92px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  transform: translate3d(0, var(--section-y, 0), 0);
  will-change: transform;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 900;
  text-transform: uppercase;
}

.section-title a {
  text-decoration: none;
}

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

.work-item {
  min-height: 156px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 4vw, 54px);
  padding: 22px 0;
  text-decoration: none;
  transition: background 160ms ease, padding 160ms ease;
}

.work-item:hover {
  background: rgba(16, 16, 16, 0.045);
  padding-inline: 18px;
}

.work-item > div,
.portfolio-card {
  min-width: 0;
}

.work-number {
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
}

.work-item h2 {
  margin: 0;
  font-size: clamp(28px, 4.8vw, 60px);
  font-weight: 900;
  line-height: 0.95;
}

.work-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 800;
  text-transform: uppercase;
}

.work-arrow {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-grid {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
}

.portfolio-card {
  min-height: 240px;
  border-bottom: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px) 0;
  text-decoration: none;
  transition: background 160ms ease;
}

.portfolio-card:hover {
  background: rgba(16, 16, 16, 0.045);
}

.portfolio-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 900;
  line-height: 0.92;
}

.portfolio-card p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.7;
}

.empty-card {
  color: rgba(16, 16, 16, 0.64);
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 7vw, 100px);
}

.about-grid h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 90px);
  font-weight: 900;
  line-height: 0.92;
}

.about-copy {
  display: grid;
  gap: 20px;
  align-self: end;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.7;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  transform: translate3d(0, var(--section-y, 0), 0);
  will-change: transform;
}

.category-strip span {
  min-height: 72px;
  border-right: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 0 24px;
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 900;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
}

.contact-links {
  display: grid;
  align-content: end;
  border-top: 1px solid var(--line);
}

.contact-links a {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 900;
  text-decoration: none;
}

footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(18px, 4vw, 56px);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

footer a {
  text-decoration: none;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .featured img {
    transform: none !important;
  }

  .hero,
  .featured,
  .work-section,
  .other-section,
  .about-section,
  .category-strip,
  .contact-section {
    transform: none !important;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 66px;
  }

  .site-header nav {
    position: fixed;
    inset: 66px 0 auto 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    display: none;
    grid-column: 1 / -1;
    padding: 18px;
  }

  body.nav-open .site-header nav {
    display: grid;
  }

  .hero,
  .about-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    grid-template-rows: auto;
    gap: 28px;
    padding: 28px 18px 38px;
  }

  .hero-label {
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0.1em;
  }

  .hero h1 {
    align-self: auto;
    max-width: 100%;
    font-size: clamp(58px, 18vw, 120px);
    line-height: 0.86;
  }

  .hero-statement {
    max-width: none;
    gap: 14px;
  }

  .hero-statement p {
    font-size: 17px;
    line-height: 1.62;
  }

  .scroll-link {
    align-self: auto;
  }

  .featured {
    height: 58vw;
    min-height: 240px;
  }

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

  .work-arrow {
    grid-column: 2;
    width: fit-content;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card h2 {
    font-size: clamp(24px, 8vw, 40px);
  }

  .portfolio-card p {
    font-size: 16px;
    line-height: 1.65;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 24px 14px 32px;
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(52px, 16vw, 92px);
    line-height: 0.88;
  }

  .hero-statement p {
    font-size: 16px;
  }

  .featured {
    height: 78vw;
    min-height: 240px;
  }

  .work-item h2 {
    font-size: clamp(24px, 8vw, 40px);
    line-height: 0.98;
  }

  .category-strip span {
    width: 50%;
  }

  .contact-links a {
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.1;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
