/* =====================================================================
   Brdge — work section, v2: case-studies.html and the case-*.html pages.
   Built on inner.css; generated by .tools/build_cases.py.
   ===================================================================== */

/* Each practice keeps its own light, also on tiles shown outside its page */
.fl-enterprise { --glow: var(--blue); --glow-2: #7C9CFF; }
.fl-launchpad  { --glow: #7446F2; --glow-2: #C084FC; }
.fl-searchx    { --glow: #0A7BFF; --glow-2: #38D9F5; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Client mark: the client's own logo on a small plate ---------- */
.mark { display: inline-grid; place-items: center; height: 56px; padding: 0 22px; border-radius: 16px; background: #fff; box-shadow: 0 14px 36px -14px rgba(0, 0, 0, .55); }
.mark img { width: auto; height: auto; max-width: 150px; max-height: 28px; }
.mark--dark { background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.mark--square { width: 56px; padding: 0; overflow: hidden; }
.mark--square img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }

/* ---------- Case hero ---------- */
.case-back { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); padding: .55rem 1.1rem .55rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .78); font-size: var(--step-small); font-weight: 500; text-decoration: none; transition: background .3s, color .3s; }
.case-back:hover { background: #fff; color: var(--ink); }
.case-id { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font-size: var(--step-small); font-weight: 500; color: rgba(255, 255, 255, .62); }
.case-id b { font-size: var(--step-lead); font-weight: 500; letter-spacing: -.02em; color: #fff; }
.v2 .case-hero .hero__title { font-size: clamp(2.6rem, 6.2vw, 6.25rem); }
.case-hero .stage-hero__sub { max-width: 40ch; }

/* Phones, fanned */
.fan { height: clamp(520px, 50vw, 700px); }
.fan__p { position: absolute; top: 0; left: 50%; width: clamp(220px, 21vw, 300px); }
.fan__p--1 { z-index: 2; translate: -50% 0; }
.fan__p--0 { translate: -128% 14%; rotate: -7deg; opacity: .8; }
.fan__p--2 { translate: 28% 14%; rotate: 7deg; opacity: .8; }
.fan .device--phone { width: 100%; }
.phone-bare { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)); }
.fan .float-chip { left: 6%; top: 18%; }
.fan .float-chip--b { left: auto; right: 6%; top: auto; bottom: 34%; }

/* A photograph, framed, where the case has no screens */
.stage-photo { display: grid; justify-items: center; }
.stage-photo__frame { margin: 0; overflow: hidden; border-radius: var(--big); background: #fff; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1); }
.stage-photo__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage-photo--wide .stage-photo__frame { width: 84%; aspect-ratio: 16 / 9; }
.stage-photo--tall .stage-photo__frame { width: min(460px, 72%); aspect-ratio: 4 / 5; }
.stage-photo__phone { position: absolute; z-index: 2; right: 3%; top: 16%; width: 19%; }
.stage-photo .float-chip { left: 2%; top: 14%; }
.stage-photo .float-chip--b { left: auto; right: 2%; top: auto; bottom: 30%; }
.stage-photo--tall .float-chip { left: 12%; }
.stage-photo--tall .float-chip--b { right: 12%; }
.stage-photo:has(.stage-photo__phone) .float-chip--b { right: 24%; bottom: 22%; }

/* No imagery: the number is the stage */
.stage-hero__media--metric::after { display: none; }
.litstat { display: grid; justify-items: center; padding-bottom: clamp(4.5rem, 9vw, 8rem); text-align: center; }
.litstat__n, .litfigs dd, .tile__big { background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--glow-2) 75%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; } /* taste-skill-ignore: lit numeral */
.litstat__n { font: 600 clamp(7rem, 23vw, 21rem)/.86 var(--display); letter-spacing: -.07em; }
.litstat__cap { margin-top: 1.25rem; font-size: var(--step-lead); color: rgba(255, 255, 255, .7); }
.litstat__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.25rem; }
.litstat .float-chip { position: static; }

/* ---------- Index hero: four figures, lit ---------- */
.litfigs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 clamp(4.5rem, 9vw, 8rem); text-align: left; border-top: 1px solid var(--line-dark); }
.litfigs div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 2rem clamp(1rem, 2vw, 2rem) 0; border-left: 1px solid var(--line-dark); }
.litfigs div:first-child { border-left: 0; padding-left: 0; }
.litfigs dd { margin: 0; font: 600 clamp(3.25rem, 6vw, 6.25rem)/.95 var(--display); letter-spacing: -.06em; }
.litfigs dt { max-width: 22ch; margin-top: .9rem; font-size: var(--step-body); line-height: 1.35; color: rgba(255, 255, 255, .62); }

/* ---------- The numbers, straight after the stage ---------- */
.case-nums__head { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 2fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line-dark); }
.case-nums__head .kicker { margin: 0; }
.case-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; }
.case-facts dt { font-size: var(--step-small); color: rgba(255, 255, 255, .5); }
.case-facts dd { margin: .4rem 0 0; font-size: var(--step-body); font-weight: 500; line-height: 1.3; color: #fff; }
.bigstats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(3rem, 8vw, 9rem); row-gap: clamp(3rem, 6vw, 5rem); }
.bigstats--4 .bigstat b { font-size: clamp(3.25rem, 6.2vw, 6.25rem); }
.case-note { margin-top: 2.5rem; font-size: var(--step-small); color: rgba(255, 255, 255, .5); }

/* ---------- Story ---------- */
.pin__panel p { max-width: 42ch; font-size: clamp(1.1rem, 1.4vw, 1.35rem); }
.case-pdf { margin-top: 2.5rem; }

/* ---------- Gallery tiles: one phone each, rising out of the tile ---------- */
figure.tile { margin: 0; }
.tile--phone .tile__art { position: relative; padding: 0; }
.tile--phone .tile__art > * { position: absolute; top: 6px; left: 50%; width: 60%; translate: -50% 0; transition: translate 1.2s var(--ease); }
.tile--phone:hover .tile__art > * { translate: -50% -10px; }

