/* Case page blocks — 1600 px content inside a 1930 px desktop frame.
   Every size is expressed in --u (1/1930 of the section width), so a block
   renders identically on the site, in the editor canvas and in thumbnails. */

.cb-page {
  --cb-ink: #111111;
  --cb-accent: #FF9271;
  --cb-slot: #F3F3F3;
  --cb-pill: #F9F8F6;
  --cb-line: #DFDCD6;
  background: #ffffff;
  color: var(--cb-ink);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.cb-page *,
.cb-page *::before,
.cb-page *::after {
  box-sizing: border-box;
}

.cb-sec {
  position: relative;
  container-type: inline-size;
  background: #ffffff;
}

.cb-in {
  --u: calc(100cqw / 1930);
  position: relative;
}

.cb-page h1,
.cb-page h2,
.cb-page h3,
.cb-page p {
  margin: 0;
}

.cb-multiline {
  white-space: pre-line;
}

/* Shield blocks from page-level element styles (site h1 width, list dashes). */
.cb-page h1 {
  max-width: none;
}

.cb-page li {
  overflow-wrap: normal;
}

.cb-page li::before {
  content: none;
}

/* Title — "Naming" 155:3405 */
.cb-title .cb-in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(30 * var(--u));
  padding: 0 calc(165 * var(--u)) calc(100 * var(--u));
}

.cb-back {
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--u));
  margin-block: calc(15 * var(--u));
  padding: calc(15 * var(--u)) calc(20 * var(--u));
  background: var(--cb-pill);
  border-radius: 999px;
  color: var(--cb-ink);
  font-size: calc(13 * var(--u));
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.cb-back svg {
  width: calc(9 * var(--u));
  height: calc(8 * var(--u));
  flex: none;
}

.cb-heading-1 {
  font-size: calc(132 * var(--u));
  font-weight: 700;
  line-height: calc(108.24 * var(--u));
  letter-spacing: calc(-2 * var(--u));
}

.cb-heading-1 > span {
  display: block;
}

.cb-heading-1 .cb-gradient {
  width: max-content;
  max-width: 100%;
  color: transparent;
  background: linear-gradient(137deg, #D0ACC8 1%, #D0ACC8 18%, #FF916C 32%, #FFD1B9 52%, #FFD1B9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  /* Line height is tighter than the font, so extend the painted box to keep descenders (y, g, p). */
  padding-bottom: 0.3em;
  margin-bottom: -0.3em;
}

.cb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(10 * var(--u));
  margin: 0;
  padding: calc(15 * var(--u)) 0;
  list-style: none;
}

.cb-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: calc(10 * var(--u)) calc(16 * var(--u));
  background: var(--cb-pill);
  border-radius: 50px;
  color: var(--cb-ink);
  font-size: calc(13 * var(--u));
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.cb-tag.is-dark {
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
}

/* Overview — "The Challenge" 27:2569 and text — "Final" 27:2163 */
.cb-overview .cb-in {
  padding: calc(100 * var(--u)) calc(165 * var(--u));
}

.cb-text .cb-in {
  padding: calc(188 * var(--u)) calc(165 * var(--u));
}

.cb-two {
  display: flex;
  align-items: flex-start;
  gap: calc(56 * var(--u));
}

