/* envitel.ai — 2026 rebuild, design iteration 3.
   House system: paper ground, navy ink, gold accents, STIX Two Text display.
   Alternating section grounds, scroll reveals (JS-gated, reduced-motion safe),
   differentiated CTAs: gold = get the overview (lead), navy = talk to us,
   ghost = secondary navigation. Light-only by brand decision. */

:root {
  --paper: #fffdf8;
  --cream: #f7f1e3;
  --cream-soft: #fbf6ea;
  --ink: #3d4854;
  --navy: #0e1720;
  --navy-2: #131f2b;
  --muted: #6a7280;
  --faint: #9ca3af;
  --gold: #9d8444;
  --gold-soft: #bfa35b;
  --gold-pale: #e6dfcc;
  --hair: #e3e6e9;
  --on-navy: #c9cdd3;
  --on-navy-head: #f2ede0;
  --on-navy-muted: #8d99a6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Avenir", "Segoe UI", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "STIX Two Text", Georgia, serif; color: var(--navy); font-weight: 600; text-wrap: balance; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-soft); outline-offset: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------- scroll reveals (only when JS present; reduced-motion shows all) ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 253, 248, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-bottom-color: var(--gold-pale); box-shadow: 0 1px 14px rgba(14, 23, 32, 0.06); }
.nav-inner { display: flex; align-items: center; gap: 28px; padding-top: 15px; padding-bottom: 15px; }
.nav-logo img { height: 26px; display: block; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink); font-size: 14.5px; position: relative; }
.nav-links a:not(.btn):hover { color: var(--navy); text-decoration: none; }
.nav-links a.is-here { color: var(--navy); font-weight: 600; }
.nav-links a.is-here::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold);
}
.nav-burger {
  display: none; margin-left: auto; background: none; border: 1px solid var(--hair); border-radius: 3px;
  width: 42px; height: 36px; cursor: pointer; color: var(--navy); font-size: 18px; line-height: 1;
}

/* ---------- buttons: the CTA colour system ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; border-radius: 3px;
  font: 600 14.5px/1 "Avenir Next", "Avenir", "Segoe UI", system-ui, sans-serif;
  padding: 13px 22px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: #fffdf8; box-shadow: 0 1px 0 rgba(14,23,32,.08); }
.btn--gold:hover { background: #8a7339; box-shadow: 0 4px 14px rgba(157,132,68,.35); }
.btn--navy { background: var(--navy); color: var(--on-navy-head); }
.btn--navy:hover { background: #1c2937; box-shadow: 0 4px 14px rgba(14,23,32,.30); }
.btn--gold-outline, .nav-links a.btn--gold-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn--gold-outline:hover, .nav-links a.btn--gold-outline:hover { background: var(--gold); color: #fffdf8; box-shadow: 0 4px 14px rgba(157,132,68,.3); }
.btn--ghost { background: transparent; color: var(--navy); border: 1px solid var(--hair); }
.btn--ghost:hover { background: var(--cream-soft); }
.btn--ghost-light { background: transparent; color: var(--on-navy-head); border: 1px solid #33404d; }
.btn--ghost-light:hover { background: var(--navy-2); }
.arrow-link { font-weight: 600; }
.arrow-link::after { content: " →"; }

/* ---------- section machinery ---------- */
.band { padding: 92px 0; }
.band--cream { background: var(--cream-soft); border-top: 1px solid var(--gold-pale); border-bottom: 1px solid var(--gold-pale); }
.band--navy { background: var(--navy); color: var(--on-navy); }
.band--navy h2, .band--navy h3 { color: var(--on-navy-head); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.band h2 { font-size: clamp(27px, 3.4vw, 38px); margin-top: 8px; }
.lead { margin-top: 16px; max-width: 66ch; font-size: 17.5px; }
.lead + .lead { margin-top: 12px; }
.prose { max-width: 66ch; }
.prose p { margin-top: 12px; }

/* ---------- hero (split: blurred-video text panel left, animation right) ---------- */
.hero { position: relative; overflow: hidden; padding: 0; background: var(--navy); }
.hero-split { display: grid; grid-template-columns: 5fr 6fr; min-height: min(84vh, 800px);
  position: relative; overflow: hidden; }
.hero-split .blur-bg { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: blur(20px) brightness(0.38); z-index: 0; }
.hero-left { position: relative; display: flex; align-items: center; }
.hero-left-content { position: relative; z-index: 1; padding: 76px 56px; max-width: 72ch; }
.hero-right { position: relative; z-index: 1; }
.hero-right video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: right center; }
.hero-right img.fallback { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; }
html:not(.motion-ok) .hero-right video { display: none; }
html.js.motion-ok .hero-right img.fallback { display: none; }
.hero h1 { color: var(--on-navy-head); }
.hero .hero-sub { color: var(--on-navy); }
.hero-grid { display: grid; grid-template-columns: 11fr 12fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; }
.hero h1 .accent { color: var(--gold-soft); }
.hero-sub { margin-top: 20px; font-size: 17px; max-width: 68ch; }
.hero-ctas { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-figure { margin: 0; }
.hero-figure img, .hero-figure video { width: 100%; height: auto; display: block; border-radius: 3px; }
.hero-media { position: relative; overflow: hidden; border-radius: 3px; box-shadow: 0 18px 50px rgba(14,23,32,.14); }
html.js.motion-ok .hero-media .fallback { display: none; }
html:not(.motion-ok) .hero-media video { display: none; }
.figcap { font-size: 12.5px; color: var(--muted); margin-top: 9px; line-height: 1.5; }
.figcap b { color: var(--navy); }
.band--navy .figcap { color: var(--on-navy-muted); }
.band--navy .figcap b { color: var(--on-navy-head); }

/* ---------- KPI band ---------- */
.kpis { background: var(--cream-soft); border-top: 1px solid var(--gold-pale); }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 26px; padding-bottom: 26px; }
.kpi b { font-family: "STIX Two Text", Georgia, serif; font-size: 30px; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 44px; }
.stat { border-top: 2px solid var(--navy); padding-top: 15px; transition: border-color .2s ease; }
.stat:hover { border-top-color: var(--gold); }
.stat b { font-family: "STIX Two Text", Georgia, serif; font-size: 32px; color: var(--navy); font-weight: 600; }
.stat p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.sources { font-size: 12px; color: var(--faint); margin-top: 20px; }

