/* ==========================================================================
   home-enhance.css  —  HOMEPAGE-ONLY visual upgrade (loaded after site.css)
   --------------------------------------------------------------------------
   Every rule is scoped to body[data-page="home"], so this file CANNOT affect
   any other page. It reuses the live brand tokens from site.css (--navy,
   --teal, --serif, --sans) so it blends with the existing design, no new
   fonts, no layout rewrite. It adds: a hero aurora + grid texture, the glass
   "inspection-ready" panel, premium button/card micro-interactions, an eyebrow
   hairline, a dedicated book band, and scroll-reveal motion.
   ========================================================================== */

body[data-page="home"]{ --clay:#b4541e; --r-sm:4px; --ease:cubic-bezier(.22,.7,.2,1); --ease-out:cubic-bezier(.16,1,.3,1); }

/* ----- TIGHTER SECTION RHYTHM ----------------------------------------- */
/* Default seams stacked 72+72=144px of dead white between sections, worst
   at the light-content Trainings -> Insights seam (~188px). Tighten the
   homepage cadence to a more confident 52px so no band reads as empty. */
body[data-page="home"] section.block{ padding:52px 0; }
@media (max-width:700px){ body[data-page="home"] section.block{ padding:38px 0; } }

/* ----- HERO: depth, texture, aurora ----------------------------------- */
body[data-page="home"] .hero{ position:relative; overflow:hidden; }
body[data-page="home"] .hero::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(31,58,95,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,58,95,.05) 1px, transparent 1px);
  background-size:42px 42px;
  -webkit-mask-image:radial-gradient(120% 84% at 74% 24%, #000 24%, transparent 78%);
          mask-image:radial-gradient(120% 84% at 74% 24%, #000 24%, transparent 78%);
}
body[data-page="home"] .hero__aurora{
  content:""; position:absolute; inset:-22% -12% auto auto; width:62%; height:128%;
  z-index:0; pointer-events:none;
  background:
    radial-gradient(40% 50% at 70% 30%, rgba(14,124,107,.12), transparent 70%),
    radial-gradient(42% 42% at 86% 62%, rgba(31,58,95,.08), transparent 72%);
  animation:tbAurora 18s var(--ease) infinite alternate;
}
@keyframes tbAurora{ from{ transform:translate3d(0,0,0) scale(1);} to{ transform:translate3d(-3%,2%,0) scale(1.06);} }
body[data-page="home"] .hero .wrap{ position:relative; z-index:1; }
body[data-page="home"] .hero .grid{ grid-template-columns:1.08fr .92fr; align-items:center; }
body[data-page="home"] .hero h1{ letter-spacing:-.018em; text-wrap:balance; }
body[data-page="home"] .hero h1 .italic-teal{ font-style:italic; color:var(--teal); }
body[data-page="home"] .hero .sub{ line-height:1.6; }

/* ----- GLASS "inspection-ready" panel --------------------------------- */
body[data-page="home"] .hero__panel{ display:flex; justify-content:center; }
body[data-page="home"] .glass{
  width:min(370px,100%);
  background:linear-gradient(160deg, rgba(255,255,255,.94), rgba(246,248,250,.78));
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  border:1px solid rgba(31,58,95,.10); border-radius:14px;
  box-shadow:0 34px 70px -30px rgba(20,32,46,.42);
  padding:24px 24px 20px; animation:tbFloat 9s ease-in-out infinite;
}
@keyframes tbFloat{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-10px);} }
body[data-page="home"] .glass__bar{ height:6px; width:46px; border-radius:99px; background:var(--teal); margin-bottom:14px; }
body[data-page="home"] .glass__cap{ font:600 12px/1.4 var(--sans); letter-spacing:.06em; text-transform:uppercase; color:var(--mut); margin-bottom:6px; }
body[data-page="home"] .glass__title{ font:700 1.18rem/1.25 var(--serif); color:var(--ink); letter-spacing:-.01em; margin-bottom:8px; }
body[data-page="home"] .glass__row{ display:flex; align-items:center; gap:12px; padding:11px 0; border-top:1px solid rgba(31,58,95,.08); font:600 15px/1.3 var(--sans); color:var(--ink); }
body[data-page="home"] .glass__row:first-of-type{ border-top:none; }
body[data-page="home"] .glass .dot{ width:9px; height:9px; border-radius:50%; flex:none; }
body[data-page="home"] .glass .dot.ok{ background:var(--teal); }
body[data-page="home"] .glass .dot.live{ background:var(--clay); animation:tbPulse 2.2s var(--ease) infinite; }
@keyframes tbPulse{ 0%{ box-shadow:0 0 0 0 rgba(180,84,30,.45);} 70%{ box-shadow:0 0 0 9px rgba(180,84,30,0);} 100%{ box-shadow:0 0 0 0 rgba(180,84,30,0);} }
body[data-page="home"] .glass__foot{ margin-top:14px; padding-top:12px; border-top:1px solid rgba(31,58,95,.08); font:700 12px/1 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--teal); }

