/* SimpliTechPro: client case-study pages (case-study-prosafe-plumbing.html, case-study-marin-mechanical-plumbing.html).
   Page-scoped .csx-* classes on theme.css tokens (Direction C v3.4); style.css and theme.css stay untouched.
   The bar is the invoice generator and the markup calculator. Behaviour (nav frost, score rings, screen zoom,
   analytics) lives in case-study.js. */

/* in-page jumps and keyboard focus land just under the fixed 69px nav (scroll-padding, not overflow, SD-005) */
html:has(.csx-body){scroll-padding-top:69px}
.csx-vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.csx-body{background:#0a1420}

/* ---------- hero: the client's own home page, darkened and soft behind the copy; on wide screens the same page
   floats crisp in a browser window on the right. body.hero-nav: the nav is see-through over the hero, so the
   hero's top padding carries the 69px bar; case-study.js frosts the bar at the eyebrow ---------- */
.csx-hero{position:relative;overflow:hidden;isolation:isolate;min-height:min(92vh,780px);padding:150px 0 72px;display:flex;align-items:flex-end;background:#0a1420}
.csx-hero__bg{position:absolute;inset:-24px;z-index:-2}
.csx-hero__bg img{width:100%;height:100%;object-fit:cover;object-position:50% 30%;filter:blur(7px) saturate(1.05);transform:scale(1.03)}
/* a slow drift on wide screens only: on a phone a blurred full-screen image that moves for 26 s keeps the CPU
   repainting (production Lighthouse mobile 72-87 with it) */
@media(min-width:1180px){.csx-hero__bg img{transform:scale(1.06);animation:csx-drift 26s var(--rx-ease) forwards}}
@keyframes csx-drift{to{transform:scale(1)}}
.csx-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:
  linear-gradient(90deg,rgba(10,20,32,.96) 0%,rgba(10,20,32,.92) 40%,rgba(10,20,32,.8) 60%,rgba(10,20,32,.66) 100%),
  linear-gradient(180deg,rgba(10,20,32,.85) 0,rgba(10,20,32,0) 160px),
  linear-gradient(0deg,#0a1420 0,rgba(10,20,32,0) 180px)}
/* a faint orange horizon under the copy */
.csx-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;z-index:1;background:linear-gradient(90deg,rgba(232,100,26,0) 0%,rgba(232,100,26,.55) 30%,rgba(232,100,26,0) 80%)}
.csx-hero__copy{position:relative;z-index:2;width:100%}
/* the hero copy is visible from the first paint (an opacity-0 start hid the H1 from the browser's LCP until the
   animation ended: production render delay 2.6-5.1 s); it only settles a few pixels into place */
.csx-hero__copy>*{animation:csx-rise .7s var(--rx-ease) both}
.csx-hero__copy>:nth-child(2){animation-delay:.05s}.csx-hero__copy>:nth-child(3){animation-delay:.1s}.csx-hero__copy>:nth-child(4){animation-delay:.15s}
@keyframes csx-rise{from{transform:translateY(10px)}to{transform:none}}
.csx-hero .rx-eyebrow{display:block;margin-bottom:18px;line-height:1.7}
.csx-hero .rx-eyebrow::before{content:"";display:inline-block;width:22px;height:1px;margin-right:10px;vertical-align:middle;background:var(--rx-orange)}
.csx-hero h1{font-family:var(--rx-fdisplay);font-weight:400;font-size:clamp(25px,2.85vw,40px);line-height:1.2;letter-spacing:0;color:#fff;max-width:23ch;margin:0;text-wrap:balance;text-shadow:0 2px 18px rgba(10,20,32,.6)}
.csx-hero h1 .csx-client{color:var(--rx-orange)}
.csx-hero__sub{margin:22px 0 0;max-width:58ch;font-family:var(--rx-fbody);font-size:clamp(16px,1.35vw,18.5px);line-height:1.62;color:var(--rx-t-hi)}
.csx-hero__btns{display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px;margin-top:30px}
.csx-hero__btns .rx-btn{min-height:50px}
.csx-hero__btns .rx-btn--ghost{background:rgba(10,20,32,.35);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
/* the see-through fill above outranks theme.css's yellow hover, so the hover is restated here (dark text on yellow) */
.csx-hero__btns .rx-btn--ghost:hover,.csx-hero__btns .rx-btn--ghost:focus-visible{background:#FFF92B;color:#0a0e14;border-color:#FFF92B}
.csx-ext{width:14px;height:14px;flex:0 0 auto}
/* the crisp browser window (decorative; the real screenshot with its alt text is further down the page) */
.csx-hero__win{display:none}
@media(min-width:1180px){
  .csx-hero__copy .rx-eyebrow,.csx-hero h1,.csx-hero__sub,.csx-hero__btns{max-width:min(46%,640px)}
  .csx-hero__win{display:block;position:absolute;z-index:1;right:max(-60px,calc((100vw - 1440px) / 2 - 20px));bottom:64px;width:min(50vw,760px);transform:perspective(1800px) rotateY(-13deg) rotateX(3deg);transform-origin:100% 60%;animation:csx-win 1.1s var(--rx-ease) .15s both}
  .csx-hero__win .csx-win{box-shadow:0 40px 90px -30px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.08)}
}
@keyframes csx-win{from{opacity:0;transform:perspective(1800px) rotateY(-18deg) rotateX(4deg) translateX(40px)}to{opacity:1;transform:perspective(1800px) rotateY(-13deg) rotateX(3deg)}}
/* phones: the hero is the whole first screen, under iOS 26 Safari's floating toolbar too (lvh), the copy kept
   above that toolbar (lvh - svh), as on the free tools (O28) */
@media(max-width:720px){
  .csx-hero{padding:132px 0 40px;padding-bottom:calc(40px + 100lvh - 100svh);min-height:100vh;min-height:100lvh}
  .csx-hero__bg img{filter:blur(9px) saturate(1.05)}
  .csx-hero::before{background:linear-gradient(180deg,rgba(10,20,32,.86) 0,rgba(10,20,32,.62) 30%,rgba(10,20,32,.72) 55%,rgba(10,20,32,.95) 82%,#0a1420 100%)}
  .csx-hero h1{font-size:clamp(23px,6.4vw,30px)}
  .csx-hero__btns{flex-direction:column;align-items:stretch}
  .csx-hero__btns .rx-btn{justify-content:center;padding:14px 16px;font-size:12px;letter-spacing:0}
}

/* ---------- browser window + phone frames for client screens ---------- */
.csx-win{display:block;position:relative;border-radius:10px;overflow:hidden;background:#0f1824;border:1px solid rgba(255,255,255,.1)}
.csx-win__bar{display:flex;align-items:center;gap:7px;height:34px;padding:0 14px;background:linear-gradient(180deg,#1b2737,#152030);border-bottom:1px solid rgba(255,255,255,.07)}
.csx-win__bar i{width:10px;height:10px;border-radius:50%;background:#3a4859;flex:0 0 auto}
.csx-win__bar i:nth-child(1){background:#ff5f57}.csx-win__bar i:nth-child(2){background:#febc2e}.csx-win__bar i:nth-child(3){background:#28c840}
.csx-win__url{margin-left:14px;flex:1;max-width:300px;height:21px;display:flex;align-items:center;gap:6px;padding:0 10px;border-radius:6px;background:rgba(255,255,255,.06);font-family:var(--rx-fmono);font-size:11px;color:var(--rx-t-lo);white-space:nowrap;overflow:hidden}
.csx-win__url svg{width:10px;height:10px;flex:0 0 auto;color:#5fbf7f}
.csx-win img{display:block;width:100%;height:auto}
.csx-win__screen{position:relative}
.csx-win__film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .7s var(--rx-ease)}
.csx-win__film.is-on{opacity:1}
.csx-phone{display:block;position:relative;width:100%;max-width:290px;margin:0 auto;padding:9px;border-radius:38px;background:linear-gradient(160deg,#2a3646,#121a25 55%,#1f2a39);box-shadow:0 30px 70px -28px rgba(0,0,0,.85),inset 0 0 0 1px rgba(255,255,255,.12)}
.csx-phone__screen{display:block;position:relative;border-radius:30px;overflow:hidden;background:#1d2530}
.csx-phone__screen img{display:block;width:100%;height:auto}

/* ---------- sections ---------- */
.csx-sec{padding:96px 0 0}
.csx-sec--tight{padding-top:64px}
.csx-h2{font-family:var(--rx-fbody);font-weight:700;font-size:clamp(24px,2.9vw,38px);line-height:1.18;letter-spacing:-.02em;color:#fff;margin:0;max-width:30ch;text-wrap:balance}
.csx-h3{font-family:var(--rx-fdisplay);font-weight:400;font-size:clamp(14px,1.2vw,16px);line-height:1.35;letter-spacing:.01em;text-transform:uppercase;color:#fff;margin:0}
.csx-lead{font-family:var(--rx-fbody);font-size:clamp(17px,1.45vw,20px);line-height:1.68;color:var(--rx-t);margin:0;max-width:62ch}
.csx-lead a{color:#FFF92B;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.csx-sec .rx-eyebrow{display:block;margin-bottom:14px}
/* editorial split: the heading on the left, the story on the right */
.csx-split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:28px 64px;align-items:start;padding-top:40px;border-top:1px solid var(--rx-line)}
@media(min-width:901px){.csx-split>.csx-h2{position:sticky;top:100px}}
@media(max-width:900px){.csx-split{grid-template-columns:minmax(0,1fr);gap:18px;padding-top:28px}}

/* chapter heading: "Part 1:" as a mono label over the headline (the text stays one heading) */
.csx-chapter{position:relative;padding-top:48px;border-top:1px solid var(--rx-line)}
.csx-chapter__num{position:absolute;right:0;top:20px;font-family:var(--rx-fdisplay);font-size:clamp(70px,10vw,150px);line-height:1;color:transparent;-webkit-text-stroke:1px rgba(255,255,255,.09);pointer-events:none;user-select:none}
.csx-chapter .csx-h2{max-width:26ch;position:relative}
.csx-part{display:block;margin-bottom:14px;font-family:var(--rx-fmono);font-size:12px;font-weight:400;letter-spacing:.16em;text-transform:uppercase;color:var(--rx-orange)}
.csx-part-t{display:block}
.csx-part-t::first-letter{text-transform:uppercase}
.csx-chapter .csx-lead{margin-top:24px}
@media(max-width:720px){.csx-chapter__num{display:none}}

/* ---------- "what we built": icon rows ---------- */
.csx-built{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:36px 56px;align-items:start;margin-top:52px}
.csx-list{list-style:none;margin:20px 0 0;padding:0;border-top:1px solid var(--rx-line)}
.csx-list li{display:grid;grid-template-columns:46px minmax(0,1fr);gap:18px;align-items:start;padding:20px 0;border-bottom:1px solid var(--rx-line);font-family:var(--rx-fbody);font-size:16px;line-height:1.65;color:var(--rx-t)}
.csx-list li strong{color:#fff;font-weight:700}
.csx-ico{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid rgba(232,100,26,.38);background:radial-gradient(120% 120% at 30% 20%,rgba(232,100,26,.2),rgba(232,100,26,.04) 70%);color:#ff8a45;flex:0 0 auto;transition:border-color .3s var(--rx-ease),box-shadow .3s var(--rx-ease)}
.csx-ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.csx-side{position:sticky;top:100px;display:grid;gap:18px}
@media(max-width:980px){.csx-built{grid-template-columns:minmax(0,1fr)}.csx-side{position:static}}

/* ---------- PageSpeed score panel: a real table, each score drawn as a ring ---------- */
@property --csx-p{syntax:'<number>';inherits:false;initial-value:0}
.csx-scores{padding:26px 24px 22px;border:1px solid var(--rx-line-2);background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01))}
.csx-scores .csx-h3{font-family:var(--rx-fmono);font-size:11.5px;letter-spacing:.12em;color:var(--rx-t-lo)}
.csx-scores table{width:100%;margin-top:18px;border-collapse:collapse;table-layout:fixed}
.csx-scores th{font-family:var(--rx-fbody);font-weight:600;font-size:12.5px;line-height:1.3;color:var(--rx-t);text-align:center;padding:0 2px 12px;vertical-align:bottom}
.csx-scores thead th:first-child{width:72px}
.csx-scores tbody th{text-align:left;vertical-align:middle;font-family:var(--rx-fmono);font-weight:400;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--rx-t-lo);padding:10px 0}
.csx-scores td{text-align:center;padding:10px 2px}
.csx-scores tbody tr+tr th,.csx-scores tbody tr+tr td{border-top:1px solid var(--rx-line)}
.csx-ring{--c:#0cce6b;position:relative;display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:50%;font-family:var(--rx-fmono);font-size:16px;font-weight:700;color:var(--c);font-variant-numeric:tabular-nums;background:conic-gradient(var(--c) calc(var(--csx-p) * 1%),rgba(255,255,255,.08) 0);transition:--csx-p 1.2s var(--rx-ease)}
.csx-ring::before{content:"";position:absolute;inset:4px;border-radius:50%;background:#0f1a28}
.csx-ring span{position:relative}
.csx-ring--avg{--c:#ffa400}
.csx-scores__note{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--rx-line);font-family:var(--rx-fbody);font-size:13px;line-height:1.55;color:var(--rx-t-lo)}
/* phones: four score columns across the full width, the Mobile / Desktop label as a line above its row (the ARIA
   table roles in the HTML keep it a table for screen readers when the rows become grids) */
@media(max-width:560px){
  .csx-scores{padding:22px 16px 18px}
  .csx-scores table,.csx-scores thead,.csx-scores tbody{display:block}
  .csx-scores tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
  .csx-scores thead td{display:none}
  .csx-scores th{font-size:10.5px;letter-spacing:-.01em;padding:0 3px 8px}
  .csx-scores tbody th{grid-column:1 / -1;padding:14px 0 6px}
  .csx-scores tbody tr+tr td{border-top:0}
  .csx-scores td{padding:4px 2px 10px}
}

/* ---------- screens: figures with frames + captions ---------- */
.csx-fig{margin:0}
.csx-fig figcaption{margin-top:14px;font-family:var(--rx-fbody);font-size:14px;line-height:1.55;color:var(--rx-t-lo);max-width:60ch}
.csx-fig figcaption::before{content:"";display:inline-block;width:14px;height:1px;margin-right:10px;vertical-align:4px;background:var(--rx-orange)}
.csx-stage{display:flex;align-items:center;justify-content:center;padding:34px 24px;border:1px solid var(--rx-line);background:radial-gradient(90% 70% at 50% 35%,rgba(232,100,26,.13),rgba(232,100,26,0) 70%),linear-gradient(180deg,#111c2a,#0c1520)}
.csx-shots{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-areas:"a p" "b p";gap:40px 28px;margin-top:44px;align-items:start}
.csx-shots>:nth-child(1){grid-area:a}.csx-shots>:nth-child(2){grid-area:p;align-self:stretch;display:flex;flex-direction:column}.csx-shots>:nth-child(3){grid-area:b}
.csx-shots>:nth-child(2) .csx-zoom{flex:1;display:flex}
.csx-shots>:nth-child(2) .csx-stage{flex:1}
.csx-shots .csx-phone{max-width:250px}
.csx-shots--two{grid-template-areas:"a p"}
.csx-shots--wideb{grid-template-areas:"a p" "b b"}
@media(max-width:820px){
  .csx-shots,.csx-shots--two,.csx-shots--wideb{grid-template-columns:minmax(0,1fr);grid-template-areas:"a" "p" "b"}
}

/* zoom: every screen opens full size in the viewer (case-study.js); without JS it is a plain image */
.csx-zoom{position:relative;display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;text-align:inherit;color:inherit}
.csx-zoom:focus-visible{outline:2px solid var(--rx-orange);outline-offset:4px}
.csx-zoom__hint{position:absolute;right:12px;bottom:12px;z-index:2;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:rgba(10,20,32,.78);border:1px solid rgba(255,255,255,.18);color:#fff;opacity:0;transform:scale(.9);transition:opacity .25s var(--rx-ease),transform .25s var(--rx-ease)}
.csx-zoom__hint svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.csx-zoom:focus-visible .csx-zoom__hint{opacity:1;transform:none}
/* touch screens: the hint always shows, and no hover effect runs (iPhone Safari can spend the first tap on a hover
   instead of the click) */
@media(hover:none){.csx-zoom__hint{opacity:.9;transform:none}}
.csx-win,.csx-phone,.csx-tile{transition:transform .45s var(--rx-ease),box-shadow .45s var(--rx-ease)}
@media(hover:hover){
  .csx-zoom:hover .csx-zoom__hint{opacity:1;transform:none}
  .csx-zoom:hover .csx-win,.csx-zoom:hover .csx-tile{transform:translateY(-4px);box-shadow:0 30px 60px -30px rgba(0,0,0,.9)}
  .csx-zoom:hover .csx-phone{transform:translateY(-5px)}
}
.csx-zoom{touch-action:manipulation}

/* ---------- the Prosafe Office platform: three apps ---------- */
.csx-sub{margin-top:64px}
.csx-sub>.csx-h3{display:flex;align-items:center;gap:14px}
.csx-sub>.csx-h3::after{content:"";flex:1;height:1px;background:var(--rx-line)}
.csx-apps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:26px}
.csx-app{position:relative;display:flex;flex-direction:column;gap:14px;padding:30px 26px 28px;overflow:hidden;border:1px solid var(--rx-line);background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,0) 60%);transition:border-color .3s var(--rx-ease),transform .35s var(--rx-ease)}
.csx-app h4{margin:6px 0 0;font-family:var(--rx-fbody);font-size:18px;font-weight:700;line-height:1.35;color:#fff}
.csx-app h4 span{display:block;margin-top:4px;font-size:14.5px;font-weight:500;color:var(--rx-orange)}
.csx-app p{margin:0;font-family:var(--rx-fbody);font-size:15.5px;line-height:1.65;color:var(--rx-t)}
.csx-app:hover{border-color:rgba(232,100,26,.45);transform:translateY(-3px)}
.csx-app:hover .csx-ico,.csx-feat:hover .csx-ico{border-color:rgba(232,100,26,.75);box-shadow:0 0 24px -4px rgba(232,100,26,.45)}
@media(max-width:900px){.csx-apps{grid-template-columns:minmax(0,1fr)}}

/* ---------- feature rows: the text (icon + H3 + pain line + bullets) beside that feature's own real screens:
   one large screen and a row of smaller ones; the sides alternate on desktop, text first on phones ---------- */
.csx-note{margin:72px 0 0;font-family:var(--rx-fmono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--rx-t-lo)}
.csx-note::before{content:"";display:inline-block;width:22px;height:1px;margin-right:12px;vertical-align:4px;background:var(--rx-orange)}
.csx-feats{display:grid;gap:22px;margin-top:22px}
.csx-feat{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:40px 52px;align-items:start;padding:40px;border:1px solid var(--rx-line);background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,0) 50%);transition:border-color .3s var(--rx-ease)}
.csx-feat:nth-child(even){grid-template-columns:minmax(0,7fr) minmax(0,4fr)}
.csx-feat:nth-child(even) .csx-feat__text{order:2}
.csx-feat:hover{border-color:rgba(255,255,255,.18)}
.csx-feat__text{position:sticky;top:100px}
.csx-feat__head{display:grid;grid-template-columns:46px minmax(0,1fr);gap:16px;align-items:center}
.csx-feat h3{margin:0;font-family:var(--rx-fbody);font-size:clamp(19px,1.7vw,23px);font-weight:700;line-height:1.28;letter-spacing:-.01em;color:#fff}
.csx-feat__pain{margin:20px 0 0;padding:14px 0 0;border-top:1px dashed rgba(255,255,255,.12);font-family:var(--rx-fbody);font-size:16.5px;font-weight:600;line-height:1.5;color:#ffb07f}
.csx-feat ul{list-style:none;margin:14px 0 0;padding:0}
.csx-feat li{position:relative;padding-left:22px;margin-top:11px;font-family:var(--rx-fbody);font-size:15.5px;line-height:1.62;color:var(--rx-t)}
.csx-feat li::before{content:"";position:absolute;left:1px;top:9px;width:6px;height:6px;background:var(--rx-orange);transform:rotate(45deg)}
@media(max-width:980px){
  .csx-feat,.csx-feat:nth-child(even){grid-template-columns:minmax(0,1fr);gap:28px}
  .csx-feat:nth-child(even) .csx-feat__text{order:0}
  .csx-feat__text{position:static}
}
@media(max-width:720px){.csx-feat{padding:26px 18px 24px}.csx-note{margin-top:56px}}

/* screens: a light app screen sits in a framed tile cut to a fixed shape (the top of the screen shows; the viewer
   opens the whole screen); a phone screen rises from the bottom of a dark stage; a document sits like a page */
.csx-scr{display:grid;gap:18px;min-width:0}
.csx-scr__items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 14px}
.csx-shot{margin:0;min-width:0}
.csx-shot figcaption{margin-top:10px;font-family:var(--rx-fbody);font-size:13.5px;line-height:1.5;color:var(--rx-t-lo)}
.csx-shot--main figcaption{font-size:14.5px}
.csx-shot--main figcaption::before{content:"";display:inline-block;width:14px;height:1px;margin-right:10px;vertical-align:4px;background:var(--rx-orange)}
.csx-tile{display:block;position:relative;aspect-ratio:4/3;border:1px solid rgba(255,255,255,.12);border-radius:10px;overflow:hidden;background:#e8eef2}
.csx-shot--main .csx-tile{aspect-ratio:16/10}
.csx-tile img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.csx-scr__items .csx-tile img{object-position:0 0} /* a small tile shows the screen's top left, where its title is */
.csx-scr__items .csx-tile--right img{object-position:100% 0} /* a side panel over a blurred page: show the panel */
.csx-tile--phone{background:radial-gradient(80% 70% at 50% 100%,rgba(232,100,26,.16),rgba(232,100,26,0) 70%),linear-gradient(180deg,#131f2d,#0c1520)}
.csx-tile--phone img{position:absolute;left:50%;top:16px;width:62%;height:auto;min-height:0;transform:translateX(-50%);object-fit:initial;border-radius:16px 16px 0 0;border:5px solid #1f2a39;border-bottom:0;box-shadow:0 18px 40px -10px rgba(0,0,0,.7)}
.csx-shot--main .csx-tile--phone img{width:40%}
.csx-tile--doc{background:linear-gradient(180deg,#dfe6ec,#cfd8e0)}
.csx-tile--doc img{position:absolute;left:50%;top:18px;width:78%;height:auto;transform:translateX(-50%);object-fit:initial;box-shadow:0 10px 30px -8px rgba(13,21,32,.45)}
@media(max-width:720px){
  /* phones: the smaller screens become a swipeable strip inside the card (the strip scrolls, never the page) */
  .csx-scr__items{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding-bottom:6px;margin-right:-18px;padding-right:18px}
  .csx-scr__items .csx-shot{flex:0 0 68%;scroll-snap-align:start}
}

/* app cards open with their app's screen */
.csx-app__scr{margin:-30px -26px 6px;width:calc(100% + 52px)}
.csx-app__scr .csx-tile{border-radius:0;border-width:0 0 1px;aspect-ratio:16/10}

/* ---------- in their words ---------- */
.csx-quote{position:relative;margin:0;padding:clamp(36px,5vw,64px) clamp(24px,5vw,72px);border:1px solid var(--rx-line-2);background:radial-gradient(70% 90% at 0% 0%,rgba(232,100,26,.14),rgba(232,100,26,0) 60%),linear-gradient(180deg,#121d2b,#0d1622);overflow:hidden}
.csx-quote__mark{position:absolute;top:clamp(14px,2vw,26px);left:clamp(16px,2.6vw,40px);width:clamp(54px,7vw,92px);height:auto;color:rgba(232,100,26,.28)}
.csx-quote blockquote{position:relative;margin:0;padding-top:clamp(40px,5.4vw,74px)}
.csx-quote blockquote p{margin:0;max-width:34ch;font-family:var(--rx-fbody);font-size:clamp(21px,2.5vw,33px);font-weight:500;line-height:1.42;letter-spacing:-.015em;color:#fff;text-wrap:pretty}
.csx-quote figcaption{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:30px;font-family:var(--rx-fbody);font-size:15px;color:var(--rx-t)}
.csx-quote figcaption strong{color:#fff;font-weight:700}
.csx-verified{display:inline-flex;align-items:center;gap:7px;padding:5px 11px;border:1px solid rgba(255,255,255,.16);font-family:var(--rx-fmono);font-size:11.5px;letter-spacing:.06em;color:var(--rx-t-hi)}
.csx-verified svg{width:14px;height:14px;color:#0cce6b}
.csx-tlink{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-family:var(--rx-fbody);font-size:15px;font-weight:700;color:#FFF92B;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.csx-tlink:hover{opacity:.82}

/* ---------- product section: three steps on one line ---------- */
.csx-what{position:relative;padding:72px clamp(22px,4vw,56px) 60px;border:1px solid var(--rx-line);background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,0) 40%)}
.csx-what .csx-h2{max-width:26ch}
.csx-what .csx-lead{margin-top:22px}
.csx-steps{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:44px 0 0;padding:0;list-style:none;counter-reset:csxstep}
.csx-steps::before{content:"";position:absolute;left:24px;right:24px;top:23px;height:1px;background:linear-gradient(90deg,var(--rx-orange),rgba(232,100,26,.15))}
.csx-steps li{position:relative;counter-increment:csxstep;padding-top:64px}
.csx-steps li::before{content:counter(csxstep);position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid var(--rx-orange);background:#0f1a28;font-family:var(--rx-fmono);font-size:15px;color:#fff}
.csx-steps li:first-child::before{background:var(--rx-orange);color:#0a1420}
.csx-steps h3{margin:0;font-family:var(--rx-fdisplay);font-weight:400;font-size:14.5px;line-height:1.35;text-transform:uppercase;color:#fff}
.csx-steps p{margin:12px 0 0;font-family:var(--rx-fbody);font-size:15.5px;line-height:1.65;color:var(--rx-t);max-width:36ch}
.csx-cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;margin-top:40px}
.csx-cta .rx-btn{min-height:50px}
@media(max-width:820px){
  .csx-steps{grid-template-columns:minmax(0,1fr);gap:26px}
  .csx-steps::before{left:23px;right:auto;top:24px;bottom:24px;width:1px;height:auto;background:linear-gradient(180deg,var(--rx-orange),rgba(232,100,26,.15))}
  .csx-steps li{padding:0 0 0 68px;min-height:46px}
}

/* ---------- questions (visible only, no FAQPage markup) ---------- */
.csx-faq{margin-top:10px;border-top:1px solid var(--rx-line)}
.csx-faq details{border-bottom:1px solid var(--rx-line)}
.csx-faq summary{position:relative;display:flex;align-items:center;min-height:64px;padding:16px 56px 16px 0;cursor:pointer;list-style:none;font-family:var(--rx-fbody);font-size:clamp(16px,1.3vw,18px);font-weight:700;line-height:1.45;color:#fff;transition:color .2s var(--rx-ease)}
.csx-faq summary::-webkit-details-marker{display:none}
.csx-faq summary::after{content:"";position:absolute;right:6px;top:50%;width:30px;height:30px;margin-top:-15px;border:1px solid var(--rx-line-2);background:linear-gradient(var(--rx-orange),var(--rx-orange)) center/12px 1.5px no-repeat,linear-gradient(var(--rx-orange),var(--rx-orange)) center/1.5px 12px no-repeat;transition:transform .3s var(--rx-ease),background-size .3s var(--rx-ease)}
.csx-faq details[open] summary::after{transform:rotate(180deg);background-size:12px 1.5px,1.5px 0}
.csx-faq summary:hover{color:#FFF92B}
.csx-faq details p{margin:0;padding:0 56px 24px 0;font-family:var(--rx-fbody);font-size:16px;line-height:1.72;color:var(--rx-t);max-width:72ch}
.csx-faq details p a{color:#FFF92B;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
@media(max-width:720px){.csx-faq summary{padding-right:48px}.csx-faq details p{padding-right:0}}

/* ---------- closing band ---------- */
.csx-close{position:relative;margin-top:96px;padding:80px 28px;text-align:center;overflow:hidden;border-top:1px solid var(--rx-line);border-bottom:1px solid var(--rx-line);background:radial-gradient(60% 120% at 50% 100%,rgba(232,100,26,.2),rgba(232,100,26,0) 65%),#0b1523}
.csx-close h2{margin:0 auto;max-width:24ch;font-family:var(--rx-fdisplay);font-weight:400;font-size:clamp(22px,3vw,38px);line-height:1.22;text-transform:uppercase;color:#fff;text-wrap:balance}
.csx-close p{margin:18px auto 0;max-width:56ch;font-family:var(--rx-fbody);font-size:clamp(16px,1.5vw,18.5px);line-height:1.6;color:var(--rx-t)}
.csx-close .rx-btn{margin-top:30px;min-height:52px}

/* ---------- more client work ---------- */
/* two equal cards: a picture on top (the client's site in a browser frame, or a fanned stack of our demo builds),
   the label and name below; the hover is an orange edge, a small lift, a slow zoom and the arrow moving on */
.csx-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px;max-width:1040px}
.csx-mcard{display:flex;flex-direction:column;text-decoration:none;border:1px solid var(--rx-line);background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,0) 55%);overflow:hidden;transition:transform .35s var(--rx-ease),border-color .35s var(--rx-ease),box-shadow .35s var(--rx-ease)}
.csx-mcard *{transition:none} /* a global rule animates every colour change; only the moves below animate */
.csx-mcard__img{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:radial-gradient(90% 80% at 50% 100%,rgba(232,100,26,.16),rgba(232,100,26,0) 70%),linear-gradient(180deg,#121d2b,#0c1520);border-bottom:1px solid var(--rx-line)}
.csx-mcard__img .csx-win{position:absolute;left:8%;right:8%;top:12%;border-radius:8px 8px 0 0;box-shadow:0 24px 50px -20px rgba(0,0,0,.9)}
.csx-mcard__img .csx-win__bar{height:22px;padding:0 10px;gap:5px}
.csx-mcard__img .csx-win__bar i{width:7px;height:7px}
.csx-mcard__img .csx-win img{transition:transform .7s var(--rx-ease);transform-origin:50% 0}
/* the demo builds, fanned like cards on a table */
.csx-mcard__stack img{position:absolute;top:18%;width:52%;height:auto;border-radius:6px;border:1px solid rgba(255,255,255,.14);box-shadow:0 20px 40px -16px rgba(0,0,0,.9);transition:transform .6s var(--rx-ease)}
.csx-mcard__stack img:nth-child(1){left:6%;transform:rotate(-7deg) translateY(10px)}
.csx-mcard__stack img:nth-child(3){right:6%;transform:rotate(7deg) translateY(10px)}
.csx-mcard__stack img:nth-child(2){left:24%;top:12%;z-index:1}
.csx-mcard__body{display:flex;flex-direction:column;gap:8px;padding:22px 24px 24px}
.csx-mcard__cat{font-family:var(--rx-fmono);font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--rx-orange)}
.csx-mcard__name{font-family:var(--rx-fdisplay);font-weight:400;font-size:15px;line-height:1.3;text-transform:uppercase;color:#fff}
.csx-mcard__arr{display:inline-block;margin-left:6px;color:var(--rx-orange);transition:transform .35s var(--rx-ease)}
.csx-mcard:hover,.csx-mcard:focus-visible{transform:translateY(-4px);border-color:rgba(232,100,26,.6);box-shadow:0 30px 60px -34px rgba(0,0,0,.9)}
.csx-mcard:hover .csx-mcard__img .csx-win img{transform:scale(1.03)}
.csx-mcard:hover .csx-mcard__stack img:nth-child(1){transform:rotate(-10deg) translate(-8px,6px)}
.csx-mcard:hover .csx-mcard__stack img:nth-child(3){transform:rotate(10deg) translate(8px,6px)}
.csx-mcard:hover .csx-mcard__stack img:nth-child(2){transform:translateY(-6px)}
.csx-mcard:hover .csx-mcard__arr{transform:translateX(6px)}
.csx-mcard:focus-visible{outline:2px solid var(--rx-orange);outline-offset:3px}
@media(max-width:640px){.csx-more{grid-template-columns:minmax(0,1fr)}}
.csx-end{padding-bottom:96px}

/* ---------- Marin: "what we built" as a card grid, the result as a statement ---------- */
.csx-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:40px 0 0;padding:0;list-style:none}
.csx-grid3 li{display:flex;flex-direction:column;gap:18px;padding:28px 26px;border:1px solid var(--rx-line);background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,0) 55%);font-family:var(--rx-fbody);font-size:15.5px;line-height:1.66;color:var(--rx-t);transition:border-color .3s var(--rx-ease)}
.csx-grid3 li strong{display:block;margin-bottom:6px;font-size:17px;line-height:1.4;color:#fff}
.csx-grid3 li:hover{border-color:rgba(232,100,26,.45)}
.csx-grid3 li:hover .csx-ico{border-color:rgba(232,100,26,.75);box-shadow:0 0 24px -4px rgba(232,100,26,.45)}
@media(max-width:980px){.csx-grid3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.csx-grid3{grid-template-columns:minmax(0,1fr)}}
.csx-result{position:relative;padding:44px clamp(24px,4vw,56px);border:1px solid rgba(232,100,26,.4);background:radial-gradient(80% 140% at 100% 0%,rgba(232,100,26,.16),rgba(232,100,26,0) 60%),#0e1825}
.csx-result .csx-h2{font-family:var(--rx-fdisplay);font-weight:400;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--rx-orange)}
.csx-result p{margin:16px 0 0;max-width:40ch;font-family:var(--rx-fbody);font-size:clamp(21px,2.4vw,31px);font-weight:500;line-height:1.42;letter-spacing:-.015em;color:#fff;text-wrap:pretty}

@media(max-width:720px){
  .csx-sec{padding-top:72px}
  .csx-sec--tight{padding-top:52px}
  .csx-close{margin-top:72px;padding:64px 20px}
  .csx-end{padding-bottom:72px}
  .csx-what{padding:52px 20px 44px}
  .csx-list li{grid-template-columns:40px minmax(0,1fr);gap:14px;font-size:15.5px}
  .csx-list .csx-ico,.csx-feat .csx-ico{width:40px;height:40px}
  .csx-feat__head{grid-template-columns:40px minmax(0,1fr);gap:14px}
}

/* ---------- screen viewer: centred on desktop, full screen on phones; the caption and Close stay at the top, the
   arrows and the zoom at the bottom; zoomed, the screen pans both ways inside the viewer (the page never scrolls) ---------- */
.csx-lb{inset:0;margin:auto;width:min(1280px,calc(100vw - 32px));max-width:none;height:calc(100vh - 32px);height:calc(100dvh - 32px);max-height:none;padding:0;border:1px solid rgba(255,255,255,.14);background:#0d1520;color:var(--rx-t-hi);overflow:hidden} /* margin:auto again: style.css clears every margin, which pinned the dialog top left */
.csx-lb::backdrop{background:rgba(5,9,14,.88);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.csx-lb[open]{display:flex;flex-direction:column;animation:csx-lb-in .3s var(--rx-ease)}
@keyframes csx-lb-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
.csx-lb__top{display:flex;align-items:center;gap:14px;padding:10px 10px 10px 20px;border-bottom:1px solid var(--rx-line);background:#0d1520}
.csx-lb__cap{flex:1;margin:0;font-family:var(--rx-fbody);font-size:14.5px;line-height:1.45;color:var(--rx-t)}
.csx-lb__count{flex:0 0 auto;font-family:var(--rx-fmono);font-size:12px;letter-spacing:.08em;color:var(--rx-t-lo)}
/* a screen shorter than the viewer sits in the middle (margin:auto in a flex box, which still scrolls from the top
   when the screen is taller or zoomed) */
.csx-lb__body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:flex;padding:16px;background:#0a1018}
.csx-lb__body img{display:block;flex:0 0 auto;margin:auto;max-width:100%;height:auto;cursor:zoom-in;-webkit-user-select:none;user-select:none}
.csx-lb.is-zoomed .csx-lb__body img{max-width:none;cursor:zoom-out}
.csx-lb__nav{display:flex;justify-content:center;gap:10px;padding:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--rx-line);background:#0d1520}
.csx-lb.is-single .csx-lb__nav [data-go]{visibility:hidden}
.csx-lb__btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 auto;padding:0;border:1px solid var(--rx-line-2);background:transparent;color:#fff;cursor:pointer;touch-action:manipulation}
.csx-lb__btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.csx-lb__zoom[aria-pressed="true"]{background:var(--rx-orange);border-color:var(--rx-orange);color:#0a1420}
.csx-lb__btn:focus-visible{outline:2px solid var(--rx-orange);outline-offset:2px}
@media(hover:hover){.csx-lb__btn:hover{background:#FFF92B;color:#0a0e14;border-color:#FFF92B}}
@media(max-width:720px){
  .csx-lb{width:100%;height:100%;height:100dvh;border:0}
  .csx-lb__top{padding:8px 8px 8px 16px;padding-top:calc(8px + env(safe-area-inset-top))}
  .csx-lb__cap{font-size:13.5px}
  .csx-lb__body{padding:12px}
}

@media(prefers-reduced-motion:reduce){
  .csx-hero__bg img,.csx-hero__copy>*,.csx-hero__win,.csx-lb[open]{animation:none}
  .csx-hero__bg img{transform:none}
  .csx-ring{transition:none}
  .csx-win,.csx-phone,.csx-tile,.csx-app,.csx-mcard,.csx-mcard__img img,.csx-faq summary::after,.csx-zoom__hint{transition:none}
}
