:root {
  --bg: #f7f3e8;
  --bg-strong: #efe8d7;
  --surface: #fffdf8;
  --surface-soft: #f2ecde;
  --ink: #1d1b17;
  --muted: #575f54;
  --line: #d9d1bf;
  --forest: #2f6b47;
  --forest-deep: #204931;
  --sage: #8fae88;
  --accent: #c56c2d;
  --accent-deep: #9f5422;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 12px 28px rgba(28, 31, 23, 0.08);
  --shadow-lg: 0 20px 46px rgba(30, 33, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg) 0%, #f5f1e5 42%, #f2ecde 100%);
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  line-height: 1.62;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: 0.01em;
}

h1,
h2 {
  font-family: "Cormorant Garamond", "Georgia", serif;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.5rem);
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.25rem);
}

h3 {
  font-size: 1.1rem;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  width: 100%;
}

.container {
  width: min(1180px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  opacity: 0.68;
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.page-bg::before {
  width: 460px;
  height: 460px;
  top: -160px;
  right: -110px;
  background: radial-gradient(circle at center, rgba(197, 108, 45, 0.28), rgba(197, 108, 45, 0));
}

.page-bg::after {
  width: 560px;
  height: 560px;
  left: -220px;
  bottom: -240px;
  background: radial-gradient(circle at center, rgba(47, 107, 71, 0.2), rgba(47, 107, 71, 0));
}

.texture {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(rgba(42, 58, 36, 0.16) 0.6px, transparent 0.6px);
  background-size: 7px 7px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(11px);
  background: rgba(247, 243, 232, 0.88);
  border-bottom: 1px solid rgba(47, 107, 71, 0.12);
  overflow: visible;
}

.home-nav-wrap {
  --home-logo-slot: clamp(220px, 28vw, 420px);
  display: grid;
  grid-template-columns: var(--home-logo-slot) 1fr var(--home-logo-slot);
  align-items: center;
  column-gap: 1.2rem;
  padding: 0.95rem 0;
}

.home-header .site-nav {
  grid-column: 2;
  justify-content: center;
  padding: 0;
  gap: 1.15rem;
}

.home-header .nav-link {
  padding: 0.56rem 1.15rem;
}

.home-brand {
  grid-column: 1;
  justify-self: start;
}

.home-brand .brand-logo {
  height: 92px;
  width: auto;
  max-width: var(--home-logo-slot);
}

.home-spacer {
  grid-column: 3;
  width: var(--home-logo-slot);
  height: 1px;
}

.home-menu-toggle {
  display: none;
}

.header-top {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
}

.brand-logo {
  height: 62px;
  width: auto;
  max-width: min(64vw, 360px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(47, 107, 71, 0.34);
  background: transparent;
  color: var(--forest);
  border-radius: 999px;
  padding: 0.45rem 0.82rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  overflow: visible;
  padding: 0 0 0.9rem;
  scrollbar-width: thin;
  position: relative;
  z-index: 10000;
}

.nav-group {
  position: relative;
  z-index: 10010;
}

.site-nav::-webkit-scrollbar {
  height: 8px;
}

.site-nav::-webkit-scrollbar-thumb {
  background: rgba(47, 107, 71, 0.35);
  border-radius: 999px;
}

.nav-link {
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.48rem 0.82rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e221b;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-link:hover {
  border-color: rgba(47, 107, 71, 0.35);
  color: var(--forest);
}

.nav-link.is-active {
  background: var(--forest);
  color: #f9f6ec;
}

.sub-nav {
  position: absolute;
  left: 0;
  top: calc(100% + 0.45rem);
  min-width: 280px;
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem;
  border-radius: 14px;
  border: 1px solid rgba(47, 107, 71, 0.22);
  background: rgba(255, 252, 245, 0.96);
  box-shadow: 0 16px 30px rgba(27, 31, 24, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 10020;
}

.nav-group:hover .sub-nav,
.nav-group:focus-within .sub-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.sub-link {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2d352d;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
}

.sub-link:hover {
  background: rgba(47, 107, 71, 0.08);
  border-color: rgba(47, 107, 71, 0.22);
}

.sub-link.is-active {
  background: rgba(47, 107, 71, 0.13);
  color: var(--forest);
  border-color: rgba(47, 107, 71, 0.28);
}

.btn {
  border: 0;
  text-decoration: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
  background: linear-gradient(130deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 11px 22px rgba(159, 84, 34, 0.28);
  padding: 0.78rem 1.15rem;
  font-size: 0.91rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.small {
  padding: 0.56rem 0.9rem;
  font-size: 0.83rem;
}

.btn.outline {
  background: transparent;
  color: var(--forest);
  border: 1.4px solid rgba(47, 107, 71, 0.42);
  box-shadow: none;
}

main {
  padding-bottom: 2.2rem;
}

.page-hero {
  padding: 3.9rem 0 2.9rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 1.35rem;
  align-items: center;
}

.eyebrow {
  margin-bottom: 0.62rem;
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-lead {
  margin-top: 0.95rem;
  max-width: 60ch;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.66rem;
}

.hero-points {
  margin-top: 1.3rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.hero-points li {
  position: relative;
  padding-left: 1rem;
  color: #415041;
  font-size: 0.94rem;
}

.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--forest);
  position: absolute;
  left: 0;
  top: 0.58em;
}

.hero-stats {
  margin-top: 1.45rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat-box {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.92);
  border-radius: var(--radius-md);
  padding: 0.72rem;
}

.stat-box strong {
  display: block;
  font-size: 1.1rem;
  color: var(--forest);
}

.stat-box span {
  display: block;
  margin-top: 0.15rem;
  color: #596254;
  font-size: 0.78rem;
}

.hero-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-media img,
.hero-media video {
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.media-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.66rem 0.72rem;
  border-radius: 12px;
  background: rgba(21, 29, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8f4eb;
  font-size: 0.8rem;
  max-width: 72%;
}

.section {
  padding: 3.35rem 0;
}

.section.soft {
  background: linear-gradient(180deg, rgba(143, 174, 136, 0.12), rgba(247, 243, 232, 0.5));
  border-top: 1px solid rgba(47, 107, 71, 0.11);
  border-bottom: 1px solid rgba(47, 107, 71, 0.11);
}

.section-head {
  margin-bottom: 1.25rem;
  max-width: 72ch;
}

.section-head .lead {
  margin-top: 0.7rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 0.95rem;
}

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

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.05rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  color: #22291f;
}

.card p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.card ul {
  margin: 0.62rem 0 0;
  padding-left: 1.05rem;
  color: #3d4a3d;
  display: grid;
  gap: 0.36rem;
}

.card ul li {
  font-size: 0.92rem;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -55px;
  top: -70px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(143, 174, 136, 0.28), rgba(143, 174, 136, 0));
}

.service-card a {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  text-decoration: none;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.86rem;
}

.media-split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 1rem;
  align-items: stretch;
}

.media-split.reverse {
  grid-template-columns: 0.98fr 1.02fr;
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.accent-list {
  list-style: none;
  padding: 0;
  margin-top: 0.95rem;
  display: grid;
  gap: 0.55rem;
}

.accent-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #3d4638;
}

.accent-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 0.42rem;
  flex-shrink: 0;
  background: linear-gradient(150deg, var(--accent), var(--forest));
}

.info-band {
  border: 1px solid rgba(47, 107, 71, 0.2);
  background: linear-gradient(120deg, rgba(47, 107, 71, 0.08), rgba(197, 108, 45, 0.08));
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.info-band p {
  color: #354333;
}

.project-list {
  display: grid;
  gap: 0.8rem;
}

.reference-spotlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.reference-spotlight.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.05rem;
}

.spotlight-item,
.spotlight-card {
  border: 1px solid rgba(47, 107, 71, 0.26);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(197, 108, 45, 0.1), rgba(47, 107, 71, 0.08));
  padding: 0.82rem;
}

.spotlight-item strong {
  display: block;
  font-size: 1.04rem;
  color: var(--forest);
}

.spotlight-item span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #415040;
}

.spotlight-card h3 {
  margin-top: 0.35rem;
}

.spotlight-card p {
  margin-top: 0.35rem;
  color: #445046;
}

.project-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.82rem;
  background: var(--surface);
}

.project-item.featured {
  border-color: rgba(47, 107, 71, 0.34);
  background: linear-gradient(135deg, rgba(197, 108, 45, 0.08), rgba(47, 107, 71, 0.07));
}

.project-badge {
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.22rem 0.52rem;
  background: rgba(32, 73, 49, 0.14);
  color: var(--forest);
}

.project-item h3 {
  font-size: 1rem;
}

.project-item p {
  margin-top: 0.35rem;
  color: #4f594f;
  font-size: 0.9rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.team-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0.8rem;
  align-items: stretch;
  padding: 0.78rem;
}

.team-card img {
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  border-radius: 12px;
}

.team-card .role {
  margin-top: 0.2rem;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.83rem;
}

.team-card p {
  margin-top: 0.42rem;
  font-size: 0.9rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric {
  padding: 0.85rem;
  border: 1px solid rgba(47, 107, 71, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 247, 0.85);
}

.metric strong {
  display: block;
  color: var(--forest);
  font-size: 1.2rem;
}

.metric span {
  font-size: 0.8rem;
  color: #4f5b4f;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-grid .media-frame:nth-child(1) {
  grid-column: span 7;
}

.gallery-grid .media-frame:nth-child(2) {
  grid-column: span 5;
}

.gallery-grid .media-frame:nth-child(3) {
  grid-column: span 4;
}

.gallery-grid .media-frame:nth-child(4) {
  grid-column: span 8;
}

.contact-panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(32, 73, 49, 0.24);
  overflow: hidden;
  background: linear-gradient(135deg, var(--forest), var(--forest-deep));
  color: #f4f0e5;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
}

.contact-copy {
  padding: 1.3rem;
}

.contact-copy p {
  margin-top: 0.6rem;
  color: rgba(244, 240, 229, 0.9);
}

.contact-links {
  margin-top: 1rem;
  display: grid;
  gap: 0.36rem;
}

.contact-links a {
  color: #f3efe2;
}

.contact-form {
  padding: 1.3rem;
  background: rgba(9, 22, 15, 0.18);
  display: grid;
  gap: 0.64rem;
}

.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.86rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(13, 36, 22, 0.26);
  color: #f8f4e7;
  padding: 0.62rem 0.7rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(248, 244, 231, 0.7);
}

