:root {
  --v11-blue: #0d5bd7;
  --v11-blue-deep: #073d9b;
  --v11-ink: #172033;
  --v11-muted: #667085;
  --v11-line: #e4e9f1;
  --v11-soft: #f5f7fa;
}

/* final-v5 navigation, extended without changing its visual language */
.desktop-nav { gap: 1px; }
.desktop-nav .nav-link { padding-inline: 10px; white-space: nowrap; }

/* V1.1 keeps the existing two-layer carousel and upgrades its image/transition layer. */
.hero { --hero-mask-opacity: .92; --hero-mask-width: 50%; }
.hero-image {
  background-image: none !important;
  background-color: #edf2f7;
  overflow: hidden;
  will-change: opacity, transform, clip-path, filter;
  transition-duration: var(--hero-transition-ms, 800ms);
}
.hero-image::after { content:none !important; background:none !important; }
.hero-picture,
.hero-picture-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero-picture-image {
  object-fit: var(--hero-fit, cover);
  object-position: var(--hero-focus-x, 50%) var(--hero-focus-y, 50%);
  background: #edf2f7;
  transform: translateZ(0);
  transition: transform var(--hero-transition-ms, 800ms) cubic-bezier(.22,.61,.36,1),
              filter var(--hero-transition-ms, 800ms) ease,
              opacity var(--hero-transition-ms, 800ms) ease;
}
.hero-mask {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: var(--hero-mask-width);
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255,255,255,var(--hero-mask-opacity)) 0%,
    rgba(255,255,255,calc(var(--hero-mask-opacity) * .92)) 48%,
    rgba(255,255,255,0) 100%);
  transition: opacity 320ms ease, width 320ms ease;
}
.hero[data-hero-mask="off"] .hero-mask { opacity: 0; width: 0; }
.hero-inner,
.hero-carousel-controls,
.hero-rail { z-index: 3; }
.hero[data-hero-text-tone="light"] .hero-copy,
.hero[data-hero-text-tone="light"] .hero-copy h1,
.hero[data-hero-text-tone="light"] .hero-copy h1 em,
.hero[data-hero-text-tone="light"] .hero-description,
.hero[data-hero-text-tone="light"] .hero-note,
.hero[data-hero-text-tone="light"] .kicker { color: #fff; }
.hero[data-hero-text-tone="light"] .button-ghost { color: #fff; border-color: rgba(255,255,255,.72); }
.hero[data-hero-text-shadow="on"] .hero-copy { text-shadow: 0 2px 18px rgba(0,0,0,.28); }

/* Default enterprise fade. */
.hero[data-hero-animation="fade"] .hero-image { transition-property: opacity; }

/* Apple-inspired cinematic push-in, deliberately restrained. */
.hero[data-hero-animation="cinematic"] .hero-image:not(.is-active) .hero-picture-image {
  transform: scale(1.055);
  opacity: .72;
}
.hero[data-hero-animation="cinematic"] .hero-image.is-active .hero-picture-image {
  animation: v11Cinematic var(--hero-transition-ms, 800ms) cubic-bezier(.22,.61,.36,1) both;
}
@keyframes v11Cinematic { from { transform: scale(1.045); } to { transform: scale(1.012); } }

/* Horizontal movement uses the same two layers and preserves the existing arrows/dots. */
.hero[data-hero-animation="slide"] .hero-image { transition-property: opacity, transform; }
.hero[data-hero-animation="slide"] .hero-image:not(.is-active) { transform: translateX(4%); }
.hero[data-hero-animation="slide"] .hero-image[data-direction="previous"]:not(.is-active) { transform: translateX(-4%); }
.hero[data-hero-animation="slide"] .hero-image.is-active { transform: translateX(0); }

.hero[data-hero-animation="soft-zoom"] .hero-image:not(.is-active) .hero-picture-image {
  transform: scale(1.035);
  opacity: .65;
}
.hero[data-hero-animation="soft-zoom"] .hero-image.is-active .hero-picture-image { transform: scale(1); opacity: 1; }

.hero[data-hero-animation="mask-reveal"] .hero-image { transition-property: opacity, clip-path; }
.hero[data-hero-animation="mask-reveal"] .hero-image:not(.is-active) { clip-path: inset(0 0 0 100%); }
.hero[data-hero-animation="mask-reveal"] .hero-image[data-direction="previous"]:not(.is-active) { clip-path: inset(0 100% 0 0); }
.hero[data-hero-animation="mask-reveal"] .hero-image.is-active { clip-path: inset(0 0 0 0); }
.hero[data-hero-animation="mask-reveal"] .hero-image.is-active::before {
  content:"";
  position:absolute;
  z-index:2;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.32),rgba(255,255,255,0));
  transform:translateX(-110%);
  animation:v11MaskFeather var(--hero-transition-ms, 800ms) cubic-bezier(.22,.61,.36,1) both;
}
@keyframes v11MaskFeather { from { transform:translateX(-110%); opacity:.9; } to { transform:translateX(110%); opacity:0; } }

.hero[data-hero-animation="parallax"] .hero-image:not(.is-active) .hero-picture-image { transform: translateX(2.4%) scale(1.02); }
.hero[data-hero-animation="parallax"] .hero-image.is-active .hero-picture-image { transform: translateX(0) scale(1); }

.hero[data-hero-animation="blur"] .hero-image:not(.is-active) .hero-picture-image { filter: blur(12px); opacity: .58; }
.hero[data-hero-animation="blur"] .hero-image.is-active .hero-picture-image { filter: blur(0); opacity: 1; }

.hero[data-hero-animation="none"] .hero-image,
.hero[data-hero-animation="none"] .hero-picture-image { transition-duration: 0ms !important; animation: none !important; }

