/* Case-study pages (cs*.html), generated by _planning/build_case_studies.py.
   The pages are built from template + homepage blocks; this file only adapts them. */

.cs-page { --cs-line: rgba(var(--base-opp-rgb), .1); }

/* ---------- headline: title at the homepage section-title scale, smaller subtitle, tags in a row */
.cs-headline { padding-top: 6rem; }
@media only screen and (min-width: 1200px) { .cs-headline { padding-top: 9rem; } }
.cs-title { font: normal 600 4.4rem/1.1 var(--_font-default); letter-spacing: -.14rem; color: var(--t-bright); }
@media only screen and (min-width: 768px)  { .cs-title { font-size: 5.6rem; letter-spacing: -.2rem; } }
@media only screen and (min-width: 1600px) { .cs-title { font-size: 6.4rem; } }
.cs-headline .inner-headline__title { margin-bottom: 2.4rem; }
.cs-headline .inner-headline__subtitle p { font: normal 600 2.2rem/1.3 var(--_font-default); letter-spacing: -.06rem; max-width: 34em; }
@media only screen and (min-width: 768px)  { .cs-headline .inner-headline__subtitle p { font-size: 2.6rem; } }
@media only screen and (min-width: 1200px) { .cs-headline .inner-headline__subtitle p { font-size: 3rem; letter-spacing: -.1rem; } }
.cs-headline .inner-headline__subtitle p span { color: var(--t-medium); }
.cs-headline .tags-column { display: flex; flex-direction: row; flex-wrap: wrap; gap: .8rem; }
.cs-headline .inner-headline__columns { margin-top: 3.2rem; }

/* ---------- animated covers lifted from the homepage cards: always "on" (video shown, logo hidden) */
.cs-media .mxd-project-item__media { border-radius: var(--_radius-l, 2.4rem); aspect-ratio: 16 / 9; }
.cs-media .mxd-project-item__media > img:first-child,
.cs-next-media .mxd-project-item__media > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.cs-media .mxd-project-item__videowrap, .cs-next-media .mxd-project-item__videowrap { clip-path: inset(0% 0% 0% 0%); }
.cs-media .mxd-project-item__logowrap, .cs-next-media .mxd-project-item__logowrap { opacity: 0; }
.arun-tags.cs-play .arun-tags__tag--exchange { animation: arun-swing 2.8s cubic-bezier(.37, 0, .63, 1) both; }
.arun-tags.cs-play .arun-tags__tag--return   { animation: arun-swing-back 2.8s cubic-bezier(.37, 0, .63, 1) .09s both; }
.arun-tags.cs-play .arun-tags__m             { animation: arun-m-old .9s ease .2s both; }
.arun-tags.cs-play .arun-tags__arrow         { animation: arun-arrow-draw .45s cubic-bezier(.65, 0, .35, 1) .45s both; }
.arun-tags.cs-play .arun-tags__l             { animation: arun-l-drop .75s cubic-bezier(.34, 1.2, .64, 1) .85s both; }

/* ---------- section rhythm: one even gap between blocks instead of the template's stacked paddings */
.cs-section { padding-top: 7rem; padding-bottom: 7rem; }
@media only screen and (min-width: 1200px) { .cs-section { padding-top: 10rem; padding-bottom: 10rem; } }

/* ---------- overview: facts as a compact grid (no rules), stats in one row */
.cs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.8rem 3rem; }
.cs-fact { display: flex; flex-direction: column; gap: .8rem; }
.cs-fact__k { font: 500 1.2rem/1.2 var(--_font-accent); text-transform: uppercase; letter-spacing: .1em; color: var(--t-medium); }
.cs-fact__v { font: 500 1.8rem/1.35 var(--_font-default); color: var(--t-bright); }
.cs-stats { margin-top: 8rem; }
@media only screen and (min-width: 1200px) {
  .mxd-stats-lines.cs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 3rem; }
  .cs-stats .mxd-stats-lines__item { width: auto; margin: 0; }
}

