* {
  box-sizing: border-box;
}

:root {
  --paper: #f5f2e9;
  --paper-deep: #e7dfcf;
  --ink: #1f2926;
  --muted: #5c6761;
  --line: rgba(31, 41, 38, 0.18);
  --carbon: #26302d;
  --carbon-2: #121816;
  --green: #587b5d;
  --sage: #96a78b;
  --brass: #b88b45;
  --signal: #d76a3d;
  --blueprint: #dce7e0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(31, 41, 38, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 41, 38, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px, 28px 28px, auto;
  font-family: "IBM Plex Sans", "Aptos", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

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

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

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 10px 14px;
  background: var(--signal);
  color: white;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  font-weight: 800;
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  left: 14px;
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  min-height: 74px;
  padding: 12px clamp(14px, 4vw, 52px);
  background: rgba(245, 242, 233, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  color: var(--paper);
  background:
    linear-gradient(135deg, var(--carbon), #4f5d55);
  border: 1px solid rgba(31, 41, 38, 0.4);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a,
.header-call,
.button,
.proof-link,
.area-card a {
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover {
  color: var(--carbon-2);
}

.header-call {
  justify-self: end;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: var(--paper);
  background: var(--carbon);
  border: 1px solid var(--carbon);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.header-call:hover,
.button.primary:hover,
.proof-link:hover,
.area-card a:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: calc(92vh - 74px);
  overflow: hidden;
  display: grid;
  align-items: end;
  background: var(--carbon-2);
}

.hero-media,
.hero-media img,
.hero-veil,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 67% 49%;
  filter: saturate(0.92) contrast(1.06) brightness(0.82);
}

.hero-veil {
  background:
    linear-gradient(90deg, rgba(18, 24, 22, 0.88) 0%, rgba(18, 24, 22, 0.72) 42%, rgba(18, 24, 22, 0.2) 82%),
    linear-gradient(0deg, rgba(18, 24, 22, 0.75) 0%, transparent 58%);
}

.hero-grid {
  opacity: 0.46;
  background:
    linear-gradient(90deg, rgba(220, 231, 224, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(220, 231, 224, 0.16) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 130px 0 clamp(40px, 8vh, 82px);
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(270px, 360px);
  gap: clamp(24px, 6vw, 72px);
  align-items: end;
  color: var(--paper);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--brass);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 7vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-text {
  max-width: 670px;
  margin-top: 22px;
  color: rgba(245, 242, 233, 0.82);
  font-size: clamp(1.03rem, 2vw, 1.24rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid currentColor;
  font-weight: 900;
  white-space: nowrap;
}

.button.primary {
  color: var(--paper);
  background: var(--signal);
  border-color: var(--signal);
}

.button.secondary {
  color: inherit;
  background: rgba(245, 242, 233, 0.08);
}

.button.secondary:hover {
  background: rgba(245, 242, 233, 0.16);
}

.field-card {
  border: 1px solid rgba(245, 242, 233, 0.3);
  background: rgba(18, 24, 22, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.field-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(245, 242, 233, 0.22);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field-card-head strong {
  color: var(--brass);
}

.spec-list > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(245, 242, 233, 0.16);
}

.spec-list > div:last-child {
  border-bottom: 0;
}

.spec-list dt {
  color: rgba(245, 242, 233, 0.58);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.spec-list dd {
  color: rgba(245, 242, 233, 0.9);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.survey-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.survey-strip > * {
  min-height: 106px;
  padding: 22px clamp(16px, 4vw, 36px);
  background: var(--paper-deep);
}

.survey-strip span {
  display: block;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
}

.survey-strip p {
  max-width: 220px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.survey-strip a {
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--green);
  font-weight: 900;
  text-align: center;
}

.services,
.field-notes,
.work-board,
.review-panel,
.contact {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.services {
  padding: clamp(58px, 9vw, 110px) 0;
}

.section-kicker,
.board-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(18px, 5vw, 64px);
  align-items: end;
  margin-bottom: 28px;
}

.section-kicker h2,
.notes-copy h2,
.board-head h2,
.review-panel h2,
.contact h2 {
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1;
  text-wrap: balance;
}

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

.service-grid article {
  min-height: 278px;
  padding: 22px;
  background: rgba(245, 242, 233, 0.72);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-code {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  color: var(--paper);
  background: var(--carbon);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.service-grid h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.12;
}

.service-grid p,
.notes-copy p,
.review-panel p,
.contact p {
  color: var(--muted);
  font-size: 1rem;
}

.field-notes {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  padding: clamp(42px, 7vw, 84px) 0;
  border-top: 2px solid var(--carbon);
  border-bottom: 2px solid var(--carbon);
}

.notes-copy p:last-child {
  max-width: 640px;
  margin-top: 18px;
}

.note-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-steps li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--blueprint);
  border: 1px solid rgba(31, 41, 38, 0.15);
}

.note-steps span {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.note-steps strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.16;
}

.work-board {
  padding: clamp(58px, 9vw, 110px) 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 12px;
}

.media-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: var(--carbon);
}

.media-card.tall {
  grid-row: span 2;
}

.media-card.wide {
  grid-column: span 2;
}

.media-card picture,
.media-card img {
  width: 100%;
  height: 100%;
}

.media-card img {
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04);
}

.media-card.tall img {
  object-position: 60% 50%;
}

.media-card.wide img {
  object-position: 54% 45%;
}

.media-card:not(.tall):not(.wide) img {
  object-position: 46% 45%;
}

.media-card:last-child img {
  object-position: 45% 58%;
}

.media-card figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  color: var(--paper);
  background: rgba(18, 24, 22, 0.82);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.review-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(30px, 5vw, 50px);
  color: var(--paper);
  background: var(--carbon);
  border: 1px solid rgba(245, 242, 233, 0.16);
}

.review-panel p {
  max-width: 720px;
  margin-top: 16px;
  color: rgba(245, 242, 233, 0.72);
}

.proof-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--carbon-2);
  background: var(--paper);
  font-weight: 900;
  white-space: nowrap;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 6vw, 70px);
  padding: clamp(58px, 9vw, 110px) 0;
}

.contact-copy p {
  max-width: 660px;
  margin-top: 18px;
}

.contact .button.secondary {
  color: var(--carbon);
  background: transparent;
}

.contact .button.secondary:hover {
  background: rgba(31, 41, 38, 0.06);
}

.area-card {
  align-self: start;
  padding: 24px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

.area-card h3 {
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.area-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-weight: 750;
  list-style: none;
}

.area-card li {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(31, 41, 38, 0.12);
}

.area-card a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 22px;
  color: var(--paper);
  background: var(--green);
  font-weight: 900;
}

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

  .nav-links {
    display: none;
  }

  .hero-inner,
  .field-notes,
  .contact,
  .section-kicker,
  .board-head,
  .review-panel {
    grid-template-columns: 1fr;
  }

  .field-card {
    max-width: 520px;
  }

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

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

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

@media (max-width: 620px) {
  html {
    scroll-padding-top: 70px;
  }

  .site-header {
    min-height: 66px;
    padding: 10px 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 0.72rem;
  }

  .brand strong {
    max-width: 140px;
    font-size: 0.9rem;
    line-height: 1.08;
  }

  .brand small {
    font-size: 0.66rem;
  }

  .header-call {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .hero {
    min-height: calc(100svh - 66px);
  }

  .hero-media img {
    object-position: 64% 48%;
  }

  .hero-veil {
    background:
      linear-gradient(90deg, rgba(18, 24, 22, 0.9), rgba(18, 24, 22, 0.64)),
      linear-gradient(0deg, rgba(18, 24, 22, 0.88) 0%, rgba(18, 24, 22, 0.22) 80%);
  }

  .hero-grid {
    background-size: 38px 38px;
  }

  .hero-inner {
    width: min(100% - 24px, 1180px);
    padding: 88px 0 28px;
    gap: 20px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.68rem;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 13.5vw, 3.35rem);
    line-height: 0.98;
  }

  .hero-text {
    margin-top: 16px;
    font-size: 0.98rem;
  }

  .hero-actions,
  .contact-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .button {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    font-size: 0.9rem;
  }

  .field-card {
    background: rgba(18, 24, 22, 0.82);
  }

  .field-card-head,
  .spec-list > div {
    padding: 12px;
  }

  .spec-list > div {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .spec-list dt {
    font-size: 0.66rem;
  }

  .spec-list dd {
    font-size: 0.88rem;
  }

  .survey-strip {
    grid-template-columns: 1fr;
  }

  .survey-strip > * {
    min-height: 82px;
    padding: 16px;
  }

  .services,
  .field-notes,
  .work-board,
  .review-panel,
  .contact {
    width: min(100% - 24px, 1180px);
  }

  .section-kicker h2,
  .notes-copy h2,
  .board-head h2,
  .review-panel h2,
  .contact h2 {
    font-size: clamp(1.75rem, 9vw, 2.4rem);
  }

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

  .service-grid article {
    min-height: 220px;
    padding: 18px;
  }

  .service-code {
    margin-bottom: 24px;
  }

  .note-steps li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .media-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .media-card.tall,
  .media-card.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .media-card.tall {
    min-height: 350px;
  }

  .review-panel {
    padding: 24px 18px;
  }

  .proof-link {
    width: 100%;
  }

  .contact {
    padding-bottom: 72px;
  }
}

@media (max-width: 340px) {
  .brand strong {
    max-width: 118px;
    font-size: 0.82rem;
  }

  .brand small {
    font-size: 0.6rem;
  }

  .header-call {
    font-size: 0.7rem;
    padding: 0 8px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

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