  :root {
    --void: #0a0c0e;
    --graphite: #15181b;
    --graphite-2: #1c2023;
    --hairline: #2b2f33;
    --hairline-bright: #3d434a;
    --steel: #6e8ca3;
    --steel-bright: #8fb4cf;
    --ink: #edeff1;
    --muted: #8a9199;
    --spark: #e8eef2;

    /* Bright section palette (everything after the hero) */
    --paper: #f7f5f0;
    --paper-2: #ffffff;
    --paper-line: #dedad0;
    --charcoal: #16181a;
    --charcoal-muted: #5a5f63;
    --accent: #3f8656;
    --accent-dark: #2c6140;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: auto; }

  body {
    background: var(--paper);
    color: var(--charcoal);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  ::selection { background: var(--steel); color: var(--void); }

  .display {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
  }

  .mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; }

  a { color: inherit; }

  /* ---------- NAV ---------- */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
  }
  .nav-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(21, 24, 27, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--hairline-bright);
    border-radius: 999px;
    padding: 0.5rem 1.1rem 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }
  .nav-logo img { height: 4.05rem; width: auto; display: block; }
  .nav-pill {
    position: absolute;
    left: 50%;
    top: 1.1rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.15rem;
    background: rgba(21, 24, 27, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--hairline-bright);
    border-radius: 999px;
    padding: 0.4rem;
  }
  .nav-pill a {
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
  }
  .nav-pill a:hover { color: #fff; background: rgba(255,255,255,0.1); }
  .nav-cta {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #fff;
    background: var(--accent);
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s;
  }
  .nav-cta:hover { background: var(--accent-dark); }

  .mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    background: rgba(21, 24, 27, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--hairline-bright);
    border-radius: 999px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    transition: transform 0.2s, opacity 0.2s;
  }
  .mobile-menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    position: fixed;
    top: 4.6rem;
    left: 1rem;
    right: 1rem;
    z-index: 99;
    background: var(--charcoal);
    border-radius: 18px;
    padding: 0.6rem;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
  }
  .mobile-menu a:active, .mobile-menu a.is-active { background: rgba(255,255,255,0.1); }
  .mobile-menu a.mobile-cta {
    margin-top: 0.4rem;
    background: var(--accent);
    text-align: center;
  }

  @media (max-width: 760px) {
    .nav-pill { display: none; }
    .nav-cta { display: none; }
    .mobile-menu-btn { display: flex; }
  }

  /* ---------- HERO / SCRUB ---------- */
  #hero {
    position: relative;
    height: 380vh;
  }
  .hero-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--void);
  }
  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: filter 0.2s ease-out;
    will-change: filter;
  }
  .hero-scrim {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(10,12,14,0.22) 0%, rgba(10,12,14,0.08) 30%, rgba(10,12,14,0.32) 100%),
      linear-gradient(90deg, rgba(10,12,14,0.4) 0%, rgba(10,12,14,0.05) 45%, rgba(10,12,14,0.05) 55%, rgba(10,12,14,0.4) 100%);
  }
  .hero-grid-overlay {
    display: none;
  }
  .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    color: var(--ink);
    opacity: 0;
    animation: heroIn 1.3s cubic-bezier(0.16, 0.9, 0.2, 1) forwards;
    animation-delay: 0.2s;
  }
  @keyframes heroIn {
    from { opacity: 0; transform: translateY(22px) scale(0.985); }
    to { opacity: 1; transform: none; }
  }
  .hero-ghost {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
  }
  .hero-ghost span {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(7rem, 24vw, 22rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(237, 239, 241, 0.14);
    white-space: nowrap;
  }
  .caption-stack {
    position: relative;
    min-height: 200px;
    width: 100%;
  }
  .caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.16, 0.9, 0.2, 1), transform 0.7s cubic-bezier(0.16, 0.9, 0.2, 1);
    will-change: opacity, transform;
  }
  .caption.active {
    opacity: 1;
    transform: none !important;
  }
  .caption h1, .caption p.display {
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 0.94;
    max-width: 780px;
    margin: 0;
    text-shadow: 0 2px 24px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.5);
  }

  /* Each headline occupies a different part of the screen and enters from a
     different direction, so the change reads as a scene shift, not a fade. */
  .caption[data-index="0"] {
    align-items: center;
    text-align: center;
    transform: translateY(34px) scale(0.94);
  }
  .caption[data-index="0"] h1 { margin: 0 auto; }

  .caption[data-index="1"] {
    align-items: flex-start;
    text-align: left;
    transform: translateX(-70px) translateY(18px);
  }

  .caption[data-index="2"] {
    align-items: flex-end;
    text-align: right;
    transform: translateX(70px) translateY(-18px);
  }
  .caption[data-index="2"] h1, .caption[data-index="2"] p.display { margin-left: auto; }
  .caption.active h1, .caption.active p.display { animation: stamp 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
  @keyframes stamp {
    0% { transform: scale(0.97) translateY(6px); opacity: 0; }
    60% { transform: scale(1.008) translateY(0); opacity: 1; }
    100% { transform: scale(1) translateY(0); }
  }

  /* ---------- SECTIONS ---------- */
  section.block {
    position: relative;
    padding: 7rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
  }
  .section-head {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--paper-line);
    padding-bottom: 1.5rem;
  }
  .section-head .num { font-family: 'Inter', sans-serif; color: var(--accent-dark); font-size: 0.85rem; font-weight: 600; }
  .section-head h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--charcoal);
  }

  /* Capabilities */
  .cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    background: transparent;
    border: none;
  }
  .cap-card {
    background: var(--paper-2);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(22,24,26,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .cap-card:hover { box-shadow: 0 8px 24px rgba(63,134,86,0.14); transform: translateY(-2px); }
  .cap-card .n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem; height: 1.9rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
  }
  .cap-card h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem; text-transform: none; margin: 1rem 0 0.6rem; color: var(--charcoal); letter-spacing: -0.01em; }
  .cap-card p { color: var(--charcoal-muted); font-size: 0.92rem; line-height: 1.55; }

  /* Who we serve */
  .serve-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  @media (max-width: 800px) { .serve-wrap { grid-template-columns: 1fr; } }
  .serve-list { list-style: none; }
  .serve-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--paper-line);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: none;
    color: var(--charcoal);
  }
  .serve-list li span:last-child { color: var(--accent-dark); font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 500; }
  .serve-copy p { color: var(--charcoal-muted); line-height: 1.7; margin-bottom: 1.2rem; }
  .serve-copy strong { color: var(--charcoal); font-weight: 700; }

  /* Gallery */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: transparent;
    border: none;
  }
  @media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
  .gallery-item {
    aspect-ratio: 4/3;
    background: var(--charcoal);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
  }
  .gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }
  .gallery-item:hover img { transform: scale(1.04); }
  .gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22,24,26,0) 45%, rgba(22,24,26,0.75) 100%);
    z-index: 1;
  }
  .gallery-item span {
    position: relative;
    z-index: 2;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    text-transform: none;
  }

  /* Quote form */
  .quote-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
  }
  @media (max-width: 800px) { .quote-wrap { grid-template-columns: 1fr; } }
  .quote-intro h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-transform: none; line-height: 1.05; margin-bottom: 1rem; color: var(--charcoal); }
  .quote-intro p { color: var(--charcoal-muted); line-height: 1.6; }
  .hp-field { position: absolute; left: -9999px; top: -9999px; }
  .field { margin-bottom: 1.4rem; }
  .field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  .field input, .field select, .field textarea {
    width: 100%;
    background: var(--paper-2);
    border: 1.5px solid var(--paper-line);
    border-radius: 10px;
    color: var(--charcoal);
    padding: 0.85rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63,134,86,0.18); }
  .field textarea { resize: vertical; min-height: 100px; }
  .submit-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    cursor: pointer;
    transition: background 0.2s;
  }
  .submit-btn:hover { background: var(--accent-dark); }
  .submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
  .form-status { margin-top: 0.9rem; font-size: 0.9rem; font-weight: 600; }
  .form-status.success { color: var(--accent-dark); }
  .form-status.error { color: #c0392b; }

  /* Footer */
  footer {
    border-top: 1px solid var(--paper-line);
    padding: 3rem 2rem 2.5rem;
    background: var(--paper-2);
  }
  .footer-wrap {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
  }
  .footer-wrap .brand { font-family: 'Poppins', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--charcoal); display: flex; align-items: center; gap: 0.6rem; }
  .footer-wrap .brand img { height: 4.65rem; width: auto; }
  .footer-wrap .addr { color: var(--charcoal-muted); font-size: 0.88rem; line-height: 1.6; }
  .footer-meta { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--charcoal-muted); letter-spacing: 0.08em; text-transform: uppercase; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .caption.active h1, .caption.active p.display { animation: none; }
  }

