/* ==========================================================================
   HOME (draft), fourth version (walkthrough of 19 Nov 2026), cleaned after the
   walkthrough of 21 Nov 2026. Loaded after home_v2.css and only by the draft
   Home. It holds the three figures that walk through their states: the hero's
   shared session, the enterprise steps and the own-plan figure. The hero text,
   the mission, Results, Sky Guides and Getting started are in home_v5.css.

   Every box is white with a dark blue border. There is no gray or tinted
   stage and no line down one side of a box. The one light fill, --v5-select
   (site_v5.css), marks a selected state and carries brand text. Text is ink or
   brand blue. Spacing is on the 8px scale.
   ========================================================================== */

/* ---------- 1. hero: experts and shared Sky Guides in one session ---------- */
.hc{ margin-top:clamp(40px,4.4vw,64px); }
.hc-stage{
  margin:0; display:grid;
  grid-template-columns:minmax(0,.9fr) clamp(32px,5vw,80px) minmax(0,1.7fr) clamp(32px,5vw,80px) minmax(0,.9fr);
  grid-template-rows:auto 1fr; align-items:center; column-gap:0; row-gap:16px;
}
/* the three captions are centered over their columns */
.hc-cap{
  grid-row:1; align-self:start; text-align:center; font-family:var(--f-display); font-weight:600;
  font-size:var(--fs-h3); letter-spacing:-.015em; line-height:1.2; color:var(--ink);
}
.hc-cap-n{ display:block; margin-top:2px; font-weight:500; font-size:var(--fs-small); letter-spacing:0; color:var(--brand); }
.hc-cap--p{ grid-column:1; } .hc-cap--s{ grid-column:3; } .hc-cap--g{ grid-column:5; }
.hc-col{ grid-row:2; display:grid; gap:16px; }
.hc-col--p{ grid-column:1; } .hc-col--g{ grid-column:5; }
.hc-link{ grid-row:2; width:100%; height:100%; min-height:176px; overflow:visible; }
.hc-link--in{ grid-column:2; } .hc-link--out{ grid-column:4; }
.hc-link path{
  fill:none; stroke:var(--brand); stroke-width:1.6; stroke-linecap:round; stroke-dasharray:3 7;
  vector-effect:non-scaling-stroke; transition:stroke .35s ease-out;
}
.hc-node{
  position:relative; display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 16px;
  background:#FFFFFF; border:1.5px dashed var(--brand); border-radius:12px; color:var(--ink);
  font-family:var(--f-display); font-weight:500; font-size:var(--fs-small); line-height:1.2;
  transition:box-shadow .35s ease-out;
}
.hc-node > svg{ flex:none; width:24px; height:24px; color:var(--brand); }
.hc-node .sgb{ transition:opacity .35s ease-out; }
.hc-learn{
  position:absolute; top:-8px; right:-8px; width:22px; height:22px; border-radius:50%;
  background:#FFFFFF; border:2px solid var(--brand); opacity:0; transform:scale(.4);
  transition:opacity .3s ease-out, transform .4s var(--e-out);
}
.hc-learn::after{
  content:""; position:absolute; left:6px; top:2px; width:5px; height:10px;
  border:solid var(--brand); border-width:0 2px 2px 0; transform:rotate(45deg);
}
.hc-session{
  grid-row:2; grid-column:3; display:grid; gap:12px; align-content:start; padding:16px;
  background:#FFFFFF; border:1.5px solid var(--brand); border-radius:var(--r-card);
  box-shadow:0 1px 0 rgba(0,76,151,.05), 0 16px 32px -24px rgba(0,76,151,.5);
}
.hc-bar{
  display:flex; align-items:center; gap:8px; padding-bottom:12px; border-bottom:1.5px solid var(--brand);
  font-family:var(--f-display); font-weight:600; font-size:var(--fs-small); line-height:1.25; color:var(--ink);
}
.hc-live{ flex:none; width:10px; height:10px; border-radius:50%; background:var(--sky); }
.hc-avs{ display:flex; align-items:center; margin-left:auto; padding-left:8px; }
.hc-avs i{
  display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; margin-left:-6px;
  border:1.5px solid var(--brand); border-radius:50%; background:#FFFFFF; color:var(--brand);
  font-style:normal; font-family:var(--f-display); font-weight:600; font-size:.75rem;
}
/* the guide in the session is the bubble avatar, not a ringed initial */
.hc-avs .hc-av--g{ width:auto; height:auto; margin-left:4px; border:0; border-radius:0; background:none; }
.hc-msg{
  max-width:100%; padding:10px 14px; background:#FFFFFF; border:1.5px solid var(--brand); border-radius:14px;
  font-size:var(--fs-small); line-height:1.4; color:var(--ink);
  transition:opacity .4s ease-out, transform .4s var(--e-out);
}
.hc-msg--p{ justify-self:start; border-bottom-left-radius:4px; }
/* the answer is held to a width its two lines fill, so the box hugs its words */
.hc-msg--g{ justify-self:end; max-width:min(92%,27.5rem); display:flex; align-items:flex-start; gap:10px; border-bottom-right-radius:4px; }
.hc-msg--g b{ display:block; font-family:var(--f-display); font-weight:600; color:var(--brand); }
.hc-lesson{
  justify-self:center; display:inline-flex; align-items:center; gap:8px; padding:6px 14px;
  border:1.5px solid var(--brand); border-radius:999px; background:#FFFFFF;
  font-family:var(--f-display); font-weight:600; font-size:var(--fs-small); color:var(--brand) !important;
  transition:opacity .4s ease-out, transform .4s var(--e-out);
}
.hc-lesson svg{ flex:none; width:16px; height:16px; }

