/* The case study and company template, page pass 2026-10-11. Loaded on
   every case study and every company page after site.css. Powder's blog
   post at home's standard, a centred head with the client's logo, the cover
   in home's frame, a 640px reading column, media at the full 1080px in 8px
   inset dark frames, phones on a dusk stage, Powder's large light numbers,
   See also as home's image cards, home's closing. The media controls (the
   before and after handle, zoom and the lightbox, the toggle, the tabs,
   pause and play, the live hint) are rebuilt at the end of this file. */

/* ---------- frames, dark in both themes ---------- */
.cs, .co-page { --fr-bg: #121212; --fr-ring: rgba(255, 255, 255, .09); --fr-drop: 0 0 0 transparent; }
:root[data-theme="light"] :is(.cs, .co-page) { --fr-drop: 0 1px 2px rgba(23, 20, 15, .08), 0 28px 56px -28px rgba(23, 20, 15, .4); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) :is(.cs, .co-page) { --fr-drop: 0 1px 2px rgba(23, 20, 15, .08), 0 28px 56px -28px rgba(23, 20, 15, .4); } }
.cs .fr, .co-page .fr { padding: 8px; border: 0; border-radius: 16px; background: var(--fr-bg); box-shadow: inset 0 0 0 1px var(--fr-ring), var(--fr-drop); }
.fr-clip { position: relative; overflow: hidden; border-radius: 10px; background: #0b0b0b; }
.fr-clip > :is(img, video, .zoom), .fr-clip .zoom > img { display: block; width: 100%; height: auto; border-radius: 0 !important; }
.fr-clip .zoom { border-radius: 0; }
/* the pointer light on a dark frame is white in both themes */
:root[data-theme="light"] :is(.cs, .co-page) .fr[data-glow]::before { background: radial-gradient(420px circle at var(--gx, -999px) var(--gy, -999px), rgba(255, 255, 255, .34), transparent 70%); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) :is(.cs, .co-page) .fr[data-glow]::before { background: radial-gradient(420px circle at var(--gx, -999px) var(--gy, -999px), rgba(255, 255, 255, .34), transparent 70%); } }
.cs .fig figcaption { margin-top: 16px; color: var(--pd-dim); font-size: 14px; line-height: 1.5; text-align: center; text-wrap: balance; }

/* ---------- the dusk frame, frame: 'scene' ----------
   The screen floats inside the 8px card shell on home's dusk sky with the
   closing dunes at its foot, crisp and never dimmed, the same in both
   themes. The scene is the frame's ::after, its ::before is the pointer light */
