:root {
  --ink: #2a2a2a;
  --muted: #6a675f;
  --line: #e6e2db;
  --paper: #f4f1ea;
  --white: #ffffff;
  --wood: #b08a5b;
  --wood-deep: #9a7648;
  --maxw: 1180px;
  --header-h: 88px;
  --cdn: https://media.cwd-cdn.com/apex-pro-contracting;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-ui: "Montserrat", var(--font-body);
  --font-hero: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.14;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip:focus {
  left: 8px;
}

.eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--wood-deep);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header--over-hero {
  position: fixed;
  inset-inline: 0;
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
}

.site-header--over-hero .site-nav a {
  color: #fff;
}

.site-header--over-hero .site-nav a:hover,
.site-header--over-hero .site-nav a[aria-current="page"] {
  color: #fff;
  opacity: 0.85;
}

.site-header--over-hero .nav-toggle-label {
  color: #fff;
}

.site-header--over-hero.is-scrolled {
  background: #fff;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.28);
  color: var(--ink);
}

.site-header--over-hero.is-scrolled .site-nav a {
  color: inherit;
}

.site-header--over-hero.is-scrolled .site-nav a:hover,
.site-header--over-hero.is-scrolled .site-nav a[aria-current="page"] {
  color: var(--wood-deep);
  opacity: 1;
}

.site-header--over-hero.is-scrolled .nav-toggle-label {
  color: inherit;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 40px;
}

.logo-menu img {
  height: 40px;
  width: auto;
  max-width: min(230px, 52vw);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--wood-deep);
}

.site-nav a[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 12px;
}

.nav-dropdown-label {
  display: inline-block;
  pointer-events: none;
  cursor: default;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-dropdown-label::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.45em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.12em) rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-label::after,
.nav-dropdown.is-open .nav-dropdown-label::after,
.nav-dropdown:focus-within .nav-dropdown-label::after {
  transform: translateY(0.08em) rotate(-135deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 60;
  min-width: 340px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(42, 42, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  translate: -50% 4px;
  transition: opacity 0.2s ease, visibility 0.2s ease, translate 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 36px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  opacity: 1;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] {
  color: var(--wood-deep);
  background: #faf8f5;
}

.site-header--over-hero .nav-dropdown-menu a,
.site-header--over-hero .site-nav .nav-dropdown-menu a {
  color: var(--ink);
  opacity: 1;
}

.site-header--over-hero .nav-dropdown-menu a:hover,
.site-header--over-hero .nav-dropdown-menu a[aria-current="page"],
.site-header--over-hero .site-nav .nav-dropdown-menu a:hover,
.site-header--over-hero .site-nav .nav-dropdown-menu a[aria-current="page"] {
  color: var(--wood-deep);
  opacity: 1;
  background: #faf8f5;
}

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn:hover {
  background: #111;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--wood);
}

.btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--wood-deep);
}

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

/* Home hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.14);
  animation: hero-image-settle 16s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.1) 22%,
    rgba(255, 255, 255, 0) 40%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--maxw), calc(100% - 48px));
  max-width: 32rem;
  margin: 0;
  margin-left: max(24px, calc((100% - min(var(--maxw), 100% - 48px)) / 2));
  padding: calc(var(--header-h) * 0.35) 0 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.hero-content h1,
.hero-sub,
.hero-cta {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-fade-up 1.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content h1 {
  margin-bottom: 18px;
  font-family: var(--font-hero);
  font-size: clamp(2.4rem, 5.2vw, 3.75rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: #1c1c1c;
  animation-delay: 0.45s;
}

.hero-sub {
  margin-bottom: 28px;
  max-width: 28rem;
  color: #2a2a2a;
  font-family: var(--font-hero);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.55;
  animation-delay: 0.9s;
}

.hero-sub-break {
  display: none;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1c1c1c;
  text-decoration: none;
  font-family: var(--font-hero);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 0;
  position: relative;
  animation-delay: 1.35s;
}

.hero-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  animation: hero-underline 1.25s cubic-bezier(0.22, 1, 0.36, 1) 2.15s forwards;
}

.hero-cta:hover {
  color: #000;
}

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-image-settle {
  from {
    transform: scale(1.14);
  }

  to {
    transform: scale(1);
  }
}

@keyframes hero-underline {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-content h1,
  .hero-sub,
  .hero-cta,
  .hero-cta::after {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-cta::after {
    transform: scaleX(1);
  }
}

/* Service area ticker */
.service-area {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 54px;
  background: #f3f2ef;
  border: 0;
}