/* the three states. 3 is the complete picture (also JS off and reduced motion).
   A node that has joined the session has a solid border; one that has not is dashed. */
.hc .hc-col--p .hc-node,
.hc[data-step="2"] .hc-node--g, .hc[data-step="3"] .hc-node--g{ border-style:solid; box-shadow:0 10px 20px -16px rgba(0,76,151,.6); }
.hc[data-step="1"] .hc-node--g .sgb{ opacity:.45; }
.hc .hc-link--in path,
.hc[data-step="2"] .hc-link--out path, .hc[data-step="3"] .hc-link--out path{ stroke:var(--sky); }
.hc[data-step="1"] .hc-msg--g, .hc[data-step="1"] .hc-lesson, .hc[data-step="2"] .hc-lesson{ opacity:0; transform:translateY(8px); }
.hc[data-step="1"] .hc-av--g{ visibility:hidden; }
.hc[data-step="3"] .hc-learn{ opacity:1; transform:none; }
/* the dashes run while the walk runs (three steps, under ten seconds), then stop */
.js .hc.is-run .hc-link path{ animation:hc-flow 1.2s linear 8; }
.js .hc.is-run .hc-link--out path{ animation-direction:reverse; }
@keyframes hc-flow{ to{ stroke-dashoffset:-20; } }

