:root {
  --bg: #f4f7f5;
  --ink: #07110c;
  --muted: #4d5c54;
  --green: #19a34a;
  --green-bright: #3ddc78;
  --green-soft: #e4f7eb;
  --line: rgba(7, 17, 12, 0.1);
  --white: #fff;
  --max: 1160px;
  --header: 78px;
  --font: "Figtree", system-ui, sans-serif;
  --display: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(25, 163, 74, 0.12), transparent 55%),
    radial-gradient(700px 420px at -10% 20%, rgba(25, 163, 74, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header — always solid so text never fights the hero image */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(7, 17, 12, 0.12);
}
.brand img { height: 32px; width: auto; }
.nav-panel {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  line-height: 1.4;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 700;
}
.nav-cta:hover { background: #12863b; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin-left: auto;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 12px; width: 20px; height: 2px;
  background: var(--ink);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero — cinematic but readable */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: visible;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: drift 22s ease-in-out infinite alternate;
  filter: brightness(0.48) saturate(1.05);
}
@keyframes drift {
  from { transform: scale(1.06) translate(0,0); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(61, 220, 120, 0.22), transparent 35%),
    linear-gradient(120deg, rgba(4, 10, 7, 0.92) 0%, rgba(4, 10, 7, 0.55) 48%, rgba(4, 10, 7, 0.35) 100%);
}
.hero-ornament {
  position: absolute;
  right: -8%;
  top: 18%;
  width: min(42vw, 480px);
  height: min(42vw, 480px);
  border: 1px solid rgba(61, 220, 120, 0.35);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 8s ease-in-out infinite;
}
.hero-ornament::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(61, 220, 120, 0.2);
  border-radius: 50%;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.05); opacity: 1; }
}
.hero-content {
  padding: calc(var(--header) + 2.5rem) 0 4rem;
  max-width: 720px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b7f5cb;
  margin-bottom: 1.35rem;
}
.hero-kicker i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(61, 220, 120, 0.2);
}
.hero h1 {
  margin: 0 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.9;
  font-style: normal;
  color: var(--green-bright);
}
.hero .lead {
  margin: 0 0 1.8rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #12863b; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.06); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.hero-strip div {
  padding: 1.1rem 1rem;
  background: rgba(7, 17, 12, 0.35);
}
.hero-strip strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.hero-strip span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark p { color: rgba(255,255,255,0.72); }
.section-dark h2 { color: #fff; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: currentColor;
}
.section-dark .eyebrow { color: var(--green-bright); }
h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: visible;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.55rem);
  line-height: 1.85;
  margin: 0 0 1.25rem;
}
h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  line-height: 1.9;
  margin: 0 0 1.15rem;
}
h3 {
  font-size: 1.12rem;
  line-height: 1.5;
  margin: 0 0 0.7rem;
  font-weight: 700;
}
p { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: 1.08rem; max-width: 38rem; line-height: 1.7; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.media-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  background: #dfe8e2;
  box-shadow: 0 30px 80px rgba(7, 17, 12, 0.12);
}
.media-frame img {
  width: 100%; height: 100%; min-height: 420px;
  object-fit: cover;
  transition: transform .8s ease;
}
.media-frame:hover img { transform: scale(1.04); }
.media-badge {
  position: absolute;
  left: 1.1rem; bottom: 1.1rem;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  background: rgba(7, 17, 12, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Bento services */
.bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.bento-card {
  position: relative;
  border-radius: 24px;
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 210px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(7, 17, 12, 0.1);
}
.bento-card.wide { grid-column: 1 / 2; grid-row: 1 / 3; min-height: 100%; background:
  linear-gradient(160deg, #0b1a12, #123522 55%, #1a9a49);
  color: #fff; border: 0; }
.bento-card.wide p { color: rgba(255,255,255,0.8); }
.bento-card.wide h3 { color: #fff; font-size: 1.7rem; }
.bento-num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 1rem;
}
.bento-card.wide .bento-num { color: var(--green-bright); }

/* Feature panels */
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.panel {
  position: relative;
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.panel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: transform .8s ease;
}
.panel:hover img { transform: scale(1.05); }
.panel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(4,10,7,0.92) 100%);
}
.panel-body {
  position: relative; z-index: 1;
  padding: 1.6rem;
}
.panel-body span {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-bright);
}
.panel-body h3 { color: #fff; font-size: 1.55rem; margin-bottom: 0.5rem; }
.panel-body p { color: rgba(255,255,255,0.85); margin: 0; max-width: 32ch; }

/* Solutions rail */
.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.rail a {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .25s ease;
}
.rail a:hover { transform: translateY(-4px); }
.rail img { width: 100%; height: 160px; object-fit: cover; }
.rail div { padding: 1rem 1.1rem 1.2rem; }
.rail strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.rail span { font-size: 0.88rem; color: var(--muted); }

/* Contact */
.contact-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(7, 17, 12, 0.08);
}
.contact-copy { padding: clamp(1.8rem, 4vw, 2.8rem); }
.contact-list { margin-top: 1.4rem; }
.contact-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.2rem;
}
.contact-list strong {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.contact-list a, .contact-list span { color: var(--ink); font-size: 1.02rem; }
.contact-media { min-height: 420px; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

/* Footer */
.site-footer {
  background: #04100a;
  color: rgba(255,255,255,0.78);
  padding: 3.5rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h3 { color: #fff; margin: 0 0 0.9rem; font-size: 1.05rem; }
.footer-brand {
  display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem;
}
.footer-brand img {
  height: 40px; width: auto;
  background: #fff;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
}
.footer-brand p { margin: 0; color: rgba(255,255,255,0.55); font-size: 0.85rem; }
.footer-links { display: grid; gap: 0.5rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  font-size: 0.85rem;
}

/* Page heroes — content starts BELOW fixed header, never underneath it */
.page-hero {
  position: relative;
  min-height: 360px;
  display: block;
  color: #fff;
  overflow: visible;
  padding: calc(var(--header) + 3.25rem) 0 3.5rem;
  background: #07110c;
}
.page-hero .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-hero .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}
.page-hero .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(4,10,7,0.92), rgba(4,10,7,0.55));
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.page-hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  line-height: 1.9;
  letter-spacing: -0.01em;
  color: #fff;
  overflow: visible;
  font-weight: 700;
  text-wrap: balance;
}
.page-hero .lead {
  color: rgba(255,255,255,0.9);
  margin: 0;
  line-height: 1.75;
  max-width: 42rem;
}
.page-hero .eyebrow {
  color: var(--green-bright);
  margin-bottom: 1.1rem;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.75rem;
}
.section-head h2 {
  margin: 0 0 1.25rem;
  line-height: 1.9;
}
.section-head p {
  margin: 0;
  line-height: 1.75;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.45rem;
}
.card-num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 0.7rem;
}
.card ul { margin-top: 0.75rem; }
.card li {
  padding: 0.35rem 0;
  border-top: 1px solid #eef3f0;
  color: var(--muted);
  font-size: 0.92rem;
}

.list-clean { margin-top: 0.8rem; }
.list-clean li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

/* Reveal is visual only — never hide text by default (prevents “missing/overlapping” feel) */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal.js-ready {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.js-ready.is-visible {
    opacity: 1;
    transform: none;
  }
}
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }

@media (max-width: 980px) {
  .hero-strip, .bento, .panels, .rail, .split, .contact-shell, .footer-grid, .card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card.wide { grid-column: auto; grid-row: auto; min-height: 240px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: fixed;
    inset: var(--header) 0 0;
    margin: 0;
    padding: 1.5rem;
    background: rgba(244,247,245,0.98);
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: .25s ease;
  }
  .nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-links a {
    color: var(--ink) !important;
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav-cta { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .hero-strip, .bento, .panels, .rail, .split, .contact-shell, .footer-grid, .card-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
    line-height: 1.7;
  }
}
