:root {
  --ink: #f4f8f6;
  --muted: #a8bbb4;
  --bg: #07110f;
  --panel: #0d1b18;
  --panel-soft: #122520;
  --green: #43e0a2;
  --green-deep: #1d9f73;
  --line: #ffffff1f;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: "DM Sans", sans-serif; line-height: 1.55; }
body.modal-open { overflow: hidden; }
a { color: inherit; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header); padding: 0 max(24px, calc((100vw - 1200px) / 2));
  display: flex; align-items: center; justify-content: space-between; background: transparent; border-bottom: 1px solid transparent; backdrop-filter: blur(0); transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.site-header.is-scrolled { background: #06100ee8; border-bottom-color: var(--line); backdrop-filter: blur(14px); }
.brand { position: relative; font: 800 1.35rem/1 "Manrope", sans-serif; text-decoration: none; letter-spacing: -.06em; transition: transform .3s ease, filter .3s ease; transform: perspective(500px) rotateX(0deg); }
.brand span { color: var(--green); }
.brand::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--green), #64d8ff); transition: width .3s ease; }
.brand:hover, .brand:focus-visible { transform: perspective(500px) rotateX(5deg) scale(1.045); filter: drop-shadow(0 0 12px #43e0a255); outline: none; }
.brand:hover::after, .brand:focus-visible::after { width: 100%; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { font-weight: 600; text-decoration: none; font-size: .94rem; }
nav a:hover { color: var(--green); }
.nav-contact { border: 1px solid #61dbae88; border-radius: 999px; padding: 9px 16px; }
.menu-toggle { display: none; color: white; background: none; border: 0; font: 600 .9rem "DM Sans"; }

main > section { scroll-margin-top: var(--header); }
.hero, .section, .contact { position: relative; overflow: hidden; }
.section-blend { position: relative; z-index: 5; height: 120px; margin: -60px 0; pointer-events: none; background: linear-gradient(to bottom, transparent 0%, #07110fbd 28%, #07110ff2 44%, #07110ff2 56%, #07110fbd 72%, transparent 100%); }
.hero { min-height: 100svh; padding: calc(var(--header) + 50px) max(28px, calc((100vw - 1080px) / 2)) 50px; display: flex; align-items: center; justify-content: space-between; gap: 70px; background: linear-gradient(90deg, #03100fe8 0%, #061210bd 48%, #06121065), url("g1.webp") center/cover no-repeat; }
.hero-copy { position: relative; z-index: 1; max-width: 680px; }
.eyebrow { margin: 0 0 13px; color: var(--green); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero h1, .section h2, .contact h2 { margin: 0; font: 800 clamp(2.55rem, 5vw, 4.9rem)/1.03 "Manrope", sans-serif; letter-spacing: -.065em; }
.lead { max-width: 620px; color: #d5e2dd; font-size: 1.12rem; margin: 24px 0 31px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; border-radius: 999px; padding: 13px 21px; text-decoration: none; font-weight: 700; font-size: .94rem; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #062019; background: linear-gradient(110deg, var(--green), #7cf0c1); box-shadow: 0 10px 28px #38d69a26; }
.button-quiet { color: white; border: 1px solid #9bbdb18c; background: #07130f88; }
.hero-panel { position: relative; z-index: 1; align-self: center; width: 330px; padding: 28px; background: #061411d4; border: 1px solid #ffffff2b; border-radius: 18px; backdrop-filter: blur(10px); }
.hero-panel p { margin: 0 0 5px; color: #9fbab0; font-size: .82rem; }
.hero-panel strong { font-size: .98rem; }
.hero-panel hr { border: 0; border-top: 1px solid #ffffff30; margin: 19px 0; }
.hero .eyebrow, .hero h1, .hero .lead, .hero-actions, .hero-panel { opacity: 0; transform: translateY(26px); }
.site-ready .hero .eyebrow, .site-ready .hero h1, .site-ready .hero .lead, .site-ready .hero-actions, .site-ready .hero-panel { animation: intro-enter .8s cubic-bezier(.22, .8, .25, 1) forwards; }
.site-ready .hero .eyebrow { animation-delay: .08s; }
.site-ready .hero h1 { animation-delay: .18s; }
.site-ready .hero .lead { animation-delay: .3s; }
.site-ready .hero-actions { animation-delay: .42s; }
.site-ready .hero-panel { animation-delay: .28s; }
@keyframes intro-enter { to { opacity: 1; transform: translateY(0); } }

.section, .contact { min-height: 100svh; padding: calc(var(--header) + 54px) max(28px, calc((100vw - 1024px) / 2)) 62px; }
.section { display: flex; flex-direction: column; justify-content: center; }
.section h2, .contact h2 { font-size: clamp(2.25rem, 3.7vw, 3.5rem); }
.scenic::before { content: ""; position: absolute; inset: 0; z-index: 0; background-position: center; background-size: cover; filter: saturate(.82) brightness(.86) contrast(1.04); opacity: .96; transform: scale(1.025); }
.scenic::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, #07110e0d 0%, #07110f92 52%, #07110fb8 100%), linear-gradient(0deg, #07110fcc 0%, transparent 20%, transparent 78%, #07110fcc 100%); }
.scenic > * { position: relative; z-index: 1; }
.scenic-about::before { background-image: url("g2.webp"); }
.scenic-services::before { background-image: url("g3.webp"); }
.scenic-services::after { background: linear-gradient(90deg, #07110e52 0%, #07110fb5 58%, #07110fd2 100%), linear-gradient(0deg, #07110fd6 0%, transparent 20%, transparent 78%, #07110fd6 100%); }
.scenic-reach::before { background-image: url("g4.webp"); }
.scenic-reach::after { background: linear-gradient(90deg, #07110f91, #07110fc2), linear-gradient(0deg, #07110fd1 0%, transparent 19%, transparent 80%, #07110fd1 100%); }

.intro { display: grid; grid-template-columns: .9fr 1fr; gap: 100px; align-content: center; }
.intro > p { margin: 35px 0 0; font-size: 1.2rem; color: #cfddd7; }
.section-heading { max-width: 760px; }
.section-heading > p:last-child { color: #bfd0c9; font-size: 1.08rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.service-card { min-height: 205px; padding: 23px; color: var(--ink); text-align: left; font: inherit; background: #0b1916e6; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s, background .25s; }
.service-card:hover, .service-card:focus-visible { transform: translateY(-5px); border-color: #43e0a27d; background: #10241f; box-shadow: 0 0 34px #43e0a21f; outline: none; }
.service-card span { color: var(--green); font-weight: 700; font-size: .8rem; }
.service-card h3 { margin: 25px 0 7px; font: 700 1.15rem/1.18 "Manrope"; letter-spacing: -.04em; }
.service-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.service-card b { display: block; margin-top: 16px; color: #72e4b7; font-size: .8rem; }
.service-note { margin: 20px 0 0; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.22, .8, .25, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.intro > .reveal:nth-child(1) { transform: translateX(-32px); }
.intro > .reveal:nth-child(2) { transform: translateX(32px); }
.intro > .reveal.visible:nth-child(1), .intro > .reveal.visible:nth-child(2) { transform: translateX(0); }

.reach .section-heading { margin-bottom: 26px; }
#map { height: min(47vh, 470px); min-height: 330px; border: 1px solid #5d8375; border-radius: 18px; overflow: hidden; z-index: 1; box-shadow: 0 18px 55px #0008; }
.map-note { color: var(--muted); font-size: .87rem; margin: 11px 0 0; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #fff; color: #173129; }

.contact { display: grid; grid-template-columns: .75fr 1.25fr; align-content: center; gap: 60px; background: radial-gradient(circle at 85% 20%, #194b3c 0, transparent 30%), #07110f; }
.contact > div:first-child { max-width: 560px; }
.contact > div:first-child > p:last-child { color: #c7d7d1; font-size: 1.08rem; }
.contact-card { padding: 30px; border-radius: 16px; background: #ffffff0c; border: 1px solid #ffffff26; }
.contact-card > h3 { margin: 0 0 26px; color: var(--green); text-align: center; font: 800 1.55rem/1.2 "Manrope"; letter-spacing: -.04em; }
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.person-card { padding: 20px 16px; text-align: center; background: #07130fb8; border: 1px solid #ffffff14; border-radius: 12px; }
.person-card h4 { min-height: 2.5em; margin: 0 0 17px; color: #63e7b3; font: 700 1rem/1.25 "Manrope"; }
.contact-label { margin: 0 0 4px; color: #9fbbb1; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.contact-value { margin: 0 0 18px; font-size: .94rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-value a { color: #8eebc5; }
.office-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; text-align: center; color: #d0ddd8; }
.office-details p { margin: 0; }
.office-details strong { color: var(--green); }
.contact-button { display: table; margin: 24px auto 0; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: #020806dc; backdrop-filter: blur(7px); }
.modal-card { position: relative; width: min(640px, 100%); max-height: 88vh; overflow: auto; padding: 42px; background: #0d1b18; border: 1px solid #43e0a25c; border-radius: 20px; box-shadow: 0 30px 100px #000c; }
.modal-card h2 { margin: 0 0 18px; font: 800 clamp(1.8rem, 4vw, 2.6rem)/1.1 "Manrope"; letter-spacing: -.05em; }
.modal-card p { color: #c5d4ce; }
.modal-card ul { margin: 18px 0 28px; padding-left: 20px; color: #c5d4ce; }
.modal-card li { margin: 7px 0; }
.modal-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; color: white; background: #ffffff0d; border: 1px solid var(--line); border-radius: 50%; font-size: 1.65rem; cursor: pointer; }

footer { padding: 25px 28px; text-align: center; color: var(--muted); background: #050c0a; font-size: .85rem; }

@media (max-width: 780px) {
  :root { --header: 66px; }
  .site-header { padding: 0 20px; }
  .menu-toggle { display: block; }
  .site-header nav { display: none; position: absolute; top: 58px; right: 20px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; min-width: 210px; background: #0b1916; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px #0008; }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 10px; }
  .nav-contact { border: 0; }
  .hero { min-height: 100svh; padding: calc(var(--header) + 48px) 24px 30px; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 32px; background-position: 42% center; }
  .section-blend { height: 72px; margin: -36px 0; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-panel { width: 100%; }
  .section, .contact { min-height: auto; padding: 82px 24px; }
  .intro, .contact { grid-template-columns: 1fr; gap: 32px; }
  .intro > p { margin: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card h3 { margin-top: 20px; }
  #map { height: 430px; min-height: 0; }
  .people-grid, .office-details { grid-template-columns: 1fr; }
  .modal-card { padding: 36px 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero .eyebrow, .hero h1, .hero .lead, .hero-actions, .hero-panel { opacity: 1; transform: none; }
}
