:root {
  --ink: #303234;
  --ink-2: #3b3d3f;
  --bronze: #e3b47f;
  --bronze-2: #c8925d;
  --paper: #f4e6d5;
  --paper-2: #ead0ae;
  --mist: rgba(227, 180, 127, 0.24);
  --shadow: rgba(48, 50, 52, 0.24);
  --max: 1360px;
  --side: clamp(18px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#capability,
#work,
#method,
#contact,
#project-images {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--side);
  color: var(--paper);
  background: linear-gradient(180deg, rgba(48, 50, 52, 0.78), rgba(48, 50, 52, 0));
  transition: background 220ms ease, border-color 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled,
.site-header--solid {
  background: rgba(48, 50, 52, 0.94);
  border-bottom: 1px solid var(--mist);
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand img {
  width: clamp(126px, 16vw, 172px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: clamp(1rem, 1.05vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav a {
  opacity: 0.96;
  text-shadow: 0 1px 10px rgba(48, 50, 52, 0.8);
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--bronze);
  opacity: 1;
}

.site-nav a:focus-visible,
.button:focus-visible,
.filter-bar button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--mist);
  background: transparent;
  color: var(--paper);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  margin: 6px 0;
}

.hero,
.project-hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position, center);
}

.hero {
  padding: 128px var(--side) 38px;
}

.project-hero {
  min-height: 560px;
  padding: 122px var(--side) 58px;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(48, 50, 52, 0.97), rgba(48, 50, 52, 0.76) 48%, rgba(48, 50, 52, 0.1)),
    linear-gradient(0deg, rgba(48, 50, 52, 0.7), rgba(48, 50, 52, 0.04) 56%);
}

.hero__content,
.project-hero__content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  max-width: calc(100vw - (2 * var(--side)));
  min-width: 0;
}

