/* OH Landscapes: site styles
   One stylesheet for all five pages. Tokens first, then base, layout, components, pages. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --pine-950: #0b1812;
  --pine-900: #10231a;
  --pine-800: #183224;
  --pine-700: #22452f;
  --lime: #c6dc4a;
  --lime-hover: #d5e964;

  --bg: #f3f4f0;
  --bg-alt: #e8eae4;
  --surface: #fbfbf8;
  --text: #20261f;
  --text-strong: #0f1511;
  --muted: #525a52;
  --line: #d2d6ce;
  --line-strong: #a9aea4;
  --brand: #183224;
  --focus: #183224;

  --dark-bg: var(--pine-900);
  --dark-text: #e4e9e1;
  --dark-muted: #a7b2a6;
  --dark-line: rgb(255 255 255 / 0.14);

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --header-h: 72px;
  --section: clamp(4.5rem, 2.5rem + 6vw, 8.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1410;
    --bg-alt: #121b15;
    --surface: #16201a;
    --text: #d9dfd6;
    --text-strong: #f1f4ee;
    --muted: #9ba699;
    --line: #26322a;
    --line-strong: #3a473d;
    --brand: var(--lime);
    --focus: var(--lime);
    --dark-bg: #0a120d;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 640;
  font-stretch: 112%;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible {
  outline-color: var(--lime);
}
::selection {
  background: var(--lime);
  color: var(--pine-950);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--lime);
  color: var(--pine-950);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.section {
  padding-block: var(--section);
}
.section--alt {
  background: var(--bg-alt);
}
.on-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}
.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: #f4f6f1;
}

/* ---------- Type helpers ---------- */
.display {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem);
  font-weight: 660;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(2rem, 1.35rem + 2.5vw, 3.6rem);
  letter-spacing: -0.03em;
}
.h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  line-height: 1.15;
}
.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lead {
  font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  max-width: 60ch;
  color: var(--muted);
}
.on-dark .lead {
  color: var(--dark-muted);
}
.muted {
  color: var(--muted);
}

