/* ============================================================
   CASE STUDIES — bare logos left · live terminal right
   ============================================================ */
.cases{position:relative;z-index:2;max-width:1420px;margin:0 auto;padding:100px 24px 130px}

.cases-head{text-align:center;margin-bottom:52px}
.cases-kicker{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:700;letter-spacing:.24em;
  text-transform:uppercase;color:#7dd3fc;margin-bottom:14px}
.cases-kicker::before{content:"";width:6px;height:6px;border-radius:50%;background:#38bdf8;box-shadow:0 0 9px #38bdf8}
.cases-h2{font-family:var(--font-d);font-size:clamp(30px,3.4vw,44px);font-weight:800;letter-spacing:-.024em;line-height:1.1;color:#fff}
.cases-rot{font-size:clamp(24px,2.9vw,38px)}
.cases-grad{background:var(--accent-grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.cases-sub{margin:14px auto 0;max-width:520px;font-size:15px;line-height:1.6;color:var(--txt-soft)}

.cases-wrap{display:grid;grid-template-columns:300px minmax(0,1fr);gap:64px;align-items:start}

/* ---------- left: bare logos, pulled down ---------- */
.cs-logogrid{display:grid;grid-template-columns:repeat(2,1fr);gap:38px 20px;position:sticky;top:110px;padding-top:14px}
.cs-tile{position:relative;display:grid;place-items:center;height:88px;border-radius:12px;padding:10px;
  background:linear-gradient(180deg,rgba(30,58,138,.16) 0%,rgba(15,23,42,.1) 55%),linear-gradient(180deg,#101c3a 0%,#0a132a 100%);
  border:1px solid rgba(96,165,250,.3);
  box-shadow:0 6px 0 #071228,inset 0 1px 0 rgba(148,184,255,.14),0 20px 44px -20px rgba(0,0,0,.8);
  cursor:pointer;font-family:inherit;
  transition:transform .2s var(--ease-pop),border-color .25s ease,box-shadow .2s ease;
  opacity:0;transform:translateY(-110px)}
.cs-tile::before,.cs-tile::after{content:"";position:absolute;width:10px;height:10px;pointer-events:none;
  transition:border-color .2s ease}
.cs-tile::before{top:-3px;left:-3px;border-top:2px solid rgba(125,211,252,.55);border-left:2px solid rgba(125,211,252,.55);border-top-left-radius:4px}
.cs-tile::after{bottom:-3px;right:-3px;border-bottom:2px solid rgba(125,211,252,.55);border-right:2px solid rgba(125,211,252,.55);border-bottom-right-radius:4px}
.cs-tile.pull{animation:tilePull .8s cubic-bezier(.25,1.3,.35,1) forwards}
@keyframes tilePull{0%{opacity:0;transform:translateY(-110px) scale(.85)}70%{opacity:1;transform:translateY(6px) scale(1.02)}100%{opacity:1;transform:none}}
.cs-tile img{height:24px;width:auto;max-width:118px;object-fit:contain;opacity:.96;
  filter:drop-shadow(0 8px 20px rgba(37,99,235,.5))}
.cs-tile.mark img{height:38px}
.cs-tile.has:hover{transform:translateY(-3px);border-color:rgba(125,211,252,.6);
  box-shadow:0 9px 0 #071228,inset 0 1px 0 rgba(148,184,255,.2),0 22px 50px -18px rgba(59,130,246,.5)}
.cs-tile.has:active{transform:translateY(3px);box-shadow:0 2px 0 #071228,inset 0 1px 0 rgba(148,184,255,.14)}
.cs-tile.none{opacity:0;cursor:default}
.cs-tile.none.pull{animation:tilePullDim .8s cubic-bezier(.25,1.3,.35,1) forwards}
@keyframes tilePullDim{0%{opacity:0;transform:translateY(-110px) scale(.85)}70%{opacity:.4;transform:translateY(6px) scale(1.02)}100%{opacity:.4;transform:none}}
.cs-tile.on{transform:translateY(4px);border-color:rgba(125,211,252,.8);
  box-shadow:0 1px 0 #071228,inset 0 1px 0 rgba(148,184,255,.2),0 0 32px -6px rgba(56,189,248,.6)}
.cs-tile.on::before,.cs-tile.on::after{border-color:#7dd3fc;width:14px;height:14px}
.cs-tile:focus-visible{outline:2px solid var(--cy);outline-offset:4px}
.cs-mark{position:absolute;top:-17px;left:50%;transform:translateX(-50%) rotate(-2deg);
  font-size:8px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#fff;
  padding:2.5px 8px;border-radius:5px;white-space:nowrap;
  background:linear-gradient(135deg,#38bdf8 0%,#1d4ed8 100%);
  border:1px solid rgba(186,230,253,.5);
  box-shadow:0 6px 14px -6px rgba(37,99,235,.8),inset 0 1px 0 rgba(255,255,255,.4);
  transition:transform .25s var(--ease-pop)}
.cs-tile.has:hover .cs-mark,.cs-tile.on .cs-mark{transform:translateX(-50%) rotate(0deg) scale(1.06)}
.cs-tile .cs-lock{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;
  background:linear-gradient(150deg,rgba(148,184,255,.12),rgba(148,184,255,.03));
  border:1px solid rgba(253,230,138,.4)}
.cs-tile .cs-lock svg{width:18px;height:18px;fill:none;stroke:#fde68a;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- right: OPEN terminal on the field ---------- */
.cs-term{position:relative;padding:4px 6px 10px}
.ct-aura{position:absolute;inset:-40px -60px;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse 75% 60% at 45% 30%,rgba(37,99,235,.14),transparent 70%)}
.ct-glyphs{position:absolute;inset:0;pointer-events:none;z-index:0}
.ct-glyphs i{position:absolute;font-family:ui-monospace,Menlo,monospace;font-style:normal;font-size:11px;color:rgba(125,211,252,.16);
  animation:glyphDrift 9s ease-in-out infinite alternate}
.ct-glyphs i:nth-child(1){right:4%;top:12%}
.ct-glyphs i:nth-child(2){right:12%;top:58%;animation-delay:-3s}
.ct-glyphs i:nth-child(3){left:-3%;top:38%;animation-delay:-5s}
.ct-glyphs i:nth-child(4){right:2%;top:84%;animation-delay:-2s}
.ct-glyphs i:nth-child(5){left:-2%;top:74%;animation-delay:-6s}
.ct-glyphs i:nth-child(6){right:20%;top:2%;animation-delay:-4s}
@keyframes glyphDrift{from{transform:translateY(-6px);opacity:.5}to{transform:translateY(6px);opacity:1}}

.ct-bar{position:relative;z-index:1;display:flex;align-items:center;gap:10px;padding:0 2px 12px;
  border-bottom:1px solid rgba(96,165,250,.22);
  mask-image:linear-gradient(90deg,#000 78%,transparent);
  -webkit-mask-image:linear-gradient(90deg,#000 78%,transparent)}
.ct-title{font-family:ui-monospace,Menlo,monospace;font-size:11px;font-weight:700;letter-spacing:.12em;color:#6d8cbd}
.ct-client{margin-left:auto;display:inline-flex;align-items:center;padding-right:64px}
.ct-client img{height:17px;width:auto;max-width:96px;object-fit:contain;opacity:.9;
  filter:drop-shadow(0 0 12px rgba(56,189,248,.4))}
.ct-client svg{width:15px;height:15px;fill:none;stroke:#fde68a;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.ct-body{position:relative;z-index:1;padding:30px 2px 0;font-family:var(--font-b);font-size:15px;line-height:1.8;
  color:#a9bcd8;min-height:640px}
.ct-line{display:block;opacity:0;transform:translateY(7px)}
.ct-line.in{animation:ctIn .42s cubic-bezier(.25,.6,.25,1) forwards}
@keyframes ctIn{to{opacity:1;transform:none}}
.ct-cmd{display:inline-block;font-family:ui-monospace,Menlo,monospace;font-size:12px;color:#e2e8f0;font-weight:600;margin:10px 0 6px;
  text-shadow:0 0 14px rgba(56,189,248,.25)}
.ct-cmd .pr{color:#38bdf8;font-weight:800;margin-right:8px;text-shadow:0 0 10px rgba(56,189,248,.8)}
.ct-cmd .cargs{color:#7dd3fc}
.ct-dim{color:#5f7cae}
.ct-caret{display:inline-block;width:7px;height:13px;background:#38bdf8;vertical-align:-2px;margin-left:2px;
  box-shadow:0 0 10px rgba(56,189,248,.8);animation:caretBlink 1s steps(1) infinite}

/* client header inside terminal */
.ct-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.ct-hlogo{flex-shrink:0;height:54px;min-width:54px;border-radius:14px;display:grid;place-items:center;padding:0 15px;
  background:linear-gradient(150deg,rgba(148,184,255,.13),rgba(148,184,255,.03));
  border:1px solid rgba(148,184,255,.26);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 12px 26px -12px rgba(0,0,0,.75)}
.ct-hlogo img{height:26px;width:auto;max-width:116px;object-fit:contain;filter:drop-shadow(0 0 14px rgba(56,189,248,.35))}
.ct-hlogo svg{width:20px;height:20px;fill:none;stroke:#fde68a;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ct-head .ct-meta{margin-left:auto;margin-bottom:0}
.ct-ndaline{display:inline-block;margin-top:8px;font-family:ui-monospace,Menlo,monospace;font-size:10.5px;color:#fde68a}
.ct-cols{display:grid;grid-template-columns:1fr 1.35fr;gap:12px 64px;margin-top:12px}
.ct-cols.solo{grid-template-columns:1fr}
.ct-col{min-width:0}

.ct-who{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:4px 0 1px}
.ct-who{display:flex;flex-direction:column;gap:1px}
.ct-who b{font-family:var(--font-d);font-size:24px;font-weight:800;color:#fff;letter-spacing:-.01em;text-shadow:0 0 24px rgba(56,189,248,.3)}
.ct-who span{font-size:11.5px;color:#7ea2d4}
.ct-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px 22px;font-family:ui-monospace,Menlo,monospace;font-size:12px;color:#7ea2d4;margin:6px 0 4px}
.ct-meta .mi{display:inline-flex;align-items:center;gap:6px}
.ct-meta .mi svg{width:15px;height:15px;fill:none;stroke:#7dd3fc;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.ct-meta a{color:#7dd3fc}
.ct-meta a:hover{color:#fff}
.ct-meta .nda{color:#fde68a}

/* headline break-out */
.ct-headline{font-family:var(--font-d);font-size:clamp(26px,2.5vw,36px);font-weight:800;letter-spacing:-.018em;line-height:1.24;
  color:#fff;margin:22px 0 6px;max-width:44ch;
  filter:drop-shadow(0 10px 30px rgba(2,6,18,.8))}
.ct-headline em{font-style:normal;background:var(--accent-grad);-webkit-background-clip:text;background-clip:text;color:transparent}

/* metrics: big numbers, hairlines, no boxes */
.ct-metrics{display:flex;align-items:stretch;flex-wrap:wrap;gap:18px;margin:26px 0 22px}
.ct-m{flex:1;min-width:160px;position:relative;padding:22px 26px 20px;
  border-radius:16px 11px 17px 12px / 12px 17px 11px 16px;
  background:
    linear-gradient(180deg,rgba(148,184,255,.16) 0%,rgba(148,184,255,0) 34%),
    linear-gradient(160deg,#16295a 0%,#0d1b3d 45%,#081228 100%);
  border:1px solid rgba(125,211,252,.5);
  box-shadow:
    0 7px 0 #0a1c3e,0 13px 0 rgba(4,10,26,.6),
    inset 0 2px 0 rgba(255,255,255,.16),inset 0 -8px 18px rgba(4,10,26,.55),
    0 26px 55px -22px rgba(0,0,0,.85),0 8px 34px -10px rgba(37,99,235,.45);
  transition:transform .25s var(--ease-pop),box-shadow .25s ease}
.ct-m:nth-child(1){transform:rotate(-.7deg)}
.ct-m:nth-child(2){transform:rotate(.5deg) translateY(3px)}
.ct-m:nth-child(3){transform:rotate(-.4deg)}
.ct-m:hover{transform:translateY(-4px) rotate(0deg);
  box-shadow:
    0 11px 0 #0a1c3e,0 18px 0 rgba(4,10,26,.55),
    inset 0 2px 0 rgba(255,255,255,.2),inset 0 -8px 18px rgba(4,10,26,.5),
    0 30px 60px -22px rgba(0,0,0,.85),0 12px 44px -10px rgba(56,189,248,.6)}
.ct-m::before,.ct-m::after{content:"";position:absolute;width:11px;height:11px;pointer-events:none}
.ct-m::before{top:-3px;left:-3px;border-top:2px solid rgba(125,211,252,.7);border-left:2px solid rgba(125,211,252,.7);border-top-left-radius:4px}
.ct-m::after{bottom:-3px;right:-3px;border-bottom:2px solid rgba(125,211,252,.7);border-right:2px solid rgba(125,211,252,.7);border-bottom-right-radius:4px}
.ct-m b{display:block;font-family:var(--font-d);font-size:clamp(30px,2.7vw,40px);font-weight:800;letter-spacing:-.02em;
  background:var(--accent-grad);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 16px rgba(56,189,248,.35));font-variant-numeric:tabular-nums;line-height:1.1}
.ct-m i{display:flex;align-items:center;gap:7px;font-style:normal;font-family:ui-monospace,Menlo,monospace;
  font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#7ea2d4;margin-top:8px}
.ct-m i svg{width:14px;height:14px;fill:none;stroke:#38bdf8;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 0 6px rgba(56,189,248,.5))}

/* diff-style before/after */
.ct-sec{display:inline-flex;align-items:center;gap:10px;margin:26px 0 13px;
  font-family:var(--font-d);font-size:16px;font-weight:800;letter-spacing:-.005em;color:#dbeafe}
.ct-sec::before{content:"";width:6px;height:6px;border-radius:50%;background:#38bdf8;box-shadow:0 0 9px #38bdf8}
.ct-sec.bad{color:#fca5a5}
.ct-sec.bad::before{background:#f87171;box-shadow:0 0 9px #f87171}
.ct-sec.good{color:#6ee7b7}
.ct-sec.good::before{background:#34d399;box-shadow:0 0 9px #34d399}
.ct-diff{margin:0 0 6px}
.ct-diff .dl{display:flex;gap:15px;padding:7px 0}
.ct-diff .dm{flex-shrink:0;width:14px;text-align:center;font-family:ui-monospace,Menlo,monospace;font-weight:800;
  text-shadow:0 0 10px currentColor}
.ct-diff .del .dm{color:#f87171}
.ct-diff .del .dt{color:#8d7f93}
.ct-diff .add .dm{color:#34d399}
.ct-diff .add .dt{color:#cbdcf5}
.ct-diff .dt{line-height:1.72;font-size:15px}

/* prospects inline */
.ct-pros{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:10px}
.ct-pro3{position:relative;display:flex;flex-direction:column;gap:4px;padding:16px 18px 16px 22px;min-width:0}
.ct-pro3::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:2.5px;border-radius:3px;
  background:linear-gradient(180deg,#60a5fa,#22d3ee);box-shadow:0 0 12px rgba(56,189,248,.6)}
.ct-pro3 b{font-family:var(--font-d);font-size:20px;font-weight:800;color:#fff;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-pro3 .ph{font-family:ui-monospace,Menlo,monospace;font-size:11px;font-weight:700;color:#7dd3fc;letter-spacing:.06em}
.ct-pro3 .pd{font-size:12.5px;color:#7ea2d4;line-height:1.5}

/* ---------- responsive ---------- */
@media (max-width:1020px){
  .cases-wrap{grid-template-columns:1fr;gap:40px}
  .cs-logogrid{position:static;grid-template-columns:repeat(3,1fr);gap:40px 20px}
}
@media (max-width:900px){
  .ct-cols{grid-template-columns:1fr}
  .ct-head .ct-meta{margin-left:0;width:100%}
}
@media (max-width:640px){
  .cases{padding:64px 18px 80px}
  .ct-pros{grid-template-columns:1fr}
  .cs-logogrid{grid-template-columns:repeat(2,1fr);gap:34px 16px}
  .cs-tile img{height:18px;max-width:100px}
  .cs-tile.mark img{height:30px}
  .ct-body{padding:16px 16px 20px;font-size:11.5px;min-height:0}
  .ct-m{min-width:100px;padding:11px 13px 10px}
}

@media (prefers-reduced-motion:reduce){
  .cs-tile{opacity:1!important;transform:none!important;animation:none!important}
  .cs-tile.none{opacity:.4!important}
  .ct-glyphs i{animation:none}
  .ct-line{opacity:1!important;transform:none!important;animation:none!important}
}

/* ============================================================
   SHINE & MOTION
   ============================================================ */
/* tiles: idle bob + periodic light sweep */
.cs-tile img{animation:tileBob 5s ease-in-out infinite alternate}
.cs-tile:nth-child(2n) img{animation-delay:-1.8s}
.cs-tile:nth-child(3n) img{animation-delay:-3.2s}
@keyframes tileBob{from{transform:translateY(-2px)}to{transform:translateY(3px)}}
.tsh{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;font-style:normal}
.tsh::after{content:"";position:absolute;top:0;left:-70%;width:55%;height:100%;
  background:linear-gradient(105deg,transparent 0%,rgba(186,230,253,.14) 50%,transparent 100%);
  animation:tshSweep 5.5s cubic-bezier(.4,0,.2,1) infinite}
.cs-tile:nth-child(1) .tsh::after{animation-delay:0s}
.cs-tile:nth-child(2) .tsh::after{animation-delay:.9s}
.cs-tile:nth-child(3) .tsh::after{animation-delay:1.8s}
.cs-tile:nth-child(4) .tsh::after{animation-delay:2.7s}
.cs-tile:nth-child(5) .tsh::after{animation-delay:3.6s}
.cs-tile:nth-child(6) .tsh::after{animation-delay:4.5s}
@keyframes tshSweep{0%{left:-70%}55%{left:130%}100%{left:130%}}
.cs-tile.on{opacity:1;animation:tileGlowPulse 2.6s ease-in-out infinite}
@keyframes tileGlowPulse{
  0%,100%{box-shadow:0 1px 0 #071228,inset 0 1px 0 rgba(148,184,255,.2),0 0 26px -6px rgba(56,189,248,.5)}
  50%{box-shadow:0 1px 0 #071228,inset 0 1px 0 rgba(148,184,255,.24),0 0 44px -6px rgba(56,189,248,.85)}}

/* KPI boxes: sweep + breathing numbers + bracket pulse */
.msh{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;font-style:normal}
.msh{background:linear-gradient(115deg,rgba(255,255,255,.09) 0%,rgba(255,255,255,0) 38%)}
.msh::after{content:"";position:absolute;top:0;left:-70%;width:55%;height:100%;
  background:linear-gradient(105deg,transparent 0%,rgba(186,230,253,.2) 50%,transparent 100%);
  animation:tshSweep 4.8s cubic-bezier(.4,0,.2,1) infinite}
.ct-m:nth-child(2) .msh::after{animation-delay:1.6s}
.ct-m:nth-child(3) .msh::after{animation-delay:3.2s}
.ct-m b{animation:numBreath 3.4s ease-in-out infinite}
@keyframes numBreath{0%,100%{filter:drop-shadow(0 0 12px rgba(56,189,248,.3))}50%{filter:drop-shadow(0 0 26px rgba(56,189,248,.6))}}
.ct-m::before,.ct-m::after{animation:bracketPulse 2.8s ease-in-out infinite}
.ct-m:nth-child(2)::before,.ct-m:nth-child(2)::after{animation-delay:.9s}
.ct-m:nth-child(3)::before,.ct-m:nth-child(3)::after{animation-delay:1.8s}
@keyframes bracketPulse{0%,100%{border-color:rgba(125,211,252,.45)}50%{border-color:rgba(125,211,252,1)}}

/* prospect accent bars pulse */
.ct-pro3::before{animation:barPulse 3s ease-in-out infinite}
.ct-pro3:nth-child(2)::before{animation-delay:1s}
.ct-pro3:nth-child(3)::before{animation-delay:2s}
@keyframes barPulse{0%,100%{box-shadow:0 0 8px rgba(56,189,248,.4)}50%{box-shadow:0 0 20px rgba(56,189,248,.9)}}

/* aura breathing behind the study */
.ct-aura{animation:auraBreath 7s ease-in-out infinite alternate}
@keyframes auraBreath{from{opacity:.7;transform:scale(.98)}to{opacity:1;transform:scale(1.04)}}

@media (prefers-reduced-motion:reduce){
  .cs-tile img,.tsh::after,.msh::after,.ct-m b,.ct-m::before,.ct-m::after,.ct-pro3::before,.ct-aura,.cs-tile.on{animation:none!important}
}

/* meetings KPI expander */
.ct-m-x{cursor:pointer}
.mx{position:absolute;right:10px;bottom:9px;font-style:normal;font-family:ui-monospace,Menlo,monospace;
  font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#7dd3fc;
  background:rgba(56,189,248,.12);border:1px solid rgba(56,189,248,.4);padding:3px 8px;border-radius:6px;
  animation:mxPulse 2.4s ease-in-out infinite}
@keyframes mxPulse{0%,100%{box-shadow:0 0 0 0 rgba(56,189,248,.35)}50%{box-shadow:0 0 14px 2px rgba(56,189,248,.45)}}
.ct-m-x.open .mx{color:#fff;background:rgba(56,189,248,.3);animation:none}
.ct-mx-panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s var(--ease-pop);position:relative;margin-top:0}
.ct-mx-panel.open{grid-template-rows:1fr;margin-top:16px}
.ct-mx-inner{overflow:hidden;min-height:0}
.ct-mx-panel::before{content:"";position:absolute;top:-7px;left:var(--ax,20%);width:14px;height:14px;transform:translateX(-50%) rotate(45deg);
  background:#0d1b3d;border-left:1px solid rgba(125,211,252,.5);border-top:1px solid rgba(125,211,252,.5);
  opacity:0;transition:opacity .3s ease .15s}
.ct-mx-panel.open::before{opacity:1}
.ct-mx-panel .ct-pros{padding:18px 20px 14px;border-radius:14px;margin-top:0;
  background:linear-gradient(180deg,rgba(19,35,72,.75),rgba(8,18,40,.8));
  border:1px solid rgba(125,211,252,.32);
  box-shadow:inset 0 1px 0 rgba(148,184,255,.12),0 20px 44px -20px rgba(0,0,0,.8)}
@media (prefers-reduced-motion:reduce){.mx{animation:none}}

/* ============================================================
   KPI hardware-module details + light section background
   ============================================================ */
/* module details: left power slot, index etch, rivets */
.msh::before{content:"";position:absolute;left:7px;top:16px;bottom:16px;width:3px;border-radius:3px;
  background:linear-gradient(180deg,#60a5fa,#22d3ee);
  box-shadow:0 0 12px rgba(56,189,248,.7);
  animation:barPulse 3s ease-in-out infinite}
.msh{background:
  radial-gradient(2.5px 2.5px at calc(100% - 12px) calc(100% - 12px),rgba(148,184,255,.5) 45%,transparent 55%),
  radial-gradient(2.5px 2.5px at 12px calc(100% - 12px),rgba(148,184,255,.35) 45%,transparent 55%),
  linear-gradient(115deg,rgba(255,255,255,.09) 0%,rgba(255,255,255,0) 38%)}
.midx{position:absolute;top:9px;right:12px;font-style:normal;text-decoration:none;
  font-family:ui-monospace,Menlo,monospace;font-size:9px;font-weight:800;letter-spacing:.14em;
  color:rgba(148,184,255,.5)}
.ct-m{padding-left:32px}
.ct-m-x .midx{right:12px}

/* light gradient environment behind the whole section */
.cases::before{content:"";position:absolute;inset:40px -10vw 0;z-index:-1;pointer-events:none;
  background:radial-gradient(88% 82% at 50% 46%,rgba(234,242,255,.98) 0%,rgba(226,237,255,.94) 52%,rgba(210,227,255,.55) 72%,transparent 92%)}
.cases{isolation:isolate}

/* light-theme re-ink, scoped to the section */
.cases .cases-h2{color:#0d1830}
.cases .cases-sub{color:#4b5a78}
.cases .ct-bar{border-bottom-color:rgba(13,24,48,.18)}
.cases .ct-title{color:#5b6b8c}
.cases .ct-client img{filter:invert(1) hue-rotate(180deg) drop-shadow(0 0 10px rgba(37,99,235,.25))}
.cases .ct-body{color:#3d4d6e}
.cases .ct-who b{color:#0d1830;text-shadow:none}
.cases .ct-who span{color:#5b6b8c}
.cases .ct-meta{color:#5b6b8c}
.cases .ct-meta .mi svg{stroke:#2563eb}
.cases .ct-meta a{color:#2563eb}
.cases .ct-ndaline{color:#8a6d1a}
.cases .ct-headline{color:#0d1830;filter:none}
.cases .ct-sec{color:#12203c}
.cases .ct-diff .del .dt{color:#7a6474}
.cases .ct-diff .add .dt{color:#2c3d5f}
.cases .ct-glyphs i{color:rgba(37,99,235,.22)}
.cases .ct-aura{background:radial-gradient(ellipse 75% 60% at 45% 30%,rgba(37,99,235,.1),transparent 70%)}
.cases .ct-caret{background:#2563eb;box-shadow:0 0 10px rgba(37,99,235,.6)}
.cases .ct-cmd{color:#12203c;text-shadow:none}
.cases .ct-cmd .pr{color:#2563eb;text-shadow:none}
/* logos inside the dark tiles stay white — tiles are dark islands on the light bg */
.cases .cs-tile{box-shadow:0 6px 0 rgba(9,20,45,.85),inset 0 1px 0 rgba(148,184,255,.14),0 24px 48px -20px rgba(13,24,48,.5)}

/* ============================================================
   GLITCH EDGES — dark compiling into white
   ============================================================ */
.cases::before{
  box-shadow:inset 0 0 120px 30px rgba(37,99,235,.12)}
.cases::after{content:"";position:absolute;inset:34px -9vw -6px;z-index:-1;pointer-events:none;border-radius:48% 52% 50% 50%/14% 14% 10% 10%;
  border:2px solid rgba(56,120,246,.35);filter:blur(10px);opacity:.8}

.cs-edge{position:absolute;left:-4vw;right:-4vw;height:54px;z-index:1;pointer-events:none;overflow:hidden;
  mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.cs-edge.top{top:8px}
.cs-edge.bottom{bottom:-18px}
.cs-edge .gl{position:absolute;left:0;right:0;top:50%;height:20px;transform:translateY(-50%)}
.cs-edge .gl.a{background:repeating-linear-gradient(90deg,rgba(56,189,248,.55) 0 26px,transparent 26px 34px,rgba(56,189,248,.3) 34px 82px,transparent 82px 118px);
  height:2px;filter:drop-shadow(0 0 10px rgba(56,189,248,.8));
  animation:glShift 1.1s steps(3) infinite}
.cs-edge .gl.b{background:repeating-linear-gradient(90deg,transparent 0 44px,rgba(37,99,235,.5) 44px 70px,transparent 70px 150px);
  height:5px;opacity:.75;
  animation:glShift 0.9s steps(2) infinite reverse}
.cs-edge .gl.w{background:repeating-linear-gradient(90deg,rgba(240,246,255,.95) 0 18px,transparent 18px 60px,rgba(240,246,255,.8) 60px 74px,transparent 74px 130px);
  height:3px;top:calc(50% + 7px);
  animation:glShiftW 1.4s steps(4) infinite}
@keyframes glShift{0%{transform:translate(-14px,-50%)}33%{transform:translate(22px,-50%)}66%{transform:translate(-30px,-50%);opacity:.55}100%{transform:translate(14px,-50%)}}
@keyframes glShiftW{0%{transform:translateX(10px)}25%{transform:translateX(-26px);opacity:.5}50%{transform:translateX(30px)}75%{transform:translateX(-8px);opacity:1}100%{transform:translateX(18px)}}
.cs-edge .gtx{position:absolute;right:8vw;top:2px;font-family:ui-monospace,Menlo,monospace;font-size:9.5px;font-weight:700;
  letter-spacing:.18em;text-transform:uppercase;color:rgba(125,211,252,.6);
  animation:gtxFlicker 2.2s steps(2) infinite}
.cs-edge.bottom .gtx{right:auto;left:8vw;color:rgba(37,99,235,.5)}
@keyframes gtxFlicker{0%,100%{opacity:.85}45%{opacity:.35}55%{opacity:.95}}

/* study header logo: no more white-on-white — dark ink on light chip */
.cases .ct-hlogo{background:rgba(13,24,48,.05);border:1px solid rgba(37,99,235,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 10px 24px -14px rgba(13,24,48,.5)}
.cases .ct-hlogo img{filter:invert(1) opacity(.88)}
.cases .ct-client img{filter:invert(1) opacity(.8)}

/* headline treatment tuned for the light zone */
.cases .cases-rot .rot-txt{background:linear-gradient(120deg,#1d4ed8 0%,#0891b2 55%,#2563eb 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent}
.cases .cases-rot .bt{color:rgba(29,78,216,.55)}
.cases .cases-rot .rot-sel{background:linear-gradient(90deg,rgba(37,99,235,.14),rgba(8,145,178,.1));
  border:1px solid rgba(37,99,235,.35)}
.cases .cases-rot .rot-caret{background:#1d4ed8;box-shadow:0 0 10px rgba(29,78,216,.6)}

@media (prefers-reduced-motion:reduce){
  .cs-edge .gl,.cs-edge .gtx{animation:none}
}

/* ============================================================
   ZAP tiles · terminal boot · darker ink · sexier glitch
   ============================================================ */
/* tile pops away on click, returns when another is chosen */
.cs-tile.zap{animation:tileZap .28s ease forwards}
@keyframes tileZap{
  0%{opacity:1;transform:rotate(var(--tr)) scale(1)}
  100%{opacity:0;transform:rotate(var(--tr)) scale(.94)}}
.cs-tile.gone{opacity:0;pointer-events:none}
.cs-tile.return{opacity:1;animation:tileReturn .32s ease forwards}
@keyframes tileReturn{0%{transform:rotate(var(--tr)) scale(.94);opacity:0}100%{transform:rotate(var(--tr)) scale(1);opacity:1}}

/* boot flicker + scan on study open */
.ct-boot{font-family:ui-monospace,Menlo,monospace;font-size:11px;font-weight:700;letter-spacing:.06em;color:rgba(37,99,235,.6)}
.cs-term{position:relative}
.cs-term.boot .ct-body{animation:crtFlick .45s ease-out}
@keyframes crtFlick{0%{opacity:.35;filter:blur(2px)}100%{opacity:1;filter:blur(0)}}
.cs-term.boot::after{content:"";position:absolute;left:-12px;right:-12px;top:-4px;height:44px;pointer-events:none;z-index:5;
  background:linear-gradient(180deg,transparent,rgba(37,99,235,.09),transparent);
  animation:bootScan .85s cubic-bezier(.35,.1,.25,1) forwards}
@keyframes bootScan{from{transform:translateY(0);opacity:1}to{transform:translateY(540px);opacity:0}}

/* darker written ink */
.cases .ct-body{color:#25355a}
.cases .ct-who span{color:#4a5a7d}
.cases .ct-meta{color:#47587c}
.cases .ct-diff .add .dt{color:#1c2b4a}
.cases .ct-diff .del .dt{color:#6b5560}
.cases .ct-pro3 .pd{color:#42538a}

/* sexier, denser glitch edges that hide the seam */
.cs-edge{height:110px}
.cs-edge.top{top:-24px;
  background:linear-gradient(180deg,rgba(4,8,24,0) 0%,rgba(4,8,24,0) 34%,rgba(234,242,255,.35) 72%,rgba(234,242,255,.85) 100%)}
.cs-edge.bottom{bottom:-52px;
  background:linear-gradient(0deg,rgba(4,8,24,0) 0%,rgba(4,8,24,0) 34%,rgba(234,242,255,.35) 72%,rgba(234,242,255,.85) 100%)}
.cs-edge .gl{height:auto}
.cs-edge .gl.a{top:36%;height:3px;
  background:repeating-linear-gradient(90deg,rgba(56,189,248,.7) 0 30px,transparent 30px 44px,rgba(34,211,238,.5) 44px 96px,transparent 96px 150px);
  animation:glShift .7s steps(3) infinite}
.cs-edge .gl.b{top:56%;height:7px;opacity:.8;
  background:repeating-linear-gradient(90deg,transparent 0 60px,rgba(37,99,235,.55) 60px 92px,transparent 92px 190px);
  animation:glShift 1.05s steps(2) infinite reverse}
.cs-edge .gl.w{top:70%;height:4px;
  background:repeating-linear-gradient(90deg,rgba(240,246,255,.98) 0 26px,transparent 26px 70px,rgba(240,246,255,.85) 70px 92px,transparent 92px 160px);
  animation:glShiftW .95s steps(4) infinite}
.cs-edge::before{content:"";position:absolute;left:0;right:0;top:46%;height:26px;
  background:repeating-linear-gradient(90deg,rgba(234,242,255,.5) 0 9px,transparent 9px 30px,rgba(234,242,255,.3) 30px 42px,transparent 42px 88px);
  filter:blur(1px);
  animation:glShiftW 1.5s steps(5) infinite reverse}
.cs-edge::after{content:"";position:absolute;top:30%;left:-10%;width:34%;height:5px;border-radius:3px;
  background:linear-gradient(90deg,transparent,rgba(125,211,252,.85),rgba(240,246,255,.95),transparent);
  filter:drop-shadow(0 0 14px rgba(56,189,248,.9));
  animation:glTear 3.2s cubic-bezier(.5,0,.5,1) infinite}
@keyframes glTear{0%{transform:translateX(0)}48%{transform:translateX(320%)}52%{transform:translateX(310%) scaleY(2.4)}100%{transform:translateX(0)}}

@media (prefers-reduced-motion:reduce){
  .cs-tile.zap,.cs-tile.return,.cs-term.boot .ct-body,.cs-term.boot::after,
  .cs-edge .gl,.cs-edge::before,.cs-edge::after{animation:none!important}
  .cs-tile.gone{opacity:.25}
}

/* ============================================================
   FRAME v2 — clean light box with animated coded outline
   ============================================================ */
.cs-edge{display:none!important}
.cases::before{inset:40px 0 0;border-radius:30px;
  background:radial-gradient(120% 90% at 50% 38%,rgba(240,246,255,.99) 0%,rgba(230,239,255,.97) 55%,rgba(222,234,255,.94) 100%);
  box-shadow:0 40px 120px -40px rgba(2,6,18,.9),0 0 90px -10px rgba(37,99,235,.28)}
.cases::after{content:"";inset:40px 0 0;border-radius:30px;border:0;filter:none;opacity:1;
  box-shadow:inset 0 0 80px 12px rgba(37,99,235,.09);pointer-events:none;position:absolute;z-index:-1}

.cs-frame{position:absolute;inset:40px 0 0;border-radius:30px;pointer-events:none;z-index:2;
  border:1.5px solid rgba(37,99,235,.32);
  animation:frameFlicker 3.6s steps(3) infinite;
  /* corner brackets */
  background:
    linear-gradient(#38bdf8,#38bdf8) 14px 14px/26px 2.5px no-repeat,
    linear-gradient(#38bdf8,#38bdf8) 14px 14px/2.5px 26px no-repeat,
    linear-gradient(#38bdf8,#38bdf8) calc(100% - 14px) 14px/26px 2.5px no-repeat,
    linear-gradient(#38bdf8,#38bdf8) calc(100% - 14px) 14px/2.5px 26px no-repeat,
    linear-gradient(#38bdf8,#38bdf8) 14px calc(100% - 14px)/26px 2.5px no-repeat,
    linear-gradient(#38bdf8,#38bdf8) 14px calc(100% - 14px)/2.5px 26px no-repeat,
    linear-gradient(#38bdf8,#38bdf8) calc(100% - 14px) calc(100% - 14px)/26px 2.5px no-repeat,
    linear-gradient(#38bdf8,#38bdf8) calc(100% - 14px) calc(100% - 14px)/2.5px 26px no-repeat}
@keyframes frameFlicker{0%,100%{border-color:rgba(37,99,235,.32)}46%{border-color:rgba(37,99,235,.32)}50%{border-color:rgba(56,189,248,.75)}54%{border-color:rgba(37,99,235,.32)}}
.cf-spin{position:absolute;inset:-2px;border-radius:31px;padding:2px;font-style:normal;
  background:conic-gradient(from var(--ga),transparent 0turn,transparent .7turn,rgba(56,189,248,0) .76turn,rgba(56,189,248,.9) .86turn,rgba(125,211,252,0) .96turn,transparent 1turn);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
  animation:gaSpin 7s linear infinite}
.cf-dash{position:absolute;top:-2px;left:12%;width:64px;height:3px;border-radius:3px;font-style:normal;
  background:linear-gradient(90deg,transparent,#7dd3fc,#e0f2fe,transparent);
  filter:drop-shadow(0 0 10px rgba(56,189,248,.9));
  animation:dashRun 5.2s cubic-bezier(.45,0,.55,1) infinite}
@keyframes dashRun{
  0%{top:-2px;left:8%;width:64px;opacity:1}
  22%{top:-2px;left:82%;width:30px;opacity:1}
  28%{top:14%;left:calc(100% - 2px);width:3px;height:44px;opacity:.9}
  47%{top:80%;left:calc(100% - 2px);width:3px;height:26px}
  53%{top:calc(100% - 2px);left:78%;width:56px;height:3px}
  74%{top:calc(100% - 2px);left:9%;width:34px;height:3px}
  80%{top:74%;left:-2px;width:3px;height:40px}
  97%{top:12%;left:-2px;width:3px;height:24px}
  100%{top:-2px;left:8%;width:64px;height:3px;opacity:1}}

/* darker "case studies" word */
.cases .cases-rot .rot-txt{background:linear-gradient(120deg,#16306b 0%,#0e5f7a 55%,#123c8a 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent}
.cases .cases-rot .bt{color:rgba(15,42,90,.6)}
.cases .cases-rot .rot-caret{background:#16306b;box-shadow:0 0 10px rgba(22,48,107,.55)}

/* tiles → micro-terminals, super 3D, imperfect */
.cs-tile{--tr:0deg;padding-top:24px}
.cs-tile::before{content:"";position:absolute;top:0;left:0;right:0;width:auto;height:18px;border:0;border-radius:11px 11px 0 0;
  background:
    radial-gradient(2.6px 2.6px at 12px 9px,#fca5a5 46%,transparent 56%),
    radial-gradient(2.6px 2.6px at 22px 9px,#fcd34d 46%,transparent 56%),
    radial-gradient(2.6px 2.6px at 32px 9px,#86efac 46%,transparent 56%),
    linear-gradient(180deg,rgba(148,184,255,.14),rgba(148,184,255,.05));
  border-bottom:1px solid rgba(96,165,250,.3)}
.cs-tile::after{content:">_";position:absolute;top:3px;right:8px;width:auto;height:auto;border:0;
  font-family:ui-monospace,Menlo,monospace;font-size:8.5px;font-weight:800;color:rgba(125,211,252,.7)}
.cs-tile{border-radius:11px;
  box-shadow:0 7px 0 rgba(9,20,45,.95),0 13px 0 rgba(9,20,45,.45),
    inset 0 1px 0 rgba(148,184,255,.16),0 26px 50px -20px rgba(13,24,48,.55)}
.cs-tile.pull{animation-name:tilePullR}
@keyframes tilePullR{0%{opacity:0;transform:translateY(-110px) scale(.85) rotate(var(--tr))}70%{opacity:1;transform:translateY(6px) scale(1.02) rotate(var(--tr))}100%{opacity:1;transform:translateY(0) rotate(var(--tr))}}
@keyframes tileReturnR{0%{transform:scale(0) rotate(var(--tr));opacity:0}60%{transform:scale(1.12) rotate(var(--tr));opacity:1}100%{transform:scale(1) rotate(var(--tr));opacity:1}}
.cs-tile:nth-child(1){--tr:-1.4deg;margin-top:2px}
.cs-tile:nth-child(2){--tr:1.1deg;margin-top:-4px}
.cs-tile:nth-child(3){--tr:.8deg;margin-top:5px}
.cs-tile:nth-child(4){--tr:-1deg;margin-top:-2px}
.cs-tile:nth-child(5){--tr:1.5deg;margin-top:3px}
.cs-tile:nth-child(6){--tr:-.7deg;margin-top:-3px}

@media (prefers-reduced-motion:reduce){
  .cs-frame,.cf-spin,.cf-dash{animation:none}
}

/* ============================================================
   LIGHT-WORLD MODE — no box, no frame
   ============================================================ */
.cs-frame{display:none!important}
.cases::before,.cases::after{content:none!important}
.cases{padding-top:110px}
/* kill legacy active-tile animation (tile hides instead) */
.cs-tile.on{animation:none;transform:none}

/* click hint arrow */
.cs-left{position:relative}
.cs-hint{display:flex;align-items:flex-end;gap:10px;margin:-8px 0 22px 4px;
  animation:hintBob 3s ease-in-out infinite}
@keyframes hintBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.cs-hint span{font-family:ui-monospace,Menlo,monospace;font-size:11px;font-weight:700;letter-spacing:.06em;
  color:#2f4a8f;max-width:200px;line-height:1.55}
.cs-hint svg{width:58px;height:40px;flex-shrink:0;overflow:visible}
.cs-hint svg path{fill:none;stroke:#2563eb;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:130;stroke-dashoffset:130;
  filter:drop-shadow(0 0 8px rgba(37,99,235,.35));
  animation:hintDraw 2.6s cubic-bezier(.4,.2,.3,1) infinite}
@keyframes hintDraw{0%{stroke-dashoffset:130;opacity:0}12%{opacity:1}55%{stroke-dashoffset:0;opacity:1}82%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}

@media (prefers-reduced-motion:reduce){
  .cs-hint,.cs-hint svg path{animation:none}
  .cs-hint svg path{stroke-dashoffset:0}
}

/* ============================================================
   INSIDE-A-TERMINAL section shell · scanlines · light matrix
   ============================================================ */
.cases{overflow:hidden}
#rainLight{position:absolute;inset:0;z-index:0;pointer-events:none}
.cs-scan{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.6;
  background:repeating-linear-gradient(0deg,rgba(13,24,48,.03) 0 1px,transparent 1px 3px)}
.cases > *{position:relative;z-index:1}

.cs-shell{display:flex;align-items:center;gap:2px;margin:-46px 0 44px;padding:0 2px 14px;
  font-family:ui-monospace,Menlo,monospace;font-size:12.5px;font-weight:700;letter-spacing:.02em;
  border-bottom:1px solid rgba(37,99,235,.22);
  mask-image:linear-gradient(90deg,#000 82%,transparent);
  -webkit-mask-image:linear-gradient(90deg,#000 82%,transparent)}
.sh-user{color:#0e7490}
.sh-sep{color:#5b6b8c}
.sh-path{color:#16306b}
.sh-caret{display:inline-block;width:8px;height:15px;margin-left:9px;background:#1d4ed8;
  box-shadow:0 0 10px rgba(29,78,216,.5);animation:caretBlink 1.1s steps(1) infinite}
.sh-right{margin-left:auto;font-size:10.5px;font-weight:700;color:rgba(37,99,235,.4);letter-spacing:.14em}

/* tiles: terminal header, not browser */
.cs-tile::before{background:linear-gradient(180deg,rgba(148,184,255,.16),rgba(148,184,255,.05));
  border-bottom:1px solid rgba(96,165,250,.32)}
.cs-tile::after{content:"~$ open";left:9px;right:auto;top:4px;color:rgba(125,211,252,.75);letter-spacing:.08em}

/* richer boot lines */
.ct-boot{display:block;padding:1px 0}
.ct-boot .bp{color:#1d4ed8;letter-spacing:.05em}

/* idle state before any pick */
.ct-idle{display:block;padding:8px 0;font-family:ui-monospace,Menlo,monospace;font-size:13px;font-weight:700;color:#2f4a8f}
.ct-idle .pr{color:#1d4ed8;font-weight:800;margin-right:8px}
.ct-idle em{font-style:normal;color:#5b6b8c;font-weight:600}

/* header consistency with testimonials design */
.cases .cases-h2{color:#0b1730}
.cases .cases-h2 .bt{color:#2563eb}
.cases .cases-h2 .ts-word{font-family:ui-monospace,Menlo,monospace;font-weight:800;color:#1d4ed8;
  background:linear-gradient(180deg,transparent 58%,rgba(56,189,248,.3) 58%)}
.cases .cases-h2 .rot-caret{display:inline-block;width:9px;height:26px;margin-left:5px;vertical-align:-3px;background:#2563eb;
  box-shadow:0 0 10px rgba(37,99,235,.5);animation:caretBlink 1.1s steps(1) infinite}
.cases .cases-sub{color:#40557e}

/* verified award badges — text marks, not official logo art */
.aw-tile{position:absolute;top:-9px;right:-8px;z-index:4;
  font-family:ui-monospace,Menlo,monospace;font-size:7.5px;font-weight:800;letter-spacing:.1em;
  color:#3b2f14;padding:3px 7px;border-radius:6px;white-space:nowrap;
  background:linear-gradient(180deg,#f6e3a8,#d9b45c);
  border:1px solid rgba(120,90,20,.55);
  box-shadow:0 4px 10px -4px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.5)}
.aw-mi{color:#7a5c16!important;font-weight:800!important;
  background:linear-gradient(180deg,rgba(246,227,168,.5),rgba(217,180,92,.28));
  border:1px solid rgba(160,120,30,.4);border-radius:7px;padding:3px 9px}
