:root {
  --ink: #17201d;
  --muted: #5d6965;
  --line: #d8ded9;
  --paper: #f5f4ef;
  --white: #ffffff;
  --stone: #dfd8ca;
  --teal: #2d7d7a;
  --clay: #b85f3e;
  --danhamm-red: #9d221e;
  --graphite: #27312f;
  --shadow: 0 18px 48px rgba(23, 32, 29, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 800;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(245, 244, 239, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 112px;
  height: 58px;
  object-fit: contain;
  object-position: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  opacity: 0.9;
}

.site-nav .nav-danhamm {
  font-weight: 850;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 6px 0;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 120px clamp(18px, 5vw, 72px) 72px;
  color: var(--white);
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 20, 18, 0.82), rgba(13, 20, 18, 0.5) 42%, rgba(13, 20, 18, 0.08)),
    linear-gradient(180deg, rgba(13, 20, 18, 0.18), rgba(13, 20, 18, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #82d1c8;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 780px;
  font-size: clamp(44px, 7.5vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

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

.button.ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 116px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
}

.intro-text p {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.16;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metrics div {
  min-height: 136px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics dt {
  color: var(--clay);
  font-size: 28px;
  font-weight: 850;
}

.metrics dd {
  margin: 22px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 310px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card p,
.project-grid p,
.contact-copy p,
.process-list span {
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 48px;
  color: var(--teal);
  border: 1px solid currentColor;
  font-size: 23px;
}

.process {
  background: var(--graphite);
  color: var(--white);
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(38px, 7vw, 92px);
}

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  counter-increment: process;
}

.process-list li::before {
  content: counter(process, decimal-leading-zero);
  color: #82d1c8;
  font-weight: 850;
}

.process-list strong {
  font-size: 20px;
}

.process-list span {
  color: rgba(255, 255, 255, 0.72);
}

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

.project-grid article {
  min-height: 270px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(23, 32, 29, 0.06);
}

.project-grid span {
  display: block;
  margin-bottom: 76px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.projects-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.projects-page {
  background: var(--paper);
}

.site-nav .is-current {
  opacity: 1;
  font-weight: 850;
}

.projects-hero {
  min-height: 620px;
  padding: clamp(170px, 20vw, 230px) clamp(18px, 8vw, 120px) clamp(72px, 10vw, 120px);
  background: var(--ink);
  color: var(--white);
}

.projects-hero h1 {
  max-width: 980px;
}

.projects-hero > p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(18px, 2vw, 25px);
}

.projects-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 820px;
  margin: clamp(48px, 7vw, 78px) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.projects-summary div {
  padding: 22px 20px 0 0;
}

.projects-summary dt {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 850;
}

.projects-summary dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  text-transform: uppercase;
}

.projects-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 38px);
  padding: clamp(60px, 8vw, 110px) clamp(18px, 6vw, 88px);
}

.project-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 42px rgba(23, 32, 29, 0.07);
}

.project-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 12px;
  object-fit: contain;
  background: #e2e2df;
}

.project-card-body {
  padding: clamp(22px, 3vw, 34px);
}

.project-number {
  display: block;
  margin-bottom: 28px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.project-client {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h2 {
  min-height: 2.2em;
  margin-bottom: 18px;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.1;
}

.project-role {
  min-height: 1.6em;
  color: var(--muted);
}

.project-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project-card dl div {
  display: grid;
  gap: 2px;
}

.project-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card dd {
  margin: 0;
  font-weight: 800;
}

.projects-contact {
  padding: clamp(72px, 10vw, 140px) clamp(18px, 8vw, 120px);
  background: #e5e1d8;
}

.projects-contact h2 {
  margin-bottom: 32px;
}

.danhamm {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  min-height: 540px;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.danhamm-mark {
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vw, 112px);
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.danhamm-mark img {
  display: block;
  width: clamp(180px, 22vw, 300px);
  height: auto;
  object-fit: contain;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.danhamm-copy {
  align-self: center;
  max-width: 760px;
  padding: clamp(58px, 9vw, 124px) clamp(28px, 7vw, 100px);
}

.danhamm-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 86px);
  letter-spacing: -0.055em;
}

.danhamm-copy p {
  color: var(--muted);
}

.danhamm-copy .danhamm-lead {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.3;
}

.button.dark {
  color: var(--white);
  background: var(--danhamm-red);
  border-color: var(--danhamm-red);
}

.danhamm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button.outline-light {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.75fr);
  gap: clamp(32px, 7vw, 88px);
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: #e5e1d8;
}

.contact-copy {
  align-self: center;
}

.contact-copy > h2 {
  margin-bottom: 28px;
}

.contact-copy > h2 span {
  display: block;
  margin-top: 10px;
  font-size: 0.52em;
  line-height: 1.25;
}

.contact-copy > h2 + p {
  max-width: 620px;
  line-height: 1.7;
}

.contact-copy address {
  margin-top: 26px;
  font-style: normal;
  font-weight: 750;
}

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

.contact-copy address span {
  color: var(--teal);
}

.company-details {
  display: grid;
  gap: 0;
  margin: 26px 0 0;
  border-top: 1px solid rgba(23, 32, 29, 0.16);
}

.company-details div {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(23, 32, 29, 0.16);
}

.company-details dt {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.company-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  align-self: center;
  justify-self: center;
  width: min(100%, 520px);
  gap: 12px;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 11px;
  background: #fbfaf7;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(45, 125, 122, 0.28);
  border-color: var(--teal);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background: var(--ink);
  color: var(--white);
}

.error-content {
  width: min(720px, 100%);
}

.error-content > img {
  width: 130px;
  height: auto;
  margin-bottom: 56px;
}

.error-content h1 {
  margin-bottom: 22px;
}

.error-content > p:not(.eyebrow) {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  display: block;
  width: 82px;
  height: 42px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .intro,
  .section-split,
  .contact-band,
  .danhamm {
    grid-template-columns: 1fr;
  }

  .danhamm {
    min-height: 0;
  }

  .danhamm-mark {
    padding-block: 56px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .section-heading {
    display: block;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .company-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-form {
    justify-self: stretch;
  }

  .projects-summary,
  .projects-catalog {
    grid-template-columns: 1fr;
  }

  .projects-summary {
    gap: 6px;
  }

  .projects-summary div {
    padding-top: 14px;
  }

  .project-card h2,
  .project-role {
    min-height: 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 72px;
    display: none;
    padding: 18px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero {
    min-height: 88vh;
    padding-top: 108px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(13, 20, 18, 0.85), rgba(13, 20, 18, 0.42)),
      linear-gradient(180deg, rgba(13, 20, 18, 0.28), rgba(13, 20, 18, 0.46));
  }

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

  .service-card,
  .project-grid article {
    min-height: auto;
  }

  .icon,
  .project-grid span {
    margin-bottom: 34px;
  }

  .process-list li {
    grid-template-columns: 64px 1fr;
    gap: 16px;
  }

  .site-footer {
    display: grid;
  }
}