/* ----- EYEBROW hairline rule ------------------------------------------ */
body[data-page="home"] .eyebrow::before{
  content:""; display:inline-block; width:24px; height:1px; background:currentColor;
  vertical-align:middle; margin-right:10px; opacity:.55;
}

/* ----- BUTTONS: lift + light sweep ------------------------------------ */
body[data-page="home"] .btn{ position:relative; overflow:hidden; }
body[data-page="home"] .btn:hover{ transform:translateY(-2px); box-shadow:0 10px 26px -14px rgba(20,32,46,.5); }
body[data-page="home"] .btn-primary::after,
body[data-page="home"] .btn-teal::after{
  content:""; position:absolute; top:0; left:-130%; width:55%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
  transform:skewX(-20deg); transition:left .6s var(--ease); pointer-events:none;
}
body[data-page="home"] .btn-primary:hover::after,
body[data-page="home"] .btn-teal:hover::after{ left:140%; }

/* ----- CARDS: animated accent bar + deeper hover ---------------------- */
body[data-page="home"] .card{ position:relative; overflow:hidden; }
body[data-page="home"] .card::before{
  content:""; position:absolute; left:0; top:0; width:100%; height:3px;
  background:linear-gradient(90deg,var(--teal),var(--teal-dk));
  transform:scaleX(0); transform-origin:left; transition:transform .45s var(--ease-out);
}
body[data-page="home"] .card:hover::before{ transform:scaleX(1); }
body[data-page="home"] .card:hover{ transform:translateY(-6px); box-shadow:0 22px 60px -28px rgba(20,32,46,.30); border-color:rgba(14,124,107,.35); }