/* ---------- Case tiles (board and next rail) ---------- */
.tile--phones .tile__phones { position: absolute; z-index: -1; right: 3%; top: 12%; display: flex; justify-content: center; gap: 5%; width: 52%; transition: transform 1.2s var(--ease); }
.tile--phones .tile__phones > * { flex: none; width: 44%; }
.tile--phones .tile__phones > :last-child { margin-top: 14%; }
a.tile--phones:hover .tile__phones { transform: translateY(-10px); }
.tile--stat { background: radial-gradient(120% 90% at 15% 110%, color-mix(in srgb, var(--glow) 55%, transparent) 0%, transparent 62%), var(--night-2); } /* taste-skill-ignore: stage light */
.tile--stat::after, .tile--light::after { display: none; }
.tile--stat .tile__art { place-items: center start; }
.tile__big { font: 600 clamp(4.5rem, 8vw, 8rem)/.9 var(--display); letter-spacing: -.07em; }
.tile--light .tile__art { place-items: center start; }
.tile--light .tile__client { border-top-color: var(--line); }
.tile--light .tile__client span:last-child { background: var(--ground); }
a.tile--light:hover .tile__client span:last-child { background: var(--ink); color: #fff; }

/* The film, as a tile beside the quote */
button.tile { padding: 0; border: 0; font: inherit; text-align: left; cursor: pointer; }
.tile__play { position: relative; }
.tile__play::after { content: ''; position: absolute; left: 50%; top: 50%; translate: -35% -50%; border: 6px solid transparent; border-left: 10px solid currentColor; }
.tile--film:hover .tile__play { background: #fff; color: var(--ink); }
.tile--film:hover > img { transform: scale(1.04); }

/* ---------- Voice ---------- */
.voice__mark { margin-bottom: clamp(2rem, 4vw, 3rem); }
.paper .mark { background: var(--ground); box-shadow: none; }
.dark .voice figcaption { color: rgba(255, 255, 255, .6); }
.dark .voice figcaption b { color: #fff; }
.voice-pair { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.voice-pair .voice blockquote p { font-size: clamp(1.6rem, 2.7vw, 2.75rem); }
.voice-pair .tile--film { width: 100%; height: clamp(440px, 38vw, 560px); }

/* ---------- Index: client marks, filter, board ---------- */
.case-marks ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: clamp(2.5rem, 5vw, 4rem); }
.case-marks .mark { height: 64px; box-shadow: 0 0 0 1px var(--line); }
.case-marks .mark--square { width: 64px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .4rem; }
.filter a { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: 0 1.2rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: var(--step-small); font-weight: 500; text-decoration: none; transition: background .3s, color .3s; }
.filter a span { color: var(--soft); font-variant-numeric: tabular-nums; }
.filter a:hover { background: color-mix(in srgb, var(--glow) 6%, #fff); }
.filter a[aria-current] { background: var(--ink); box-shadow: none; color: #fff; }
.filter a[aria-current] span { color: rgba(255, 255, 255, .6); }
.cboard { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.cboard > li { min-width: 0; scroll-margin-top: 96px; }
.cboard .s4 { grid-column: span 4; } .cboard .s5 { grid-column: span 5; } .cboard .s6 { grid-column: span 6; }
.cboard .s7 { grid-column: span 7; } .cboard .s8 { grid-column: span 8; }
.cboard.is-filtered > li { grid-column: span 6; }
.cboard .tile, .cboard .tile--wide { width: auto; height: clamp(460px, 40vw, 600px); }
.board-note { margin-top: 2.5rem; text-align: center; font-size: var(--step-small); color: var(--soft); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1199px) {
  .cboard > li, .cboard.is-filtered > li { grid-column: span 6; }
}
@media (max-width: 1023px) {
  .case-nums__head { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .litfigs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .litfigs div:nth-child(3) { border-left: 0; padding-left: 0; }
  .voice-pair { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .mark { height: 48px; padding: 0 16px; border-radius: 14px; }
  .mark img { max-width: 120px; max-height: 24px; }
  .mark--square { width: 48px; padding: 0; }
  .fan { height: 112vw; }
  .fan__p { width: 50vw; }
  .fan__p--0 { translate: -120% 14%; }
  .fan__p--2 { translate: 20% 14%; }
  .fan .float-chip { left: 2%; top: -4%; }
  .stage-photo--wide .stage-photo__frame { width: 100%; }
  .stage-photo--tall .stage-photo__frame { width: 80%; }
  .stage-photo .float-chip { left: 4%; top: -5%; }
  .stage-photo__phone { width: 26%; right: 2%; top: 30%; }
  .bigstats--4 { grid-template-columns: 1fr; }
  .cboard > li, .cboard.is-filtered > li { grid-column: 1 / -1; }
  .cboard .tile, .cboard .tile--wide { height: auto; min-height: 460px; }
  .tile--phones .tile__top { order: 0; }
  .tile--phones .tile__phones { position: relative; z-index: 0; order: 1; right: auto; top: auto; width: 100%; height: 250px; margin-top: .5rem; overflow: hidden; }
  .tile--phones .tile__phones > * { width: 36%; }
  .tile--phones .tile__foot { order: 2; }
  .tile--phone .tile__art { min-height: 300px; }
  .voice-pair .tile--film { height: 420px; }
  .case-marks ul { gap: 8px; }
  .case-marks .mark { height: 52px; }
  .case-marks .mark--square { width: 52px; }
}
@media (max-width: 599px) {
  .litfigs { grid-template-columns: 1fr; }
  .litfigs div { border-left: 0; padding-left: 0; padding-top: 1.25rem; }
  .litfigs div + div { border-top: 1px solid var(--line-dark); }
}
.v2 main > .case-hero { padding-top: calc(64px + 4.5vh); }
.case-hero .case-back, .case-hero .case-id { margin-bottom: clamp(1.1rem, 2.2vw, 1.75rem); }
.mark img { max-height: 32px; }
.fan__p--0 { translate: -146% 12%; opacity: 1; filter: brightness(.62); }
.fan__p--2 { translate: 46% 12%; opacity: 1; filter: brightness(.62); }
@media (max-width: 899px) { .fan__p--0 { translate: -132% 14%; } .fan__p--2 { translate: 32% 14%; } }
.litfigs dd { font-size: clamp(2.75rem, 5vw, 5.25rem); }

/* =====================================================================
   Fit rules: screens, phones, diagrams and logos are never cropped or stretched
   ===================================================================== */
/* A phone frame wraps its screenshot exactly: no band, no crop */
.device--phone { height: auto; }
.device--phone img { width: 100%; height: auto; object-fit: contain; }
.phone-bare { object-fit: contain; }

/* Gallery: the whole phone stands in the tile, sized by the space it has */
.tile--phone .tile__art { position: relative; min-height: 0; padding: 0; }
.tile--phone .tile__art > * { position: absolute; top: 0; bottom: clamp(20px, 2.4vw, 32px); left: 50%; width: auto; height: auto; max-width: none; translate: -50% 0; }
.tile--phone .tile__art > .device--phone img { width: auto; height: 100%; }
.tile--phone .tile__art > .phone-bare { height: calc(100% - clamp(20px, 2.4vw, 32px)); }
.tile--phone:hover .tile__art > * { translate: -50% -6px; }

/* Case tiles: two phones, each exactly its screenshot, fully inside the tile */
.tile--phones .tile__phones { align-items: flex-start; top: 10%; }
.tile--phones .tile__phones > * { width: 40%; align-self: flex-start; }
.tile--phones .tile__phones > :last-child { margin-top: 10%; }

/* Browser screens inside wide tiles sit within the tile */
.tile--wide.tile--device .tile__shot { right: 4%; width: 52%; }

/* Hero: the frames finish above the stage floor */
.case-hero .stage-hero__media { padding-bottom: clamp(3rem, 6vw, 5rem); }
.case-hero .stage-hero__media::after { height: 16%; }
.fan { height: auto; aspect-ratio: auto; min-height: 0; }
.fan__p--1 { position: relative; left: 50%; display: block; }
.fan__p--0, .fan__p--2 { filter: brightness(.62); }
.stage-photo--tall .stage-photo__frame img { object-position: 50% 18%; }

/* The closing tile on the board */
.tile--nda .bigcount { font-size: clamp(5rem, 9vw, 8.5rem); }

@media (max-width: 899px) {
  .tile--phones .tile__phones { height: auto; overflow: visible; padding-bottom: .5rem; }
  .tile--phones .tile__phones > * { width: 34%; }
  .tile--phone .tile__art { min-height: 340px; }
}

/* =====================================================================
   Apprentago: the photograph is the stage
   ===================================================================== */
.v2 main > .case-hero--bleed { justify-content: flex-end; min-height: min(100svh, 980px); padding-bottom: clamp(2rem, 4vw, 3.5rem); text-align: left; align-items: stretch; }
.bleed__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 40%; }
.bleed__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 7, 12, .9) 0%, rgba(6, 7, 12, .72) 42%, rgba(6, 7, 12, .2) 75%, rgba(6, 7, 12, .1) 100%), linear-gradient(0deg, rgba(6, 7, 12, .9) 0%, rgba(6, 7, 12, 0) 45%); } /* taste-skill-ignore: scrim for legibility */
.case-hero--bleed .glow { opacity: .35; }
.case-hero--bleed .stage-hero__copy { align-items: flex-start; max-width: 860px; padding-inline: clamp(20px, 5vw, 80px); margin-top: auto; }
.case-hero--bleed .case-id { justify-content: flex-start; }
.case-hero--bleed .case-id span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; margin-right: 1.1rem; border-radius: 50%; background: currentColor; vertical-align: middle; }
.case-hero--bleed .hero__cta { justify-content: flex-start; }
.case-hero--bleed .hero__title { text-shadow: 0 2px 30px rgba(6, 7, 12, .35); }
.bleed__figs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(3rem, 6vw, 5rem) clamp(20px, 5vw, 80px) 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.bleed__figs li { padding: 1.5rem 1.25rem 0 0; font-size: var(--step-small); color: rgba(255, 255, 255, .72); }
.bleed__figs b { display: block; margin-bottom: .35rem; font: 600 clamp(2.25rem, 3.8vw, 3.75rem)/1 var(--display); letter-spacing: -.05em; color: #fff; }

.appr-founder__p { max-width: 40ch; margin-top: 1.25rem; font-size: var(--step-body); line-height: 1.5; color: var(--soft); }
.appr-award { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1rem 1.25rem; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: var(--step-small); color: var(--soft); }
.appr-award::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 5px color-mix(in srgb, var(--glow) 18%, transparent); }
.appr-award b { display: block; font-size: var(--step-body); font-weight: 600; color: var(--ink); }
.appr-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.appr-photo { position: relative; margin: 0; overflow: hidden; border-radius: 24px; aspect-ratio: 2 / 3; box-shadow: 0 40px 80px -40px rgba(6, 7, 12, .4); }
.appr-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.appr-photo--b { margin-top: 18%; }
.appr-photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: .45rem .8rem; border-radius: 999px; background: rgba(13, 15, 23, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 12px; font-weight: 500; color: #fff; }

.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 24px; background: var(--line-dark); }
.rooms li { display: flex; flex-direction: column; min-height: 250px; padding: clamp(24px, 2.6vw, 36px); background: var(--night-2); }
.rooms__who { font-size: var(--step-small); font-weight: 500; color: var(--glow-2); }
.rooms h3 { margin-top: auto; padding-top: 2.5rem; font-size: clamp(1.6rem, 2.4vw, 2.4rem); font-weight: 400; line-height: 1.05; }
.rooms li > p:last-child { margin-top: .75rem; max-width: 32ch; color: rgba(255, 255, 255, .62); }

.appr-product .head h2 { max-width: 16ch; }
.appr-devices { position: relative; display: grid; justify-items: center; padding-bottom: clamp(5rem, 9vw, 8rem); transform-origin: 50% 0; }
.appr-dev--front { position: relative; z-index: 1; width: min(980px, 78%); }
.appr-dev--back { position: absolute; top: -7%; right: 3%; width: 46%; opacity: .5; filter: saturate(.6); }
.appr-dev--side { position: absolute; z-index: 2; left: 3%; bottom: 0; width: 34%; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem); }
.feats li { padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }
.feats h3 { font-size: clamp(1.25rem, 1.6vw, 1.6rem); font-weight: 500; }
.feats p { margin-top: .5rem; max-width: 34ch; color: rgba(255, 255, 255, .62); }

@media (max-width: 1023px) {
  .rooms, .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bleed__figs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
}
@media (max-width: 899px) {
  .v2 main > .case-hero--bleed { min-height: 0; padding-top: calc(56px + 3.5rem); }
  .bleed__img { object-position: 62% 30%; }
  .bleed__scrim { background: linear-gradient(0deg, rgba(6, 7, 12, .94) 0%, rgba(6, 7, 12, .8) 55%, rgba(6, 7, 12, .45) 100%); }
  .appr-dev--front { width: 100%; }
  .appr-dev--back { display: none; }
  .appr-dev--side { position: relative; left: auto; bottom: auto; width: 78%; margin: -2.5rem 0 0 auto; }
  .appr-devices { padding-bottom: 3.5rem; }
}
@media (max-width: 599px) {
  .rooms, .feats { grid-template-columns: 1fr; }
  .rooms li { min-height: 0; }
  .appr-photos { gap: 10px; }
}
.v2 main > .case-hero--bleed { min-height: calc(100svh - 2 * var(--gap)); }
.case-hero--bleed .stage-hero__copy { max-width: 1100px; }
.v2 .case-hero--bleed .hero__title { font-size: clamp(2.5rem, 5.4vw, 5.6rem); }
.case-hero--bleed .stage-hero__sub { max-width: 44ch; }
.case-nums .bigstat b { white-space: nowrap; }
.case-nums .bigstats--6 .bigstat b { font-size: clamp(3rem, 5.2vw, 5.5rem); }
@media (max-width: 899px) { .bleed__scrim { background: linear-gradient(0deg, rgba(6, 7, 12, .95) 0%, rgba(6, 7, 12, .82) 50%, rgba(6, 7, 12, .25) 100%); } }
.fan__p--0 { translate: -146% 5%; } .fan__p--2 { translate: 46% 5%; }
.case-hero .stage-hero__media:has(.fan) { padding-bottom: clamp(4rem, 8vw, 7rem); }
.case-hero .stage-hero__media:has(.fan)::after { height: 10%; }
@media (max-width: 899px) { .fan__p--0 { translate: -132% 6%; } .fan__p--2 { translate: 32% 6%; } }
@media (max-width: 1199px) { .cboard > li[class] { grid-column: span 6; } }
@media (max-width: 899px) { .cboard { grid-template-columns: minmax(0, 1fr); } .cboard > li[class] { grid-column: 1 / -1; } }

/* ---------- Phone pass ---------- */
@media (max-width: 899px) {
  /* The phones sit in the flow between the headline and the figure, never over it */
  .tile--phones .tile__phones { top: auto; margin-top: 1.25rem; }
}
/* A light mark keeps its dark plate on paper too */
.paper .mark--dark { background: var(--night-2); }
@media (max-width: 899px) {
  /* Browser screens in wide tiles use the card's full width on a phone, so they stay readable */
  .tile--wide.tile--device .tile__shot { right: auto; width: auto; margin: 1.25rem 22px 0; }
}

/* ---------- Phone tiles as branded scenes: brand ground, three real screens fanned on the right ---------- */
.tile--scene { background: var(--g) !important; isolation: isolate; }
.tile--scene::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 75% 0%, rgba(255, 255, 255, .25), transparent 60%), linear-gradient(90deg, rgba(10, 12, 24, .45) 0%, rgba(10, 12, 24, 0) 55%); pointer-events: none; } /* taste-skill-ignore: stage light and text scrim */
.sc--halvestor { --g: linear-gradient(150deg, #3B82F6 0%, #2457D6 50%, #142E7A 100%); }
.sc--mlg { --g: linear-gradient(150deg, #2DA5D3 0%, #1E78B4 50%, #0F3E6B 100%); }
.sc--pocket { --g: linear-gradient(150deg, #6FAF3A 0%, #3F7A22 50%, #1A3512 100%); }
.tile--scene .tile__scene { position: absolute; z-index: -1; inset: 0 0 0 44%; top: 0; right: 0; width: auto; display: block; overflow: hidden; gap: 0; }
.tile--scene .tile__scene > * { margin: 0; align-self: auto; }
.sc__ph { position: absolute; bottom: -24%; width: 36%; aspect-ratio: 786 / 1704; padding: 1.6%; border-radius: 13% / 6%; background: #0D0B12; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.sc__ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: 11% / 5.2%; background: #fff; }
.tile--scene .sc__ph--c { z-index: 2; left: 50%; bottom: -30%; width: 42%; transform: translateX(-50%); }
.tile--scene .sc__ph--l { left: 2%; bottom: -20%; transform: rotate(-9deg); }
.tile--scene .sc__ph--r { right: 2%; bottom: -20%; transform: rotate(9deg); }
.sc__device--c { position: absolute; z-index: 2; left: 50%; bottom: -30%; width: 46%; height: auto; transform: translateX(-50%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
a.tile--scene:hover .tile__scene { transform: none; }
a.tile--scene:hover .sc__ph--c { transform: translateX(-50%) translateY(-6%); }
a.tile--scene:hover .sc__device--c { transform: translateX(-50%) translateY(-6%); }
a.tile--scene:hover .sc__ph--l { transform: rotate(-12deg) translate(-4%, -2%); }
a.tile--scene:hover .sc__ph--r { transform: rotate(12deg) translate(4%, -2%); }
.tile--scene .tile__top, .tile--scene .tile__foot { position: relative; z-index: 1; max-width: 44%; }
@media (max-width: 699px) {
  .tile--scene .tile__scene { position: relative; inset: auto; height: 280px; margin: .75rem -1px 0; border-radius: 14px; }
  .tile--scene .tile__top, .tile--scene .tile__foot { max-width: none; }
  .tile--scene::before { background: radial-gradient(90% 60% at 50% 40%, rgba(255, 255, 255, .2), transparent 60%); }
}

.tile--scene .tile__scene .sc__ph { width: 36%; }
.tile--scene .tile__scene .sc__ph--c { width: 42%; }
.tile--scene .tile__scene .sc__device--c { width: 46%; }
@media (max-width: 699px) { .tile--scene .tile__scene .sc__ph { width: 30%; } .tile--scene .tile__scene .sc__ph--c { width: 36%; } .tile--scene .tile__scene .sc__device--c { width: 40%; } }
/* larger fan that fills the right of the tile */
.tile--scene .tile__scene { left: 40%; }
.tile--scene .tile__scene .sc__ph { width: 40%; bottom: -14%; }
.tile--scene .tile__scene .sc__ph--l { left: -2%; transform: rotate(-7deg); }
.tile--scene .tile__scene .sc__ph--r { right: -2%; transform: rotate(7deg); }
.tile--scene .tile__scene .sc__ph--c { width: 50%; bottom: -26%; }
.tile--scene .tile__scene .sc__device--c { width: 54%; bottom: -26%; }
a.tile--scene:hover .tile__scene .sc__ph--l { transform: rotate(-10deg) translate(-3%, -2%); }
a.tile--scene:hover .tile__scene .sc__ph--r { transform: rotate(10deg) translate(3%, -2%); }
@media (max-width: 699px) {
  .tile--scene .tile__scene { position: relative; left: auto; inset: auto; width: 100%; height: 300px; }
  .tile--scene .tile__scene .sc__ph { width: 34%; bottom: -16%; }
  .tile--scene .tile__scene .sc__ph--l { left: 4%; }
  .tile--scene .tile__scene .sc__ph--r { right: 4%; }
  .tile--scene .tile__scene .sc__ph--c, .tile--scene .tile__scene .sc__device--c { width: 42%; bottom: -24%; }
}
/* keep every phone whole left-to-right: no hard clip at the scene edge or the tile edge */
.tile--scene .tile__scene { overflow: visible; left: 38%; right: 0; }
.tile--scene .tile__scene .sc__ph--l { left: 3%; }
.tile--scene .tile__scene .sc__ph--r { right: 4%; }
.tile--scene .tile__scene .sc__ph { width: 36%; }
.tile--scene .tile__scene .sc__ph--c { width: 46%; }
.tile--scene .tile__scene .sc__device--c { width: 50%; }
@media (max-width: 699px) { .tile--scene .tile__scene { left: auto; overflow: hidden; } }

/* ---------- Browser tiles as scenes: brand ground, real screens cascading off the right ---------- */
.tile--browserscene { background: var(--g) !important; isolation: isolate; }
.tile--browserscene::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 80% 0%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(90deg, rgba(8, 10, 22, .5) 0%, rgba(8, 10, 22, 0) 50%); pointer-events: none; } /* taste-skill-ignore: stage light and text scrim */
.sc--shyft { --g: linear-gradient(140deg, #2B62B8 0%, #1C7FB8 55%, #0E4D7A 100%); }
.sc--kseye { --g: radial-gradient(70% 90% at 85% 100%, rgba(229, 57, 53, .55), transparent 70%), linear-gradient(160deg, #26232A 0%, #141216 100%); }
.tile__bscene { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; left: 42%; }
.sc__logo { position: absolute; top: 26px; right: 28px; height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.sc--kseye .sc__logo { filter: none; height: 30px; top: 22px; background: #fff; padding: 5px 9px; border-radius: 8px; }
.sc__window { position: absolute; margin: 0; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.sc__chrome { display: block; height: 16px; background: #F1F2F6; border-bottom: 1px solid #E3E5EC; }
.sc__window img { display: block; width: 100%; height: auto; }
.sc__window--front { z-index: 3; left: 4%; bottom: -10%; width: 92%; }
.sc__window--mid { z-index: 2; left: 14%; bottom: 24%; width: 82%; opacity: .95; }
.sc__window--back { z-index: 1; left: 24%; bottom: 52%; width: 74%; opacity: .85; }
.sc--kseye .sc__window--back { left: 22%; bottom: 40%; width: 76%; }
.sc--kseye .sc__window--front { bottom: -14%; }
a.tile--browserscene:hover .sc__window--front { transform: translateY(-4%); }
a.tile--browserscene:hover .sc__window--mid { transform: translateY(-2%); }
.tile--browserscene .tile__top, .tile--browserscene .tile__foot { position: relative; z-index: 1; max-width: 40%; }
@media (max-width: 699px) {
  .tile__bscene { position: relative; left: auto; height: 260px; margin-top: .75rem; overflow: hidden; border-radius: 14px; order: 1; }
  .tile--browserscene .tile__top, .tile--browserscene .tile__foot { max-width: none; }
  .tile--browserscene .tile__top { order: 0; } .tile--browserscene .tile__foot { order: 2; }
  .sc__logo { top: 14px; right: 16px; }
}

/* ---------- Number tiles: brand ground and the mark behind the figure ---------- */
.tile--statscene { background: var(--g) !important; isolation: isolate; overflow: hidden; }
.sc--alphaspread { --g: radial-gradient(80% 70% at 90% 100%, rgba(45, 212, 240, .45), transparent 65%), linear-gradient(160deg, #0F1B3D 0%, #0A1028 100%); }
.sc--auto { --g: radial-gradient(80% 70% at 90% 100%, rgba(255, 138, 61, .45), transparent 65%), linear-gradient(160deg, #23160F 0%, #120C09 100%); }
.tile--statscene .tile__big { background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc--alphaspread .tile__big { background-image: linear-gradient(180deg, #fff 25%, #7FE3F5); }
.sc--auto .tile__big { background-image: linear-gradient(180deg, #fff 25%, #FFB27A); }
.sc__ghost { position: absolute; z-index: -1; right: -8%; bottom: -12%; width: 70%; height: auto; opacity: .16; filter: brightness(0) invert(1); }

/* ---------- GP Connect: its lavender and red, the three redesigned functions ---------- */
.tile--gp { background: linear-gradient(160deg, #F4F2FD 0%, #E6E2F8 100%) !important; }
.sc__gp { display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; }
.sc__gplogo { width: 62%; height: auto; }
.sc__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sc__pills li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .85rem; border-radius: 999px; background: #fff; box-shadow: 0 6px 20px -10px rgba(46, 42, 134, .35); font: 500 .9rem/1 var(--display); color: #2E2A86; }
.sc__pills b { font-size: .72rem; font-weight: 600; color: #EE1E25; }

/* ---------- Client strip: editorial, no boxes. One ink, sized by visual weight, hairlines between ---------- */
.case-marks--ed { padding-top: clamp(2rem, 4vw, 3.5rem); }
.case-marks--ed .kicker { margin-bottom: 1.5rem; }
.case-marks--ed ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0; border-top: 1px solid rgba(29, 29, 31, .12); border-bottom: 1px solid rgba(29, 29, 31, .12); }
.case-marks--ed li { display: grid; place-items: center; flex: 1 1 auto; min-width: 140px; height: 104px; padding: 0 clamp(18px, 2.2vw, 34px); border-right: 1px solid rgba(29, 29, 31, .08); }
.case-marks--ed li:last-child { border-right: 0; }
.case-marks--ed img { width: auto; height: var(--h, 32px); max-width: 160px; object-fit: contain; filter: brightness(0); opacity: .74; transition: filter .55s cubic-bezier(.4, 0, .2, 1), opacity .55s cubic-bezier(.4, 0, .2, 1); }
.case-marks--ed li:hover img { filter: none; opacity: 1; }
.case-marks--ed li:hover img[src$="logo-djungle.png"], .case-marks--ed li:hover img[src$="halvestor-mark.png"] { filter: brightness(0); opacity: 1; }
@media (max-width: 699px) { .case-marks--ed li { min-width: 50%; height: 84px; border-bottom: 1px solid rgba(29, 29, 31, .08); } .case-marks--ed img { height: calc(var(--h, 32px) * .82); } }

/* ---------- LSS London case ---------- */
.mark--lss { background: #000; padding: 0; overflow: hidden; }
.mark--lss img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; transform: scale(1.35); }
.ba { width: 100%; margin-top: clamp(2rem, 4vw, 3.5rem); border-collapse: collapse; font-size: var(--step-body); }
.ba th, .ba td { padding: clamp(.9rem, 1.6vw, 1.25rem) 1rem clamp(.9rem, 1.6vw, 1.25rem) 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(29, 29, 31, .1); }
.ba thead th { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); border-bottom-color: rgba(29, 29, 31, .4); }
.ba tbody th { width: 22%; font-weight: 600; }
.ba__from { width: 34%; color: rgba(29, 29, 31, .45); }
.ba__to { font-weight: 500; color: var(--glow); }
.lss-dash__shot { margin: clamp(2rem, 4vw, 3.5rem) auto 0; max-width: 1180px; }
.lss-dash__shot img { display: block; width: 100%; height: auto; }
.lss-lead__grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.lss-lead__pic { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; }
.lss-lead h2 { margin-top: .5rem; font-size: clamp(1.9rem, 3.4vw, 3.2rem); }
.lss-lead__name { margin-top: 1.5rem; color: var(--soft); }
.lss-lead__name b { display: block; font-size: 1.15rem; color: var(--ink); }
.lss-lead__creds { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(29, 29, 31, .12); font-size: var(--step-small); color: var(--soft); }
@media (max-width: 699px) {
  .ba thead { display: none; }
  .ba tr { display: grid; grid-template-columns: 1fr 1fr; padding: .9rem 0; border-bottom: 1px solid rgba(29, 29, 31, .1); }
  .ba th, .ba td { padding: .2rem .5rem .2rem 0; border: 0; width: auto; }
  .ba tbody th { grid-column: 1 / -1; }
  .lss-lead__grid { grid-template-columns: 1fr; }
  .lss-lead__pic { max-width: 220px; }
}
/* board scene for LSS */
.sc--lss { --g: radial-gradient(70% 90% at 85% 100%, rgba(191, 144, 48, .5), transparent 70%), linear-gradient(160deg, #1A1712 0%, #0C0B09 100%); }
.sc--lss .sc__logo { filter: none; height: 44px; top: 18px; }
.sc--lss .sc__window--front { left: 4%; bottom: -8%; width: 94%; }
.cboard .s12 { grid-column: 1 / -1; }
.cboard .s12 .tile { height: clamp(460px, 36vw, 560px); }
.cboard .s12 .tile--browserscene .tile__bscene { left: 44%; }
.case-marks--ed img { filter: grayscale(1) brightness(.42) contrast(1.6); opacity: .9; }
.case-marks--ed img[src$="logo-djungle.png"], .case-marks--ed img[src$="halvestor-mark.png"] { filter: brightness(0); opacity: .74; }
.case-marks--ed li:hover img { filter: none; opacity: 1; }
@media (max-width: 699px) { .ba tbody th, .ba .ba__from { width: auto; } }
.sc__window--glass { border-radius: 16px; background: #0B0A18; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14); }
/* GP Connect board scene */
.sc--gp { --g: radial-gradient(70% 90% at 90% 100%, rgba(174, 99, 255, .45), transparent 70%), linear-gradient(150deg, #34369A 0%, #23246E 55%, #15163F 100%); }
.sc--gp .sc__logo { filter: brightness(0) invert(1); height: 18px; }
@media (min-width: 1024px) {
.cboard .s4 .tile--browserscene .tile__bscene { left: 0; top: 34%; }
.cboard .s4 .tile--browserscene .tile__top, .cboard .s4 .tile--browserscene .tile__foot { max-width: none; }
.cboard .s4 .tile--browserscene .sc__window--front { left: 10%; width: 96%; bottom: -14%; }
.cboard .s4 .tile--browserscene .sc__window--back { left: 22%; width: 88%; bottom: 20%; }
.cboard .s4 .tile--browserscene .tile__foot { margin-top: auto; padding: 14px; border-radius: 14px; background: rgba(12, 12, 40, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
/* Tiles grow with their text instead of clipping the footer, and wide scene tiles keep a full row
   in the two-column range so their text column never gets squeezed */
.cboard .tile, .cboard .tile--wide, .cboard .s12 .tile { height: auto; min-height: clamp(460px, 40vw, 600px); }
.cboard .s12 .tile { min-height: clamp(460px, 36vw, 560px); }
@media (min-width: 900px) and (max-width: 1199px) {
  .cboard > li[class]:has(.tile--wide):not(.s4) { grid-column: 1 / -1; }
}
@media (min-width: 900px) and (max-width: 1023px) {
  .cboard > li.s4:has(.tile--wide) { grid-column: 1 / -1; }
}
@media (max-width: 899px) { .cboard .tile, .cboard .tile--wide, .cboard .s12 .tile { min-height: 460px; } }
/* ---------- Precede: a glowing 96-well plate, tilted in space ---------- */
.sc--precede { background: radial-gradient(70% 55% at 75% 52%, rgba(56, 217, 245, .22), transparent 70%), radial-gradient(60% 50% at 20% 90%, rgba(124, 92, 255, .28), transparent 70%), linear-gradient(165deg, #0A1830 0%, #070B1C 100%); }
.sc--precede::after { background: linear-gradient(180deg, rgba(7, 11, 28, .55) 0%, transparent 30%, transparent 55%, rgba(7, 11, 28, .85) 100%); }
.tile__plate { position: absolute; inset: 0; z-index: -1; overflow: hidden; perspective: 900px; }
.sc__plate { position: absolute; left: 54%; top: 41%; width: 112%; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3.2%; padding: 4.5%; border: 1px solid rgba(160, 220, 255, .28); border-radius: 22px; background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 40px 80px rgba(0, 0, 0, .45); transform: translate(-50%, -50%) rotateX(56deg) rotateZ(-24deg); transform-style: preserve-3d; transition: transform 1.4s var(--ease); }
.sc__plate i { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 70%); box-shadow: inset 0 0 0 1px rgba(170, 220, 255, .16); }
.sc__plate i.l1 { background: radial-gradient(circle at 40% 35%, #C9F6FF, #38D9F5 55%, rgba(56, 217, 245, .35)); box-shadow: 0 0 14px 3px rgba(56, 217, 245, .55); }
.sc__plate i.l2 { background: radial-gradient(circle at 40% 35%, #E4DCFF, #8B6CFF 55%, rgba(139, 108, 255, .35)); box-shadow: 0 0 14px 3px rgba(139, 108, 255, .55); }
.sc__plate i.l3 { background: radial-gradient(circle at 40% 35%, #D8E6FF, #4F7BFF 55%, rgba(79, 123, 255, .3)); box-shadow: 0 0 10px 2px rgba(79, 123, 255, .45); }
@keyframes well-pulse { 50% { opacity: .55; } }
.sc__plate i.l1 { animation: well-pulse 3.2s ease-in-out infinite; }
.sc__plate i.l2 { animation: well-pulse 3.2s ease-in-out 1.1s infinite; }
a.tile--plate:hover .sc__plate { transform: translate(-50%, -52%) rotateX(50deg) rotateZ(-20deg); }
@media (prefers-reduced-motion: reduce) { .sc__plate i { animation: none !important; } }

.sc--ppa { --g: linear-gradient(150deg, #A24A60 0%, #6E2436 48%, #2E0E1A 100%); }

/* Editorial client strip: logos in their own colours */
.case-marks--ed img, .case-marks--ed img[src$="logo-djungle.png"], .case-marks--ed img[src$="halvestor-mark.png"] { filter: none; opacity: 1; }

/* Apprentago recognition: a logo wall in the marks' own colours */
.press .head h2 { max-width: 20ch; }
.press__wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.press__wall li { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 200px; padding: clamp(20px, 2.4vw, 32px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.press__mark { display: flex; align-items: center; height: 64px; }
.press__mark img { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: left center; }
.press__mark img[src$="press-c4.svg"] { height: 58px; } .press__mark img[src$="press-gfs.svg"] { height: 46px; }
.press__mark img[src$="press-bbcldn.svg"] { height: 40px; }
.press__type { font: 600 clamp(1.25rem, 1.7vw, 1.6rem)/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.press__wall p { font-size: var(--step-small); line-height: 1.45; color: var(--soft); }
@media (max-width: 1023px) { .press__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 499px) { .press__wall { grid-template-columns: 1fr; } .press__wall li { min-height: 0; } }
/* Client strip as an even grid: seven across on desktop, so 14 clients sit in two full rows */
.case-marks--ed ul { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.case-marks--ed li { min-width: 0; border-bottom: 1px solid rgba(29, 29, 31, .08); }
.case-marks--ed li:nth-child(7n) { border-right: 0; }
.case-marks--ed li:nth-last-child(-n+7) { border-bottom: 0; }
.case-marks--ed img { max-width: 100%; }
@media (max-width: 1023px) { .case-marks--ed ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } .case-marks--ed li:nth-child(7n) { border-right: 1px solid rgba(29, 29, 31, .08); } .case-marks--ed li:nth-child(4n) { border-right: 0; } .case-marks--ed li { border-bottom: 1px solid rgba(29, 29, 31, .08) !important; } }
@media (max-width: 699px) { .case-marks--ed ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-marks--ed li:nth-child(4n) { border-right: 1px solid rgba(29, 29, 31, .08); } .case-marks--ed li:nth-child(2n) { border-right: 0; } }

/* Apprentago hero: a portrait of Carlo on the right, the copy on the dark left */
.case-hero--appr { background: #0b0d14; }
.case-hero--appr .bleed__img { left: auto; width: 58%; object-position: 50% 20%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, #000 40%); }
.case-hero--appr .bleed__scrim { background: linear-gradient(0deg, rgba(11, 13, 20, .7) 0%, rgba(11, 13, 20, 0) 30%); } /* taste-skill-ignore: scrim for legibility */
.case-hero--appr .stage-hero__copy { max-width: 820px; }
.v2 .case-hero--appr .hero__title { font-size: clamp(2.5rem, 4.7vw, 4.9rem); }
.case-hero--appr .stage-hero__sub { max-width: 34ch; }
@media (max-width: 899px) {
  .case-hero--appr .bleed__img { width: 100%; opacity: .55; object-position: 50% 15%; -webkit-mask-image: none; mask-image: none; }
  .case-hero--appr .stage-hero__copy { max-width: none; }
  .case-hero--appr .bleed__scrim { background: linear-gradient(0deg, #0b0d14 0%, rgba(11, 13, 20, .85) 45%, rgba(11, 13, 20, .3) 100%); }
}
.case-nums__head:has(h2) { grid-template-columns: 1fr; gap: 2.5rem; }
.case-nums__head h2 { margin-top: .75rem; }
.press__photo { position: relative; margin: 0 0 clamp(24px, 3vw, 40px); overflow: hidden; border-radius: 24px; aspect-ratio: 21 / 9; }
.press__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.press__photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: .45rem .8rem; border-radius: 999px; background: rgba(13, 15, 23, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 12px; font-weight: 500; color: #fff; }
@media (max-width: 699px) { .press__photo { aspect-ratio: 4 / 3; } }

/* Phone galleries: the phone fills the card and rises from its lower edge, over a glow in the product's own colour */
.case-gallery .rail { counter-reset: flow; }
.case-gallery .tile--phone { background: radial-gradient(85% 55% at 50% 82%, color-mix(in srgb, var(--brand, var(--glow)) 62%, transparent) 0%, transparent 72%), linear-gradient(180deg, #0f1119 0%, color-mix(in srgb, var(--brand, var(--glow)) 30%, #0b0d14) 100%); } /* taste-skill-ignore: brand glow behind the device */
.case-gallery .tile--phone::after { display: none; }
.case-gallery .tile--phone .tile__top { position: relative; z-index: 1; padding-right: 4.5rem; }
.case-gallery .tile--phone .tile__top::after { counter-increment: flow; content: counter(flow, decimal-leading-zero); position: absolute; top: clamp(20px, 2.4vw, 32px); right: clamp(20px, 2.4vw, 32px); padding: .3rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: rgba(255, 255, 255, .8); }
.case-gallery .tile--phone .tile__art { position: absolute; inset: 31% 0 0 0; min-height: 0; padding: 0; }
.case-gallery .tile--phone .tile__art > .phone-bare { top: 0; bottom: auto; left: 50%; width: 60%; height: auto; max-width: 300px; translate: -50% 0; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); }
.case-gallery .tile--phone .tile__art > .device--phone { top: 0; bottom: auto; left: 50%; width: 60%; height: auto; max-width: 300px; translate: -50% 0; }
.case-gallery .tile--phone .tile__art > .device--phone img { width: 100%; height: auto; }
.case-gallery .tile--phone:hover .tile__art > .phone-bare, .case-gallery .tile--phone:hover .tile__art > .device--phone { translate: -50% -12px; }
@media (max-width: 899px) {
  .case-gallery .tile--phone { min-height: 520px; }
  .case-gallery .tile--phone .tile__art { inset: 30% 0 0 0; }
  .case-gallery .tile--phone .tile__art > .phone-bare, .case-gallery .tile--phone .tile__art > .device--phone { width: 64%; }
}

/* AP Partners tile: the case in one picture, the 30-minute roadmap against the 2-minute one */
.sc--ap { background: radial-gradient(70% 50% at 80% 45%, rgba(214, 170, 82, .26), transparent 70%), radial-gradient(60% 50% at 10% 95%, rgba(45, 91, 255, .3), transparent 70%), linear-gradient(165deg, #0E1A33 0%, #070B1C 100%); } /* taste-skill-ignore: brand scene */
.sc--ap::after { background: linear-gradient(180deg, rgba(7, 11, 28, .4) 0%, transparent 30%, transparent 60%, rgba(7, 11, 28, .8) 100%); }
.tile__ap { position: absolute; z-index: 0; left: clamp(20px, 2.4vw, 32px); right: clamp(20px, 2.4vw, 32px); top: 50%; translate: 0 -62%; display: grid; gap: 14px; padding: clamp(18px, 2vw, 26px); border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tile__ap-label { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.tile__ap-row { display: grid; grid-template-columns: 5.2rem 1fr 3.6rem; align-items: center; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.tile__ap-row em { font-style: normal; font-weight: 600; text-align: right; color: #fff; }
.tile__ap-bar { display: block; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tile__ap-bar b { display: block; width: var(--w); height: 100%; border-radius: inherit; background: rgba(255, 255, 255, .35); }
.tile__ap-row--now .tile__ap-bar b { min-width: 14px; background: linear-gradient(90deg, #E9C46A, #D6AA52); box-shadow: 0 0 16px rgba(233, 196, 106, .7); }
.tile__ap-row--now em { color: #E9C46A; }
a.tile--ap .tile__ap { transition: translate 1.2s var(--ease); }
a.tile--ap:hover .tile__ap { translate: 0 calc(-62% - 6px); }

/* Browser-scene tiles on tablets: a little more room for the caption */
@media (min-width: 700px) and (max-width: 1023px) { .tile__bscene { left: 46%; } .tile.tile--browserscene .tile__top, .tile.tile--browserscene .tile__foot { max-width: 44%; } }

@media (min-width: 700px) and (max-width: 1023px) { .tile.tile--scene .tile__top, .tile.tile--scene .tile__foot { max-width: 40%; } .tile--scene .tile__scene { left: 38%; } }

/* ToothPal: warm charcoal with the brand's yellow */
.sc--toothpal { --g: radial-gradient(70% 90% at 85% 100%, rgba(255, 196, 73, .42), transparent 70%), linear-gradient(160deg, #24211C 0%, #100F0C 100%); }
.sc--toothpal .sc__logo { filter: none; height: 44px; top: 18px; border-radius: 10px; }

/* One product feature: copy beside a large browser frame (Mixology AI search) */
.case-feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.case-feature__copy h2 { margin: .5rem 0 1.25rem; }
.case-feature__shot { margin: 0; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 40px 80px -36px rgba(6, 7, 12, .45), 0 0 0 1px var(--line); }
.case-feature__shot img { display: block; width: 100%; height: auto; }
@media (max-width: 1023px) { .case-feature { grid-template-columns: 1fr; } }
.sc--awaken { --g: radial-gradient(80% 70% at 50% 100%, rgba(120, 180, 220, .4), transparent 70%), linear-gradient(160deg, #183247 0%, #0A1925 100%); }
/* Phone scenes on a full-width board card: smaller phones, so they read as a set */
@media (min-width: 1024px) {
  .cboard .s12 .tile--scene .tile__scene { left: 44%; }
  .cboard .s12 .tile--scene .tile__scene .sc__ph { width: 25%; bottom: -16%; }
  .cboard .s12 .tile--scene .tile__scene .sc__ph--l { left: 12%; }
  .cboard .s12 .tile--scene .tile__scene .sc__ph--r { right: 12%; }
  .cboard .s12 .tile--scene .tile__scene .sc__ph--c { width: 29%; bottom: -24%; }
}

/* Two product screens side by side (Mixology platform) */
.case-pair__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.case-pair__item { margin: 0; }
.case-pair__item figcaption { margin-top: 1rem; font-size: var(--step-small); line-height: 1.5; color: var(--soft); }
.case-pair__item figcaption b { display: block; margin-bottom: .2rem; font-size: var(--step-body); font-weight: 600; color: var(--ink); }
@media (max-width: 899px) { .case-pair__grid { grid-template-columns: 1fr; } }

/* A shipped website: one large browser frame, then a row of pages */
.site-shot { margin: 0; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -36px rgba(6, 7, 12, .45), 0 0 0 1px var(--line); }
.site-shot__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #EEEBE6; }
.site-shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(6, 7, 12, .18); }
.site-shot__bar span { margin: 0 auto; padding: 2px 12px; border-radius: 6px; background: rgba(255, 255, 255, .75); font-size: 10px; color: var(--soft); }
.site-shot img { display: block; width: 100%; height: auto; }
.site-live { display: inline-block; margin-top: .75rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; padding: 0; list-style: none; }
.site-grid p { margin-top: .75rem; font-size: var(--step-small); font-weight: 600; color: var(--ink); }
@media (max-width: 1099px) { .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-sec .head > div:first-child { flex: 1 1 24rem; }
.site-sec .head > .sub { flex: 0 1 32rem; }

/* Client marks: 16 clients, two even rows of eight; inline SVG marks size like the images */
.case-marks--ed .mark-svg { display: block; width: auto; height: var(--h, 32px); max-width: 100%; overflow: visible; }
@media (min-width: 1024px) {
  .case-marks--ed ul { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .case-marks--ed li:nth-child(7n) { border-right: 1px solid rgba(29, 29, 31, .08); }
  .case-marks--ed li:nth-child(8n) { border-right: 0; }
  .case-marks--ed li:nth-last-child(-n+7) { border-bottom: 1px solid rgba(29, 29, 31, .08); }
  .case-marks--ed li:nth-last-child(-n+8) { border-bottom: 0; }
}

/* Stitch scene: two framed phone screens on warm brown (board tile and portfolio card) */
.tile--stitch { --g: radial-gradient(80% 70% at 70% 100%, rgba(253, 240, 218, .3), transparent 70%), linear-gradient(160deg, #8B5A36 0%, #4A2C18 100%); background: var(--g) !important; isolation: isolate; }
.sc-st { position: absolute; inset: 0 0 0 46%; z-index: -1; overflow: hidden; pointer-events: none; }
.sc-st img { position: absolute; bottom: -18%; width: 40%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.sc-st__a { left: 10%; transform: rotate(-6deg); }
.sc-st__b { right: 8%; bottom: -26% !important; width: 44% !important; transform: rotate(5deg); }
a:hover .sc-st__a { transform: rotate(-8deg) translateY(-3%); }
a:hover .sc-st__b { transform: rotate(7deg) translateY(-3%); }
.tile--stitch .tile__top, .tile--stitch .tile__foot { position: relative; z-index: 1; max-width: 48%; }
.pf__scene .sc-st { inset: 0; }
.pf__scene .sc-st img { width: 42%; bottom: -30%; }
.pf__scene .sc-st__a { left: 8%; }
.pf__scene .sc-st__b { right: 8%; width: 46% !important; bottom: -38% !important; }
@media (max-width: 699px) {
  .sc-st { position: relative; inset: auto; height: 300px; margin: .75rem -1px 0; border-radius: 14px; }
  .tile--stitch .tile__top, .tile--stitch .tile__foot { max-width: none; }
}
/* Client marks: 17 clients, nine then eight, centred */
@media (min-width: 1024px) {
  .case-marks--ed ul { display: flex; flex-wrap: wrap; justify-content: center; }
  .case-marks--ed li { flex: 0 0 calc(100% / 9); border-right: 1px solid rgba(29, 29, 31, .08) !important; border-bottom: 1px solid rgba(29, 29, 31, .08) !important; }
  .case-marks--ed li:nth-child(9n), .case-marks--ed li:last-child { border-right: 0 !important; }
  .case-marks--ed li:nth-child(n+10) { border-bottom: 0 !important; }
}

/* AP Partners card on phones: the roadmap box sits in the flow between headline and figure instead of over it */
@media (max-width: 699px) {
  .tile.tile--ap { height: auto; min-height: 0; }
  .tile--ap .tile__top { order: 0; }
  .tile--ap .tile__ap { position: relative; inset: auto; top: auto; left: auto; right: auto; translate: none; order: 1; margin: 1.25rem 0 1.5rem; }
  a.tile--ap:hover .tile__ap { translate: none; }
  .tile--ap .tile__foot { order: 2; margin-top: auto; }
}

/* SanKam: the app's seven flows as chips, then the full design file */
.sk-app .head > div:first-child { flex: 1 1 24rem; } .sk-app .head > .sub { flex: 0 1 34rem; }
.sk-flows { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); padding: 0; list-style: none; }
.sk-flows li { padding: .5rem .9rem; border-radius: 999px; background: #FFF1E8; color: #B4501A; font-size: var(--step-small); font-weight: 600; }
.sk-board { margin: 0; overflow: hidden; border-radius: 20px; background: #F3F3F3; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(6, 7, 12, .45); }
.sk-board img { display: block; width: 100%; height: auto; }
.sk-note { color: var(--soft); }
.sc--sankam { --g: radial-gradient(70% 90% at 80% 100%, rgba(232, 106, 36, .55), transparent 70%), linear-gradient(160deg, #24150C 0%, #0B0806 100%); }
/* Phones that carry their own device frame: drop the CSS bezel */
.sc__ph.sc__ph--framed { padding: 0; background: none; box-shadow: none; border-radius: 0; aspect-ratio: 695 / 1430; }
.sc__ph.sc__ph--framed img { border-radius: 0; background: none; object-fit: contain; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .45)); }
/* SanKam App Store screens: a shelf of six, scrolling on smaller screens */
.sk-store { background: #141110; }
.sk-shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); max-width: 1480px; list-style: none; }
.sk-shelf img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.sk-shelf li:hover img { transform: translateY(-6px); }
.sk-shelf p { margin-top: .9rem; font-size: var(--step-small); line-height: 1.45; color: rgba(255, 255, 255, .6); }
.sk-shelf b { display: block; margin-bottom: .15rem; font-size: var(--step-body); font-weight: 600; color: #fff; }
@media (max-width: 1099px) {
  .sk-shelf { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; scroll-padding-left: clamp(20px, 5vw, 80px); }
  .sk-shelf::-webkit-scrollbar { display: none; }
  .sk-shelf li { flex: none; width: clamp(200px, 30vw, 260px); scroll-snap-align: start; }
}
@media (max-width: 599px) { .sk-shelf li { width: 62vw; } }

/* Product galleries (ToothPal, Shyft): title on top, screenshot fills the width of the card below it */
@media (min-width: 700px) {
  .case-gallery figure.tile--wide.tile--device .tile__top { max-width: none; }
  .case-gallery figure.tile--wide.tile--device .tile__shot { position: absolute; top: auto; left: clamp(20px, 2.4vw, 32px); right: -3%; bottom: -5%; width: auto; margin: 0; }
}
/* Galleries: on tablet the screenshot sits below the title; on phone the card hugs its content */
@media (min-width: 700px) and (max-width: 1099px) {
  .case-gallery figure.tile--wide.tile--device .tile__shot { top: 38%; bottom: auto; }
}
@media (max-width: 699px) {
  .case-gallery figure.tile--wide.tile--device { height: auto; min-height: 0; }
  .case-gallery figure.tile--wide.tile--device .tile__shot { position: relative; width: auto; margin: 1rem -6% -1.5rem 0; }
}
/* Stitch card: phones sit above the legibility scrim; the scrim only covers the text side */
.tile--stitch .sc-st { z-index: 0; }
.tile--stitch::after { background: linear-gradient(90deg, rgba(6, 7, 12, .55) 0%, rgba(6, 7, 12, .25) 42%, rgba(6, 7, 12, 0) 60%) !important; }
@media (max-width: 699px) { .tile--stitch::after { background: linear-gradient(to bottom, rgba(6, 7, 12, .5) 0%, rgba(6, 7, 12, 0) 35%, rgba(6, 7, 12, 0) 60%, rgba(6, 7, 12, .7) 100%) !important; } }

/* VisaViz: founder and product film */
.vv-founder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.vv-founder__pic { margin: 0; overflow: hidden; border-radius: 28px; aspect-ratio: 1; background: #E9EDF4; box-shadow: 0 40px 80px -40px rgba(13, 27, 62, .45); }
.vv-founder__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vv-founder__txt h2 { margin: .5rem 0 1.25rem; }
.vv-founder__name { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--step-small); color: var(--soft); }
.vv-founder__name b { display: block; margin-bottom: .15rem; font-size: var(--step-body); font-weight: 600; color: var(--ink); }
.vv-film .head > div:first-child { flex: 1 1 24rem; } .vv-film .head > .sub { flex: 0 1 32rem; }
.vv-video { margin: 0; overflow: hidden; border-radius: 20px; background: #0D1B3E; box-shadow: 0 50px 100px -50px rgba(13, 27, 62, .6); }
.vv-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
@media (max-width: 899px) { .vv-founder { grid-template-columns: 1fr; } .vv-founder__pic { max-width: 420px; } }
.sc--visaviz { --g: radial-gradient(80% 80% at 80% 100%, rgba(37, 99, 235, .45), transparent 70%), linear-gradient(160deg, #13244F 0%, #08122B 100%); }
/* Client marks: 20 clients, two rows of ten */
@media (min-width: 1024px) {
  .case-marks--ed li { flex: 0 0 10%; padding: 0 clamp(10px, 1.2vw, 20px); }
  .case-marks--ed li:nth-child(9n) { border-right: 1px solid rgba(29, 29, 31, .08) !important; }
  .case-marks--ed li:nth-child(10n), .case-marks--ed li:last-child { border-right: 0 !important; }
  .case-marks--ed li:nth-child(n+10) { border-bottom: 1px solid rgba(29, 29, 31, .08) !important; }
  .case-marks--ed li:nth-child(n+11) { border-bottom: 0 !important; }
}
@media (min-width: 1100px) { .case-gallery figure.tile--wide.tile--device .tile__shot { top: 34%; bottom: auto; } }
/* Care Marketplace: text wordmark chip and map images */
.cm-mark { padding: 0 18px; }
.cm-mark span { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: #6D3FD9; white-space: nowrap; }
.cm-frame { background: transparent !important; box-shadow: none !important; }
.cm-frame img { object-fit: contain; }
.cm-map { display: block; width: 100%; height: auto; }
.cm-note { color: var(--soft); }
.sc--cm { --g: radial-gradient(80% 80% at 80% 100%, rgba(140, 90, 230, .45), transparent 70%), linear-gradient(160deg, #2A1B4E 0%, #120B24 100%); }
.sc--cm .sc__window { background: none; box-shadow: none; }
.case-nums--facts .case-nums__head { margin-bottom: 0; } .case-nums--facts { padding-bottom: clamp(2rem, 4vw, 3rem); }
.case-nums--facts .case-nums__head { padding-bottom: 0; border-bottom: 0; align-items: center; }
/* ManaShakti */
.mana-mark { background: #0E0F16 !important; padding: 0 18px; }
.mana-mark img { height: 30px; width: auto; }
.v2 .mana-app { margin-inline: 8px; border-radius: 32px; background: linear-gradient(180deg, #E4E8FB 0%, #C8D1F7 100%); }
.mana-app .head > div:first-child { flex: 1 1 24rem; } .mana-app .head > .sub { flex: 0 1 32rem; }
.mana-app__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(16px, 2.4vw, 40px); align-items: center; }
.mana-app__grid figure { margin: 0; }
.mana-app__grid img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(40, 50, 120, .3)); }
.mana-app__aura img { border-radius: 18px; }
.mana-app__grid figcaption { margin-top: 1rem; font-size: var(--step-small); line-height: 1.5; color: rgba(20, 22, 50, .7); }
.mana-app__grid figcaption b { display: block; margin-bottom: .15rem; font-size: var(--step-body); font-weight: 600; color: #14163A; }
@media (max-width: 899px) { .mana-app__grid { grid-template-columns: 1fr 1fr; } .mana-app__aura { grid-column: 1 / -1; } }
.sc--mana { --g: radial-gradient(70% 80% at 80% 100%, rgba(90, 110, 230, .5), transparent 70%), linear-gradient(160deg, #1C1F3E 0%, #0B0C18 100%); }
/* Client marks: 21 clients, rows of eleven and ten */
@media (min-width: 1024px) { .case-marks--ed li { flex: 0 0 calc(100% / 11); } .case-marks--ed li:nth-child(10n) { border-right: 1px solid rgba(29, 29, 31, .08) !important; } .case-marks--ed li:nth-child(11n), .case-marks--ed li:last-child { border-right: 0 !important; } .case-marks--ed li:nth-child(n+11) { border-bottom: 1px solid rgba(29, 29, 31, .08) !important; } .case-marks--ed li:nth-child(n+12) { border-bottom: 0 !important; } }
/* Care Marketplace prototype */
.cm-proto .head > div:first-child { flex: 1 1 24rem; } .cm-proto .head > .sub { flex: 0 1 34rem; }
.cm-proto__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.cm-proto__steps { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.cm-proto__steps li { position: relative; padding-left: 2.6rem; font-size: var(--step-small); line-height: 1.5; color: var(--soft); counter-increment: s; }
.cm-proto__steps li::before { content: counter(s); position: absolute; left: 0; top: .1rem; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #EFE8FF; color: #6D3FD9; font-size: 13px; font-weight: 700; }
.cm-proto__steps b { display: block; margin-bottom: .15rem; font-size: var(--step-body); font-weight: 600; color: var(--ink); }
.cm-flow { background: #fff; }
@media (max-width: 899px) { .cm-proto__grid { grid-template-columns: 1fr; } }

/* ManaShakti: a scrolling rail of app screens */
.mana-rail { margin-top: clamp(1.5rem, 4vw, 3rem); }
.mana-rail__track { display: flex; gap: clamp(16px, 2vw, 32px); margin: 0; padding: 24px max(clamp(20px, 5vw, 80px), calc((100vw - 1440px) / 2 + 80px)) 40px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(clamp(20px, 5vw, 80px), calc((100vw - 1440px) / 2 + 80px)); scrollbar-width: none; overscroll-behavior-x: contain; }
.mana-rail__track::-webkit-scrollbar { display: none; }
.mana-rail__track li { flex: none; width: clamp(190px, 15.5vw, 230px); scroll-snap-align: start; }
.mana-rail figure { margin: 0; }
.mana-rail img { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 34px rgba(40, 50, 120, .28)); }
.mana-rail figcaption { margin-top: 1rem; font-size: var(--step-small); line-height: 1.5; color: rgba(20, 22, 50, .7); }
.mana-rail figcaption b { display: block; margin-bottom: .15rem; font-size: var(--step-body); font-weight: 600; color: #14163A; }
.mana-rail__ctl { display: flex; justify-content: flex-end; gap: 10px; margin-top: .25rem; }
.mana-rail__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #14163A; color: #fff; font: 500 18px/1 Montserrat, sans-serif; cursor: pointer; transition: transform .3s; }
.mana-rail__btn:hover { transform: scale(1.06); }
@media (max-width: 599px) { .mana-rail__track li { width: 62vw; } }

/* Care Marketplace: three rows of prototype screens */
.cm-tour .head > div:first-child { flex: 1 1 24rem; } .cm-tour .head > .sub { flex: 0 1 34rem; }
.cm-tour__row + .cm-tour__row { margin-top: clamp(2.5rem, 5vw, 4rem); }
.cm-tour__k { margin-bottom: 1.1rem; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6D3FD9; }
.cm-tour__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 28px); margin: 0; padding: 0; list-style: none; }
.cm-tour figure { margin: 0; }
.cm-tour img { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -34px rgba(60, 30, 120, .45); transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.cm-tour li:hover img { transform: translateY(-4px); }
.cm-tour figcaption { margin-top: .9rem; font-size: var(--step-small); line-height: 1.5; color: var(--soft); }
.cm-tour figcaption b { display: block; margin-bottom: .15rem; font-size: var(--step-body); font-weight: 600; color: var(--ink); }
.cm-tour .cm-note { margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 899px) {
  .cm-tour__list { display: flex; gap: 14px; margin-inline: calc(-1 * clamp(20px, 5vw, 80px)); padding: 0 clamp(20px, 5vw, 80px) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: clamp(20px, 5vw, 80px); scrollbar-width: none; }
  .cm-tour__list::-webkit-scrollbar { display: none; }
  .cm-tour__list li { flex: none; width: min(78vw, 520px); scroll-snap-align: start; }
}

/* Stitch tile: three phones (home, Knit AI centre, Playground) */
.sc-st.sc-st--3 img { width: 32%; bottom: -16%; }
.sc-st--3 .sc-st__a { left: 3%; transform: rotate(-8deg); }
.sc-st--3 .sc-st__b { left: 50%; right: auto; z-index: 2; width: 38% !important; bottom: -24% !important; transform: translateX(-50%); }
.sc-st--3 .sc-st__c { right: 3%; transform: rotate(8deg); }
a:hover .sc-st--3 .sc-st__a { transform: rotate(-10deg) translateY(-3%); }
a:hover .sc-st--3 .sc-st__b { transform: translateX(-50%) translateY(-3%); }
a:hover .sc-st--3 .sc-st__c { transform: rotate(10deg) translateY(-3%); }

/* phone scenes: size the phones by the card's height so every phone sits whole inside the card */
.tile--scene .tile__scene { overflow: hidden; }
.tile--scene .tile__scene .sc__ph, .tile--scene .tile__scene .sc__device--c { top: auto; width: auto !important; height: 70% !important; bottom: 7% !important; }
.tile--scene .tile__scene .sc__ph--c, .tile--scene .tile__scene .sc__device--c { height: 84% !important; bottom: 5% !important; }
.tile--scene .tile__scene .sc__ph--l { left: 4% !important; }
.tile--scene .tile__scene .sc__ph--r { right: 4% !important; }

/* phone cards: three equal phones in one real device frame, straight and evenly spaced */
.tile--scene .tile__scene:has(.sc__ph--framed) { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2.2%, 22px); padding: 0 4%; }
.tile--scene .tile__scene .sc__ph.sc__ph--framed { position: static !important; flex: none; width: auto !important; height: 74% !important; aspect-ratio: 720 / 1473; transform: none !important; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile--scene .tile__scene .sc__ph--framed img { filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .28)); }
.tile--scene .tile__scene .sc__ph--l { order: 1; } .tile--scene .tile__scene .sc__ph--c { order: 2; } .tile--scene .tile__scene .sc__ph--r { order: 3; }
a.tile--scene:hover .tile__scene .sc__ph--framed { transform: translateY(-3%) !important; }
a.tile--scene:hover .tile__scene .sc__ph--framed.sc__ph--c { transform: translateY(-5%) !important; }
/* the three phones always fit: sized by the card's height or width, whichever runs out first */
.tile--scene .tile__scene:has(.sc__ph--framed) { container-type: size; }
.tile--scene .tile__scene .sc__ph.sc__ph--framed { height: min(74cqh, calc((100cqw - 8cqw - 2 * clamp(10px, 2.2cqw, 22px)) / 3 / .4888)) !important; }

/* Care Marketplace: the mobile screens, three phones on a soft panel */
.cm-tour__phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); margin: 0; padding: clamp(28px, 4vw, 56px) clamp(24px, 6vw, 96px); list-style: none; border-radius: 24px; background: #F1ECFA; }
.cm-tour__phones img { display: block; width: 100%; max-width: 260px; height: auto; margin-inline: auto; filter: drop-shadow(0 26px 32px rgba(60, 30, 120, .22)); }
.cm-tour__phones p { max-width: 260px; margin: 1.1rem auto 0; font-size: var(--step-small); line-height: 1.5; color: var(--soft); }
.cm-tour__phones b { display: block; margin-bottom: .15rem; font-size: var(--step-body); font-weight: 600; color: var(--ink); }
@media (max-width: 599px) { .cm-tour__phones { gap: 10px; padding: 20px 14px; } .cm-tour__phones p { font-size: 12px; } .cm-tour__phones b { font-size: 13px; } }
.cm-tour .cm-tour__phones img { border-radius: 0; background: none; box-shadow: none; }

/* unframed phone trios: size from the tile's width as well as its height, so the outer phones never outgrow the scene and get clipped on wide screens */
.tile--scene .tile__scene:not(:has(.sc__ph--framed)) { container-type: size; }
.tile--scene .tile__scene:not(:has(.sc__ph--framed)) .sc__ph { height: min(70cqh, calc(27cqw / .4613)) !important; }
.tile--scene .tile__scene:not(:has(.sc__ph--framed)) .sc__ph--c { height: min(84cqh, calc(33cqw / .4613)) !important; }
.tile--scene .tile__scene:not(:has(.sc__ph--framed)) .sc__ph--l { left: 5% !important; }
.tile--scene .tile__scene:not(:has(.sc__ph--framed)) .sc__ph--r { right: 5% !important; }
/* Phone bezels are sized to the phone itself, not the card, so they stay slim at every width */
.sc__ph:not(.sc__ph--framed) { container-type: inline-size; padding: 0; background: none; }
.sc__ph:not(.sc__ph--framed) img { box-sizing: border-box; border: 2.4cqw solid #0D0B12; border-radius: 13% / 6%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.sc--pocket .sc__ph:not(.sc__ph--framed) img { border-width: 2cqw; border-color: #0A0A0A; box-shadow: 0 0 0 1.2cqw #CDC9B8, 0 0 0 calc(1.2cqw + 1px) rgba(0, 0, 0, .25); }