.hc-steps{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:24px; }
.hc-steps button{
  display:flex; align-items:center; justify-content:center; gap:12px; min-height:56px; padding:8px 16px; text-align:left; cursor:pointer;
  background:#FFFFFF; border:1.5px solid var(--brand); border-radius:var(--r-card); color:var(--ink);
  font-family:var(--f-display); font-weight:500; font-size:var(--fs-body); line-height:1.25; letter-spacing:-.01em;
  scroll-margin-top:96px; scroll-margin-bottom:160px;
  transition:background var(--d2) var(--e-out), color var(--d2) var(--e-out), box-shadow var(--d2) var(--e-out);
}
.hc-steps button[aria-checked="true"]{ background:var(--v5-select,#E3F1FA); color:var(--brand); font-weight:600; }
@media (hover:hover) and (pointer:fine){ .hc-steps button:hover{ box-shadow:0 12px 24px -18px rgba(0,76,151,.6); } }
html:not(.js) .hc-steps{ display:none; }

/* ---------- 2. what we solve: panels share one cell, so the page does not
   jump while the stepper walks through them. The head stays at the top and a
   shorter figure sits in the middle of the room the tallest panel leaves. ---------- */
.js .stp-stage{ display:grid; }
.js .stp-stage > .stp-panel{ grid-area:1 / 1; display:flex; flex-direction:column; }
.js .stp-stage > .stp-panel[hidden]{ visibility:hidden; }
.js .stp-stage > .stp-panel > .hv-fig{ margin-top:auto; margin-bottom:auto; }
.js .stp-stage > .stp-panel > p{ margin-bottom:clamp(16px,1.8vw,24px); }

/* ---------- 3. swap the AI ---------- */
.hv-swap-pick button{ min-height:48px; font-size:var(--fs-body); }

/* ---------- 4. getting started: the enterprise steps and the own-plan figure ---------- */
.ef{
  position:relative; margin:0;
  display:grid; grid-template-columns:minmax(120px,.5fr) minmax(0,1fr); grid-template-rows:auto auto; gap:0;
}
.ef-block{
  display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:16px 24px; border-radius:12px;
  background:#FFFFFF; border:1.5px solid var(--brand); color:var(--ink);
  transition:opacity .5s ease-out, transform .6s var(--e-out);
}
.ef-block b{ font-family:var(--f-display); font-weight:600; font-size:var(--fs-h3); letter-spacing:-.015em; line-height:1.2; color:var(--brand); }
.ef-block > span{ font-family:var(--f-display); font-weight:500; font-size:var(--fs-small); line-height:1.3; color:var(--ink); }
.ef-top{ grid-column:2; grid-row:1; justify-content:center; border-bottom-left-radius:0; border-bottom-right-radius:0; border-bottom-width:0; min-height:128px; }
.ef-base{ grid-column:1 / -1; grid-row:2; flex-direction:row; flex-wrap:wrap; align-items:center; border-top-right-radius:0; }
.ef-base b{ flex:1 1 100%; }
.ef-block .ef-chip{ padding:6px 14px; border:1.5px solid var(--brand); border-radius:999px; background:#FFFFFF; font-weight:600; color:var(--brand); }
.ef-arrow{ grid-column:1; grid-row:1; position:relative; align-self:stretch; min-height:128px; transition:opacity .4s ease-out; }
.ef-arrow svg{ position:absolute; right:2px; bottom:0; width:112px; height:80px; overflow:visible; }
.ef-arrow span{
  display:block; padding-right:12px; font-family:var(--f-display); font-weight:600; font-size:var(--fs-small);
  line-height:1.25; color:var(--brand);
}
.ef-arc{ fill:none; stroke:var(--brand); stroke-width:2.4; stroke-linecap:round; vector-effect:non-scaling-stroke; stroke-dasharray:100; stroke-dashoffset:0; }
.ef-head{ fill:none; stroke:var(--brand); stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.ef-flow{ fill:none; stroke:#FFFFFF; stroke-width:2.4; stroke-linecap:round; stroke-dasharray:6 94; stroke-dashoffset:100; opacity:0; }
.js .ef[data-step="3"].is-walked .ef-flow{ opacity:1; animation:ef-flow 1.6s linear 3 both; }
@keyframes ef-flow{ from{ stroke-dashoffset:100; opacity:1; } to{ stroke-dashoffset:0; opacity:1; } }
.js .ef[data-step="1"] .ef-arrow, .js .ef[data-step="1"] .ef-top{ opacity:0; }
.js .ef[data-step="1"] .ef-top, .js .ef[data-step="2"] .ef-top{ transform:translateY(12px); }
.js .ef[data-step="2"] .ef-top{ opacity:0; }
.js .ef[data-step="2"] .ef-arc{ animation:ef-draw 1.1s var(--e-out) both; }
@keyframes ef-draw{ from{ stroke-dashoffset:100; } to{ stroke-dashoffset:0; } }

.byo{
  margin:0;
  display:grid; grid-template-columns:minmax(0,1fr) clamp(32px,5vw,72px) minmax(0,1fr); align-items:center;
}
.byo-plans{ display:grid; gap:16px; }
.byo-plans span, .byo-app{
  display:flex; align-items:center; gap:8px; min-height:56px; padding:8px 16px; background:#FFFFFF;
  border:1.5px solid var(--brand); border-radius:12px;
  font-family:var(--f-display); font-weight:600; font-size:var(--fs-body); line-height:1.2; color:var(--ink);
  transition:box-shadow .4s ease-out;
}
.byo-app{ min-height:72px; color:var(--brand); }
.byo-wire{ width:100%; height:112px; overflow:visible; }
.byo-wire path{ fill:none; stroke:var(--sky); stroke-width:1.8; stroke-linecap:round; stroke-dasharray:3 7; vector-effect:non-scaling-stroke; transition:opacity .4s ease-out; }
/* as in the hero: dashed until the plan is linked, then solid and lifted */
.js .byo[data-step="1"] .byo-app{ border-style:dashed; }
.byo[data-step="2"] .byo-app, .byo:not([data-step]) .byo-app{ box-shadow:0 10px 20px -16px rgba(0,76,151,.6); }
.js .byo[data-step="1"] .byo-wire path{ opacity:0; }
.js .byo.is-run .byo-wire path{ animation:hc-flow 1.2s linear 5; }
.byo-line{ font-size:var(--fs-body); line-height:1.5; }
.byo-line b{ font-family:var(--f-display); font-weight:600; color:var(--brand); }

/* ---------- 5. the network section: this page's type, sentence case ---------- */
#serviceoverview .stg-network, #serviceoverview .stg-bar, #serviceoverview .eco-restore, #serviceoverview .stg-fallback,
#serviceoverview .duo-head h2{
  font-family:var(--f-display); text-transform:none; letter-spacing:normal;
}
#serviceoverview .stg-bar{ font-weight:600; font-size:var(--fs-small); }

/* ---------- responsive ---------- */
@media (max-width:1099px){
  .hc-stage{ grid-template-columns:minmax(0,1fr) 32px minmax(0,1.5fr) 32px minmax(0,1fr); }
}
@media (max-width:999px){
  /* one column: each caption sits centered over its own group, the three
     nodes of a group stand side by side, equally wide, and the session
     keeps a width a message reads well in */
  .hc-stage{ grid-template-columns:minmax(0,1fr); grid-template-rows:none; row-gap:12px; }
  .hc-cap, .hc-col, .hc-session{ grid-column:1; grid-row:auto; }
  .hc-cap--p{ order:1; } .hc-col--p{ order:2; } .hc-cap--s{ order:3; margin-top:16px; } .hc-session{ order:4; }
  .hc-cap--g{ order:5; margin-top:16px; } .hc-col--g{ order:6; }
  .hc-link{ display:none; }
  .hc-col{ grid-template-columns:repeat(3,minmax(0,240px)); justify-content:center; gap:12px; }
  .hc-session{ width:100%; max-width:640px; justify-self:center; }
}
@media (max-width:760px){
  /* a phone: the nodes of a group stack, still equally wide */
  .hc-col{ grid-template-columns:minmax(0,240px); gap:8px; }
  .hc-node{ min-height:48px; padding:6px 12px; }
  .hc-msg--g{ max-width:100%; }
  .hc-steps{ grid-template-columns:minmax(0,1fr); gap:8px; }
  .hc-steps button{ min-height:48px; justify-content:flex-start; }
  .hv-swap-pick{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hv-swap-pick button{ font-size:var(--fs-small); }
}
@media (max-width:560px){
  .ef{ grid-template-columns:minmax(96px,.5fr) minmax(0,1fr); }
  .ef-block{ padding:12px 16px; }
  .byo{ grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr); }
  .byo-plans span, .byo-app{ padding:8px 12px; font-size:var(--fs-small); }
}

@media (prefers-reduced-motion: reduce){
  .hc *, .ef *, .byo *{ animation:none !important; transition:none !important; }
  .ef-flow{ display:none; }
}