.service-area-track {
  display: flex;
  width: max-content;
  flex-shrink: 0;
  align-items: center;
  animation: service-area-marquee 48s linear infinite;
  will-change: transform;
}

.service-area-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.service-area-text {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  color: #4a463f;
  font-family: var(--font-hero);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-area-dot {
  flex: 0 0 auto;
  padding: 0 1.25rem;
  color: #4a463f;
  font-family: var(--font-hero);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

@keyframes service-area-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--marquee-distance, 50%)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-area-track {
    animation: none;
    width: 100%;
    justify-content: center;
  }

  .service-area-group[aria-hidden="true"] {
    display: none;
  }

  .service-area-dot {
    display: none;
  }

  .service-area-text {
    padding: 0 1.25rem;
    white-space: normal;
    text-align: center;
    letter-spacing: 0.12em;
  }
}

/* Approach */
.approach {
  padding: 80px 0;
  background: #fff;
}

.approach-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.approach-media {
  margin: 0;
  background: var(--paper);
}

.approach-media img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  object-position: center bottom;
}

.approach-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.approach-copy p {
  max-width: 30rem;
  color: var(--muted);
}

/* Service icon bar */
.service-bar {
  background: #f3f2ef;
  border: 0;
}

.service-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-bar-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 40px 22px;
  border: 0;
}

.service-bar-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 48%;
  translate: 0 -50%;
  background: #ddd9d2;
}

.service-icon {
  width: 34px;
  height: 34px;
  margin-top: 2px;
  color: #b08a5b;
  flex-shrink: 0;
}

.service-bar-copy h3 {
  margin: 0 0 8px;
  color: #b08a5b;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}

.service-bar-item p {
  color: #3a3530;
  font-size: 0.92rem;
  line-height: 1.45;
}

.service-bar-cta {
  margin: 0;
  padding: 0 22px 36px;
  text-align: center;
}

.service-bar-cta .text-link {
  margin-top: 0;
}

/* Featured projects */
.featured {
  padding: 112px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.section-head .text-link {
  margin-top: 0;
}

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

.featured-card {
  text-decoration: none;
}

.featured-card figure {
  margin: 0;
}

.featured-card img,
.featured-card .media-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper);
}

.media-placeholder {
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px dashed #d4cfc6;
}

.featured-card figcaption {
  padding-top: 14px;
}

.featured-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
}

.featured-card span {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* CTA panel */
.cta-panel {
  background: var(--paper);
  padding: 72px 0;
}

.cta-panel-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 40px;
  align-items: center;
}

.cta-panel--slim {
  padding: 28px 0;
}

.cta-credentials {
  margin: 40px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.cta-panel--slim .cta-credentials {
  margin: 0;
}

.cta-heading .eyebrow {
  margin-bottom: 12px;
  max-width: 28rem;
  text-wrap: balance;
}

.cta-panel h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  max-width: 16ch;
}

.cta-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cta-contact li + li {
  margin-top: 14px;
}

.cta-contact span {
  display: block;
  margin-bottom: 2px;
  color: var(--wood-deep);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
}

.site-footer--bar {
  padding: 28px 0;
}

.footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.footer-bar .logo-menu img {
  height: 28px;
  max-width: min(170px, 45vw);
}

.footer-bar .footer-credit {
  text-align: center;
}

.footer-bar .legal,
.footer-bar .credit {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
}