/* ---------- Icons ---------- */
.icon {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  fill: currentColor;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.975rem;
  font-weight: 620;
  font-stretch: 108%;
  letter-spacing: 0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.2s var(--ease);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn .icon {
  transition: transform 0.3s var(--ease);
}
.btn:hover .icon {
  transform: translateX(3px);
}
.btn--primary {
  background: var(--lime);
  color: var(--pine-950);
}
.btn--primary:hover {
  background: var(--lime-hover);
}
.btn--line {
  border-color: currentColor;
  background: transparent;
}
.btn--line:hover {
  background: rgb(255 255 255 / 0.1);
}
.btn--dark {
  background: var(--pine-800);
  color: #f4f6f1;
}
.btn--dark:hover {
  background: var(--pine-700);
}
@media (prefers-color-scheme: dark) {
  .btn--dark {
    background: var(--lime);
    color: var(--pine-950);
  }
  .btn--dark:hover {
    background: var(--lime-hover);
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 620;
  font-stretch: 108%;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.link-arrow .icon {
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover .icon {
  transform: translate(2px, -2px);
}
.on-dark .link-arrow {
  color: var(--lime);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--text-strong);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
.site-header--overlay:not(.is-solid) {
  background: transparent;
  border-color: transparent;
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-right: auto;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 1;
  white-space: nowrap;
}
.logo-mark {
  font-size: 1.35rem;
  font-weight: 820;
  font-stretch: 125%;
  letter-spacing: -0.01em;
}
.logo-word {
  padding-left: 0.6rem;
  border-left: 1px solid currentColor;
  font-size: 0.8rem;
  font-weight: 560;
  font-stretch: 125%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 540;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.header-actions .btn {
  min-height: 44px;
  padding: 0 1.1rem;
  font-size: 0.925rem;
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle .icon {
  width: 26px;
  height: 26px;
}

@media (max-width: 1100px) {
  .header-phone {
    display: none;
  }
}
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .header-inner {
    gap: 0.75rem;
  }
}
@media (max-width: 520px) {
  .header-actions .btn {
    display: none;
  }
}

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--pine-900);
  color: #f1f4ee;
  overflow-y: auto;
}
.menu[hidden] {
  display: none;
}
.menu-top {
  display: flex;
  align-items: center;
  height: var(--header-h);
  flex: none;
}
.menu-nav {
  display: grid;
  gap: 0.25rem;
  padding-block: 1.5rem 2rem;
}
.menu-nav a {
  display: block;
  padding: 0.5rem 0;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 620;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
}
.menu-nav a[aria-current="page"] {
  color: var(--lime);
}
.menu-foot {
  display: grid;
  gap: 1rem;
  margin-top: auto;
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--dark-line);
}
.menu-foot a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
}
.menu-foot .btn {
  width: 100%;
}
body.menu-open {
  overflow: hidden;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(640px, min(100dvh, 1040px));
  color: #fff;
  background: var(--pine-950);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(9 20 14 / 0.92) 0%, rgb(9 20 14 / 0.55) 42%, rgb(9 20 14 / 0.1) 75%),
    linear-gradient(to right, rgb(9 20 14 / 0.55), rgb(9 20 14 / 0) 60%),
    linear-gradient(to bottom, rgb(9 20 14 / 0.55), rgb(9 20 14 / 0) 22%);
}
.hero-inner {
  padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 2rem + 6vh, 6rem);
}
.hero .label {
  color: var(--lime);
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: #fff;
  max-width: 21ch;
  font-size: clamp(2.6rem, 1.3rem + 3.9vw, 4.9rem);
}
.hero-sub {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.5;
  color: rgb(255 255 255 / 0.86);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.hero-actions .btn--line {
  color: #fff;
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 2rem + 5vw, 7rem));
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.page-head .label {
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.page-head h1 {
  max-width: 22ch;
  font-size: clamp(2.4rem, 1.3rem + 3.7vw, 4.75rem);
}
.page-head .lead {
  margin-top: 1.5rem;
}

/* ---------- Home: intro ---------- */
.intro-statement {
  max-width: 34ch;
  font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.6rem);
  font-weight: 480;
  font-stretch: 104%;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.intro-statement strong {
  font-weight: 680;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
}
.facts dt {
  font-weight: 640;
  font-stretch: 108%;
  color: var(--text-strong);
  font-size: 1.075rem;
}
.facts dd {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.975rem;
}
@media (max-width: 960px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.25rem;
  }
}
@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

/* ---------- Home: services preview ---------- */
.services-preview {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 6rem);
  align-items: start;
}
.services-preview h2 {
  margin-bottom: 2.5rem;
}
.sp-media {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  overflow: hidden;
}
.sp-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.6s var(--ease),
    transform 1.2s var(--ease);
}
.sp-media img.is-active {
  opacity: 1;
  transform: none;
}
.sp-list {
  border-top: 1px solid var(--line-strong);
}
.sp-item a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.sp-item h3 {
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.1rem);
  transition: transform 0.4s var(--ease);
}
.sp-item p {
  grid-column: 1;
  color: var(--muted);
  max-width: 52ch;
}
.sp-item .icon {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  width: 28px;
  height: 28px;
  color: var(--brand);
  transition: transform 0.4s var(--ease);
}
.sp-item a:hover h3,
.sp-item a:focus-visible h3 {
  transform: translateX(6px);
}
.sp-item a:hover .icon,
.sp-item.is-active .icon {
  transform: translate(3px, -3px);
}
.sp-thumb {
  display: none;
}
@media (max-width: 860px) {
  .services-preview {
    grid-template-columns: 1fr;
  }
  .sp-media {
    display: none;
  }
  .sp-item a {
    grid-template-columns: 88px 1fr;
    align-items: center;
    column-gap: 1.1rem;
  }
  .sp-thumb {
    display: block;
    grid-row: 1 / span 2;
    width: 88px;
    height: 88px;
    object-fit: cover;
  }
  .sp-item h3,
  .sp-item p {
    grid-column: 2;
  }
  .sp-item .icon {
    display: none;
  }
}

