/* ========== Tokens ========== */
:root {
  --ink: #1e1310;
  --ink-2: #241613;
  --bg: #eeeded;
  --line: #deccc6;
  --line-soft: #e4e3ff;
  --radius-card: 24px;
  --container: 1128px;
  --gutter: 16px;
  --grad: linear-gradient(90deg, #ebc2e8 0%, #ceccf6 100%);
  --border-grad: linear-gradient(135deg, #deccc6 0%, #e4c9e6 50%, #cfc2f6 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: clip;
  position: relative;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ========== Background blobs ========== */
.blobs {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1231px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.blobs img {
  position: absolute;
  top: -439px;
  left: calc(50% - 720px + 35px);
  width: 1686px;
  height: 1670px;
  max-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent 88%);
  mask-image: linear-gradient(90deg, #000 80%, transparent 88%);
}

/* ========== Nav ========== */
.nav-wrap {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-top: 48px;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 8px 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav__link {
  padding: 8px 10px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 9999px;
  transition: background .2s;
}
.nav__link.is-active { font-weight: 700; }
.nav__link:hover { background: rgba(255, 255, 255, 0.5); }
.nav__link:focus-visible, .btn:focus-visible, .card:focus-visible, .socials a:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}

/* ========== Hero ========== */
.hero {
  width: min(100% - 2 * var(--gutter), 1140px);
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero__hi { display: flex; align-items: center; gap: 10px; font-size: 32px; font-weight: 300; }
.avatar { position: relative; width: 63px; height: 63px; flex: none; border-radius: 50%; overflow: hidden; }
.avatar__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.avatar__img { position: absolute; left: -20.25%; top: 0; width: 144.4%; height: 169.8%; max-width: none; object-fit: cover; }
.hero__title { font-size: 56px; font-weight: 700; line-height: 1.21; }
.hero__lead { font-size: 32px; font-weight: 300; line-height: 44px; color: var(--ink-2); max-width: 1073px; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 34px;
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(30, 19, 16, .5); }

/* ========== Sections ========== */
.section { padding-top: 120px; display: flex; flex-direction: column; gap: 56px; }
.section__title { font-size: 64px; font-weight: 700; text-align: center; line-height: 1.2; }
.upper { text-transform: uppercase; }

/* ========== Work cards ========== */
.work-grid {
  display: grid;
  grid-template-columns: 648fr 456fr;
  gap: 23px 24px;
}
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 529px;
  padding: 40px 32px;
  border-radius: var(--radius-card);
  isolation: isolate;
}
.card--spentify { grid-column: 1 / -1; height: 310px; }
.card__head { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card__title { font-weight: 400; }
.card__title b { font-weight: 700; }
.card__title--lg { font-size: 38px; line-height: 60px; letter-spacing: .02em; max-width: 511px; }
.card--spentify .card__title--lg { max-width: 659px; letter-spacing: 0; }
.card__title--semi b { font-weight: 600; }
.card__title--md { font-size: 28px; line-height: 48px; max-width: 392px; }
.card__name { position: relative; z-index: 1; font-size: 24px; font-weight: 700; }
.card__name--lato { font-family: "Lato", sans-serif; font-weight: 600; }
.tag {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 9999px;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
}
.tag--rose { background: #ffd3d3; color: #7d5454; }
.tag--peach { background: #ffded3; color: #6b321f; }
.tag--lilac { background: #cfcdff; color: #2e2c67; font-weight: 600; }

/* Mockups: rotated screens anchored to the card's bottom-right corner
   (offsets taken from Figma), so the crop stays identical at every width.
   --s scales them per breakpoint. */
.mock {
  --s: 1;
  position: absolute;
  z-index: 0;
  width: calc(var(--w) * var(--s));
  height: calc(var(--h) * var(--s));
  right: calc(var(--x) * var(--s));
  bottom: calc(var(--y) * var(--s));
  border-radius: 12px;
  overflow: hidden;
  transform: rotate(var(--r));
  transition: translate .5s cubic-bezier(.2, .7, .2, 1);
}
.mock img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.card:hover .mock { translate: -6px -6px; }
.mock--capiter { --w: 546.376px; --h: 373.737px; --r: -20.22deg; --x: -95.6px; --y: -50.7px; }
.mock--homzmart { --w: 337.068px; --h: 1053.917px; --r: -13.24deg; --x: -158.25px; --y: -686.5px; box-shadow: 0 0 30px -9px rgba(0,0,0,.1); }
.mock--spentify-report { --w: 234.685px; --h: 507.882px; --r: -30deg; --x: 64.05px; --y: -335.61px; }
.mock--spentify-home { --w: 203px; --h: 438px; --r: -26.74deg; --x: 37.38px; --y: -178.93px; box-shadow: 0 20px 50px 10px rgba(0,0,0,.05); }

/* Transparent cards with a 1px gradient border (lets the page background show through) */
.card::before, .shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: var(--border-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ========== Selected UI (full-bleed strip) ========== */
.section--ui { gap: 56px; }
.ui-strip {
  --shot-w: 550px;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.ui-strip::-webkit-scrollbar { display: none; }
.ui-strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.ui-strip.is-dragging img { pointer-events: none; }
.ui-strip__row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: max-content;
  margin-inline: auto;
}
.shot {
  position: relative;
  flex: none;
  width: var(--shot-w);
  height: calc(var(--shot-w) * 391 / 550);
  overflow: hidden;
  border-radius: var(--radius-card);
  scroll-snap-align: center;
}
.shot img { position: absolute; display: block; max-width: none; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.shot__product { left: 29.27%; top: 13.3%; width: 61.09%; height: 144.5%; border-radius: 16px; }
.shot__landing { left: 9.27%; top: 6.91%; width: 50.55%; height: 129.92%; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.shot--02 img { left: 18%; top: 7.42%; width: 60.73%; height: 87.21%; }
.shot--04 img { left: 48.18%; top: 50.13%; width: 87.64%; height: 87.47%; transform: translate(-50%, -50%); border-radius: 8px; }
.shot--center img { left: 50%; top: 50.13%; transform: translate(-50%, -50%); border-radius: 8px; }
.shot--03 img { width: 83.27%; height: 78.26%; }
.shot--05 img { width: 85.82%; height: 85.93%; }

.ui-nav { display: flex; justify-content: center; gap: 12px; margin-top: -24px; }
.ui-nav__btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, transform .2s, opacity .2s;
}
.ui-nav__btn::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: var(--border-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.ui-nav__btn:hover { background: #fff; transform: scale(1.06); }
.ui-nav__btn:disabled { opacity: .35; cursor: default; transform: none; }
.ui-nav__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ========== Art page ========== */
.hero--art { gap: 16px; }
.hero__title--art { font-size: 48px; }
.art { padding-top: 120px; width: min(100% - 2 * var(--gutter), 1102px); }
.art__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 62px 53px;
}
.art__tile {
  position: relative;
  aspect-ratio: 332 / 454;
  padding: 0; border: 0;
  overflow: hidden;
  background: #e2dfdf;
  cursor: zoom-in;
}
.art__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.art__tile:hover img { transform: scale(1.04); }
.art__tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.art__img--c2 { object-position: 50% 0; }
.art__img--c8 { object-position: 47% 45%; }
.art__img--c12 { object-position: 50% 45%; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 56px 72px;
  border: 0;
  background: rgba(20, 12, 10, .92);
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 112px); object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.lightbox__close, .lightbox__arrow {
  position: absolute;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
}
.lightbox__close:hover, .lightbox__arrow:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__arrow { top: 50%; translate: 0 -50%; }
.lightbox__arrow--prev { left: 16px; }
.lightbox__arrow--next { right: 16px; }

/* ========== Contact ========== */
.contact { padding-top: 120px; display: flex; flex-direction: column; align-items: center; gap: 64px; text-align: center; }
.contact__head { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.contact__title { font-size: 64px; font-weight: 600; text-transform: uppercase; line-height: 1.2; }
.contact__sub { font-size: 24px; line-height: 36px; }
.socials {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 55px;
}
.socials a { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; min-width: 180px; }
.socials li:last-child a { min-width: 0; }
.socials__icon {
  width: 48px; height: 48px;
  border-radius: 28px;
  background: var(--c);
  display: grid;
  place-items: center;
  transition: transform .2s;
}
.socials__icon .icon { color: var(--ink); }
.socials a:hover .socials__icon { transform: scale(1.08) rotate(-6deg); }

/* ========== Footer ========== */
.footer {
  width: min(100% - 2 * var(--gutter), 1130px);
  margin-top: 64px;
  margin-bottom: 60px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 36px;
}
.footer__love { display: inline-flex; align-items: center; gap: 6px; }
.footer__love .icon { margin-left: 2px; }

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .hero__title { font-size: 48px; }
  .hero__lead { font-size: 26px; line-height: 38px; }
  .section__title, .contact__title { font-size: 52px; }
  .card__title--lg { font-size: 32px; line-height: 50px; max-width: 440px; }
  .mock--capiter { --s: .9; }
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .card, .card--spentify { height: 480px; }
  .card--homzmart .card__title--md { max-width: 360px; }
  .mock--capiter { --s: 1; }
  .mock--homzmart { --s: 1.05; }
  .mock--spentify-report, .mock--spentify-home { --s: 1.1; }
  .ui-strip { --shot-w: min(550px, 72vw); }
  .hero__title--art { font-size: 40px; }
  .art__grid { gap: 32px 24px; }
}

@media (max-width: 640px) {
  :root { --radius-card: 20px; }
  .nav-wrap { padding-top: 24px; }
  .nav { gap: 4px; padding: 6px 12px; }
  .nav__link { font-size: 16px; }
  .hero { padding-top: 40px; }
  .hero__hi { font-size: 22px; }
  .avatar { width: 52px; height: 52px; }
  .hero__title { font-size: 34px; line-height: 1.2; }
  .br-lg { display: none; }
  .hero__lead { font-size: 20px; line-height: 30px; }
  .btn { padding: 14px 28px; font-size: 16px; margin-top: 8px; }

  .section, .contact { padding-top: 80px; }
  .section { gap: 32px; }
  .section__title, .contact__title { font-size: 36px; }
  .contact { gap: 40px; }
  .contact__sub { font-size: 18px; line-height: 28px; }

  .card, .card--spentify { height: 470px; padding: 24px 22px; justify-content: flex-start; gap: 10px; }
  .card--spentify { height: 420px; }
  .card__name { order: -1; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
  .card__title--lg { font-size: 26px; line-height: 38px; letter-spacing: 0; }
  .card__title--md { font-size: 24px; line-height: 36px; }
  .avatar { width: 52px; height: 52px; }
  .mock--capiter { --s: .7; }
  .mock--homzmart { --s: .78; }
  .mock--spentify-report, .mock--spentify-home { --s: .74; }

  .ui-strip { --shot-w: min(550px, 84vw); }
  .ui-strip__row { gap: 16px; }
  .ui-nav { margin-top: -8px; }
  .hero__title--art { font-size: 32px; }
  .art { padding-top: 64px; }
  .art__grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .lightbox { padding: 64px 12px; }
  .lightbox__arrow { top: auto; bottom: 16px; translate: none; }

  .socials { flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 20px; }
  .socials a, .socials li:last-child a { width: auto; min-width: 0; }
  .socials__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .socials__icon { width: 52px; height: 52px; }

  .footer { justify-content: center; text-align: center; margin-bottom: 32px; font-size: 14px; line-height: 28px; }
}


/* ========== Case study ========== */
.cs-wrap { width: min(100% - 2 * var(--gutter), 934px); margin-inline: auto; }
.cs-hero { padding-top: 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cs-back {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 600;
  margin-bottom: 12px;
}
.cs-back__icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #ffbfbf, #ffeaea);
  color: #722d2d;
  transition: transform .2s;
}
.cs-back:hover .cs-back__icon { transform: translateX(-3px); }
.cs-title { font-size: 56px; line-height: 1.15; font-weight: 400; letter-spacing: -.01em; }
.cs-title b { font-weight: 700; }
.cs-lead { font-size: 24px; line-height: 36px; font-weight: 300; color: var(--ink-2); max-width: 820px; }
.cs-meta {
  width: 100%;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 24px;
  padding: 28px 32px;
  border-radius: var(--radius-card);
  position: relative;
  background: rgba(255, 255, 255, .35);
}
.cs-meta::before, .cs-card::before, .cs-callout::before, .cs-map::before, .cs-quote::before, .cs-next__card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: var(--border-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.cs-meta__item dt { font-size: 14px; font-weight: 500; opacity: .6; margin-bottom: 6px; }
.cs-meta__item dd { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; }

.cs-cover { margin-top: 64px; margin-bottom: 0; aspect-ratio: 935 / 500; border-radius: 40px; overflow: hidden; }
.cs-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

.cs-section { padding-top: 120px; display: flex; flex-direction: column; gap: 24px; }
.cs-eyebrow { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.cs-num { font-size: 18px; font-weight: 700; color: #6d3221; padding: 4px 12px; border-radius: 9999px; background: linear-gradient(90deg, #ffded3, #ffeaea); }
.cs-h2 { font-size: 44px; line-height: 1.2; font-weight: 700; max-width: 860px; }
.cs-h3 { font-size: 32px; line-height: 1.25; font-weight: 700; margin-top: 16px; }
.cs-h4 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.cs-p { font-size: 20px; line-height: 32px; font-weight: 400; max-width: 888px; }
.cs-p--muted { font-size: 18px; line-height: 30px; opacity: .75; }

.cs-grid { display: grid; gap: 24px; }
.cs-grid--1 { grid-template-columns: 1fr; }
.cs-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cs-grid--3 { grid-template-columns: repeat(3, 1fr); }

.cs-card { position: relative; padding: 28px; border-radius: var(--radius-card); background: rgba(255, 255, 255, .35); font-size: 18px; line-height: 28px; }
.cs-card--reflect { display: flex; flex-direction: column; gap: 16px; padding: 36px; font-size: 20px; line-height: 34px; }

.cs-callout { position: relative; padding: 32px 36px; border-radius: var(--radius-card); background: rgba(255, 255, 255, .45); }
.cs-callout--rose { background: linear-gradient(135deg, rgba(255, 211, 211, .7), rgba(207, 205, 255, .5)); }
.cs-callout__label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #722d2d; margin-bottom: 10px; }
.cs-callout__text { font-size: 26px; line-height: 38px; font-weight: 600; }

.cs-photo { margin: 0; aspect-ratio: 455 / 300; border-radius: 30px; overflow: hidden; }
.cs-photo img { width: 100%; height: 100%; object-fit: cover; }

.cs-quote { position: relative; margin: 0; padding: 28px; border-radius: var(--radius-card); background: rgba(255, 255, 255, .45); font-size: 20px; line-height: 30px; font-weight: 500; }

.cs-insight { padding: 32px 28px; border-radius: 30px; font-size: 17px; line-height: 27px; }
.cs-insight__num { display: block; font-size: 44px; font-weight: 700; line-height: 1; margin-bottom: 20px; }
.cs-insight--rose { background: linear-gradient(180deg, #ffbfbf, #ffeaea); color: #722d2d; }
.cs-insight--lilac { background: linear-gradient(180deg, #cfcdff, #fbf2ff); color: #4a2f63; }
.cs-insight--peach { background: linear-gradient(180deg, #f7bba6, #fff3ee); color: #6d3221; }
.cs-insight .cs-h4 { color: var(--ink); }

.cs-map { position: relative; border-radius: var(--radius-card); background: rgba(255, 255, 255, .35); padding: 12px 28px 16px; }
.cs-map__head, .cs-map__row { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; gap: 16px; }
.cs-map__head { padding: 14px 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.cs-map__list { list-style: none; margin: 0; padding: 0; }
.cs-map__row { padding: 18px 0; border-top: 1px solid rgba(30, 19, 16, .08); font-size: 18px; line-height: 26px; }
.cs-map__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #ffbfbf, #ffeaea); color: #722d2d; }
.cs-map__to { font-weight: 700; }

.cs-decision { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; }
.cs-decision + .cs-decision { margin-top: 32px; border-top: 1px solid rgba(30, 19, 16, .08); }
.cs-decision__tag { align-self: flex-start; font-family: "Lato", sans-serif; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 9999px; background: #cfcdff; color: #2e2c67; }
.cs-decision .cs-h3 { margin-top: 0; }
.cs-pd { font-size: 18px; line-height: 29px; }
.cs-pd__label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6d3221; margin-bottom: 8px; }
.cs-shot { margin: 0; border-radius: 30px; overflow: hidden; background: #f6f6f6; box-shadow: 0 30px 60px -30px rgba(30, 19, 16, .25); }
.cs-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cs-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cs-chips li { padding: 10px 16px; border-radius: 9999px; background: #ffffff; font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1px #ead9e4; }
.cs-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: s; }
.cs-flow li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 9999px; background: #fff; font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1px #ead9e4; }
.cs-flow li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #ffbfbf, #ffeaea); color: #722d2d; font-size: 13px; }
.cs-flow li:not(:last-child)::after { content: "→"; margin-left: 6px; opacity: .45; }
.cs-pull { margin: 8px 0 0; padding-left: 24px; border-left: 4px solid #ffbfbf; font-size: 26px; line-height: 38px; font-weight: 600; }

.cs-metric { display: flex; align-items: center; gap: 16px; padding: 32px; border-radius: 30px; }
.cs-metric span { font-size: 48px; font-weight: 700; line-height: 1; }
.cs-metric p { font-size: 16px; line-height: 25px; font-weight: 600; }
.cs-metric--rose { background: linear-gradient(180deg, #ffbfbf, #ffeaea); color: #722d2d; }
.cs-metric--lilac { background: linear-gradient(180deg, #cfcdff, #fbf2ff); color: #603a72; }
.cs-metric--peach { background: linear-gradient(180deg, #f7bba6, #fff3ee); color: #6d3221; }

.cs-next { padding-top: 120px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.cs-next__end { font-size: 44px; font-weight: 700; }
.cs-next__card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 48px; border-radius: var(--radius-card); background: rgba(255, 255, 255, .45); transition: transform .3s; }
.cs-next__card:hover { transform: translateY(-4px); }
.cs-next__label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.cs-next__title { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 28px; font-weight: 700; }

@media (max-width: 900px) {
  .cs-title { font-size: 44px; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .cs-grid--3 { grid-template-columns: 1fr; }
  .cs-h2 { font-size: 36px; }
}
@media (max-width: 640px) {
  .cs-hero { padding-top: 40px; gap: 16px; }
  .cs-title { font-size: 32px; }
  .cs-lead { font-size: 18px; line-height: 28px; }
  .cs-meta { grid-template-columns: 1fr 1fr; padding: 20px; gap: 16px; }
  .cs-meta__item dd { font-size: 15px; }
  .cs-cover { margin-top: 40px; border-radius: 24px; }
  .cs-section { padding-top: 72px; gap: 20px; }
  .cs-h2 { font-size: 28px; }
  .cs-h3 { font-size: 24px; }
  .cs-p { font-size: 17px; line-height: 28px; }
  .cs-grid--2 { grid-template-columns: 1fr; }
  .cs-photo, .cs-shot { border-radius: 20px; }
  .cs-callout { padding: 24px; }
  .cs-callout__text, .cs-pull { font-size: 20px; line-height: 30px; }
  .cs-map { padding: 8px 18px 12px; }
  .cs-map__head { display: none; }
  .cs-map__row { grid-template-columns: 1fr; gap: 8px; font-size: 16px; }
  .cs-map__arrow { width: 32px; height: 32px; transform: rotate(90deg); }
  .cs-next__end { font-size: 32px; }
  .cs-next { padding-top: 80px; }
}


/* ---- Case study: extra components ---- */
.cs-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cs-card--method .cs-h4 { color: #6d3221; }
.cs-shot--top img { height: auto; object-fit: initial; }
.cs-scroll {
  position: relative;
  margin: 0;
  max-height: 720px;
  overflow-y: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(30, 19, 16, .25), inset 0 0 0 1px #ead9e4;
  scrollbar-width: thin;
}
.cs-scroll img { display: block; width: 100%; height: auto; }
.cs-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cs-scroll__hint {
  position: sticky; bottom: 16px;
  display: table; margin: -56px auto 16px;
  padding: 8px 16px; border-radius: 9999px;
  background: rgba(30, 19, 16, .85); color: #fff;
  font-size: 13px; font-weight: 600;
  pointer-events: none;
}
.cs-phones { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 32px; padding: 40px 24px; border-radius: 30px; background: linear-gradient(180deg, rgba(207, 205, 255, .45), rgba(251, 242, 255, .35)); }
.cs-phones--plain { background: linear-gradient(180deg, rgba(255, 222, 211, .5), rgba(255, 243, 238, .35)); }
.cs-phone { margin: 0; width: min(290px, 100%); border-radius: 34px; overflow: hidden; border: 10px solid #acbdea; background: #acbdea; box-shadow: 0 20px 50px 10px rgba(0, 0, 0, .05); }
.cs-phones--plain .cs-phone { border: 0; border-radius: 16px; width: min(280px, 100%); box-shadow: 0 0 25px rgba(0, 0, 0, .08); }
.cs-phone img { display: block; width: 100%; height: auto; border-radius: 28px; }
.cs-phones--plain .cs-phone { background: transparent; }
.cs-phones--plain .cs-phone img { border-radius: 16px; }
.cs-keys { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cs-keys div { padding: 16px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px #ead9e4; }
.cs-keys dt { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.cs-keys dd { margin: 0; font-size: 15px; opacity: .75; }
.cs-metric p small { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; opacity: .85; line-height: 21px; }
.cs-metric { align-items: flex-start; }
.cs-loop { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cs-loop li {
  position: relative;
  padding: 28px 16px; border-radius: 24px;
  text-align: center; font-size: 20px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.cs-loop li:nth-child(1) { background: linear-gradient(180deg, #ffbfbf, #ffeaea); color: #722d2d; }
.cs-loop li:nth-child(2) { background: linear-gradient(180deg, #cfcdff, #fbf2ff); color: #4a2f63; }
.cs-loop li:nth-child(3) { background: linear-gradient(180deg, #f7bba6, #fff3ee); color: #6d3221; }
.cs-loop li:nth-child(4) { background: linear-gradient(180deg, #cddef6, #f1f6ff); color: #23406b; }
.cs-loop li:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 50%; translate: 0 -50%;
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: var(--bg); font-size: 14px; letter-spacing: 0; color: var(--ink); z-index: 1;
}
.cs-loop li:last-child::after { content: "↺"; position: absolute; right: 12px; top: 10px; font-size: 16px; opacity: .6; }
@media (max-width: 900px) {
  .cs-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cs-scroll { max-height: 560px; border-radius: 18px; }
  .cs-phones { gap: 16px; padding: 24px 12px; }
  .cs-phone { width: calc(50% - 8px); border-width: 6px; border-radius: 24px; }
  .cs-phone img { border-radius: 20px; }
  .cs-phones--plain .cs-phone img { border-radius: 12px; }
  .cs-phones .cs-phone:only-child { width: 72%; }
  .cs-phones--plain .cs-phone { width: calc(50% - 8px); }
  .cs-keys { grid-template-columns: 1fr; }
  .cs-loop { grid-template-columns: 1fr 1fr; }
  .cs-loop li:nth-child(2)::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
