
/* ---------- Fonts (Host Grotesk, SIL Open Font License 1.1, self-hosted) ---------- */
/* Host Grotesk — Copyright 2023 The Host Grotesk Project Authors (https://github.com/Element-Type/HostGrotesk). SIL Open Font License 1.1, https://openfontlicense.org — embedded below. Subsets of version 1.003, weights 300, 400 and 500; in the latin subsets U+2011 (non-breaking hyphen) is mapped to the font's own hyphen; the arrows come from the full font at weight 400. */
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/v42/fonts/9977bf0d50.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/v42/fonts/4c667f4631.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/v42/fonts/87cf928f54.woff2") format("woff2");
  unicode-range: U+2190, U+2192, U+2194-2199;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/v42/fonts/96e63b7ce1.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/v42/fonts/b97962e9fc.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/v42/fonts/04ca001b7a.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/v42/fonts/2b1da6800a.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (values taken from the Figma design, 1440 px frame) ---------- */
:root {
  --ink: #0f0f10;          /* type */
  --brown: #261403;        /* buttons, bullets, closing box */
  --accent: #a4550b;       /* logo dot, badges */
  --muted: #6b6b6b;        /* secondary text; Figma uses ink at 40 %, darkened here to pass WCAG AA */
  --line: #ccc;            /* dividers, card borders (Figma: black at 20 %) */
  --line-soft: #d2d2d2;
  --surface: #f4f3f2;      /* chips, featured plan (Figma: brown at 5 %) */
  --surface-2: #f8f8f7;    /* grey section */
  --bg: #fff;
  --lime: #f5ffb9;         /* text on photographs */

  --font: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1376px;
  --gutter: clamp(16px, 2.2222vw, 32px);
  --header-h: 81px;
  --display: clamp(30px, 1.6vw + 25px, 48px);
  --title: clamp(20px, 0.3vw + 19.7px, 24px);
  --section: clamp(80px, 9.4444vw, 136px);   /* space between sections */
  --col-gap: clamp(32px, 7.5vw, 108px);       /* between a photograph and its text */
  --img-landscape: url("/images/v42/93254d589f.webp");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
.anchor-target { scroll-margin-top: 24px; }
/* Hidden for a moment while the Czech copy is swapped in (see script in <head>) */
html.i18n-pending body { opacity: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/21px var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--brown); color: #fff; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */
.display {
  font-size: var(--display);
  line-height: 1.3333;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.title {
  font-size: var(--title);
  line-height: 1.3333;
  letter-spacing: -0.028em;
  font-weight: 400;
  color: var(--ink);
}
.eyebrow { text-transform: uppercase; }
h2.eyebrow, h3.eyebrow, h4.eyebrow { font-size: 14px; line-height: 21px; font-weight: 400; }
.lede { max-width: 412px; }
.muted, .note { color: var(--muted); }
.arrow { display: inline-block; width: 0.5em; height: 0.4em; margin: 0 0.095em; vertical-align: 0.08em; }
.nowrap { white-space: nowrap; }
.text-link { display: inline-block; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .2s ease, text-decoration-color .2s ease; }
.text-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 11px;
  border: 1px solid var(--brown);
  font-size: 14px; line-height: 21px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--solid { background: var(--brown); color: #fff; }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--outline { background: transparent; color: var(--brown); }
.btn--outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--brown); }      /* on the brown box */
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 33px; height: 33px; padding: 0;
  border: 1px solid var(--brown); background: transparent; color: var(--brown); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.icon-btn .icon { width: 16px; height: 16px; }
.icon-btn:hover:not([disabled]) { background: var(--accent); border-color: var(--accent); color: #fff; }
.icon-btn[disabled] { opacity: .3; cursor: default; }

/* ---------- Pill (label above a heading) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  max-width: 100%; min-height: 31px; padding: 5px 9px 5px 5px;
  border: 1px solid rgba(38, 20, 3, .4); border-radius: 1000px;
  font-size: 14px; line-height: 19px; font-weight: 500; color: var(--brown);
}
.pill__icon { width: 18px; height: 18px; flex: none; }
.pill__avatar { width: 19px; height: 19px; flex: none; border-radius: 50%; background: var(--surface) var(--img-avatar) center / cover; }
.pill__num { padding-left: 4px; font-variant-numeric: tabular-nums; }
.pill__num::after { content: "·"; margin-left: 5px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.logo { font-size: 24px; line-height: 26px; letter-spacing: -0.028em; color: var(--ink); justify-self: start; white-space: nowrap; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 24px; }
.main-nav a, .nav-link { font-size: 14px; line-height: 21px; white-space: nowrap; transition: color .2s ease; }
.main-nav a:hover, .nav-link:hover, .footer-col a:hover { color: var(--accent); }
.main-nav a[aria-current="page"], .mobile-menu a[aria-current="page"], .footer-col a[aria-current="page"] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 24px; justify-self: end; }
.menu-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 40px; padding: 5px 11px; border: 1px solid var(--brown); background: none; cursor: pointer;
  font-size: 14px; line-height: 21px; color: var(--brown);
}
.menu-toggle svg { width: 14px; height: 14px; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); padding: 8px var(--gutter) 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--surface); font-size: 18px; line-height: 24px; letter-spacing: -0.02em; }
.mobile-menu .btn { margin-top: 20px; display: flex; min-height: 48px; font-size: 16px; }

/* ---------- Language switch ---------- */
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 21px; }
.lang-switch button { padding: 0; border: 0; background: none; cursor: pointer; color: var(--muted); letter-spacing: .02em; }
.lang-switch button[aria-pressed="true"] { color: var(--ink); cursor: default; }
.lang-switch button:not([aria-pressed="true"]):hover { color: var(--accent); }
.lang-switch span { color: var(--line); }

/* ---------- Page head: pill, headline, short text and buttons (first block of every page) ---------- */
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 412px);
  column-gap: 32px;
  align-items: end;
  padding-top: 56px;
}
.page-head .display { margin-top: 24px; max-width: 15.5em; }
.hero .pill { text-wrap: balance; }   /* homepage label: on a phone it breaks into two even lines */
.page-head__aside p + p { margin-top: 12px; }
.page-head__aside .btn-row { margin-top: 32px; }

/* ---------- Hero gallery: process card and two photographs ---------- */
.hero__gallery {
  display: grid;
  grid-template-columns: minmax(0, 576fr) minmax(0, 396fr) minmax(0, 396fr);
  gap: 4px;
  align-items: start;
  margin-top: 72px;
}
.hero__gallery img { width: 100%; aspect-ratio: 396 / 578; object-fit: cover; background: var(--surface); }

/* ---------- Process diagram (wide on "How I work", portrait card on the homepage) ----------
   Everything inside is sized in --u (one design pixel), so the diagram scales with its box. */
.process__stage {
  --u: calc(100cqw / 1376);
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1376 / 754;
  overflow: hidden;
  background: #6f7a55 var(--img-landscape) center / cover no-repeat;
  color: var(--lime);
}
.process__stage--card { --u: calc(100cqw / 576); aspect-ratio: 576 / 755; background-position: 46% center; }
.process__layer { position: absolute; inset: 0; }
.process__grid {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 34% 44% at 50% 58%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 34% 44% at 50% 58%, #000 45%, transparent 100%);
}
.process__stage--card .process__grid {
  -webkit-mask-image: radial-gradient(ellipse 62% 36% at 50% 52%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 36% at 50% 52%, #000 45%, transparent 100%);
}
.process__grid::before, .process__grid::after { content: ""; position: absolute; inset: 0; }
.process__grid::before {
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: calc(var(--u) * 24.5) calc(var(--u) * 24.5);
  background-position: calc(var(--u) * 2) calc(var(--u) * 6.7);
}
.process__grid::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 98 98'%3E%3Cpath d='M49 42v14M42 49h14' stroke='%23fff' stroke-opacity='.8' stroke-width='1'/%3E%3C/svg%3E");
  background-size: calc(var(--u) * 98) calc(var(--u) * 98);
  background-position: calc(var(--u) * 2) calc(var(--u) * 31.2);
}
.process__links { position: absolute; inset: 0; width: 100%; height: 100%; }
.pcard {
  position: absolute;
  left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y)); width: calc(var(--u) * var(--w));
  padding: calc(var(--u) * 16);
  border-radius: calc(var(--u) * 8);
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.pcard--main { padding: calc(var(--u) * 20); background: rgba(8, 8, 4, .62); }
.pcard__head {
  display: flex; align-items: center; gap: calc(var(--u) * 9);
  height: calc(var(--u) * 20);
  font-size: calc(var(--u) * 14); line-height: 1; color: rgba(245,255,185,.74);
}
.pcard__head .icon { width: calc(var(--u) * 18); height: calc(var(--u) * 18); stroke-width: 1.3; color: var(--lime); }
.sep { width: 1px; height: calc(var(--u, 1px) * 11); background: rgba(245,255,185,.45); flex: none; }
.pcard__title {
  margin-top: calc(var(--u) * 8);
  font-size: calc(var(--u) * 16); line-height: calc(var(--u) * 24); letter-spacing: -0.028em; font-weight: 300; color: var(--lime);
}
.pcard__title, .pcard__sub { white-space: nowrap; }
.pcard--main .pcard__head { margin-bottom: calc(var(--u) * 41); }
.pcard--main .pcard__title { margin-top: 0; }
.pcard__sub { font-size: calc(var(--u) * 14); line-height: calc(var(--u) * 20); color: rgba(245,255,185,.42); }
.pbar { display: flex; height: calc(var(--u) * 8); margin-top: calc(var(--u) * 16); }
.pbar span { flex: 1; }
.pbar span:nth-child(1) { background: var(--lime); }
.pbar span:nth-child(2) { background: #989f76; }
.pbar span:nth-child(3) { background: #5f644c; }
.plist {
  margin-top: calc(var(--u) * 16);
  padding: calc(var(--u) * 5) calc(var(--u) * 8);
  border-radius: calc(var(--u) * 3);
  background: rgba(10, 10, 6, .42);
  font-size: calc(var(--u) * 11.5); line-height: calc(var(--u) * 17); color: rgba(245,255,185,.4);
}
.plist li { display: flex; align-items: center; gap: calc(var(--u) * 8); }
.plist li::before { content: ""; width: calc(var(--u) * 7); height: calc(var(--u) * 7); flex: none; background: var(--sq); }
.plist li:nth-child(1) { --sq: var(--lime); }
.plist li:nth-child(2) { --sq: #8c916b; }
.plist li:nth-child(3) { --sq: #4f513d; }
.process__caption {
  position: absolute; left: calc(var(--u) * 23); bottom: calc(var(--u) * 23);
  display: flex;
  font-size: calc(var(--u) * 14); line-height: calc(var(--u) * 21);
}
.process__caption span { padding: calc(var(--u) * 4) calc(var(--u) * 10); white-space: nowrap; }
.process__caption span:first-child { background: rgba(20, 22, 10, .92); color: var(--lime); letter-spacing: -0.028em; }
.process__caption span:last-child { background: rgba(40, 46, 22, .6); color: rgba(245,255,185,.76); }

/* ---------- Glass card on a photograph ---------- */
.glass {
  padding: 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .46);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: var(--lime);
}
.glass__head { display: flex; align-items: center; gap: 9px; color: rgba(245,255,185,.74); }
.glass__head .icon { width: 18px; height: 18px; stroke-width: 1.3; color: var(--lime); }
.glass__list { margin-top: 14px; display: grid; row-gap: 10px; }
.glass__list li { position: relative; padding-left: 16px; font-size: 16px; line-height: 22px; letter-spacing: -0.028em; font-weight: 300; }
.glass__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--lime); }
.glass__list li:nth-child(n+3)::before { background: #a9b07f; }
.glass__list li:nth-child(n+5)::before { background: #6c7152; }
.glass__list .desc { font-size: 14px; line-height: 20px; letter-spacing: 0; font-weight: 400; color: rgba(245,255,185,.7); }

/* ---------- Statement (homepage, About me) ---------- */
.quote { padding-top: clamp(96px, 16vw, 231px); text-align: center; }
.quote__text {
  max-width: 1083px; margin: 24px auto 0;
  font-size: var(--display); line-height: 1.3333; letter-spacing: -0.02em; color: var(--ink);
  text-wrap: balance; quotes: "“" "”";
}
:lang(cs) .quote__text { quotes: "„" "“"; }
.quote__text p::before { content: open-quote; }
.quote__text p::after { content: close-quote; }
.quote > .container > .quote__text { max-width: 16.5em; }   /* homepage statement: three lines on a computer */
/* Words light up as the statement scrolls into view (class set by the script; without it the text is simply dark) */
.quote__text.is-reveal .w { opacity: .2; transition: opacity .35s ease; }
.quote__text.is-reveal .w.is-on { opacity: 1; }
.quote__note { margin-top: 24px; }
.quote + section, .quote--close + section { }
.quote--close { padding-top: var(--section); }

/* ---------- Photograph and text side by side ---------- */
.media-split {
  display: grid;
  grid-template-columns: minmax(0, 576fr) minmax(0, 692fr);
  column-gap: var(--col-gap);
  align-items: center;
}
.media-split--right { grid-template-columns: minmax(0, 692fr) minmax(0, 576fr); }
.media-split__media { position: relative; }
.media-split__media > img, .case__photo { width: 100%; aspect-ratio: 576 / 754; object-fit: cover; background-color: var(--surface); }
.case__photo { background-image: var(--img-case); background-size: cover; background-position: center; }
.media-split__body .pill + .display { margin-top: 16px; }
.media-split__body .lede { margin-top: 32px; }
.media-split__body .display + .lede { margin-top: 32px; }
.media-split__body > .btn { margin-top: 64px; }

.growth { padding-top: clamp(96px, 17.36vw, 250px); }
.growth .display + .lede { margin-top: 9px; }
.growth__card { position: absolute; left: 24px; right: 24px; bottom: 24px; max-width: 420px; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 64px; }
.chip {
  display: flex; align-items: flex-start; text-align: left;
  min-height: 62px; padding: 11px 15px;
  background: var(--surface); border: 1px solid var(--surface);
  font-size: 14px; line-height: 19px; color: var(--ink);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--line); }
.chip[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: #fff; }
.note { margin-top: 10px; }

.case { padding-top: var(--section); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 222px)); gap: 0 12px; margin-top: 64px; }
/* label and value rows are shared across the tiles (subgrid): values stay level when a label wraps */
.metrics div { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; padding: 11px 15px 12px; border: 1px solid var(--line-soft); }
.metrics dd { margin: 9px 0 0; }

/* ---------- Pricing ---------- */
.pricing { padding-top: var(--section); }
.pricing .lede { margin-top: 16px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border: 1px solid var(--line); }
.plan { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; justify-items: start; padding: 32px; }   /* 8 = parts of a card: subgrid, so prices and lists line up across the cards */
.plan + .plan { border-left: 1px solid var(--line); }
.plan--featured { background: var(--surface); }
/* A card under the pointer fills its button; the button that is already filled turns to the accent, as does any button under the pointer */
@media (hover: hover) {
  .plan:hover .btn--outline { background: var(--brown); color: #fff; }
  .plan:hover .btn--solid, .plan .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
}
.badge { display: inline-block; padding: 0 7px; border: 1px solid var(--accent); color: var(--accent); font-size: 14px; line-height: 21px; text-transform: uppercase; }
.badge--solid { background: var(--accent); color: #fff; }
.plan .title { margin-top: 32px; }
.plan__tagline { margin-top: 16px; color: var(--muted); }
.plan__desc { margin-top: 5px; }
.plan__price { margin-top: 32px; font-size: var(--display); line-height: 1.3333; letter-spacing: -0.02em; color: var(--ink); }
.plan .bullets { margin-top: 32px; }
.plan__spacer { min-height: 48px; }
.bullets { display: grid; row-gap: 12px; }
.bullets li { position: relative; padding-left: 19px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--brown); }

/* ---------- Heading left, rows right (services, principles, FAQ) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 581fr) minmax(0, 795fr); }
.split__aside { align-self: start; padding-right: 32px; }
.split__aside--spread { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-height: 648px; }
.split__aside p { margin-top: 16px; }
/* the heading follows the reader down the list and stops above the button */
.split__stick { flex: 1; align-self: stretch; padding-bottom: 32px; }
.split__stick .display { position: sticky; top: calc(var(--header-h) + 32px); }
.rows { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 370px); column-gap: 32px; padding-block: 39.5px; border-top: 1px solid var(--line); }
.row.is-target .title { color: var(--accent); }
.row__body .bullets { margin-top: 16px; }
.hiw-step { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); }
.hiw-mark { display: inline-block; flex: none; width: 8px; height: 8px; background: var(--lime); box-shadow: 0 0 0 1px #d6e08c; }

.services { margin-top: 72px; padding-block: 71px; background: var(--surface-2); }

.faq { padding-top: var(--section); }
.faq__item + .faq__item { border-top: 1px solid var(--line); padding-top: 23.5px; }
.faq__item:not(:last-child) { padding-bottom: 23.5px; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { width: 12px; height: 12px; margin-right: 4px; stroke-width: 1; stroke-linecap: butt; color: var(--ink); transition: transform .2s ease; }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item summary:hover .title { color: var(--accent); }
.faq__answer { margin-top: 16px; max-width: 372px; }

/* ---------- Cards in a row ---------- */
.cards { display: grid; gap: 12px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); }
.card__icon { width: 32px; height: 32px; margin-bottom: 32px; stroke-width: 1.2; color: var(--ink); }
.card__label { margin-bottom: 2px; color: var(--muted); text-transform: uppercase; }
.card__text { margin-top: 12px; }
.card__list { display: block; margin-top: 8px; color: var(--muted); }
.card__flow { margin-top: auto; padding-top: 20px; font-size: 12px; line-height: 18px; color: var(--muted); }
.card--me { background: var(--surface); border-color: var(--surface); box-shadow: inset 0 2px 0 var(--brown); }

/* ---------- How I work ---------- */
.hiw__diagram { margin-top: 72px; }
.hiw__cards { margin-top: 12px; }
.hiw__cards .card { min-height: 200px; }

/* Services: a photograph follows the pointer over the rows (added by the script, pointer devices only) */
.hover-photo {
  position: fixed; left: 0; top: 0; z-index: 30; width: 232px; aspect-ratio: 232 / 296;
  background: var(--surface) var(--img-hover) center / cover no-repeat;
  pointer-events: none; opacity: 0; scale: .92;
  transition: opacity .25s ease, scale .35s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.hover-photo.is-on { opacity: 1; scale: 1; }
.hover-photo { overflow: hidden; }
.hover-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .25s ease; font-family: inherit; }
.hover-photo svg.is-show { opacity: 1; }

/* Seven steps: cards on a numbered line.
   .is-pinned (set by the script): the block stays in view and the row travels right to left with the page scroll.
   Otherwise the row is scrolled sideways by hand. */
/* Header: once the page is scrolled past the audit button of the page heading, the same button in the header takes over */
.site-header .btn.is-active { background: var(--brown); color: #fff; }
.site-header .btn.is-active:hover { background: var(--accent); border-color: var(--accent); }
.plan__from { font-size: .36em; letter-spacing: 0; color: var(--muted); margin-right: .35em; }
.steps { padding-top: clamp(80px, 8.4vw, 121px); }
.steps__sticky { padding-bottom: 0; }   /* Figma: 167 px from the number line to the next heading */
.steps.is-pinned .steps__sticky { position: sticky; top: var(--steps-top, 105px); }
.steps__head .lede { margin-top: 8px; max-width: 400px; }
.steps__viewport {
  --steps-content: min(100% - 2 * var(--gutter), var(--max));   /* width of the page container's content */
  --steps-offset: 0.3;                                          /* the strip starts 30 % into the content (Figma) */
  width: calc(var(--steps-content) * (1 - var(--steps-offset)));
  margin-left: calc((100% - var(--steps-content)) / 2 + var(--steps-content) * var(--steps-offset));
  padding-left: max(0px, calc(668px - var(--steps-content) * var(--steps-offset)));   /* Figma: the first card starts 668 px into the content */
  margin-top: 64px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-left: 0;
  scrollbar-width: none;
  position: relative; z-index: 1;   /* above the full-width line; the number boxes cover it */
}
/* The line the numbers sit on runs across the whole page; the cards stay inside the content container */
.steps__sticky { position: relative; }
.steps__sticky::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 16px; height: 1px; background: var(--line); pointer-events: none; }
.steps__viewport::-webkit-scrollbar { display: none; }
.steps.is-pinned .steps__viewport { overflow: hidden; scroll-snap-type: none; }
.steps__track {
  position: relative; display: flex; gap: 24px; width: max-content;
  padding-bottom: 1px;
}
.steps.is-pinned .steps__track { will-change: transform; }
.step { position: relative; z-index: 1; flex: 0 0 272px; display: flex; flex-direction: column; scroll-snap-align: start; }
.step__card { flex: 1; display: flex; flex-direction: column; min-height: 245px; padding: 24px; border: 1px solid var(--line); background: var(--bg); }
.step__text { margin-top: 12px; padding-bottom: 24px; }
.step__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-top: auto; background: var(--surface); }
.step__icon .icon { width: 24px; height: 24px; stroke-width: 1.1; }
.step__tick {
  align-self: flex-start; display: flex; align-items: center; justify-content: center;
  width: 45px; height: 33px; margin-top: 40px;
  background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums;
  transition: background-color .25s ease, color .25s ease;
}
.step.is-current .step__tick { background: var(--brown); color: #fff; }

/* What changes */
.changes { padding-top: var(--section); }
.changes .lede { margin-top: 16px; }
.changes__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(24px, 6.6667vw, 96px); row-gap: 94px; margin-top: 88px; }
.changes__grid li:first-child { grid-column-start: 2; }
.changes__num { font-size: var(--display); line-height: 1.3333; letter-spacing: -0.02em; color: var(--ink); }
.changes__grid .title { margin-top: 16px; }
.changes__grid p:last-child { margin-top: 16px; max-width: 272px; }