/* ---------- Home: sectors bento ---------- */
.sectors-head {
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.sectors-head .lead {
  margin-top: 1.25rem;
}
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--pine-800);
}
.tile--lg {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}
.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile:hover img {
  transform: scale(1.04);
}
.tile--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(9 20 14 / 0.88), rgb(9 20 14 / 0.15) 65%);
}
.tile h3 {
  color: inherit;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
}
.tile--lg h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
}
.tile p {
  margin-top: 0.6rem;
  max-width: 40ch;
  font-size: 0.975rem;
  color: rgb(255 255 255 / 0.82);
}
.tile--lime {
  background: var(--lime);
  color: var(--pine-950);
}
.tile--lime p {
  color: rgb(11 24 18 / 0.78);
}
.tile--stone {
  background: var(--pine-900);
}
@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: minmax(220px, auto);
  }
  .tile--lg {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 380px;
  }
}
@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }
}

/* ---------- Home: process ---------- */
.process h2 {
  max-width: 16ch;
}
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2.25rem 2rem 0 0;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--brand);
}
.step h3 {
  font-size: 1.5rem;
}
.step p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.99rem;
}
@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
  .step {
    padding-right: 0;
  }
}

/* ---------- Home: recent work ---------- */
.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.work-head .label {
  color: var(--muted);
  margin-bottom: 1rem;
}
.work-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: auto auto;
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.work-grid .work:first-child {
  grid-row: 1 / span 2;
}
.work a {
  display: block;
  text-decoration: none;
}
.work-img {
  overflow: hidden;
  background: var(--bg-alt);
}
.work-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.work:first-child .work-img img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 420px;
}
.work:first-child a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.work:first-child .work-img {
  flex: 1;
}
.work a:hover img {
  transform: scale(1.03);
}
.work-cap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.work-cap h3 {
  font-size: 1.2rem;
}
.work-cap span {
  color: var(--muted);
  font-size: 0.925rem;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-grid .work:first-child {
    grid-row: auto;
  }
  .work:first-child .work-img img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 480px) {
  .work-cap {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ---------- Review ---------- */
.review {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 10fr);
  gap: 2rem;
}
.review-mark {
  font-size: clamp(5rem, 3rem + 6vw, 9rem);
  font-weight: 800;
  line-height: 0.8;
  color: var(--brand);
  font-stretch: 125%;
}
.review blockquote {
  margin: 0;
}
.review blockquote p {
  max-width: 30ch;
  font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.9rem);
  font-weight: 460;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.review figcaption {
  margin-top: 2rem;
  display: grid;
  gap: 0.2rem;
}
.review figcaption strong {
  font-weight: 640;
  color: var(--text-strong);
}
.review figcaption span {
  color: var(--muted);
}
@media (max-width: 700px) {
  .review {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ---------- Instagram strip ---------- */
.insta-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.insta-head .label {
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.insta-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-alt);
}
.insta-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.9s var(--ease),
    filter 0.4s var(--ease);
}
.insta-grid a:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}
@media (max-width: 860px) {
  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: clamp(4rem, 3rem + 4vw, 7rem);
  border-bottom: 1px solid var(--dark-line);
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem;
  align-items: end;
}
.cta-inner h2 {
  max-width: 14ch;
}
.cta-inner .lead {
  margin-top: 1.25rem;
}
.cta-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.cta-actions .btn--line {
  color: #f1f4ee;
}
@media (max-width: 860px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-muted);
  font-size: 0.975rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}
