
:root {
  --teal: #2EBEB8;
  --charcoal: #3A393F;
  --mid: #918F90;
  --white: #FFFFFF;
  --footer: #242328;
  --max: 1180px;
  --shadow: 0 18px 50px rgba(58, 57, 63, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--charcoal);
  background: var(--white);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.skip-link { position: absolute; top: -100px; left: 18px; z-index: 101; padding: 10px 16px; background: var(--footer); color: var(--white); }
.skip-link:focus { top: 12px; }

.container {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(58,57,63,.08);
  backdrop-filter: blur(12px);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand img { width: 265px; height: auto; }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  letter-spacing: .05em;
}
.nav-links a {
  position: relative;
  padding: 28px 0 25px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 20px;
  height: 2px;
  background: var(--teal);
  transition: right .22s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.menu-button {
  display: none;
  border: 0;
  background: none;
  font-size: 25px;
  color: var(--charcoal);
  cursor: pointer;
}

.hero {
  min-height: 590px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 104px 0 112px;
  background: var(--white);
}
.hero--image {
  color: var(--white);
  background-color: #273138;
  background-image: linear-gradient(90deg, rgba(19, 27, 32, .78), rgba(19, 27, 32, .57)), var(--hero-image);
  background-size: cover;
  background-position: center;
}
.hero--home { --hero-image: url("../images/home.webp"); background-position: center 54%; }
.hero--about { --hero-image: url("../images/about.webp"); background-position: center 47%; }
.hero--services { --hero-image: url("../images/services.webp"); background-position: center 50%; }
.hero--industries { --hero-image: url("../images/industries.webp"); background-position: center 54%; }
.hero--image:not(.hero--home) { min-height: 760px; }
.hero--image .eyebrow { color: #75e0da; }
.hero--image .lead { color: rgba(255, 255, 255, .9); }
.hero--image .btn.ghost { border-color: var(--white); color: var(--white); }
.hero--image .btn.ghost:hover,
.hero--image .btn.ghost:focus-visible { border-color: var(--teal); background: var(--teal); }
.hero--leaf::before {
  content: "";
  position: absolute;
  width: 550px;
  height: 760px;
  right: -95px;
  top: -90px;
  background: url("../brand/blackleaf-mark.svg") center / contain no-repeat;
  opacity: .055;
  transform: rotate(7deg);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 930px;
  text-align: center;
}
.eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}
h1, h2, h3 { margin-top: 0; font-weight: 300; line-height: 1.12; }
h1 { font-size: clamp(52px, 6.2vw, 88px); letter-spacing: -.04em; margin-bottom: 24px; }
h2 { font-size: clamp(36px, 4vw, 58px); letter-spacing: -.03em; margin-bottom: 22px; }
h3 { font-size: 25px; margin-bottom: 13px; }
.lead {
  font-size: 21px;
  color: var(--mid);
  max-width: 760px;
}
.hero h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.hero .lead { max-width: 760px; margin: 0 auto; }
.hero .actions { justify-content: center; margin-top: 38px; }

.value-bar {
  background: var(--charcoal);
  color: var(--white);
}
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { display: flex; align-items: flex-start; gap: 16px; padding: 31px 26px; }
.value-item + .value-item { border-left: 1px solid rgba(255,255,255,.2); }
.value-item p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.8); }
.value-item strong { display: block; margin-bottom: 5px; font-size: 16px; font-weight: 500; color: var(--white); }

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.value-item .icon { width: 30px; height: 30px; color: var(--teal); margin-top: 2px; }
.card-icon, .industry-icon, .service-icon, .contact-icon { color: var(--teal); }
.card-icon { margin-bottom: 18px; }
.service-icon { width: 32px; height: 32px; margin-bottom: 20px; }
.industry-icon { width: 31px; height: 31px; margin-bottom: 19px; }
.contact-icon { width: 32px; height: 32px; margin-bottom: 18px; }

.actions { display: flex; gap: 13px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 23px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: .2s ease;
}
.btn.ghost { background: transparent; border-color: var(--footer); color: var(--footer); }
.btn:hover, .btn:focus-visible { background: var(--footer); border-color: var(--footer); color: var(--white); }

.section { padding: 100px 0; }
.leaf-section { position: relative; overflow: hidden; isolation: isolate; }
.leaf-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(46vw, 590px);
  height: 820px;
  right: -95px;
  top: 5%;
  background: url("../brand/blackleaf-mark.svg") center / contain no-repeat;
  opacity: .07;
  transform: rotate(7deg);
  pointer-events: none;
}
.leaf-section--left::before { right: auto; left: -165px; transform: rotate(-9deg); }
.section.soft { background: var(--white); border-top: 1px solid rgba(58,57,63,.12); border-bottom: 1px solid rgba(58,57,63,.12); }
.section.experience-section { background: color-mix(in srgb, var(--teal) 10%, var(--white)); }
.section.dark { background: var(--charcoal); color: var(--white); }
.section-intro {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  margin-bottom: 55px;
  align-items: end;
}
.section-intro p { margin: 0; color: var(--charcoal); font-size: 18px; }
.dark .section-intro p { color: rgba(255,255,255,.72); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  padding: 34px;
  border: 1px solid rgba(58,57,63,.09);
  min-height: 240px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--footer);
  border-color: var(--footer);
  color: var(--white);
}
.card:hover p, .card:focus-visible p { color: var(--white); }
.card .number {
  color: var(--teal);
  font-size: 12px;
  letter-spacing: .14em;
  margin-bottom: 16px;
}
.card p { color: var(--charcoal); margin-bottom: 0; }
.dark-card {
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--white);
}
.dark-card p { color: rgba(255,255,255,.68); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(58,57,63,.1);
  border-bottom: 1px solid rgba(58,57,63,.1);
}
.stat {
  padding: 28px 25px;
  border-right: 1px solid rgba(58,57,63,.1);
}
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--teal); font-size: 28px; font-weight: 300; line-height: 1; margin-bottom: 9px; }
.stat span { font-size: 13px; letter-spacing: .06em; color: var(--mid); }