/* ---------- full-bleed photo band ---------- */
.photo-band { position: relative; height: clamp(400px, 56vh, 640px); display: flex; align-items: flex-end; overflow: hidden; }
.photo-band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.photo-band::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,23,32,.82) 0%, rgba(14,23,32,.25) 55%, rgba(14,23,32,.15) 100%); }
.photo-band .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 44px; }
.photo-band p.line { font-family: "STIX Two Text", Georgia, serif; font-weight: 600; font-size: clamp(22px, 3vw, 32px); color: #fff; max-width: 26em; text-wrap: balance; }
.photo-band .credit { font-size: 11.5px; color: rgba(255,255,255,.65); margin-top: 14px; }

/* ---------- why trio (navy band) ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.trio h3 { font-size: 20px; color: var(--gold-soft); }
.trio p { font-size: 15.5px; margin-top: 10px; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.pillar { background: #fff; border: 1px solid var(--hair); border-top: 3px solid var(--gold-soft); border-radius: 3px;
  padding: 22px 22px 24px; transition: box-shadow .2s ease, transform .2s ease; }
.pillar:hover { box-shadow: 0 10px 28px rgba(14,23,32,.08); transform: translateY(-2px); }
.pillar h3 { font-size: 18px; }
.pillar p { font-size: 15px; margin-top: 9px; }

.figure { margin: 52px 0 0; }
.figure img { width: 100%; height: auto; display: block; border: 1px solid var(--hair); border-radius: 3px; }

/* ---------- spec table ---------- */
.spec { margin-top: 44px; border: 1px solid var(--gold-pale); border-radius: 3px; background: #fff; overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 210px 1fr; gap: 18px; padding: 15px 22px; }
.spec-row + .spec-row { border-top: 1px solid var(--cream); }
.spec-row:hover { background: var(--paper); }
.spec-row dt { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; color: var(--gold); text-transform: uppercase; padding-top: 3px; }
.spec-row dd { font-size: 15.5px; }
.avail-callout { display: flex; gap: 20px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; background: #fff; border: 1px solid var(--gold-pale); border-left: 3px solid var(--gold);
  border-radius: 3px; padding: 20px 24px; margin-top: 36px; }
.avail-callout p { font-weight: 600; color: var(--navy); font-size: 17px; max-width: 56ch; }
.avail-callout .btn { flex-shrink: 0; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--on-navy-muted); }
.consent input { margin-top: 3px; accent-color: var(--gold-soft); }
.consent a { color: var(--gold-soft); }
.legal-body { max-width: 74ch; }
.legal-body h2 { font-size: 22px; margin-top: 44px; }
.legal-body h3 { font-size: 16px; margin-top: 22px; }
.legal-body p, .legal-body li { font-size: 14.5px; margin-top: 10px; color: var(--ink); }
.legal-body ul { padding-left: 20px; }

/* ---------- proof / pipeline ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 52px; align-items: start; margin-top: 10px; }
.pipeline { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 44px; }
.split .pipeline { grid-template-columns: 1fr; margin-top: 0; gap: 10px; }
.split-sticky { position: sticky; top: 90px; }
.stage { border: 1px solid var(--hair); border-radius: 3px; background: #fff; padding: 14px 16px; transition: border-color .2s ease; }
.stage:hover { border-color: var(--gold-soft); }
.stage .n { font-family: "STIX Two Text", Georgia, serif; color: var(--gold); font-weight: 600; margin-right: 8px; }
.stage b { color: var(--navy); }
.stage p { font-size: 14.5px; margin-top: 4px; }
.repro { margin-top: 30px; font-style: italic; color: var(--muted); max-width: 66ch; }

/* ---------- where this goes (navy band) ---------- */
.next-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.next { border: 1px solid #26313c; border-left: 3px solid var(--gold-soft); border-radius: 3px; background: var(--navy-2); padding: 22px 24px; }
.next .tag { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-soft); }
.next h3 { font-size: 20px; margin-top: 6px; }
.next p { font-size: 15px; margin-top: 8px; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 44px; }
.person { max-width: 250px; }
.person-photo { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 3px; border: 1px solid var(--gold-pale); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease; }
.person-photo:hover img { transform: scale(1.03); }
.person-photo .li-overlay { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: rgba(14, 23, 32, 0.45); opacity: 0; transition: opacity .25s ease; }
.person-photo:hover .li-overlay, .person-photo:focus-visible .li-overlay { opacity: 1; }
.person-photo .linkedin-icon { width: 40px; height: 40px; fill: #fff; }
.person h3 { font-size: 17.5px; margin-top: 14px; }
.person .role { font-size: 13.5px; color: var(--gold); font-weight: 600; }

/* ---------- contact ---------- */
.contact { background: var(--navy); color: var(--on-navy); }
.contact .wrap { padding-top: 84px; padding-bottom: 84px; }
.contact h2 { color: var(--on-navy-head); font-size: clamp(27px, 3.4vw, 38px); margin-top: 8px; }
.contact .kicker { color: var(--gold-soft); }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 52px; margin-top: 38px; }
.contact-side p { font-size: 15.5px; max-width: 44ch; }
.contact-side .mail { display: inline-block; margin-top: 20px; font-family: "STIX Two Text", Georgia, serif; font-size: 20px; color: var(--gold-soft); }
.contact-side .addr { font-size: 13.5px; color: var(--on-navy-muted); margin-top: 24px; }
.contact-side .contact-logo { height: 30px; display: block; margin-top: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--on-navy-muted); text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: var(--navy-2); border: 1px solid #243140; border-radius: 3px;
  color: var(--on-navy-head); font: 15px/1.5 "Avenir Next", "Avenir", "Segoe UI", system-ui, sans-serif;
  padding: 11px 12px; transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-soft); }
