/* ============================================================
   GreenVets LLC - Global Security Engineering
   Dark, cinematic, authoritative. Green accent throughout.
   ============================================================ */

:root {
  --green: #00a859;
  --green-bright: #1ed47e;
  --forest: #00663a;
  --bg: #0a0c0b;
  --bg-2: #0e1210;
  --bg-3: #121815;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6f5;
  --muted: #8a938e;
  --muted-2: #aab2ad;

  --container: 1200px;
  --pad: clamp(20px, 5vw, 48px);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.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: absolute;
  left: 16px; top: 8px;
  z-index: 200;
  background: var(--green);
  color: #05140c;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
}
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 0; overflow: visible; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--green-bright);
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}

.section { padding: clamp(32px, 5.5vw, 70px) 0; }

.section__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  text-transform: none;
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 68px);
}
.section__intro {
  color: var(--muted-2);
  font-size: 1.08rem;
  margin-top: 1.1rem;
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  padding: 0.95rem 1.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn span { transition: transform 0.25s var(--ease); }
.btn:hover span { transform: translateX(4px); }

.btn--solid {
  background: var(--green);
  color: #05140c;
}
.btn--solid:hover { background: var(--green-bright); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-bright); }

.btn--full { width: 100%; justify-content: center; }

/* ---------- Topbar ---------- */
.topbar {
  background: #05140c;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted-2);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar__badge {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--green-bright);
}
.topbar__meta { display: inline-flex; align-items: center; gap: 0.7rem; }
.topbar__meta a:hover { color: var(--text); }
.topbar__sep { color: var(--muted); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header.is-scrolled {
  background: rgba(8, 10, 9, 0.94);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__logo { height: 40px; width: auto; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.18rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}
.brand__llc {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--green-bright);
  border: 1px solid var(--line-strong);
  padding: 2px 5px;
  border-radius: 3px;
  transform: translateY(-2px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.84rem;
  font-weight: 500;
}
.nav a { color: var(--muted-2); transition: color 0.2s var(--ease); position: relative; }
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.25s var(--ease);
}
.nav a:not(.nav__cta):hover { color: var(--text); }
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  color: var(--text) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line-strong);
  padding: 0.55rem 1rem;
  border-radius: 4px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__cta:hover { border-color: var(--green); background: rgba(0, 168, 89, 0.08); }
.nav__cta span { transition: transform 0.2s var(--ease); }
.nav__cta:hover span { transform: translateX(3px); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: #070908;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--pad) 1.2rem;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  color: var(--muted-2);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a:hover { color: var(--green-bright); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background: url("assets/hero.webp") center/cover no-repeat;
  transform: scale(1.04);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 8, 0.96) 0%, rgba(7, 9, 8, 0.78) 38%, rgba(7, 9, 8, 0.28) 72%, rgba(7, 9, 8, 0.55) 100%),
    linear-gradient(0deg, rgba(7, 9, 8, 0.85) 0%, rgba(7, 9, 8, 0) 45%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: clamp(2rem, 6vh, 4rem);
  padding-bottom: clamp(2.75rem, 7vh, 5rem);
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.hero__lead {
  color: var(--muted-2);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  max-width: 600px;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Stats ---------- */
.stats {
  background: #05140c;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(34px, 4.6vw, 48px) clamp(20px, 2vw, 32px) clamp(34px, 4.6vw, 48px) 0;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
}
.stat__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  max-width: 22ch;
}

/* ---------- Intro ---------- */
.intro__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.intro__body p + p { margin-top: 1.2rem; }
.intro__body p { color: var(--muted-2); font-size: 1.08rem; }

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cap {
  background: var(--bg);
  padding: clamp(28px, 3vw, 42px);
  position: relative;
  transition: background 0.3s var(--ease);
}
.cap::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 3px;
  background: var(--green);
  transition: width 0.35s var(--ease);
}
.cap:hover { background: var(--bg-3); }
.cap:hover::before { width: 100%; }
.cap__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--green-bright);
  display: block;
  margin-bottom: 1.1rem;
}
.cap h3 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}
.cap p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Feature blocks ---------- */
.feature { padding: clamp(32px, 5.5vw, 70px) 0; }
.feature--alt { background: var(--bg-2); }
.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.feature__inner--reverse .feature__media { order: -1; }
.feature__text p { color: var(--muted-2); margin-top: 1.2rem; }
.feature__text .section__title { margin-top: 0.2rem; }
.feature__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.feature__list li {
  padding-left: 1.4rem;
  border-left: 2px solid var(--forest);
}
.feature__list h4 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.feature__list p { color: var(--muted); margin-top: 0; font-size: 0.95rem; }
.feature__note {
  margin-top: 1.6rem;
  padding: 1.2rem 1.4rem;
  background: rgba(0, 168, 89, 0.06);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--muted-2) !important;
}
.feature__media {
  margin: 0;
  position: relative;
  overflow: hidden;
  /* feather all four edges so the image dissolves into the background */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}
.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  transition: transform 0.6s var(--ease);
}
.feature__media:hover img { transform: scale(1.05); }

/* ---------- Investigations ---------- */
.invest { background: var(--bg-2); }
.invest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.invest__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(26px, 3vw, 38px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.invest__card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.invest__card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}
.invest__card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Why / About ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.why__item { position: relative; padding-top: 1.4rem; }
.why__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 3px;
  background: var(--green);
}
.why__item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.why__item p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Locations ---------- */
.locations {
  background: #05140c;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0;
}
.locations__label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--green-bright);
  margin-bottom: 1.4rem;
}
.locations__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.locations__list li {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--text);
}

