:root {
  --ink: #0d1b21;
  --muted: #5d6e73;
  --line: #dfe9e8;
  --paper: #123f31;
  --forest: #021b15;
  --leaf: #0f4a34;
  --leaf-line: rgba(190, 237, 171, 0.38);
  --white: #ffffff;
  --cyan: #1edbd1;
  --teal: #079b98;
  --blue: #315ac8;
  --green: #3e9b54;
  --deep: #08383a;
  --shadow: 0 24px 70px rgba(8, 56, 58, 0.14);
  --sun: #c8a24a;
  --sage: #7f9661;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(200, 162, 74, 0.2), transparent 26rem),
    radial-gradient(circle at 82% 18%, rgba(127, 150, 97, 0.18), transparent 24rem),
    linear-gradient(135deg, var(--forest), #04291f 46%, #031f21);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    url("data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23aed99f' stroke-opacity='.24' stroke-width='2.2'%3E%3Cpath d='M112 188C73 151 65 103 106 58c41 45 33 93-6 130'/%3E%3Cpath d='M106 58c-3 45-3 87-6 130'/%3E%3Cpath d='M102 108c-19-9-34-22-45-39'/%3E%3Cpath d='M103 133c21-9 39-23 54-43'/%3E%3Cpath d='M100 157c-17-6-33-16-48-32'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(2, 27, 21, 0.96), rgba(4, 41, 31, 0.9));
  background-position:
    0 0,
    center;
  background-size:
    220px 220px,
    cover;
  opacity: 0.72;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(223, 233, 232, 0.8);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 8px;
  background: linear-gradient(135deg, #10f0c7, #10a8d8 52%, #394ac8);
  box-shadow: 0 12px 30px rgba(16, 168, 216, 0.25);
  overflow: hidden;
}

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

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.primary-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a {
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--deep);
  background: rgba(30, 219, 209, 0.12);
}

.call-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.call-link,
.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 16px 34px rgba(49, 90, 200, 0.22);
}

.button.secondary {
  color: var(--deep);
  background: var(--white);
  border: 1px solid var(--line);
}

.button.large {
  min-height: 56px;
  padding-inline: 26px;
  font-size: 1.05rem;
}

.button:hover,
.call-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(49, 90, 200, 0.28);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  min-height: calc(100vh - 77px);
  padding: clamp(46px, 7vw, 88px) clamp(18px, 6vw, 88px) 44px;
  background:
    linear-gradient(90deg, rgba(18, 63, 49, 0.94), rgba(18, 63, 49, 0.76)),
    radial-gradient(circle at 76% 18%, rgba(200, 162, 74, 0.22), transparent 22rem),
    radial-gradient(circle at 86% 62%, rgba(127, 150, 97, 0.2), transparent 24rem);
}