.req { color: var(--gold-soft); }
.form-status { font-size: 14px; margin-top: 4px; min-height: 1.4em; }
.form-status--ok { color: #9cc39c; }
.form-status--err { color: #e0a9a2; }

/* ---------- footer ---------- */
.footer { background: var(--navy); border-top: 1px solid #243140; color: var(--on-navy-muted); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 32px; }
.footer img { height: 22px; display: block; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer nav a { color: var(--on-navy); font-size: 13px; }
.footer p { font-size: 12.5px; }

/* ---------- inner page head ---------- */
.page-head { padding: 76px 0 0; background:
  radial-gradient(900px 420px at 85% -20%, var(--cream) 0%, rgba(247,241,227,0) 60%), var(--paper); }
.page-head h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.12; }
.page-head .lead { font-size: 17.5px; }
.page-head .pad-b { padding-bottom: 64px; }
.page-head--quiet h1 { font-size: clamp(26px, 3vw, 32px); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-left-content { padding: 64px 28px; }
  .hero-right { height: 44vh; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  .band { padding: 64px 0; }
  .trio, .pillars, .stat-row, .people, .next-steps { grid-template-columns: 1fr; gap: 22px; }
  .kpi-row { grid-template-columns: 1fr; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
  .pipeline { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .photo-band { height: clamp(320px, 46vh, 480px); }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--gold-pale);
    padding: 12px 28px 18px; box-shadow: 0 14px 30px rgba(14,23,32,.10);
  }
  .nav-links a { padding: 9px 0; font-size: 16px; }
  .nav-links a.is-here::after { display: none; }
  .nav-links .btn { margin-top: 8px; }
  .nav.menu-open .nav-links { display: flex; }
  .nav-burger { display: block; }
}
