:root {
  --ink: #11130f;
  --muted: #667065;
  --paper: #f7f5ef;
  --line: #ded8cb;
  --accent: #b4573f;
  --accent-dark: #873823;
  --mint: #c9dbcf;
  --steel: #7e96a6;
  --sage: #9aa870;
  --charcoal: #252821;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(31, 35, 30, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::selection {
  background: var(--mint);
}

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

.site-header {
  align-items: center;
  background: rgba(247, 245, 239, 0.82);
  border-bottom: 1px solid rgba(222, 216, 203, 0.62);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  left: 0;
  padding: 16px clamp(18px, 4vw, 54px);
  position: fixed;
  right: 0;
  top: 0;
  transition: box-shadow 180ms ease, background 180ms ease;
  z-index: 10;
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  display: none;
  height: 42px;
  justify-content: center;
  justify-self: end;
  padding: 0;
  width: 42px;
}

.menu-toggle span {
  background: currentColor;
  display: block;
  height: 2px;
  position: absolute;
  transition: transform 160ms ease;
  width: 18px;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.site-header.is-open .menu-toggle span:first-child {
  transform: rotate(45deg);
}

.site-header.is-open .menu-toggle span:last-child {
  transform: rotate(-45deg);
}

.site-header.is-scrolled {
  background: rgba(247, 245, 239, 0.94);
  box-shadow: 0 10px 34px rgba(26, 28, 24, 0.09);
}

.brand {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  letter-spacing: 0;
  width: 42px;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  justify-content: center;
}

.nav-links a,
.header-action,
.site-footer a {
  color: var(--charcoal);
  font-size: 0.84rem;
  font-weight: 700;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 16px;
}

.header-action {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}

.hero {
  background:
    linear-gradient(135deg, rgba(201, 219, 207, 0.55), transparent 38%),
    linear-gradient(90deg, var(--paper), #ece8dc);
  border-bottom: 1px solid var(--line);
  min-height: 88svh;
  overflow: hidden;
  position: relative;
}

.hero::before {
  background: repeating-linear-gradient(
    135deg,
    rgba(180, 87, 63, 0.72) 0 18px,
    transparent 18px 42px
  );
  bottom: -56px;
  clip-path: polygon(34% 100%, 100% 18%, 100% 100%);
  content: "";
  height: min(48vh, 430px);
  opacity: 0.82;
  pointer-events: none;
  position: absolute;
  right: -18px;
  width: min(42vw, 540px);
  z-index: 1;
}

.hero::after {
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  opacity: 0.22;
  position: absolute;
  z-index: 0;
}

.hero-content {
  color: var(--ink);
  max-width: 900px;
  padding: clamp(132px, 18vh, 190px) clamp(20px, 6vw, 76px) 82px;
  position: relative;
  z-index: 2;
}

.hero-portrait {
  pointer-events: none;
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  top: 54%;
  transform: translateY(-50%);
  width: clamp(280px, 31vw, 430px);
  z-index: 1;
}

.hero-portrait::before {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(222, 216, 203, 0.72);
  clip-path: polygon(12% 4%, 94% 0, 100% 84%, 74% 100%, 2% 91%, 0 18%);
  content: "";
  inset: 7% -9% -7% 9%;
  position: absolute;
  z-index: -1;
}

.hero-portrait img {
  border: 1px solid rgba(222, 216, 203, 0.78);
  clip-path: polygon(9% 0, 100% 5%, 94% 88%, 70% 100%, 0 93%, 4% 14%);
  display: block;
  filter: drop-shadow(0 26px 48px rgba(26, 28, 24, 0.22));
  height: auto;
  object-fit: cover;
  width: 100%;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent);
}

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

h1 {
  font-size: clamp(4rem, 13vw, 9rem);
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.7rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 0;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  max-width: 620px;
}

.hero-actions,
.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--ink);
}

.intro-band {
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns:
    minmax(180px, 0.82fr)
    minmax(280px, 1.2fr)
    minmax(230px, 1fr)
    minmax(230px, 1fr);
}

.metric {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding: clamp(28px, 4.6vw, 48px);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 2.18rem);
  font-weight: 800;
  line-height: 1.08;
}

.metric p {
  color: rgba(255, 255, 255, 0.68);
  margin: 12px 0 0;
}

.section,
.services,
.about,
.contact {
  padding: clamp(72px, 10vw, 124px) clamp(20px, 6vw, 76px);
}

.section-heading {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr);
  margin-bottom: clamp(34px, 6vw, 64px);
}

.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: center;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover,
.project-card:focus-within {
  box-shadow: 0 30px 82px rgba(31, 35, 30, 0.2);
  transform: translateY(-8px) scale(1.025);
  z-index: 2;
}

.project-media {
  align-items: end;
  aspect-ratio: 1.2;
  display: flex;
  padding: 22px;
}

.project-media span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 3rem;
  font-weight: 800;
}

.tone-a {
  background: linear-gradient(135deg, #24362e, #9aa870);
}

.tone-b {
  background: linear-gradient(135deg, #2d3e49, #c27e5a);
}

.tone-c {
  background: linear-gradient(135deg, #4a3f35, #87a6a7);
}

.tone-d {
  background: linear-gradient(135deg, #253243, #b88f58);
}

.project-body {
  padding: 24px;
}

.card-metrics {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  padding-top: 18px;
}

.card-metrics span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.skill-tags li {
  background: #f0ece2;
  border: 1px solid var(--line);
  color: var(--charcoal);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 9px;
}

.project-type {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.project-body p:last-child,
.service-list p,
.about p,
.contact p {
  color: var(--muted);
  line-height: 1.7;
}

.services {
  background: #ece8dc;
}

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

.service-list article {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 70px 0.8fr 1fr;
  padding: 30px 0;
}

.service-list span {
  color: var(--accent);
  font-weight: 800;
}

.service-list h3,
.service-list p {
  margin-bottom: 0;
}

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

.about p,
.contact p {
  font-size: 1.05rem;
}

.about-copy p + p {
  margin-top: 22px;
}

.contact {
  background: var(--charcoal);
  color: var(--white);
}

.contact p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 650px;
}

.site-footer {
  align-items: center;
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 76px);
}

.site-footer p {
  margin: 0;
}

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

@media (max-width: 1180px) {
  .hero-content {
    max-width: 760px;
  }

  .hero-portrait {
    opacity: 0.18;
    right: -72px;
    width: 340px;
    z-index: 1;
  }
}

@media (max-width: 980px) {
  .hero-portrait {
    display: none;
  }
}

@media (max-width: 1080px) {

  .intro-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(2n) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    align-items: stretch;
    background: rgba(247, 245, 239, 0.98);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    box-shadow: 0 22px 44px rgba(26, 28, 24, 0.12);
    display: grid;
    gap: 0;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 100%;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-header.is-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    border-bottom: 1px solid rgba(222, 216, 203, 0.7);
    padding: 17px 20px;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 88svh;
  }

  .hero::before {
    bottom: -34px;
    height: 260px;
    opacity: 0.58;
    right: -86px;
    width: 320px;
  }

  .intro-band,
  .project-grid,
  .section-heading,
  .about {
    grid-template-columns: 1fr;
  }

  .metric {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 0;
  }

  .service-list article {
    grid-template-columns: 1fr;
  }

  .card-metrics {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .header-action {
    font-size: 0.78rem;
  }

  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: 3.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card {
    transition: none;
  }

  .project-card:hover,
  .project-card:focus-within {
    transform: none;
  }
}