.prose {
  max-width: 850px;
  font-size: 18px;
}
.prose p { margin: 0 0 24px; color: var(--charcoal); }
.company-facts { margin: 22px 0 0; border-top: 1px solid rgba(58,57,63,.12); }
.company-facts > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; padding: 17px 0; border-bottom: 1px solid rgba(58,57,63,.12); }
.company-facts dt { color: var(--teal); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.company-facts dd { margin: 0; }
.company-facts a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.quote {
  margin: 50px 0;
  padding: 28px 34px;
  border-left: 3px solid var(--teal);
  font-size: 26px;
  line-height: 1.4;
  color: var(--charcoal);
  background: var(--white);
}

.service-detail {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 55px;
  padding: 44px clamp(24px, 3vw, 42px);
  border-top: 1px solid rgba(58,57,63,.1);
  scroll-margin-top: 104px;
}
.service-detail:last-child { border-bottom: 1px solid rgba(58,57,63,.1); }
.service-detail h2 { font-size: 28px; }
.service-detail p { margin-top: 0; color: var(--charcoal); }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.tag {
  border: 1px solid rgba(58,57,63,.14);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--charcoal);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tag:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.related-link { margin: 38px clamp(24px, 3vw, 42px) 0; font-size: 17px; }
.related-link a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.related-link a:hover { color: var(--footer); }

.industry-card {
  padding: 34px;
  border-top: 3px solid var(--teal);
  border-right: 1px solid rgba(58,57,63,.12);
  border-bottom: 1px solid rgba(58,57,63,.12);
  border-left: 1px solid rgba(58,57,63,.12);
  background: var(--white);
  min-height: 250px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.industry-card h2 { font-size: 25px; margin-bottom: 13px; }
.industry-card:hover { background: var(--footer); color: var(--white); border-color: var(--footer); border-top-color: var(--teal); }
.industry-card p { color: var(--charcoal); }
.industry-card .experience {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(58,57,63,.09);
  color: var(--charcoal);
  font-size: 14px;
}
.industry-card:hover p, .industry-card:hover .experience { color: var(--white); }
.industry-card:hover .experience { border-top-color: rgba(255,255,255,.2); }

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
}
.contact-panel {
  background: var(--white);
  border: 1px solid rgba(58,57,63,.12);
  padding: 40px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.contact-panel:hover { background: var(--footer); color: var(--white); border-color: var(--footer); }
.contact-panel:hover p { color: var(--white); }
.contact-panel p { color: var(--charcoal); }
.contact-email { display: flex; align-items: center; gap: 12px; width: fit-content; margin: 20px 0 24px; font-weight: 500; overflow-wrap: anywhere; }
.contact-email .icon { width: 22px; height: 22px; color: var(--teal); }
.contact-email:hover, .contact-email:focus-visible { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.contact-panel:hover .contact-email { color: var(--white); }
.contact-panel:hover .contact-email:hover, .contact-panel:hover .contact-email:focus-visible { color: #75e0da; }
form.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.form-field-full { grid-column: 1 / -1; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.contact-form label { display: block; margin-bottom: 7px; }
.form-status { margin: 0; font-size: 14px; }
label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--mid); }
input, textarea {
  width: 100%;
  border: 1px solid rgba(58,57,63,.28);
  background: var(--white);
  padding: 14px 15px;
  font: inherit;
  color: var(--charcoal);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--teal); }
textarea { min-height: 145px; resize: vertical; }
.note { font-size: 12px; color: var(--mid); margin-top: 12px; }

.site-footer {
  background: var(--footer);
  color: rgba(255,255,255,.74);
  padding: 54px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 45px;
  align-items: end;
}
.footer-brand img { width: 230px; height: auto; filter: brightness(1.05); }
.footer-brand p { max-width: 540px; font-size: 14px; margin-top: 22px; }
.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 18px 22px 28px;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(58,57,63,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 8px 0; }
  .nav-links a::after { bottom: 0; }
  .menu-button { display: block; }
  .hero { min-height: auto; padding: 96px 0 104px; }
  .hero--image:not(.hero--home) { min-height: 680px; }
  .value-grid, .section-intro, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .value-grid { gap: 0; }
  .value-item { padding: 24px 4px; }
  .value-item + .value-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .company-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand img { width: 218px; }
  .hero { padding: 76px 0 84px; }
  .hero--image:not(.hero--home) { min-height: 580px; }
  .hero--leaf::before { right: -230px; opacity: .025; }
  .hero--image { background-image: linear-gradient(rgba(19, 27, 32, .72), rgba(19, 27, 32, .72)), var(--hero-image); }
  .leaf-section::before { width: 480px; right: -220px; opacity: .055; }
  .leaf-section--left::before { right: auto; left: -250px; }
  .hero h1 { font-size: clamp(43px, 11vw, 58px); }
  .hero .lead { font-size: 18px; }
  .hero .actions { gap: 12px; margin-top: 32px; }
  .hero .btn { width: 100%; }
  .section { padding: 75px 0; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(58,57,63,.1); }
  .stat:last-child { border-bottom: 0; }
  .card, .industry-card, .contact-panel { padding: 26px; }
  .service-detail { padding: 34px 20px; }
  .related-link { margin-left: 20px; margin-right: 20px; }
  form.contact-form { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
