/* =========================================================
   MIMO case pages — shared shell + three distinct layouts
   theme-vevor: dark control-room, editorial number rows
   theme-hisense: light porcelain, centered map hero, cards
   theme-flexispot: light growth, chart hero, stepper
   ========================================================= */

:root {
  --ink: #07142f;
  --ink-soft: #172b4d;
  --blue: #2e64f8;
  --blue-dark: #1c49d8;
  --blue-deep: #0d2a6b;
  --paper: #f4f7fb;
  --white: #ffffff;
  --surface: #f1f5fc;
  --line: #d8e2f0;
  --line-soft: #e7edf6;
  --muted: #596b86;
  --muted-light: #5d6c82;
  --orange: #ff6a3d;
  --orange-deep: #b23a17;
  --orange-soft: #ffe8df;
  --teal: #10a99a;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(20px, 4.2vw, 48px);
  --header-h: 82px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-data: "Bahnschrift", "DIN Alternate", "Arial Narrow", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p,
figure,
dl {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid rgba(46, 100, 248, 0.45);
  outline-offset: 3px;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.case-container {
  width: min(1320px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- header ---------- */

.case-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(244, 247, 251, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.case-header.is-scrolled {
  border-color: var(--line);
  background: rgba(244, 247, 251, 0.94);
}

.case-header--dark {
  background: rgba(7, 20, 47, 0.82);
}

.case-header--dark.is-scrolled {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 20, 47, 0.94);
}

.case-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  height: 100%;
}

.case-header__logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.case-header__logo img {
  height: 40px;
  width: auto;
  transition: opacity 0.2s var(--ease);
}

.case-header__logo:hover img {
  opacity: 0.86;
}

.case-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 500;
}

.case-nav a {
  padding-block: 7px;
  color: #435571;
  transition: color 0.2s var(--ease);
}

.case-nav a:hover {
  color: var(--ink);
}

.case-header--dark .case-nav a {
  color: rgba(255, 255, 255, 0.68);
}

.case-header--dark .case-nav a:hover {
  color: var(--white);
}

.case-nav__home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.case-nav__home .icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.case-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgba(46, 100, 248, 0.8);
  transition: background-color 0.2s var(--ease);
}

.case-nav .case-cta,
.case-header--dark .case-nav .case-cta {
  color: var(--white);
}

.case-nav .case-cta:hover,
.case-header--dark .case-nav .case-cta:hover {
  color: var(--white);
  background: var(--blue-dark);
}

.case-cta .icon {
  width: 15px;
  height: 15px;
}

/* ---------- footer ---------- */

.case-footer {
  padding-block: 46px 22px;
  background: #06122a;
  color: rgba(255, 255, 255, 0.72);
}

.case-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.case-footer__brand img {
  height: 44px;
  width: auto;
}

.case-footer__brand p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.9;
}

.case-footer__links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  flex-wrap: wrap;
}

.case-footer__links p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.case-footer__links a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.6;
  transition: color 0.2s var(--ease);
}

.case-footer__links a:hover {
  color: var(--white);
}

.case-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 9.5px;
  line-height: 1.6;
}

.case-footer__bottom .demo-note {
  color: rgba(255, 255, 255, 0.48);
}

/* ---------- shared pieces ---------- */

.case-section {
  position: relative;
  padding-block: clamp(64px, 7vw, 104px);
}

.case-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.case-kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.case-kicker--light {
  color: #c7d7ff;
}

.case-lead {
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.85;
}

.case-note {
  color: var(--muted-light);
  font-size: 11px;
  line-height: 1.7;
}

.shot-window {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 40px 80px -42px rgba(8, 31, 83, 0.5);
}

.shot-window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcfe;
}

.shot-window__dots {
  display: flex;
  gap: 6px;
}

.shot-window__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dbe4f0;
}

.shot-window__dots i:first-child {
  background: #ffb4a3;
}

.shot-window__url {
  overflow: hidden;
  padding: 4px 12px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.shot-window__tag {
  color: var(--muted-light);
  font-size: 10px;
  white-space: nowrap;
}

.shot-window__media {
  aspect-ratio: 1440 / 950;
  background: var(--paper);
}

.shot-window__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.shot-caption {
  margin-top: 12px;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.6;
  text-align: center;
}

/* =========================================================
   VEVOR — dark control room
   ========================================================= */

.theme-vevor {
  background: var(--ink);
  color: var(--white);
}

.theme-vevor .case-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.v-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(46px, 6vw, 84px);
  padding-bottom: clamp(46px, 5vw, 72px);
}

.v-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 0.6px, transparent 0.6px);
  background-size: 24px 24px;
  mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.8), transparent 62%);
  -webkit-mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.8), transparent 62%);
  pointer-events: none;
}

.v-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.v-hero__title {
  margin-top: 20px;
  color: var(--white);
  font-size: clamp(2.5rem, 4.3vw, 4rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.05em;
}

.v-hero__title span {
  color: #ff9d80;
}

.v-hero .case-lead {
  max-width: 520px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.62);
}