/* ---------- Partners ---------- */
.partners { padding: clamp(40px, 5vw, 60px) 0; border-bottom: 1px solid var(--line); }
.partners__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.6rem;
}
.partners__label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-right: 1rem;
}
.partners__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2.4rem;
}
.partners__list li {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  color: var(--muted-2);
  transition: color 0.2s var(--ease);
}
.partners__list li:hover { color: var(--green-bright); }

/* ---------- Accreditations & Memberships ---------- */
.accred {
  background: #05140c;
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0;
}
.accred__label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--green-bright);
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.accred__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
}
.accred__row img {
  height: clamp(72px, 8vw, 96px);
  width: auto;
  transition: transform 0.3s var(--ease);
}
.accred__row li:hover img { transform: scale(1.06); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact__details {
  margin: 2.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact__details dt {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--green-bright);
  margin-bottom: 0.35rem;
}
.contact__details dd {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
}
.contact__details a:hover { color: var(--green-bright); }

.contact__form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(26px, 3vw, 40px);
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--muted-2);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.18);
}
.contact__formnote {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--green-bright);
  min-height: 1.2em;
}
.contact__formnote.is-error { color: #ff8a8a; }

/* ---------- Footer ---------- */
.footer {
  background: #05140c;
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(40px, 5vw, 60px);
}
.footer__logo { height: 44px; width: auto; margin-bottom: 1rem; }
.footer__tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.footer__sdvosb { color: var(--muted); font-size: 0.9rem; max-width: 320px; }
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__social a:hover {
  color: var(--green-bright);
  border-color: var(--green);
  background: rgba(0, 168, 89, 0.08);
  transform: translateY(-2px);
}
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__cols h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--green-bright);
  margin-bottom: 1rem;
}
.footer__cols a,
.footer__addr {
  display: block;
  color: var(--muted-2);
  font-size: 0.94rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s var(--ease);
}
.footer__cols a:hover { color: var(--text); }
.footer__addr { color: var(--muted); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer__temp { color: var(--muted); font-style: italic; }

.footer__dvc {
  color: var(--muted-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.footer__dvc:hover { color: var(--green-bright); }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding-left: var(--pad);
  padding-right: var(--pad);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(10, 12, 11, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(110%);
  transition: transform 0.5s var(--ease);
}
.consent.is-visible { transform: translateY(0); }
.consent__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.15rem 0 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.consent__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted-2);
  max-width: 64ch;
}
.consent__text a {
  color: var(--green-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.consent__btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.78rem;
}
@media (max-width: 620px) {
  .consent__inner { flex-direction: column; align-items: stretch; }
  .consent__actions { justify-content: stretch; }
  .consent__btn { flex: 1; justify-content: center; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Heading scramble (hacker/terminal decode) ---------- */
.reveal-word { display: inline-block; white-space: nowrap; }
.reveal-char { display: inline-block; }
/* Flickering (not-yet-locked) glyphs glow in the terminal-green accent. */
.reveal-char.is-scrambling { color: var(--green-bright); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-char.is-scrambling { color: inherit; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .nav__toggle { display: flex; }

  .intro__inner,
  .feature__inner,
  .contact__inner { grid-template-columns: 1fr; }

  /* On mobile every feature stacks text first, image below its article */
  .feature__inner--reverse .feature__media { order: 2; }
  .feature__inner--reverse .feature__text { order: 1; }
  .feature__media img { aspect-ratio: 16 / 10; }

  .footer__inner { grid-template-columns: 1fr; }
  .invest-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar__meta { display: none; }
  .topbar__inner { justify-content: center; }
  .cap-grid,
  .why__grid,
  .stats__inner { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Legal pages (Privacy / Terms) — DVC-style
   ============================================================ */
.legal {
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
}
.legal__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.legal__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}
.legal__updated {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.1rem;
}
.legal__body { max-width: 76ch; }
.legal__body > * + * { margin-top: 18px; }
.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-top: 32px;
}
.legal__body p, .legal__body li { color: var(--muted-2); }
.legal__body ul, .legal__body ol { padding-left: 22px; margin: 0; list-style: revert; }
.legal__body li { margin-top: 8px; }
.legal__body a {
  color: var(--text);
  border-bottom: 1px solid var(--green);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.legal__body a:hover { color: var(--green-bright); border-bottom-color: var(--green-bright); }
.legal__body strong { color: var(--text); font-weight: 600; }
.legal__body .table-wrap { margin-top: 24px; overflow-x: auto; }
.legal__body table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.legal__body th, .legal__body td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
  color: var(--muted-2);
}
.legal__body thead th {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-3);
}

/* ============================================================
   404 page
   ============================================================ */
.notfound {
  position: relative;
  min-height: calc(100vh - 116px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(0, 168, 89, 0.14), transparent 60%),
    var(--bg);
}
.notfound::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(600px 360px at 50% 30%, #000, transparent 72%);
  mask-image: radial-gradient(600px 360px at 50% 30%, #000, transparent 72%);
  opacity: 0.45;
}
.notfound__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(48px, 10vw, 96px) 0;
}
.notfound__code {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.9;
  font-size: clamp(6rem, 22vw, 12rem);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--green-bright), var(--forest));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-top: 0.5rem;
}
.notfound__lead {
  color: var(--muted-2);
  font-size: 1.08rem;
  margin: 1.1rem auto 2.2rem;
  max-width: 480px;
}
.notfound__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.notfound__links {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}
.notfound__links a { color: var(--muted-2); transition: color 0.2s var(--ease); }
.notfound__links a:hover { color: var(--green-bright); }