.cs .scn > .fr { isolation: isolate; padding: calc(8px + 4.5%) calc(8px + 7%); }
.cs .scn > .fr::after { content: ''; position: absolute; inset: 8px; z-index: -1; border-radius: 10px; background: url(/media/scenery/closing-dunes.webp) center bottom -12% / 104% auto no-repeat, url(/media/scenery/hero-sky.webp) 50% 40% / cover no-repeat, #23292f; }
.cs .scn > .fr > .fr-clip { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 70px rgba(0, 0, 0, .45); }
@media (max-width: 600px) {
  .cs .scn > .fr { padding: calc(6px + 5%) calc(6px + 4%); }
  .cs .scn > .fr::after { inset: 6px; }
  .cs .scn > .fr > .fr-clip { border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 14px 30px rgba(0, 0, 0, .4); }
}

/* ---------- the head ---------- */
.cs-head { padding-bottom: 48px; }
.cs-chip { margin: 0 0 22px; }
.cs-chip a { color: inherit; }
.cs-chip a:hover { color: #fff3f0; }
/* the chip keeps its 30px, its link reaches 44px through an invisible box */
.cs-chip { position: relative; }
.cs-chip a::after { content: ''; position: absolute; inset: -7px 0; }
.cs-head .cs-logo { margin-bottom: 24px; }
.cs-head .cs-chip + h1, .cs-head .cs-logo + h1 { margin-top: 0; }
.cs-head .cs-tabs { margin-top: 32px; }
/* the outcome in three short lines, on the tabs' dark glass so it reads over the hills in both themes */
.cs-head .cs-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; justify-self: center; width: 100%; max-width: 960px; margin: 36px 0 0; padding: 22px 28px; border-radius: 20px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); text-align: left; }
.cs-head .cs-sum div { min-width: 0; }
.cs-head .cs-sum dt { margin: 0 0 6px; color: rgba(255, 255, 255, .7); font: 400 13px/18px var(--sans); }
.cs-head .cs-sum dd { margin: 0; color: #fff3f0; font: 400 15px/1.5 var(--sans); letter-spacing: -.005em; text-wrap: pretty; }
@media (max-width: 900px) {
  .cs-head .cs-sum { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; padding: 18px 20px; border-radius: 16px; }
  .cs-head .cs-sum dt { margin-bottom: 4px; }
}

/* the cover, a screen or the opening before and after */
.cs-cover { margin: 0; }
.cs-cover .fr > img { display: block; width: 100%; height: auto; border-radius: 10px; }
.cs-cover figcaption { margin-top: 16px; color: var(--pd-dim); font-size: 14px; text-align: center; }

/* the facts on one quiet line under the cover, Powder's date and kind line */
.cs > .cs-facts { position: relative; z-index: 1; margin: 28px auto 0; max-width: 860px; color: var(--pd-mid); font-size: 14px; }
.cs > .cs-facts small { color: var(--pd-dim); font-size: 14px; }
.cs > .cs-facts i { color: var(--pd-faint); }
.cs > .cs-facts a { color: var(--pd-tx); text-decoration-color: var(--pd-edge-2); }
.cs > .cs-facts a:hover { text-decoration-color: currentColor; }

/* ---------- the reading column ---------- */
.cs .art-body { padding-top: 80px; }
.cs .art-body > p { font-size: 17px; line-height: 1.7; color: var(--pd-mid); }
.cs .art-body > p + p { margin-top: 18px; }
.cs .art-body > h2 { margin-top: 104px; margin-bottom: 20px; color: var(--pd-tx); font: 500 clamp(28px, 2.8vw, 36px)/1.25 var(--disp); letter-spacing: -.035em; text-wrap: balance; }
.cs .art-body > .fig { margin-block: 48px 56px; }
.cs .art-body > .fig + .fig { margin-top: 24px; }
.cs .art-body > h2 + .fig { margin-top: 32px; }

/* ---------- Powder's numbers, large and light ---------- */
.cs .art-body .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 80px 0; padding: 0; border: 0; overflow: visible; }
.cs .art-body .stats div { padding: 28px 0 0; border: 0; border-top: 1px solid var(--pd-edge); }
.cs .art-body .stats dt { display: flex; align-items: baseline; gap: .08em; white-space: nowrap; color: var(--pd-tx); font: 400 clamp(52px, 5.4vw, 72px)/1 var(--disp); letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.cs .art-body .stats dt small { color: var(--pd-dim); font-size: 1em; font-weight: 200; letter-spacing: -.05em; }
.cs .art-body .stats dt small.w { margin-left: .12em; font-size: .4em; font-weight: 300; letter-spacing: -.02em; }
.cs .art-body .stats dd { margin-top: 14px; max-width: 22ch; color: var(--pd-dim); font-size: 14px; line-height: 1.5; }

/* ---------- galleries ---------- */
.cs .gallery .g-row { gap: 10px; }
.gallery.g3 .g-cell:first-child .fr-clip { height: 100%; }
.gallery.g3 .g-cell:first-child .fr-clip :is(img, .zoom) { height: 100%; }
.gallery.g3 .g-cell:first-child .fr-clip img { object-fit: cover; object-position: top left; }

/* ---------- before and after ---------- */
.cs .compare .cmp-frame { border: 0; border-radius: 10px; }
.cmp-legend { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 16px; margin-top: 14px; }
.cmp-legend figcaption { margin: 6px 0 0 !important; }
.cmp-legend .cmp-tag, .sd-cell .cmp-tag { position: static; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--pd-chip); box-shadow: inset 0 0 0 1px var(--pd-edge); color: var(--pd-mid); font-size: 13px; line-height: 1; white-space: nowrap; pointer-events: none; }
.cmp-legend .cmp-tag::before, .sd-cell .cmp-tag::before { content: ''; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.cmp-legend .cmp-tag.r { color: var(--pd-tx); }
.cmp-legend .cmp-tag.r::before { opacity: 1; }
.sd-cell { display: grid; justify-items: center; gap: 12px; }
.sd-cell > .fr { width: 100%; }
.cs .art-body > .sides:not(.tall) .sd-row { gap: 10px; }

/* ---------- the dusk stage, phones stand on it ---------- */
.stage { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; padding: 64px 40px; border-radius: 16px; background: url(/media/scenery/hero-hills-near.webp) 50% 100% / 150% auto no-repeat, linear-gradient(180deg, #232930 0%, #363840 42%, #5e4f57 78%, #6a5960 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--fr-drop); --pd-chip: rgba(0, 0, 0, .3); --pd-edge: rgba(255, 255, 255, .16); --pd-mid: rgba(255, 255, 255, .82); --pd-tx: #fff3f0; }
.stage .fr { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 70px -10px rgba(0, 0, 0, .55); }
.stage .phones-row { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; align-items: center; gap: 40px; width: 100%; max-width: none; margin: 0; }
.phones.one .stage .phones-row { grid-template-columns: minmax(0, 300px); }
.phones.three .stage .phones-row { grid-template-columns: minmax(0, 260fr) minmax(0, 340fr) minmax(0, 260fr); max-width: 940px; gap: 32px; }
.stage .phone { min-width: 0; }
.stage .phone .shot, .stage .phone .zoom, .stage .phone video { display: block; width: 100%; height: auto; border-radius: 26px; }
.stage .phone > :is(.shot, .zoom, video) { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 70px -10px rgba(0, 0, 0, .55); }
.stage .phone-lv .fr { padding: 6px; border-radius: 30px; }
.stage .phone-lv .lv-view, .stage .phone-lv .fr > .lv-view { border-radius: 24px; }
/* a phone page alone keeps its 340px, the stage takes the column */
.cs .art-body > .fig.phone-live, .cs .art-body > .fig.compare.tall, .cs .art-body > .fig.sides.tall { max-width: none !important; margin-inline: 0; }
.phone-live .stage > .fr { width: 340px; max-width: 100%; padding: 6px; border-radius: 30px; }
.phone-live .stage .lv-view { border-radius: 24px; }
.compare.tall .stage > .fr { width: 340px; max-width: 100%; padding: 6px; border-radius: 30px; }
.compare.tall .stage .cmp-frame { max-width: none; border-radius: 24px; }
.sides.tall .stage .sd-row { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 40px; width: 100%; max-width: none; margin: 0; }
.sides.tall .stage .fr { padding: 6px; border-radius: 30px; }
.sides.tall .stage .fr-clip { border-radius: 24px; }
.compare.tall .cmp-legend { max-width: 560px; margin-inline: auto; }

/* ---------- live frames ---------- */
.cs .live .lv-view { border: 0; border-radius: 10px; }
/* its controls, with the video's, are in media and controls at the end */

/* ---------- What we did ---------- */
.cs .scope { margin-block: 64px; }

/* ---------- See also and the end ---------- */
.cs .art-next { margin-top: 160px; }
.cs-also { padding-bottom: 40px; }

/* ---------- a company page ---------- */
.co-head { padding-bottom: 64px; }
.co-head .co-name { margin: 0; line-height: 0; }
.co-head .co-logo { display: flex; justify-content: center; }
.co-head .co-logo img { height: 48px; width: auto; max-width: 320px; object-fit: contain; object-position: center; }
.co-head .lede { max-width: 50ch; margin-top: 24px; }
.co-head .cs-facts { margin-top: 28px; }
.co-studies { position: relative; z-index: 1; padding: 16px 0 40px; }
.co-cards.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.co-cards.n2 .pd-card-img { aspect-ratio: 16 / 10; }
.co-page .pd-close { margin-top: 120px; }

/* ---------- phones and tablets ---------- */
@media (max-width: 900px) {
  .cs-head { padding-bottom: 36px; }
  .cs > .cs-facts { flex-direction: column; align-items: center; gap: 2px; margin-top: 22px; font-size: 13px; }
  .cs > .cs-facts small { font-size: 13px; }
  .cs .art-body { padding-top: 56px; }
  .cs .art-body > p { font-size: 16px; line-height: 1.65; }
  .cs .art-body > h2 { margin-top: 80px; font-size: 26px; }
  .cs .art-body > .fig { margin-block: 36px 44px; }
  .cs .art-body .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; margin: 56px 0; }
  .cs .art-body .stats div { padding-top: 20px; }
  .cs .art-body .stats dt { font-size: 48px; }
  .cs .fr, .co-page .fr { padding: 6px; border-radius: 14px; }
  .fr-clip { border-radius: 9px; }
  .stage { padding: 40px 16px; background-size: 260% auto, auto; }
  .stage .phones-row, .sides.tall .stage .sd-row { gap: 14px; }
  .phones.three .stage .phones-row { gap: 10px; }
  .stage .phone .shot, .stage .phone .zoom, .stage .phone video { border-radius: 18px; }
  .stage .phone-lv .fr { padding: 4px; border-radius: 20px; }
  .stage .phone-lv .lv-view { border-radius: 16px; }
  .phone-live .stage > .fr, .compare.tall .stage > .fr { width: 280px; }
  .cmp-legend { gap: 10px; }
  .cmp-legend .cmp-tag { height: 28px; padding: 0 10px; font-size: 12px; }
  .cmp-legend .cmp-tag::before { display: none; }
  .co-head .co-logo img { height: 36px; }
  .co-cards.n2 { grid-template-columns: 1fr; }
  .co-page .pd-close { margin-top: 80px; }
  .cs .art-next { margin-top: 112px; }
}
@media (max-width: 480px) {
  .phones.three .stage .phones-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); }
  .cmp-legend { grid-template-columns: 1fr 1fr; }
  .cmp-legend figcaption { grid-column: 1 / -1; grid-row: 2; }
  .cmp-legend .cmp-tag.l { justify-self: start; }
  .cmp-legend .cmp-tag.r { justify-self: end; }
}
/* inline links in the facts and captions grow their hit area without moving a line, 24px on fine pointers, 44px on touch */
.cs > .cs-facts a, .co-head .cs-facts a, .cs .fig figcaption a { padding-block: 3px; }
@media (max-width: 900px), (pointer: coarse) { .cs > .cs-facts a, .co-head .cs-facts a, .cs .fig figcaption a { padding-block: 14px; } }
/* stacked on phones, a row holding a link is as tall as its 44px target, so two link rows in a row never overlap and steal each other's taps */
@media (max-width: 900px) { .cs > .cs-facts > span:has(> a) { padding-block: 14px; } .cs > .cs-facts > span > a { padding-block: 14px; } }
/* the company chip's link is a flex item, so padding would grow the chip, its ::after carries the 44px instead */
.co-head .cs-chip a { padding-block: 0 !important; }