/* ---------- Case studies: overview ---------- */
.featured { margin-top: 56px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 412px); column-gap: 32px; align-items: end; }
.section-head .display { margin-top: 8px; }
.work-index { padding-top: var(--section); }
.work-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; margin-top: 56px; }
.work-card { display: grid; grid-template-columns: minmax(0, 325fr) minmax(0, 349fr); min-height: 426px; border: 1px solid var(--line); }
.work-card__media { position: relative; overflow: hidden; min-height: 240px; background: #2b2b2b; }
.work-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .work-card__media img { transform: scale(1.035); }
.work-card__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px 16px; }
.work-card__body .pill { text-align: left; }
.work-card__body .title { margin-top: 16px; }
@media (min-width: 900px) { .work-card__body .title .keep { white-space: nowrap; } }   /* desktop: the second clause stays on one line */
.work-card__text { margin-top: 24px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.work-card__body .btn { margin-top: 40px; }
/* three facts in one box */
.facts { display: flex; align-self: stretch; margin-top: 40px; border: 1px solid var(--line); }
.facts div { flex: 1 1 auto; min-width: 0; padding: 7px 11px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 12px; line-height: 18px; color: var(--muted); }
.facts dd { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink); }

/* ---------- Case studies: one detail at a time (html[data-case] and .is-open are set by the script;
   without the script everything is shown one after another) ---------- */
html[data-case] body [data-case]:not(.is-open),
html[data-case]:not([data-case=""]) [data-case-overview],
html:not([data-case]) [data-case-back],
html[data-case=""] [data-case-back] { display: none; }
/* opened from the address bar, a page or a detail starts at its very top (the browser's own jump to the anchor stays at 0) */
[data-view][id], [data-case-top] { scroll-margin-top: 240px; }
.case-back { padding-top: 40px; }
.case-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: var(--section); padding-top: 32px; border-top: 1px solid var(--line); }
.case-next__link { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: baseline; text-align: right; }
.case-next__link .eyebrow { grid-column: 1 / -1; color: var(--muted); }
.case-next__arrow { font-size: var(--title); transition: transform .25s ease; }
.case-next__link:hover .title { color: var(--accent); }
.case-next__link:hover .case-next__arrow { transform: translateX(4px); }

/* ---------- Case studies: detail pages (the main case study and the seven projects) ----------
   An editorial layer on the site's own tokens: larger type, one idea per block, chapters a full section apart.
   cs-  parts of these pages only
   pf-  small shared parts kept from before: contribution chips, tables, notes, tags */