/* ---------- story: number + label left, statement and short points right */
.cs-story__label { display: flex; align-items: baseline; gap: 1.6rem; font: 500 1.3rem/1 var(--_font-accent); text-transform: uppercase; letter-spacing: .1em; color: var(--t-medium); margin-bottom: 3rem; }
.cs-story__num { color: var(--t-bright); }
.cs-points { display: grid; gap: 3.2rem 4rem; margin-top: 5.6rem; }
@media only screen and (min-width: 768px) { .cs-points--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cs-points--2, .cs-points--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-point__num { display: block; margin-bottom: 1.6rem; font: 500 1.2rem/1 var(--_font-accent); letter-spacing: .1em; color: var(--accent); }
[color-scheme="dark"] .cs-point__num { color: var(--highlight--light); }
.cs-point__title { margin: 0 0 1rem; font: 600 2rem/1.25 var(--_font-default); letter-spacing: -.04rem; color: var(--t-bright); }
.cs-point__text { margin: 0; font: 400 1.6rem/1.5 var(--_font-default); color: var(--t-medium); }

/* result cards: the homepage journey cards (faded border), recoloured for the page background */
.cs-cards { margin-top: 6.4rem; }
.cs-stage::before { background: linear-gradient(180deg, rgba(var(--base-opp-rgb), .32), rgba(var(--base-opp-rgb), .1) 70%, rgba(var(--base-opp-rgb), .02)); }
.cs-stage::after  { background: linear-gradient(180deg, rgba(var(--base-opp-rgb), .05), rgba(var(--base-opp-rgb), 0) 60%); }
.cs-stage .arun-stage__metric { margin-top: 0; }
.cs-stage .arun-stage__value { color: var(--t-bright); font-size: 5rem; }
.cs-stage .arun-stage__caption { color: var(--t-medium); }
.cs-stage .arun-stage__line { min-height: 0; color: var(--t-medium); }
@media only screen and (max-width: 1199px) { .cs-stage .arun-stage__value { font-size: 3.8rem; } }

/* ---------- screens: Figma phones on a glass panel with the faded border */
.cs-screens { position: relative; padding: 4.8rem 2.4rem 4rem; border-radius: 3.2rem; background: linear-gradient(180deg, rgba(var(--base-opp-rgb), .05), rgba(var(--base-opp-rgb), .015)); }
@media only screen and (min-width: 1200px) { .cs-screens { padding: 6.4rem 6rem 5.6rem; } }
.cs-screens::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(180deg, rgba(var(--base-opp-rgb), .3), rgba(var(--base-opp-rgb), .08) 70%, rgba(var(--base-opp-rgb), .02));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.cs-screens__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1.6rem 4rem; margin-bottom: 5rem; }
.cs-screens__label { font: 500 1.3rem/1 var(--_font-accent); text-transform: uppercase; letter-spacing: .1em; color: var(--t-medium); }
.cs-screens__title { margin: 0; font: 600 2.6rem/1.2 var(--_font-default); letter-spacing: -.08rem; color: var(--t-bright); }
.cs-screens__row { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 2.4rem; overflow-x: auto; scrollbar-width: none; }
.cs-screens__row::-webkit-scrollbar { display: none; }
@media only screen and (min-width: 768px) { .cs-screens__row { grid-auto-columns: 38%; } }
@media only screen and (min-width: 1200px) { .cs-screens__row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4rem; overflow: visible; } }
.cs-screens__item { margin: 0; text-align: center; }
.cs-screens__item img { display: block; width: 100%; max-width: 30rem; height: auto; margin: 0 auto; filter: drop-shadow(0 2.4rem 3.2rem rgba(0, 0, 0, .28)); }
.cs-screens__item figcaption { margin-top: 2.4rem; font: 500 1.2rem/1.5 var(--_font-accent); text-transform: uppercase; letter-spacing: .08em; color: var(--t-medium); }

/* ---------- closing thought: centred, like the homepage statement */
.cs-closing { max-width: 110rem; margin: 0 auto; text-align: center; }
.cs-closing__label { margin-bottom: 3.2rem; font: 500 1.3rem/1 var(--_font-accent); text-transform: uppercase; letter-spacing: .1em; color: var(--t-medium); }

/* ---------- testimonial: company logo tile instead of a portrait */
.cs-logo-tile { display: grid; place-items: center; background: #fff; border-radius: 1.6rem; padding: 1.2rem; }
.cs-logo-tile img { object-fit: contain !important; }

/* ---------- type a step smaller than the homepage statements (38px) so the long-form page reads calmer */
.cs-page .manifest.manifest-s { font-size: 2.2rem; }
@media only screen and (min-width: 768px)  { .cs-page .manifest.manifest-s { font-size: 2.6rem; } }
@media only screen and (min-width: 1200px) { .cs-page .manifest.manifest-s { font-size: 3.2rem; } }
.cs-page .cs-closing .manifest.manifest-m { font-size: 2.4rem; }
@media only screen and (min-width: 1200px) { .cs-page .cs-closing .manifest.manifest-m { font-size: 3.6rem; } }
.cs-page .mxd-cpb-list__descr p.t-large { font-size: 1.8rem; }
.cs-page .mxd-cpb-list__name { font-size: 2.8rem; }
@media only screen and (min-width: 1200px) { .cs-page .mxd-cpb-list__name { font-size: 3.4rem; } }
.cs-page .mxd-stats-lines__number p { font-size: 5.6rem; }
@media only screen and (max-width: 767px) { .cs-page .mxd-stats-lines__number p { font-size: 4.4rem; } }
.cs-point__title { font-size: 1.8rem; }
.cs-point__text { font-size: 1.5rem; }
.cs-screens__title { font-size: 2.2rem; }

/* ---------- approach callout: the principle, tied to its section */
.cs-callout { position: relative; margin: 4.8rem 0 0; padding: 2.4rem 2.8rem 2.4rem 3.2rem; border-radius: 1.6rem;
  font: 600 2rem/1.35 var(--_font-default); letter-spacing: -.04rem; color: var(--t-bright); background: rgba(var(--base-opp-rgb), .05); }
.cs-callout::before { content: ""; position: absolute; left: 0; top: 2rem; bottom: 2rem; width: 3px; border-radius: 3px; background: var(--accent); }
[color-scheme="dark"] .cs-callout::before { background: var(--highlight--light); }
.cs-callout span { color: var(--t-medium); }
@media only screen and (min-width: 1200px) { .cs-callout { font-size: 2.4rem; } }

/* ---------- manager's feedback: glass panel, big quote mark left, quote + author right */
.cs-quote { position: relative; padding: 4.8rem 2.8rem; border-radius: 3.2rem; background: linear-gradient(180deg, rgba(var(--base-opp-rgb), .05), rgba(var(--base-opp-rgb), .015)); }
@media only screen and (min-width: 1200px) { .cs-quote { padding: 6.4rem 6.4rem 6.4rem 4.8rem; } }
.cs-quote::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(180deg, rgba(var(--base-opp-rgb), .3), rgba(var(--base-opp-rgb), .08) 70%, rgba(var(--base-opp-rgb), .02));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.cs-quote__side { display: flex; flex-direction: column; justify-content: space-between; }
.cs-quote__label { font: 500 1.3rem/1 var(--_font-accent); text-transform: uppercase; letter-spacing: .1em; color: var(--t-medium); }
.cs-quote__mark { display: block; margin: 2.4rem 0 1.6rem; font: 700 14rem/.7 var(--_font-default); color: var(--accent); }
[color-scheme="dark"] .cs-quote__mark { color: var(--highlight--light); }
@media only screen and (min-width: 1200px) { .cs-quote__mark { font-size: 20rem; margin: 0; } }
.cs-quote__text { margin: 0; font: 500 2rem/1.45 var(--_font-default); letter-spacing: -.04rem; color: var(--t-bright); }
@media only screen and (min-width: 1200px) { .cs-quote__text { font-size: 2.6rem; } }
.cs-quote__text span { color: var(--t-medium); }
.cs-quote__author { display: flex; align-items: center; gap: 1.6rem; margin-top: 4rem; }
.cs-quote__author .cs-logo-tile { width: 7.2rem; height: 4.8rem; padding: .8rem 1rem; border-radius: 1.2rem; }
.cs-quote__author .cs-logo-tile img { width: 100%; height: 100%; }
.cs-quote__author b { display: block; font: 600 1.7rem/1.3 var(--_font-default); color: var(--t-bright); }
.cs-quote__author i { display: block; font: normal 500 1.2rem/1.4 var(--_font-accent); text-transform: uppercase; letter-spacing: .08em; color: var(--t-medium); }

/* ---------- next case study: label + button left; pixel arrow right beside the cover, nudging towards it */
.cs-section--next { padding-top: 4rem; padding-bottom: 6rem; }
@media only screen and (min-width: 1200px) { .cs-section--next { padding-top: 6rem; padding-bottom: 8rem; } }
.cs-next { display: grid; gap: 3.2rem; align-items: center; }
@media only screen and (min-width: 1200px) { .cs-next { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.cs-next__head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
.cs-next__label { font: 500 1.3rem/1 var(--_font-accent); text-transform: uppercase; letter-spacing: .1em; color: var(--t-medium); }
.cs-next__link { display: flex; align-items: center; justify-content: flex-end; gap: 2.4rem; }
.cs-next__arrow { flex: none; display: block; animation: cs-nudge 1.8s cubic-bezier(.45, 0, .2, 1) infinite; }
.cs-next__arrow svg { display: block; width: 7rem; height: 7rem; fill: var(--t-medium); transition: fill .4s; }
@media only screen and (min-width: 1200px) { .cs-next__arrow svg { width: 9rem; height: 9rem; } }
@keyframes cs-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1.6rem); } }
.cs-next__link:hover .cs-next__arrow { animation: none; transform: translateX(2.8rem); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cs-next__link:hover .cs-next__arrow svg { fill: var(--t-bright); }
.cs-next-media { display: block; flex: 0 1 52rem; }
.cs-next-media .mxd-project-item__media { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--_radius-m, 1.6rem); }
.cs-next-media.is-square { flex-basis: 32rem; }
.cs-next-media.is-square .mxd-project-item__media { aspect-ratio: 1; }
@media (prefers-reduced-motion: reduce) { .cs-next__arrow { animation: none; } }