/* The former 44px play/pause control is intentionally absent. */
.hero-autoplay-toggle { display: none !important; }
.hero-carousel-footer { justify-content: center; }

/* Shared case pages */
.v11-page { background: #fff; color: var(--v11-ink); }
.v11-page-main { min-height: 65vh; }
.v11-page-hero {
  padding: 78px 0 64px;
  background:
    radial-gradient(circle at 86% 22%, rgba(13,91,215,.11), transparent 34%),
    linear-gradient(180deg, #f5f8fc, #fff);
  border-bottom: 1px solid #edf0f5;
}
.v11-page-hero .eyebrow { margin-bottom: 13px; color: var(--v11-blue); letter-spacing: .18em; }
.v11-page-hero h1 { margin: 0; max-width: 830px; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -.035em; }
.v11-page-hero p:last-child { max-width: 680px; margin: 20px 0 0; color: var(--v11-muted); line-height: 1.8; }
.v11-cases-section { padding: 72px 0 96px; background: var(--v11-soft); }
.v11-cases-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.v11-cases-toolbar h2 { margin: 0; font-size: 28px; }
.v11-cases-toolbar p { margin: 8px 0 0; color: var(--v11-muted); }
.v11-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.v11-case-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--v11-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22,34,54,.055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.v11-case-card:hover { transform: translateY(-3px); border-color: #cedcf2; box-shadow: 0 18px 38px rgba(22,34,54,.09); }
.v11-case-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #eaf0f8; }
.v11-case-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.v11-case-card:hover .v11-case-card-media img { transform: scale(1.018); }
.v11-case-card-copy { padding: 23px 23px 25px; }
.v11-case-industry { margin: 0 0 10px; color: var(--v11-blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.v11-case-card h3 { margin: 0; font-size: 20px; line-height: 1.42; }
.v11-case-card-summary { min-height: 48px; margin: 12px 0 20px; color: var(--v11-muted); font-size: 14px; line-height: 1.7; }
.v11-case-link { color: #27364b; font-size: 13px; font-weight: 650; }
.v11-case-link span { margin-left: 5px; color: var(--v11-blue); }
.v11-empty { grid-column: 1/-1; padding: 54px 28px; border: 1px dashed #cad4e2; border-radius: 10px; text-align: center; color: var(--v11-muted); background: #fff; }

/* Case detail */
.v11-case-detail { padding: 70px 0 100px; }
.v11-case-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: #7b8494; font-size: 13px; }
.v11-case-breadcrumb a { color: var(--v11-blue); }
.v11-case-heading { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 54px; align-items: end; }
.v11-case-heading h1 { margin: 10px 0 0; font-size: clamp(34px,4vw,56px); line-height: 1.12; letter-spacing: -.035em; }
.v11-case-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px; border: 1px solid var(--v11-line); background: #f8fafc; }
.v11-case-meta span { display: block; color: #8791a1; font-size: 11px; }
.v11-case-meta strong { display: block; margin-top: 5px; font-size: 14px; }
.v11-case-cover { margin: 46px 0 56px; aspect-ratio: 16/7; overflow: hidden; border-radius: 10px; background: #edf2f7; }
.v11-case-cover img { width: 100%; height: 100%; object-fit: cover; }
.v11-case-body { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 56px; }
.v11-case-toc { position: sticky; top: 110px; align-self: start; border-left: 2px solid #e3e9f2; padding-left: 18px; }
.v11-case-toc a { display: block; margin: 0 0 14px; color: #6b7585; font-size: 13px; }
.v11-case-rich section { padding: 0 0 36px; }
.v11-case-rich h2 { margin: 0 0 13px; font-size: 24px; }
.v11-case-rich p { margin: 0; color: #556173; line-height: 1.9; }
.v11-case-copy { white-space: pre-line; }
.v11-case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.v11-case-tags span { padding: 7px 11px; border-radius: 999px; background: #edf4ff; color: #275fab; font-size: 12px; }
.v11-case-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:18px; }
.v11-case-gallery img { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:8px; background:#edf2f7; }
.v11-empty h1 { margin:0 0 14px; font-size:clamp(30px,4vw,48px); }
.v11-empty p { margin:0 0 24px; color:var(--v11-muted); line-height:1.8; }

@media (max-width: 1180px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .hero[data-hero-animation="parallax"] .hero-image .hero-picture-image { transform:none !important; }
  .v11-case-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .v11-case-heading { grid-template-columns:1fr; gap:28px; }
  .v11-case-meta { max-width:420px; }
  .v11-case-body { grid-template-columns:1fr; gap:28px; }
  .v11-case-toc { position:static; display:flex; flex-wrap:wrap; gap:12px 18px; border-left:0; border-bottom:1px solid #e5eaf1; padding:0 0 16px; }
  .v11-case-toc a { margin:0; }
}
@media (max-width: 680px) {
  .hero-mask { width:min(var(--hero-mask-width),78%); }
  .v11-page-hero { padding:52px 0 46px; }
  .v11-cases-section { padding:48px 0 68px; }
  .v11-cases-toolbar { align-items:flex-start; flex-direction:column; }
  .v11-case-grid { grid-template-columns:1fr; }
  .v11-case-card-summary { min-height:0; }
  .v11-case-detail { padding:44px 0 68px; }
  .v11-case-cover { margin:30px 0 38px; aspect-ratio:4/3; }
  .v11-case-meta { grid-template-columns:1fr 1fr; }
  .v11-case-gallery { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image,.hero-picture-image,.hero-copy,.v11-case-card,.v11-case-card-media img { transition-duration:0.01ms !important; animation-duration:0.01ms !important; }
  .hero[data-hero-animation] .hero-image { transform:none !important; clip-path:none !important; filter:none !important; }
}
