:root {
  --background: #ffffff;
  --text: #111111;
  --muted: #66625d;
  --line: #d9d7d2;
  --page-padding: clamp(18px, 2.2vw, 34px);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 var(--page-padding);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: block;
  width: clamp(204px, 18.6vw, 252px);
}

.brand-logo {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.5vw, 42px);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

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

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

.menu-toggle {
  display: none;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.hero {
  padding: 0 var(--page-padding);
}

.hero img {
  height: calc(100svh - var(--header-height) - 22px);
  min-height: 520px;
  object-fit: cover;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  color: var(--muted);
}

.page-section {
  padding-right: var(--page-padding);
  padding-left: var(--page-padding);
}

.intro {
  min-height: 62vh;
  display: grid;
  place-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
}

.intro h1 {
  margin: 0;
  font-size: clamp(29px, 3.4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(22px, 4vw, 68px);
  row-gap: 120px;
  align-items: start;
  padding-bottom: clamp(140px, 18vw, 260px);
}

.project-card--wide {
  grid-column: 1 / span 7;
}

.project-card--narrow {
  grid-column: 8 / span 5;
}

.project-card--offset {
  margin-top: 24vh;
}

.image-frame {
  overflow: hidden;
  background: #f3f3f1;
}

.image-frame--landscape {
  aspect-ratio: 1.18 / 1;
}

.image-frame--portrait {
  aspect-ratio: 0.82 / 1;
}

.image-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card a:hover img {
  transform: scale(1.025);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
}

.project-meta h2,
.project-meta p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.project-meta p,
.project-meta h2 {
  color: var(--muted);
}

.statement {
  min-height: 74vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-content: center;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.statement-text {
  grid-column: 5 / span 7;
  margin: 0;
  font-size: clamp(29px, 3.4vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.services {
  padding-top: 120px;
  padding-bottom: 160px;
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 70px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.service-list {
  margin-top: 70px;
}

.service-list div {
  display: block;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.service-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.service-list h2 {
  margin: 0;
  font-size: clamp(16.8px, 2.688vw, 39.2px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.about {
  padding-top: 120px;
  padding-bottom: 160px;
  border-top: 1px solid var(--line);
}

.about .section-title {
  margin-top: 0;
}

.about-body {
  width: min(100%, 860px);
  margin: 80px auto 0;
  columns: 1;
  font-size: clamp(16px, 1.18vw, 18px);
  line-height: 1.45;
  text-align: left;
}

.about-body p {
  break-inside: avoid;
  margin: 0 0 1.15em;
}

.site-footer {
  --contact-font-size: clamp(16px, 1.18vw, 18px);
  --footer-title-line: 34.8px;
  /* Preserve the lower gap from the previous 72vh layout. */
  --footer-original-gap: max(0px, calc(36vh - 103.8px - var(--contact-font-size) * 2.175));
  display: flex;
  flex-direction: column;
  padding: calc(90px - var(--footer-title-line)) var(--page-padding) 28px;
  background: #111111;
  color: #ffffff;
}

.site-footer .eyebrow {
  margin-bottom: max(18px, calc(var(--footer-original-gap) + 18px - var(--footer-title-line) * 2));
  font-size: 29px;
  line-height: 1.2;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.contact-link,
.contact-address {
  width: fit-content;
  font-size: var(--contact-font-size);
  line-height: 1.45;
}

.contact-address {
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: var(--footer-original-gap);
  color: #b9b9b9;
}

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  .brand {
    width: 190px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 20px var(--page-padding) 28px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 9px 0;
    font-size: 25px;
  }

  .hero img {
    height: 67svh;
    min-height: 420px;
  }

  .intro {
    min-height: 54vh;
  }

  .intro h1 {
    font-size: 31px;
  }

  .projects {
    display: block;
    padding-bottom: 120px;
  }

  .project-card + .project-card {
    margin-top: 84px;
  }

  .project-card--offset {
    margin-top: 84px;
  }

  .image-frame--landscape,
  .image-frame--portrait {
    aspect-ratio: 1 / 1.08;
  }

  .statement {
    min-height: 64vh;
    display: block;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .statement-text {
    margin-top: 90px;
    font-size: 31px;
  }

  .services {
    padding-top: 70px;
    padding-bottom: 100px;
  }

  .about {
    padding-top: 70px;
    padding-bottom: 100px;
  }

  .about-body {
    width: 100%;
    margin-top: 55px;
    columns: 1;
    font-size: 17px;
  }

  .service-list {
    margin-top: 50px;
  }

  .site-footer {
    --contact-font-size: 17px;
  }
}

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

  .image-frame img,
  .main-nav a::after {
    transition: none;
  }
}