/* ---------- problem vs approach: different shapes so they don't read as the same block
   problem = observations + "brief -> real question" reframe; approach = crossed-out options */
.cs-reframe { display: grid; gap: 1.6rem; align-items: center; margin-top: 4.8rem; }
@media only screen and (min-width: 768px) { .cs-reframe { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } }
.cs-reframe__card { padding: 2.4rem 2.8rem; border-radius: 1.6rem; }
.cs-reframe__card span { display: block; margin-bottom: 1.2rem; font: 500 1.2rem/1 var(--_font-accent); text-transform: uppercase; letter-spacing: .1em; color: var(--t-medium); }
.cs-reframe__card p { margin: 0; font: 600 1.9rem/1.35 var(--_font-default); letter-spacing: -.03rem; }
.cs-reframe__card--before { box-shadow: inset 0 0 0 1px var(--cs-line); }
.cs-reframe__card--before p { color: var(--t-medium); text-decoration: line-through; text-decoration-thickness: 1px; }
.cs-reframe__card--after { background: var(--accent); }
.cs-reframe__card--after span { color: rgba(255, 255, 255, .7); }
.cs-reframe__card--after p { color: #fff; }
.cs-reframe__arrow svg { display: block; width: 3.2rem; height: 3.2rem; fill: var(--t-medium); }
@media only screen and (max-width: 767px) { .cs-reframe__arrow { justify-self: center; transform: rotate(90deg); } }

.cs-ruled { display: grid; gap: 1.2rem; margin-top: 4.8rem; }
@media only screen and (min-width: 768px) { .cs-ruled { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cs-ruled__item { position: relative; padding: 2.4rem 2.4rem 2.6rem; border-radius: 1.6rem; background: rgba(var(--base-opp-rgb), .04); }
.cs-ruled__x { position: absolute; top: 2.2rem; right: 2.2rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(229, 72, 77, .14); }
.cs-ruled__x::before, .cs-ruled__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.1rem; height: 1.5px; background: #e5484d; transform: translate(-50%, -50%) rotate(45deg); }
.cs-ruled__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.cs-ruled__title { margin: 0 3.2rem 1rem 0; font: 600 1.8rem/1.25 var(--_font-default); color: var(--t-bright); }
.cs-ruled__text { margin: 0; font: 400 1.5rem/1.5 var(--_font-default); color: var(--t-medium); }
/* quote and next case study sit closer together */
@media only screen and (min-width: 1200px) { .cs-section--quote { padding-bottom: 4rem; } .cs-section--next { padding-top: 2rem; } }
@media only screen and (max-width: 1199px) { .cs-section--quote { padding-bottom: 2rem; } .cs-section--next { padding-top: 2rem; } }
@media only screen and (min-width: 1200px) { .cs-section--next { padding-bottom: 5rem; } }
/* decision rows: keep the 3D tilt crisp (its own compositing layer, text rendered at full resolution) */
.cs-rows .mxd-perspective-list__inner { filter: none !important; will-change: transform, opacity; -webkit-font-smoothing: antialiased; }

/* ---------- screens panel variants: column count follows the number of screens; bare screens get a CSS phone frame;
   desktop screens sit two per row */
@media only screen and (min-width: 1200px) {
  .cs-screens--n3 .cs-screens__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-screens--n3 .cs-screens__item img { max-width: 32rem; }
}
.cs-screens--raw .cs-screens__item img { aspect-ratio: 600 / 1300; object-fit: cover; object-position: top; max-width: 26rem;
  border-radius: 3.4rem; border: .8rem solid #0c0c0d; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 2.4rem 4.8rem rgba(0, 0, 0, .35); filter: none; background: #fff; }
.cs-screens--desk .cs-screens__row { grid-auto-columns: 86%; }
@media only screen and (min-width: 1200px) {
  .cs-screens--desk .cs-screens__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4.8rem; }
  .cs-screens--desk.cs-screens--n1 .cs-screens__row { grid-template-columns: minmax(0, 1fr); }
}
.cs-screens--desk .cs-screens__item img { max-width: none; aspect-ratio: var(--desk-ar, 16 / 10); object-fit: cover; object-position: top; border-radius: 1.4rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 2.4rem 4.8rem rgba(0, 0, 0, .3); filter: none; }
.cs-screens__note { margin: -3.2rem 0 4rem; font: 400 1.4rem/1.5 var(--_font-default); color: var(--t-medium); }
@media only screen and (min-width: 1200px) { .mxd-stats-lines.cs-stats--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- before / after: old screen underneath, redesign revealed to the right of the handle */
.cs-compare-row { display: grid; gap: 4rem; align-items: start; }
@media only screen and (min-width: 768px) { .cs-compare-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media only screen and (min-width: 1200px) { .cs-compare-panel--n1 .cs-compare-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8rem; align-items: center; } }
.cs-compare-item { margin: 0; text-align: center; }
.cs-compare { position: relative; width: 100%; max-width: 32rem; margin: 0 auto; aspect-ratio: 600 / 1300; overflow: hidden; border-radius: 3.4rem;
  border: .8rem solid #0c0c0d; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 2.4rem 4.8rem rgba(0, 0, 0, .35); touch-action: pan-y; }
.cs-compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cs-compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.cs-compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
.cs-compare__line i { position: absolute; top: 50%; left: 50%; width: 4.4rem; height: 4.4rem; margin: -2.2rem 0 0 -2.2rem; border-radius: 50%; background: #fff;
  box-shadow: 0 .6rem 1.8rem rgba(0, 0, 0, .3); }
.cs-compare__line i::before, .cs-compare__line i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -.6rem; border: .6rem solid transparent; }
.cs-compare__line i::before { left: .9rem; border-right-color: #111; }
.cs-compare__line i::after { right: .9rem; border-left-color: #111; }
.cs-compare__tag { position: absolute; top: 1.6rem; padding: .6rem 1rem; border-radius: 99px; font: 500 1.1rem/1 var(--_font-accent); text-transform: uppercase; letter-spacing: .1em;
  color: #fff; background: rgba(12, 12, 13, .72); pointer-events: none; }
.cs-compare__tag--before { left: 1.6rem; }
.cs-compare__tag--after { right: 1.6rem; background: var(--accent); }
.cs-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cs-compare__range:focus-visible + * , .cs-compare:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.cs-compare-item figcaption { margin-top: 2.4rem; font: 500 1.2rem/1.5 var(--_font-accent); text-transform: uppercase; letter-spacing: .08em; color: var(--t-medium); }
.cs-compare-points { display: grid; gap: 3.2rem; text-align: left; }
.cs-compare-point .cs-point__title { margin-bottom: .8rem; }
/* overview stats: a step smaller when four sit in one row, so the numbers don't crowd each other */
@media only screen and (min-width: 1200px) {
  .cs-page .cs-stats--n4 .mxd-stats-lines__number p { font-size: 4.4rem; letter-spacing: 0; }
  .mxd-stats-lines.cs-stats--n4 { column-gap: 4.8rem; }
}

/* rows intro (e.g. "each widget is a template") under the section title */
.cs-rows-intro { max-width: 46em; margin: -2.4rem 0 5.6rem auto; font: 500 1.9rem/1.45 var(--_font-default); color: var(--t-bright); }
@media only screen and (min-width: 1200px) { .cs-rows-intro { width: calc(7 / 12 * 100%); margin-right: 0; font-size: 2.2rem; } }
.cs-rows-intro span { color: var(--t-medium); }

/* before / after with notes: text column + phone, aligned to the top of the phone */
.cs-compare-side { display: grid; gap: 4.8rem; align-items: center; }
@media only screen and (min-width: 1200px) { .cs-compare-side { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 8rem; padding: 0 2rem; } }
.cs-compare-text .cs-screens__title { margin: 1.6rem 0 4.8rem; font-size: 2.8rem; line-height: 1.2; }
.cs-compare-points { display: grid; gap: 3.2rem; }
.cs-compare-point { padding-left: 4.8rem; position: relative; }
.cs-compare-point .cs-point__num { position: absolute; left: 0; top: .5rem; margin: 0; }
.cs-compare-panel--side .cs-compare-item { margin: 0; }

/* desktop strips in a browser window, not a phone */
.cs-screens--web .cs-screens__item img { max-width: none; aspect-ratio: 880 / 1100; object-fit: cover; object-position: top; border-radius: 1.2rem;
  border-top: 2.8rem solid #1d1d20; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 2.4rem 4.8rem rgba(0, 0, 0, .3); filter: none; background: #fff; }
.cs-screens--web .cs-screens__item { position: relative; }
.cs-screens--web .cs-screens__item::before { content: ""; position: absolute; top: 1.15rem; left: 1.4rem; width: .6rem; height: .6rem; border-radius: 50%;
  background: #ff5f57; box-shadow: 1rem 0 0 #febc2e, 2rem 0 0 #28c840; z-index: 1; }
@media only screen and (min-width: 1200px) { .cs-screens--web .cs-screens__row { gap: 2.4rem; } }

/* result cards: values a step smaller so long ones (e.g. "~20% → mid-teens") stay on one line and cards match */
.cs-stage .arun-stage__value { font-size: 3.8rem; white-space: nowrap; }
@media only screen and (max-width: 1199px) { .cs-stage .arun-stage__value { font-size: 3.2rem; } }

/* next case study: a larger, clearer nudge towards the cover */
@keyframes cs-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(2.6rem); } }
.cs-next__link:hover .cs-next__arrow { transform: translateX(3.6rem); }

/* decision rows section: less air above its title (was the template's large number-title padding) */
.cs-section--rows { padding-top: 5rem; }
@media only screen and (min-width: 1200px) { .cs-section--rows { padding-top: 7rem; } }

/* square covers (from the homepage list rows): whole image centred, blurred copy filling the 16:9 frame */
.cs-media .cs-media--square { position: relative; background: #0d0d0e; }
.cs-media .cs-media--square .cs-media__bg { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(36px) brightness(.55) saturate(1.1); }
.cs-media .cs-media--square .cs-media__fg { position: absolute; top: 50%; left: 50%; height: 88%; width: auto; transform: translate(-50%, -50%);
  border-radius: 2rem; box-shadow: 0 3rem 6rem rgba(0, 0, 0, .45); }
/* wide case-page covers (image or video) fill the 16:9 frame exactly */
.cs-media .cs-media__wide, .cs-media .cs-media__video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* a UI card (not a full screen) in a phone row: no frame, centred against the phones */
.cs-screens__item--card { display: flex; flex-direction: column; justify-content: center; }
.cs-screens--raw .cs-screens__item--card img { aspect-ratio: auto; max-width: 30rem; border: 0; border-radius: 1.6rem; object-fit: contain; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 2.4rem 4.8rem rgba(0, 0, 0, .35); }
.cs-next-media .cs-media__wide, .cs-next-media .cs-media__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-next-media .mxd-project-item__media { position: relative; }

/* wide before/after (16:9 covers, e.g. layout → photo) */
.cs-compare-panel--wide .cs-compare-row { grid-template-columns: minmax(0, 1fr); gap: 5.6rem; }
@media only screen and (min-width: 1200px) { .cs-compare-panel--wide .cs-compare-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.cs-compare-panel--wide .cs-compare { max-width: none; aspect-ratio: 16 / 9; border-radius: 2rem; }
.cs-compare-panel--wide .cs-compare__img { object-position: center; }

/* Works page: every cover 16:9; layered covers sit on a stage at their own ratio, scaled to fill (layers stay aligned) */
.works .works-media { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; container-type: size; }
.works .works-stage { position: absolute; left: 50%; top: 50%; width: max(100cqw, 100cqh * (var(--ar))); aspect-ratio: var(--ar); transform: translate(-50%, -50%); }
.works .works-stage > img:first-child { display: block; width: 100%; height: 100%; object-fit: cover; }
.works .works-media > img, .works .works-media > video { width: 100%; height: 100%; object-fit: cover; }
.works .mxd-project-item__name { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.works .works-year { font: 500 1.2rem/1 var(--_font-accent); letter-spacing: .08em; text-transform: uppercase; color: var(--t-medium); }

/* Works: company filter chips */
.works-filter { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 4.8rem; padding: 0 var(--_gutter, 1.6rem); }
.works-filter__chip { appearance: none; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: var(--t-medium);
  padding: 1rem 1.8rem; border-radius: 99px; font: 500 1.3rem/1 var(--_font-accent); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: color .3s, background-color .3s, border-color .3s; }
.works-filter__chip sup { top: -.5em; margin-left: .2rem; font-size: .75em; opacity: .7; }
.works-filter__chip:hover { color: var(--t-bright); border-color: rgba(255, 255, 255, .4); }
.works-filter__chip.is-active { background: var(--t-bright); border-color: var(--t-bright); color: var(--base); }
.works-filter__chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[data-theme="light"] .works-filter__chip { border-color: rgba(0, 0, 0, .16); }
[data-theme="light"] .works-filter__chip:hover { border-color: rgba(0, 0, 0, .4); }
/* filtered: a plain two-column grid of the matches (the sticky pairs only make sense for the full list) */
.works .is-filtered > .container-fluid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 4rem; }
@media only screen and (min-width: 768px) { .works .is-filtered > .container-fluid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.works .is-filtered .mxd-projects-grid__gallery { display: contents; }
.works .is-filtered .mxd-project-divider { display: none; }
.works .is-filtered .works-item { width: 100%; max-width: none; flex: none; position: static; }
.works .is-filtered .works-item[hidden] { display: none; }
/* Works headline: longer than the template's, so it scales with the viewport to stay on two or three lines */
.works .inner-headline__title h1, .about .inner-headline__title h1 { font-size: clamp(4.4rem, 6.2vw, 10rem); line-height: 1.14; }

/* tags never break mid-label (e.g. "Behavioural design") */
.tag { white-space: nowrap; }
/* About: role line under the headline */
.about .inner-headline__subtitle { margin-top: 2.8rem; }
.about .inner-headline__subtitle p { font-size: clamp(2rem, 2.2vw, 3rem); line-height: 1.3; }
/* About: testimonial author shows the company logo (wide) in place of a portrait */
.about-quotes .about-logo { width: 7.2rem; height: 2.9rem; border-radius: .8rem; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.about-quotes .about-logo img { width: 100%; height: 100%; object-fit: contain; }
.about-quotes .mxd-testimonials-card__descr { font-size: clamp(1.8rem, 1.6vw, 2.4rem); line-height: 1.4; }
/* five-step lists (About: my story) */
@media only screen and (min-width: 768px) { .cs-points--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media only screen and (min-width: 1200px) { .cs-points--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Contact: the email address fits a phone screen */
.contact .contact-mail { display: block; max-width: 100%; overflow-wrap: anywhere; }
@media only screen and (max-width: 767px) { .contact .contact-mail { font-size: 2.1rem; } }

/* widened 16:9 covers (ZIP AI phone, Zivame laptop): photo widened by its own background, original animated cover over the centre.
   Scaled to fill any frame (case hero 16:9, next-case 3:2, Works 16:9), anchored by --ax so the subject is never cut. */
.mxd-project-item__media:has(> .wide-stage) { position: relative; overflow: hidden; container-type: size; }
.wide-stage { position: absolute; top: 50%; left: var(--ax, 50%); width: max(100cqw, 100cqh * (var(--ar))); aspect-ratio: var(--ar);
  transform: translate(calc(-1 * var(--ax, 50%)), -50%) scale(var(--z, 1)); transform-origin: var(--zo, 50% 50%); }
.wide-stage > img:first-child { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.wide-inset { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.wide-inset .arun-zp__stage, .wide-inset .arun-zl { width: 100%; height: 100%; }
/* the laptop cover zooms its camera 1.25x while playing; inside the widened frame that would split it from the extended background */
.wide-inset .arun-zl__cam, .wide-inset .arun-zl.play .arun-zl__cam { transform: none !important; }

/* "How it was measured" note under a results row */
.cs-measured { margin: 3.2rem 1.2rem 0; padding-top: 2rem; border-top: 1px solid var(--st-medium, rgba(127,127,127,.2));
  font-size: 1.5rem; line-height: 1.6; color: var(--t-medium); max-width: 80rem; }
.cs-measured span { display: block; margin-bottom: .6rem; font-family: var(--_font-accent, monospace); font-size: 1.2rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--t-medium); opacity: .75; }

/* ===================== cs14 blocks: columns, pipeline, video, switcher, gauges ===================== */
.cs-aside__intro { margin: 2.4rem 0 0; font: 400 1.7rem/1.6 var(--_font-default); color: var(--t-medium); max-width: 68rem; }
.cs-points--6 { display: grid; gap: 3.2rem 4rem; }
@media only screen and (min-width: 768px) { .cs-points--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media only screen and (min-width: 1200px) { .cs-points--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cs-cols { display: grid; gap: 1.6rem; margin-top: 4rem; }
@media only screen and (min-width: 768px) { .cs-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-col { padding: 2.8rem 3rem 2rem; border-radius: 1.6rem; box-shadow: inset 0 0 0 1px var(--cs-line); }
.cs-col__head { display: block; font: 500 1.2rem/1 var(--_font-accent); letter-spacing: .1em; text-transform: uppercase; color: var(--t-medium); }
.cs-col__big { margin: 1.2rem 0 0; font: 600 2.2rem/1.25 var(--_font-default); letter-spacing: -.03rem; color: var(--t-bright); }
.cs-col--bad .cs-col__big { color: #e5604d; }
.cs-col--good .cs-col__big { color: #3fb36e; }
.cs-col__list { list-style: none; margin: 1.8rem 0 0; padding: 0; counter-reset: s; }
.cs-col__list li { counter-increment: s; position: relative; padding: 1.2rem 0 1.2rem 3.2rem; border-top: 1px solid var(--cs-line); font: 400 1.5rem/1.5 var(--_font-default); color: var(--t-medium); }
.cs-col__list li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1.35rem; font: 500 1.1rem/1 var(--_font-accent); color: var(--t-medium); opacity: .7; }
.cs-col--done .cs-col__list li::before { content: "✓"; color: #3fb36e; opacity: 1; font-size: 1.4rem; }
.cs-col--open .cs-col__list li::before { content: "○"; color: #d9a43b; opacity: 1; font-size: 1.4rem; }

.cs-pipe { display: grid; margin-top: 4rem; border-radius: 1.6rem; box-shadow: inset 0 0 0 1px var(--cs-line); overflow: hidden; }
@media only screen and (min-width: 768px) { .cs-pipe { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.cs-pipe__node { position: relative; padding: 2.2rem 2rem 2.4rem; border-top: 1px solid var(--cs-line); }
.cs-pipe__node:first-child { border-top: 0; }
@media only screen and (min-width: 768px) { .cs-pipe__node { border-top: 0; border-left: 1px solid var(--cs-line); } .cs-pipe__node:first-child { border-left: 0; } }
.cs-pipe__node.is-next { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(var(--base-opp-rgb), .03) 8px 16px); }
.cs-pipe__n { display: block; font: 500 1.1rem/1 var(--_font-accent); letter-spacing: .08em; text-transform: uppercase; color: var(--t-medium); }
.cs-pipe__t { margin: 1.2rem 0 .6rem; font: 600 1.7rem/1.25 var(--_font-default); color: var(--t-bright); }
.cs-pipe__node.is-next .cs-pipe__t { color: var(--t-medium); }
.cs-pipe__d { margin: 0; font: 400 1.35rem/1.5 var(--_font-default); color: var(--t-medium); }
.cs-code { margin: 2.4rem 0 0; padding: 2.2rem 2.4rem; border-radius: 1.4rem; box-shadow: inset 0 0 0 1px var(--cs-line);
  font: 500 1.35rem/1.75 var(--_font-accent); color: var(--t-medium); white-space: pre; overflow-x: auto; }

.cs-video__fig { margin: 0; }
.cs-video__el { display: block; width: 100%; height: auto; border-radius: 1.6rem; background: #0b0b0c; box-shadow: inset 0 0 0 1px var(--cs-line); }
.cs-video__fig figcaption { margin-top: 1.6rem; font: 400 1.4rem/1.5 var(--_font-default); color: var(--t-medium); }

.cs-switch { margin-top: 4rem; padding: 2.4rem; border-radius: 1.6rem; box-shadow: inset 0 0 0 1px var(--cs-line); }
.cs-switch__row { display: flex; align-items: center; gap: 1.6rem; margin-bottom: 1.2rem; }
.cs-switch__row > span { flex: 0 0 6.4rem; font: 500 1.1rem/1 var(--_font-accent); letter-spacing: .1em; text-transform: uppercase; color: var(--t-medium); }
.cs-switch__chips { display: flex; flex-wrap: wrap; gap: .8rem; }
.cs-chip { font: 500 1.35rem/1 var(--_font-default); padding: .9rem 1.6rem; border-radius: 10rem; border: 1px solid var(--cs-line); background: transparent; color: var(--t-medium); cursor: pointer; transition: all .2s; }
.cs-chip:hover { color: var(--t-bright); border-color: rgba(var(--base-opp-rgb), .35); }
.cs-chip[aria-pressed="true"] { background: var(--base-opp); color: var(--base); border-color: var(--base-opp); }
.cs-switch__stage { margin-top: 2rem; display: flex; justify-content: center; padding: 3.2rem 2rem; border-radius: 1.2rem; background: rgba(var(--base-opp-rgb), .04); }
.cs-switch__stage img { width: min(100%, 38rem); height: auto; border-radius: .8rem; transition: opacity .25s ease; box-shadow: 0 2rem 4rem rgba(0, 0, 0, .25); }
.cs-switch__readout { margin: 1.6rem 0 0; font: 500 1.3rem/1.5 var(--_font-accent); color: var(--t-medium); }

.cs-gauges { display: grid; gap: 1.6rem; margin-top: 4rem; }
.cs-gauge { padding: 2.4rem 2.6rem; border-radius: 1.6rem; box-shadow: inset 0 0 0 1px var(--cs-line); }
.cs-gauge__t { margin: 0 0 1.6rem; font: 600 1.6rem/1.3 var(--_font-default); color: var(--t-bright); }
.cs-gauge__row { display: flex; justify-content: space-between; font: 400 1.35rem/1 var(--_font-default); color: var(--t-medium); margin-bottom: .8rem; }
.cs-gauge__row b { font: 600 1.4rem/1 var(--_font-accent); color: var(--t-bright); }
.cs-gauge__bar { position: relative; height: 1rem; border-radius: 1rem; background: rgba(var(--base-opp-rgb), .07); margin-bottom: 1.6rem; overflow: visible; }
.cs-gauge__bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 1rem; transition: width 1.4s cubic-bezier(.2, .7, .2, 1); }
.cs-gauges.is-in .cs-gauge__bar i { width: var(--w); }
.cs-gauge__bar.is-bad i { background: #e5604d; } .cs-gauge__bar.is-good i { background: #3fb36e; } .cs-gauge__bar.is-plain i { background: rgba(var(--base-opp-rgb), .45); }
.cs-gauge__bar em { position: absolute; top: -.5rem; bottom: -.5rem; left: 37.5%; width: 1px; background: var(--t-bright); opacity: .55; }
.cs-gauge__note, .cs-gauges__legend { margin: .4rem 0 0; font: 400 1.35rem/1.5 var(--_font-default); color: var(--t-medium); }
.cs-gauges__legend { margin-top: 1.6rem; }
@media (prefers-reduced-motion: reduce) { .cs-gauge__bar i { transition: none; } .cs-switch__stage img { transition: none; } }

/* ===================== cs14 interactive drop ===================== */
.cs-drop__stage { display: grid; gap: 3.2rem; align-items: start; }
@media only screen and (min-width: 992px) { .cs-drop__stage { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 4rem; } }
.cs-drop__src { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
@media only screen and (max-width: 991px) { .cs-drop__src { align-items: center; text-align: center; } }
.cs-drop__tag { font: 500 1.1rem/1 var(--_font-accent); letter-spacing: .1em; text-transform: uppercase; color: var(--t-medium); }
.cs-drop__card { width: min(21rem, 60vw); border-radius: 1rem; user-select: none; -webkit-user-select: none;
  box-shadow: 0 1.6rem 3.6rem rgba(0, 0, 0, .3), 0 0 0 1px var(--cs-line); transition: transform .2s, box-shadow .2s; outline: none; }
.cs-drop__card img { display: block; width: 100%; height: auto; border-radius: 1rem; pointer-events: none; }
.cs-drop__card:focus-visible, .cs-drop__card[aria-pressed="true"] { box-shadow: 0 1.6rem 3.6rem rgba(0, 0, 0, .3), 0 0 0 .3rem #3fb36e; }
.is-dragging .cs-drop__card { opacity: .35; cursor: grabbing; }
.cs-drop__help { margin: 0; font: 400 1.35rem/1.5 var(--_font-default); color: var(--t-medium); max-width: 24rem; }
.cs-drop__ghost { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; border-radius: 1rem; box-shadow: 0 2.4rem 5rem rgba(0, 0, 0, .45); }

.cs-drop__frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
@media only screen and (min-width: 768px) { .cs-drop__frames { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.cs-drop__frame { position: relative; border-radius: 2rem; overflow: hidden; aspect-ratio: 600 / 1300; background: #000; cursor: pointer; outline: none;
  box-shadow: 0 0 0 1px var(--cs-line), 0 2rem 4rem rgba(0, 0, 0, .25); transition: box-shadow .2s, transform .2s; }
.cs-drop__phone { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cs-drop__slot { position: absolute; left: 5%; right: 5%; bottom: 3%; aspect-ratio: 750 / 876; border-radius: .8rem;
  border: 1.5px dashed rgba(255, 255, 255, .7); background: rgba(10, 10, 12, .55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.cs-drop__hint { font: 500 1.05rem/1 var(--_font-accent); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.cs-drop__placed { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: .8rem; opacity: 0; transform: scale(.94); }
.cs-drop__placed:not([src]) { display: none; }
.cs-drop__frame.is-placed .cs-drop__slot { border-color: transparent; background: transparent; }
.cs-drop__frame.is-placed .cs-drop__hint { display: none; }
.cs-drop__frame.is-placed .cs-drop__placed { animation: cs-land .5s cubic-bezier(.2, .7, .2, 1) forwards; box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .35); }
@keyframes cs-land { 0% { opacity: 0; transform: scale(.9); box-shadow: 0 0 0 0 rgba(63, 179, 110, .9); } 60% { opacity: 1; transform: scale(1.03); box-shadow: 0 0 0 .6rem rgba(63, 179, 110, .35); } 100% { opacity: 1; transform: none; box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .35); } }
.cs-drop__frame.is-over, .cs-drop__frame:focus-visible { box-shadow: 0 0 0 .3rem #3fb36e, 0 2rem 4rem rgba(0, 0, 0, .25); transform: translateY(-.4rem); }
.cs-drop__frame.is-over .cs-drop__slot { background: rgba(63, 179, 110, .25); border-color: #3fb36e; }
.is-armed .cs-drop__frame:not(.is-placed) .cs-drop__slot { border-color: #3fb36e; }
.cs-drop__name { position: absolute; left: 0; right: 0; top: .9rem; text-align: center; font: 500 1rem/1 var(--_font-accent); letter-spacing: .1em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); opacity: 0; }
.cs-drop__status { min-height: 2.2rem; margin: 2rem 0 0; font: 400 1.4rem/1.5 var(--_font-default); color: var(--t-medium); }
@media (prefers-reduced-motion: reduce) { .cs-drop__frame.is-placed .cs-drop__placed { animation: none; opacity: 1; transform: none; } .cs-drop__card, .cs-drop__frame { transition: none; } }

/* ===================== cs14 scroll drop (in-flow slot, not an overlay) ===================== */
.cs-sd.is-scroll { height: 320vh; }
.cs-sd.is-scroll .cs-sd__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.cs-sd.is-scroll .cs-sd__sticky > .mxd-container { width: 100%; }
.cs-sd__panel { padding-bottom: 2.4rem; }
.cs-sd__stage { position: relative; display: grid; gap: 2rem; align-items: start; }
@media only screen and (min-width: 992px) { .cs-sd__stage { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 4rem; align-items: center; } }
.cs-sd__src { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
@media only screen and (max-width: 991px) { .cs-sd__src { flex-direction: row; flex-wrap: wrap; align-items: center; } .cs-sd__src .cs-sd__cap { flex: 1 1 100%; } }
.cs-sd__tag { font: 500 1.1rem/1 var(--_font-accent); letter-spacing: .1em; text-transform: uppercase; color: var(--t-medium); }
@media only screen and (max-width: 991px) { .cs-sd__tag { flex: 1 1 100%; } }
.cs-sd__card { width: min(20rem, 38vw); border-radius: 1rem; overflow: hidden; box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, .3), 0 0 0 1px var(--cs-line); }
.cs-sd__card img { display: block; width: 100%; height: auto; }
.cs-sd__cap { margin: 0; font: 400 1.35rem/1.55 var(--_font-default); color: var(--t-medium); max-width: 24rem; }
@media only screen and (max-width: 991px) { .cs-sd__cap { max-width: none; } }
.cs-sd.is-scroll .cs-sd__replay { display: none; }
.cs-sd__phones { display: flex; justify-content: space-between; gap: clamp(.6rem, 1.6vw, 2.4rem); }
.cs-sd.is-scroll .cs-sd__phones { height: min(calc(100vh - 24rem), 80rem); }
.cs-sd__phone { position: relative; flex: 0 1 auto; aspect-ratio: 750 / 2400; border-radius: clamp(.8rem, 1.4vw, 2rem); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--cs-line), 0 1.6rem 3.6rem rgba(0, 0, 0, .28); }
.cs-sd.is-scroll .cs-sd__phone { height: 100%; }
.cs-sd:not(.is-scroll) .cs-sd__phone { width: calc((100% - 3 * clamp(.6rem, 1.6vw, 2.4rem)) / 4); }
.cs-sd__page { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cs-sd__slot { position: absolute; left: 0; right: 0; top: var(--slot); aspect-ratio: 750 / 876; display: flex; align-items: center; justify-content: center;
  outline: 1.5px dashed rgba(63, 179, 110, .9); outline-offset: -.5rem; background: rgba(63, 179, 110, .08); transition: outline-color .3s, background .3s; }
.cs-sd__slot > span { padding: 0 .8rem; text-align: center; font: 500 clamp(.7rem, .9vw, 1.05rem)/1.3 var(--_font-accent); letter-spacing: .08em; text-transform: uppercase; color: #3fb36e; }
.cs-sd__in { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .25s ease; }
.cs-sd__phone.is-in .cs-sd__in { opacity: 1; }
.cs-sd__phone.is-in .cs-sd__slot { outline-color: transparent; background: transparent; }
.cs-sd__phone.is-in .cs-sd__slot > span { opacity: 0; }
.cs-sd__name { position: absolute; left: 0; right: 0; bottom: .8rem; text-align: center; font: 500 clamp(.7rem, .9vw, 1.05rem)/1 var(--_font-accent); letter-spacing: .1em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.cs-sd__fly { position: absolute; left: 0; top: 0; z-index: 3; height: auto; pointer-events: none; opacity: 0; will-change: transform, width; }
.cs-sd__hint { margin: 2rem 0 0; font: 500 1.1rem/1 var(--_font-accent); letter-spacing: .1em; text-transform: uppercase; color: var(--t-medium); }
.cs-sd:not(.is-scroll) .cs-sd__hint, .cs-sd.is-static .cs-sd__hint, .cs-sd.is-static .cs-sd__replay { display: none; }