.cb-kicker {
  flex: none;
  width: calc(182 * var(--u));
  padding-top: calc(10 * var(--u));
  color: var(--cb-accent);
  font-size: calc(13 * var(--u));
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.cb-facts {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: calc(56 * var(--u));
  min-width: 0;
  font-size: calc(71 * var(--u));
  font-weight: 800;
  line-height: calc(76 * var(--u));
}

.cb-facts .is-accent {
  color: var(--cb-accent);
}

.cb-services { color: var(--cb-services-color, #111111); }

.cb-statement {
  flex: 1 0 0;
  min-width: 0;
  font-size: calc(34 * var(--u));
  font-weight: 700;
  line-height: calc(36 * var(--u));
}

.cb-text .cb-in > .cb-statement {
  width: calc(842 * var(--u));
  max-width: 100%;
}

.cb-text[data-align="center"] .cb-in > .cb-statement { margin-inline: auto; }
.cb-text[data-align="right"] .cb-in > .cb-statement { margin-left: auto; }

/* Media grids — "Images + text" / "Image + text" */
.cb-grid .cb-in {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--u));
  padding: calc(55 * var(--u)) calc(165 * var(--u));
}

/* Hero image is edge-to-edge at the top of its frame. Other grid templates keep the Figma inset. */
.cb-grid[data-preset="hero"] .cb-in {
  padding-top: 0;
}

.cb-grid + .cb-grid .cb-in,
.cb-grid + .ed-gap + .cb-grid .cb-in {
  padding-top: calc(110 * var(--u));
}

.cb-row {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: calc(10 * var(--u));
  height: calc(var(--h) * var(--u));
}

/* Uploaded media keeps its fixed 1600px source width and natural height instead of being cropped into a preset row. */
.cb-row.is-fluid {
  height: auto;
}

.cb-row.is-fluid > .cb-media {
  height: auto;
  aspect-ratio: auto;
}

.cb-row.is-fluid > .cb-media > img,
.cb-row.is-fluid > .cb-media > video,
.cb-row.is-fluid > .cb-media > object {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.cb-row > * {
  min-width: 0;
}

.cb-media,
.cb-card {
  position: relative;
  overflow: hidden;
  background: var(--cb-slot);
  border-radius: calc(26 * var(--u));
}

.cb-media.is-loading {
  background: #fff !important;
}

.cb-media.is-loading > :is(img, video, object) {
  opacity: 0;
}

.cb-media.is-loading::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #111;
  animation: cb-media-pulse 1.1s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cb-media-pulse {
  50% { transform: scale(.55); opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  .cb-media.is-loading::after { animation: none; }
}


.cb-media > img,
.cb-media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Exported videos contain dark pixels just outside their baked-in rounded corners. */
.cb-media > video {
  transform: scale(1.02);
}

.cb-grid[data-preset="hero"] .cb-media[data-cell="as2b7me8"] {
  padding: 2%;
  background-color: #F3F3F3;
}

.cb-grid[data-preset="hero"] .cb-media[data-cell="as2b7me8"] > video {
  transform: none;
  object-fit: contain;
}

/* Image + text uses the same two equal columns as two images, so every slot in a block is one size.
   Text keeps its Figma width and sits on the outer edge of its column. */
.cb-row.is-split {
  align-items: center;
}

.cb-row.is-split:not(.is-fluid) > .cb-media {
  width: 100%;
  height: 100%;
}

.cb-row.is-fluid.is-split > .cb-media {
  width: 100%;
  height: 100%;
}

/* The two-column Figma slots are 795 × 840 in the 1930 px frame. */
.cb-row:not(.is-single) {
  height: calc(var(--h) * var(--u));
}

.cb-row:not(.is-single) > :is(.cb-media, .cb-card) {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.cb-row:not(.is-single) > .cb-media > :is(img, video, object) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cb-row.is-split > .cb-media + .cb-copy {
  justify-self: end;
  margin-left: 0;
  margin-right: calc(100 * var(--u));
}

.cb-copy {
  display: flex;
  width: calc(530 * var(--u));
  height: calc(260 * var(--u));
  flex-direction: column;
  justify-content: center;
  gap: calc(26 * var(--u));
}

.cb-page .cb-copy-label {
  font-size: calc(16 * var(--u));
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: calc(4 * var(--u));
}
.cb-copy-label:empty { display: none; }
.cb-page.is-edit .cb-copy-label:empty { display: block; }

.cb-copy.has-icon-slot { position: relative; height: auto; min-height: calc(260 * var(--u)); }
.cb-copy .cb-copy-icon {
  position: relative;
  top: auto;
  left: auto;
  flex: none;
  margin-bottom: max(12px, calc(12 * var(--u)));
  width: calc(70 * var(--u));
  height: calc(70 * var(--u));
  border-radius: calc(18 * var(--u));
}

.cb-row.is-split > .cb-copy:first-child {
  justify-self: start;
  margin-left: calc(100 * var(--u));
}

.cb-h {
  font-size: calc(34 * var(--u));
  font-weight: 700;
  line-height: calc(36 * var(--u));
}

.cb-body {
  font-size: calc(18 * var(--u));
  font-weight: 550;
  line-height: calc(23.13 * var(--u));
}

@media (min-width: 821px) {
  .cb-sec:not([data-preset^="app-"]) .cb-kicker {
    font-size: calc(16 * var(--u));
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .cb-text:not([data-preset^="app-"]) .cb-kicker { color: #EE7B5A; }

  .cb-sec:not([data-preset^="app-"]) .cb-facts {
    font-size: calc(80 * var(--u));
    font-weight: 700;
    line-height: calc(84 * var(--u));
    letter-spacing: 0;
  }

  .cb-text:not([data-preset^="app-"]) .cb-statement {
    font-size: calc(40 * var(--u));
    font-weight: 700;
    line-height: calc(42 * var(--u));
    letter-spacing: 0;
    color: #0D0D0D;
  }

  .cb-text:not([data-preset^="app-"]) .cb-two > .cb-statement {
    flex: 0 0 calc(1362 * var(--u));
    width: calc(1362 * var(--u));
  }

  .cb-text:not([data-preset^="app-"]) .cb-in > .cb-statement {
    width: calc(1289 * var(--u));
  }

  .cb-grid:not([data-preset^="app-"]) .cb-row.is-split > .cb-copy {
    max-width: calc(530 * var(--u));
    gap: calc(22 * var(--u));
  }

  .cb-page .cb-grid:not([data-preset^="app-"]) .cb-copy-label { margin-bottom: calc(8 * var(--u)); }

  .cb-grid:not([data-preset^="app-"]) .cb-row.is-split > .cb-copy:has(.cb-copy-icon:not(.is-empty)) {
    width: calc(595 * var(--u));
    max-width: calc(595 * var(--u));
  }

  .cb-grid:not([data-preset^="app-"]) .cb-h {
    font-size: calc(40 * var(--u));
    font-weight: 700;
    line-height: calc(42 * var(--u));
    letter-spacing: 0;
    color: #0D0D0D;
  }

  .cb-grid:not([data-preset^="app-"]) .cb-body {
    font-size: calc(24 * var(--u));
    font-weight: 500;
    line-height: calc(33.6 * var(--u));
    letter-spacing: 0;
    color: #6B6B6B;
  }

  .cb-grid:not([data-preset^="app-"]) .cb-card :is(.cb-h, .cb-body) {
    max-width: calc(595 * var(--u));
  }
}

.cb-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(16 * var(--u));
  padding: calc(60 * var(--u));
}

.cb-icon {
  position: absolute;
  top: calc(60 * var(--u));
  left: calc(60 * var(--u));
  width: calc(100 * var(--u));
  height: calc(100 * var(--u));
  overflow: hidden;
  border-radius: calc(27 * var(--u));
}

.cb-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-sec[data-align="center"] :is(.cb-copy, .cb-card, .cb-two),
.cb-sec[data-align="center"] .cb-statement { text-align: center; }
.cb-sec[data-align="right"] :is(.cb-copy, .cb-card, .cb-two),
.cb-sec[data-align="right"] .cb-statement { text-align: right; }
.cb-sec[data-align="center"] .cb-icon { left: 50%; transform: translateX(-50%); }
.cb-sec[data-align="right"] .cb-icon { right: calc(60 * var(--u)); left: auto; }

.cb-page:not(.is-edit) [data-key]:empty,
.cb-page:not(.is-edit) .cb-tags:empty {
  display: none;
}

/* Floating project links */
.cb-links {
  position: fixed;
  z-index: 40;
  right: clamp(16px, 2vw, 40px);
  bottom: clamp(16px, 2vw, 40px);
  display: grid;
  gap: 10px;
}

.cb-link {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  color: #111111;
  transition: background 200ms ease, color 200ms ease, opacity 200ms ease;
}

.cb-link:hover {
  background: #111111;
  color: #ffffff;
}

.cb-link svg {
  width: 21px;
  height: 21px;
}

/* Public case-to-case navigation, shown only after the cover. */
.cb-case-side-nav {
  position: fixed;
  z-index: 35;
  inset: 50% 0 auto;
  height: 52px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.cb-case-side-nav.is-visible {
  opacity: 1;
  visibility: visible;
}

.cb-case-side-nav.is-visible.is-scrolling {
  opacity: 0;
  visibility: hidden;
}

.cb-case-side-link {
  position: absolute;
  top: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #dfdcd6;
  border-radius: 26px;
  background: rgba(255, 255, 255, .9);
  color: #111;
  pointer-events: auto;
  text-decoration: none;
}

.cb-case-side-link.is-left { left: clamp(12px, 2vw, 40px); }
.cb-case-side-link.is-right { right: clamp(12px, 2vw, 40px); }
.cb-case-side-link:hover,
.cb-case-bottom-link:hover,
.cb-case-top:hover { background: #111; color: #fff; }

.cb-case-side-link svg,
.cb-case-bottom-link svg,
.cb-case-top svg { width: 20px; height: 20px; flex: none; }

.cb-case-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 48px clamp(16px, 8.55%, 165px) 80px clamp(20px, 2.6vw, 40px);
  font-size: 14px;
  font-weight: 700;
}

.cb-case-bottom-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cb-case-bottom-link,
.cb-case-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #dfdcd6;
  border-radius: 26px;
  background: #fff;
  color: #111;
  font: inherit;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.cb-case-side-link:focus-visible,
.cb-case-bottom-link:focus-visible,
.cb-case-top:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

/* The 1930px frame scales uniformly through --u; compositions do not reflow. */

@media (max-width: 640px) {
  .cb-links { gap: 8px; }
  .cb-link { width: 46px; height: 46px; }
  .cb-case-side-nav { height: 36px; }
  .cb-case-side-link { width: 36px; height: 36px; border-radius: 18px; }
  .cb-case-side-link::before { content: ""; position: absolute; inset: -4px; }
  .cb-case-bottom-nav { align-items: stretch; flex-direction: column; margin: 32px 16px 48px; }
  .cb-case-bottom-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .cb-case-side-nav { transition: none; }
}

.cb-page:not(.is-edit) .cb-icon.is-empty {
  display: none;
}

/* Phones and small tablets: the 1930px frame no longer scales down; blocks stack
   into one column and use the site type tokens (same breakpoint as the main pages).
   The editor canvas and preset thumbnails keep the desktop frame. */
@media (max-width: 820px) {
  .cb-page:not(.is-edit, .picker-thumb > *) .cb-in {
    padding-inline: 3.4vw;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-title .cb-in {
    gap: 18px;
    padding-top: 43px;
    padding-bottom: 48px;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-heading-1 {
    font-size: clamp(58px, 10.2vw, 132px);
    line-height: 0.82;
    letter-spacing: -2px;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) :is(.cb-back, .cb-tag) {
    font-size: var(--fs-s, 13px);
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-back {
    gap: 10px;
    padding: 12px 16px;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-back svg {
    width: 9px;
    height: 8px;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-tags {
    gap: 10px;
    padding: 0;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-tag {
    padding: 10px 16px;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) :is(.cb-overview, .cb-text) .cb-in {
    padding-block: 48px;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-two {
    flex-direction: column;
    gap: 18px;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-kicker {
    width: auto;
    padding-top: 0;
    font-size: var(--fs-s, 13px);
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-facts {
    flex: none;
    gap: 18px;
    width: 100%;
    font-size: var(--fs-lead, 28px);
    line-height: 1.02;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-statement {
    flex: none;
    width: 100%;
    font-size: var(--fs-h3, 22px);
    line-height: 1.06;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-grid .cb-in {
    gap: 24px;
    padding-block: 40px;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) :is(.cb-media, .cb-card) {
    border-radius: 26px;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-grid[data-preset="hero"] .cb-in {
    padding-top: 0;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-row:not(.is-single) {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    height: auto;
  }

  /* Each stacked slot keeps its desktop column proportions (795 wide, --h tall). */
  .cb-page:not(.is-edit, .picker-thumb > *) .cb-row:not(.is-single) > :is(.cb-media, .cb-card) {
    height: auto;
    aspect-ratio: 795 / var(--h);
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-row > .cb-media.is-video {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-row > .cb-media.is-video > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-row > .cb-media.is-wide-video > video {
    object-fit: contain;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-row > .cb-copy {
    justify-self: stretch;
    width: auto;
    height: auto;
    margin: 0;
    padding-block: 18px;
    gap: 18px;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-grid:not([data-preset^="app-"]) .cb-copy-label {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-copy-icon {
    position: relative;
    top: auto;
    left: auto;
    width: 70px;
    height: 70px;
    border-radius: 18px;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-h {
    font-size: var(--fs-h3, 22px);
    line-height: 0.94;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-body {
    font-size: 18px;
    line-height: 1.285;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-card {
    gap: 12px;
    padding: 22px;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-icon {
    top: 22px;
    left: 22px;
    width: calc(22px * 5 / 3);
    height: calc(22px * 5 / 3);
    border-radius: 27%;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-sec[data-align="center"] .cb-icon {
    left: 50%;
  }

  .cb-page:not(.is-edit, .picker-thumb > *) .cb-sec[data-align="right"] .cb-icon {
    right: 22px;
    left: auto;
  }
}

@media (max-width: 560px) {
  .cb-page:not(.is-edit, .picker-thumb > *) .cb-heading-1 {
    /* 12vw keeps long single words such as "Communication" inside a 375px screen. */
    font-size: clamp(36px, 12vw, 58px);
    line-height: 1;
    letter-spacing: 0;
    overflow-wrap: break-word;
  }
}

/* Independent App board, measured from Figma frame 847:1372 (390 px wide). */
.cb-grid[data-preset^="app-"] .cb-in {
  --u: calc(100cqw / 390);
  gap: calc(10 * var(--u));
  padding: calc(16 * var(--u));
}
.cb-grid[data-preset="app-photo-500-phone-text"] .cb-in,
.cb-grid[data-preset="app-photo-500-text"] .cb-in,
.cb-grid[data-preset="app-photo-text-photo-phone"] .cb-in,
.cb-grid[data-preset="app-photo-text"] .cb-in,
.cb-grid[data-preset="app-photo-text-378"] .cb-in { padding-bottom: 0; }
.cb-grid[data-preset="app-text-photo"] .cb-in { padding-top: 0; gap: 0; }
.cb-grid[data-preset^="app-"] .cb-row,
.cb-grid[data-preset^="app-"] .cb-row:not(.is-single),
.cb-grid[data-preset^="app-"] .cb-row.is-fluid {
  height: calc(var(--h) * var(--u));
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-columns: none;
  gap: calc(6 * var(--u));
}
.cb-grid[data-preset^="app-"] .cb-media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: calc(20 * var(--u));
  background: #f1f4ec;
}
.cb-grid[data-preset^="app-"] .cb-media > :is(img, video, object),
.cb-grid[data-preset^="app-"] .cb-row.is-fluid .cb-media > :is(img, video, object) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cb-grid[data-preset="app-site"] .cb-media > :is(img, video, object) { object-fit: contain; }
.cb-grid[data-preset^="app-"] .cb-row > .cb-copy {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: calc(30 * var(--u)) calc(4 * var(--u));
  margin: 0;
  justify-content: flex-start;
  gap: calc(19 * var(--u));
}
.cb-page .cb-grid[data-preset^="app-"] .cb-copy-label {
  font-size: calc(16 * var(--u));
  margin-bottom: calc(11 * var(--u));
}

.cb-grid[data-preset="app-text-photo"] .cb-row > .cb-copy { padding-top: calc(40 * var(--u)); }
.cb-grid[data-preset^="app-"] .cb-copy .cb-h {
  font-size: calc(26 * var(--u));
  line-height: 1;
  font-weight: 700;
}
.cb-grid[data-preset^="app-"] .cb-copy .cb-body {
  font-size: calc(18 * var(--u));
  line-height: calc(23.14 * var(--u));
  font-weight: 550;
}
.cb-grid[data-preset^="app-"] .cb-row:has(> .cb-copy),
.cb-grid[data-preset^="app-"] .cb-row:has(> .cb-copy) > .cb-copy {
  height: auto;
  min-height: calc(var(--h) * var(--u));
}
.cb-grid[data-preset^="app-"] .cb-row.is-carousel,
.cb-grid[data-preset^="app-"] .cb-row.is-phone-strip {
  position: relative;
  grid-auto-columns: calc(203.125 * var(--u));
  gap: calc(30 * var(--u));
  padding: calc(30 * var(--u)) calc(77 * var(--u));
  background: var(--mobile-bg, #f3f3f3);
  border-radius: calc(20 * var(--u));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(77 * var(--u));
  scrollbar-width: none;
}
.cb-grid[data-preset^="app-"] .cb-row.is-carousel::-webkit-scrollbar { display: none; }
.cb-grid[data-preset^="app-carousel-"] .cb-carousel-dots + .cb-row {
  margin-top: calc(20 * var(--u));
}
.cb-grid[data-preset^="app-"] .cb-row:is(.is-carousel, .is-phone-strip) > .cb-media {
  width: calc(203.125 * var(--u));
  height: calc(439.0625 * var(--u));
  border: calc(3.874 * var(--u)) solid #000;
  border-radius: calc(32.284 * var(--u));
  background: #fff;
  scroll-snap-align: start;
}
.cb-carousel-dots { display: flex; justify-content: center; gap: calc(8 * var(--u)); margin-top: calc(10 * var(--u)); }
.cb-carousel-dot { width: calc(8 * var(--u)); height: calc(8 * var(--u)); padding: 0; border: 0; border-radius: 50%; background: #d9d9d9; cursor: pointer; }
.cb-carousel-dot[aria-current="true"] { background: #111; }
.cb-carousel-dot:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.cb-grid[data-preset="app-video-pair"] .cb-row:last-child > .cb-media { width: 100%; }
.cb-grid[data-preset="app-site"] .cb-media { background: var(--mobile-bg, #f3f3f3); }
.cb-grid[data-preset="app-hero"] .cb-media { background: var(--mobile-bg, #f3f3f3); }

@media (min-width: 821px) { .cb-app-board { display: none; } }
@media (max-width: 820px) {
  .cb-page.has-app-board .cb-web-board > .cb-grid,
  .cb-page.has-app-board .cb-web-board > .cb-text { display: none; }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-in { padding: calc(16 * var(--u)); gap: calc(10 * var(--u)); }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row { height: calc(var(--h) * var(--u)); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; gap: calc(6 * var(--u)); }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row > .cb-media { width: 100%; height: 100%; aspect-ratio: auto; border-radius: calc(20 * var(--u)); }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row > .cb-media > :is(img, video, object) { width: 100%; height: 100%; object-fit: cover; }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row:is(.is-carousel, .is-phone-strip) { grid-auto-columns: calc(203.125 * var(--u)); gap: calc(30 * var(--u)); padding: calc(30 * var(--u)) calc(77 * var(--u)); }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row:is(.is-carousel, .is-phone-strip) > .cb-media { width: calc(203.125 * var(--u)); height: calc(439.0625 * var(--u)); border: calc(3.874 * var(--u)) solid #000; border-radius: calc(32.284 * var(--u)); background: #fff; }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset="app-site"] .cb-row > .cb-media > :is(img, video, object) { object-fit: contain; }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row > .cb-copy { min-height: 0; padding: calc(30 * var(--u)) calc(4 * var(--u)); gap: calc(19 * var(--u)); }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset="app-text-photo"] .cb-row > .cb-copy { padding-top: calc(40 * var(--u)); }
  .cb-page.has-app-board .cb-app-board .cb-grid:is([data-preset="app-photo-500-phone-text"], [data-preset="app-photo-500-text"], [data-preset="app-photo-text-photo-phone"], [data-preset="app-photo-text"], [data-preset="app-photo-text-378"]) .cb-in { padding-bottom: 0; }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset="app-text-photo"] .cb-in { padding-top: 0; gap: 0; }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-copy .cb-h { font-size: calc(26 * var(--u)); line-height: 1; }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-copy .cb-body { font-size: calc(18 * var(--u)); line-height: calc(23.14 * var(--u)); }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row:has(> .cb-copy),
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row:has(> .cb-copy) > .cb-copy { height: auto; min-height: calc(var(--h) * var(--u)); }
}

/* Figma 907:24865 mobile block library. */
.cb-overview[data-preset^="app-"] .cb-in,
.cb-text[data-preset^="app-"] .cb-in { --u: calc(100cqw / 390); }
.cb-grid[data-preset^="app-"] .cb-media { background: var(--mobile-bg, #f9f8f6); }
.cb-grid[data-preset^="app-"] .cb-row:is(.is-carousel, .is-phone-strip) { background: var(--mobile-bg, #f9f8f6); }
.cb-grid[data-preset^="app-"] .cb-row:is(.is-carousel, .is-phone-strip) > .cb-media { border-width: calc(4 * var(--u)); border-radius: calc(32 * var(--u)); background: #f3f3f3; }
.cb-grid[data-preset="app-screen-500"] .cb-media { background: var(--mobile-bg, #f9f8f6); }
.cb-grid[data-preset^="app-"] .cb-row.is-logo-text .cb-card {
  width: 100%; height: 100%; border-radius: calc(20 * var(--u)); padding: 0;
  background: var(--mobile-bg, #f9f8f6);
}
.cb-grid[data-preset^="app-"] .cb-row.is-logo-text .cb-icon {
  position: absolute; top: calc(20 * var(--u)); left: calc(20 * var(--u));
  width: calc(70 * var(--u)); height: calc(70 * var(--u)); border-radius: 0;
}
.cb-grid[data-preset^="app-"] .cb-row.is-logo-text .cb-icon img { width: 100%; height: 100%; object-fit: contain; }
.cb-grid[data-preset^="app-"] .cb-row.is-logo-text .cb-h {
  position: absolute; left: calc(20 * var(--u)); top: calc(202 * var(--u));
  width: calc(313 * var(--u)); margin: 0; font-size: calc(26 * var(--u));
  line-height: calc(26 * var(--u)); font-weight: 700;
}
.cb-grid[data-preset^="app-"] .cb-row.is-logo-text .cb-body { display: none; }
.cb-overview[data-preset="app-overview"] .cb-in { padding: calc(50 * var(--u)) calc(20 * var(--u)) calc(60 * var(--u)); }
.cb-overview[data-preset="app-overview"] .cb-two { display: flex; flex-direction: column; gap: calc(18 * var(--u)); }
.cb-overview[data-preset="app-overview"] .cb-kicker { width: auto; padding: 0; font-size: calc(13 * var(--u)); line-height: 1; }
.cb-overview[data-preset="app-overview"] .cb-facts { gap: calc(18 * var(--u)); font-size: calc(28 * var(--u)); line-height: calc(29 * var(--u)); }
.cb-text[data-preset^="app-"] .cb-in { padding: calc(50 * var(--u)) calc(20 * var(--u)); }
.cb-text[data-preset^="app-"] .cb-two { display: flex; flex-direction: column; gap: calc(18 * var(--u)); }
.cb-text[data-preset^="app-"].has-section-icon .cb-in { display: flex; flex-direction: column; gap: calc(18 * var(--u)); }
.cb-text[data-preset^="app-"] .cb-section-icon {
  width: calc(40 * var(--u)); height: calc(40 * var(--u)); flex: none;
  overflow: hidden; border-radius: calc(10 * var(--u));
}
.cb-text[data-preset^="app-"] .cb-section-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cb-grid[data-preset^="app-"] .cb-copy .cb-copy-icon {
  position: relative; top: auto; left: auto; width: calc(40 * var(--u));
  height: calc(40 * var(--u)); flex: none; border-radius: calc(10 * var(--u));
}
.cb-grid[data-preset^="app-"] .cb-copy .cb-copy-icon.is-empty { display: none; }
.cb-grid[data-preset^="app-"] .cb-row.has-copy-icon { height: auto; min-height: calc(var(--h) * var(--u)); }
.cb-grid[data-preset^="app-"] .cb-row.has-copy-icon > .cb-copy { height: auto; }
.cb-text[data-preset^="app-"] .cb-kicker { width: auto; padding: 0; font-size: calc(13 * var(--u)); }
.cb-text[data-preset^="app-"] .cb-statement, .cb-text[data-preset^="app-"] .cb-in > .cb-statement {
  width: 100%; margin: 0; font-size: calc(26 * var(--u)); line-height: calc(26 * var(--u)); font-weight: 700;
}
.cb-text[data-preset="app-statement"] .cb-statement { text-align: center; }
@media (max-width: 820px) {
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row.has-copy-icon { height: auto; min-height: calc(var(--h) * var(--u)); }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row.has-copy-icon > .cb-copy { height: auto; }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row:is(.is-carousel, .is-phone-strip) > .cb-media {
    border: calc(4 * var(--u)) solid #000;
    border-radius: calc(32 * var(--u));
  }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row.is-logo-text .cb-card { padding: 0; border-radius: calc(20 * var(--u)); }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row.is-logo-text .cb-icon {
    top: calc(20 * var(--u)); left: calc(20 * var(--u)); width: calc(70 * var(--u)); height: calc(70 * var(--u)); border-radius: 0;
  }
  .cb-page.has-app-board .cb-app-board .cb-grid[data-preset^="app-"] .cb-row.is-logo-text .cb-h { font-size: calc(26 * var(--u)); line-height: calc(26 * var(--u)); }
  .cb-page.has-app-board .cb-app-board .cb-overview[data-preset="app-overview"] .cb-in { padding: calc(50 * var(--u)) calc(20 * var(--u)) calc(60 * var(--u)); }
  .cb-page.has-app-board .cb-app-board .cb-overview[data-preset="app-overview"] .cb-facts { font-size: calc(28 * var(--u)); line-height: calc(29 * var(--u)); }
  .cb-page.has-app-board .cb-app-board .cb-text[data-preset^="app-"] .cb-in { padding: calc(50 * var(--u)) calc(20 * var(--u)); }
  .cb-page.has-app-board .cb-app-board .cb-text[data-preset^="app-"] .cb-statement { font-size: calc(26 * var(--u)); line-height: calc(26 * var(--u)); }
}

/* Text block — optional description under the statement (Figma: 24 Medium, 140%, 28 gap) */
.cb-stack {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: calc(28 * var(--u));
  min-width: 0;
}

.cb-stack > .cb-statement { width: 100%; }

.cb-sub {
  font-size: calc(24 * var(--u));
  font-weight: 500;
  line-height: 1.4;
  color: #6B6B6B;
}

.cb-text[data-preset^="app-"] .cb-sub { font-size: calc(18 * var(--u)); }

@media (min-width: 821px) {
  .cb-text:not([data-preset^="app-"]) .cb-two > .cb-stack {
    flex: 0 0 calc(1362 * var(--u));
    width: calc(1362 * var(--u));
  }

  .cb-text:not([data-preset^="app-"]) .cb-stack > .cb-statement { width: 100%; }
  .cb-text:not([data-preset^="app-"]) .cb-in > .cb-stack { width: calc(1289 * var(--u)); }
}

@media (max-width: 820px) {
  .cb-page:not(.is-edit, .picker-thumb > *) .cb-stack { flex: none; width: 100%; gap: 14px; }
  .cb-page:not(.is-edit, .picker-thumb > *) .cb-sub { font-size: 18px; line-height: 1.4; }
}

/* Clickable prototype over a media cell */
.cb-media.is-prototype { overflow: visible; }

.cb-media.is-prototype > img { border-radius: inherit; }

.cb-proto-stage {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border-radius: 0 0 calc(18 * var(--u)) calc(18 * var(--u));
  background: #0A0A0A;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cb-media.is-live .cb-proto-stage {
  opacity: 1;
  pointer-events: auto;
}

.cb-proto-frame {
  display: block;
  border: 0;
  transform-origin: 0 0;
  background: #0A0A0A;
}

.cb-proto-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
}

.cb-proto-cta {
  padding: 14px 24px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0D0D0D;
  font: 600 16px/1.2 Inter, "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: opacity 0.2s ease;
}

/* The label is always on the screen and steps aside while the pointer is over it. */
@media (hover: hover) {
  .cb-proto-start:hover .cb-proto-cta { opacity: 0; }
}

.cb-media.is-live .cb-proto-start { display: none; }

/* Editing keeps the plain image so the slot stays replaceable. */
.cb-page.is-edit .cb-media.is-prototype :is(.cb-proto-stage, .cb-proto-start) { display: none; }

@media (max-width: 820px) {
  .cb-media.is-prototype :is(.cb-proto-stage, .cb-proto-ring) { display: none; }
  .cb-media.is-prototype .cb-proto-start { display: flex; }
  .cb-page.is-edit .cb-media.is-prototype .cb-proto-start { display: none; }
}

/* The phone outline (cell.prototypeRing) sits over the poster's painted bezel, under the "Click to try it" label. */
.cb-proto-ring { position: absolute; z-index: 2; pointer-events: none; }
/* Under a ring the screen is see-through while the prototype starts, so the poster's screen stays until the app is ready. */
.cb-proto-stage.has-ring, .cb-proto-stage.has-ring > .cb-proto-frame { background: transparent; }
.cb-page.is-edit .cb-proto-ring { display: none; }

/* A prototype that fills the whole slot keeps the slot's rounded corners. */
.cb-proto-stage[style*="left: 0%; top: 0%; width: 100%; height: 100%"] { border-radius: inherit; }

.cb-proto-full {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0A0A0A;
  display: flex;
  flex-direction: column;
}

.cb-proto-full-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.cb-proto-full-stage {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.cb-proto-full-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0A0A0A;
}

.cb-proto-close {
  position: relative;
  z-index: 1;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #0D0D0D;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.cb-proto-close svg { width: 20px; height: 20px; }

/* Descriptions use the same 17/25 Inter text on every case block and viewport. */
.cb-page :is(.cb-body, .cb-sub) {
  font-size: 17px !important;
  line-height: 25px !important;
  font-weight: 550 !important;
  color: #6B6B6B;
}

/* Project overview: every value has its label (Year, Industry, Platforms, Timeline, My role, Status),
   and the project links sit here as labelled buttons instead of a floating icon column. */
.cb-sec .cb-facts.is-labeled {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(52 * var(--u)) calc(56 * var(--u));
  font-size: calc(34 * var(--u));
  font-weight: 700;
  line-height: calc(40 * var(--u));
  letter-spacing: 0;
}
.cb-fact { min-width: 0; }
.cb-fact-label {
  margin: 0 0 calc(12 * var(--u));
  color: #8C8C8C;
  font-size: calc(16 * var(--u));
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}
.cb-fact-value { margin: 0; overflow-wrap: break-word; }
.cb-fact[data-fact="my-role"] .cb-fact-value,
.cb-fact[data-fact="status"] .cb-fact-value { color: #111111; }
.cb-fact-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: calc(10 * var(--u));
}
.cb-fact-link {
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--u));
  padding: calc(16 * var(--u)) calc(24 * var(--u));
  border-radius: 999px;
  background: var(--cb-pill, #F3F3F3);
  color: #111111;
  font-size: calc(16 * var(--u));
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}
.cb-fact-link svg { flex: none; width: calc(18 * var(--u)) !important; height: calc(18 * var(--u)) !important; }
.cb-fact-link.is-primary { background: #111111; color: #ffffff; }
.cb-fact-link:hover { background: #111111; color: #ffffff; }
.cb-fact-link.is-primary:hover { background: #3A3A3A; }

@media (max-width: 820px) {
  .cb-page:not(.is-edit, .picker-thumb > *) .cb-sec .cb-facts.is-labeled {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
    font-size: 20px;
    line-height: 1.2;
  }
  .cb-page:not(.is-edit, .picker-thumb > *) .cb-fact-label { margin-bottom: 6px; font-size: 11px; }
  .cb-page:not(.is-edit, .picker-thumb > *) .cb-fact[data-fact="my-role"] { grid-column: 1 / -1; }
  .cb-page:not(.is-edit, .picker-thumb > *) .cb-fact-links { gap: 8px; padding-top: 4px; }
  .cb-page:not(.is-edit, .picker-thumb > *) .cb-fact-link { gap: 8px; padding: 12px 16px; font-size: 13px; }
  .cb-page:not(.is-edit, .picker-thumb > *) .cb-fact-link svg { width: 15px !important; height: 15px !important; }
  /* Phones: nothing floats over the case content — the side arrows go (the page ends with
     Previous / Next case) and the project overview is shown once, right under the title. */
  .cb-case-side-nav { display: none; }
  .cb-page.has-app-board:not(.is-edit) .cb-app-board > .cb-overview { display: none; }
}

/* "More projects" cards at the end of a case: the same one-line status as on the home page. */
.project-line { margin: 2px 0 0; padding-inline: 6px; color: #8C8C8C; font-size: 13px; font-weight: 600; line-height: 1.35; }

/* 2026-11-06 fixes */
/* "Click to try it" sits in the middle of the app screen: it stays visible on hover and goes away on click. */
@media (hover: hover) {
  .cb-proto-start:hover .cb-proto-cta { opacity: 1; }
}
/* Phones: the project links stay in the overview, nothing floats over the case content. */
@media (max-width: 820px) {
  .cb-links, .cb-links-toggle { display: none !important; }
}

/* 2026-11-06 floating links */
/* The round link icons are hidden at the top of a case and next to the overview buttons. Once the overview
   buttons have scrolled away above the screen, the icons slide up from below one by one, bottom icon first. */
.cb-links.is-floating { visibility: hidden; pointer-events: none; transition: visibility 0s linear 360ms; }
.cb-links.is-floating.is-shown { visibility: visible; pointer-events: auto; transition: visibility 0s linear 0s; }
.cb-links.is-floating .cb-link {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 200ms ease, transform 300ms cubic-bezier(.4, 0, 1, 1), background 200ms ease, color 200ms ease;
}
.cb-links.is-floating.is-shown .cb-link {
  opacity: 1;
  transform: none;
  transition: opacity 240ms ease var(--cb-link-delay, 0ms), transform 420ms cubic-bezier(.2, .9, .3, 1) var(--cb-link-delay, 0ms), background 200ms ease, color 200ms ease;
}
.cb-links.is-floating.is-shown .cb-link:nth-last-child(2) { --cb-link-delay: 50ms; }
.cb-links.is-floating.is-shown .cb-link:nth-last-child(3) { --cb-link-delay: 100ms; }
.cb-links.is-floating.is-shown .cb-link:nth-last-child(4) { --cb-link-delay: 150ms; }
.cb-links.is-floating.is-shown .cb-link:nth-last-child(5) { --cb-link-delay: 200ms; }
.cb-links.is-floating.is-shown .cb-link:nth-last-child(6) { --cb-link-delay: 250ms; }
.cb-links.is-floating.is-shown .cb-link:nth-last-child(7) { --cb-link-delay: 300ms; }
@media (prefers-reduced-motion: reduce) {
  .cb-links.is-floating .cb-link, .cb-links.is-floating.is-shown .cb-link { transform: none; transition: opacity 150ms ease; }
}

/* 2026-11-06 links closer */
/* The icons sit 48px apart instead of 62px: no gap between the 48px circles. */
.cb-links.is-floating { gap: 0; }
.cb-links.is-floating .cb-link { width: 48px; height: 48px; }
/* Keep the floating project links clear of the bottom edge on desktop. */
@media (min-width: 821px) { .cb-links.is-floating { display: flex; flex-direction: column; justify-content: flex-end; bottom: clamp(16px, 2vw, 40px); } }
