/* cs-home: home redesign layer (Nov 2026).
   1. Service cards: prices split into scannable lines, calmer terms note and closing band.
   2. "Why Cornerstone": promises that assemble, a scroll-driven comparison, fit cards and CTA.
   Everything is readable without JS. cs-home.js adds html.cw-on (motion allowed) and drives
   transforms only. Reduced motion keeps the final, static layout. */

/* ============ 1. Service cards: less crowded ============ */
.hv5 .hv4-cards article>p.cs-price{display:flex;flex-direction:column;gap:4px;padding:13px 16px 14px}
.hv5 .hv4-cards article>p.cs-price>span{display:block}
.hv5 .hv4-cards article>p.cs-price>span:first-child{font-weight:600;color:var(--v5-ink,#0d1b28);letter-spacing:-.005em}
.hv5 .hv4-cards article>p.cs-price>span+span{position:relative;padding-left:15px;font-weight:400;font-size:.875rem;line-height:1.45;color:#5a666e}
.hv5 .hv4-cards article>p.cs-price>span+span::before{content:"";position:absolute;left:1px;top:.6em;width:5px;height:5px;border-radius:50%;background:var(--v5-gold,#e0c28a)}
.hv5 .hv4-cards article.hv4-feature>p.cs-price>span:first-child{color:#fff}
.hv5 .hv4-cards article.hv4-feature>p.cs-price>span+span{color:#b9c7cf}
.hv5 .hv4-cards article>p .cs-tag{display:block;margin-bottom:4px;font-weight:600;color:var(--v5-ink,#0d1b28)}
.hv5 .hv4-cards article>p.cs-price+.hv5-more{margin-top:14px}
.hv5 .hv4-cards article>p.cs-price+.hv5-more p+p{margin-top:8px}

/* Terms note: icon, quieter type */
.hv5 .hv5-terms summary{flex-wrap:nowrap;gap:18px;padding:18px 24px}
.hv5 .hv5-terms summary strong{flex:1 1 auto;font-size:.97rem;font-weight:500}
.hv5 .cs-terms-ico{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--v5-tint,#f6f2e9)}
.hv5 .cs-terms-ico svg{width:20px;height:20px;fill:none;stroke:var(--v5-bronze,#825b31);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hv5 .hv5-sum-hint{flex:none}

/* Closing band: offer card + small projects card */
.hv5 .hv4-services .cs-next{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:20px;margin-top:20px;align-items:stretch}
.hv5 .hv4-services .cs-next>.hv4-after,.hv5 .hv4-services .cs-next>#home-small-projects{margin:0;padding:28px 30px 30px;border:1px solid var(--v5-line,#e6e2d8);border-radius:22px;background:#fff}
.hv5 .hv4-services .cs-next>.hv4-after{position:relative;background:var(--v5-navy,#0d1b28);border-color:var(--v5-navy,#0d1b28);color:#d5dde3;overflow:hidden;isolation:isolate}
.hv5 .hv4-services .cs-next>.hv4-after::after{content:"";position:absolute;z-index:-1;right:-70px;bottom:-90px;width:220px;height:220px;border-radius:50%;border:1px solid rgba(224,194,138,.35);box-shadow:0 0 0 34px rgba(224,194,138,.05)}
.hv5 .cs-next-ico{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--v5-gold,#e0c28a);margin-bottom:18px}
.hv5 .cs-next-ico svg{width:20px;height:20px;fill:none;stroke:var(--v5-navy,#0d1b28);stroke-width:2;stroke-linecap:round}
.hv5 .hv4-after p.cs-q{margin:0 0 16px;font-size:clamp(1.25rem,1.7vw,1.5rem);line-height:1.25;letter-spacing:-.02em;font-weight:500;color:#fff;max-width:24ch}
.hv5 .hv4-after p.cs-go-line{margin:0 0 14px}
.hv5 .hv4-after p.cs-go-line a{display:inline-flex;align-items:center;gap:12px;min-height:46px;padding:10px 20px;border-radius:999px;background:var(--v5-gold,#e0c28a);color:var(--v5-navy,#0d1b28);font-weight:600;text-decoration:none;transition:background-color .25s ease,transform .35s var(--v5-ease,ease)}
.hv5 .hv4-after p.cs-go-line a::after{content:"\2192";transition:translate .25s var(--v5-ease,ease)}
.hv5 .hv4-after p.cs-go-line a:hover{background:#ecd5a8}
.hv5 .hv4-after p.cs-go-line a:hover::after{translate:4px 0}
.hv5 .hv4-after p.cs-go-line a:focus-visible{outline:2px solid #fff;outline-offset:3px}
.hv5 .hv4-after p.cs-fine{margin:0;font-size:.875rem;line-height:1.5;color:#aebcc4}
.hv5 .hv4-after p.cs-fine+p.cs-fine{margin-top:6px}
.hv5 .hv4-services .cs-next>#home-small-projects h3{font-size:clamp(1.25rem,1.7vw,1.5rem);line-height:1.25;margin:0 0 14px}
.hv5 .hv4-services .cs-next #home-small-projects .launch-crosslinks{display:flex;flex-direction:column;gap:0;margin:0;border-top:1px solid var(--v5-line,#e6e2d8)}
.hv5 .hv4-services .cs-next #home-small-projects .launch-crosslinks a{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:54px;margin:0;padding:12px 4px;border:0;border-bottom:1px solid var(--v5-line,#e6e2d8);border-radius:0;background:none;font-weight:500;font-size:1rem;transition:color .25s ease,padding .35s var(--v5-ease,ease)}
.hv5 .hv4-services .cs-next #home-small-projects .launch-crosslinks a:hover{background:none;color:var(--v5-bronze,#825b31);padding-left:10px}
.hv5 .hv4-services .cs-next>#home-small-projects>p{margin:16px 0 0;font-size:.92rem;line-height:1.55}

@media (max-width:900px){
  .hv5 .hv4-services .cs-next{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px){
  .hv5 .hv4-cards article>p.cs-price{padding:12px 14px}
  .hv5 .hv5-terms summary{flex-wrap:wrap;padding:16px 18px;gap:12px 14px}
  .hv5 .hv5-terms summary strong{flex:1 1 calc(100% - 60px);font-size:.95rem}
  .hv5 .hv5-sum-hint{margin-left:54px}
  .hv5 .hv4-services .cs-next>.hv4-after,.hv5 .hv4-services .cs-next>#home-small-projects{padding:24px 20px 24px}
}

/* ============ 2. Why Cornerstone ============ */
.cw{--cw-navy:#0d1b28;--cw-deep:#0a1622;--cw-gold:#e0c28a;--cw-bronze:#825b31;--cw-cyan:#1cb0c3;--cw-paper:#fafaf7;--cw-tint:#f6f2e9;--cw-line:#e6e2d8;--cw-muted:#4b5961;--cw-ease:cubic-bezier(.22,1,.36,1);
  position:relative;isolation:isolate;overflow:clip;background:var(--cw-paper);color:var(--cw-navy);padding:clamp(96px,11vw,156px) 0 clamp(96px,10vw,140px)}
.cw-anchor{position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden}
.cw h2,.cw h3,.cw p{margin:0}
.cw-wrap{position:relative}

/* Elephant watermark, parallax from cs-home.js (--cw-ey, --cw-er) */
.cw-elephant{position:absolute;z-index:-1;top:clamp(40px,6vw,90px);right:max(-120px,-8vw);width:clamp(320px,40vw,600px);opacity:.075;pointer-events:none;transform:translate3d(0,var(--cw-ey,0px),0) rotate(var(--cw-er,0deg))}
.cw-elephant img{display:block;width:100%;height:auto;filter:saturate(.7)}

/* Intro */
.cw-intro{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);grid-template-areas:"eyebrow eyebrow" "title lead";column-gap:clamp(32px,6vw,96px);row-gap:22px;align-items:end}
.cw-eyebrow{grid-area:eyebrow;display:inline-flex;align-items:center;gap:14px;font-size:.78rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--cw-bronze)}
.cw-eyebrow::before{content:"";width:34px;height:2px;border-radius:2px;background:var(--cw-gold);transform-origin:0 50%}
.cw-title{grid-area:title;font-size:clamp(2.5rem,5.2vw,4.8rem);line-height:1;letter-spacing:-.045em;font-weight:500;max-width:13ch;color:var(--cw-navy)}
.cw-lead{grid-area:lead;font-size:clamp(1.05rem,1.3vw,1.2rem);line-height:1.6;color:var(--cw-muted);max-width:40ch;padding-bottom:6px}
.cw-w{display:inline-block;overflow:clip;overflow-clip-margin:.14em;vertical-align:top}
.cw-w>span{display:inline-block}

/* Promises */
.cw-promises{position:relative;margin-top:clamp(56px,7vw,92px);--cw-e:1}
.cw-rail{position:relative;height:16px;margin:0 0 26px;--gap:22px}
.cw-rail::before,.cw-rail-fill{content:"";position:absolute;top:7px;height:2px;left:calc((100% - 2 * var(--gap)) / 6);right:calc((100% - 2 * var(--gap)) / 6);border-radius:2px;background:var(--cw-line)}
.cw-rail-fill{background:linear-gradient(90deg,var(--cw-gold),var(--cw-cyan));transform-origin:0 50%;transform:scaleX(var(--cw-e))}
.cw-rail i{position:absolute;top:0;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:var(--cw-gold);border:2px solid var(--cw-gold);box-shadow:0 0 0 6px rgba(224,194,138,.22);transition:border-color .4s var(--cw-ease),background-color .4s var(--cw-ease),box-shadow .4s var(--cw-ease)}
.cw-rail i:nth-of-type(1){left:calc((100% - 2 * var(--gap)) / 6)}
.cw-rail i:nth-of-type(2){left:50%}
.cw-rail i:nth-of-type(3){left:calc(100% - (100% - 2 * var(--gap)) / 6)}
.cw-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.cw-card{--dx:0px;--dy:0px;--dr:0deg;position:relative;display:flex;flex-direction:column;padding:28px 28px 32px;border:1px solid var(--cw-line);border-radius:22px;background:#fff;box-shadow:0 1px 2px rgba(13,27,40,.04);
  transform:translate3d(calc(var(--dx) * (1 - var(--cw-e))),calc(var(--dy) * (1 - var(--cw-e))),0) rotate(calc(var(--dr) * (1 - var(--cw-e))));transition:border-color .4s var(--cw-ease),box-shadow .5s var(--cw-ease)}
.cw-card::before{content:"";position:absolute;inset:-1px -1px auto;height:4px;border-radius:22px 22px 0 0;background:var(--cw-gold);transform-origin:0 50%;transition:transform .7s var(--cw-ease)}
.cw-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}
.cw-ico{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--cw-gold);transition:background-color .45s var(--cw-ease),transform .6s var(--cw-ease)}
.cw-ico svg{width:24px;height:24px;fill:none;stroke:var(--cw-navy);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:stroke .45s var(--cw-ease)}
.cw-num{font-size:.85rem;font-weight:600;letter-spacing:.08em;color:#b2854a;font-variant-numeric:tabular-nums}
.cw-card h3{font-size:clamp(1.22rem,1.5vw,1.42rem);line-height:1.22;letter-spacing:-.02em;font-weight:500;margin-bottom:10px}
.cw-card p{font-size:1rem;line-height:1.6;color:var(--cw-muted)}
@media (hover:hover) and (pointer:fine){
  .cw-card:hover{border-color:#d8ccb4;box-shadow:0 30px 50px -34px rgba(13,27,40,.45)}
  .cw-card:hover .cw-ico{transform:rotate(-8deg) scale(1.06)}
}

/* Experience note: quiet, static figures */
.cw-exp{display:grid;grid-template-columns:auto minmax(0,.75fr) minmax(0,1.25fr);column-gap:clamp(20px,3vw,40px);align-items:start;margin-top:clamp(56px,7vw,88px);padding:30px 0;border-top:1px solid var(--cw-line);border-bottom:1px solid var(--cw-line)}
.cw-exp-mark{display:block;width:52px;height:52px}
.cw-exp-mark img{display:block;width:100%;height:auto}
.cw-exp h3{font-size:clamp(1.3rem,1.8vw,1.6rem);line-height:1.2;letter-spacing:-.022em;font-weight:500;padding-top:8px}
.cw-exp p{font-size:1.02rem;line-height:1.65;color:var(--cw-muted);padding-top:8px;max-width:62ch}

/* Comparison: navy stage */
.cw-compare{position:relative;margin-top:clamp(56px,7vw,96px)}
.cw-stage{position:relative;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);column-gap:clamp(28px,4vw,64px);align-items:center;padding:clamp(28px,3.6vw,52px);border-radius:28px;background:var(--cw-deep);color:#fff;overflow:hidden;isolation:isolate}
.cw-stage::before{content:"";position:absolute;z-index:-1;left:-180px;top:-200px;width:520px;height:520px;border-radius:50%;background:radial-gradient(closest-side,rgba(28,176,195,.14),transparent);pointer-events:none}
.cw-stage::after{content:"";position:absolute;z-index:-1;right:-140px;bottom:-220px;width:480px;height:480px;border-radius:50%;border:1px solid rgba(224,194,138,.18);pointer-events:none}
.cw-compare.is-pinned .cw-stage{position:sticky;top:calc(var(--cs-header-h,86px) + 18px)}
.cw-compare.is-pinned .cw-stage{align-content:center}
.cw-copy h3{font-size:clamp(1.6rem,2.4vw,2.2rem);line-height:1.1;letter-spacing:-.03em;font-weight:500;color:#fff;max-width:16ch}
.cw .cw-note{margin-top:14px;font-size:.92rem;line-height:1.6;color:#a9b8c1;max-width:46ch}
.cw-diagram{position:relative;margin:22px auto 0;max-width:400px}
.cw-svg{display:block;width:100%;height:auto;overflow:visible}
.cw-tangle{fill:none;stroke:#4f6878;stroke-width:1.3;stroke-dasharray:3 6;opacity:0}
.cw-link{fill:none;stroke:var(--cw-gold);stroke-width:2;stroke-linecap:round}
.cw-hub{fill:#112739;stroke:rgba(224,194,138,.55);stroke-width:1.5}
.cw-hub-ring{fill:none;stroke:var(--cw-cyan);stroke-width:1.3;opacity:.55;transform-box:fill-box;transform-origin:center}
.cw-tool{--tx:0px;--ty:0px;--tr:0deg;--e:1;transform-box:fill-box;transform-origin:center;transform:translate(calc(var(--tx) * (1 - var(--e))),calc(var(--ty) * (1 - var(--e)))) rotate(calc(var(--tr) * (1 - var(--e))))}
.cw-tool[data-i="0"]{--tx:-34px;--ty:-22px;--tr:-16deg}
.cw-tool[data-i="1"]{--tx:30px;--ty:-30px;--tr:13deg}
.cw-tool[data-i="2"]{--tx:-28px;--ty:30px;--tr:11deg}
.cw-tool[data-i="3"]{--tx:34px;--ty:26px;--tr:-14deg}
.cw-tool rect{fill:#162f44;stroke:var(--cw-gold);stroke-width:1.4;transition:fill .4s ease,stroke .4s ease}
.cw-glyph{fill:none;stroke:var(--cw-gold);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;transition:stroke .4s ease}
.cw-tool text{font:600 9.5px/1 'DM Sans',system-ui,sans-serif;fill:#7f95a2;text-anchor:end;letter-spacing:.06em}
.cw .cw-state{display:grid;justify-items:center;margin-top:10px;font-size:.82rem;font-weight:500;text-align:center}
.cw-state>span{grid-area:1/1;display:inline-flex;align-items:center;gap:8px;transition:opacity .45s var(--cw-ease),transform .45s var(--cw-ease)}
.cw-state>span::before{content:"";width:7px;height:7px;border-radius:50%;flex:none}
.cw-state-a{color:#9db0bb;opacity:0}
.cw-state-a::before{border:1.5px dashed #9db0bb}
.cw-state-b{color:var(--cw-gold)}
.cw-state-b::before{background:var(--cw-gold)}
.cw-steps{display:flex;gap:10px;margin-top:22px}
.cw-steps[hidden],.cw-hint[hidden]{display:none}
.cw-step{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-height:44px;padding:8px 0 4px;border:0;background:none;color:#8aa0ad;font:600 .74rem/1.25 'DM Sans',system-ui,sans-serif;letter-spacing:.02em;cursor:pointer;text-align:left;transition:color .3s ease}
.cw-step::before{content:"";width:100%;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--cw-gold) calc(var(--f,0) * 100%),rgba(255,255,255,.14) 0)}
.cw-step span{display:block;max-width:100%;text-wrap:balance}
.cw-step[aria-current="step"]{color:var(--cw-gold)}
.cw-step:hover{color:#fff}
.cw-step:focus-visible{outline:2px solid var(--cw-gold);outline-offset:4px;border-radius:4px}
.cw .cw-hint{display:inline-flex;align-items:center;gap:10px;margin-top:14px;font-size:.82rem;color:#8aa0ad}
.cw-hint::before{content:"\2193";display:grid;place-items:center;width:26px;height:26px;border:1px solid rgba(255,255,255,.22);border-radius:50%;color:var(--cw-gold);animation:cw-nudge 1.8s var(--cw-ease) infinite}
@keyframes cw-nudge{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}

/* Board (ARIA table) */
.cw .cw-cap{margin-bottom:14px;font-size:.76rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--cw-gold)}
.cw-board,.cw-rows{display:grid;gap:10px}
.cw-row{display:grid;grid-template-columns:minmax(0,.66fr) minmax(0,1fr) minmax(0,1.14fr);gap:10px;align-items:stretch}
.cw-row-h>div{padding:0 16px 2px;font-size:.78rem;line-height:1.35;font-weight:500;color:#8ea2ae}
.cw-row-h>div:first-child{padding-left:18px}
.cw-row-h>div:last-child{color:var(--cw-gold)}
.cw-topic{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:12px 6px 12px 16px;border-left:2px solid rgba(255,255,255,.14);transition:border-color .4s var(--cw-ease)}
.cw-topic b{font-size:.72rem;font-weight:600;letter-spacing:.1em;color:#6f8794;transition:color .4s var(--cw-ease)}
.cw-topic span{font-size:1.02rem;line-height:1.25;font-weight:500;color:#e6edf1;transition:color .4s var(--cw-ease)}
.cw-sep{padding:14px 16px;border:1px dashed rgba(255,255,255,.22);border-radius:14px;font-size:.93rem;line-height:1.5;color:#b3c2ca;transition:opacity .5s var(--cw-ease)}
.cw-cs{position:relative;padding:14px 16px 14px 48px;border-radius:14px;background:#f6efe1;color:var(--cw-navy);font-size:.93rem;line-height:1.5;font-weight:500}
.cw-tick{position:absolute;left:14px;top:14px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--cw-navy)}
.cw-tick svg{width:14px;height:14px;fill:none;stroke:var(--cw-gold);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.cw-cl{display:none}
/* Lit overlay (cloned by JS, aria-hidden): cream wipe with navy text over the dark base */
.cw-lit{position:absolute;inset:0;padding:inherit;border-radius:inherit;background:#f6efe1;color:var(--cw-navy);font-weight:500;clip-path:inset(0 calc((1 - var(--p,1)) * 100%) 0 0 round 14px);pointer-events:none}

/* Fit */
.cw-fit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:clamp(56px,7vw,92px);--cw-f:1}
.cw-fit article{position:relative;padding:clamp(28px,3.2vw,42px);border-radius:24px;border:1px solid var(--cw-line);background:#fff;transition:border-color .4s var(--cw-ease),box-shadow .5s var(--cw-ease)}
.cw-fit-yes{transform:translate3d(calc(-56px * (1 - var(--cw-f))),0,0)}
.cw-fit .cw-fit-no{background:var(--cw-tint);border-color:transparent;transform:translate3d(calc(56px * (1 - var(--cw-f))),0,0)}
.cw-fit-ico{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;margin-bottom:22px;background:var(--cw-navy)}
.cw-fit-ico svg{width:22px;height:22px;fill:none;stroke:var(--cw-gold);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:calc(24 * (1 - var(--cw-f)))}
.cw-fit-no .cw-fit-ico{background:transparent;border:1.5px solid #b9ab92}
.cw-fit-no .cw-fit-ico svg{stroke:var(--cw-bronze)}
.cw-fit h3{font-size:clamp(1.3rem,1.8vw,1.6rem);line-height:1.2;letter-spacing:-.022em;font-weight:500;margin-bottom:12px}
.cw-fit p{font-size:1.02rem;line-height:1.6;color:var(--cw-muted);max-width:46ch}
@media (hover:hover) and (pointer:fine){
  .cw-fit-yes:hover{border-color:#d8ccb4;box-shadow:0 30px 50px -34px rgba(13,27,40,.4)}
}

/* CTA */
.cw-cta{margin-top:34px;display:flex;justify-content:center}
.cw-btn{--mx:0px;--my:0px;display:inline-flex;align-items:center;gap:16px;min-height:60px;padding:9px 9px 9px 28px;border-radius:999px;background:var(--cw-navy);color:#fff;font-weight:600;font-size:1.02rem;letter-spacing:-.005em;text-decoration:none;transform:translate3d(var(--mx),var(--my),0);transition:background-color .3s ease,box-shadow .4s var(--cw-ease),transform .45s var(--cw-ease)}
.cw-btn i{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--cw-gold);transition:transform .45s var(--cw-ease)}
.cw-btn i svg{width:18px;height:18px;fill:none;stroke:var(--cw-navy);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cw-btn:hover,.cw-btn:focus-visible{background:#15304a;box-shadow:0 22px 40px -22px rgba(13,27,40,.7);color:#fff}
.cw-btn:hover i{transform:translateX(3px)}
.cw-btn:focus-visible{outline:2px solid var(--cw-bronze);outline-offset:4px}
.cw-btn:active{transform:translate3d(var(--mx),var(--my),0) scale(.98)}

/* ---- Motion states (only with html.cw-on, set by cs-home.js). Reveals are two-way; --rv-dir (-1 above, 1 below) picks the side. ---- */
html.cw-on .cw-eyebrow,html.cw-on .cw-lead,html.cw-on .cw-exp,html.cw-on .cw-copy>h3,html.cw-on .cw-note,html.cw-on .cw-board-wrap,html.cw-on .cw-cta{transition:opacity .9s var(--cw-ease),translate 1s var(--cw-ease)}
html.cw-on .cw-eyebrow::before{transition:transform .9s var(--cw-ease) .1s}
html.cw-on .cw-intro:not(.is-in) .cw-eyebrow::before{transform:scaleX(0)}
html.cw-on .cw-intro:not(.is-in) .cw-eyebrow,html.cw-on .cw-intro:not(.is-in) .cw-lead{opacity:0;translate:0 calc(var(--rv-dir,1) * 18px)}
html.cw-on .cw-lead{transition-delay:.3s}
html.cw-on .cw-w>span{transition:transform 1s var(--cw-ease);transition-delay:calc(var(--i) * 55ms + 80ms)}
html.cw-on .cw-intro:not(.is-in) .cw-w>span{transform:translateY(calc(var(--rv-dir,1) * 110%))}
html.cw-on .cw-exp:not(.is-in),html.cw-on .cw-cta:not(.is-in){opacity:0;translate:0 calc(var(--rv-dir,1) * 22px)}
html.cw-on .cw-compare:not(.is-in) .cw-copy>h3,html.cw-on .cw-compare:not(.is-in) .cw-note,html.cw-on .cw-compare:not(.is-in) .cw-board-wrap{opacity:0;translate:0 calc(var(--rv-dir,1) * 22px)}
html.cw-on .cw-note{transition-delay:.12s}
html.cw-on .cw-board-wrap{transition-delay:.2s}
html.cw-on .cw-rail i:not(.is-on){background:var(--cw-paper);border-color:var(--cw-line);box-shadow:none}
html.cw-on .cw-card:not(.is-on)::before{transform:scaleX(0)}
html.cw-on .cw-card:not(.is-on) .cw-ico{background:var(--cw-tint)}
html.cw-on .cw-card:not(.is-on) .cw-ico svg{stroke:var(--cw-bronze)}
html.cw-on .cw-card[data-i="0"]{--dx:-64px;--dy:46px;--dr:-3.5deg}
html.cw-on .cw-card[data-i="1"]{--dx:0px;--dy:84px;--dr:0deg}
html.cw-on .cw-card[data-i="2"]{--dx:64px;--dy:46px;--dr:3.5deg}
/* Board: dark base; the lit overlay wipes in per row */
html.cw-on .cw-cs.has-lit{background:rgba(255,255,255,.06);color:#c9d4da}
html.cw-on .cw-cs.has-lit>.cw-tick{background:transparent;box-shadow:inset 0 0 0 1.5px rgba(224,194,138,.6)}
html.cw-on .cw-cs.has-lit>.cw-tick svg{stroke:rgba(224,194,138,.6)}
html.cw-on .cw-row.is-active .cw-topic{border-left-color:var(--cw-gold)}
html.cw-on .cw-row.is-active .cw-topic span,html.cw-on .cw-row.is-active .cw-topic b{color:var(--cw-gold)}
html.cw-on .cw-row.is-done .cw-topic{border-left-color:rgba(224,194,138,.45)}
html.cw-on .cw-row.is-done .cw-sep{opacity:.72}
html.cw-on .cw-compare .cw-tangle{opacity:calc(1 - var(--P,1))}
html.cw-on .cw-tool:not(.is-on) rect{fill:#13283a;stroke:#3f5867}
html.cw-on .cw-tool:not(.is-on) .cw-glyph{stroke:#8ea4b0}
html.cw-on .cw-hub-ring{opacity:0;transition:opacity .6s ease}
html.cw-on .cw-compare.is-done .cw-hub-ring{opacity:.6;animation:cw-pulse 2.6s var(--cw-ease) infinite}
@keyframes cw-pulse{0%{transform:scale(.92);opacity:.7}70%{transform:scale(1.16);opacity:0}100%{transform:scale(1.16);opacity:0}}
html.cw-on .cw-compare:not(.is-done) .cw-state-a{opacity:1}
html.cw-on .cw-compare:not(.is-done) .cw-state-b{opacity:0;transform:translateY(6px)}
html.cw-on .cw-compare.is-done .cw-state-a{opacity:0;transform:translateY(-6px)}
html.cw-on .cw-compare.is-pinned .cw-hint{opacity:clamp(0,calc(1 - var(--P,0) * 8),1);transition:opacity .3s linear}

/* ---- Responsive ---- */
@media (max-width:1100px){
  .cw-stage{grid-template-columns:minmax(0,1fr);row-gap:32px}
  .cw-copy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);column-gap:32px;align-items:center}
  .cw-copy>h3,.cw-copy>.cw-note{grid-column:1}
  .cw-diagram{grid-column:2;grid-row:1/span 3;margin:0;max-width:340px;width:100%;justify-self:center}
}
@media (max-width:900px){
  .cw-intro{grid-template-columns:minmax(0,1fr);grid-template-areas:"eyebrow" "title" "lead";row-gap:20px}
  .cw-lead{max-width:52ch}
  .cw-exp{grid-template-columns:auto minmax(0,1fr);row-gap:10px}
  .cw-exp p{grid-column:1/-1;padding-top:6px}
  .cw-cards{grid-template-columns:minmax(0,1fr);gap:16px}
  .cw-rail{display:none}
  html.cw-on .cw-card[data-i="0"]{--dx:-26px;--dy:36px;--dr:-1.5deg}
  html.cw-on .cw-card[data-i="1"]{--dx:26px;--dy:36px;--dr:1.5deg}
  html.cw-on .cw-card[data-i="2"]{--dx:-26px;--dy:36px;--dr:-1.5deg}
}
@media (max-width:760px){
  .cw{padding:84px 0 88px}
  .cw-elephant{top:24px;right:-110px;width:300px;opacity:.06}
  .cw-title{font-size:clamp(2.3rem,10.4vw,3rem);max-width:14ch}
  .cw-card{padding:24px 22px 26px}
  .cw-card-top{margin-bottom:20px}
  .cw-stage{padding:28px 16px 18px;border-radius:24px}
  .cw-copy{display:block}
  .cw-diagram{margin:20px auto 0;max-width:300px}
  .cw-head{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .cw-board-wrap{margin-top:8px}
  .cw-rows{gap:12px}
  .cw-row{grid-template-columns:minmax(0,1fr);gap:8px;padding:16px 12px 12px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(255,255,255,.025)}
  .cw-topic{flex-direction:row;align-items:baseline;gap:10px;padding:0 4px 4px;border-left:0}
  .cw-cl{display:block;margin-bottom:4px;font-size:.68rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#8ea2ae}
  .cw-cs .cw-cl,.cw-lit .cw-cl{color:var(--cw-bronze)}
  html.cw-on .cw-cs.has-lit>.cw-cl{color:#8ea2ae}
  .cw-cs{padding-left:16px}
  .cw-tick{position:static;float:left;margin:1px 10px 0 0}
  .cw-fit{grid-template-columns:minmax(0,1fr);gap:14px}
  .cw-fit-yes{transform:translate3d(calc(-28px * (1 - var(--cw-f))),0,0)}
  .cw-fit .cw-fit-no{transform:translate3d(calc(28px * (1 - var(--cw-f))),0,0)}
  .cw-btn{width:100%;justify-content:space-between}
  .cw-exp-mark{width:44px;height:44px}
}

@media (prefers-reduced-motion:reduce){
  .cw-card,.cw-fit article,.cw-tool,.cw-btn,.cw-elephant{transform:none!important;transition:none!important}
  .cw-hint::before,.cw-hub-ring{animation:none!important}
}
@media (forced-colors:active){
  .cw-elephant,.cw-stage::before,.cw-stage::after,.cw-lit{display:none}
}

/* ============ Phones & tablets: services stack cleanly ============ */
/* Stacked layout (<=1100px): the label sits in the flow above its cards. The scroll depth layer (home-v5.js
   --hv5-par) is switched off here so no block slides into the one after it on touch screens. */
@media (max-width:1100px){
  .hv5 .hv4-services :is(.hv4-glabel,.hv4-cards>article,.hv5-terms,.hv4-after,#home-small-projects){--hv5-par:0px!important}
  .hv5 .hv4-glabel{top:auto!important;transform:none}
  .hv5 .hv4-glabel .n{transform:none!important}
  .hv5 .hv4-group{gap:22px}
}