/* ---------- INTERIOR PAGE HERO (non-video pages) ---------- */
.page-hero {
  background: var(--void) center/cover no-repeat;
  color: var(--ink);
  padding: 9rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10,12,14,0.35) 0%, rgba(10,12,14,0.82) 100%);
}
.page-hero .hero-ghost { z-index: 1; }
.page-hero .hero-ghost span { font-size: clamp(5rem, 16vw, 14rem); }
.page-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
}
.breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.page-hero h1.display {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  max-width: 820px;
}
.page-hero .lede {
  margin-top: 1.2rem;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- CONTENT PAGES ---------- */
.content-block { max-width: 900px; }
.content-block h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--charcoal);
  margin: 2.4rem 0 1rem;
}
.content-block h2:first-child { margin-top: 0; }
.content-block p {
  color: var(--charcoal-muted);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.content-block ul { margin: 0 0 1.4rem 1.2rem; color: var(--charcoal-muted); line-height: 1.8; }
.content-block ul li { margin-bottom: 0.4rem; }
.content-block strong { color: var(--charcoal); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}
.service-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.service-nav a:hover, .service-nav a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.stat-row .stat { border-left: 2px solid var(--accent); padding-left: 1rem; }
.stat-row .stat .num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--charcoal); }
.stat-row .stat .label { font-size: 0.82rem; color: var(--charcoal-muted); }

.cta-band {
  background: var(--charcoal);
  color: #fff;
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
}
.cta-band h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.4rem; }
.cta-band p { color: rgba(255,255,255,0.7); margin-top: 0.4rem; }
.cta-band .submit-btn { display: inline-block; text-decoration: none; }

.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--charcoal-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-dark); }
.nav-logo { text-decoration: none; }

.section-head { justify-content: space-between; }
.section-head-link {
  margin-left: auto;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  white-space: nowrap;
}
.section-head-link:hover { text-decoration: underline; }

.nav-pill a.active { color: #fff; background: rgba(255,255,255,0.14); }