.site-footer .logo {
  color: #f1f4ee;
}
.footer-about p {
  margin-top: 1.25rem;
  max-width: 34ch;
}
.footer-col h2 {
  margin-bottom: 1rem;
  color: #f1f4ee;
  font-size: 0.75rem;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--dark-text);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--lime);
}
.footer-col address {
  font-style: normal;
  line-height: 1.6;
  padding-top: 0.6rem;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--dark-line);
  font-size: 0.875rem;
}
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Services page ---------- */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  font-size: 0.925rem;
  font-weight: 540;
  text-decoration: none;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.jump a:hover {
  background: var(--surface);
  border-color: var(--text-strong);
}
.svc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 5.5rem);
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 6rem);
  border-top: 1px solid var(--line-strong);
}
.svc:first-child {
  border-top: 0;
  padding-top: 0;
}
.svc-media {
  order: 2;
  overflow: hidden;
  background: var(--bg-alt);
  align-self: start;
}
.svc-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.svc-body h2 {
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem);
}
.svc-body > p {
  margin-top: 1.25rem;
  color: var(--muted);
  max-width: 52ch;
}
.svc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.svc-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.975rem;
  line-height: 1.4;
}
.svc-list .icon {
  margin-top: 0.1em;
  color: var(--brand);
}
.svc-for {
  margin-top: 1.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.svc-for strong {
  color: var(--text-strong);
  font-weight: 620;
}
@media (max-width: 860px) {
  .svc {
    grid-template-columns: 1fr;
  }
  .svc-media {
    order: 0;
  }
}
@media (max-width: 460px) {
  .svc-list {
    grid-template-columns: 1fr;
  }
}

.contract {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
.contract .lead {
  margin-top: 1.25rem;
}
.contract-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contract-grid div {
  padding: 1.5rem;
  background: var(--bg-alt);
}
.contract-grid h3 {
  font-size: 1.1rem;
  font-stretch: 106%;
}
.contract-grid p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 960px) {
  .contract {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .contract-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .contract-grid {
    grid-template-columns: 1fr;
  }
}

.subcontract {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.subcontract ul {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.subcontract li {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-strong);
}
.subcontract li .icon {
  margin-top: 0.2em;
  color: var(--brand);
}
.subcontract .lead {
  margin-top: 1.25rem;
}
@media (max-width: 860px) {
  .subcontract {
    grid-template-columns: 1fr;
  }
}

/* ---------- Projects page ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filters button {
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 0.925rem;
  font-weight: 540;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.filters button:hover {
  border-color: var(--text-strong);
}
.filters button[aria-pressed="true"] {
  background: var(--text-strong);
  border-color: var(--text-strong);
  color: var(--bg);
}
.projects {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.project {
  grid-column: span 2;
}
.project--wide {
  grid-column: span 4;
}
.project--half {
  grid-column: span 3;
}
.projects.is-filtered .project {
  grid-column: span 2;
}
.project[hidden] {
  display: none;
}
.project {
  position: relative;
}
.project h3 button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.project h3 button::after {
  content: "";
  position: absolute;
  inset: 0;
}
.project h3 button:focus-visible {
  outline: none;
}
.project:has(button:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 6px;
}
.project .work-img img {
  aspect-ratio: 4 / 3;
}
.project--wide .work-img img {
  aspect-ratio: 16 / 9;
}
.project--tall .work-img img {
  aspect-ratio: 6 / 7;
}
.projects.is-filtered .project .work-img img {
  aspect-ratio: 4 / 3;
}
.project:hover img {
  transform: scale(1.03);
}
.project .work-img img {
  width: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
@media (max-width: 960px) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project,
  .project--half,
  .projects.is-filtered .project {
    grid-column: span 1;
  }
  .project--wide {
    grid-column: 1 / -1;
  }
  .project--tall .work-img img {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 600px) {
  .projects {
    grid-template-columns: 1fr;
  }
  .project--wide .work-img img {
    aspect-ratio: 4 / 3;
  }
}
.empty {
  padding: 3rem 0;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  width: min(100% - 2 * var(--gutter), 1100px);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--text);
  overflow: auto;
}
.lightbox::backdrop {
  background: rgb(8 16 12 / 0.82);
}
.lightbox[open] {
  animation: lb-in 0.4s var(--ease);
}
@keyframes lb-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.lb-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.lb-grid img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.lb-body {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}
.lb-body h2 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  padding-right: 2.5rem;
}
.lb-body p {
  margin-top: 1rem;
  color: var(--muted);
}
.lb-meta {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.lb-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lb-meta dd {
  margin-top: 0.2rem;
  color: var(--text-strong);
}
.lb-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.lb-close .icon {
  width: 24px;
  height: 24px;
}
@media (max-width: 760px) {
  .lb-grid {
    grid-template-columns: 1fr;
  }
  .lb-grid img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* ---------- About page ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.story-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.story-body h2 {
  max-width: 16ch;
}
.story-body .prose {
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
  max-width: 60ch;
  color: var(--muted);
}
.story-body .prose p:first-child {
  color: var(--text-strong);
  font-size: 1.2rem;
  line-height: 1.5;
}
@media (max-width: 860px) {
  .story {
    grid-template-columns: 1fr;
  }
  .story-media img {
    aspect-ratio: 4 / 3;
  }
}

.standards h2 {
  max-width: 18ch;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.standard {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line-strong);
}
.standard:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.standard h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem);
  font-weight: 560;
}
.standard p {
  max-width: 56ch;
  color: var(--muted);
  padding-top: 0.4rem;
}
@media (max-width: 760px) {
  .standard {
    grid-template-columns: 1fr;
  }
}

.crew figure {
  margin: 0;
}
.crew img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.crew figcaption {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem 2rem;
  margin-top: 1.75rem;
}
.crew figcaption h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
}
.crew figcaption p {
  color: var(--muted);
  max-width: 58ch;
}
@media (max-width: 760px) {
  .crew img {
    aspect-ratio: 4 / 3;
  }
  .crew figcaption {
    grid-template-columns: 1fr;
  }
}

.area {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.area .lead {
  margin-top: 1.25rem;
}
.area-box {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
}
.area-box dl {
  display: grid;
  gap: 1.25rem;
}
.area-box dt {
  font-size: 0.75rem;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.area-box dd {
  margin-top: 0.3rem;
  color: var(--text-strong);
  font-weight: 540;
}
@media (max-width: 860px) {
  .area {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact page ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}
.field {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.field--full {
  grid-column: 1 / -1;
}
.field label,
.field legend {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-strong);
}
.field .opt {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
}
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23525a52'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6b736a;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text-strong);
  box-shadow: 0 0 0 1px var(--text-strong);
}
.field .hint {
  font-size: 0.875rem;
  color: var(--muted);
}
.field .error {
  display: none;
  font-size: 0.875rem;
  font-weight: 560;
  color: #a4281b;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #a4281b;
}
.field.is-invalid .error {
  display: block;
}
@media (prefers-color-scheme: dark) {
  .field .error {
    color: #ff9c8a;
  }
  .field.is-invalid input,
  .field.is-invalid select,
  .field.is-invalid textarea {
    border-color: #ff9c8a;
  }
  .field input::placeholder,
  .field textarea::placeholder {
    color: #8e988c;
  }
  .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%239ba699'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.chips legend {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0;
}
.chip {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  font-size: 0.925rem;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.chip input:checked + span {
  background: var(--text-strong);
  border-color: var(--text-strong);
  color: var(--bg);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  padding-top: 0.5rem;
}
.form-foot p {
  flex: 1 1 260px;
  font-size: 0.875rem;
  color: var(--muted);
}
.form-status {
  grid-column: 1 / -1;
  display: none;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--brand);
  background: var(--surface);
}
.form-status.is-shown {
  display: block;
}
.form-status.is-error {
  border-left-color: #a4281b;
}
.form-status strong {
  display: block;
  color: var(--text-strong);
  font-weight: 640;
}
.btn[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}
@media (max-width: 600px) {
  .form {
    grid-template-columns: 1fr;
  }
  .form-foot .btn {
    width: 100%;
  }
}

.contact-aside {
  display: grid;
  gap: 2.5rem;
}
.contact-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: var(--pine-900);
  color: var(--dark-text);
}
.contact-card h2 {
  color: #f4f6f1;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}
.contact-card ul {
  display: grid;
  gap: 0.25rem;
}
.contact-card a,
.contact-card li > span {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  min-height: 44px;
  padding-top: 0.6rem;
  text-decoration: none;
  line-height: 1.45;
}
.contact-card a:hover {
  color: var(--lime);
}
.contact-card .icon {
  margin-top: 0.15em;
  color: var(--lime);
}
.next h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.next ol {
  list-style: none;
  counter-reset: n;
  border-top: 1px solid var(--line);
}
.next li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: n;
  color: var(--muted);
  font-size: 0.975rem;
}
.next li::before {
  content: counter(n);
  font-weight: 700;
  font-stretch: 125%;
  color: var(--text-strong);
}
@media (max-width: 960px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
  .hero-media img {
    animation: hero-in 2.2s var(--ease) both;
  }
  .hero-inner > * {
    animation: rise 1s var(--ease) both;
  }
  .hero-inner > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .hero-inner > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .hero-inner > :nth-child(4) {
    animation-delay: 0.24s;
  }
}
@keyframes hero-in {
  from {
    transform: scale(1.07);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