.v-stats {
  display: flex;
  margin-top: clamp(30px, 4vw, 46px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.v-stats > div {
  min-width: 0;
  padding-inline: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.v-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.v-stats strong {
  display: block;
  color: var(--white);
  font-family: var(--font-data);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
}

.v-stats strong em {
  font-style: normal;
  color: #ff9d80;
}

.v-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.5;
}

.v-hero__shot .shot-window {
  box-shadow: 0 46px 90px -44px rgba(0, 0, 0, 0.8);
}

.v-hero__shot .shot-caption {
  color: rgba(255, 255, 255, 0.38);
}

.v-services {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.v-service {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(30px, 3.6vw, 46px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.v-service__no {
  color: #94b2ff;
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.v-service h2 {
  max-width: 430px;
  color: var(--white);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.45;
}

.v-service__desc {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13.5px;
  line-height: 1.85;
  align-self: center;
}

.v-service__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.v-service__chips span {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10.5px;
  line-height: 1.5;
}

.v-adswise {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 6vw, 76px);
  padding: clamp(30px, 4vw, 52px);
  border-radius: 26px;
  background: linear-gradient(115deg, #173fc9 0%, #2e64f8 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.v-adswise::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.v-adswise__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.v-adswise__badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffb19a;
}

.v-adswise h2 {
  margin-top: 16px;
  color: var(--white);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.3;
}

.v-adswise p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  line-height: 1.8;
}

.v-adswise__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-size: 13px;
  font-weight: 650;
}

.v-adswise__link .icon {
  width: 14px;
  height: 14px;
}

.v-adswise__roi {
  display: grid;
  gap: 12px;
}

.v-adswise__roi > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.v-adswise__roi span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  line-height: 1.5;
}

.v-adswise__roi b {
  color: var(--white);
  font-family: var(--font-data);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.v-adswise__roi b small {
  color: #ffb29a;
  font-family: var(--font-sans);
  font-size: 0.6em;
  margin-left: 3px;
}

/* =========================================================
   Hisense — light porcelain, Europe
   ========================================================= */

.theme-hisense {
  background: var(--paper);
}

.h-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 64px);
  text-align: center;
}

.h-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: min(1000px, 92vw);
  height: 520px;
  transform: translateX(-50%);
  background: url("../assets/cases/europe-dots.png") no-repeat center / contain;
  opacity: 0.14;
  filter: saturate(0);
  pointer-events: none;
}

.h-hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(46, 100, 248, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.h-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
}

.h-hero .case-kicker {
  justify-content: center;
}

.h-hero .case-kicker::after {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.h-hero__title {
  margin-top: 20px;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.h-hero__title span {
  color: var(--blue);
}

.h-hero .case-lead {
  max-width: 620px;
  margin: 22px auto 0;
}

.h-stats {
  display: flex;
  justify-content: center;
  margin-top: clamp(34px, 4vw, 50px);
}

.h-stats > div {
  min-width: 170px;
  padding-inline: clamp(24px, 3.5vw, 52px);
  border-left: 1px solid var(--line);
  text-align: left;
}

.h-stats > div:first-child {
  border-left: 0;
}

.h-stats strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-data);
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.h-stats strong small {
  color: var(--blue-dark);
  font-family: var(--font-sans);
  font-size: 0.42em;
  font-weight: 650;
  letter-spacing: 0;
}

.h-stats span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.h-shot {
  position: relative;
  z-index: 1;
  margin-top: clamp(44px, 5vw, 66px);
}

.h-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.h-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.h-card:hover {
  border-color: #b6c6dd;
  transform: translateY(-2px);
}

.h-card__no {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e9f0ff;
  color: var(--blue-dark);
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 600;
  place-items: center;
}

.h-card h2 {
  margin-top: 20px;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 750;
  line-height: 1.45;
}

.h-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.h-card__fact {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 650;
}

.h-card__fact b {
  font-family: var(--font-data);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.h-band {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 22px;
  background: var(--blue-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.h-band__copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.h-band__mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 19px;
  place-items: center;
}

.h-band h2 {
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 750;
}

.h-band p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
}

.h-band__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-size: 13px;
  font-weight: 650;
}

.h-band__link .icon {
  width: 14px;
  height: 14px;
}

/* =========================================================
   FlexiSpot — growth
   ========================================================= */

.theme-flexispot {
  background: var(--surface);
}

.f-hero {
  padding-top: clamp(50px, 6vw, 88px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.f-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}

.f-hero__title {
  margin-top: 20px;
  font-size: clamp(2.6rem, 4.7vw, 4.3rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.f-hero__title span {
  color: #0d8a7c;
}

.f-hero .case-lead {
  max-width: 500px;
  margin-top: 22px;
}

.f-steps-mini {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: clamp(28px, 3.6vw, 42px);
}

.f-steps-mini > div {
  flex: 1;
  padding-right: 14px;
}

.f-steps-mini > div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.f-steps-mini b {
  display: block;
  color: var(--ink);
  font-family: var(--font-data);
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.f-steps-mini span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.f-chart {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 34px 68px -44px rgba(8, 31, 83, 0.4);
}

.f-chart__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.f-chart__head span {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.f-chart__head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--font-data);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.f-chart__head strong em {
  font-style: normal;
  color: #067568;
  font-family: var(--font-sans);
  font-size: 0.5em;
  margin-left: 4px;
}

.f-chart__badge {
  padding: 5px 11px;
  border-radius: 99px;
  background: #e5f7f4;
  color: #067568;
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}

.f-chart__plot {
  margin-top: 18px;
}

.f-chart__plot svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.f-chart__years {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted-light);
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.f-shot-band {
  padding-top: 0;
}

.f-stepper {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  overflow: hidden;
}

.f-step {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  counter-increment: step;
}

.f-step + .f-step {
  border-left: 1px solid var(--line);
}

.f-step::before {
  content: "0" counter(step);
  color: #067568;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.f-step::after {
  content: "";
  position: absolute;
  top: clamp(26px, 3vw, 40px);
  right: -6px;
  width: 11px;
  height: 11px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--white);
  transform: rotate(45deg);
}

.f-step:last-child::after {
  display: none;
}

.f-step h2 {
  margin-top: 16px;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 750;
  line-height: 1.5;
}

.f-step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.f-step__tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: 5px;
  background: #e5f7f4;
  color: #067568;
  font-size: 10.5px;
  font-weight: 600;
}

.f-outcome {
  margin-top: 18px;
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: 24px;
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

.f-outcome__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.f-outcome h2 {
  margin-top: 16px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.35;
}

.f-outcome h2 em {
  font-style: normal;
  color: #ffb29a;
}

.f-outcome p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.8;
}

.f-outcome__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-size: 13px;
  font-weight: 650;
}

.f-outcome__link .icon {
  width: 14px;
  height: 14px;
}

.f-outcome__metrics {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.f-outcome__metrics > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--ink);
}

.f-outcome__metrics span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.f-outcome__metrics b {
  color: var(--white);
  font-family: var(--font-data);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .v-hero__grid,
  .f-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .v-hero__shot,
  .f-hero .f-chart {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .v-service {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .v-service__desc {
    grid-column: 2;
  }

  .v-adswise {
    grid-template-columns: 1fr;
  }

  .h-cards {
    grid-template-columns: 1fr;
  }

  .f-stepper {
    grid-template-columns: 1fr;
  }

  .f-step + .f-step {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .f-step::after {
    display: none;
  }

  .f-outcome {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 72px;
  }

  .case-header__logo img {
    height: 36px;
  }

  .case-nav {
    gap: 14px;
    font-size: 12.5px;
  }

  .case-nav .case-cta {
    display: none;
  }

  .v-hero__title {
    font-size: clamp(2.2rem, 8.6vw, 3rem);
  }

  .v-stats {
    flex-direction: column;
    gap: 16px;
  }

  .v-stats > div {
    padding: 0 0 16px;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .v-stats > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .v-service {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .v-service__desc {
    grid-column: 1;
  }

  .h-stats {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    max-width: 380px;
    margin-inline: auto;
  }

  .h-stats > div {
    min-width: 0;
    padding: 0 0 16px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .h-stats > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .f-steps-mini {
    flex-direction: column;
    gap: 14px;
  }

  .f-steps-mini > div,
  .f-steps-mini > div + div {
    padding: 0 0 14px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  .f-steps-mini > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .f-outcome__metrics > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   2026-10-23 polish round: hero entrance, mobile nav,
   pager micro-interactions
   ========================================================= */

@keyframes case-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.v-hero__grid > *,
.h-hero__inner > *,
.h-shot,
.f-hero__grid > * {
  animation: case-rise 0.7s var(--ease) both;
}

.v-hero__grid > *:nth-child(2),
.f-hero__grid > *:nth-child(2) {
  animation-delay: 0.1s;
}

.h-hero__inner > *:nth-child(2) {
  animation-delay: 0.06s;
}

.h-hero__inner > *:nth-child(3) {
  animation-delay: 0.12s;
}

.h-hero__inner > *:nth-child(4) {
  animation-delay: 0.18s;
}

.h-shot {
  animation-delay: 0.24s;
}

/* pager arrow nudges toward the navigation direction */
.case-pager__card .icon {
  transition: transform 0.2s var(--ease);
}

.case-pager__card:hover .icon {
  transform: translateX(-3px);
}

.case-pager__card--next:hover .icon {
  transform: translateX(3px);
}

/* mobile header: keep only the home link, drop cross-case links */
@media (max-width: 760px) {
  .case-nav a:not(.case-nav__home) {
    display: none;
  }
}