/* ---------- media and controls, rebuilt 2026-10-11 ----------
   Everything a reader touches inside a case study, in home's language.
   Glass is Powder's active pill (rgba(23,23,23,.85) with a faint inner
   ring and top light), hovers settle on Powder's spring (250ms), pills and
   screens crossfade on its 600ms curve. Frames are dark in both themes, so
   every control on a frame is the same in both. */
.cs, .co-page, .lbx {
  --cs-ease: cubic-bezier(.22, 1, .36, 1);
  --cs-glass: rgba(23, 23, 23, .85);
  --cs-glass-hi: rgba(38, 38, 38, .85);
  --cs-glass-ring: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .08);
  /* a ring on a frame or a screen, warm with a dark rim so it reads over white and dark screens alike */
  --cs-ring: 0 0 0 2px rgba(0, 0, 0, .45), 0 0 0 4px #fff3f0, 0 0 0 5px rgba(0, 0, 0, .25);
  /* the ring on the page itself, warm on dark, ink on light */
  --cs-focus: var(--focus, #fff3f0);
}
:root[data-theme="light"] :is(.cs, .co-page) { --cs-focus: var(--focus, #17140f); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) :is(.cs, .co-page) { --cs-focus: var(--focus, #17140f); } }

/* ---------- screens inside the frames ----------
   No second hairline inside the 8px frame and a calm dark tone while a
   screen loads, the frame's own well in both themes */
:is(.cs, .co-page) .fr :is(.shot, video), :is(.cs, .co-page) .fr-clip > img, .cs .lv-view, .cs .tg-frame, .cs .stage :is(.shot, video), .cs .cmp-frame { border: 0; background: #0b0b0b; }
.cs .compare .cmp-before .shot { background: #0b0b0b; }

/* ---------- before and after, the glass handle ----------
   A warm line with a dark rim so it holds over white and dark screens, a
   frosted round knob with two fine chevrons. Hover deepens the glass, a
   press gives a little, keyboard focus rings the knob. The arrow keys move
   it (site.js), and it glides only when moved by key. */
.cs .cmp-handle { z-index: 2; width: 2px; margin-left: -1px; background: #fff3f0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.cs .cmp-handle::after {
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: var(--cs-glass); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  box-shadow: var(--cs-glass-ring), 0 6px 18px rgba(0, 0, 0, .28);
  transform: none; transition: background-color 250ms var(--cs-ease), box-shadow 250ms var(--cs-ease), scale 250ms var(--cs-ease);
}
.cs .cmp-handle::before {
  content: ''; position: absolute; z-index: 1; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none;
  background: #fff3f0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6.5 5.5 3 9l3.5 3.5M11.5 5.5 15 9l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6.5 5.5 3 9l3.5 3.5M11.5 5.5 15 9l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  transition: scale 250ms var(--cs-ease);
}
.cs .cmp-frame:hover .cmp-handle::after { transform: none; background: var(--cs-glass-hi); }
.cs .cmp-frame:active .cmp-handle::after, .cs .cmp-frame:active .cmp-handle::before { transform: none; scale: .96; }
.cs .compare:focus-within .cmp-handle::after { box-shadow: var(--cs-glass-ring), 0 6px 18px rgba(0, 0, 0, .28); }
.cs .compare:has(.cmp-range:focus-visible) .cmp-handle::after { box-shadow: var(--cs-glass-ring), var(--cs-ring); }
.cs .cmp-range:focus-visible { outline: 0; }
.cs .compare.tall .cmp-handle::after { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cs .compare.kb .cmp-handle { transition: left 250ms var(--cs-ease); }
.cs .compare.kb .cmp-before { transition: clip-path 250ms var(--cs-ease); }

/* ---------- the two state toggle, home's segmented control ----------
   The radio pair stays, the track and its dark glass pill are home's */
.cs .toggle .tg-seg { display: flex; width: max-content; max-width: 100%; gap: 8px; margin: 0 auto 24px; padding: 8px; border: 0; border-radius: 72px; background: var(--seg-bg, rgba(0, 0, 0, .85)); box-shadow: inset 0 0 0 1px var(--pd-edge); }
.cs .toggle .tg-seg label { isolation: isolate; height: 40px; padding: 0 24px; border-radius: 609px; background: none; color: var(--seg-tx, rgba(255, 255, 255, .62)); font: 400 16px/24px var(--sans); letter-spacing: -.01em; transition: color 600ms var(--cs-ease); }
.cs .toggle .tg-seg label::before { inset: -8px -4px; }
.cs .toggle .tg-seg label::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--cs-glass); box-shadow: var(--cs-glass-ring); opacity: 0; transition: opacity 600ms var(--cs-ease); }
.cs .toggle .tg-seg label:hover { color: var(--seg-hov, rgba(255, 255, 255, .86)); }
.cs .tg-r:nth-of-type(1):checked ~ .tg-seg label:nth-child(1), .cs .tg-r:nth-of-type(2):checked ~ .tg-seg label:nth-child(2) { background: none; color: #fff3f0; }
.cs .tg-r:nth-of-type(1):checked ~ .tg-seg label:nth-child(1)::after, .cs .tg-r:nth-of-type(2):checked ~ .tg-seg label:nth-child(2)::after { opacity: 1; }
.cs .tg-r:nth-of-type(1):focus-visible ~ .tg-seg label:nth-child(1), .cs .tg-r:nth-of-type(2):focus-visible ~ .tg-seg label:nth-child(2) { outline: 2px solid var(--cs-focus); outline-offset: 2px; }
.cs .tg-frame > *, .cs .tg-r:nth-of-type(2):checked ~ .fr .tg-frame > :nth-child(2) { transition: opacity 600ms var(--cs-ease), visibility 0s; }
.cs .tg-frame > :nth-child(2), .cs .tg-r:nth-of-type(2):checked ~ .fr .tg-frame > :nth-child(1) { transition: opacity 600ms var(--cs-ease), visibility 0s 600ms; }
.cs .tg-r:nth-of-type(2):checked ~ .fr .tg-frame > :nth-child(1) { opacity: 0; }
.cs .tg-r:nth-of-type(2):checked ~ .fr .tg-frame > :nth-child(2) { opacity: 1; visibility: visible; }

/* ---------- the case study tabs, home's dark glass pill in a track ---------- */
/* the head's one column never grows past the page, so a long row of tabs scrolls inside its track */
.cs-head { grid-template-columns: minmax(0, 1fr); }
.cs-head .cs-tabs { display: flex; flex-wrap: nowrap; justify-self: center; gap: 4px; width: max-content; max-width: 100%; margin: 36px 0 0; padding: 6px; border-radius: 72px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.cs-head .cs-tabs::-webkit-scrollbar { display: none; }
.cs-head .cs-tabs a { flex: none; height: 36px; padding: 0 20px; border-radius: 609px; background: none; box-shadow: none; color: rgba(255, 255, 255, .62); font: 400 14px/21px var(--sans); letter-spacing: -.01em; transition: color 250ms var(--cs-ease), background-color 600ms var(--cs-ease); }
.cs-head .cs-tabs a:hover { color: rgba(255, 255, 255, .86); background: none; }
.cs-head .cs-tabs a[aria-current] { color: #fff3f0; background: var(--cs-glass); box-shadow: var(--cs-glass-ring); }
.cs-head .cs-tabs a:focus-visible { outline: 2px solid #fff3f0; outline-offset: -2px; border-radius: 609px; }

/* ---------- zoom and the lightbox ----------
   A screen is never dimmed on hover, the frame's pointer light is the only
   change. Keyboard focus rings the frame, the button itself is clipped.
   The lightbox blurs and darkens the page so nothing shows through, the
   image sits in home's frame, the close is Powder's round glass button */
.cs .zoom .shot, .cs .zoom:hover .shot { opacity: 1; transition: none; }
.cs .fr-clip .zoom:focus-visible { outline: 0; }
.cs .fr:has(.zoom:focus-visible) { outline: 2px solid var(--cs-focus); outline-offset: 3px; }
.cs .stage .zoom:focus-visible { outline: 2px solid #fff3f0; outline-offset: 3px; }
.lbx { padding: 80px 24px 32px; background: rgba(0, 0, 0, .88); -webkit-backdrop-filter: blur(24px) saturate(.8); backdrop-filter: blur(24px) saturate(.8); color: #fff3f0; }
.lbx::backdrop { background: transparent; }
.lbx figure { gap: 16px; }
.lbx-fr { max-width: 100%; padding: 8px; border-radius: 16px; background: #121212; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 80px -20px rgba(0, 0, 0, .6); }
.lbx img { display: block; max-width: min(100%, 1600px); max-height: calc(100vh - 184px); max-height: calc(100dvh - 184px); border: 0; border-radius: 10px; background: #0b0b0b; }
.lbx figcaption { max-width: 68ch; color: rgba(255, 255, 255, .62); font-size: 14px; line-height: 21px; letter-spacing: -.01em; text-wrap: balance; }
.lbx .lbx-x { top: 24px; right: 24px; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); color: rgba(255, 255, 255, .8); transition: background-color 250ms var(--cs-ease), color 250ms var(--cs-ease), scale 250ms var(--cs-ease); }
.lbx .lbx-x:hover { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .25); color: #fff3f0; }
.lbx .lbx-x:active { transform: none; scale: .96; }
.lbx .lbx-x:focus-visible { outline: 2px solid #fff3f0; outline-offset: 2px; border-radius: 50%; }
.lbx .lbx-x svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .lbx[open] { animation: cs-lbx-in 600ms var(--cs-ease); }
  .lbx[open] img { animation: none; }
  .lbx[open] .lbx-fr { animation: cs-lbx-pop 600ms var(--cs-ease); }
  .lbx.closing { opacity: 0; transition: opacity 250ms var(--cs-ease); }
  .lbx.closing .lbx-fr { scale: .98; transition: scale 250ms var(--cs-ease); }
}
@media (prefers-reduced-motion: reduce) { .lbx[open], .lbx[open] img, .lbx[open] .lbx-fr { animation: none; } }
@keyframes cs-lbx-in { from { opacity: 0; } }
@keyframes cs-lbx-pop { from { opacity: 0; scale: .97; } }
@media (max-width: 600px) {
  .lbx { padding: 80px 12px 20px; }
  .lbx .lbx-x { top: 16px; right: 16px; }
  .lbx-fr { padding: 6px; border-radius: 14px; }
  .lbx img { border-radius: 9px; }
}

/* ---------- pause and play, one glass button for live frames and videos ----------
   Bottom left of the screen. On a video it shows on hover or focus, stays
   while paused, and is always there on touch and under reduced motion,
   where the video waits on its poster until played */
.cs :is(.lv-pause, .vd-pause) {
  position: absolute; z-index: 3; left: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: var(--cs-glass); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  box-shadow: var(--cs-glass-ring), 0 4px 14px rgba(0, 0, 0, .25); color: #fff3f0; cursor: pointer;
  transition: background-color 250ms var(--cs-ease), opacity 250ms var(--cs-ease), scale 250ms var(--cs-ease);
}
.cs :is(.lv-pause, .vd-pause):hover { background: var(--cs-glass-hi); }
.cs :is(.lv-pause, .vd-pause):active { transform: none; scale: .96; transition-duration: 120ms; }
.cs :is(.lv-pause, .vd-pause):focus-visible { outline: 0; box-shadow: var(--cs-glass-ring), var(--cs-ring); }
.cs :is(.lv-pause, .vd-pause) svg { width: 14px; height: 14px; }
.cs .vd-pause .pl, .cs .vd-pause.off .ps { display: none; }
.cs .vd-pause.off .pl { display: inline; }
/* the play mark sits a touch right, so it reads centred */
.cs :is(.live.paused .lv-pause, .vd-pause.off) svg { translate: 1px 0; }
.cs .vd-pause { opacity: 0; }
.cs :is(.fr-clip, .phone):hover > .vd-pause, .cs .vd-pause:focus-visible, .cs .vd-pause.off { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cs .vd-pause { opacity: 1; } .cs :is(.lv-pause, .vd-pause) { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .cs .vd-pause { opacity: 1; } .cs :is(.lv-pause, .vd-pause) { transition: none; } }
.cs .stage .phone { position: relative; }
.cs .stage .phone > .vd-pause { left: 14px; bottom: 14px; }

/* ---------- live frames, the hint chip and the open link ---------- */
.cs .lv-try { left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 14px 0 13px; border-radius: 99px; background: rgba(23, 23, 23, .78); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); font: 400 14px/21px var(--sans); letter-spacing: -.01em; white-space: nowrap; transition: opacity 600ms var(--cs-ease); }
.cs .lv-try::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: #fff3f0; }
.cs .live.interactive .lv-try { left: auto; right: 12px; }
.cs .lv-view iframe { transition: opacity 600ms var(--cs-ease); }
.cs .lv-poster { transition: opacity 600ms var(--cs-ease); }
.cs .live figcaption .lv-open { display: inline-flex; align-items: baseline; gap: 4px; color: var(--pd-mid); text-decoration: none; white-space: nowrap; transition: color 250ms var(--cs-ease); }
.cs .live figcaption .lv-open span { display: inline-block; transition: translate 250ms var(--cs-ease); }
.cs .live figcaption .lv-open:hover { color: var(--pd-tx); text-decoration: none; }
.cs .live figcaption .lv-open:hover span { translate: 2px -2px; }
.cs .live figcaption .lv-open:active { transform: none; }

/* ---------- The Moat's note, a quiet notice in home's card language ---------- */
.cs .art-body > .note { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--pd-card); box-shadow: inset 0 0 0 1px var(--pd-edge); color: var(--pd-mid); font-size: 14px; line-height: 21px; letter-spacing: -.01em; }
.cs .art-body > .note::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--pd-tx); translate: 0 -2px; }

/* ---------- Read the editor case study, Powder's text link with arrow ---------- */
.cs .art-body > .out a { gap: 6px; color: var(--pd-mid); font-size: 16px; line-height: 24px; text-decoration: none; transition: color 250ms var(--cs-ease); }
.cs .art-body > .out a:hover { color: var(--pd-tx); text-decoration: none; }
.cs .art-body > .out a span { display: inline-block; transition: translate 250ms var(--cs-ease); }
.cs .art-body > .out a:hover span { translate: 3px 0; }
.cs .art-body > .out a[rel~="noopener"]:hover span { translate: 2px -2px; }

@media (prefers-reduced-motion: reduce) {
  .cs .cmp-handle::after, .cs .cmp-handle::before, .cs .compare.kb .cmp-handle, .cs .compare.kb .cmp-before,
  .cs .toggle .tg-seg label, .cs .toggle .tg-seg label::after, .cs .tg-frame > *, .cs-head .cs-tabs a,
  .cs .lv-try, .cs .lv-view iframe, .cs .lv-poster, .cs .live figcaption .lv-open span, .cs .art-body > .out a span { transition: none !important; }
}
@media (max-width: 900px) {
  .cs-head .cs-tabs a { height: 44px; padding: 0 18px; }
  .cs .toggle .tg-seg { gap: 6px; padding: 6px; }
  .cs .toggle .tg-seg label { height: 44px; padding: 0 20px; font-size: 15px; }
}