.footer-bar .credit {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.footer-bar .credit a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bar .credit a:hover {
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.site-footer h2 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

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

.brand-block strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.footer-nav,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li + li,
.contact-list li + li {
  margin-top: 8px;
}

.contact-list span {
  display: block;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.legal {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* Inner pages */
.page-hero {
  padding: 88px 0 56px;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  max-width: 14ch;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 38rem) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.page-hero-media {
  margin: 0;
}

.page-hero-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  display: block;
}

.service-list {
  display: grid;
  gap: 0;
}

.about-content {
  padding-bottom: 96px;
}

.about-content-inner {
  max-width: 42rem;
}

.about-content p {
  color: var(--muted);
  line-height: 1.75;
}

.about-content p + p {
  margin-top: 1.35rem;
}

.principal {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.principal strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.3;
}

.principal span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.principal--contact {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.principal--contact strong {
  font-size: 1.25rem;
}

.contact-page {
  padding-bottom: 120px;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-details .eyebrow {
  margin-bottom: 24px;
}

.contact-details-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.contact-details-list li + li {
  margin-top: 18px;
}

.contact-details-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--wood-deep);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-details-list a {
  color: var(--ink);
  text-decoration: none;
}

.contact-details-list a:hover {
  color: var(--wood);
}

.contact-details-note {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field > span {
  color: var(--wood-deep);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.contact-field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 2px solid var(--wood);
  outline-offset: 1px;
  border-color: var(--wood);
}

.contact-form-actions {
  display: grid;
  gap: 12px;
}

.contact-form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form-status:not(:empty) {
  color: var(--wood-deep);
}

.contact-success-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 20, 16, 0.58);
  backdrop-filter: blur(4px);
}

.contact-success-modal[hidden] {
  display: none;
}

.contact-success-dialog {
  position: relative;
  width: min(100%, 440px);
  padding: 40px 36px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(24, 20, 16, 0.18);
}

.contact-success-dialog .eyebrow {
  margin-bottom: 12px;
}

.contact-success-dialog h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  max-width: none;
}

.contact-success-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-success-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.contact-success-close:hover {
  opacity: 1;
}

.service-item {
  display: grid;
  grid-template-columns: 140px 1fr 1.2fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.service-item:last-child {
  border-bottom: 0;
}

.service-item h2 {
  font-size: 2.1rem;
}

.service-item p {
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-bottom: 120px;
}

.project-card {
  display: block;
  text-decoration: none;
}

.project-card figure {
  margin: 0;
  background: var(--paper);
}

.project-card img,
.project-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card figcaption {
  padding-top: 18px;
}

.project-card h2 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.project-card p {
  color: var(--muted);
}

.project-index {
  display: grid;
  gap: 0;
  padding-bottom: 120px;
}

.project-dropdown {
  border-top: 1px solid var(--line);
}

.project-dropdown:last-of-type {
  border-bottom: 1px solid var(--line);
}

.project-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
}

.project-dropdown summary::-webkit-details-marker {
  display: none;
}

.project-dropdown-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.project-dropdown-label strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
}

.project-dropdown-label span {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-dropdown-body {
  padding: 0 0 32px;
}

.project-dropdown-media {
  margin: 0 0 20px;
}

.project-dropdown-media img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.project-dropdown-body p {
  max-width: 36rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 120px;
}

/* Project detail template */
.project-hero-split {
  background: #f3f2ef;
}

.project-hero-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(62vh, 580px);
}

.project-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: end;
  width: 100%;
  max-width: 34rem;
  margin: 0;
  padding: 64px clamp(24px, 4vw, 48px) 64px clamp(24px, 5vw, 72px);
}

.project-hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  margin-bottom: 20px;
}

.project-hero-lede {
  max-width: 24rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.project-hero-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}

.project-hero-links .text-link {
  margin-top: 0;
}

.project-hero-image {
  margin: 0;
  min-height: 100%;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  min-height: min(62vh, 580px);
  object-fit: cover;
}

.project-gallery {
  padding: 64px 0 48px;
}

.project-detail {
  padding: 48px 0 72px;
  border-top: 1px solid var(--line);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}

.project-gallery .eyebrow {
  margin-bottom: 32px;
}

.project-overview h2,
.project-scope h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 24px;
  max-width: 16ch;
}

.project-overview p + p {
  margin-top: 18px;
}

.project-overview p {
  color: var(--muted);
  max-width: 36rem;
}

.project-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 40px;
  padding: 28px;
  background: #f3f2ef;
}

.project-callout-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: #b08a5b;
}

.project-callout p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.6;
}

.project-scope-list {
  margin: 0 0 40px;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
}

.project-scope-list li + li {
  margin-top: 12px;
}

.project-meta {
  margin: 0;
  border-top: 1px solid var(--line);
}

