/* VDMT V16 RECOVERY — one authoritative homepage system.
   Purpose: remove patch-layer conflicts and keep VI/EN + desktop/mobile on one composition.
   This file owns: homepage hero, DMT intro, proof, journeys, FAQ and closing CTA. */

body[data-page="home"]{
  --home-rule: rgba(25,63,54,.18);
  --home-paper: #fbfaf7;
  --home-soft: #f0f4ed;
  --home-sage: #e8eee8;
  --home-deep: #153f35;
  --home-accent: #3f947f;
}

/* ---------- HERO: one DOM, same two slides, same composition on all screens ---------- */
body[data-page="home"] .home-hero{
  position:relative;
  height:min(88svh,900px);
  min-height:680px;
  max-height:none;
  overflow:hidden;
  background:#163c33;
  color:#fffaf1;
}
body[data-page="home"] .home-hero .hero-slide{
  position:absolute;
  inset:0;
  overflow:hidden;
}
body[data-page="home"] .home-hero .hero-slide[hidden]{display:none!important}
body[data-page="home"] .home-hero .hero-slide:not([hidden]){display:block!important}
body[data-page="home"] .home-hero .hero-image,
body[data-page="home"] .home-hero .hero-media{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  border-radius:0!important;
  object-fit:cover!important;
  object-position:center 48%!important;
  opacity:1!important;
  filter:saturate(.88) contrast(.98)!important;
  mask-image:none!important;
}
body[data-page="home"] .home-hero .hero-slide:nth-child(2) .hero-image{object-position:center 42%!important}
body[data-page="home"] .home-hero .hero-slide::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg,rgba(10,37,31,.80) 0%,rgba(10,37,31,.58) 38%,rgba(10,37,31,.18) 67%,rgba(10,37,31,.04) 100%),
    linear-gradient(0deg,rgba(10,37,31,.48) 0%,rgba(10,37,31,.06) 52%,transparent 72%);
}
body[data-page="home"] .home-hero .hero-slide>.wrap{
  position:relative!important;
  z-index:2!important;
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  padding-top:120px!important;
  padding-bottom:72px!important;
}
body[data-page="home"] .home-hero .hero-copy{
  width:min(610px,48vw)!important;
  max-width:610px!important;
  padding:0!important;
  margin:0!important;
  transform:none!important;
}
body[data-page="home"] .home-hero .eyebrow{
  display:block;
  margin:0 0 14px!important;
  color:#d9e7df!important;
  font-family:var(--sans)!important;
  font-size:9px!important;
  line-height:1.4!important;
  font-weight:700!important;
  letter-spacing:.20em!important;
  text-transform:uppercase;
}
body[data-page="home"] .home-hero h1,
body[data-page="home"] .home-hero h2{
  margin:0!important;
  max-width:600px!important;
  color:#fffaf1!important;
  font-size:clamp(54px,5.6vw,82px)!important;
  line-height:1!important;
  letter-spacing:-.045em!important;
  text-wrap:balance;
}
body[data-page="home"] .home-hero h1 em,
body[data-page="home"] .home-hero h2 em{color:#9acbb8!important;font-style:italic!important;font-weight:400}
body[data-page="home"] .home-hero p{
  max-width:510px!important;
  margin:20px 0 0!important;
  color:rgba(255,250,241,.88)!important;
  font-size:14px!important;
  line-height:1.72!important;
}
body[data-page="home"] .home-hero .actions{margin-top:24px!important;gap:18px!important;align-items:center!important}
body[data-page="home"] .home-hero .btn{
  min-height:46px!important;
  padding:11px 18px!important;
  background:#f7f2e9!important;
  border-color:#f7f2e9!important;
  color:#163c33!important;
  font-size:11px!important;
}
body[data-page="home"] .home-hero .text-link{color:#fffaf1!important;border-bottom-color:rgba(255,255,255,.55)!important;font-size:11px!important}
body[data-page="home"] .home-hero .hero-side{display:none!important}

/* ---------- DMT brief ---------- */
body[data-page="home"] .home-dmt-brief{padding:64px 0 60px;background:var(--home-paper);border-bottom:1px solid var(--home-rule)}
body[data-page="home"] .home-dmt-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:58px;align-items:start}
body[data-page="home"] .home-dmt-intro .eyebrow,
body[data-page="home"] .home-proof .eyebrow{display:block;margin-bottom:12px;font-size:11px;line-height:1.2;font-weight:700;letter-spacing:.14em}
body[data-page="home"] .home-dmt-intro h2{max-width:560px;margin:0 0 18px;font-size:clamp(29px,2.2vw,36px);line-height:1.12;letter-spacing:-.025em;text-wrap:balance}
body[data-page="home"] .home-dmt-intro h2 em{color:var(--home-accent);font-style:italic;font-weight:400}
body[data-page="home"] .home-dmt-intro .lead{max-width:560px;font-size:14px;line-height:1.7}
body[data-page="home"] .home-dmt-note{max-width:560px;margin:12px 0 16px;color:#6b7e77;font-size:10.5px;line-height:1.6}
body[data-page="home"] .home-dmt-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--home-rule);border-left:1px solid var(--home-rule)}
body[data-page="home"] .home-dmt-step{min-height:160px;padding:20px 22px 22px;border-right:1px solid var(--home-rule);border-bottom:1px solid var(--home-rule)}
body[data-page="home"] .home-dmt-step>span{display:block;margin-bottom:18px;color:var(--home-accent);font-size:9px;font-weight:700;letter-spacing:.08em}
body[data-page="home"] .home-dmt-step h3{margin:0 0 9px;font-size:23px;line-height:1.08;letter-spacing:-.02em}
body[data-page="home"] .home-dmt-step p{margin:0;max-width:280px;color:#58736d;font-size:12px;line-height:1.55}

/* ---------- Credibility / proof ---------- */
body[data-page="home"] .home-proof{padding:60px 0;background:var(--home-deep);color:#f8f4eb}
body[data-page="home"] .home-proof-layout{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:58px;align-items:center}
body[data-page="home"] .home-proof .eyebrow{color:#c8ded3!important;font-size:12px}
body[data-page="home"] .home-proof h2{margin:0 0 14px;color:#f8f4eb!important;font-size:clamp(30px,2.4vw,38px);line-height:1.08;letter-spacing:-.025em}
body[data-page="home"] .home-proof-copy>p{max-width:560px;margin:0;color:#d9e5df;font-size:13.5px;line-height:1.7}
body[data-page="home"] .home-proof .text-link{color:#fffdf8;border-bottom-color:rgba(255,255,255,.6)}
body[data-page="home"] .home-proof-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.22);border-left:1px solid rgba(255,255,255,.22)}
body[data-page="home"] .home-proof-metric{min-height:150px;padding:22px 20px;border-right:1px solid rgba(255,255,255,.22);border-bottom:1px solid rgba(255,255,255,.22)}
body[data-page="home"] .home-proof-metric strong{display:block;margin-bottom:10px;font-family:var(--serif);font-size:30px;font-weight:400;line-height:1;color:#b8d6c5}
body[data-page="home"] .home-proof-metric p{margin:0;color:#e6eee9;font-size:11px;line-height:1.55}
body[data-page="home"] .home-proof-metrics small{grid-column:1/-1;padding-top:9px;color:#a8bbb2;font-size:9px;line-height:1.45}

/* ---------- 4 journeys ---------- */
body[data-page="home"] .home-journeys{padding:54px 0 58px!important;background:#f7f4ed!important}
body[data-page="home"] .home-journeys .wrap{width:min(var(--max),calc(100% - 100px))!important}
body[data-page="home"] .home-journeys h2{max-width:620px;margin:0 0 24px;font-size:clamp(30px,2.35vw,36px);line-height:1.12;letter-spacing:-.025em}
body[data-page="home"] .home-journeys .journey-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;border-top:1px solid var(--home-rule);border-left:1px solid var(--home-rule);gap:0!important}
body[data-page="home"] .home-journeys .journey-card,
body[data-page="home"] .home-journeys .journey-card+.journey-card{
  display:flex!important;flex-direction:column!important;min-height:0!important;padding:26px 28px 24px!important;background:var(--home-soft)!important;border:0!important;border-right:1px solid var(--home-rule)!important;border-bottom:1px solid var(--home-rule)!important;color:var(--ink)!important;border-radius:0!important;transform:none!important
}
body[data-page="home"] .home-journeys .journey-card:hover{background:#e7eee6!important;color:var(--ink)!important;transform:none!important}
body[data-page="home"] .home-journeys .journey-card h3{margin:0 0 11px!important;font-size:clamp(24px,1.9vw,29px)!important;line-height:1.08!important;letter-spacing:-.025em!important}
body[data-page="home"] .home-journeys .journey-card p{margin:0!important;color:#58736d!important;font-size:13px!important;line-height:1.6!important}
body[data-page="home"] .home-journeys .journey-card b{margin-top:22px!important;padding-top:0!important;color:var(--ink)!important;font-size:11px!important;font-weight:600!important}
body[data-page="home"] .home-journeys .journey-card:hover p{color:#58736d!important}

/* ---------- FAQ ---------- */
body[data-page="home"] .home-faq{padding:52px 0 56px;background:var(--home-sage)}
body[data-page="home"] .home-faq .faq{max-width:920px;margin:0 auto}
body[data-page="home"] .home-faq .faq h2{margin-bottom:22px;font-size:clamp(29px,2.25vw,34px);line-height:1.12;letter-spacing:-.025em}
body[data-page="home"] .home-faq .faq summary{padding:18px 36px 18px 0;font-size:14px}
body[data-page="home"] .home-faq .faq p{padding:0 0 20px;color:#58736d;font-size:13px;line-height:1.65}

/* ---------- Closing CTA ---------- */
body[data-page="home"] .home-choice-closing{padding:0;background:#dfeae3;color:var(--ink)}
body[data-page="home"] .home-choice-layout{display:grid;grid-template-columns:minmax(250px,.58fr) minmax(0,1.42fr);min-height:340px}
body[data-page="home"] .home-choice-art{position:relative;overflow:hidden;min-height:340px}
body[data-page="home"] .home-choice-art img{width:100%;height:100%;object-fit:cover;opacity:.9}
body[data-page="home"] .home-choice-art::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(15,49,42,.38),transparent 55%)}
body[data-page="home"] .home-choice-art>span{position:absolute;z-index:2;left:28px;bottom:24px;color:#fffdf8;font-family:var(--serif);font-size:20px;line-height:1.15}
body[data-page="home"] .home-choice-content{padding:36px 48px 38px;display:flex;flex-direction:column;justify-content:center}
body[data-page="home"] .home-choice-content .eyebrow{font-size:10px;letter-spacing:.15em}
body[data-page="home"] .home-choice-content h2{max-width:620px;margin:10px 0 0;font-size:clamp(30px,2.45vw,36px);line-height:1.1;letter-spacing:-.025em}
body[data-page="home"] .home-choice-tagline{margin-top:10px;color:var(--home-accent);font-family:var(--serif);font-size:17px;font-style:italic}
body[data-page="home"] .home-choice-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:22px;border-top:1px solid rgba(25,63,54,.22);border-left:1px solid rgba(25,63,54,.22)}
body[data-page="home"] .home-choice-links a{display:flex;justify-content:space-between;align-items:center;min-height:54px;padding:12px 16px;border-right:1px solid rgba(25,63,54,.22);border-bottom:1px solid rgba(25,63,54,.22);font-size:11px;font-weight:600}
body[data-page="home"] .home-choice-contact{display:inline-flex;align-items:center;gap:12px;margin-top:16px;padding-bottom:4px;border-bottom:1px solid currentColor;align-self:flex-start;font-size:10.5px;font-weight:600}

/* ---------- Tablet ---------- */
@media(max-width:980px){
  body[data-page="home"] .home-dmt-layout,
  body[data-page="home"] .home-proof-layout{grid-template-columns:1fr;gap:36px}
  body[data-page="home"] .home-journeys .journey-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="home"] .home-choice-layout{grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr)}
  body[data-page="home"] .home-choice-content{padding:34px 38px 36px}
}

/* ---------- Mobile: same hero composition, scaled—not a separate design ---------- */
@media(max-width:760px){
  body[data-page="home"] .home-hero{
    height:calc(100dvh - var(--vdmt-mobile-header,74px))!important;
    min-height:560px!important;
    max-height:760px!important;
  }
  body[data-page="home"] .home-hero .hero-slide{position:absolute!important;inset:0!important;height:100%!important;min-height:0!important}
  body[data-page="home"] .home-hero .hero-image,
  body[data-page="home"] .home-hero .hero-media{object-position:54% 50%!important}
  body[data-page="home"] .home-hero .hero-slide:nth-child(2) .hero-image{object-position:58% 44%!important}
  body[data-page="home"] .home-hero .hero-slide::after{
    background:linear-gradient(180deg,rgba(9,35,30,.04) 0%,rgba(9,35,30,.10) 38%,rgba(9,35,30,.50) 68%,rgba(9,35,30,.94) 100%)!important;
  }
  body[data-page="home"] .home-hero .hero-slide>.wrap{
    width:100%!important;max-width:none!important;margin:0!important;
    padding:0 22px calc(28px + env(safe-area-inset-bottom))!important;
    justify-content:flex-end!important;
  }
  body[data-page="home"] .home-hero .hero-copy{width:100%!important;max-width:335px!important;margin:0!important}
  body[data-page="home"] .home-hero .eyebrow{margin-bottom:9px!important;font-size:8.5px!important;letter-spacing:.16em!important}
  body[data-page="home"] .home-hero h1,
  body[data-page="home"] .home-hero h2{max-width:335px!important;font-size:clamp(40px,11.8vw,50px)!important;line-height:.98!important;letter-spacing:-.04em!important}
  body[data-page="home"] .home-hero p{max-width:315px!important;margin-top:12px!important;font-size:12.5px!important;line-height:1.5!important}
  body[data-page="home"] .home-hero .actions{margin-top:14px!important;gap:10px!important}
  body[data-page="home"] .home-hero .btn{min-height:40px!important;padding:8px 12px!important;font-size:10px!important}
  body[data-page="home"] .home-hero .text-link{min-height:38px!important;margin:0!important;padding:6px 0!important;font-size:9.5px!important}

  body[data-page="home"] .home-dmt-brief{padding:44px 0 42px}
  body[data-page="home"] .home-dmt-layout{gap:28px}
  body[data-page="home"] .home-dmt-intro h2{font-size:30px;line-height:1.1}
  body[data-page="home"] .home-dmt-intro .lead{font-size:13.5px;line-height:1.65}
  body[data-page="home"] .home-dmt-steps{grid-template-columns:1fr}
  body[data-page="home"] .home-dmt-step{min-height:0;padding:18px 18px 20px}
  body[data-page="home"] .home-dmt-step>span{margin-bottom:10px}
  body[data-page="home"] .home-dmt-step h3{font-size:22px}

  body[data-page="home"] .home-proof{padding:44px 0}
  body[data-page="home"] .home-proof-layout{gap:28px}
  body[data-page="home"] .home-proof h2{font-size:30px}
  body[data-page="home"] .home-proof-copy>p{font-size:13px;line-height:1.65}
  body[data-page="home"] .home-proof-metrics{grid-template-columns:1fr}
  body[data-page="home"] .home-proof-metric{min-height:0;padding:18px}
  body[data-page="home"] .home-proof-metric strong{font-size:30px}

  body[data-page="home"] .home-journeys{padding:42px 0 46px!important}
  body[data-page="home"] .home-journeys .wrap{width:calc(100% - 44px)!important}
  body[data-page="home"] .home-journeys h2{max-width:310px;margin:0 0 18px;font-size:30px}
  body[data-page="home"] .home-journeys .journey-grid{display:block!important;border:0!important;counter-reset:journey!important}
  body[data-page="home"] .home-journeys .journey-card,
  body[data-page="home"] .home-journeys .journey-card+.journey-card{
    counter-increment:journey!important;position:relative!important;display:grid!important;grid-template-columns:38px 1fr!important;column-gap:12px!important;row-gap:6px!important;width:100%!important;min-height:0!important;margin:0!important;padding:18px 0!important;background:transparent!important;border:0!important;border-top:1px solid var(--home-rule)!important
  }
  body[data-page="home"] .home-journeys .journey-card:last-child{border-bottom:1px solid var(--home-rule)!important}
  body[data-page="home"] .home-journeys .journey-card::before{content:'0' counter(journey)!important;grid-column:1!important;grid-row:1 / span 3!important;padding-top:3px;color:var(--home-accent);font-size:9.5px;font-weight:700;letter-spacing:.08em}
  body[data-page="home"] .home-journeys .journey-card h3{grid-column:2!important;margin:0!important;font-size:24px!important}
  body[data-page="home"] .home-journeys .journey-card p{grid-column:2!important;font-size:12.5px!important;line-height:1.5!important}
  body[data-page="home"] .home-journeys .journey-card b{grid-column:2!important;margin-top:3px!important;font-size:10.5px!important}

  body[data-page="home"] .home-faq{padding:42px 0 46px}
  body[data-page="home"] .home-faq .faq h2{margin-bottom:18px;font-size:28px}
  body[data-page="home"] .home-faq .faq summary{font-size:13.5px}

  body[data-page="home"] .home-choice-layout{grid-template-columns:1fr;min-height:0}
  body[data-page="home"] .home-choice-art{min-height:220px}
  body[data-page="home"] .home-choice-content{padding:30px 22px 38px}
  body[data-page="home"] .home-choice-content h2{max-width:330px;margin-top:8px;font-size:30px;line-height:1.1}
  body[data-page="home"] .home-choice-tagline{font-size:15px;line-height:1.35}
  body[data-page="home"] .home-choice-links{grid-template-columns:1fr;margin-top:18px}
  body[data-page="home"] .home-choice-links a{min-height:50px;padding:11px 14px}
  body[data-page="home"] .home-choice-contact{margin-top:14px}
  body[data-page="home"] .home-choice-art>span{left:22px;bottom:18px;font-size:18px}
}

@media(max-width:380px){
  body[data-page="home"] .home-hero .hero-slide>.wrap{padding-left:18px!important;padding-right:18px!important}
  body[data-page="home"] .home-hero h1,
  body[data-page="home"] .home-hero h2{font-size:39px!important}
  body[data-page="home"] .home-journeys .wrap{width:calc(100% - 36px)!important}
}

@media print{
  body[data-page="home"] .home-hero{height:auto!important;min-height:560px!important}
  body[data-page="home"] .home-hero .hero-slide[hidden]{display:none!important}
  body[data-page="home"] .home-journeys .journey-card,
  body[data-page="home"] .home-journeys .journey-card+.journey-card{min-height:0!important;padding:20px 22px!important}
  body[data-page="home"] .home-choice-layout{grid-template-columns:.58fr 1.42fr!important;min-height:0!important}
  body[data-page="home"] .home-choice-art{min-height:300px!important}
}