:root { --pf-muted: #6b6b6b; }

/* ---------- Contribution chips ----------
   The label comes from data-role, so a role is changed in one attribute:
   hands = I did the work · owned = my decision · managed = I led delivery ·
   partner = external specialist · todo = placeholder still to confirm */
.pf-role {
  display: inline-flex; align-items: center; flex: none;
  height: 20px; padding: 0 6px;
  border: 1px solid var(--line);
  background: var(--bg); color: var(--ink);
  font-size: 12px; line-height: 18px; letter-spacing: .03em; text-transform: uppercase;
  white-space: nowrap; vertical-align: 1px;
}
.pf-role[data-role="hands"]   { background: var(--ink); border-color: var(--ink); color: #fff; }
.pf-role[data-role="owned"]   { border-color: var(--brown); color: var(--brown); }
.pf-role[data-role="managed"] { background: #d9d9d9; border-color: #d9d9d9; color: var(--ink); }
.pf-role[data-role="partner"] { background: var(--bg); border-color: var(--ink); color: var(--ink); }
.pf-role[data-role="todo"]    { border-style: dashed; border-color: var(--accent); color: var(--accent); background: transparent; }
.pf-role::before { content: "To confirm"; }
.pf-role[data-role="hands"]::before   { content: "Hands-on"; }
.pf-role[data-role="owned"]::before   { content: "Owned"; }
.pf-role[data-role="managed"]::before { content: "Managed"; }
.pf-role[data-role="partner"]::before { content: "Partner"; }
html[data-lang="cs"] .pf-role::before                     { content: "Doplnit"; }
html[data-lang="cs"] .pf-role[data-role="hands"]::before   { content: "Osobně"; }
html[data-lang="cs"] .pf-role[data-role="owned"]::before   { content: "Rozhodnutí"; }
html[data-lang="cs"] .pf-role[data-role="managed"]::before { content: "Řízení"; }
html[data-lang="cs"] .pf-role[data-role="partner"]::before { content: "Partner"; }

/* Placeholder text to complete before publishing */
.pf-todo { color: var(--accent); text-decoration: underline dashed 1px; text-underline-offset: 3px; }

.pf-muted { color: var(--pf-muted); }
.pf-shot figcaption { margin-top: 12px; color: var(--pf-muted); }
.pf-shot img { width: 100%; height: auto; border: 1px solid var(--line-soft); background: var(--surface); }
.pf-tag {
  display: inline-block; padding: 0 5px;
  background: var(--lime); color: var(--ink);
  font-size: 12px; line-height: 18px; letter-spacing: .03em; text-transform: uppercase;
  white-space: nowrap; vertical-align: 1px;
}
.pf-note { margin-top: 12px; font-size: 12px; line-height: 18px; color: var(--pf-muted); }
.pf-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pf-links a, .pf-more a, .pf-table td a {
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.pf-links a:hover, .pf-more a:hover, .pf-table td a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.pf-more { color: var(--pf-muted); }
.pf-more a { margin-left: 12px; color: var(--ink); }
.pf-scope__ref { font-size: 12px; line-height: 18px; color: var(--pf-muted); font-variant-numeric: tabular-nums; }
.pf-scope__ref::before { content: "→ "; }
.pf-scope__ref:hover { color: var(--accent); }

/* Tables (B2C/B2B comparison) */
.pf-b2b__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; align-items: start; }
.pf-table { width: 100%; border-collapse: collapse; }
.pf-table th, .pf-table td { padding: 14px 20px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.pf-table thead th { padding-top: 0; padding-bottom: 12px; border-bottom-color: var(--ink); color: var(--ink); text-transform: uppercase; font-size: 14px; line-height: 21px; letter-spacing: .04em; }
.pf-table tbody th { color: var(--ink); }
.pf-table td:last-child, .pf-table th:last-child { padding-right: 0; }
.pf-compare tbody th { width: 24%; }
.pf-compare td { width: 38%; }

/* Where a solution runs: four squares = two brands × consumers and trade */
.pf-key { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; color: var(--pf-muted); }
.pf-key__grid { display: grid; grid-template-columns: auto auto auto; gap: 5px 16px; align-items: center; justify-items: center; font-size: 12px; line-height: 16px; color: var(--pf-muted); }
.pf-key__grid > span { white-space: nowrap; }
.pf-key__grid > span:nth-child(3n+1) { justify-self: start; }
.pf-key__grid i { width: 10px; height: 10px; }
.pf-where { display: inline-grid; flex: none; grid-template-columns: repeat(2, 10px); gap: 3px; vertical-align: middle; }
.pf-where i, .pf-key__grid i { display: block; border: 1px solid var(--line); }
.pf-where i { width: 10px; height: 10px; }
.pf-where i.on, .pf-key__grid i.on { background: var(--brown); border-color: var(--brown); }

/* ---------- Page ---------- */
.cs {
  --cs-lead: clamp(18px, 0.42vw + 16px, 22px);   /* standfirst */
  --cs-fig: clamp(40px, 3.9vw + 16px, 72px);     /* key figures */
  --cs-gap: clamp(48px, 5vw, 72px);              /* from a chapter's heading to its content */
  --cs-label: rgba(245, 255, 185, .64);          /* small type on the dark stage */
  font-size: 16px; line-height: 26px;
}
.cs .eyebrow { font-size: 14px; line-height: 21px; letter-spacing: .04em; }
.cs .pf-note { max-width: 86ch; font-size: 13px; line-height: 20px; }
.cs .pf-links, .cs .pf-more, .cs-foot__links dd { font-size: 16px; line-height: 26px; }
.cs-lead { font-size: var(--cs-lead); line-height: 1.5; letter-spacing: -0.015em; color: var(--ink); text-wrap: pretty; }
.cs-text { max-width: 62ch; text-wrap: pretty; }
.cs p, .cs dd, .cs li, .cs figcaption { text-wrap: pretty; }   /* no single word left on the last line where the browser can help it */

/* Small label above a heading; in the main case study it carries the chapter number */
.cs-kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-size: 14px; line-height: 21px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.cs-kicker__n { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cs-kicker__n::after { content: ""; width: 24px; height: 1px; background: var(--line); }

/* Chapters: a full section apart; the heading left, a short text right */
.cs-chapter { margin-top: var(--section); scroll-margin-top: 24px; }
.cs--main .cs-chapter { scroll-margin-top: 80px; }   /* lands clear of the chapter bar */
.cs-chapter__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 32px; align-items: end; }
.cs-chapter__head .display { max-width: 16em; }
.cs-chapter__lede { text-wrap: pretty; }
.cs-chapter > .display { max-width: 20em; }
.cs-chapter__cta { margin-top: 56px; }

/* ---------- Main case study: headline, stage, chapter bar ---------- */
.cs-hero { padding-top: 32px; }
.cs-hero__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 32px; align-items: end; }
.cs-hero__head .display { margin-top: 24px; max-width: 15.5em; }

/* Stage: the headline figures on the ground of the cover artwork, the artwork fading in from the right */
.cs-stage {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); grid-template-rows: 1fr auto;
  min-height: clamp(480px, 42vw, 620px); margin-top: 72px;
  background: linear-gradient(180deg, #2b1807, #1c1003); color: var(--lime);
}
.cs-stage__art {
  grid-column: 2; grid-row: 1 / span 2;
  background: center 36% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
          mask-image: linear-gradient(to right, transparent, #000 30%);
}
.cs-stage__figs { grid-column: 1; grid-row: 1; align-self: center; display: grid; row-gap: 36px; padding: 56px 24px 32px 56px; }
.cs-fig dt { font-size: 14px; line-height: 21px; color: var(--cs-label); }
.cs-fig dd { margin: 6px 0 0; font-size: var(--cs-fig); line-height: 1.05; letter-spacing: -0.04em; font-weight: 300; white-space: nowrap; }
.cs-stage__cap { grid-column: 1; grid-row: 2; display: flex; padding: 0 23px 23px; font-size: 14px; line-height: 21px; }
.cs-stage__cap span { padding: 4px 10px; white-space: nowrap; }
.cs-stage__cap span:first-child { background: var(--lime); color: var(--brown); letter-spacing: -0.028em; }
.cs-stage__cap span:last-child { background: rgba(245, 255, 185, .12); color: rgba(245, 255, 185, .82); }

/* Chapter bar: stays under the header on a computer; the script marks the chapter being read */
.cs-toc { position: sticky; top: var(--header-h); z-index: 40; margin-top: 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.cs-toc ol { display: flex; align-items: center; gap: 0 32px; overflow-x: auto; scrollbar-width: none; }
.cs-toc ol::-webkit-scrollbar { display: none; }
.cs-toc a { display: inline-flex; align-items: baseline; gap: 8px; padding-block: 15px; font-size: 14px; line-height: 21px; white-space: nowrap; color: var(--muted); transition: color .2s ease; }
.cs-toc__n { font-variant-numeric: tabular-nums; }
.cs-toc a:hover { color: var(--accent); }
.cs-toc a[aria-current] { color: var(--ink); }
.cs-toc a[aria-current] .cs-toc__n { color: var(--accent); }

/* ---------- 01 Context: the four stores (columns: brand worlds; rows: consumers, trade) ---------- */
.cs-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin-top: var(--cs-gap); }
.cs-stores__brand { padding-top: 16px; border-top: 1px solid var(--ink); font-size: 14px; line-height: 21px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.cs-store { margin-top: 32px; }
.cs-store + .cs-store { margin-top: 64px; }
.cs-store img { width: 100%; border: 1px solid var(--line-soft); background: var(--surface); }
.cs-store figcaption { display: grid; row-gap: 4px; margin-top: 20px; }
.cs-store__tag { font-size: 14px; line-height: 21px; color: var(--muted); }
.cs-store__domain { justify-self: start; font-size: var(--title); line-height: 1.3333; letter-spacing: -0.028em; color: var(--ink); transition: color .2s ease; }
.cs-store__domain:hover { color: var(--accent); }
.cs-store__desc { max-width: 48ch; }
.cs .cs-stores__note { margin-top: 48px; }

/* ---------- 02 What had to be solved: statement, then three numbered points ---------- */
.cs-read { max-width: 900px; }
.cs-read .cs-lead { margin-top: 32px; max-width: 760px; }
.cs-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 6.6667vw, 96px); margin-top: 88px; }
.cs-num { font-size: var(--display); line-height: 1.3333; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.cs-points .title { margin-top: 16px; }
.cs-points .title + p { margin-top: 16px; max-width: 340px; }

/* Technical detail that opens on request (same manner as the questions on the other pages) */
.cs-details { margin-top: var(--cs-gap); border-block: 1px solid var(--line); }
.cs-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; list-style: none; cursor: pointer; }
.cs-details > summary::-webkit-details-marker { display: none; }
.cs-details__head { display: grid; row-gap: 2px; margin: 0; font: inherit; }
.cs-details__label { font-size: 14px; line-height: 21px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cs-details__head .title { transition: color .2s ease; }
.cs-details > summary .icon { width: 14px; height: 14px; margin-right: 4px; stroke-width: 1; stroke-linecap: butt; color: var(--ink); transition: transform .2s ease; }
.cs-details[open] > summary .icon { transform: rotate(45deg); }
.cs-details > summary:hover .title { color: var(--accent); }
.cs-details__body { padding: 8px 0 48px; }
.cs-details__intro { margin-bottom: 32px; }

/* ---------- 03 My role, 04 Solution: heading left, content right ---------- */
.cs-split { display: grid; grid-template-columns: minmax(0, 581fr) minmax(0, 795fr); column-gap: 32px; align-items: start; }
.cs-split__aside { padding-right: clamp(0px, 4vw, 56px); }
.cs-split__aside .cs-text { margin-top: 24px; max-width: 400px; }
.cs-sticky { position: sticky; top: calc(var(--header-h) + 84px); }
.cs-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.cs-sheet dt, .cs-shared dt, .cs-credits dt, .cs-foot__links dt { font-size: 14px; line-height: 21px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cs-sheet dd { margin: 6px 0 0; font-size: 18px; line-height: 27px; letter-spacing: -0.015em; color: var(--ink); }
.cs-sheet__wide { grid-column: 1 / -1; }
.cs-legend { margin-top: 56px; }
.cs-legend .eyebrow { color: var(--muted); }
.cs-legend ul { display: grid; row-gap: 12px; margin-top: 16px; }
.cs-legend li { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.cs-legend .pf-role { justify-self: start; margin-top: 3px; }

/* The seven projects as rows that lead to their pages */
.cs-rows { border-bottom: 1px solid var(--line); }
.cs-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; column-gap: 24px; align-items: baseline; padding-block: 26px; border-top: 1px solid var(--line); }
.cs-row__n { font-size: 14px; line-height: 21px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cs-row__t { transition: color .2s ease; }
.cs-row__d { grid-column: 2; margin-top: 4px; color: var(--muted); }
.cs-row__arrow { grid-column: 3; grid-row: 1; justify-self: end; font-size: var(--title); line-height: 1; transition: transform .25s ease; }
.cs-row:hover .cs-row__t { color: var(--accent); }
.cs-row:hover .cs-row__arrow { transform: translateX(4px); }

/* Thirteen disciplines (inside details) */
.cs-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.cs-scope__group h4 { color: var(--muted); }
.cs-scope__group ul { margin-top: 8px; }
.cs-scope__group li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.cs-scope__meta { display: flex; align-items: center; gap: 10px; flex: none; }

/* ---------- 05 Results: one figure per row, with what it measures ---------- */
.cs-results { display: grid; grid-template-columns: minmax(max-content, 581fr) minmax(0, 795fr); column-gap: 32px; margin-top: var(--cs-gap); border-bottom: 1px solid var(--line); }   /* the figure column is never narrower than its widest figure */
.cs-results > li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; padding-block: 40px; border-top: 1px solid var(--line); }
.cs-results__v, .cs-bigstats__v { font-size: var(--cs-fig); line-height: 1.05; letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.cs-results__k p { margin-top: 8px; max-width: 560px; }
.cs .cs-results__foot { margin-top: 20px; }

/* ---------- 06 Systems shared by the four stores ---------- */
.cs-shared__title { margin-top: var(--cs-gap); color: var(--muted); }
.cs-shared { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; margin-top: 24px; }
.cs-shared dd { margin: 6px 0 0; max-width: 17em; font-size: var(--title); line-height: 1.3333; letter-spacing: -0.028em; color: var(--ink); }

/* ---------- 07 Closing statement ---------- */
.cs-close { text-align: center; }
.cs-close .cs-kicker { justify-content: center; margin-bottom: 0; }
.cs-statement p::before, .cs-statement p::after { content: none; }
.cs .case-next { margin-top: var(--section); }
.cs-foot + .container > .case-next { margin-top: 40px; }

/* The overview keeps its distance to the closing box (this wrapper holds the project pages, hidden there) */
.cs-projects { padding-top: 24px; }
html[data-case]:not([data-case=""]) .cs-projects { padding-top: 0; }

/* ---------- Project pages: number, headline, standfirst and my part; the cover on the right ---------- */
.cs-phero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); column-gap: var(--col-gap); align-items: start; padding-top: 32px; }
.cs-phero__body .display { margin-top: 24px; max-width: 15em; }
.cs-phero__body .cs-lead { margin-top: 32px; max-width: 660px; }
.cs-phero__art { aspect-ratio: 650 / 852; background: var(--brown) center / cover no-repeat; }
.cs-credits { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px 32px; max-width: 760px; margin-top: 56px; }
.cs-credits--one { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.cs-credits dd { margin: 10px 0 0; }
.cs-credits li { display: flex; align-items: flex-start; gap: 12px; }
.cs-credits li + li { margin-top: 10px; }
.cs-credits .pf-role { justify-content: center; min-width: 72px; margin-top: 3px; }   /* one width, so the lines of text start together */

/* Key figures of a project */
.cs-figures { margin-top: clamp(72px, 7.5vw, 108px); }
.cs-bigstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; padding-top: 32px; border-top: 1px solid var(--ink); }
.cs-bigstats__k { margin-top: 12px; max-width: 36ch; }
.cs-bigstats--2, .cs-bigstats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-bigstats--4 { row-gap: 56px; }
.cs .cs-figures > .pf-note { margin-top: 32px; }
.cs-figures--split { display: grid; grid-template-columns: minmax(0, 795fr) minmax(0, 581fr); column-gap: 32px; align-items: end; }
.cs-figures__text p + p { margin-top: 16px; }

/* Related services and the link to the live page */
.cs-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 32px; margin-top: clamp(72px, 7.5vw, 108px); }
.cs-foot__links dd { margin: 8px 0 0; }

/* ---------- 01 Technology: the systems as five data flows on a dark stage ----------
   A stop is a button; the selected system is lit in every flow it is part of and described in the panel,
   which stays at the bottom of the window while the map is being read. */
.cs-map { margin-top: var(--cs-gap); padding: 56px 56px 0; background: linear-gradient(180deg, #2b1807, #1c1003); color: var(--lime); }
.cs-track { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); column-gap: 56px; align-items: start; padding-block: 32px; border-top: 1px solid rgba(245, 255, 185, .14); transition: opacity .3s ease; }
.cs-track:first-child { padding-top: 0; border-top: 0; }
.cs-map.has-sel .cs-track:not(.is-on) { opacity: .5; }
.cs-track__n { font-size: 14px; line-height: 21px; color: var(--cs-label); font-variant-numeric: tabular-nums; }
.cs-track__t { margin-top: 2px; font-size: var(--title); line-height: 1.3333; letter-spacing: -0.028em; font-weight: 300; color: var(--lime); }
.cs-track__d { margin-top: 8px; font-size: 14px; line-height: 21px; color: var(--cs-label); }
.cs-track__body { padding-top: 21px; }   /* the line sits level with the name of the flow */
.cs-track__line { display: flex; flex-wrap: wrap; align-items: center; row-gap: 12px; }
.cs-track__line > li { display: flex; align-items: center; }
/* connector to the previous stop: one-way, two-way (.is-both) or a plain link (.is-plain) */
.cs-track__line > li + li::before {
  content: ""; flex: none; width: 44px; height: 9px; margin-inline: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 9'%3E%3Cpath d='M0 4.5h43M39 1l4 3.5-4 3.5' fill='none' stroke='%23f5ffb9' stroke-opacity='.7'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.cs-track__line > li.is-both::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 9'%3E%3Cpath d='M1 4.5h42M39 1l4 3.5-4 3.5M5 1L1 4.5 5 8' fill='none' stroke='%23f5ffb9' stroke-opacity='.7'/%3E%3C/svg%3E"); }
.cs-track__line > li.is-plain::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 9'%3E%3Cpath d='M0 4.5h44' fill='none' stroke='%23f5ffb9' stroke-opacity='.7'/%3E%3C/svg%3E"); }
.cs-track__group { flex: 1 1 300px; min-width: 0; }
.cs-track__group--src { flex: 0 1 auto; }
.cs-fan { display: flex; flex-wrap: wrap; gap: 8px; padding: 9px; border: 1px dashed rgba(245, 255, 185, .3); border-radius: 28px; }
.cs-stop {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
  border: 1px solid rgba(245, 255, 185, .45); border-radius: 1000px; background: transparent; color: var(--lime);
  font-size: 15px; line-height: 20px; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.cs-stop:hover { border-color: var(--lime); background: rgba(245, 255, 185, .1); }
.cs-stop.is-on { background: var(--lime); border-color: var(--lime); color: #201104; }
.cs-stop:focus-visible { outline-color: var(--lime); }
.cs-track__side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; line-height: 21px; color: var(--cs-label); }
.cs-track__side > span { margin-right: 4px; }
.cs-stop--side { border-style: dashed; }
.cs-stop--side.is-on { border-style: solid; }
.cs-map__panel {
  position: sticky; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr) minmax(0, 300px); column-gap: 56px; align-items: baseline;
  margin: 24px -56px 0; padding: 22px 56px 24px;
  background: rgba(20, 11, 3, .8); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(245, 255, 185, .22);
}
.cs-map__name { font-size: var(--title); line-height: 1.3333; letter-spacing: -0.028em; font-weight: 300; }
.cs-map__desc { color: rgba(245, 255, 185, .9); }
.cs-map__desc a, .cs-syslist dd a { text-decoration: underline; text-underline-offset: 3px; }
.cs-map__where { font-size: 14px; line-height: 21px; color: var(--cs-label); }
.cs-map__label { display: block; letter-spacing: .04em; text-transform: uppercase; }
.cs-map__in { color: var(--lime); }
.cs-map__in span { display: inline-block; margin-right: 14px; white-space: nowrap; }

/* All systems as a list (inside details): the same content without the map */
.cs-syslist { display: grid; row-gap: 40px; }
.cs-syslist__band { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); column-gap: 32px; }
.cs-syslist__band h4 { padding-top: 3px; color: var(--muted); }
.cs-syslist dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.cs-syslist dt { font-size: 18px; line-height: 27px; letter-spacing: -0.015em; color: var(--ink); }
.cs-syslist dd { margin: 0; color: var(--muted); }

/* ---------- 02 Add-ons: ten problems, each with its solution and where it runs ---------- */
.cs-probs__head, .cs-prob { display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr); column-gap: 32px; }
.cs-probs__head { margin-top: var(--cs-gap); padding-bottom: 14px; font-size: 14px; line-height: 21px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cs-probs { border-bottom: 1px solid var(--line); }
.cs-prob { padding-block: 36px; border-top: 1px solid var(--line); }
.cs-probs > .cs-prob:first-child { border-top-color: var(--ink); }
.cs-prob__n { padding-top: 7px; font-size: 14px; line-height: 21px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cs-prob__q p { margin-top: 8px; max-width: 44ch; color: var(--muted); }
.cs-prob__a > p:first-child { max-width: 60ch; }
.cs-prob__where { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; line-height: 21px; color: var(--muted); }
.cs-chapter__head .pf-key { justify-content: flex-end; }

/* ---------- Screenshots with a caption ---------- */
.cs-shot img, .cs-anat__media img, .cs-frame img { width: 100%; border: 1px solid var(--line-soft); background: var(--surface); }
.cs-shot figcaption { display: grid; row-gap: 2px; max-width: 56ch; margin-top: 16px; color: var(--muted); }
.cs-shot__t { font-size: 18px; line-height: 27px; letter-spacing: -0.015em; color: var(--ink); }
.cs-journey img, .cs-phone img, .cs-loc__dl img, .cs-devices__phone img { width: 100%; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--bg); }   /* phone screens */

/* ---------- 03 Magazine: two devices, then the anatomy of one article ---------- */
.cs-devices { display: grid; grid-template-columns: minmax(0, 860px) minmax(0, 300px); justify-content: space-between; column-gap: 32px; align-items: end; }
.cs-anat { display: grid; row-gap: clamp(64px, 8vw, 112px); margin-top: var(--cs-gap); }
.cs-anat__item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--col-gap); align-items: center; }
.cs-anat__item--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.cs-anat__item--flip .cs-anat__media { order: 2; }
.cs-anat__media { display: grid; justify-items: center; }   /* a crop narrower than its column sits in the middle of it */
.cs-anat__media img { background: var(--bg); }
.cs-anat__media .cs-anat__aside { max-width: 455px; }     /* each crop is shown no wider than half its pixel width, so the text in it stays sharp */
.cs-anat__media .cs-anat__tips { max-width: 616px; }
.cs-anat__pair { grid-template-columns: repeat(2, minmax(0, 334px)); justify-content: center; gap: 16px; align-items: start; }
.cs-anat__text .title { margin-top: 12px; }
.cs-anat__text .title + p { margin-top: 12px; max-width: 420px; }
.cs .cs-anat__src { margin-top: 56px; }

/* ---------- 04 Salon Locator: the path on a phone, then the computer and the second store ---------- */
.cs-journey { margin-top: var(--cs-gap); }
.cs-journey:focus-visible { outline-offset: 8px; }
.cs-journey__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; }
.cs-journey figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; margin-top: 20px; }
.cs-journey__n { font-size: 14px; line-height: 21px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cs-journey__t { font-size: 20px; line-height: 28px; letter-spacing: -0.02em; color: var(--ink); }
.cs-journey__d { grid-column: 1 / -1; font-size: 15px; line-height: 23px; color: var(--muted); }
.cs .cs-journey + .pf-note { margin-top: 28px; }
.cs-loc { display: grid; grid-template-columns: minmax(0, 940px) minmax(0, 240px); justify-content: space-between; column-gap: 32px; align-items: end; }

/* ---------- 05 UX/UI: four steps on one line, then the screens ---------- */
.cs-timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; margin-top: var(--cs-gap); }
.cs-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 1px; background: var(--line); }
.cs-timeline > li { display: flex; flex-direction: column; align-items: flex-start; }
.cs-timeline__n {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 45px; height: 33px; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums;
}
.cs-timeline .title { margin-top: 32px; }
.cs-timeline .pf-role { margin-top: 12px; }
.cs-timeline p { margin-top: 12px; max-width: 30ch; }
.cs-feature { display: grid; grid-template-columns: minmax(0, 860px) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); align-items: end; }
.cs-feature figcaption { display: block; max-width: 420px; margin-top: 0; color: var(--ink); }
.cs-feature figcaption .title + p { margin-top: 12px; }
.cs-phones { display: flex; justify-content: center; gap: clamp(16px, 4vw, 56px); }
.cs-phone { width: min(280px, 30%); }
.cs-read--after { max-width: 640px; margin: 48px auto 0; text-align: center; }
.cs-read--after .cs-text { margin: 12px auto 0; }

/* ---------- 06 Landing page: two wide frames, then three columns ---------- */
.cs-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(56px, 7vw, 96px) 32px; margin-top: var(--cs-gap); }
.cs-frame__cap { margin-top: 16px; }
.cs-frame__cap .title { margin-top: 4px; }
.cs-frame__cap .title + p { margin-top: 10px; line-height: 18px; }
.cs-frame__cap .cs-text { margin-top: 12px; max-width: 46ch; }
.cs-frame--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 840px) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); align-items: center; }
.cs-frame--wide .cs-frame__cap { margin-top: 0; }
.cs-frame--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 840px); }
.cs-frame--flip img { order: 2; }
.cs .cs-more { margin-top: 56px; }