.contact-form button {
  margin-top: 0.2rem;
}

.site-footer {
  border-top: 1px solid rgba(47, 107, 71, 0.15);
  padding: 1.6rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 1rem;
}

.footer-grid h4 {
  margin-bottom: 0.42rem;
  font-size: 0.87rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}

.footer-grid p,
.footer-grid a {
  color: #5a6257;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  gap: 0.28rem;
}

.tiny-note {
  margin-top: 1.2rem;
  color: #6b7268;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .home-nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.7rem 0 0.9rem;
  }

  .home-brand .brand-logo {
    height: 72px;
    max-width: min(55vw, 340px);
  }

  .home-spacer {
    display: none;
  }

  .hero-grid,
  .media-split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 980px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    overflow: visible;
    padding-bottom: 0.9rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .home-header .site-nav {
    gap: 0.6rem;
    justify-content: flex-start;
  }

  .home-header .nav-link {
    padding: 0.48rem 0.82rem;
  }

  .nav-group {
    width: 100%;
  }

  .sub-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    min-width: 0;
    margin-top: 0.42rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .sub-link {
    background: rgba(47, 107, 71, 0.08);
    border: 1px solid rgba(47, 107, 71, 0.2);
    border-radius: 999px;
    padding: 0.34rem 0.62rem;
  }

  .grid.two,
  .grid.three,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .reference-spotlight,
  .reference-spotlight.large {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid .media-frame:nth-child(1),
  .gallery-grid .media-frame:nth-child(2),
  .gallery-grid .media-frame:nth-child(3),
  .gallery-grid .media-frame:nth-child(4) {
    grid-column: auto;
  }

  .team-card {
    grid-template-columns: 1fr;
  }

  .team-card img {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1180px, calc(100% - 1.5rem));
  }

  .site-header {
    background: rgba(247, 243, 232, 0.95);
  }

  .brand-logo {
    height: 54px;
    max-width: min(78vw, 300px);
  }

  .home-brand .brand-logo {
    height: 56px;
    max-width: min(62vw, 240px);
  }

  .home-nav-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .home-header .home-brand {
    order: 1;
    margin-right: auto;
    justify-self: auto;
  }

  .header-top {
    min-height: auto;
    padding: 0.35rem 0 0.45rem;
    gap: 0.6rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .site-header .menu-toggle {
    display: inline-flex !important;
    margin-left: auto;
    position: relative;
    z-index: 10040;
    min-height: 38px;
    padding: 0.45rem 0.9rem;
  }

  .home-header .home-menu-toggle {
    order: 2;
    margin-left: 0;
  }

  .home-header .home-spacer {
    display: none !important;
  }

  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    gap: 0.46rem;
  }

  .site-header .site-nav {
    display: none !important;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .site-header .site-nav.open {
    display: flex !important;
  }

  .nav-group {
    width: auto;
    flex: 0 0 auto;
  }

  .nav-link,
  .home-header .nav-link {
    font-size: 0.8rem;
    padding: 0.44rem 0.72rem;
  }

  /* Mobile header cleanup: keep only top-level items visible */
  .sub-nav {
    display: none !important;
  }

  .page-hero {
    padding-top: 3.1rem;
  }

  .section {
    padding: 2.8rem 0;
  }

  .hero-stats,
  .metric-grid,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .media-frame img,
  .media-frame video,
  .hero-media img,
  .hero-media video {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .media-note {
    max-width: calc(100% - 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