.hero-copy h1 {
  color: var(--white);
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.hero::before {
  position: absolute;
  inset: auto -6vw -18vw auto;
  width: min(54vw, 680px);
  height: min(54vw, 680px);
  border: 2px solid rgba(190, 237, 171, 0.34);
  border-radius: 58% 42% 58% 42% / 44% 56% 44% 56%;
  content: "";
  transform: rotate(-28deg);
}

.hero::after {
  position: absolute;
  right: 7vw;
  bottom: -5vw;
  width: min(32vw, 390px);
  height: min(32vw, 390px);
  border-left: 2px solid rgba(190, 237, 171, 0.34);
  content: "";
  transform: rotate(38deg);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1,
.page-hero h1,
.contact-hero h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p,
.split-copy p,
.contact-hero p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.hero-panel {
  position: relative;
}

.hero-panel img,
.image-band img {
  width: 100%;
  height: clamp(360px, 58vw, 620px);
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  position: absolute;
  inset: -18px -18px auto auto;
  width: 42%;
  height: 42%;
  border: 2px solid rgba(30, 219, 209, 0.6);
  border-radius: 8px;
  content: "";
  z-index: -1;
}

.service-ticker {
  position: absolute;
  right: 22px;
  bottom: 22px;
  max-width: min(340px, calc(100% - 44px));
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(8, 56, 58, 0.9);
  backdrop-filter: blur(12px);
}

.service-ticker span {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section,
.gallery-grid,
.contact-hero {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 6vw, 88px);
  background:
    linear-gradient(rgba(18, 63, 49, 0.92), rgba(18, 63, 49, 0.92)),
    url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23beedab' stroke-opacity='.36' stroke-width='2.4'%3E%3Cpath d='M90 150C58 119 54 80 87 42c33 38 29 77-3 108'/%3E%3Cpath d='M87 42c-2 36-2 72-3 108'/%3E%3Cpath d='M84 86c-15-7-27-17-36-31'/%3E%3Cpath d='M85 108c17-7 31-19 42-35'/%3E%3C/g%3E%3C/svg%3E");
  background-size:
    auto,
    180px 180px;
}

.section-heading h2,
.section > h1,
.contact-hero h1 {
  color: var(--white);
}

.section-heading p,
.contact-hero p {
  color: rgba(255, 255, 255, 0.76);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2,
.split-copy h2,
.cta-strip h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

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

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

.service-card,
.values article,
.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(8, 56, 58, 0.07);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 219, 209, 0.7);
  box-shadow: 0 24px 55px rgba(8, 56, 58, 0.12);
}

.service-card span {
  color: var(--blue);
  font-weight: 900;
}

.service-card h2,
.service-card h3,
.values h2 {
  margin: 12px 0 8px;
}

.service-card p,
.values p,
.contact-card p,
.cta-strip p {
  color: var(--muted);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  padding: clamp(58px, 8vw, 110px) clamp(18px, 6vw, 88px);
  background:
    linear-gradient(120deg, rgba(18, 63, 49, 0.94), rgba(8, 56, 58, 0.86)),
    var(--forest);
}

.split-section.reverse {
  background:
    linear-gradient(rgba(18, 63, 49, 0.92), rgba(18, 63, 49, 0.92)),
    url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23beedab' stroke-opacity='.28' stroke-width='2.3'%3E%3Cpath d='M90 150C58 119 54 80 87 42c33 38 29 77-3 108'/%3E%3Cpath d='M87 42c-2 36-2 72-3 108'/%3E%3Cpath d='M84 86c-15-7-27-17-36-31'/%3E%3Cpath d='M85 108c17-7 31-19 42-35'/%3E%3C/g%3E%3C/svg%3E");
  background-size:
    auto,
    180px 180px;
}

.split-copy h2 {
  color: var(--white);
}

.split-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 138px) clamp(18px, 6vw, 88px) clamp(42px, 7vw, 80px);
  background:
    linear-gradient(110deg, rgba(6, 47, 37, 0.88), rgba(8, 56, 58, 0.58)),
    url("https://images.unsplash.com/photo-1558904541-efa843a96f01?auto=format&fit=crop&w=1800&q=85")
      center/cover;
}

.page-hero::after {
  position: absolute;
  right: clamp(18px, 7vw, 100px);
  bottom: -88px;
  width: min(34vw, 360px);
  height: min(34vw, 360px);
  border: 2px solid rgba(174, 217, 159, 0.28);
  border-radius: 58% 42% 58% 42% / 44% 56% 44% 56%;
  content: "";
  transform: rotate(-32deg);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero .eyebrow {
  color: var(--cyan);
}

.cta-strip {
  margin: 0 clamp(18px, 6vw, 88px) clamp(60px, 8vw, 110px);
  padding: clamp(28px, 5vw, 52px);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 56, 58, 0.93), rgba(49, 90, 200, 0.82)),
    url("https://images.unsplash.com/photo-1598902108854-10e335adac99?auto=format&fit=crop&w=1400&q=85")
      center/cover;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.8);
}

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

.gallery-grid figure {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--deep);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.06);
}

.gallery-grid figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(8, 56, 58, 0.82);
  font-weight: 800;
}

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

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: start;
  gap: clamp(28px, 6vw, 72px);
  min-height: calc(100vh - 77px);
}

.note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 6vw, 88px);
  color: rgba(255, 255, 255, 0.86);
  background: var(--deep);
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .nav-toggle {
    justify-self: end;
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 2px 0;
    background: var(--deep);
  }

  .primary-nav {
    grid-column: 1 / -1;
    display: none;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .call-link {
    grid-column: 1 / -1;
  }

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

  .hero {
    min-height: auto;
  }

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

@media (max-width: 640px) {
  .brand strong {
    font-size: 0.95rem;
  }

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

  .hero h1,
  .page-hero h1,
  .contact-hero h1 {
    font-size: clamp(2.2rem, 13vw, 3.5rem);
  }

  .service-grid,
  .service-grid.compact,
  .gallery-grid,
  .values {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button,
  .call-link {
    width: 100%;
  }

  .service-ticker {
    position: static;
    margin-top: 12px;
    max-width: none;
  }
}