/* ---------- 07 Growth: five stages that feed each other ---------- */
.cs-phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 32px; margin-top: var(--cs-gap); }
.cs-phase__n { display: flex; justify-content: space-between; }
.cs-phase:not(:last-child) .cs-phase__n::after { content: "→"; color: var(--line); }
.cs-phase .title { margin-top: 12px; }
.cs-phase ul { display: grid; row-gap: 16px; margin-top: 24px; }
.cs-phase li { font-size: 15px; line-height: 23px; color: var(--muted); }
.cs-phase li b { display: block; font-size: 16px; line-height: 26px; font-weight: 400; color: var(--ink); }
.cs-phase li .pf-role { margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .cs-hero__head, .cs-chapter__head { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
  .cs-phero { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
  .cs-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); }
  .cs-stage__figs { padding-left: 40px; }
  .cs-stage__cap { padding-left: 16px; }
  .cs-map { padding: 40px 40px 0; }
  .cs-track { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 40px; }
  .cs-map__panel { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 240px); column-gap: 40px; margin-inline: -40px; padding-inline: 40px; }
  .cs-feature { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .cs-feature img { max-width: 860px; }
  .cs-phases { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
  .cs-phase:nth-child(3) .cs-phase__n::after { content: none; }
  .cs-frame--wide, .cs-frame--flip { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .cs-frame--flip { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  /* the phone path scrolls sideways once five phones no longer fit */
  .cs-journey { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .cs-journey::-webkit-scrollbar { display: none; }
  .cs-journey__steps { display: flex; width: max-content; }
  .cs-journey__step { flex: 0 0 240px; scroll-snap-align: start; }
}

@media (max-width: 899px) {
  .cs-hero { padding-top: 16px; }
  .cs-hero__head, .cs-chapter__head { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .cs-hero__head .display { margin-top: 20px; }
  .cs-chapter__lede, .cs-hero__head .cs-lead { max-width: 600px; }
  .cs-chapter__head .pf-key { justify-content: flex-start; }

  /* stage: the artwork on top, the figures under it */
  .cs-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; margin-top: 40px; }
  .cs-stage__art {
    grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; background-position: center 30%;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
            mask-image: linear-gradient(to bottom, #000 62%, transparent);
  }
  .cs-stage__figs { grid-row: 2; row-gap: 28px; padding: 4px 20px 36px; }
  .cs-stage__cap { grid-row: 3; flex-wrap: wrap; padding: 0 20px 20px; }

  /* chapter bar becomes a plain list of contents */
  .cs-toc { position: static; margin-top: 40px; border-bottom: 0; }
  .cs-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; overflow: visible; }
  .cs-toc li { border-top: 1px solid var(--line); }
  .cs-toc a { display: flex; padding-block: 12px; font-size: 16px; line-height: 24px; color: var(--ink); white-space: normal; }
  .cs-toc__n { color: var(--muted); }
  .cs-toc a[aria-current] .cs-toc__n { color: var(--muted); }
  .cs--main .cs-chapter { scroll-margin-top: 24px; }

  .cs-stores { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .cs-store + .cs-store { margin-top: 48px; }
  .cs-points { grid-template-columns: minmax(0, 1fr); row-gap: 40px; margin-top: 56px; }
  .cs-points .title + p { max-width: 560px; }
  .cs-points .title, .cs-points .title + p { margin-top: 8px; }
  .pf-b2b__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .cs-split { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .cs-split__aside { padding-right: 0; }
  .cs-sticky { position: static; }
  .cs-sheet, .cs-legend { margin-top: 40px; }
  .cs-results, .cs-results > li { grid-template-columns: minmax(0, 1fr); }
  .cs-results > li { row-gap: 16px; padding-block: 32px; }
  .cs-shared { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .cs-chapter__cta, .cs-foot .btn { min-height: 44px; padding-inline: 16px; }

  .cs-projects { padding-top: 96px; }
  .cs-phero { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding-top: 16px; }
  .cs-phero__body .display { margin-top: 20px; }
  .cs-phero__body .cs-lead { margin-top: 24px; }
  .cs-phero__art { aspect-ratio: 1 / 1; background-position: center top; }
  .cs-credits { margin-top: 40px; }
  .cs-bigstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-figures--split { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }

  /* flows: the name of the flow above its line */
  .cs-map { padding: 32px 24px 0; }
  .cs-track { grid-template-columns: minmax(0, 1fr); padding-block: 28px; }
  .cs-track__body { padding-top: 18px; }
  .cs-track__line > li + li::before { width: 28px; margin-inline: 5px; }
  .cs-track__group { flex-basis: 100%; }
  .cs-track__group--src { flex-basis: auto; }
  .cs-map__panel { grid-template-columns: minmax(0, 1fr); row-gap: 4px; margin-inline: -24px; padding: 16px 24px 18px; }
  .cs-map__label { display: inline; }
  .cs-syslist__band { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }

  .cs-probs__head { display: none; }
  .cs-probs { margin-top: var(--cs-gap); }
  .cs-prob { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding-block: 28px; }
  .cs-prob__a { grid-column: 2; margin-top: 16px; }

  .cs-devices { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 24px; }
  .cs-anat__item, .cs-anat__item--flip { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .cs-anat__item--flip .cs-anat__media { order: 0; }
  .cs-loc { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); column-gap: 24px; }

  /* the line of four steps turns upright */
  .cs-timeline { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .cs-timeline::before { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .cs-timeline > li { position: relative; padding-left: 69px; }
  .cs-timeline__n { position: absolute; left: 0; top: 0; }
  .cs-timeline .title { margin-top: 0; }
  .cs-timeline p { max-width: 52ch; }

  .cs-frames { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; column-gap: 24px; }
  .cs-frame--wide, .cs-frame--flip { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .cs-frame--flip img { order: 0; }
  .cs-frame:last-child { grid-column: 1 / -1; max-width: calc(50% - 12px); }
  .cs-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .cs-phase:not(:last-child) .cs-phase__n::after { content: none; }
}

@media (max-width: 599px) {
  .cs-sheet { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .cs-scope { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .cs-shared { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .cs-legend li { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .cs-row { grid-template-columns: 28px minmax(0, 1fr) 20px; column-gap: 12px; padding-block: 22px; }
  .cs-credits { grid-template-columns: minmax(0, 1fr); }
  .cs-bigstats, .cs-bigstats--2, .cs-bigstats--4 { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .cs-bigstats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-stop { min-height: 40px; }
  .cs-syslist dl { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .cs-devices { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .cs-devices__phone { width: 66%; }
  .cs-anat__pair { grid-template-columns: minmax(0, 334px); }
  /* on a phone the wide crops are cut to the part that matters, at a readable size */
  .cs-anat__media .cs-anat__tips { aspect-ratio: 1 / 1; object-fit: cover; object-position: 0 50%; }
  .cs-anat__media .cs-anat__author { aspect-ratio: 3 / 1; object-fit: cover; object-position: 0 50%; }
  .cs-journey__step { flex-basis: min(66vw, 260px); }
  .cs-loc { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .cs-loc__dl { width: 62%; }
  .cs-phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .cs-phones::-webkit-scrollbar { display: none; }
  .cs-phone { flex: 0 0 64%; width: auto; scroll-snap-align: start; }
  .cs-read--after { text-align: left; margin-inline: 0; }
  .cs-read--after .cs-text { margin-inline: 0; }
  .cs-frames { grid-template-columns: minmax(0, 1fr); }
  .cs-frame:last-child { max-width: none; }
  .cs-phases { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .cs-foot { flex-direction: column; align-items: flex-start; }

  /* Comparison table: each row becomes a small card with column labels */
  .pf-compare, .pf-compare tbody, .pf-compare tr, .pf-compare th, .pf-compare td { display: block; width: auto; }
  .pf-compare thead { display: none; }
  .pf-compare tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .pf-compare tbody tr:first-child { border-top: 1px solid var(--ink); }
  .pf-compare th, .pf-compare td { padding: 0; border: 0; }
  .pf-compare tbody th { margin-bottom: 8px; font-size: 14px; line-height: 21px; letter-spacing: .04em; text-transform: uppercase; }
  .pf-compare td { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .pf-compare td + td { margin-top: 6px; }
  .pf-compare td::before { content: attr(data-label); color: var(--pf-muted); }
}

/* ---------- About me ---------- */
.sticky-split {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 576fr) minmax(0, 692fr);
  column-gap: var(--col-gap);
  margin-top: 72px;
}
.sticky-split__media { grid-row: 1 / span 3; }
.sticky-split__panel { grid-column: 2; }
.sticky-split__media img {
  position: sticky; top: calc(var(--header-h) + 24px);
  width: 100%; aspect-ratio: 576 / 754; object-fit: cover; object-position: 50% 30%;
  max-height: calc(100vh - var(--header-h) - 48px);
  background: var(--surface);
}
/* the script adds a picture for the second and third panel (the two photographs of the homepage) and shows the one of the panel being read */
.sticky-split__media[data-swap] { display: grid; }
.sticky-split__media[data-swap] img { grid-area: 1 / 1; transition: opacity .5s ease; }
.sticky-split__media[data-swap].is-ready img { opacity: 0; }
.sticky-split__media[data-swap].is-ready img.is-on { opacity: 1; }
.sticky-split__panel { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: calc((100cqw - var(--col-gap)) * 754 / 1268 * .62); padding-block: 40px; max-width: 520px; }
.sticky-split__panel .eyebrow { margin-bottom: 8px; color: var(--muted); }
.sticky-split__panel .display + p { margin-top: 32px; }
.sticky-split__panel p + p { margin-top: 16px; }
.sticky-split__panel .text-link { margin-top: 24px; }

.about__banner { margin-top: 72px; margin-bottom: 0; }
.about__banner img { width: 100%; aspect-ratio: 1376 / 754; object-fit: cover; object-position: 50% 20%; background: var(--surface); }
.about-story { padding-top: var(--section); }
.about-story .sticky-split { margin-top: 0; }
.sticky-split__panel .traits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 32px; align-self: stretch; }
.sticky-split__panel .traits li { padding-block: 20px; border-top: 1px solid var(--line); }
.sticky-split__panel .traits p { margin-top: 8px; }
.sticky-split__panel .traits + .muted { margin-top: 24px; }

.outcomes { padding-top: var(--section); text-align: center; }
.outcomes .display { margin-top: 11px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(24px, 9.7222vw, 140px); row-gap: 0; margin-top: 96px; text-align: left; }
/* Comparable figures: each tile is a subgrid (icon, value, label), so values and labels line up across a row */
.stats > li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.stats .title { margin-top: 25px; }
.stats .label { margin-top: 9.5px; }
.outcomes__note { margin-top: 95px; }
.outcomes__note .muted { display: inline-block; margin-top: 6px; font-size: 12px; line-height: 18px; }

/* ---------- Closing box ---------- */
.cta { padding-top: clamp(80px, 9.72vw, 140px); }
.cta__box {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 24px;
  background: var(--brown); color: #fff;
}
.cta__box::before, .cta__box::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 46% 100% at 50% 100%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 46% 100% at 50% 100%, #000 30%, transparent 100%);
}
.cta__box::before {
  background-image:
    linear-gradient(to bottom, rgba(255, 236, 214, .16) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 236, 214, .16) 1px, transparent 1px);
  background-size: 30.6px 30.6px; background-position: center bottom;
}
.cta__box::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 122.4 122.4'%3E%3Cpath d='M61.2 53v16.4M53 61.2h16.4' stroke='%23ffecd6' stroke-opacity='.75' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 122.4px 122.4px; background-position: center bottom -24px;
}
.cta__box > * { position: relative; z-index: 1; }
.cta__box .display { max-width: 780px; color: #fff; }
.cta__box .lede { margin-top: 16px; max-width: 400px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 76px; padding-bottom: 48px; }
.site-footer .split { align-items: stretch; }
.footer-brand { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.footer-legal { font-size: 12px; line-height: 18px; color: var(--muted); }
.footer-legal p + p { margin-top: 3px; }
.footer-legal a + a, .footer-legal__btn + a { margin-left: 16px; }
.footer-legal a:hover, .footer-legal__btn:hover { color: var(--ink); }
.footer-legal__btn { padding: 0; font: inherit; color: inherit; background: none; border: 0; border-radius: 0; cursor: pointer; }
.footer-cols { display: flex; justify-content: space-between; gap: 32px; }
.footer-col h2 { font-size: 14px; line-height: 21px; font-weight: 400; color: var(--muted); }
.footer-col ul { margin-top: 7px; display: grid; row-gap: 6px; }

/* ---------- Cookie settings dialog ---------- */
.cookie-dialog {
  width: min(480px, calc(100% - 2 * var(--gutter))); max-width: none; max-height: calc(100% - 2 * var(--gutter));
  margin: auto; padding: 0; border: 0; background: var(--bg); color: var(--text);
}
.cookie-dialog::backdrop { background: rgba(15, 15, 16, .48); }
.cookie-dialog__box { padding: 32px; }
.cookie-dialog__text { margin-top: 12px; }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 24px; }
.cookie-dialog__actions a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie-dialog__actions a:hover { color: var(--accent); }

/* ---------- Inquiry pages: "Discuss your project" and "Request an audit" ---------- */
.page-first { padding-top: 56px; }
.inq .eyebrow { color: var(--muted); }
:root { --inq-error: #b42318; }
/* hidden means hidden, also for elements styled as buttons or flex rows */
.inq [hidden] { display: none !important; }

.inq__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head main" "aside main";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.inq__head { grid-area: head; }
.inq__head .display { margin-top: 8px; }
.inq__lede { max-width: 440px; margin-top: 24px; font-size: 16px; line-height: 24px; color: var(--ink); }
.inq__main { grid-area: main; min-width: 0; }
.inq__aside { grid-area: aside; max-width: 440px; margin-top: 48px; }
.inq__aside-title { font-size: 14px; line-height: 21px; font-weight: 400; text-transform: uppercase; color: var(--ink); }
.inq__aside-title--more { margin-top: 32px; }
.inq-next { margin-top: 12px; counter-reset: inq-next; }
.inq-next li { display: grid; grid-template-columns: 24px minmax(0, 1fr); padding: 10px 0; border-top: 1px solid var(--line); counter-increment: inq-next; }
.inq-next li::before { content: counter(inq-next); color: var(--muted); font-variant-numeric: tabular-nums; }
.inq__get { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.inq-direct { margin-top: 32px; color: var(--muted); }
.inq-direct a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.inq-direct a:hover { color: var(--accent); }

/* ---------- Card, progress ---------- */
.inq-card { padding: 40px; background: var(--surface); }
.inq-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.inq-progress__step {
  display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 10px; border-bottom: 2px solid var(--line);
  color: var(--muted);
}
.inq-progress__n { font-variant-numeric: tabular-nums; }
.inq-progress__step.is-done, .inq-progress__step.is-current { border-bottom-color: var(--brown); color: var(--ink); }
.inq-required { margin-top: 16px; color: var(--muted); }

/* ---------- Fields ---------- */
.inq-step { margin-top: 24px; }
.inq-step > .inq-field + .inq-field { margin-top: 28px; }
.inq-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.inq-label { display: block; padding: 0; font-size: 16px; line-height: 24px; color: var(--ink); }
.inq-req { color: var(--accent); }
.inq-opt { color: var(--muted); }
.inq-hint { margin-top: 2px; color: var(--muted); }
.inq-input {
  display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 11px 14px;
  font: inherit; font-size: 16px; line-height: 24px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 0;
  scroll-margin-top: 24px;
  transition: border-color .15s ease;
}
textarea.inq-input { min-height: 144px; resize: vertical; }
.inq-input:hover { border-color: #999; }
.inq-input:focus { border-color: var(--ink); }
.inq-input::placeholder { color: #8a8a8a; opacity: 1; }

/* Choices: real radio buttons and checkboxes inside large labels */
.inq-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.inq-option {
  display: flex; align-items: flex-start; gap: 12px;
  min-height: 48px; padding: 13px 14px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 14px; line-height: 20px; color: var(--text);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.inq-option:hover { border-color: #999; }
.inq-option:has(input:checked) { border-color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); }
.inq-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.inq-option input {
  flex: none; width: 18px; height: 18px; margin: 1px 0 0;
  appearance: none; -webkit-appearance: none;
  background: var(--bg); border: 1px solid #6b6b6b;
  cursor: pointer; scroll-margin-top: 24px;
}
.inq-option input:focus-visible { outline: none; }
.inq-option input[type="radio"] { border-radius: 50%; }
.inq-option input[type="radio"]:checked { border-color: var(--brown); background: radial-gradient(circle, var(--brown) 0 4px, var(--bg) 4.5px); }
.inq-option input[type="checkbox"]:checked {
  border-color: var(--brown);
  background: var(--brown) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Errors: the field's own message, marked by more than colour */
.inq-error { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; color: var(--inq-error); }
.inq-error::before {
  content: "!"; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--inq-error); color: #fff; font-size: 12px; line-height: 1;
}
.inq-error[hidden] { display: none; }
.is-invalid .inq-input, .is-invalid .inq-option { border-color: var(--inq-error); }
.is-invalid .inq-input { box-shadow: inset 0 0 0 1px var(--inq-error); }

/* The field for robots: out of sight, out of the tab order, ignored by screen readers */
.inq-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.inq-privacy { margin-top: 24px; color: var(--muted); }
.inq-privacy__link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Actions ---------- */
.inq-status { margin-top: 24px; }
.inq-status:empty { display: none; }
.inq-status.is-error { color: var(--inq-error); }
.inq-status__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.inq-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 32px; }
.inq-back { margin-right: auto; }
.btn--lg { min-height: 48px; padding: 11px 23px; font-size: 16px; line-height: 24px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.inq-sendnote { margin-top: 12px; color: var(--muted); text-align: right; }

/* ---------- Result: sent, or finish in your e-mail ---------- */
.inq-result:focus { outline: none; }
.inq-result__title { font-size: var(--title); line-height: 32px; letter-spacing: -0.03em; color: var(--ink); }
.inq-result__text { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--ink); }
.inq-result__sum { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.inq-result__sum h3 { font-size: 14px; line-height: 21px; font-weight: 400; text-transform: uppercase; color: var(--ink); }
.inq-result__sum dl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 24px; margin: 8px 0 0; }
.inq-result__sum dt, .inq-result__sum dd { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); }
.inq-result__sum dt { color: var(--muted); }
.inq-result__sum dd { color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.inq-result__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.inq-result__more { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.inq-result__links { margin-top: 24px; color: var(--muted); }
.inq-result__links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.inq-result__mailtext { display: block; width: 100%; min-height: 200px; margin-top: 8px; padding: 12px 14px; font: inherit; font-size: 14px; line-height: 21px; background: var(--bg); border: 1px solid var(--line); border-radius: 0; resize: vertical; }
.inq-result__label { display: block; margin-top: 24px; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .inq-card { padding: 32px; }
}
@media (max-width: 899px) {
  .inq__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "main" "aside"; grid-template-rows: none; }
  .inq__main { margin-top: 32px; }
  .inq__aside { max-width: none; }
}
@media (max-width: 599px) {
  .inq-card { margin-inline: calc(-1 * var(--gutter)); padding: 24px var(--gutter); }
  .inq-options { grid-template-columns: minmax(0, 1fr); }
  .inq-options--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* the homepage tiles, two to a row as there */
  .inq-progress__step { flex-direction: column; gap: 0; font-size: 12px; line-height: 16px; }
  .inq-actions .btn { flex: 1 1 0; }
  .inq-actions .inq-submit { flex-grow: 2; }
  .inq-back { margin-right: 0; }
  .inq-sendnote { text-align: left; }
  .inq-result__sum dl { grid-template-columns: minmax(0, 1fr); }
  .inq-result__sum dd { padding-top: 0; border-top: 0; }
}

/* ==========================================================================
   Responsive: tablet (≤ 1199 px), small tablet and phone (≤ 899 px), phone (≤ 599 px)
   ========================================================================== */
@media (max-width: 1199px) {
  .page-head { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
  /* two tiles instead of three: the process card stays readable */
  .hero__gallery { grid-template-columns: minmax(0, 576fr) minmax(0, 396fr); align-items: stretch; }
  .hero__gallery .g2 { height: 100%; aspect-ratio: auto; }
  .hero__gallery .g3 { display: none; }
  /* wide diagram: the group of cards is enlarged inside the photograph */
  .process__stage:not(.process__stage--card) .process__layer { transform: scale(1.18); transform-origin: 50% 50%; }
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { padding: 28px; }
  .stats { column-gap: 4vw; }
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-cards { grid-template-columns: minmax(0, 1fr); }
  .steps__viewport { --steps-offset: 0; padding-left: 0; }
  .inq-card { padding: 32px; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .main-nav, .header-actions .nav-link, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-actions { gap: 16px; }
  .logo { font-size: 22px; }
  .lang-switch button { min-width: 28px; min-height: 40px; }

  .page-head { grid-template-columns: 1fr; row-gap: 24px; padding-top: 32px; }
  .page-head .display { margin-top: 20px; }
  .page-head__aside { max-width: 520px; }
  .page-head__aside .btn-row { margin-top: 24px; }
  .btn-row .btn, .media-split__body > .btn, .cta__actions .btn { min-height: 44px; padding-inline: 16px; }

  .hero__gallery { margin-top: 40px; grid-template-columns: 1fr 1fr; }
  .hero__gallery .process__stage { grid-column: 1 / -1; }
  .hero__gallery .g2, .hero__gallery .g3 { display: block; height: auto; aspect-ratio: 3 / 4; }

  /* the diagram becomes a column of cards on the photograph */
  .process__stage, .process__stage--card {
    --u: 1px;
    aspect-ratio: auto;
    padding: 40px 16px 24px;
    background-position: center;
  }
  .process__stage:not(.process__stage--card) .process__layer { transform: none; }
  .process__layer { position: relative; inset: auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .process__layer::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 50%; width: 1px; background: var(--lime); opacity: .7; }
  .process__links { display: none; }
  .process__grid, .process__stage--card .process__grid { -webkit-mask-image: none; mask-image: none; opacity: .5; }
  .pcard { position: relative; left: auto; top: auto; width: min(100%, 340px); }
  .pcard__title, .pcard__sub { white-space: normal; }
  .process__caption { position: relative; left: auto; bottom: auto; margin-top: 28px; flex-wrap: wrap; }
  .process__caption span { white-space: normal; }

  .quote { padding-top: 88px; }
  .growth { padding-top: 88px; }
  .media-split, .media-split--right { grid-template-columns: 1fr; row-gap: 40px; }
  .media-split--right .media-split__media { order: -1; }
  .media-split__media > img, .case__photo { aspect-ratio: 4 / 5; }
  .case__photo { background-position: 50% 50%; }
  .chips { margin-top: 32px; }
  .media-split__body > .btn { margin-top: 32px; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
  .growth__card { left: 12px; right: 12px; bottom: 12px; max-width: none; }

  .plans { grid-template-columns: 1fr; margin-top: 40px; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }

  .split { grid-template-columns: 1fr; }
  .split__aside { padding-right: 0; margin-bottom: 32px; }
  .split__aside--spread { min-height: 0; gap: 24px; }
  .split__stick { padding-bottom: 0; }
  .split__stick .display { position: static; }
  .row { grid-template-columns: 1fr; row-gap: 12px; padding-block: 28px; }
  .services { margin-top: 64px; padding-block: 56px; }

  .hiw__diagram { margin-top: 40px; }
  .cards--3 { grid-template-columns: 1fr; }
  .card__icon { margin-bottom: 20px; }
  .steps__viewport { margin-top: 40px; }
  .step { flex-basis: min(272px, 74vw); }
  .changes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; margin-top: 56px; }
  .changes__grid li:first-child { grid-column-start: auto; }

  .featured { margin-top: 40px; }
  .about__banner { margin-top: 40px; }
  .about__banner img { aspect-ratio: 4 / 3; }
  .section-head { grid-template-columns: 1fr; row-gap: 20px; }
  .work-cards { margin-top: 40px; }

  .sticky-split { grid-template-columns: 1fr; margin-top: 40px; }
  .sticky-split__media { grid-row: auto; }
  .sticky-split__media img { position: static; aspect-ratio: 4 / 5; max-height: none; }
  .sticky-split__media[data-swap] img + img { display: none; }
  .sticky-split__media[data-swap].is-ready img:first-child { opacity: 1; }
  .sticky-split__panel { grid-column: auto; min-height: 0; padding-block: 40px 0; max-width: 620px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }
  .stats > li:nth-child(n+3) { margin-top: 48px; }
  .outcomes__note { margin-top: 56px; }

  .cta__box { padding: 40px 20px; }
  .site-footer { padding-top: 64px; }
  .site-footer .split { display: flex; flex-direction: column; }
  .footer-brand { display: contents; }
  .footer-brand .logo { order: 1; margin-bottom: 40px; }
  .footer-cols { order: 2; flex-wrap: wrap; justify-content: flex-start; column-gap: 48px; row-gap: 32px; }
  .footer-legal { order: 3; margin-top: 48px; }
  .footer-col a { display: inline-block; padding-block: 4px; }
  .page-first { padding-top: 40px; }
}

@media (max-width: 599px) {
  .chips { gap: 8px; }
  .chip { padding: 11px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div + div { margin-top: 12px; }
  .plan { padding: 24px; }
  .glass { padding: 12px; }
  .glass__list { row-gap: 8px; }
  .glass__list li { font-size: 14px; line-height: 20px; }
  .glass__list .desc { font-size: 12px; line-height: 17px; }
  .growth__media > img { aspect-ratio: 3 / 5; }
  .cards--4 { grid-template-columns: 1fr; }
  .sticky-split__panel .traits { grid-template-columns: 1fr; }
  .facts { margin-top: 28px; }
  .case-next { flex-direction: column; align-items: flex-start; }
  .case-next__link { text-align: left; }
  .changes__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .work-card { grid-template-columns: 1fr; min-height: 0; }
  .work-card__media { height: 260px; }
  .work-card__body { padding: 24px 20px 28px; }
  .work-card__body .btn { margin-top: 28px; min-height: 44px; padding-inline: 16px; }
  .stats { column-gap: 16px; }
  .btn-row .btn, .cta__actions .btn { flex: 1 1 auto; }
}

/* ---------- One file: only the current page (view) and its shared sections are shown ---------- */
html[data-view-active="home"] [data-view]:not([data-view="home"]),
html[data-view-active="how"] [data-view]:not([data-view="how"]),
html[data-view-active="cases"] [data-view]:not([data-view="cases"]),
html[data-view-active="about"] [data-view]:not([data-view="about"]),
html[data-view-active="project"] [data-view]:not([data-view="project"]),
html[data-view-active="audit"] [data-view]:not([data-view="audit"]),
html[data-view-active="home"] [data-views]:not([data-views~="home"]),
html[data-view-active="how"] [data-views]:not([data-views~="how"]),
html[data-view-active="cases"] [data-views]:not([data-views~="cases"]),
html[data-view-active="about"] [data-views]:not([data-views~="about"]),
html[data-view-active="project"] [data-views],
html[data-view-active="audit"] [data-views] { display: none; }
/* Focus moved there by the script after a link: no ring on a heading or section */
[data-focus-only]:focus { outline: none; }


/* ---------- Main case study, Figma layout (prototype node 379:258): key cards and cover, side navigation,
   chapters in the content column, then results, systems and outcome across the full width ---------- */
.sp { --sp-gap: 4px; --sp-head: #c9c9c9; }
.sp .cs-hero__head .display { margin-top: 0; }
.sp-hero__lead { max-width: 370px; justify-self: end; }
.sp-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 72px; }
.sp-keys > div { padding: 12px 15px 10px; border: 1px solid var(--line); }
.sp-keys dt { font-size: 14px; line-height: 21px; color: var(--muted); }
.sp-keys dd { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: var(--title); line-height: 1.3333; letter-spacing: -0.028em; color: var(--ink); white-space: nowrap; }
.sp-keys__icon { width: 18px; height: 18px; flex: none; color: var(--brown); }
.sp-cover { margin-top: 12px; aspect-ratio: 1920 / 1048; background: #2a2a2a var(--img-sp-cover) center / cover no-repeat; }

.sp-body { display: grid; grid-template-columns: minmax(0, 232px) minmax(0, 1fr); column-gap: 32px; align-items: start; margin-top: 72px; }
.sp-nav { position: sticky; top: calc(var(--header-h) + 16px); }
.sp-nav ol { border-left: 1px solid var(--line); }
.sp-nav a { position: relative; display: block; margin-left: -1px; padding: 9px 12px; border-left: 1px solid transparent; font-size: 14px; line-height: 21px; color: var(--muted); transition: color .2s ease; }
.sp-nav a:hover { color: var(--accent); }
.sp-nav a[aria-current] { padding-left: 26px; border-left-color: var(--ink); color: var(--ink); }
.sp-nav a[aria-current]::before { content: ""; position: absolute; left: 12px; top: 17px; width: 5px; height: 5px; border-radius: 50%; background: var(--brown); }

.sp-ch { margin-top: var(--section); scroll-margin-top: calc(var(--header-h) + 24px); }
.sp-main > .sp-ch:first-child { margin-top: 0; }
.sp-sub { margin-top: clamp(64px, 6.5vw, 96px); scroll-margin-top: calc(var(--header-h) + 24px); }
.sp-tag { display: inline-flex; align-items: center; min-height: 23px; margin-bottom: 12px; padding: 0 7px; border: 1px solid var(--ink); font-size: 12px; line-height: 21px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.sp .cs-chapter__head { grid-template-columns: minmax(0, 1fr) minmax(0, 370px); align-items: start; }
.sp .cs-chapter__head .cs-chapter__lede { padding-top: 12px; }
.sp .cs-chapter__head .display { max-width: 11.5em; }

/* Stores: screenshot in a brown frame, name and link beside it */
.sp-stores { display: grid; row-gap: 32px; margin-top: 48px; }
.sp-store { display: grid; grid-template-columns: minmax(0, 383fr) minmax(0, 569fr); align-items: center; }
.sp-store__media { padding: clamp(16px, 2.3vw, 32px); background: var(--brown); }
.sp-store__media img { display: block; width: 100%; height: auto; }
.sp-store__body { display: flex; flex-direction: column; align-items: flex-start; padding-left: clamp(24px, 6.4vw, 92px); }
.sp-store__tag { font-size: 12px; line-height: 18px; color: var(--muted); }
.sp-store__domain { margin-top: 12px; font-size: clamp(26px, 1.6vw + 17px, 40px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.sp-store__domain a { transition: color .2s ease; }
.sp-store__domain a:hover { color: var(--accent); }
.sp-store__desc { max-width: 360px; margin-top: 24px; }
.sp-store__body .btn { margin-top: 40px; }

/* The brief: heading and text left, three cards right; below it the two business models */
.sp-brief { display: grid; grid-template-columns: minmax(0, 383fr) minmax(0, 569fr); align-items: start; }
.sp-brief .display { max-width: 7.5em; }
.sp-brief__lead { max-width: 372px; margin-top: 24px; }
.sp-points { display: grid; row-gap: var(--sp-gap); margin-left: clamp(24px, 6.4vw, 92px); }
.sp-points > li { padding: 10px 11px 12px; border: 1px solid var(--line); }
.sp-points__n { font-size: 12px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-points .title { margin-top: 12px; }
.sp-points .title + p { margin-top: 8px; }
.sp-b2b__title { max-width: none; margin-top: clamp(64px, 6.5vw, 96px); }

/* Tables and data cells: grey cells four pixels apart */
.sp-table { margin-top: 32px; border-collapse: separate; border-spacing: var(--sp-gap); width: calc(100% + 2 * var(--sp-gap)); margin-inline: calc(-1 * var(--sp-gap)); }
.sp-table th, .sp-table td, .sp-table td:last-child, .sp-table th:last-child { padding: 9px 11px; border: 0; background: var(--surface); vertical-align: middle; font-size: 14px; line-height: 21px; }
.sp-table thead th, .sp-table thead th:last-child { padding: 9px 11px; background: var(--sp-head); text-transform: none; letter-spacing: 0; font-size: 14px; line-height: 21px; }
.sp-table tbody th { width: 13%; font-size: 14px; }
.sp-table.pf-compare td { width: auto; }
.sp-table thead th:nth-child(2) { width: 36%; }
.sp .sp-table + .pf-note { margin-top: 8px; }

.sp-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-gap); margin-top: 48px; }
.sp-sheet > div, .sp-legend { padding: 12px 14px 14px; background: var(--surface); }
.sp-sheet dt, .sp-legend__label { font-size: 12px; line-height: 18px; color: var(--muted); }
.sp-sheet dd { margin: 6px 0 0; font-size: 14px; line-height: 21px; color: var(--ink); }
.sp-sheet__sep { margin-inline: 6px; color: var(--line); }
.sp-sheet__note { color: var(--muted); }
.sp-legend { margin-top: var(--sp-gap); padding-bottom: 0; }
.sp-legend ul { margin: 8px -14px 0; }
.sp-legend li { display: grid; justify-items: start; row-gap: 8px; padding: 14px 14px 16px; font-size: 14px; line-height: 21px; color: var(--ink); }
.sp-legend li + li { border-top: 2px solid var(--bg); }

/* Solution: the seven projects, picture left, text right */
.sp-projects { display: grid; row-gap: 32px; margin-top: 48px; }
.sp-proj { display: grid; grid-template-columns: minmax(0, 383fr) minmax(0, 569fr); align-items: center; }
.sp-proj__media { aspect-ratio: 383 / 500; background: var(--brown) center / cover no-repeat; }
.sp-proj__body { display: flex; flex-direction: column; align-items: flex-start; padding-left: clamp(24px, 6.4vw, 92px); }
.sp-proj__title { margin-top: 20px; font-size: clamp(26px, 1.6vw + 17px, 40px); line-height: 1.3; letter-spacing: -0.03em; font-weight: 400; color: var(--ink); text-wrap: balance; }
.sp-proj__text { margin-top: 20px; }
.sp-proj .facts { margin-top: 44px; border: 0; gap: 10px; }
.sp-proj .facts div { flex: 1 1 0; padding: 7px 11px 9px; border: 1px solid var(--line); }
.sp-proj .facts dd { font-size: var(--title); line-height: 1.3333; letter-spacing: -0.028em; }
.sp-proj__body .btn { margin-top: 40px; }

/* Scope: five groups side by side */
.sp-scope { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-gap); align-items: start; margin-top: 48px; }
.sp-scope__col, .sp-scope__col ul { display: grid; row-gap: var(--sp-gap); }
.sp-scope__head { padding: 9px 11px; background: var(--sp-head); font-size: 14px; line-height: 21px; font-weight: 400; color: var(--ink); }
.sp-scope__col li { display: flex; flex-direction: column; justify-content: space-between; row-gap: 12px; min-height: 92px; padding: 10px 11px; background: var(--surface); font-size: 14px; line-height: 19px; color: var(--ink); }
.sp-scope__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-scope__ref { margin-left: auto; font-size: 12px; line-height: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sp-scope__ref:hover { color: var(--accent); }

/* One item at a time (set up by the script: .is-live). The block is as tall as its steps; the stage stays under the header
   while the page scrolls through it, and the tabs above it show and choose the step. */
.sp-swap__tabs { display: none; }
.sp-swap.is-live { height: calc(var(--swap-stage, 420px) + var(--swap-n, 4) * var(--swap-step, 320px)); margin-top: 48px; }
.sp-swap.is-live .sp-swap__pin { position: sticky; top: calc(var(--header-h) + 20px); }
.sp-swap.is-live .sp-swap__tabs { display: flex; gap: var(--sp-gap); margin-bottom: 20px; }
.sp-swap__tabs button { flex: 1 1 0; min-width: 0; padding: 8px 0 0; border: 0; border-top: 2px solid var(--line); background: none; font: inherit; font-size: 12px; line-height: 18px; text-align: left; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.sp-swap__tabs button:hover { color: var(--accent); }
.sp-swap__tabs button[aria-current] { border-top-color: var(--ink); color: var(--ink); }
.sp-swap.is-live .sp-swap__stage { display: grid; row-gap: 0; margin-top: 0; }
.sp-swap.is-live .sp-swap__stage > li { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s; }
.sp-swap.is-live .sp-swap__stage > li.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .sp-swap.is-live .sp-swap__stage > li { transition: none; transform: none; } }

/* Results, systems, outcome: full width */
.sp-wide > .display { max-width: 8.5em; }
.sp-wide > .cs-chapter__lede { max-width: 372px; margin-top: 12px; }
.sp-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-gap); margin-top: 40px; }
.sp-results > li { padding: 12px 15px 14px; border: 1px solid var(--line); }
.sp-results__v { font-size: clamp(32px, 1.3vw + 25px, 44px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.sp-results .title { margin-top: 16px; }
.sp-results .title + p { margin-top: 12px; font-size: 14px; line-height: 21px; }
.sp-systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-gap); margin-top: 40px; }
.sp-systems > div {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 173px; padding: 12px 14px;
  background-color: var(--surface);
  background-image: linear-gradient(to right, rgba(255, 255, 255, .7) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .7) 1px, transparent 1px), linear-gradient(to top, var(--surface) 34%, rgba(244, 243, 242, 0));
  background-size: 28px 28px, 28px 28px, 100% 100%; background-blend-mode: normal;
}
.sp-systems dt { font-size: 12px; line-height: 18px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.sp-systems dd { margin: 6px 0 0; font-size: 14px; line-height: 21px; color: var(--ink); }
.sp-close { text-align: center; }
.sp-close .sp-tag { margin-bottom: 24px; }
.sp-pager { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: var(--section); }
.sp-pager__link { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; line-height: 21px; color: var(--ink); }
.sp-pager__link--next { text-align: right; }
.sp-pager__box { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 33px; height: 33px; border: 1px solid var(--brown); color: var(--brown); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.sp-pager__box .icon { width: 16px; height: 16px; }
.sp-pager__link:hover .sp-pager__box { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 1199px) {
  .sp-body { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); }
  .sp-scope { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .sp-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .sp-hero__lead { justify-self: start; max-width: 600px; }
  .sp-keys { margin-top: 40px; gap: 8px; }
  .sp-cover { margin-top: 8px; aspect-ratio: 4 / 3; }
  .sp-body { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .sp-nav { position: static; margin-bottom: 56px; }
  .sp-nav ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; border-left: 0; }
  .sp-nav li { border-top: 1px solid var(--line); }
  .sp-nav a { margin: 0; padding: 12px 0; border: 0; font-size: 16px; line-height: 24px; color: var(--ink); }
  .sp .cs-chapter__head { grid-template-columns: minmax(0, 1fr); }
  .sp .cs-chapter__head .cs-chapter__lede { padding-top: 0; }
  .sp-store, .sp-proj, .sp-brief { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .sp-store__body, .sp-proj__body { padding-left: 0; }
  .sp-points { margin-left: 0; margin-top: 8px; }
  .sp-proj__media { aspect-ratio: 4 / 3; }
  .sp-stores, .sp-projects { row-gap: 56px; }
  .sp-store__body .btn, .sp-proj__body .btn { min-height: 44px; padding-inline: 16px; margin-top: 28px; }
  .sp-proj .facts { margin-top: 28px; }
  .sp-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-systems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-systems > div { min-height: 120px; }
  .sp-table { width: 100%; margin-inline: 0; border-spacing: 0; }
  .sp-table.pf-compare tr { padding: 12px 0; }
  .sp-table.pf-compare th, .sp-table.pf-compare td { padding: 0; background: none; font-size: 16px; line-height: 26px; }
  .sp-table.pf-compare tbody th { width: auto; }
  .sp-pager__link { max-width: 46%; }
}
@media (max-width: 599px) {
  .sp-keys, .sp-sheet, .sp-results, .sp-scope, .sp-systems { grid-template-columns: minmax(0, 1fr); }
  .sp-keys dd { white-space: normal; }
  .sp-scope__col li { min-height: 0; }
  .sp-systems > div { min-height: 96px; }
  .sp-proj .facts { gap: 6px; }
  .sp-proj .facts div { padding-inline: 8px; }
  .sp-proj .facts dd { font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
}

/* ---------- Spacing and sizes measured on the Figma prototype (1440 px frame): text 14/21, chapters 170 px apart,
   upright 434 x 565 frames, 48 px names ---------- */
.sp { --sp-section: clamp(96px, 11.8vw, 170px); --sp-block: clamp(64px, 7.8vw, 112px); --sp-name: clamp(30px, 1.9vw + 21px, 48px); font-size: 14px; line-height: 21px; }
.sp .cs-chapter__lede, .sp-hero__lead { font-size: 14px; line-height: 21px; }
.sp-keys { margin-top: 80px; }
.sp-keys > div { padding: 14px 16px 16px; }
.sp-keys dd { margin-top: 10px; }
.sp-body { grid-template-columns: minmax(0, 264fr) minmax(0, 952fr); column-gap: 0; margin-top: 88px; }
.sp-nav { padding-right: 32px; }
.sp-nav a { padding-block: 12px; }
.sp-nav a[aria-current]::before { top: 20px; }
.sp-ch { margin-top: var(--sp-section); }
.sp-sub { margin-top: var(--sp-block); }
.sp-tag { margin-bottom: 16px; }
.sp .cs-chapter__head { grid-template-columns: minmax(0, 583fr) minmax(0, 369fr); column-gap: 0; }
.sp .cs-chapter__head .display { max-width: 12.6em; padding-right: 32px; }
.sp-wide > .display { max-width: 11em; }
.sp .cs-chapter__head .cs-chapter__lede { padding-top: 14px; }

/* Stores: an upright page screenshot in a brown frame, the name large beside it */
.sp-stores { row-gap: 56px; margin-top: 56px; }
.sp-store { grid-template-columns: minmax(0, 383fr) minmax(0, 92fr) minmax(0, 477fr); }
.sp-frame { aspect-ratio: 434 / 565; padding: 8.6%; background: var(--brown); }
.sp-frame__page { height: 100%; overflow: hidden; background: #fff; }
.sp-frame__page img { display: block; width: 100%; height: auto; }
.sp-store__body { grid-column: 3; padding-left: 0; }
.sp-store__tag { font-size: 12px; line-height: 18px; }
.sp-store__domain { margin-top: 16px; font-size: var(--sp-name); line-height: 1.25; }
.sp-store__desc { max-width: 350px; margin-top: 28px; }
.sp-store__body .btn { margin-top: 56px; }

.sp-brief { grid-template-columns: minmax(0, 383fr) minmax(0, 92fr) minmax(0, 477fr); }
.sp-brief__lead { margin-top: 28px; }
.sp-points { grid-column: 3; margin-left: 0; }
.sp-points > li { min-height: 136px; padding: 12px 12px 20px; }
.sp-points .title { margin-top: 14px; }
.sp-b2b__title { margin-top: var(--sp-block); }
.sp-table { margin-top: 36px; }
.sp-table th, .sp-table td, .sp-table td:last-child, .sp-table th:last-child, .sp-table thead th, .sp-table thead th:last-child { padding: 12px; }
.sp .sp-table + .pf-note { margin-top: 12px; }

.sp-sheet { margin-top: 56px; }
.sp-sheet > div { padding: 16px 16px 18px; }
.sp-sheet dd { margin-top: 8px; }
.sp-legend { padding: 16px 16px 0; }
.sp-legend ul { margin: 12px -16px 0; }
.sp-legend li { row-gap: 10px; padding: 16px 16px 20px; }

.sp-projects { row-gap: 56px; margin-top: 56px; }
.sp-proj { grid-template-columns: minmax(0, 383fr) minmax(0, 92fr) minmax(0, 477fr); }
.sp-proj__media { aspect-ratio: 434 / 565; }
.sp-proj__body { grid-column: 3; padding-left: 0; }
.sp-proj__title { margin-top: 24px; font-size: var(--sp-name); line-height: 1.3; }
.sp-proj__text { margin-top: 24px; }
.sp-proj .facts { margin-top: 56px; gap: 11px; }
.sp-proj .facts div { padding: 10px 12px 12px; }
.sp-proj .facts dd { margin-top: 4px; }
.sp-proj__body .btn { margin-top: 56px; }

.sp-scope { margin-top: 56px; }
.sp-scope__head { padding: 12px; }
.sp-scope__col li { min-height: 104px; padding: 12px; line-height: 21px; }

.sp-wide > .cs-chapter__lede { margin-top: 24px; }
.sp-results { margin-top: 48px; }
.sp-results > li { min-height: 196px; padding: 16px 16px 22px; }
.sp-results__v { font-size: clamp(34px, 1.6vw + 25px, 48px); line-height: 1.25; }
.sp-results .title { margin-top: 22px; }
.sp-systems { margin-top: 52px; }
.sp-systems > div { min-height: 196px; padding: 16px; }
.sp-close { margin-top: clamp(120px, 16vw, 230px); }
.sp-close .sp-tag { margin-bottom: 32px; }
.sp-pager { margin-top: clamp(120px, 16vw, 230px); }

/* pinned: the frame never grows taller than the window allows */
.sp-swap.is-live { margin-top: 56px; }
.sp-swap.is-live .sp-swap__tabs { margin-bottom: 24px; }
.sp-swap.is-live .sp-frame, .sp-swap.is-live .sp-proj__media { width: min(100%, calc((100vh - var(--header-h) - 120px) * 0.768)); }

@media (max-width: 1199px) {
  .sp-body { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); }
  .sp-store, .sp-proj, .sp-brief { grid-template-columns: minmax(0, 383fr) minmax(0, 48fr) minmax(0, 521fr); }
}
@media (max-width: 899px) {
  .sp { font-size: 16px; line-height: 26px; }
  .sp .cs-chapter__lede, .sp-hero__lead { font-size: 16px; line-height: 26px; }
  .sp-keys { margin-top: 40px; }
  .sp-body { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .sp-nav { padding-right: 0; }
  .sp .cs-chapter__head { grid-template-columns: minmax(0, 1fr); }
  .sp .cs-chapter__head .display { padding-right: 0; }
  .sp-store, .sp-proj, .sp-brief { grid-template-columns: minmax(0, 1fr); }
  .sp-store__body, .sp-proj__body, .sp-points { grid-column: auto; }
  .sp-frame, .sp-proj__media { max-width: 434px; }
  .sp-proj__media { aspect-ratio: 434 / 565; }
  .sp-store__body .btn, .sp-proj__body .btn, .sp-proj .facts { margin-top: 28px; }
  .sp-store__desc, .sp-proj__text { margin-top: 16px; }
  .sp-points > li, .sp-results > li { min-height: 0; }
  .sp-table.pf-compare th, .sp-table.pf-compare td, .sp-table.pf-compare td:last-child, .sp-table.pf-compare th:last-child { padding: 0; }
  .sp-systems > div { min-height: 120px; }
}

/* ---------- Case study detail hero, Figma layout: title left, lead right, cover across the full width, credits below ---------- */
.cs-phero { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 32px; row-gap: 0; align-items: end; }
.cs-phero__body { display: contents; }
.cs-phero__body > .pill { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
.cs-phero__body > .display { grid-column: 1; grid-row: 2; }
.cs-phero__body > .cs-lead { grid-column: 2; grid-row: 2; justify-self: end; max-width: 370px; margin-top: 0; font-size: 14px; line-height: 21px; letter-spacing: 0; }
.cs-phero__art { grid-column: 1 / -1; grid-row: 3; margin-top: 56px; aspect-ratio: 1376 / 754; background-color: #2b2b2b; background-position: center; background-size: cover; }
.cs-phero__body > .cs-credits { grid-column: 1 / -1; grid-row: 4; margin-top: 48px; }
@media (max-width: 1199px) { .cs-phero { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); } }
@media (max-width: 899px) {
  .cs-phero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .cs-phero__body > .cs-lead { grid-column: 1; grid-row: 3; justify-self: start; max-width: 600px; margin-top: 20px; font-size: 16px; line-height: 26px; }
  .cs-phero__art { grid-row: 4; margin-top: 32px; aspect-ratio: 4 / 3; background-position: 45% center; }
  .cs-phero__body > .cs-credits { grid-row: 5; margin-top: 32px; }
}

/* ---------- Project pages, Figma layout (frames "Case studies – …"): key cards and a wide cover in the hero,
   boxed chapter labels, light data-flow map, bordered table, alternating image/text rows, boxed pager ---------- */
.cs-project .pill__num { display: none; }
.cs-phero__body > .pill, .cs-phero__body > .display, .cs-phero__body > .cs-lead, .cs-phero__art, .cs-phero__body > .cs-credits { grid-row: auto; }
.cs-phero__art { order: 1; }
.cs-phero__body > .cs-credits { order: 2; }
.cs .cs-phero__note { order: 3; grid-column: 1 / -1; margin-top: 24px; }
.cs-keys { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 32px 0 0; }
.cs-keys > div { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 108px; padding: 14px 16px 16px; border: 1px solid var(--line); }
.cs-keys dt { font-size: 14px; line-height: 21px; color: var(--muted); }
.cs-keys dd { margin: 0; font-size: var(--title); line-height: 1.3333; letter-spacing: -0.028em; color: var(--ink); }
.cs-keys .cs-keys__text dd { font-size: 16px; line-height: 24px; letter-spacing: -0.01em; }
.cs-phero--keys .cs-phero__art { margin-top: 12px; }
.cs-credits dt { letter-spacing: 0; text-transform: none; }
.cs-credits li { flex-direction: column; gap: 8px; }
.cs-credits li + li { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cs-credits .pf-role { min-width: 0; margin-top: 0; }

.cs-project .cs-kicker { display: inline-flex; min-height: 23px; margin-bottom: 16px; padding: 0 7px; border: 1px solid var(--ink); font-size: 12px; line-height: 21px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.cs-project .cs-chapter__lede .pf-tag { padding: 0; background: none; font: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.cs-project .cs-frame__cap .pf-tag { background: none; border: 1px solid var(--ink); }

.cs-project .cs-foot__links dt { letter-spacing: 0; text-transform: none; color: var(--ink); }
.cs-project .cs-foot__links dd { margin-top: 12px; }
.cs-project .pf-links { gap: 8px 24px; }
.cs-project .pf-links a { display: inline-flex; align-items: center; min-height: 27px; padding: 0 10px; border: 1px solid var(--ink); font-size: 14px; line-height: 21px; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.cs-project .pf-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cs-project .sp-pager { margin-top: 72px; }

/* 01 Technology: the map on a light surface */
.cs-map { background: var(--surface); color: var(--ink); --cs-label: var(--muted); }
.cs-track { border-top-color: var(--line); }
.cs-track__t { font-weight: 400; color: var(--ink); }
.cs-track__d { color: var(--ink); }
.cs-track__line > li + li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 9'%3E%3Cpath d='M0 4.5h43M39 1l4 3.5-4 3.5' fill='none' stroke='%23261403' stroke-opacity='.6'/%3E%3C/svg%3E"); }
.cs-track__line > li.is-both::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 9'%3E%3Cpath d='M1 4.5h42M39 1l4 3.5-4 3.5M5 1L1 4.5 5 8' fill='none' stroke='%23261403' stroke-opacity='.6'/%3E%3C/svg%3E"); }
.cs-track__line > li.is-plain::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 9'%3E%3Cpath d='M0 4.5h44' fill='none' stroke='%23261403' stroke-opacity='.6'/%3E%3C/svg%3E"); }
.cs-fan { border-color: rgba(38, 20, 3, .35); }
.cs-stop { border-color: rgba(38, 20, 3, .55); background: var(--surface); color: var(--ink); font-size: 14px; }
.cs-stop:hover { border-color: var(--brown); background: rgba(38, 20, 3, .06); }
.cs-stop.is-on { background: var(--brown); border-color: var(--brown); color: #fff; }
.cs-stop:focus-visible { outline-color: var(--brown); }
.cs-map__panel { background: rgba(222, 220, 217, .94); border-top: 0; box-shadow: inset 3px 0 0 var(--brown); }
.cs-map__desc, .cs-map__in { color: var(--ink); }

/* 07 Growth: the parts of a stage as tiles */
.cs-phases .cs-phase .cs-phase__n::after { content: none !important; }
.cs-phase ul { row-gap: 4px; }
.cs-phase li { padding: 10px 12px 12px; background: var(--surface); font-size: 14px; line-height: 21px; color: var(--ink); }
.cs-phase li b { font-size: 14px; line-height: 21px; font-weight: 500; }

/* 05 UX/UI: two phone screens, each with its text */
.cs-zig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; max-width: 560px; }
.cs-zig img { width: 100%; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--bg); }
.cs-zig figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; margin-top: 20px; }
.cs-shot h2.cs-shot__t { margin: 0; font-weight: 400; }

@media (min-width: 600px) {
  .cs-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-keys--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .cs-project { font-size: 14px; line-height: 21px; }
  .cs-project .cs-shot__t { font-size: 16px; line-height: 24px; }
  .cs-project .cs-shot figcaption { color: var(--ink); }
  .cs-phero { grid-template-columns: minmax(0, 926fr) minmax(0, 418fr); column-gap: 32px; }
  .cs-phero__body > .cs-lead { justify-self: start; max-width: 418px; }
  .cs-phero__art { margin-top: 72px; }
  .cs-keys { margin-top: 72px; }
  .cs-keys--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cs-phero__body > .cs-credits { margin-top: 32px; }
  .cs-credits, .cs-credits--one { grid-template-columns: minmax(0, 686fr) minmax(0, 638fr); column-gap: 52px; max-width: none; }
  .cs-project .cs-chapter__head { grid-template-columns: minmax(0, 926fr) minmax(0, 418fr); align-items: start; }
  .cs-project .cs-chapter__head .display, .cs-project .cs-chapter > .display { max-width: 12.6em; }
  .cs-project .cs-chapter__head > .cs-chapter__lede, .cs-project .cs-chapter__head > .pf-key { padding-top: 14px; }
  .cs-project .cs-chapter__head:has(.cs-kicker) > .cs-chapter__lede { padding-top: 53px; }

  /* 02 Add-ons: a table with a grey head and bordered cells */
  .cs-probs__head, .cs-prob { grid-template-columns: 134px minmax(0, 388fr) minmax(0, 846fr); column-gap: 4px; }
  .cs-probs__head { padding-bottom: 0; letter-spacing: 0; text-transform: none; color: var(--ink); }
  .cs-probs__head > span { padding: 9px 12px; background: #c9c9c9; }
  .cs-probs__head > span:first-child::before { content: "No"; }
  html[data-lang="cs"] .cs-probs__head > span:first-child::before { content: "Č."; }
  .cs-probs { border-bottom: 0; }
  .cs-prob, .cs-probs > .cs-prob:first-child { margin-top: 4px; padding-block: 0; border-top: 0; }
  .cs-prob > * { padding: 12px 12px 14px; border: 1px solid var(--line); }
  .cs-prob__q .title { font-size: 14px; line-height: 21px; letter-spacing: 0; font-weight: 500; }
  .cs-prob__q p { max-width: none; margin-top: 4px; color: var(--ink); }
  .cs-prob__a > p:first-child { max-width: none; }
  .cs-prob__where { margin-top: 10px; font-size: 12px; line-height: 18px; }

  /* 03 Magazine, 04 Locator, 05 UX/UI: a computer and a phone side by side */
  .cs-devices, .cs-loc { grid-template-columns: minmax(0, 924px) minmax(0, 268px); column-gap: 64px; justify-content: start; align-items: start; }
  .cs-devices__desk img, .cs-loc__desk img { border-radius: 8px; }

  /* 05 UX/UI: the four steps as cards on a numbered line */
  .cs-timeline { column-gap: 24px; padding-bottom: 72px; }
  .cs-timeline::before { top: auto; bottom: 16px; }
  .cs-timeline > li { position: relative; min-height: 232px; padding: 20px 24px 24px; border: 1px solid var(--line); }
  .cs-timeline__n { position: absolute; left: -1px; top: calc(100% + 39px); }
  .cs-timeline .title { margin-top: 0; }
  .cs-timeline p { order: 2; margin-bottom: 24px; }
  .cs-timeline .pf-role { order: 3; margin-top: auto; }
}
@media (min-width: 1200px) {
  .cs-map { padding: 8px 24px 0; }
  .cs-track { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); column-gap: 128px; padding-block: 28px; }
  .cs-track:first-child { padding-top: 24px; }
  .cs-map__panel { grid-template-columns: minmax(0, 200px) minmax(0, 1fr) minmax(0, 380px); column-gap: 32px; margin: 16px -24px 0; padding: 16px 24px 18px; }

  /* 03 Magazine: the four parts of an article, alternating sides */
  .cs-anat { row-gap: 120px; }
  .cs-anat__item { grid-template-columns: minmax(0, 614px) minmax(0, 420px); column-gap: 104px; justify-content: start; margin-left: 120px; }
  .cs-anat__item--flip { grid-template-columns: minmax(0, 372px) minmax(0, 700px); column-gap: 64px; justify-content: space-between; margin-left: 200px; }

  /* 04 Locator, 05 UX/UI: phone screens and their text, alternating sides */
  .cs-journey__steps, .cs-zig { display: grid; grid-template-columns: minmax(0, 1fr); gap: 120px 0; width: auto; max-width: 740px; margin-inline: auto; }
  .cs-journey__steps figure, .cs-zig figure { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 104px; align-items: center; }
  .cs-journey__step:nth-child(even) figure { grid-template-columns: minmax(0, 1fr) 220px; }
  .cs-journey__step:nth-child(even) img { order: 2; }
  .cs-journey__steps figcaption, .cs-zig figcaption { display: block; margin-top: 0; }
  .cs-journey__n { display: block; font-size: var(--display); line-height: 1.3333; letter-spacing: -0.02em; color: var(--ink); }
  .cs-journey__t { display: block; margin-top: 12px; font-size: var(--title); line-height: 1.3333; letter-spacing: -0.028em; }
  .cs-journey__d { display: block; margin-top: 12px; font-size: 14px; line-height: 21px; color: var(--ink); }
  .cs .cs-journey + .pf-note { margin-top: 72px; text-align: center; margin-inline: auto; }

  /* 06 Landing page: five frames, alternating sides */
  .cs-frames { grid-template-columns: minmax(0, 1fr); row-gap: 120px; padding-inline: 72px; }
  .cs-frame, .cs-frame--wide, .cs-frame--flip { grid-column: auto; display: grid; grid-template-columns: minmax(0, 710px) minmax(0, 1fr); column-gap: 106px; align-items: center; }
  .cs-frame:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 710px); }
  .cs-frame img, .cs-frame--flip img { order: 0; border-radius: 8px; }
  .cs-frame:nth-child(even) img { order: 2; }
  .cs-frame .cs-frame__cap { max-width: 420px; margin-top: 0; }

  /* 07 Growth: three stages, then two */
  .cs-phases { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 96px; }
  .cs-phase:first-child { grid-column: 2; }
}

/* ---------- Contact: "Discuss your project" and "Request an audit", Figma layout.
   One page head, two tabs, a bordered panel with the form on the left and two grey boxes on the right. ---------- */
.inq--v2 .inq__top { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
.inq--v2 .inq__top .pill { justify-self: start; }
.inq--v2 .inq__top .display { max-width: none; }
.inq--v2 .inq__lede { max-width: 420px; margin-top: 0; font-size: 14px; line-height: 21px; color: var(--ink); }
.inq--v2 .inq__fit { margin-top: 12px; font-size: 12px; line-height: 18px; color: var(--muted); }
.inq-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
.inq-tab { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.inq-tab__t { font-size: 12px; line-height: 18px; letter-spacing: 0.02em; text-transform: uppercase; }
.inq-tab__d { font-size: 12px; line-height: 18px; color: var(--muted); }
.inq-tab:hover { color: var(--ink); border-bottom-color: #999; }
.inq-tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brown); box-shadow: 0 1px 0 var(--brown); }
.inq-panel { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 40px; margin-top: 24px; padding: 16px; border: 1px solid var(--line); }
.inq--v2 .inq__main { grid-area: auto; }
.inq--v2 .inq__aside { grid-area: auto; display: grid; row-gap: 24px; align-content: start; max-width: none; margin-top: 0; }
.inq-box { padding: 16px 16px 20px; background: var(--surface); }
.inq-box__t { font-size: 20px; line-height: 28px; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); }
.inq--v2 .inq-next { margin: 14px 0 0; padding-left: 18px; list-style: decimal; font-size: 14px; line-height: 21px; color: var(--ink); }
.inq--v2 .inq-next li { display: list-item; padding: 0; border: 0; }
.inq--v2 .inq-next li::before { content: none; }
.inq--v2 .inq-next li + li { margin-top: 4px; }
.inq-dc { margin: 14px 0 0; display: grid; row-gap: 12px; }
.inq-dc dt { font-size: 12px; line-height: 18px; color: var(--muted); }
.inq-dc dd { margin: 2px 0 0; font-size: 14px; line-height: 21px; color: var(--ink); }
.inq-dc a { color: inherit; text-decoration: none; }
.inq-dc a:hover { color: var(--accent); }

.inq--v2 .inq-step { margin-top: 0; }
.inq--v2 .inq-step > .inq-field + .inq-field { margin-top: 32px; }
.inq--v2 .inq-label { font-size: 14px; line-height: 21px; font-weight: 500; }
.inq--v2 .inq-opt { margin-left: 4px; font-weight: 400; color: var(--muted); }
.inq--v2 .inq-input { margin-top: 8px; }
.inq--v2 .inq-input::placeholder { color: #9a9a9a; }
.inq--v2 textarea.inq-input { min-height: 96px; }
.inq--v2 .inq-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inq--v2 .inq-option { position: relative; align-items: center; min-height: 40px; padding: 8px 12px; border-color: #bdbdbd; font-size: 14px; line-height: 20px; color: var(--ink); transition: background-color .15s ease, border-color .15s ease; }
.inq--v2 .inq-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.inq--v2 .inq-option:hover { border-color: var(--ink); }
.inq--v2 .inq-option:has(input:checked) { background: #f3dfd0; border-color: #e3c4ab; box-shadow: none; color: var(--brown); }
.inq-select { position: relative; }
.inq-select__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.inq-select__btn::-webkit-details-marker { display: none; }
.inq-select__val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-select__val.is-empty { color: #9a9a9a; }
.inq-select__icon { flex: none; width: 12px; height: 8px; transition: transform .15s ease; }
.inq-select[open] .inq-select__icon { transform: rotate(180deg); }
.inq-select[open] .inq-select__btn { border-color: var(--ink); }
.inq-select__list { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: -1px; padding: 6px 0; background: var(--bg); border: 1px solid var(--ink); }
.inq-select__list .inq-check { padding: 9px 12px; cursor: pointer; }
.inq-select__list .inq-check:hover { background: var(--surface); }
.inq-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; color: var(--ink); }
.inq-check input { flex: none; appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 2px 0 0; background: var(--bg); border: 1px solid #999; border-radius: 0; cursor: pointer; }
.inq-check input:checked { border-color: var(--brown); background: var(--brown) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.inq-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.inq-consent .inq-check { font-size: 12px; line-height: 18px; color: var(--muted); cursor: pointer; }
.inq-consent .inq-check input { margin-top: 1px; }
.inq-consent.is-invalid .inq-check input { border-color: var(--inq-error); }
.inq-note { margin-top: 32px; font-size: 12px; line-height: 18px; color: var(--muted); }
.inq--v2 .inq-actions { justify-content: flex-start; gap: 12px; margin-top: 32px; }
.inq--v2 .inq-actions .btn { min-height: 44px; padding: 9px 16px; font-size: 14px; line-height: 21px; }
.inq--v2 .inq-back { margin-right: 0; }
.inq--v2 .inq-sendnote { text-align: left; font-size: 12px; line-height: 18px; }
.inq--v2 .inq-result:focus { outline: none; }

@media (min-width: 900px) {
  .inq--v2 .inq__top { grid-template-columns: minmax(0, 926fr) minmax(0, 418fr); column-gap: 32px; row-gap: 24px; align-items: end; }
  .inq--v2 .inq__top .pill { grid-column: 1 / -1; }
  .inq--v2 .inq__intro { padding-bottom: 10px; }
  .inq-tabs { margin-top: 72px; }
  .inq-tab { padding-inline: 16px; }
  .inq-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 450px); column-gap: clamp(32px, 7vw, 160px); padding: 24px; }
  .inq--v2 .inq-form, .inq--v2 .inq-result { max-width: 715px; }
  .inq--v2 .inq__aside { row-gap: 40px; }
  .inq--v2 .inq-step > .inq-field + .inq-field { margin-top: 40px; }
  .inq--v2 .inq-input { min-height: 36px; padding: 7px 10px; font-size: 14px; line-height: 20px; }
  .inq--v2 .inq-option { min-height: 28px; padding: 3px 9px; font-size: 13px; line-height: 20px; }
  .inq--v2 .inq-actions { margin-top: 40px; }
  .inq--v2 .inq-actions .btn { min-height: 32px; padding: 5px 12px; }
  .inq-note { margin-top: 40px; }
}

/* ---------- Refinements after the Figma review ---------- */
/* A. Statement: held in the middle of the window while the words turn dark (the script sets the two lengths) */
.quote.is-pin > .container { position: sticky; top: var(--pin-top, 35vh); }
.quote.is-pin::after { content: ""; display: block; height: var(--pin-run, 70vh); }

/* I. A page fades in the way the About me photographs change */
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }
#main.view-in { animation: view-in .5s ease; }

/* B. Buttons: on the brown box the outlined button is filled, so the grid behind does not show through */
.cta__box .btn--ghost { background: var(--brown); }
.cta__box .btn--ghost:hover { background: var(--accent); }
.btn--outline.is-armed { background: var(--brown); color: #fff; }
.btn--outline.is-armed:hover { background: var(--accent); border-color: var(--accent); }

/* H. Labels without an icon: the same space left and right */
.pill:not(:has(.pill__icon, .pill__avatar)) { padding-inline: 11px; }

/* D. "Sound familiar?" tiles: a tick in the corner and a dark outline when chosen */
.chip { position: relative; min-height: 74px; padding: 16px 15px 14px; line-height: 21px; }
.chip::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 18px; height: 18px;
  background: var(--brown) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.6 9.3l2.9 2.9 5.9-6.2' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transition: opacity .15s ease;
}
.chip:hover { border-color: #b9b3ac; }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip[aria-pressed="true"] { background: var(--surface); border-color: var(--brown); color: var(--ink); }
.chip[aria-pressed="true"]::before { opacity: 1; }

/* J. Contact: the choices in the brown of the buttons */
.inq--v2 .inq-option { border-color: #c9c9c9; color: var(--brown); }
.inq--v2 .inq-option:has(input:checked) { background: #f3e3d6; border-color: #e8cdb8; }

/* G. Case study: tabs in capitals above their line */
.sp-swap.is-live .sp-swap__tabs { gap: 0; }
.sp-swap__tabs button { padding: 14px 8px 15px; border-top: 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 21px; letter-spacing: 0.01em; text-align: center; text-transform: uppercase; color: var(--muted); transition: color .2s ease, border-color .2s ease; }
.sp-swap__tabs button:hover { color: var(--brown); }
.sp-swap__tabs button[aria-current] { border-top-color: transparent; border-bottom-color: var(--brown); box-shadow: 0 1px 0 var(--brown); color: var(--brown); }

/* M. Icons at the sizes of their Figma frames */
.step__icon .icon { width: 32px; height: 32px; }
.pcard__head .icon { width: calc(var(--u) * 20); height: calc(var(--u) * 20); }
.glass__head .icon { width: 20px; height: 20px; }

@media (max-width: 599px) {
  .chip { padding: 22px 11px 11px; }
}
@media (min-width: 900px) {
  /* E. What I help with: the heading and the button stay in view while the list passes; they stop level with the last row */
  .split__aside--spread { position: sticky; top: calc(var(--header-h) + 32px); min-height: 0; height: min(648px, calc(100vh - var(--header-h) - 64px)); margin-bottom: 68px; }
  .split__aside--spread .split__stick { padding-bottom: 0; }
  .split__aside--spread .split__stick .display { position: static; }

  /* I. About me: each text sits level with the middle of the photograph, with twice the space between the texts */
  .sticky-split__panel { min-height: min(calc((100cqw - var(--col-gap)) * 754 / 1268), calc(100vh - var(--header-h) - 48px)); }
}
/* ---------- v18 ---------- */
/* Role label "Managed" and chosen form options: one pair of colours (Figma) */
.pf-role[data-role="managed"] { background: #eaded0; border-color: #eaded0; color: #9a5922; }
.inq--v2 .inq-option { border-color: #d3d0cd; color: var(--brown); transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.inq--v2 .inq-option:hover { border-color: var(--brown); }
.inq--v2 .inq-option:has(input:checked) { background: #eaded0; border-color: #eaded0; color: #9a5922; }
.inq--v2 .inq-option:has(input:checked):hover { border-color: #9a5922; }
.inq-select__list .inq-check:has(input:checked) { background: #eaded0; color: #9a5922; }

/* Card rows on a numbered line: every card comes to rest exactly on the previous one (one pile), nothing leaves to the left.
   .is-pinned: the script moves the cards with the page scroll. .is-stack: the row is scrolled sideways by hand. */
.steps.is-pinned .steps__track { will-change: auto; }
.steps.is-pinned .step { will-change: transform; }
.steps.is-stack .steps__viewport { scroll-snap-type: none; }
.steps.is-stack .step { position: sticky; left: var(--stack-pad, 0px); scroll-snap-align: none; }
/* The same row with a role label in place of the icon (case study: Website design and UX/UI) */
.steps--roles .steps__head .display { max-width: 8.4em; }
.steps--roles .step__card { min-height: 232px; }
.steps--roles .step__card .pf-role { align-self: flex-start; margin-top: auto; }

/* Case study 05: the four steps one by one, picture and text on alternating sides */
.cs-zig.cs-zig--wide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px 0; width: auto; max-width: 1252px; margin: var(--cs-gap) auto 0; }
.cs-zig--wide figure { display: block; }
.cs-zig--wide img { display: block; width: 100%; height: auto; aspect-ratio: 730 / 456; object-fit: cover; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); }
.cs-zig--wide figcaption { display: block; margin-top: 20px; }
.cs-zig--wide .cs-journey__n { display: block; font-size: var(--display); line-height: 1.3333; letter-spacing: -0.02em; color: var(--ink); }
.cs-zig--wide .cs-journey__t { display: block; margin-top: 4px; font-size: var(--title); line-height: 1.3333; letter-spacing: -0.028em; color: var(--ink); }
.cs-zig--wide .cs-journey__d { display: block; margin-top: 12px; max-width: 52ch; font-size: 14px; line-height: 21px; color: var(--ink); }
@media (min-width: 900px) {
  .cs-zig.cs-zig--wide { row-gap: clamp(72px, 8.34vw, 120px); margin-top: clamp(80px, 9.3vw, 134px); }
  .cs-zig--wide figure { display: grid; grid-template-columns: minmax(0, 730fr) minmax(0, 418fr); column-gap: clamp(40px, 7.2vw, 104px); align-items: center; }
  .cs-zig--wide .cs-journey__step:nth-child(even) figure { grid-template-columns: minmax(0, 418fr) minmax(0, 730fr); }
  .cs-zig--wide .cs-journey__step:nth-child(even) img { order: 2; }
  .cs-zig--wide figcaption { margin-top: 0; }
  .cs-zig--wide .cs-journey__t { margin-top: 12px; }
}

/* Technology: the chosen system is explained right under the row it was chosen in */
.cs-map .cs-map__panel {
  position: static; display: block; margin: 20px 0 0; padding: 12px 16px 14px;
  background: #dedcd9; border: 0; box-shadow: inset 3px 0 0 var(--brown);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.cs-map .cs-map__name { font-size: 18px; line-height: 27px; letter-spacing: -0.015em; font-weight: 400; color: var(--ink); }
.cs-map__band { margin-left: 4px; font-size: 14px; letter-spacing: 0; color: var(--muted); }
.cs-map .cs-map__desc { margin-top: 2px; font-size: 14px; line-height: 21px; color: var(--ink); }
.cs-map .cs-map__where { margin-top: 10px; font-size: 14px; line-height: 21px; color: var(--muted); }
.cs-map .cs-map__label { display: inline; letter-spacing: 0; text-transform: none; }
.cs-map .cs-map__in { color: var(--muted); }
.cs-map .cs-map__in span { display: inline; margin-right: 0; white-space: nowrap; }
.cs-map .cs-map__in span:not(:last-child)::after { content: " •"; }

/* What I help with: the button is held level with ERP / WMS Integration and let go level with Operations & Warehouse.
   The script measures the two rows (--svc-h, --svc-mb); the fixed numbers are the Figma values, used until it has run. */
.split__cta { flex: none; }
@media (min-width: 900px) {
  .split__aside--spread {
    top: min(calc(var(--header-h) + 32px), calc(100vh - 32px - var(--svc-h, 648px)));
    height: var(--svc-h, 648px); margin-bottom: var(--svc-mb, 68px);
  }
}
@media (max-width: 899px) {
  /* One column: the button sits under the list. From ERP / WMS on it is held at the bottom of the window,
     on a strip in the colour of the section, and comes to rest under Operations & Warehouse. */
  .split__aside--spread { display: contents; }
  .split__aside--spread .split__stick { order: 1; margin-bottom: 32px; }
  .services .rows { order: 2; }
  .split__cta {
    order: 3; position: relative; z-index: 5;
    margin: 0 calc(-1 * var(--gutter)); padding: 16px var(--gutter) 0;
    background: var(--surface-2);
  }
  .services.is-dock .split__cta { position: sticky; bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); margin-bottom: -12px; animation: dock-in .28s ease both; }
  .services.is-dock .split__cta::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; background: linear-gradient(to top, var(--surface-2), transparent); pointer-events: none; }
  .services.is-rest .split__cta { animation: none; }
  .services.is-rest .split__cta::before { content: none; }
}
@keyframes dock-in { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .services.is-dock .split__cta { animation: none; } }

/* Homepage, the photograph of the "impact" section: three figures on glass cards; the woman stands in front of the second one */
.gstat {
  position: absolute; z-index: 1; width: clamp(156px, 29.5%, 190px); padding: 12px;
  border-radius: 6px; background: rgba(66, 58, 52, .64);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--lime);
}
.gstat .icon { display: block; width: 16px; height: 16px; stroke-width: 1.25; color: var(--lime); }
.gstat__label { margin-top: 10px; font-size: 14px; line-height: 19px; color: rgba(245, 255, 185, .84); text-wrap: balance; }
.gstat__num { margin-top: 8px; font-size: 24px; line-height: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--lime); }
.gstat__note { margin-top: 12px; padding: 8px; border-radius: 4px; background: rgba(24, 20, 16, .56); font-size: 12px; line-height: 15px; color: rgba(245, 255, 185, .6); }
.gstat--1 { left: 12.8%; top: 8.75%; }
.gstat--2 { right: 6.4%; top: 24.3%; }   /* Figma: 29.6 %. 40 px higher, so the woman does not cover the small print */
.gstat--3 { left: 5.9%; bottom: 4.5%; z-index: 3; }
.growth__media > .growth__front { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; background: none; pointer-events: none; }
@media (max-width: 899px) {
  .growth__media > .growth__front { display: none; }   /* one column: the photograph is cropped differently, the cards stay in front */
}
@media (max-width: 599px) {
  .gstat { width: 156px; padding: 10px; }
  .gstat__label { margin-top: 8px; font-size: 13px; line-height: 17px; }
  .gstat__num { margin-top: 6px; font-size: 22px; line-height: 28px; }
  .gstat__note { margin-top: 10px; padding: 7px; font-size: 11px; line-height: 14px; }
  .gstat--1 { left: 12px; top: 12px; }
  .gstat--2 { right: 12px; top: 30%; }
  .gstat--3 { left: 12px; bottom: 12px; }
}
#ux-proc-title, #ux-steps-title { text-wrap: wrap; }

/* ---------- v21: movement ---------- */
/* Parallax. A photograph moves a little slower than the page while its frame passes through the window; small things
   lying on a photograph move a little faster. The script sets --plx (pixels) and the class plx-on on <html>;
   without the script, and with reduced motion, nothing moves. */
.cs-phero__art { position: relative; overflow: hidden; }
.plx-on .cs-phero__art::before {
  content: ""; position: absolute; left: 0; right: 0; top: -7%; bottom: -7%;
  background: inherit; transform: translate3d(0, var(--plx, 0px), 0); will-change: transform;
}
.plx-frame { display: block; overflow: hidden; }
.plx-on .plx-frame > img { transform: translate3d(0, var(--plx, 0px), 0) scale(1.14); will-change: transform; }
.plx-on [data-plx-float] { transform: translate3d(0, var(--plx, 0px), 0); will-change: transform; }

/* Things that used to appear at once now come in */
@keyframes soft-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.inq-step:not([hidden]) { animation: soft-in .32s ease both; }
.inq-result:not([hidden]) { animation: soft-in .32s ease both; }
.inq-select[open] .inq-select__list { animation: drop-in .16s ease both; }
.mobile-menu:not([hidden]) { animation: drop-in .2s ease both; }
.cs-map__panel.is-in { animation: fade-in .3s ease both; }
.inq-error:not([hidden]) { animation: fade-in .2s ease both; }
.step__tick { transition: background-color .3s ease, color .3s ease; }
.cs-stop { transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.cs-track { transition: opacity .3s ease; }
/* Questions: the answer opens and closes instead of jumping (the script animates the height) */
.faq__item.is-moving { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .inq-step:not([hidden]), .inq-result:not([hidden]), .inq-select[open] .inq-select__list, .mobile-menu:not([hidden]), .cs-map__panel.is-in, .inq-error:not([hidden]) { animation: none; }
}

/* ---------- v24: smooth scrolling of the page (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }                     /* the library moves the page itself */
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }


/* ---------- Accessibility fixes (audit of 2 Dec 2026) ---------- */
/* 1.4.10 Reflow: nothing may overflow at 320 px */
@media (max-width: 359px) {
  .header-actions { gap: 8px; }
  .logo { font-size: 19px; }
  .menu-toggle { padding: 5px 8px; gap: 6px; }
  .lang-switch { gap: 2px; }
  .work-cards > li, .work-card, .work-card__body { min-width: 0; max-width: 100%; }
  .work-card .pill { white-space: normal; text-align: left; }
  .work-card .pill span { white-space: normal; }
  .work-card .facts { flex-wrap: wrap; }
  .work-card .nowrap { white-space: normal; }
}
/* 1.4.3 Contrast */
.inq-select__val.is-empty { color: #6b6b6b; }
.cs-map__band { color: #575757; }
.pcard__sub { color: rgba(245,255,185,.82); }
.plist { color: rgba(245,255,185,.8); }
.pcard__head, .glass__head { color: rgba(245,255,185,.86); }
.process__caption span:last-child { color: rgba(245,255,185,.88); }
.glass__list .desc { color: rgba(245,255,185,.84); }
.gstat__note { color: rgba(245, 255, 185, .86); }
/* Smallest text 12 px */
.gstat__note { font-size: 12px; line-height: 15px; }
/* 2.5.8 Target size */
.sp-scope__ref { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 28px; min-height: 24px; }
/* Cropped card covers keep the laptop screen (and its header) in view */
.work-card__media img { object-position: 50% 27%; }
/* Card facts: a label stays on one line */
.facts dt { white-space: nowrap; }
.work-card .facts div { padding-left: 9px; padding-right: 9px; }
/* Store screenshots fill their frame, all four at one size */
.sp-frame { aspect-ratio: auto; }
.sp-frame__page { height: auto; aspect-ratio: 840 / 986; }
/* Contribution chip: technical set-up in the systems (no business decision) */
.pf-role[data-role="setup"] { background: transparent; border-color: var(--ink); color: var(--ink); }
.pf-role[data-role="setup"]::before { content: "Set-up"; }
html[data-lang="cs"] .pf-role[data-role="setup"]::before { content: "Nastavení"; }
/* Contribution chip: supported through project work */
.pf-role[data-role="support"] { background: transparent; border-color: var(--muted); color: var(--muted); }
.pf-role[data-role="support"]::before { content: "Support"; }
html[data-lang="cs"] .pf-role[data-role="support"]::before { content: "Podpora"; }
/* Forced colours (Windows high contrast): native controls keep their checked state */
@media (forced-colors: active) {
  .inq-option input, .inq-check input { appearance: auto; -webkit-appearance: auto; background: none; }
}


/* 08 Dermalogica CZ e-shop · 09 Warehouse and dispatch
   Figma frames "Case studies - Dermalogica CZ e‑shop" (484:91) and "Case studies - Warehouse and dispatch" (490:2623).
   The two pages share one layout (cs-project--v2). It builds on the project pages above (hero, key cards, cover,
   stages grid, related services, pager) and adds only what those do not have. Sizes are the Figma ones at 1440 px. */
.cs-project--v2 {
  --cs-gap: clamp(48px, 6.1vw, 88px);     /* from a chapter's heading to its panel or grid (Figma: 88) */
  --v2-panel: rgba(0, 0, 0, .05);         /* chart panels and table cells (Figma: black at 5 %) */
  --v2-track: rgba(0, 0, 0, .1);          /* bar tracks (Figma: black at 10 %) */
}
.cs-project--v2 .cs-chapter { margin-top: clamp(64px, 7.78vw, 112px); }            /* chapters 112 apart */
.cs-project--v2 .cs-phero + .cs-chapter { margin-top: clamp(56px, 5vw, 72px); }    /* hero to the first chapter: 72 */
.cs-project--v2 .cs-foot { margin-top: clamp(48px, 4.45vw, 64px); }
.cs-project--v2 .cs-phero__note { margin-top: 12px; }

/* Credit of a photograph used as a cover: on the picture, above the layer that moves with the scroll */
.cs-phero__credit { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 3px 8px; background: rgba(15, 15, 16, .72); font-size: 12px; line-height: 18px; color: #fff; }

/* Chapter heads: heading left and text right (default), or the text under the heading (--stack) */
.cs-project--v2 .cs-chapter__head { align-items: start; }
.cs-project--v2 .cs-chapter__head--stack { row-gap: 16px; }
.wh-prose p + p { margin-top: 1.5em; }
.wh-close { margin-top: 8px; color: var(--muted); }

/* Numbered steps: the stages grid of the growth page, with a title and one sentence under each number */
.cs-project--v2 .cs-phase .title, .cs-project--v2 .cs-phase .title + p { margin-top: 16px; }
.cs-project--v2 .cs-phase .title { text-wrap: balance; }

/* Heading and text left, numbered cards right (what I proposed and led, my part) */
.wh-split { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
.wh-split__head .cs-chapter__lede { margin-top: 16px; max-width: 600px; }
.wh-share { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.wh-share > li { padding: 12px; border: 1px solid var(--line); }
.wh-share__n { font-size: 14px; line-height: 21px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wh-share .title, .wh-share .title + p { margin-top: 8px; }

/* 09 Warehouse capacity: two years, the same team */
.wh-cap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: var(--cs-gap); padding: 32px 24px; background: var(--v2-panel); }
.wh-cap__year { font-size: var(--title); line-height: 1.3333; letter-spacing: -0.028em; color: var(--ink); }
.wh-cap__bar { margin-top: 24px; padding: 8px; background: var(--v2-track); }
.wh-cap__fill { display: block; height: 16px; background: var(--brown); }
.wh-cap__fill--now { background: var(--accent); }
.wh-cap__val { margin-top: 24px; font-size: 14px; line-height: 19px; color: var(--brown); }
.wh-cap__team { display: flex; gap: 16px; margin-top: 24px; }
.wh-cap__team i { width: 13.5px; height: 13.5px; background: #000; }
.wh-cap__teamlabel { margin-top: 8px; font-size: 14px; line-height: 21px; color: var(--muted); }

/* 09 Before and today: a table, the "today" column tinted with the accent */
.wh-compare { width: calc(100% + 8px); margin: 28px -4px -4px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; font-size: 14px; line-height: 21px; }
.wh-compare th, .wh-compare td { padding: 12px; text-align: left; vertical-align: top; }
.wh-compare th { background-color: rgba(0, 0, 0, .2); font-size: 16px; font-weight: 500; letter-spacing: -0.028em; color: var(--ink); }
.wh-compare td { background-color: var(--v2-panel); font-weight: 400; }
.wh-compare th:last-child, .wh-compare td:last-child { background-image: linear-gradient(rgba(164, 85, 11, .05), rgba(164, 85, 11, .05)); }

/* 08 E-shop results: change against the year before, with the zero line and the target */
.dl-chart { margin-top: var(--cs-gap); padding: 32px 24px; background: var(--v2-panel); }
.dl-chart__cap { color: var(--muted); font-size: 14px; line-height: 21px; }
.dl-chart__title { font: inherit; color: inherit; }
.dl-chart__plot {
  --lab: 144px; --val: 84px; --gap: 32px;
  --track: calc(100% - var(--lab) - var(--val) - 2 * var(--gap));
  position: relative; display: grid; row-gap: 16px; margin-top: 40px;
}
.dl-chart__row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) var(--val); column-gap: var(--gap); align-items: center; }
.dl-chart__label { font-size: 14px; line-height: 19px; color: var(--brown); }
.dl-chart__track { position: relative; height: 32px; background: var(--v2-track); }
.dl-chart__bar { position: absolute; top: 8px; height: 16px; background: var(--brown); }
.dl-chart__bar--accent { background: var(--accent); }
/* justify-self: a value wider than its column (Czech "+15,1 %") grows to the left, so the right edges stay in line */
.dl-chart__val { justify-self: end; font-size: var(--title); line-height: 1.3333; letter-spacing: -0.028em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.dl-chart__plot::before, .dl-chart__plot::after { content: ""; position: absolute; top: -18px; bottom: -19px; left: calc(var(--lab) + var(--gap) + var(--track) * var(--zero)); width: 1px; background: var(--brown); pointer-events: none; }
.dl-chart__plot::after { top: -36px; bottom: -20px; left: calc(var(--lab) + var(--gap) + var(--track) * var(--target)); background: repeating-linear-gradient(to bottom, var(--brown) 0 4px, transparent 4px 8px); }
.dl-chart__tlabel { position: absolute; bottom: calc(100% + 15px); right: calc(100% - var(--lab) - var(--gap) - var(--track) * var(--target) + 7px); font-size: 14px; line-height: 21px; white-space: nowrap; color: var(--ink); }
.dl-chart .wh-close { margin-top: 40px; color: inherit; }
.sp-swap__tabs:has(> button:nth-child(9)) button { flex: 1 1 auto; padding-inline: 6px; }

@media (min-width: 600px) {
  .wh-cap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .wh-share { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .cs-project--v2 .cs-chapter__head { grid-template-columns: minmax(0, 932fr) minmax(0, 412fr); }
  .cs-project--v2 .cs-chapter__head--stack { grid-template-columns: minmax(0, 1fr); }
  .cs-project--v2 .cs-chapter__head .display, .cs-project--v2 .cs-phero__body > .display { max-width: none; }   /* the line break is set in the copy */
  .cs-project--v2 .display .keep { display: block; }     /* headings in two lines, as in Figma */
  .cs-project--v2 .cs-chapter__head > .cs-chapter__lede { padding-top: 0; }
  .cs-project--v2 .cs-chapter__head--stack > .cs-chapter__lede, .wh-close { max-width: 412px; }
  /* 08: the browser sets this type a few pixels wider than Figma does; 418 px gives the two intro texts the line breaks of the Figma frame */
  #work-dermalogica .cs-chapter__head--stack > .cs-chapter__lede { max-width: 418px; }
  .wh-split { grid-template-columns: minmax(0, 731.75fr) minmax(0, 540.25fr); column-gap: clamp(48px, 7.2vw, 104px); align-items: start; }
  .wh-split__head .cs-chapter__lede { margin-top: 32px; max-width: 417px; }
}
@media (min-width: 1200px) {
  .cs-project--v2 .cs-phases { column-gap: 6.88%; row-gap: 74px; }   /* Figma: four columns of 273 px in 1376 px */
}
@media (max-width: 599px) {
  .wh-cap, .dl-chart { padding: 24px 16px; }
  /* chart: label and figure above their bar; the lines are drawn on each bar */
  .dl-chart__plot { --lab: 0px; --val: 0px; --gap: 0px; row-gap: 14px; margin-top: 24px; }
  .dl-chart__row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; }
  .dl-chart__track { grid-column: 1 / -1; grid-row: 2; }
  .dl-chart__val { font-size: 16px; line-height: 24px; }
  .dl-chart__plot::before, .dl-chart__plot::after { content: none; }
  .dl-chart__track::before, .dl-chart__track::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: calc(100% * var(--zero)); width: 1px; background: var(--brown); }
  .dl-chart__track::after { left: calc(100% * var(--target)); background: repeating-linear-gradient(to bottom, var(--brown) 0 4px, transparent 4px 8px); }
  .dl-chart__tlabel { position: static; text-align: right; font-size: 12px; line-height: 18px; white-space: normal; }
  .dl-chart .wh-close { margin-top: 24px; }
}

:root { --img-hero-1: url("/images/v42/97885cf3ea.webp"); --img-hero-2: url("/images/v42/4fb3eb7304.webp"); --img-hero-3: url("/images/v42/afa7740a63.webp"); --img-hero-4: url("/images/v42/599dc7274c.webp"); --img-hero-5: url("/images/v42/8753baac49.webp"); --img-hero-6: url("/images/v42/7ff250364e.webp"); --img-hero-7: url("/images/v42/76e149ddc7.webp"); }
:root { --img-hero-8: url("/images/v42/1c9cf93dc7.webp"); --img-hero-9: url("/images/v42/38a3525c78.webp"); }
:root { --img-sp-cover: url("/images/v42/50db4e2c30.webp"); }
:root { --img-case: url("/images/v42/7cc9988ec3.webp"); --img-avatar: url("/images/v42/b0938f06dc.webp"); --img-hover: url("/images/v42/c1ecbe2a75.webp"); }