.project-meta div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.project-meta dt {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 0;
  color: var(--muted);
}

.project-gallery-viewer {
  display: grid;
  gap: 16px;
}

.project-gallery-lead {
  margin: 0;
}

.project-gallery-lead-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-gallery-lead-btn img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.project-gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.project-gallery-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.project-gallery-thumb:hover {
  opacity: 1;
}

.project-gallery-thumb.is-active {
  border-color: #b08a5b;
  opacity: 1;
}

.project-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-gallery-viewer--single .project-gallery-lead-btn img {
  aspect-ratio: 16 / 10;
  max-height: 520px;
}

.project-gallery-viewer--portrait .project-gallery-lead-btn {
  max-width: min(520px, 100%);
  margin-inline: auto;
}

.project-gallery-viewer--portrait .project-gallery-lead-btn img {
  aspect-ratio: 3 / 4;
  max-height: min(680px, 72vh);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(26, 26, 26, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
}

.lightbox-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-ui);
  line-height: 1;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  padding: 8px;
  font-size: 2rem;
  opacity: 0.85;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-nav {
  top: 50%;
  translate: 0 -50%;
  padding: 16px 12px;
  font-size: 2.4rem;
  opacity: 0.75;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-nav[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .lightbox-nav {
    padding: 12px 8px;
    font-size: 1.8rem;
  }

  .lightbox-prev {
    left: 4px;
  }

  .lightbox-next {
    right: 4px;
  }
}

.project-gallery-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-hero-media {
  margin: 0;
}

.project-hero-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.project-panels {
  display: grid;
  gap: 0;
}

.project-panel {
  border-top: 1px solid var(--line);
}

.project-panel:last-of-type {
  border-bottom: 1px solid var(--line);
}

.project-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-panel summary::-webkit-details-marker {
  display: none;
}

.project-panel-body {
  padding: 0 0 24px;
}

.project-panel-body p {
  color: var(--muted);
  max-width: 36rem;
}

.placeholder {
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  padding: 28px;
  border: 1px dashed #d4cfc6;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: 40px 0 112px;
}

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

.card {
  padding: 36px 32px 40px;
  border: 1px solid var(--line);
  background: var(--white);
}

.card h3 {
  font-size: 1.85rem;
  margin: 12px 0 16px;
}

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

@media (max-width: 980px) {
  .hero-sub-break {
    display: block;
  }

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

  .service-bar-item:nth-child(even)::after {
    content: none;
  }

  .cta-panel-grid {
    grid-template-columns: 1fr;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .project-showcase,
  .project-hero-split-grid,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-hero-copy {
    justify-self: stretch;
    max-width: none;
    padding: 56px 24px 32px;
  }

  .project-hero-image img {
    min-height: 320px;
  }

  .project-meta div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 860px) {
  .nav-toggle-label {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 24px 32px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-header--over-hero:not(.is-scrolled) .site-nav a {
    color: var(--ink);
  }

  .site-header--over-hero:not(.is-scrolled) .site-nav a:hover,
  .site-header--over-hero:not(.is-scrolled) .site-nav a[aria-current="page"] {
    color: var(--wood-deep);
    opacity: 1;
  }

  .site-header--over-hero:not(.is-scrolled) .nav-dropdown-label {
    color: #fff;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    translate: none;
    width: 100%;
    margin-top: 10px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, visibility 0.25s ease;
  }

  .nav-dropdown.is-open .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    visibility: visible;
    max-height: 240px;
  }

  .nav-dropdown-menu a {
    padding: 8px 0 8px 12px;
  }

  .project-dropdown-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .approach-grid,
  .footer-grid,
  .project-grid,
  .service-item,
  .section-head,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .hero-content {
    width: min(var(--maxw), calc(100% - 32px));
    margin-left: 16px;
    margin-right: 16px;
    padding-top: calc(var(--header-h) * 0.2);
  }

  .logo-menu img {
    height: 33px;
    max-width: min(198px, 58vw);
  }

  .footer-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(var(--maxw), calc(100% - 32px));
  }

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

  .service-bar-item::after {
    content: none;
  }

  .service-bar-item {
    border: 0;
  }

  .service-bar-item:last-child {
    border-bottom: 0;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }
}