.hero__content h1,
.project-hero__content h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(3rem, 7.8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.project-hero__content h1 {
  max-width: 15ch;
  font-size: clamp(2.45rem, 5.4vw, 5.3rem);
}

.hero__lead,
.project-hero__content p:not(.eyebrow) {
  width: min(620px, 100%);
  margin: 26px 0 0;
  color: rgba(244, 230, 213, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  overflow-wrap: break-word;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--bronze);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(0.8rem, 0.72vw, 0.9rem);
  font-weight: 800;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--bronze);
  border-radius: 2px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button--primary {
  background: var(--bronze);
  color: var(--ink);
}

.button--ghost {
  color: var(--paper);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(227, 180, 127, 0.12);
}

.hero__proof {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin-left: auto;
  background: var(--mist);
  border: 1px solid var(--mist);
}

.hero__proof span {
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 18px;
  background: rgba(48, 50, 52, 0.86);
  color: rgba(244, 230, 213, 0.78);
  font-size: 0.84rem;
}

.hero__proof strong {
  color: var(--bronze);
  font-size: 1.35rem;
  line-height: 1;
}

.intro,
.capability,
.work,
.method,
.contact,
.gallery,
.project-detail,
.related {
  padding: clamp(58px, 7vw, 104px) var(--side);
}

.work {
  padding-top: clamp(46px, 5vw, 76px);
}

.intro,
.capability,
.work,
.gallery,
.related {
  background: var(--paper);
  color: var(--ink);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

.intro > *,
.section-heading > *,
.method > *,
.contact > *,
.location-map > *,
.project-detail > *,
.site-footer > * {
  min-width: 0;
}

.intro__statement p {
  margin: 0;
  color: var(--bronze-2);
  font-size: clamp(1.35rem, 3vw, 2.28rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

.intro__copy h2,
.section-heading h2,
.method__copy h2,
.contact h2,
.project-detail__copy h2,
.source-note h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.85rem, 3.9vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

.intro__copy p,
.section-heading p:not(.eyebrow),
.method__copy p,
.contact p,
.project-detail__copy p,
.source-note p {
  max-width: 70ch;
  color: rgba(48, 50, 52, 0.78);
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.section-heading--wide {
  grid-template-columns: minmax(300px, 0.82fr) minmax(280px, 0.7fr);
  max-width: min(100%, var(--max));
  align-items: end;
}

.section-heading--wide .eyebrow {
  grid-column: 1 / -1;
}

.section-heading--wide p:not(.eyebrow) {
  margin: 0;
}

.service-list {
  max-width: var(--max);
  border-top: 1px solid rgba(48, 50, 52, 0.24);
}

.service-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(48, 50, 52, 0.24);
}

.service-row h3 {
  margin: 0;
  color: var(--bronze-2);
  font-size: 1rem;
}

.service-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-row li {
  padding: 8px 12px;
  border: 1px solid rgba(48, 50, 52, 0.22);
  border-radius: 999px;
  color: rgba(48, 50, 52, 0.82);
}

.sector-band {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 34px var(--side);
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
}

.sector-band p {
  margin: 0;
  color: var(--bronze);
  font-weight: 800;
}

.sector-band div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.sector-band span {
  color: rgba(244, 230, 213, 0.82);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-bar button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(48, 50, 52, 0.26);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.filter-bar button.is-active,
.filter-bar button:hover,
.filter-bar button:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bronze);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: none;
}

.project-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: var(--max);
}

.project-tile {
  min-height: 100%;
  background: var(--paper);
  border: 1px solid rgba(48, 50, 52, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-tile.is-hidden {
  display: none;
}

.project-tile:hover,
.project-tile:focus-within {
  transform: translateY(-4px);
  border-color: rgba(48, 50, 52, 0.46);
  box-shadow: 0 18px 34px -24px var(--shadow);
}

.project-tile figure {
  margin: 0;
  aspect-ratio: 1.24;
  background: var(--ink);
}

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

.project-tile__body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.project-tile__body span {
  color: var(--bronze-2);
  font-size: clamp(0.78rem, 0.72vw, 0.9rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-tile__body h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.05vw, 1.34rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.project-tile__body p {
  margin: 0;
  color: rgba(48, 50, 52, 0.72);
  font-size: clamp(1rem, 0.92vw, 1.12rem);
  line-height: 1.55;
}

.method {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.08fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(48px, 5.2vw, 78px);
  padding-bottom: clamp(48px, 5.2vw, 78px);
}

.method__image {
  aspect-ratio: 1.05;
  max-height: 640px;
  overflow: hidden;
  border: 1px solid var(--mist);
}

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

.method__copy h2,
.contact h2 {
  color: var(--paper);
}

.method__copy {
  max-width: 820px;
}

.method__copy p,
.contact p {
  color: rgba(244, 230, 213, 0.76);
}

.method__copy ol {
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
  counter-reset: steps;
}

.method__copy li {
  position: relative;
  padding-left: 56px;
  color: rgba(244, 230, 213, 0.78);
  max-width: 78ch;
  font-size: clamp(1rem, 1.08vw, 1.15rem);
  line-height: 1.55;
}

.method__copy li::before {
  counter-increment: steps;
  content: "0" counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bronze);
  font-weight: 800;
}

.method__copy strong {
  color: var(--paper);
}

.contact {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.7fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
  background: var(--ink-2);
  border-top: 1px solid var(--mist);
}

.contact address {
  display: grid;
  gap: 18px;
  padding-top: 10px;
  color: var(--paper);
  font-style: normal;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.25;
}

.contact a {
  color: var(--bronze);
}

.location-map {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(420px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: stretch;
  padding: clamp(46px, 6vw, 86px) var(--side);
  background: var(--paper);
  color: var(--ink);
}

.location-map__copy {
  align-self: center;
}

.location-map__copy h2 {
  margin: 0;
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(1.85rem, 3.6vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.location-map__copy address {
  margin-top: 24px;
  color: rgba(48, 50, 52, 0.78);
  font-style: normal;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.35;
}

.location-map__frame {
  min-height: 420px;
  border: 1px solid rgba(48, 50, 52, 0.2);
  overflow: hidden;
  background: var(--ink);
}

.location-map__frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.04);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.7fr);
  gap: 30px;
  padding: 42px var(--side);
  background: var(--ink);
  color: rgba(244, 230, 213, 0.72);
  border-top: 1px solid var(--mist);
}

.site-footer img {
  width: 142px;
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 48ch;
  margin: 0;
}

.site-footer address {
  font-style: normal;
}

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

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--bronze);
  font-weight: 800;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(320px, 1fr);
  gap: clamp(30px, 7vw, 84px);
  background: var(--paper);
  color: var(--ink);
}

.project-detail__meta {
  display: grid;
  align-content: start;
  border-top: 1px solid rgba(48, 50, 52, 0.24);
}

.project-detail__meta span {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(48, 50, 52, 0.24);
  color: rgba(48, 50, 52, 0.64);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-detail__meta strong {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.project-detail__copy {
  display: grid;
  gap: 18px;
}

.project-detail__copy p {
  margin: 0;
}

.source-note {
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(48, 50, 52, 0.24);
}

.source-note h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
}

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

.gallery-grid figure {
  margin: 0;
  aspect-ratio: 1.18;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(48, 50, 52, 0.16);
}

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

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 40;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 24px;
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-100%);
    transition: transform 260ms ease;
    font-size: 1.5rem;
  }

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

  .hero {
    display: grid;
    align-content: end;
    gap: 32px;
    min-height: 94vh;
  }

  .hero__lead,
  .intro__statement p,
  .intro__copy h2,
  .intro__copy p {
    width: 100%;
    max-width: 350px;
    white-space: normal;
  }

  .hero__content h1,
  .project-hero__content h1 {
    max-width: 8ch;
  }

  .project-hero__content h1 {
    max-width: 13ch;
    font-size: clamp(2.2rem, 11vw, 4.2rem);
  }

  .hero__proof {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .intro,
  .section-heading--wide,
  .method,
  .contact,
  .location-map,
  .project-detail,
  .site-footer,
  .sector-band {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  body {
    width: 100%;
    max-width: 100vw;
  }

  .hero,
  .project-hero {
    min-height: 760px;
  }

  .hero__content,
  .project-hero__content,
  .intro > *,
  .section-heading,
  .method__copy,
  .contact > *,
  .location-map > *,
  .project-detail > *,
  .site-footer > * {
    width: 100%;
    max-width: calc(100vw - 40px);
  }

  h1,
  h2,
  h3,
  p,
  li,
  span,
  address,
  a {
    overflow-wrap: anywhere;
  }

  .hero__content h1,
  .project-hero__content h1 {
    font-size: clamp(2.75rem, 15vw, 4.4rem);
  }

  .project-hero__content h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 12vw, 3.9rem);
  }

  .hero__lead {
    width: 100%;
    max-width: calc(100vw - 40px);
    font-size: 1rem;
  }

  .intro__statement p {
    font-size: clamp(1.18rem, 6vw, 1.55rem);
    line-height: 1.12;
    letter-spacing: 0;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .project-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@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;
  }
}
