:root {
  --forest-950: #061b13;
  --forest-900: #082a1b;
  --forest-800: #043d27;
  --forest-700: #075a37;
  --forest-600: #087447;
  --leaf-500: #17905b;
  --cream: #f4f5ef;
  --paper: #fbfcf9;
  --white: #ffffff;
  --ink: #111a15;
  --muted: #5e6c64;
  --line: #dce3dd;
  --amber: #e5b85c;
  --shadow: 0 22px 70px rgba(4, 38, 24, 0.13);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--white);
  color: var(--forest-900);
  padding: 10px 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 78px;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.14);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 252, 249, .96);
  color: var(--ink);
  border-bottom-color: rgba(12, 54, 35, .08);
  box-shadow: 0 12px 36px rgba(4, 38, 24, .08);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}

.brand-mark {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-copy { display: grid; gap: 4px; }
.brand-copy strong { font-size: 18px; letter-spacing: .065em; }
.brand-copy span { font-size: 10px; letter-spacing: .32em; opacity: .8; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav > a:not(.button) {
  position: relative;
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.site-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:not(.button):hover::after,
.site-nav > a:not(.button):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button { display: none; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid rgba(229, 184, 92, .6); outline-offset: 3px; }
.button--header { min-height: 42px; background: var(--white); color: var(--forest-900); padding-inline: 19px; }
.is-scrolled .button--header { background: var(--forest-800); color: var(--white); }
.button--primary { background: var(--white); color: var(--forest-900); }
.button--primary:hover { background: var(--cream); }
.button--ghost { border-color: rgba(255,255,255,.42); color: var(--white); }
.button--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.button--light { background: var(--white); color: var(--forest-900); }
.button--light:hover { background: #e9f2eb; }

.hero {
  position: relative;
  min-height: 790px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest-950);
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background: url("assets/facility-hero.jpg") center / cover no-repeat;
  transform: scale(1.015);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 28, 19, .97) 0%, rgba(4, 32, 21, .91) 31%, rgba(4, 32, 21, .50) 59%, rgba(4, 32, 21, .08) 100%),
    linear-gradient(0deg, rgba(4, 28, 19, .62) 0%, transparent 48%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 118px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 72px;
  align-items: end;
}

.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--forest-700);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .17em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow--light { color: #b7d9c2; }

.hero h1 {
  max-width: 810px;
  margin: 0;
  font-size: clamp(58px, 7.1vw, 102px);
  line-height: .93;
  letter-spacing: -.065em;
  font-weight: 720;
}

.hero h1 em {
  color: #b7d9c2;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-proof {
  align-self: end;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  background: rgba(6, 27, 19, .72);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.proof-label {
  display: block;
  margin-bottom: 18px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proof-grid span {
  border-radius: 10px;
  background: rgba(255,255,255,.09);
  padding: 11px 10px;
  color: var(--white);
  font-size: 13px;
  font-weight: 720;
  text-align: center;
}

.section { padding: 112px 0; }
.section--tint { background: var(--cream); }

.intro-grid,
.boundary-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .72fr);
  gap: 110px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.approach h2,
.platform h2,
.boundary h2,
.login-cta h2 {
  margin: 0;
  color: var(--forest-950);
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.07;
  letter-spacing: -.045em;
}

.intro-copy { padding-top: 37px; }
.intro-copy p { margin: 0; color: var(--muted); font-size: 18px; }
.intro-copy p + p { margin-top: 20px; }

.section-heading {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 440px);
  gap: 80px;
  align-items: end;
}

.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 17px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #cbd6cd;
  border-left: 1px solid #cbd6cd;
}

.service-card {
  min-height: 310px;
  border-right: 1px solid #cbd6cd;
  border-bottom: 1px solid #cbd6cd;
  background: rgba(255,255,255,.4);
  padding: 30px;
  transition: background 160ms ease, transform 160ms ease;
}

.service-card:hover { position: relative; z-index: 1; background: var(--white); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-number { color: var(--forest-600); font-family: Georgia, serif; font-size: 18px; }
.service-card h3 { margin: 66px 0 14px; color: var(--forest-900); font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }

.approach { background: var(--paper); }
.approach-layout { display: grid; grid-template-columns: .82fr 1fr; gap: 120px; align-items: start; }
.approach-heading { position: sticky; top: 125px; }
.approach-heading > p:last-child { max-width: 500px; margin: 28px 0 0; color: var(--muted); font-size: 17px; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 28px 0 30px;
}
.process-list > li > span { color: var(--forest-600); font-family: Georgia, serif; font-size: 19px; }
.process-list h3 { margin: 0 0 7px; color: var(--forest-900); font-size: 24px; letter-spacing: -.025em; }
.process-list p { margin: 0; color: var(--muted); font-size: 16px; }

.platform { padding-top: 36px; }
.platform-card {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 86% 10%, rgba(23, 144, 91, .44), transparent 30%),
    linear-gradient(135deg, var(--forest-950), var(--forest-800));
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 70px;
  align-items: center;
  padding: 72px;
  box-shadow: var(--shadow);
}
.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .09;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.platform-copy, .platform-visual { position: relative; z-index: 1; }
.platform h2 { color: var(--white); }
.platform-copy > p:not(.eyebrow) { max-width: 570px; margin: 26px 0 32px; color: rgba(255,255,255,.72); font-size: 17px; }
.platform-visual { display: grid; justify-items: center; }
.platform-hub {
  width: min(100%, 360px);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 18px;
  background: rgba(255,255,255,.13);
  padding: 18px;
  backdrop-filter: blur(12px);
}
.hub-icon { width: 54px; height: 54px; overflow: hidden; border-radius: 14px; background: var(--white); }
.hub-icon img { width: 100%; height: 100%; object-fit: cover; }
.platform-visual small { display: block; margin-bottom: 2px; color: rgba(255,255,255,.55); font-size: 10px; letter-spacing: .15em; }
.platform-visual strong { display: block; font-size: 18px; }
.platform-line { width: 1px; height: 52px; background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.12)); }
.property-stack { width: min(100%, 360px); display: grid; gap: 10px; }
.property-stack > div { display: flex; align-items: center; gap: 14px; border-radius: 15px; background: var(--white); color: var(--forest-950); padding: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.13); }
.property-stack > div > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: #e4f0e7; color: var(--forest-700); font-weight: 800; }
.property-stack p { margin: 0; }
.property-stack small { color: #79877f; }
.property-stack strong { font-size: 15px; }

.boundary { padding-top: 84px; }
.boundary-copy > p { margin: 8px 0 0; color: var(--muted); font-size: 18px; }
.boundary-note { border-left: 3px solid var(--forest-600); padding-left: 20px; font-size: 15px !important; }

.login-cta { background: var(--forest-800); color: var(--white); padding: 72px 0; }
.login-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.login-cta h2 { max-width: 800px; color: var(--white); font-size: clamp(36px, 4.6vw, 58px); }

.site-footer { background: var(--forest-950); color: rgba(255,255,255,.68); padding: 58px 0 36px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 38px; align-items: center; }
.brand--footer { color: var(--white); }
.footer-inner > p { margin: 0; font-size: 14px; }
.footer-links { display: flex; justify-content: flex-end; gap: 22px; }
.footer-links a { color: rgba(255,255,255,.82); font-size: 14px; font-weight: 650; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; color: rgba(255,255,255,.45); }

@media (max-width: 980px) {
  .site-nav { gap: 18px; }
  .hero { min-height: 760px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-proof { max-width: 520px; }
  .intro-grid, .boundary-grid, .section-heading, .approach-layout { grid-template-columns: 1fr; gap: 38px; }
  .intro-copy { padding-top: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-heading { position: static; }
  .platform-card { grid-template-columns: 1fr; padding: 58px; }
  .platform-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .site-header { height: 70px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 16px; }
  .menu-button {
    width: 44px;
    height: 44px;
    display: grid;
    align-content: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    background: transparent;
    color: inherit;
    padding: 0 11px;
  }
  .is-scrolled .menu-button { border-color: var(--line); }
  .menu-button span:not(.sr-only) { width: 100%; height: 1px; background: currentColor; transition: transform 160ms ease; }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: 70px;
    right: 15px;
    left: 15px;
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    color: var(--ink);
    padding: 15px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: grid; gap: 4px; }
  .site-nav > a:not(.button) { border-radius: 10px; padding: 12px; }
  .site-nav > a:not(.button):hover { background: var(--cream); }
  .site-nav > a:not(.button)::after { display: none; }
  .button--header { margin-top: 6px; background: var(--forest-800); color: var(--white); }
  .hero { min-height: 830px; }
  .hero-image { background-position: 61% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(4, 28, 19, .96) 0%, rgba(4, 28, 19, .83) 68%, rgba(4, 28, 19, .44) 100%), linear-gradient(0deg, rgba(4,28,19,.8), transparent 60%); }
  .hero-inner { padding-top: 112px; padding-bottom: 44px; align-self: stretch; align-content: center; }
  .hero h1 { font-size: clamp(52px, 15vw, 78px); }
  .hero-lede { font-size: 18px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-proof { margin-top: 12px; padding: 18px; }
  .section { padding: 82px 0; }
  .intro h2, .section-heading h2, .approach h2, .platform h2, .boundary h2 { font-size: 41px; }
  .section-heading { margin-bottom: 34px; }
  .service-grid { grid-template-columns: 1fr; border-left: 0; }
  .service-card { min-height: auto; border-left: 1px solid #cbd6cd; padding: 25px; }
  .service-card h3 { margin-top: 38px; }
  .process-list li { grid-template-columns: 42px 1fr; gap: 12px; }
  .platform { padding-top: 10px; }
  .platform-card { min-height: auto; border-radius: 22px; padding: 38px 24px; }
  .login-cta { padding: 62px 0; }
  .login-cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .login-cta .button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-links { grid-column: auto; flex-wrap: wrap; }
  .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  .hero-overlay, .platform-card::before { display: none; }
  .button { border-color: ButtonText; }
}