/* ----- AUTHOR CREDIBILITY STRIP --------------------------------------- */
body[data-page="home"] .home-authorstrip{
  display:flex; align-items:center; gap:18px;
  max-width:980px; margin:0 auto; padding:14px 20px;
  background:var(--navy); border:1px solid var(--navy); border-radius:14px;
  box-shadow:0 14px 36px -24px rgba(20,32,46,.6);
  color:#c4d2e2; transition:transform .18s, box-shadow .18s;
}
body[data-page="home"] .home-authorstrip:hover{ transform:translateY(-2px); box-shadow:0 20px 44px -22px rgba(20,32,46,.65); }
body[data-page="home"] .home-authorstrip img{ width:46px; height:auto; border-radius:4px; box-shadow:0 5px 14px -6px rgba(0,0,0,.6); flex:none; }
body[data-page="home"] .home-authorstrip .as-text{ font-size:15px; line-height:1.45; flex:1; color:#c4d2e2; }
body[data-page="home"] .home-authorstrip .as-text b{ color:#fff; font-weight:700; }
body[data-page="home"] .home-authorstrip .as-text i{ font-style:italic; }
body[data-page="home"] .home-authorstrip .as-cta{ font-weight:700; color:#e9a06f; white-space:nowrap; flex:none; }
@media (max-width:680px){
  body[data-page="home"] .home-authorstrip{ flex-wrap:wrap; gap:12px 14px; }
  body[data-page="home"] .home-authorstrip .as-cta{ width:100%; }
}

/* ----- DEDICATED BOOK BAND -------------------------------------------- */
body[data-page="home"] .home-bookband{ background:var(--navy); color:#eaf0f6; }
body[data-page="home"] .home-bookband .grid{ display:grid; grid-template-columns:auto 1fr; gap:clamp(32px,5vw,60px); align-items:center; }
body[data-page="home"] .home-bookband .eyebrow{ color:#d98a5f; }
body[data-page="home"] .home-bookband h2{ color:#fff; font-size:27px; margin:10px 0 14px; }
body[data-page="home"] .home-bookband p{ color:#c4d2e2; max-width:60ch; }
body[data-page="home"] .home-bookband .meta{ color:#9fb6cf; font-size:14px; margin-top:14px; }
body[data-page="home"] .home-bookband .actions{ margin-top:22px; display:flex; flex-wrap:wrap; gap:14px; }
body[data-page="home"] .home-bookband .btn-book{
  display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:0 26px;
  background:var(--clay); color:#fff; border:1.5px solid var(--clay); border-radius:var(--r-sm);
  font-family:var(--sans); font-weight:700; font-size:15px; position:relative; overflow:hidden; transition:.2s var(--ease);
}
body[data-page="home"] .home-bookband .btn-book:hover{ background:#9c4615; border-color:#9c4615; transform:translateY(-2px); box-shadow:0 12px 28px -14px rgba(0,0,0,.5); }
body[data-page="home"] .home-bookband .cover{
  width:clamp(170px,18vw,220px); height:auto; aspect-ratio:640/905; object-fit:contain;
  border-radius:4px; box-shadow:0 30px 60px -20px rgba(0,0,0,.55); transition:transform .5s var(--ease);
}
body[data-page="home"] #tb-content img{ height:auto; }
/* Logo size is locked to the site default on home too — never let the
   content img:auto rule (or any future broad rule) inflate the header/footer
   lockup. Higher specificity than the bare .brandmark rule in site.css. */
body[data-page="home"] .brandmark{ height:42px; width:auto; }
body[data-page="home"] .brandmark-footer{ height:40px; width:auto; }
@media(max-width:560px){ body[data-page="home"] .brandmark{ height:34px; } }
body[data-page="home"] .home-bookband .cover:hover{ transform:translateY(-6px) rotate(-.6deg); }

/* ----- HERO PIPELINE INFOGRAPHIC -------------------------------------- */
body[data-page="home"] .hero .wrap{ max-width:980px; }
body[data-page="home"] .hero h1{ font-size:clamp(28px,4vw,44px); }
body[data-page="home"] .hero .sub{ max-width:64ch; }
body[data-page="home"] .hh-pipe{ position:relative; display:flex; justify-content:space-between; margin:34px 4px 6px; max-width:760px; }
body[data-page="home"] .hh-rail{ position:absolute; left:26px; right:26px; top:26px; height:2px; background:#dfe5ea; overflow:hidden; border-radius:2px; }
body[data-page="home"] .hh-rail::after{ content:""; position:absolute; top:0; left:-40%; width:40%; height:100%; background:linear-gradient(90deg,transparent,var(--teal),transparent); animation:hhFlow 3.2s linear infinite; }
@keyframes hhFlow{ to{ left:110%; } }
body[data-page="home"] .hh-stage{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; width:19%; }
body[data-page="home"] .hh-node{ width:52px; height:52px; border-radius:50%; background:#fff; border:1.5px solid #cfe0db; display:flex; align-items:center; justify-content:center; color:var(--teal); font-size:20px; opacity:.5; transform:scale(.9); animation:hhLight .5s ease forwards; }
body[data-page="home"] .hh-stage:nth-child(3) .hh-node{ animation-delay:.25s; }
body[data-page="home"] .hh-stage:nth-child(4) .hh-node{ animation-delay:.5s; }
body[data-page="home"] .hh-stage:nth-child(5) .hh-node{ animation-delay:.75s; }
body[data-page="home"] .hh-stage:nth-child(6) .hh-node{ animation-delay:1s; }
@keyframes hhLight{ to{ opacity:1; transform:scale(1); border-color:var(--teal); box-shadow:0 12px 26px -12px rgba(14,124,107,.45); } }
body[data-page="home"] .hh-stage.live .hh-node{ animation:hhLight .5s .5s ease forwards, hhPulse 2s 1.1s infinite; color:var(--clay); }
@keyframes hhPulse{ 0%{ box-shadow:0 0 0 0 rgba(180,84,30,.4); } 70%{ box-shadow:0 0 0 12px rgba(180,84,30,0); } 100%{ box-shadow:0 0 0 0 rgba(180,84,30,0); } }
body[data-page="home"] .hh-stage.final .hh-node{ background:var(--teal); border-color:var(--teal); color:#fff; font-weight:700; opacity:1; }
body[data-page="home"] .hh-lab{ margin-top:12px; font-size:11.5px; line-height:1.3; color:var(--slate); text-align:center; font-weight:500; max-width:104px; }
body[data-page="home"] .hh-step{ display:block; font-size:10px; color:var(--teal); letter-spacing:.08em; text-transform:uppercase; margin-bottom:3px; }
body[data-page="home"] .hh-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:24px 0 16px; max-width:640px; }
body[data-page="home"] .hh-stat{ background:var(--soft); border:.5px solid var(--line); border-radius:10px; padding:14px; text-align:center; }
body[data-page="home"] .hh-stat .n{ font-family:var(--serif); font-size:26px; color:var(--navy); font-weight:700; line-height:1; }
body[data-page="home"] .hh-stat .l{ font-size:11px; color:var(--mut); margin-top:6px; line-height:1.3; }
body[data-page="home"] .hh-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 4px; }
body[data-page="home"] .hh-chip{ font-size:12px; color:var(--teal-dk); border:.5px solid rgba(14,124,107,.35); border-radius:999px; padding:7px 14px; background:rgba(14,124,107,.06); font-weight:500; }
@media (max-width:640px){
  body[data-page="home"] .hh-stats{ grid-template-columns:1fr 1fr; }
  body[data-page="home"] .hh-node{ width:42px; height:42px; font-size:16px; }
  body[data-page="home"] .hh-lab{ font-size:10px; }
}
@media (prefers-reduced-motion: reduce){
  body[data-page="home"] .hh-rail::after,
  body[data-page="home"] .hh-node,
  body[data-page="home"] .hh-stage.live .hh-node{ animation:none !important; opacity:1 !important; transform:none !important; border-color:var(--teal); }
}

/* ----- PROOF STAT STRIP ----------------------------------------------- */
body[data-page="home"] .home-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
body[data-page="home"] .home-stats .hs{ background:var(--navy); border-radius:10px; padding:18px 16px; text-align:center; }
body[data-page="home"] .home-stats .n{ display:block; font-family:var(--serif); font-size:26px; color:#fff; font-weight:700; line-height:1.1; }
body[data-page="home"] .home-stats .l{ display:block; font-size:12px; color:#c4d2e2; margin-top:5px; line-height:1.35; }
@media (max-width:860px){ body[data-page="home"] .home-stats{ grid-template-columns:1fr 1fr; } }
@media (max-width:540px){ body[data-page="home"] .home-stats{ grid-template-columns:1fr; } }

/* ----- PERSONA ROUTER -------------------------------------------------- */
body[data-page="home"] .personas{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:24px; }
body[data-page="home"] .pcard{ display:block; background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; text-decoration:none; color:inherit; position:relative; overflow:hidden; transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
body[data-page="home"] .pcard::before{ content:""; position:absolute; left:0; top:0; width:100%; height:3px; background:linear-gradient(90deg,var(--teal),var(--teal-dk)); transform:scaleX(0); transform-origin:left; transition:transform .4s var(--ease-out); }
body[data-page="home"] .pcard:hover::before{ transform:scaleX(1); }
body[data-page="home"] .pcard:hover{ transform:translateY(-6px); box-shadow:0 22px 50px -28px rgba(20,32,46,.30); border-color:rgba(14,124,107,.4); }
body[data-page="home"] .pcard .pwho{ display:block; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--clay); margin-bottom:10px; }
body[data-page="home"] .pcard h3{ font-family:var(--serif); font-size:17px; color:var(--ink); font-weight:700; line-height:1.25; margin:0 0 16px; }
body[data-page="home"] .pcard .go{ color:var(--navy); font-weight:700; font-size:13.5px; }
body[data-page="home"] .pcard:hover .go{ color:var(--teal); }
@media (max-width:900px){ body[data-page="home"] .personas{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ body[data-page="home"] .personas{ grid-template-columns:1fr; } }

/* ----- SCROLL REVEAL (progressive enhancement) ------------------------ */
body[data-page="home"].js .reveal{ opacity:0; transform:translateY(22px); }
body[data-page="home"] .reveal.is-in{ opacity:1; transform:none; transition:opacity .7s var(--ease-out), transform .7s var(--ease-out); }
body[data-page="home"] .reveal[data-delay="1"].is-in{ transition-delay:.08s; }
body[data-page="home"] .reveal[data-delay="2"].is-in{ transition-delay:.16s; }
body[data-page="home"] .reveal[data-delay="3"].is-in{ transition-delay:.24s; }
body[data-page="home"] .reveal[data-delay="4"].is-in{ transition-delay:.32s; }

/* ----- RESPONSIVE ------------------------------------------------------ */
@media (max-width:860px){
  body[data-page="home"] .hero .grid{ grid-template-columns:1fr; }
  body[data-page="home"] .hero__panel{ order:-1; max-width:380px; margin:0 auto 8px; }
  body[data-page="home"] .home-bookband .grid{ grid-template-columns:1fr; text-align:left; }
}

/* ----- REDUCED MOTION -------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  body[data-page="home"] .hero__aurora,
  body[data-page="home"] .glass,
  body[data-page="home"] .glass .dot.live{ animation:none !important; }
  body[data-page="home"] .reveal{ opacity:1 !important; transform:none !important; }
  body[data-page="home"] .btn-primary::after, body[data-page="home"] .btn-teal::after{ display:none; }
  body[data-page="home"] .btn:hover, body[data-page="home"] .card:hover, body[data-page="home"] .home-bookband .cover:hover{ transform:none; }
}
