/* ========================================================================
   STUDIO55 Construction DX × BIM — Design System
   Token-driven · white + blue · enterprise-grade · ARENT-direction
   ======================================================================== */

/* ----- 1. Tokens ----- */
:root {
  /* Color */
  --c-bg: #FFFFFF;
  --c-surface: #E0EEF8;
  --c-surface-2: #C8DFF2;
  --c-ink: #0B1420;
  --c-ink-2: #3B475A;
  --c-ink-3: #7A8699;
  --c-line: #99C2E0;
  --c-line-strong: #66A3D4;
  --c-brand: #0870CA;
  --c-brand-deep: #0558A0;
  --c-brand-soft: #CCE4F5;
  --c-accent-cyan: #4DD0FF;
  --c-hero-bg: #0870CA;
  --c-hero-bg-2: #0558A0;
  --c-error: #D9484F;
  --c-mark: #FFF59E;

  /* Typography */
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-en: "Quicksand", system-ui, -apple-system, sans-serif;
  --font-display: "Quicksand", system-ui, sans-serif;
  --font-serif: "DM Serif Display", serif;
  --font-mono: "Space Mono", monospace;

  --fs-display-xl: clamp(2.4rem, 5vw, 4.5rem);
  --fs-display-l: clamp(1.875rem, 3.5vw, 3rem);
  --fs-h2: clamp(1.625rem, 2.5vw, 2.375rem);
  --fs-h3: 1.5rem;
  --fs-h4: 1.25rem;
  --fs-body-l: 1.0625rem;
  --fs-body: 1rem;
  --fs-body-s: 0.9375rem;
  --fs-meta: 0.8125rem;

  /* Spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(20px, 4vw, 48px);

  /* Shape */
  --r-sm: 6px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 2px 8px rgba(11, 20, 32, 0.04);
  --sh-2: 0 8px 32px rgba(11, 20, 32, 0.08);
  --sh-3: 0 20px 64px rgba(11, 20, 32, 0.12);
  --sh-glow: 0 0 24px rgba(77, 208, 255, 0.45);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 640ms;

  /* Z-index */
  --z-banner: 40;
  --z-header: 50;
  --z-modal: 80;
}

/* ----- 2. Reset + base ----- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
  min-height: 100%;
  background: linear-gradient(160deg, #3FA5E8 0%, #0870CA 48%, #054494 100%);
  background-attachment: fixed;
}
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--c-ink);
  background: transparent;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(en) body, .lang-en {
  font-family: var(--font-en);
  letter-spacing: 0;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-snap); }
a:hover { color: var(--c-brand); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
mark { background: var(--c-mark); color: inherit; padding: 0 0.15em; border-radius: 2px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}
:lang(en) h1, :lang(en) h2, :lang(en) h3 { letter-spacing: -0.03em; }

p { margin: 0 0 1em; }

/* Numerals look better with tabular */
.num, .stat-num { font-variant-numeric: tabular-nums; }

/* ----- 3. Layout primitives ----- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.section { padding-top: clamp(48px, 9vw, 112px); padding-bottom: clamp(48px, 9vw, 112px); background: #fff; }
.section--tight { padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(36px, 6vw, 80px); }
.section--surface { background: var(--c-surface); }
.section--dark { background: linear-gradient(160deg, #3FA5E8 0%, #0870CA 48%, #054494 100%); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--c-brand);
}

.section-title { font-size: var(--fs-display-l); margin: 12px 0 16px; }
.section-lead { font-size: var(--fs-body-l); color: var(--c-ink-2); max-width: 64ch; }
.section-consulting-tag { font: 500 14px/1.4 var(--font-jp); color: var(--c-ink-2); margin-top: 8px; }
@media (min-width: 981px) {
  .section-lead { max-width: none; white-space: nowrap; }
}

/* ----- 4. Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: var(--fs-body-s);
  letter-spacing: 0.06em;
  transition: all var(--dur-fast) var(--ease-snap);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: linear-gradient(160deg, #0870CA 0%, #054494 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.45);
}
.btn-primary:hover {
  background: linear-gradient(160deg, #1a82d4 0%, #0870CA 100%);
  color: #fff;
  border: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.45);
}

/* Outline = white surface + blue text + blue border. Same on light or dark. */
.btn-outline {
  background: #fff;
  color: var(--c-brand);
  border-color: var(--c-brand);
}
.btn-outline:hover {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

/* Variant for use over the dark hero / dark sections */
.btn-on-dark.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-on-dark.btn-outline:hover {
  background: #fff;
  color: var(--c-brand);
  border-color: #fff;
}

/* On blue backgrounds: primary = white-filled, outline = dark-bg style */
.site-header.over-hero .btn-primary,
.closing .btn-primary {
  background: #fff;
  color: var(--c-brand);
  border: 1.5px solid #fff;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.30);
}
.site-header.over-hero .btn-primary:hover,
.closing .btn-primary:hover {
  background: rgba(255,255,255,0.90);
  color: var(--c-brand);
  border-color: #fff;
  transform: translateY(-1px);
}
.site-header.over-hero .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.site-header.over-hero .btn-outline:hover {
  background: #fff;
  color: var(--c-brand);
  border-color: #fff;
}
.btn .arrow {
  transition: transform var(--dur-fast) var(--ease-snap);
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 18px 36px; font-size: 1rem; }

/* Industry chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 11px 28px;
  border-radius: var(--r-pill);
  font-size: 1.0625rem;
  font-weight: 500;
  background: var(--c-brand-soft);
  color: var(--c-brand-deep);
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-snap);
  cursor: pointer;
}
.chip:hover { background: var(--c-brand); color: #fff; }
.chip--active { background: var(--c-brand); color: #fff; }
.chip--ghost { background: transparent; border-color: var(--c-line-strong); color: var(--c-ink-2); }
.chip--ghost:hover { border-color: var(--c-brand); color: var(--c-brand); background: var(--c-brand-soft); }
.chip--badge {
  background: var(--c-brand);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  pointer-events: none;
}

/* ----- 5. Header — always has a solid bg ----- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  padding: 14px 0;
  transition:
    background var(--dur-base) var(--ease-snap),
    box-shadow var(--dur-base) var(--ease-snap),
    border-color var(--dur-base) var(--ease-snap),
    color var(--dur-base) var(--ease-snap);
  /* Default = solid white (used on sub-pages and when scrolled past dark hero) */
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 20, 32, 0.08);
  box-shadow: 0 1px 0 rgba(11, 20, 32, 0.02);
  color: var(--c-ink);
}

/* Over-hero state (home pages above the fold) — fully transparent, white text/logo */
.site-header.over-hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo: two image variants — show whichever matches the current state */
.site-header__brand {
  display: inline-flex;
  align-items: center;
  height: 40px;
}
.site-header__brand img {
  height: 32px;
  width: auto;
  display: block;
}
.site-header__brand .logo--white { display: none; }
.site-header__brand .logo--dark  { display: block; }
.site-header.over-hero .site-header__brand .logo--white { display: block; }
.site-header.over-hero .site-header__brand .logo--dark  { display: none; }

.site-header__nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-header__nav a {
  color: var(--c-ink);
  font-size: var(--fs-body-s);
  font-weight: 500;
  position: relative;
  transition: color var(--dur-fast) var(--ease-snap);
}
.site-header.over-hero .site-header__nav a { color: rgba(255, 255, 255, 0.88); }
.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--c-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-snap);
}
.site-header.over-hero .site-header__nav a::after { background: var(--c-accent-cyan); }
.site-header__nav a:hover { color: var(--c-brand); }
.site-header.over-hero .site-header__nav a:hover { color: var(--c-accent-cyan); }
.site-header__nav a:hover::after { transform: scaleX(1); }

.site-header__cta { display: flex; gap: 10px; align-items: center; }

.site-header .lang-switch {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-ink-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.site-header.over-hero .lang-switch {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.18);
}
.site-header .lang-switch a { padding: 0 3px; }
.site-header .lang-switch .active { color: inherit; font-weight: 700; }
.site-header .lang-switch a:not(.active) { opacity: 0.55; }
.site-header .lang-switch a.is-disabled,
.site-footer__bottom .lang-switch a.is-disabled,
.mobile-nav__lang-pill a.is-disabled {
  opacity: 0.32;
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}
.mobile-nav__lang-pill a.is-disabled:hover { color: rgba(255,255,255,0.72); }

/* Tighten desktop nav at 981-1100px — at this range, EN labels (Case Studies,
   Free Consultation) plus 5 nav items + lang switch + 2 buttons get cramped.
   Slightly smaller gaps prevent wrap or visual squeeze. */
@media (max-width: 1100px) and (min-width: 981px) {
  .site-header__inner { gap: 16px; }
  .site-header__nav { gap: 20px; }
  .site-header__cta { gap: 8px; }
  .site-header__nav a { font-size: 0.9375rem; }
}

/* Mobile header */
.menu-toggle { display: none; }
/* Hamburger menu kicks in for: any small viewport <= 980px, OR any touch
   device up to 1366px wide (covers all iPads in either orientation including
   iPad Pro 12.9" landscape, all Android tablets, and Surface-style tablets).
   Mouse-driven laptops/desktops report `pointer: fine` so they keep the
   desktop nav even at narrow window widths above 980px. */
@media (max-width: 980px), (max-width: 1366px) and (pointer: coarse) {
  .site-header__nav { display: none; }
  /* Hide ALL desktop CTA bits (Whitepaper btn, Free Consultation btn, lang switcher).
     Everything moves into the .mobile-nav drawer accessed via the hamburger. */
  .site-header__cta .btn { display: none; }
  .site-header .lang-switch { display: none; }
  .menu-toggle {
    display: inline-flex;
    width: 44px; height: 44px;
    border-radius: var(--r-pill);
    align-items: center; justify-content: center;
    /* Default = scrolled / solid white header → SOLID dark fill, white icon.
       High contrast against the white nav so the button can never blend in. */
    background: var(--c-ink);
    border: 1px solid var(--c-ink);
    color: #fff;
    transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
  }
  .menu-toggle:hover { background: var(--c-brand); border-color: var(--c-brand); }
  .menu-toggle:active { transform: scale(0.95); }
  /* Over-hero state = transparent navbar over the dark hero → translucent white pill */
  .site-header.over-hero .menu-toggle {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.24);
    color: #fff;
  }
  .site-header.over-hero .menu-toggle:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
  }
}

/* Defensive: prevent the logo from shrinking when the header gets cramped.
   Without this, flex-shrink can squash the image to a 1-2px sliver, which
   manifested as a white vertical artifact on phone widths. */
.site-header__brand { flex-shrink: 0; }
.site-header__brand img { flex-shrink: 0; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,20,32,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 60;
  flex-direction: column;
  padding: 88px 32px 40px;
  gap: 4px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }

/* Close (X) button — top right of the drawer. Big tap target, matches the
   hamburger toggle visually so the relationship is obvious. */
.mobile-nav__close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.mobile-nav__close:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.36);
}

/* Section IDs / page links inside the drawer */
.mobile-nav a {
  color: #fff;
  font-size: 1.375rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
}
.mobile-nav a:hover { color: var(--c-accent-cyan); }

/* CTA buttons inside drawer (Whitepaper / Contact) — distinct styling so
   they read as actions, not section anchors. */
.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav__actions .btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px 24px;
}
.mobile-nav__actions .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.mobile-nav__actions .btn-outline:hover {
  background: #fff;
  color: var(--c-brand);
  border-color: #fff;
}

/* Language switcher pill inside the drawer */
.mobile-nav__lang {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
.mobile-nav__lang-pill {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--r-pill);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.24);
}
.mobile-nav__lang-pill a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
  padding: 0 6px;
  border: 0;
}
.mobile-nav__lang-pill a.active { color: #fff; }
.mobile-nav__lang-pill a:hover { color: var(--c-accent-cyan); }
.mobile-nav__lang-pill span { color: rgba(255,255,255,0.3); padding: 0 2px; }

/* ----- 6. Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  background: #03090f;
  color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto; /* content fills, marquee at base */
}
.hero__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.90;
}
.hero__canvas {
  display: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    /* Deeper central scrim — covers h1 + sub + formula area */
    radial-gradient(ellipse 88% 72% at 50% 48%, rgba(4, 11, 31, 0.72) 0%, rgba(4, 11, 31, 0.38) 52%, transparent 74%),
    /* Edge vignette */
    radial-gradient(ellipse 95% 75% at 50% 45%, transparent 35%, rgba(4, 11, 31, 0.62) 100%),
    /* Soft fade into the section below */
    linear-gradient(180deg, transparent 60%, var(--c-hero-bg) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  /* Vertically centered + horizontally centered, max-width keeps copy compact */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(120px, 14vh, 160px);
  padding-bottom: clamp(56px, 8vh, 96px);
  margin: 0 auto;
  max-width: 920px;
}
.hero__eyebrow {
  color: var(--c-accent-cyan);
  margin-bottom: 28px;
}
.hero__eyebrow::before { background: var(--c-accent-cyan); }
.hero h1 {
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin: 0 auto 28px;
  max-width: 22ch;
}
/* EN hero text scales smaller — Latin letters are wider per-character than
   Japanese kanji at the same font-size, so the EN headline ran 3+ lines and
   stretched the hero section taller (which made the WebGL city look bigger).
   Trimming the EN headline brings the layout in line with the JP version. */
.lang-en .hero h1 {
  font-size: clamp(1.875rem, 3.4vw, 3.25rem);
  max-width: 18ch;
}
.lang-en .hero__sub {
  font-size: clamp(0.95rem, 1.15vw, 1.0625rem);
  max-width: 52ch;
}
.hero h1 .highlight {
  color: var(--c-accent-cyan);
}
.hero__sub {
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.96);
  margin: 0 auto 40px;
  max-width: 56ch;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(4, 11, 31, 0.65);
}
.hero__formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 auto 36px;
}
.hero__formula .formula-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid rgba(77, 208, 255, 0.60);
  background: rgba(4, 11, 31, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(4, 11, 31, 0.55);
}
.hero__formula .formula-x {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--c-accent-cyan);
  user-select: none;
  text-shadow: 0 1px 8px rgba(4, 11, 31, 0.60);
}
.hero__formula-meta {
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.08em;
  margin: 0 0 36px;
  text-shadow: 0 1px 8px rgba(4, 11, 31, 0.60);
}

/* On phone + tablet only — shrink the formula chips so they don't compete
   visually with the actual CTA buttons stacked below them on small screens.
   Desktop keeps the original prominent styling. */
@media (max-width: 980px), (max-width: 1366px) and (pointer: coarse) {
  .hero__formula {
    gap: 10px;
    margin: 0 auto 16px;
  }
  .hero__formula .formula-chip {
    padding: 5px 12px;
    font-weight: 500;
    font-size: 0.8125rem;
    border-color: rgba(77, 208, 255, 0.50);
    background: rgba(4, 11, 31, 0.45);
    color: rgba(255, 255, 255, 0.96);
  }
  .hero__formula .formula-x {
    font-size: 1rem;
    color: rgba(77, 208, 255, 0.90);
  }
  .hero__formula-meta {
    color: rgba(255, 255, 255, 0.72);
    /* Wider gap before the CTA pills below so users don't confuse the
       decorative chips with the actual buttons. */
    margin: 0 0 48px;
  }
}
.hero__cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
/* Equal-width hero CTA buttons across JP/EN. JP labels are short, EN labels
   are long; without min-width the buttons would render at very different
   widths in each language. */
.hero__cta .btn-lg {
  min-width: 240px;
  padding-left: 24px;
  padding-right: 24px;
}
.hero__marquee {
  position: relative;
  z-index: 2;
  background: transparent;
  border-top: none;
  padding: 18px 0;
  overflow: hidden;
}
/* ====================================================================
   Unified mobile/tablet button sizing — every primary CTA becomes a
   compact 240x44 pill with 14px label, single line, centered. Replaces
   the previous mix of flex-1, min-width:240, width:100% behaviors that
   produced full-screen-wide buttons on phones.
   Triggered for any phone OR any touch device up to 1366px (matches the
   navbar mobile breakpoint so layout stays consistent).
   ==================================================================== */
@media (max-width: 980px), (max-width: 1366px) and (pointer: coarse) {
  .btn {
    padding: 11px 22px;
    font-size: 0.875rem;
    min-height: 44px;
    white-space: nowrap;
    letter-spacing: 0.01em;
  }
  .btn-lg {
    padding: 12px 24px;
    font-size: 0.875rem;
    min-height: 46px;
  }
  /* Pin every primary CTA to a fixed 240px-wide pill, centered horizontally,
     overriding any flex/100%-width inherited from desktop layout. */
  .hero__cta .btn,
  .closing__cta .btn,
  .mobile-nav__actions .btn,
  .form-actions .btn,
  .section-cta .btn {
    flex: 0 0 auto;
    width: 240px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  /* Hero + Closing CTAs: stack vertically, center each. JP and EN now identical. */
  .hero__cta,
  .closing__cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  /* Mobile-nav drawer actions: column was default; just center each pill */
  .mobile-nav__actions { align-items: center; }
  /* Software-card body button stays card-width inside its card */
  .software-card__body .btn {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 720px) {
  /* Hero h1/sub: drop the desktop max-width caps so they wrap naturally on phone */
  .hero h1 { max-width: 100%; }
  .hero__sub { max-width: 100%; }
}
.hero__marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.hero__marquee:hover .hero__marquee-track { animation-play-state: paused; }
.hero__marquee-track .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.hero__marquee-track .logo-text small {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
}
.hero__marquee-track .logo-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 6px 0;
}
.hero__marquee-track .logo-mark img {
  height: 56px;
  max-width: 180px;
  width: auto;
  display: block;
  border-radius: 8px;
  background: #fff;
  padding: 8px 16px;
  box-sizing: content-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  opacity: 0.95;
  object-fit: contain;
  transition: opacity 200ms;
}
.hero__marquee-track .logo-mark:hover img { opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- 7. Solution diagram ----- */
.diagram {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-surface) 100%);
  position: relative;
  overflow: hidden;
}
/* Diagram section uses a wider container than the rest of the page so the
   chart card and the 'Consulting & hands-on support' band can stretch
   horizontally and breathe. Falls back gracefully on smaller viewports. */
.diagram > .container {
  max-width: min(1480px, calc(100vw - 48px));
}
/* Subtle ambient glow on the section so it doesn't feel flat */
.diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 320px at 20% 10%, rgba(30, 91, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 600px 320px at 80% 90%, rgba(77, 208, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.diagram__svg-wrap {
  margin-top: 56px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  padding: 48px 56px;
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
}
/* Tighter padding for tablet/phone widths regardless of orientation */
@media (max-width: 880px) {
  .diagram__svg-wrap {
    padding: 24px 16px;
  }
}

/* PORTRAIT-only horizontal scroll — phones held vertically and tablets
   held vertically. A 1200x600 viewBox can't render readably squeezed into
   a 320-1024px portrait window, so the wrap scrolls horizontally and the
   SVG keeps a readable min-width.
   Excludes: phone/tablet LANDSCAPE (orientation flips), desktop (typical
   landscape windows >1024px in portrait still get the fit treatment). */
@media (orientation: portrait) and (max-width: 1024px) {
  .diagram__svg-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--c-brand) var(--c-surface);
  }
  /* Visible thin branded scrollbar = permanent swipe affordance */
  .diagram__svg-wrap::-webkit-scrollbar { height: 8px; }
  .diagram__svg-wrap::-webkit-scrollbar-track {
    background: var(--c-surface);
    border-radius: 4px;
  }
  .diagram__svg-wrap::-webkit-scrollbar-thumb {
    background: var(--c-brand);
    border-radius: 4px;
  }
  .diagram__svg {
    min-width: 800px;
    height: auto;
  }
}

/* LANDSCAPE on phones/tablets + DESKTOP — SVG fits to container width.
   No min-width, no scroll — the diagram occupies the full visible area
   and scales down proportionally. Text remains legible because landscape
   viewports are wider than portrait counterparts. */
@media (orientation: landscape), (min-width: 1025px) {
  .diagram__svg-wrap {
    overflow: hidden;
  }
  .diagram__svg {
    min-width: 0;
    width: 100%;
  }
}
/* Faint grid pattern background inside the diagram card for depth */
.diagram__svg-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 91, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 91, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
}
.diagram__svg { width: 100%; height: auto; max-height: 620px; position: relative; z-index: 1; }

/* ===== Diagram entrance animations & motion ===== */
/* Initial state: hidden, will fade in */
.diagram__svg-wrap .dg-input-group,
.diagram__svg-wrap .dg-platform-group,
.diagram__svg-wrap .dg-ai,
.diagram__svg-wrap .dg-ai-text,
.diagram__svg-wrap .dg-cluster-bg,
.diagram__svg-wrap .dg-cluster-label,
.diagram__svg-wrap .dg-tile-wrap,
.diagram__svg-wrap .dg-flow {
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}
.diagram__svg-wrap.is-visible .dg-input-group { opacity: 1; transition-delay: 200ms; }
.diagram__svg-wrap.is-visible .dg-platform-group { opacity: 1; transition-delay: 450ms; }
.diagram__svg-wrap.is-visible .dg-ai,
.diagram__svg-wrap.is-visible .dg-ai-text { opacity: 1; transition-delay: 700ms; }
.diagram__svg-wrap.is-visible .dg-cluster-bg,
.diagram__svg-wrap.is-visible .dg-cluster-label { opacity: 1; transition-delay: 800ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap { opacity: 1; transition-delay: 950ms; }
/* Stagger individual tiles for a wave-in effect */
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(1)  { transition-delay: 950ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(2)  { transition-delay: 985ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(3)  { transition-delay: 1020ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(4)  { transition-delay: 1055ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(5)  { transition-delay: 1090ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(6)  { transition-delay: 1125ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(7)  { transition-delay: 1160ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(8)  { transition-delay: 1195ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(9)  { transition-delay: 1230ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(10) { transition-delay: 1265ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(11) { transition-delay: 1300ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(12) { transition-delay: 1335ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(13) { transition-delay: 1370ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(14) { transition-delay: 1405ms; }
.diagram__svg-wrap.is-visible .dg-tile-wrap:nth-child(15) { transition-delay: 1440ms; }
.diagram__svg-wrap.is-visible .dg-flow { opacity: 1; transition-delay: 1500ms; }

/* Connection paths: draw in via stroke-dashoffset */
.diagram__svg-wrap .dg-link {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  transition: stroke-dashoffset 1100ms var(--ease-out);
}
.diagram__svg-wrap.is-visible .dg-link { stroke-dashoffset: 0; transition-delay: 350ms; }

/* AI box: continuous gentle pulse to draw the eye to the centerpiece */
.diagram__svg-wrap.is-visible .dg-ai {
  animation: dg-ai-pulse 2.6s ease-in-out 1.4s infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes dg-ai-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(30, 91, 255, 0.0)); }
  50%      { filter: drop-shadow(0 0 12px rgba(30, 91, 255, 0.55)); }
}

/* Subtle shimmer on the connection lines after the section is visible */
.diagram__svg-wrap.is-visible .dg-link {
  animation: dg-link-shimmer 4s ease-in-out 1.6s infinite;
}
@keyframes dg-link-shimmer {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.95; }
}

/* Tiles: gentle hover lift in addition to existing fill-change */
.diagram__svg-wrap .dg-tile {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 700ms var(--ease-out),
    transform 220ms var(--ease-snap),
    fill 220ms var(--ease-snap),
    stroke 220ms var(--ease-snap),
    filter 220ms var(--ease-snap);
}
.diagram__svg-wrap .dg-tile:hover { transform: translateY(-2px) scale(1.02); }

/* Reduced motion: disable everything */
@media (prefers-reduced-motion: reduce) {
  .diagram__svg-wrap .dg-input,
  .diagram__svg-wrap .dg-platform,
  .diagram__svg-wrap .dg-tile,
  .diagram__svg-wrap .dg-ai,
  .diagram__svg-wrap .dg-cluster-bg,
  .diagram__svg-wrap .dg-cluster-label,
  .diagram__svg-wrap [class^="dg-"] {
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
  }
  .diagram__svg-wrap .dg-link { stroke-dashoffset: 0 !important; }
}
.diagram__arrow {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: -1px;
}
.diagram__band {
  margin-top: 0;
  background: linear-gradient(160deg, #3FA5E8 0%, #0870CA 48%, #054494 100%);
  color: #fff;
  padding: 28px 32px;
  border-radius: var(--r-md);
}
.diagram__band-inner { display: flex; align-items: center; justify-content: center; }
.diagram__band-item { display: flex; align-items: center; gap: 14px; flex: 1; justify-content: center; padding: 0 12px; }
.diagram__band-item svg { flex-shrink: 0; opacity: 0.92; width: 32px; height: 32px; }
.diagram__band-item-text { text-align: left; }
.diagram__band-item-label { display: block; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3; }
.diagram__band-item-desc { display: block; font-size: 0.6875rem; font-weight: 400; opacity: 0.72; margin-top: 3px; letter-spacing: 0.02em; line-height: 1.4; }
.diagram__band-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); flex-shrink: 0; }
@media (max-width: 680px) {
  .diagram__band { padding: 20px 16px; }
  .diagram__band-inner { flex-wrap: wrap; gap: 16px; }
  .diagram__band-divider { display: none; }
  .diagram__band-item { flex: 0 0 calc(50% - 8px); justify-content: flex-start; padding: 0; gap: 10px; }
  .diagram__band-item svg { width: 26px; height: 26px; }
  .diagram__band-item-label { font-size: 0.8125rem; }
  .diagram__band-item-desc  { font-size: 0.625rem; }
}.diagram__caption {
  margin-top: 16px;
  font-size: var(--fs-meta);
  color: var(--c-ink-3);
  text-align: right;
}

/* SVG diagram styling */
.dg-input { fill: #fff; stroke: var(--c-line-strong); stroke-width: 1.5; }
.dg-input-text { font: 600 15px/1 var(--font-jp); fill: var(--c-ink); }
.dg-platform { fill: var(--c-brand-soft); stroke: var(--c-brand); stroke-width: 1.5; }
.dg-platform-text { font: 700 16px/1 var(--font-jp); fill: var(--c-brand-deep); }
.dg-platform-sub { font: 500 11px/1 var(--font-en); fill: var(--c-brand); opacity: 0.85; }
.dg-ai { fill: var(--c-brand); stroke: var(--c-brand-deep); stroke-width: 2; }
.dg-ai-text { font-family: var(--font-display); fill: #fff; }
/* Tile wrapper: hover triggers on the whole group, not just the rect */
.dg-tile-wrap { cursor: default; transform-box: fill-box; transform-origin: center; transition: transform 220ms var(--ease-snap); }
.dg-tile-wrap:hover { transform: translateY(-2px); }
.dg-tile { fill: #fff; stroke: var(--c-line); stroke-width: 1; transition: stroke 220ms var(--ease-snap), fill 220ms var(--ease-snap), filter 220ms var(--ease-snap); }
.dg-tile-wrap:hover .dg-tile { stroke: var(--c-brand); fill: var(--c-brand-soft); filter: drop-shadow(0 4px 12px rgba(30,91,255,0.25)); }
.dg-tile-text { font: 600 13px/1.25 var(--font-jp); fill: var(--c-ink); pointer-events: none; }
:lang(en) .dg-tile-text { font-family: var(--font-en); }
.dg-tile-wrap:hover .dg-tile-text { fill: var(--c-brand-deep); }
.dg-link { fill: none; stroke: var(--c-brand); stroke-width: 1.6; opacity: 0.55; stroke-linecap: round; }
.dg-cluster-bg { fill: var(--c-brand-soft); fill-opacity: 0.35; stroke: var(--c-brand); stroke-width: 1; stroke-dasharray: 4 4; }
.dg-cluster-label { font: 700 13px/1 var(--font-en); fill: var(--c-brand-deep); letter-spacing: 0.14em; text-transform: uppercase; }
/* Beaming flow dots — render UNDER boxes (placed earlier in SVG source) */
.dg-flow-dot { mix-blend-mode: screen; }

/* =====================================================
   NEW INTERACTIVE DIAGRAM — dg-stage
   Replaces the old SVG-based .diagram__svg-wrap
   ===================================================== */

.dg-stage {
  position: relative;
  display: grid;
  grid-template-columns: 196px 228px 146px 1fr;
  align-items: center;
  gap: 0;
  min-height: 490px;
  margin-top: 56px;
  background: linear-gradient(160deg, #0870CA 0%, #054494 100%);
  border-radius: var(--r-lg);
  border: 1px solid rgba(30,91,255,0.22);
  padding: 36px 28px;
  box-shadow:
    0 0 0 1px rgba(30,91,255,0.07),
    0 32px 80px rgba(6,13,28,0.75),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}

/* Dot-grid pattern */
.dg-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(30,91,255,0.13) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 35%, transparent 100%);
  z-index: 0;
}

/* Ambient corner glows */
.dg-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 8%  16%, rgba(77,208,255,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 32% 26% at 92% 84%, rgba(30,91,255,0.13)  0%, transparent 70%),
    radial-gradient(ellipse 22% 18% at 50% 50%, rgba(30,91,255,0.07)  0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Canvas overlay for animated flow lines */
.dg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Columns */
.dg-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
}

.dg-col-label {
  display: none;
}

.dg-col-step {
  display: none;
}

.dg-node-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

/* ---- Input nodes ---- */
.dg-col--inputs { padding-right: 8px; }

.dg-input-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: linear-gradient(135deg, rgba(77,208,255,0.14) 0%, rgba(255,255,255,0.08) 100%);
  border: 1px solid rgba(77,208,255,0.38);
  border-radius: 12px;
  position: relative;
  transition: border-color 260ms var(--ease-snap), background 260ms var(--ease-snap), box-shadow 260ms var(--ease-snap);
  cursor: default;
}

.dg-input-node:hover {
  border-color: rgba(77,208,255,0.48);
  background: linear-gradient(135deg, rgba(77,208,255,0.10) 0%, rgba(30,91,255,0.06) 100%);
  box-shadow: 0 0 20px rgba(77,208,255,0.12), inset 0 1px 0 rgba(77,208,255,0.10);
}

@keyframes dg-icon-pulse {
  0%, 100% { background: rgba(30,91,255,0.20); border-color: rgba(77,208,255,0.18); }
  50%       { background: rgba(30,91,255,0.34); border-color: rgba(77,208,255,0.35); }
}
.dg-node-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(30,91,255,0.20);
  border: 1px solid rgba(77,208,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(77,208,255,0.90);
  animation: dg-icon-pulse 3.8s ease-in-out infinite;
}
.dg-input-node:nth-child(2) .dg-node-icon { animation-delay: 0.9s; }
.dg-input-node:nth-child(3) .dg-node-icon { animation-delay: 1.8s; }

.dg-node-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.dg-node-name {
  font: 600 13px/1.2 var(--font-en);
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.dg-node-desc {
  font: 400 10.5px/1.3 var(--font-en);
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Glowing connector dot on right edge */
@keyframes dg-dot-ping {
  0%   { box-shadow: 0 0 6px 2px rgba(77,208,255,0.70), 0 0 0 0   rgba(77,208,255,0.55); }
  65%  { box-shadow: 0 0 6px 2px rgba(77,208,255,0.70), 0 0 0 9px rgba(77,208,255,0);    }
  100% { box-shadow: 0 0 6px 2px rgba(77,208,255,0.70), 0 0 0 9px rgba(77,208,255,0);    }
}
@keyframes dg-dot-ping-blue {
  0%   { box-shadow: 0 0 8px 2px rgba(30,91,255,0.80), 0 0 0 0    rgba(30,91,255,0.55); }
  65%  { box-shadow: 0 0 8px 2px rgba(30,91,255,0.80), 0 0 0 11px rgba(30,91,255,0);    }
  100% { box-shadow: 0 0 8px 2px rgba(30,91,255,0.80), 0 0 0 11px rgba(30,91,255,0);    }
}
.dg-node-dot {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4DD0FF;
  animation: dg-dot-ping 2.2s ease-out infinite;
  z-index: 3;
}
.dg-platform-node .dg-node-dot {
  background: #1A75CC;
  animation: dg-dot-ping-blue 2.4s ease-out infinite;
  animation-delay: 0.7s;
}

/* Vertical separator lines between columns */
@keyframes dg-sep-flow {
  0%   { background-position: 0 0%; }
  100% { background-position: 0 200%; }
}
.dg-col--platform,
.dg-col--ai,
.dg-col--solutions {
  border-left: 1px solid transparent;
}
.dg-col--platform {
  border-image: linear-gradient(to bottom, transparent 5%, rgba(77,208,255,0.18) 30%, rgba(30,91,255,0.22) 70%, transparent 95%) 1;
}
.dg-col--ai {
  border-image: linear-gradient(to bottom, transparent 5%, rgba(30,91,255,0.28) 30%, rgba(30,91,255,0.28) 70%, transparent 95%) 1;
}
.dg-col--solutions {
  border-image: linear-gradient(to bottom, transparent 5%, rgba(30,91,255,0.20) 30%, rgba(30,91,255,0.20) 70%, transparent 95%) 1;
}

/* Flow-direction chevrons between columns */
.dg-col--platform::before,
.dg-col--ai::before,
.dg-col--solutions::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  clip-path: polygon(30% 20%, 70% 50%, 30% 80%);
  background: rgba(77,208,255,0.75);
  z-index: 10;
}

/* Hide glowing connector dots — visual noise */
.dg-node-dot { display: none !important; }
.dg-platform-node .dg-node-dot { display: none !important; }

/* ---- Platform nodes ---- */
.dg-col--platform { padding: 8px 12px; }

.dg-platform-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  width: 100%;
  background: linear-gradient(135deg, rgba(77,208,255,0.14) 0%, rgba(255,255,255,0.08) 100%);
  border: 1px solid rgba(77,208,255,0.38);
  border-radius: 14px;
  position: relative;
  transition: border-color 260ms var(--ease-snap), background 260ms var(--ease-snap), box-shadow 260ms var(--ease-snap);
  cursor: default;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.dg-platform-node:hover {
  border-color: rgba(30,91,255,0.68);
  background: linear-gradient(135deg, rgba(30,91,255,0.22) 0%, rgba(30,91,255,0.12) 100%);
  box-shadow: 0 0 28px rgba(30,91,255,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}

.dg-platform-node .dg-node-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(30,91,255,0.28);
  border: 1px solid rgba(77,208,255,0.22);
  color: rgba(77,208,255,0.95);
}

.dg-platform-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dg-platform-body .dg-node-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}

.dg-node-sub {
  font: 500 10px/1 var(--font-en);
  color: #fff;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Connector dot on platform node right edge */
.dg-platform-node .dg-node-dot {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0870CA;
  box-shadow: 0 0 7px 2px rgba(8,112,202,0.70);
  z-index: 3;
}

/* ---- AI Core ---- */
.dg-col--ai {
  padding: 6px;
  justify-content: center;
}

@keyframes dg-sweep-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.dg-ai-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
}
/* Rotating energy sweep arc around AI core */
.dg-ai-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(77,208,255,0.65) 0deg 18deg,
    rgba(30,91,255,0.35)  18deg 45deg,
    transparent           45deg 360deg
  );
  mask: radial-gradient(transparent 54%, black 55%);
  -webkit-mask: radial-gradient(transparent 54%, black 55%);
  animation: dg-sweep-spin 3.6s linear infinite;
  z-index: 4;
  pointer-events: none;
}
/* Counter-rotating faint arc */
.dg-ai-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    transparent           0deg 200deg,
    rgba(77,208,255,0.25) 200deg 220deg,
    transparent           220deg 360deg
  );
  mask: radial-gradient(transparent 62%, black 63%);
  -webkit-mask: radial-gradient(transparent 62%, black 63%);
  animation: dg-sweep-spin 5.8s linear infinite reverse;
  z-index: 4;
  pointer-events: none;
}

.dg-ai-core {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(8,112,202,0.30);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  z-index: 5;
  cursor: default;
  animation: dg-ai-breathe 3.2s ease-in-out infinite;
}

@keyframes dg-ai-breathe {
  0%, 100% {
    box-shadow:
      0 0 0 4px  rgba(8,112,202,0.12),
      0 0 24px   rgba(8,112,202,0.30),
      0 4px 20px rgba(0,0,0,0.18);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(8,112,202,0.18),
      0 0 48px   rgba(8,112,202,0.50),
      0 4px 20px rgba(0,0,0,0.18);
  }
}

/* Neural network SVG overlay inside AI core */
.dg-ai-net {
  display: none;
}

.dg-ai-label {
  font: 800 18px/1 var(--font-display);
  color: var(--c-brand);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.dg-ai-sub-label {
  font: 700 14px/1.3 var(--font-jp);
  color: var(--c-brand-deep);
  letter-spacing: 0.04em;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Expanding pulse rings */
.dg-ai-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(30,91,255,0.70);
  pointer-events: none;
  animation: dg-ring-expand 3.2s ease-out infinite;
}

.dg-ai-ring--1 { width: 98px;  height: 98px;  animation-delay: 0s; }
.dg-ai-ring--2 { width: 126px; height: 126px; animation-delay: 1.07s; }
.dg-ai-ring--3 { width: 154px; height: 154px; animation-delay: 2.13s; }

@keyframes dg-ring-expand {
  0%   { transform: scale(0.80); opacity: 0.90; border-color: rgba(77,208,255,0.75); }
  40%  { border-color: rgba(30,91,255,0.55); }
  100% { transform: scale(1.70); opacity: 0;    border-color: rgba(77,208,255,0.05); }
}

/* ---- Solutions grid ---- */
.dg-col--solutions {
  align-items: flex-start;
  padding: 8px 0 8px 18px;
}

/* Solutions header bar */
@keyframes dg-sol-header-glow {
  0%, 100% { border-color: rgba(30,91,255,0.38); box-shadow: none; }
  50%       { border-color: rgba(77,208,255,0.55); box-shadow: 0 0 16px rgba(30,91,255,0.22); }
}
.dg-sol-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: linear-gradient(90deg, rgba(30,91,255,0.28) 0%, rgba(30,91,255,0.10) 100%);
  border: 1px solid rgba(30,91,255,0.38);
  border-radius: 9px;
  margin-bottom: 10px;
  width: 100%;
  animation: dg-sol-header-glow 3.8s ease-in-out infinite;
}

.dg-sol-header-label {
  font: 700 11px/1.2 var(--font-en);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff;
}

.dg-sol-header-sep {
  color: rgba(255,255,255,0.30);
  font-size: 10px;
}

.dg-sol-header-sub {
  font: 400 10px/1.2 var(--font-jp);
  color: rgba(255,255,255,0.70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.dg-sol-count-pill {
  margin-left: auto;
  font: 600 9px/1 var(--font-en);
  color: #fff;
  letter-spacing: 0.06em;
  background: rgba(77,208,255,0.08);
  border: 1px solid rgba(77,208,255,0.16);
  border-radius: 20px;
  padding: 2px 7px;
}

/* ---- Solution tool tiles (15 individual tools) ---- */
.dg-sol-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
}

.dg-sol-card {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 56px;
  padding: 9px 10px;
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.32);
  border-left: 2px solid rgba(77,148,255,0.90);
  border-radius: 9px;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 230ms var(--ease-snap),
    background   230ms var(--ease-snap),
    box-shadow   230ms var(--ease-snap),
    transform    230ms var(--ease-snap);
}

.dg-sol-card:hover {
  border-color: rgba(30,91,255,0.50);
  border-left-color: rgba(77,208,255,0.85);
  background: rgba(30,91,255,0.11);
  box-shadow: 0 0 18px rgba(30,91,255,0.20), 0 4px 12px rgba(0,0,0,0.26);
  transform: translateY(-2px);
}

.dg-sol-card.is-lit {
  border-color: rgba(77,208,255,0.26);
  border-left-color: rgba(77,208,255,0.60);
  background: rgba(77,208,255,0.06);
}

.dg-sol-card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
  font: 700 9px/1 var(--font-en);
  letter-spacing: 0.02em;
  color: rgba(77,208,255,0.76);
  background: rgba(77,208,255,0.08);
  border: 1px solid rgba(77,208,255,0.15);
  transition: background 230ms, color 230ms;
}
.dg-sol-card:hover .dg-sol-card-index,
.dg-sol-card.is-lit .dg-sol-card-index {
  background: rgba(77,208,255,0.18);
  color: rgba(77,208,255,0.98);
}

.dg-sol-card-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  transition: color 230ms var(--ease-snap);
}
.dg-sol-card:hover .dg-sol-card-icon { color: rgba(255,255,255,0.92); }
.dg-sol-card.is-lit .dg-sol-card-icon { color: rgba(77,208,255,0.90); }

.dg-sol-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.dg-sol-card-desc {
  font: 600 11.5px/1.3 var(--font-jp);
  color: #fff;
  transition: color 230ms;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dg-sol-card:hover .dg-sol-card-desc { color: #fff; }
.dg-sol-card.is-lit .dg-sol-card-desc { color: #fff; }

.dg-sol-card-name {
  font: 600 10px/1.2 var(--font-en);
  color: #fff;
  transition: color 230ms;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dg-sol-card:hover .dg-sol-card-name { color: #fff; }
.dg-sol-card.is-lit .dg-sol-card-name { color: #fff; }

/* Tooltip panel */
.dg-tip {
  position: absolute;
  background: rgba(5,11,24,0.96);
  border: 1px solid rgba(30,91,255,0.35);
  border-radius: 8px;
  padding: 7px 12px;
  font: 500 11.5px/1.4 var(--font-en);
  color: #fff;
  max-width: 220px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms, transform 180ms;
  z-index: 20;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.dg-tip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Entrance animations ---- */
.dg-col--inputs,
.dg-col--platform,
.dg-col--ai,
.dg-col--solutions {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 580ms var(--ease-out), transform 580ms var(--ease-out);
}

.dg-stage.is-visible .dg-col--inputs    { opacity: 1; transform: none; transition-delay: 120ms; }
.dg-stage.is-visible .dg-col--platform  { opacity: 1; transform: none; transition-delay: 280ms; }
.dg-stage.is-visible .dg-col--ai        { opacity: 1; transform: none; transition-delay: 460ms; }
.dg-stage.is-visible .dg-col--solutions { opacity: 1; transform: none; transition-delay: 620ms; }

/* Card stagger entrance */
.dg-sol-card {
  opacity: 0;
  transform: translateX(10px);
}
.dg-stage.is-visible .dg-sol-card:nth-child(1) { opacity: 1; transform: none; transition-delay: 680ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(2) { opacity: 1; transform: none; transition-delay: 712ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(3) { opacity: 1; transform: none; transition-delay: 744ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(4) { opacity: 1; transform: none; transition-delay: 776ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(5) { opacity: 1; transform: none; transition-delay: 808ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(6) { opacity: 1; transform: none; transition-delay: 840ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(7) { opacity: 1; transform: none; transition-delay: 872ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(8) { opacity: 1; transform: none; transition-delay: 904ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(9) { opacity: 1; transform: none; transition-delay: 936ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(10) { opacity: 1; transform: none; transition-delay: 968ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(11) { opacity: 1; transform: none; transition-delay: 1000ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(12) { opacity: 1; transform: none; transition-delay: 1032ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(13) { opacity: 1; transform: none; transition-delay: 1064ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(14) { opacity: 1; transform: none; transition-delay: 1096ms; }
.dg-stage.is-visible .dg-sol-card:nth-child(15) { opacity: 1; transform: none; transition-delay: 1128ms; }

/* Stage fade in */
.dg-stage {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 660ms var(--ease-out), transform 660ms var(--ease-out);
}
.dg-stage.is-visible { opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .dg-stage,
  .dg-col--inputs, .dg-col--platform, .dg-col--ai, .dg-col--solutions,
  .dg-sol-card {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .dg-ai-core  { animation: none !important; }
  .dg-ai-ring  { animation: none !important; opacity: 0 !important; }
  .dg-canvas   { display: none !important; }
  .dg-node-dot { animation: none !important; }
  .dg-node-icon { animation: none !important; }
  .dg-sol-header { animation: none !important; }
  .dg-ai-wrap::before, .dg-ai-wrap::after { display: none !important; }
}

/* Responsive: stack on small/portrait */
@media (max-width: 860px) {
  .dg-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
    padding: 24px 18px;
    gap: 16px;
  }
  .dg-col--inputs    { grid-column: 1; grid-row: 1; }
  .dg-col--platform  { grid-column: 2; grid-row: 1; }
  .dg-col--ai        { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: center; }
  .dg-col--solutions { grid-column: 1 / -1; grid-row: 3; padding-left: 0; }
  .dg-canvas         { display: none; }
  .dg-node-dot       { display: none; }
}


@media (max-width: 720px) {
  .diagram > .container {
    width: min(100% - 24px, var(--container));
  }

  .dg-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-items: stretch;
    margin-top: 36px;
    padding: 18px 14px;
    gap: 14px;
    border-radius: 14px;
  }

  .dg-col {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100%;
    padding: 0;
    border-left: 0;
  }

  .dg-col--inputs,
  .dg-col--platform,
  .dg-col--solutions {
    align-items: stretch;
  }

  .dg-col--ai {
    min-height: 132px;
    padding: 8px 0 6px;
  }

  .dg-node-list {
    gap: 8px;
  }

  .dg-input-node,
  .dg-platform-node {
    min-width: 0;
    padding: 10px 11px;
  }

  .dg-node-name,
  .dg-platform-body .dg-node-name,
  .dg-node-desc,
  .dg-node-sub {
    white-space: normal;
  }

  .dg-sol-header {
    flex-wrap: wrap;
    row-gap: 6px;
    padding: 8px 10px;
  }

  .dg-sol-count-pill {
    margin-left: 0;
  }

  .dg-sol-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dg-sol-card {
    min-height: 50px;
    padding: 8px;
  }

  .dg-sol-card-name {
    font-size: 10.5px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .dg-tip {
    display: none;
  }
}

@media (max-width: 420px) {
  .diagram > .container {
    width: min(100% - 20px, var(--container));
  }

  .dg-stage {
    padding: 16px 12px;
    gap: 12px;
  }

  .dg-sol-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dg-sol-card {
    min-height: 44px;
  }

  .dg-sol-card-name {
    font-size: 11px;
  }

  .dg-ai-wrap {
    width: 86px;
    height: 86px;
  }

  .dg-ai-core {
    width: 74px;
    height: 74px;
  }

  .dg-ai-ring--1 { width: 88px; height: 88px; }
  .dg-ai-ring--2 { width: 110px; height: 110px; }
  .dg-ai-ring--3 { width: 132px; height: 132px; }
}

/* ----- 8. 3 service pillars ----- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 880px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: all var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pillar-card:hover {
  border-color: var(--c-brand);
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
}
.pillar-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--c-brand-soft);
  color: var(--c-brand);
  display: grid; place-items: center;
}
.pillar-card h3 {
  font-size: 1.25rem;
  line-height: 1.32;
  letter-spacing: -0.005em;
  margin: 4px 0 2px;
}
.pillar-card p {
  color: var(--c-ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}
.pillar-card a {
  color: var(--c-brand);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: auto;
  padding-top: 8px;
}

/* ----- 9. Case studies ----- */
.case-filter {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.case-filter__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-ink-2);
  white-space: nowrap;
  margin-right: 4px;
}
@media (max-width: 640px) {
  .case-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-left: calc(-1 * var(--container-pad));
    margin-right: calc(-1 * var(--container-pad));
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
  }
  .case-filter::-webkit-scrollbar { display: none; }
  .case-filter__label { display: none; }
  .case-filter .chip {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 0.8125rem;
  }
}
.case-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }
.case-mini {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.case-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.07);
  border-color: rgba(30, 91, 255, 0.1);
}
.case-mini-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(160deg, #3FA5E8 0%, #0870CA 48%, #054494 100%);
}
.case-mini-thumb svg, .case-mini-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.case-mini:hover .case-mini-thumb svg,
.case-mini:hover .case-mini-thumb img { transform: scale(1.05); }
.case-mini-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.case-mini-industry {
  font-family: var(--font-display);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  padding: 4px 12px;
}
.case-mini-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: #fff;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  padding: 5px 12px;
  font-weight: 700;
}
.case-mini-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.case-mini-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.case-mini-challenge {
  font-size: 0.75rem;
  color: var(--c-ink-3);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.case-mini-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-brand);
  letter-spacing: 0.06em;
}
.case-mini.is-hidden { display: none; }

/* Case detail */
.case-detail__hero {
  background: linear-gradient(160deg, #1976D2 0%, #0870CA 48%, #054494 100%);
  color: #fff;
  padding: 144px 0 64px;
}
.case-detail__hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 16px; max-width: 22ch; }
.case-detail__hero .breadcrumb { color: #fff; font-size: var(--fs-meta); display: flex; gap: 8px; align-items: center; }
.case-detail__hero .breadcrumb a:hover { color: var(--c-accent-cyan); }
/* Hero enhancements */
.case-detail__hero { padding: 164px 0 96px; }
.case-detail__hero-kpis {
  display: flex;
  gap: 48px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
  flex-wrap: wrap;
}
.hero-kpi__num {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-kpi__label {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  font-family: var(--font-jp);
  color: rgba(255,255,255,0.92);
}
@media (max-width: 640px) { .case-detail__hero-kpis { gap: 28px; } }

/* Content section background */
.case-detail__content { background: #EEF4FB; }

/* Cards */
.case-detail__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 52px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(153,194,224,0.4);
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: none;
}
.case-detail__row:last-child { border-bottom: none; }
@media (max-width: 880px) { .case-detail__row { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; } }

/* Step badge */
.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.step-badge svg { display: block; }

/* Problem section */
.case-detail__row--problem { border-left: none; }
.case-detail__row--problem .step-badge { background: #B45309; }

/* Outcome section — flat, no card */
.case-detail__row--outcome { background: transparent; box-shadow: none; color: inherit; }
.case-detail__row--outcome .step-badge { background: var(--c-brand); color: #fff; }
.case-detail__row--outcome .case-detail__label { color: inherit; }
.case-detail__row--outcome .case-detail__label .ja { color: var(--c-ink); }
.case-detail__row--outcome .case-detail__body h3 { color: var(--c-ink); }
.case-detail__row--outcome .case-detail__body p { color: var(--c-ink-2); }
.case-detail__row--outcome strong { color: var(--c-ink); }

/* Outcome stat callout */
.outcome-stat {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(8,112,202,0.07);
  border: 1px solid rgba(8,112,202,0.15);
  border-radius: var(--r-md);
  padding: 22px 28px;
  margin-bottom: 28px;
}
.outcome-stat__num {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-brand);
  white-space: nowrap;
}
.outcome-stat__label {
  font-family: var(--font-jp);
  font-size: 0.9375rem;
  color: var(--c-ink-2);
  line-height: 1.5;
}
@media (max-width: 600px) { .outcome-stat { gap: 14px; padding: 18px 20px; } .outcome-stat__num { font-size: 2.25rem; } }

/* Labels */
.case-detail__label {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--c-brand);
}
.case-detail__label .ja { display: block; font-family: var(--font-jp); font-size: 1.375rem; color: var(--c-ink); margin-top: 6px; letter-spacing: 0; text-transform: none; font-weight: 700; }
.case-detail__body h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; margin-bottom: 14px; line-height: 1.3; }
.case-detail__diagram {
  margin-top: 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 28px;
  overflow: hidden;
}
.case-detail__diagram-caption {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.case-detail__diagram-caption span {
  font-size: 0.8125rem;
  color: var(--c-ink-2);
  text-align: center;
  line-height: 1.5;
}

/* ----- 10. Why STUDIO55 ----- */
.why--dark { background: linear-gradient(160deg, #3FA5E8 0%, #0870CA 48%, #054494 100%); position: relative; overflow: hidden; }
.why--dark::before { content: ''; position: absolute; inset: 0; background-image: url('/assets/svg/anim-pattern-isometric-field.svg'); background-size: 400px 280px; background-repeat: repeat; opacity: 0.2; pointer-events: none; }
.why-header { text-align: center; max-width: 860px; margin: 0 auto 72px; white-space: nowrap; }
.why--dark .eyebrow { color: #4DD0FF; }
.why--dark .section-title { color: #fff; }
.why--dark .section-lead { color: rgba(255,255,255,0.52); max-width: 480px; margin-left: auto; margin-right: auto; }
.why-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { position: relative; padding: 44px 36px 40px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.why-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #2D5BE3 0%, #4DD0FF 50%, #2D5BE3 100%); background-size: 200% 100%; animation: why-bar 5s linear infinite; }
@keyframes why-bar { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.why-card:hover { transform: translateY(-6px); border-color: rgba(45,91,227,0.35); box-shadow: 0 20px 56px rgba(0,0,0,0.35), 0 0 0 1px rgba(45,91,227,0.18); }
.why-card__num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: rgba(255,255,255,0.35); margin-bottom: 16px; margin-left: 0; }
.why-card__title { font-size: 1.375rem; font-weight: 700; color: #fff; margin: 0 0 14px; line-height: 1.4; letter-spacing: -0.02em; }
.why-card__body { font-size: 0.875rem; color: rgba(255,255,255,0.52); line-height: 1.85; margin: 0; }
@media (max-width: 900px) {
  .why-cols { grid-template-columns: 1fr; gap: 14px; }
  .why-header { margin-bottom: 48px; white-space: normal; }
  .why-card { padding: 32px 24px; }
  .why-card__num { font-size: 2.5rem; }
}
@media (max-width: 640px) {
  .why-card { padding: 24px 20px; }
  .why-card__num { font-size: 2rem; margin-bottom: 10px; }
  .why-card__title { font-size: 1.1875rem; }
}

/* ----- 10b. Client logos section ----- */
/* Client section scroll animations */
.js-reveals .marquee-grid:not(.is-visible) > .marquee-col {
  opacity: 0;
  transform: translateY(52px);
}
.marquee-grid > .marquee-col {
  transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out);
}
.marquee-grid.is-visible > .marquee-col:nth-child(1) { transition-delay: 0ms; }
.marquee-grid.is-visible > .marquee-col:nth-child(2) { transition-delay: 90ms; }
.marquee-grid.is-visible > .marquee-col:nth-child(3) { transition-delay: 180ms; }
.marquee-grid.is-visible > .marquee-col:nth-child(4) { transition-delay: 270ms; }
.marquee-grid.is-visible > .marquee-col:nth-child(5) { transition-delay: 360ms; }

.section--client-logos {
  background-color: #F8F7F3;
  background-image:
    radial-gradient(ellipse 75% 85% at 50% 50%, transparent 45%, #F8F7F3 100%),
    radial-gradient(circle, rgba(45,91,227,0.14) 1.5px, transparent 1.5px),
    linear-gradient(rgba(45,91,227,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,91,227,0.045) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px, 32px 32px;
  padding: clamp(64px, 8vw, 112px) 0;
}
.client-split {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.client-logos-col {
  display: flex;
  justify-content: center;
}
.client-text-col {
  text-align: center;
}
.client-text-col .eyebrow {
  justify-content: center;
}
.client-stat {
  justify-content: flex-start;
}
.client-text-col .section-title {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  margin-top: 12px;
  margin-bottom: 20px;
}
.client-desc {
  font-size: 0.9375rem;
  color: var(--c-ink-2);
  line-height: 1.8;
  margin-bottom: 32px;
}
.client-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}
.client-more-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-brand);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.client-more-link:hover { text-decoration: underline; }

/* Marquee grid — 3 col × 4 row visible */
@keyframes marqueeUp   { 0% { transform: translateY(0) }    100% { transform: translateY(-50%) } }
@keyframes marqueeDown { 0% { transform: translateY(-50%) } 100% { transform: translateY(0) } }

.marquee-grid {
  --card-h: 90px;
  --gap: 8px;
  display: grid;
  grid-template-columns: repeat(5, var(--card-h));
  gap: var(--gap);
  height: calc(4 * var(--card-h) + 3 * var(--gap));
  overflow: hidden;
}
.marquee-col {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.marquee-col:hover .marquee-track { animation-play-state: paused; }
.marquee-track {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  will-change: transform;
}
.marquee-track--up   { animation: marqueeUp   26s linear infinite; }
.marquee-track--down { animation: marqueeDown 20s linear infinite; }

.marquee-grid .logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--card-h);
  flex-shrink: 0;
  padding: 10px;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
  filter: grayscale(100%);
  opacity: 0.72;
  transition: filter 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  border-radius: 10px;
  background: #fff;
}
.marquee-grid .logo-cell:hover {
  filter: grayscale(0%);
  opacity: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}
.marquee-grid .logo-cell--img img {
  width: 72%;
  max-height: 48px;
  object-fit: contain;
}
@media (max-width: 1024px) {
  .client-split { flex-direction: column; gap: 48px; }
  .client-text-col { order: -1; }
  .logo-wall.logo-wall--client { columns: 4; }
}
@media (max-width: 640px) {
  .logo-wall.logo-wall--client { columns: 3; column-gap: 6px; }
  .logo-wall.logo-wall--client .logo-cell { margin-bottom: 6px; }
  /* 5×90px = 482px overflows phones; 3 cols × 76px = 228px + gaps = 244px fits cleanly */
  .marquee-grid {
    --card-h: 76px;
    grid-template-columns: repeat(3, var(--card-h));
    height: calc(3 * var(--card-h) + 2 * var(--gap));
  }
}

/* ----- 11. Client stat ----- */
.client-stat { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.client-stat .num {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--c-brand);
  line-height: 1;
}
.client-stat .label { font-size: var(--fs-body-l); color: var(--c-ink-2); }
.client-comma { font-size: 0.75em; vertical-align: 0.08em; display: inline-block; }
.client-sha { font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-weight: 800; color: var(--c-brand); }
.client-meta { font-size: var(--fs-meta); color: var(--c-ink-3); margin-top: 4px; }

.logo-wall {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.logo-wall .logo-cell {
  /* 6 per row at desktop: total - 5 gaps, divided by 6 */
  flex: 0 0 calc((100% - 60px) / 6);
}
@media (max-width: 1100px) {
  .logo-wall .logo-cell { flex: 0 0 calc((100% - 36px) / 4); }
}
@media (max-width: 640px) {
  .logo-wall .logo-cell { flex: 0 0 calc((100% - 12px) / 2); }
}
.logo-cell {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  padding: 16px;
  transition: all var(--dur-fast) var(--ease-snap);
  filter: grayscale(100%);
  opacity: 0.7;
}
.logo-cell:hover {
  filter: grayscale(0%);
  opacity: 1;
  border-color: var(--c-brand-soft);
  transform: translateY(-2px);
  box-shadow: var(--sh-1);
}
/* Image-bearing cell: don't pad as tightly so the logo can breathe */
.logo-cell--img {
  padding: 16px;
  filter: none;
  opacity: 1;
}
.logo-cell--img:hover { transform: translateY(-2px); }
.logo-cell--img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.logo-wall--4col {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.logo-wall--4col .logo-cell {
  flex: 0 0 calc((100% - 36px) / 4);
}
@media (max-width: 900px) {
  .logo-wall--4col .logo-cell { flex: 0 0 calc((100% - 24px) / 3); }
}
@media (max-width: 640px) {
  .logo-wall--4col .logo-cell { flex: 0 0 calc((100% - 12px) / 2); }
}

/* 6-column logo wall with diagonal size reduction (top-left large → bottom-right small) */
.logo-wall--6col .logo-cell {
  flex: 0 0 calc((100% - 60px) / 6);
}
.logo-wall--6col .logo-cell img {
  transform: scale(var(--logo-scale, 1));
  transform-origin: center;
  transition: transform 220ms ease;
}
/* Diagonal 0 */
.logo-wall--6col .logo-cell:nth-child(1)  { --logo-scale: 1.00; }
/* Diagonal 1 */
.logo-wall--6col .logo-cell:nth-child(2),
.logo-wall--6col .logo-cell:nth-child(7)  { --logo-scale: 0.92; }
/* Diagonal 2 */
.logo-wall--6col .logo-cell:nth-child(3),
.logo-wall--6col .logo-cell:nth-child(8),
.logo-wall--6col .logo-cell:nth-child(13) { --logo-scale: 0.85; }
/* Diagonal 3 */
.logo-wall--6col .logo-cell:nth-child(4),
.logo-wall--6col .logo-cell:nth-child(9),
.logo-wall--6col .logo-cell:nth-child(14),
.logo-wall--6col .logo-cell:nth-child(19) { --logo-scale: 0.78; }
/* Diagonal 4 */
.logo-wall--6col .logo-cell:nth-child(5),
.logo-wall--6col .logo-cell:nth-child(10),
.logo-wall--6col .logo-cell:nth-child(15),
.logo-wall--6col .logo-cell:nth-child(20),
.logo-wall--6col .logo-cell:nth-child(25) { --logo-scale: 0.71; }
/* Diagonal 5 */
.logo-wall--6col .logo-cell:nth-child(6),
.logo-wall--6col .logo-cell:nth-child(11),
.logo-wall--6col .logo-cell:nth-child(16),
.logo-wall--6col .logo-cell:nth-child(21),
.logo-wall--6col .logo-cell:nth-child(26) { --logo-scale: 0.65; }
/* Diagonal 6 */
.logo-wall--6col .logo-cell:nth-child(12),
.logo-wall--6col .logo-cell:nth-child(17),
.logo-wall--6col .logo-cell:nth-child(22) { --logo-scale: 0.60; }
/* Diagonal 7 */
.logo-wall--6col .logo-cell:nth-child(18),
.logo-wall--6col .logo-cell:nth-child(23) { --logo-scale: 0.55; }
/* Diagonal 8 */
.logo-wall--6col .logo-cell:nth-child(24) { --logo-scale: 0.51; }
@media (max-width: 1000px) {
  .logo-wall--6col .logo-cell { flex: 0 0 calc((100% - 48px) / 5); }
}
@media (max-width: 640px) {
  .logo-wall--6col .logo-cell { flex: 0 0 calc((100% - 24px) / 3); }
}
.logo-wall--3col .logo-cell {
  flex: 0 0 calc((100% - 24px) / 3);
}
@media (max-width: 640px) {
  .logo-wall--3col .logo-cell { flex: 0 0 calc((100% - 12px) / 2); }
}
.logo-cell .logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  color: var(--c-ink);
  line-height: 1.2;
}
.logo-cell .logo-name small {
  display: block;
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--c-ink-3);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* ----- 12. Software partners ----- */
#software { background: #fff; }

.sw-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 48px auto 0;
}
.sw-col {
  display: flex;
  flex-direction: column;
  border-right: 1px dashed var(--c-line-strong);
  padding: 0 40px;
}
.sw-col:first-child { padding-left: 0; }
.sw-col:last-child { border-right: none; padding-right: 0; }
.sw-col-body { flex: 1; display: flex; flex-direction: column; }
.sw-col-tag {
  display: block;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--c-ink-3);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sw-col-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.sw-col-text {
  font-size: 0.84375rem;
  color: var(--c-ink-2);
  line-height: 1.85;
  margin-bottom: 24px;
  flex: 1;
}
.sw-col-link {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--c-brand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  text-decoration: none;
}
.sw-col-link:hover { opacity: 0.72; }
.sw-col-illus {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  margin-bottom: 32px;
}
.sw-col-illus img {
  max-width: 70%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 640px) {
  .sw-cols { grid-template-columns: 1fr; }
  .sw-col { border-right: none; border-bottom: 1px dashed var(--c-line-strong); padding: 0 0 28px; margin-bottom: 28px; }
  .sw-col:last-child { border-bottom: none; margin-bottom: 0; }
  .sw-col-illus { min-height: 80px; padding: 20px 18px; margin-bottom: 20px; }
}

/* ----- 13. Team ----- */
.team-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.3s ease;
}
.team-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 91, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}
.team-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(160deg, #3FA5E8 0%, #0870CA 48%, #054494 100%);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  border: 2px solid rgba(30, 91, 255, 0.2);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-name { font-size: 0.9375rem; font-weight: 700; color: var(--c-ink); margin-bottom: 4px; }
.team-role {
  font-family: var(--font-display);
  font-size: 0.625rem;
  color: var(--c-brand);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.team-bio { font-size: 0.71875rem; color: var(--c-ink-3); line-height: 1.7; }

/* ----- 14. Closing CTA ----- */
.closing {
  position: relative;
  background: linear-gradient(160deg, #3FA5E8 0%, #0870CA 48%, #054494 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(96px, 12vw, 160px) 0;
  text-align: center;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(30,91,255,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(77,208,255,0.1), transparent 50%);
}
.closing__bim-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
  overflow: hidden;
}
.closing__bim-bg svg { width: 100%; height: 100%; }
@keyframes bimNodePulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes bimLinePulse { 0%, 100% { stroke-opacity: 0.25; } 50% { stroke-opacity: 0.85; } }
.bim-n { animation: bimNodePulse 3.5s ease-in-out infinite; }
.bim-l { animation: bimLinePulse 4s ease-in-out infinite; }
.bim-na { animation-delay: 0s; } .bim-nb { animation-delay: 0.7s; } .bim-nc { animation-delay: 1.4s; } .bim-nd { animation-delay: 2.1s; } .bim-ne { animation-delay: 2.8s; }
.bim-la { animation-delay: 0s; } .bim-lb { animation-delay: 0.8s; } .bim-lc { animation-delay: 1.6s; } .bim-ld { animation-delay: 2.4s; } .bim-le { animation-delay: 3.2s; }
.closing__inner { position: relative; z-index: 1; }
.closing h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.closing h2 .highlight {
  background: #fff;
  color: var(--c-ink);
  padding: 0 16px;
  border-radius: 6px;
  margin: 0 4px;
}
.closing p { font-size: var(--fs-body-l); color: rgba(255,255,255,0.78); max-width: none; margin-left: auto; margin-right: auto; margin-bottom: 40px; text-align: center; }
.closing__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ----- 15. Footer ----- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--c-line);
  padding: 64px 0 32px;
  font-size: var(--fs-body-s);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
/* Tablet portrait — Brand spans the full top row, then 3 even nav columns
   below. This balances the layout because brand has logo + tagline (short)
   while Sitemap (5 items) is naturally the tallest of the nav columns. */
@media (max-width: 880px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px 24px;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}
/* Phone portrait — same brand-spans-full pattern, but only 2 nav columns
   below (Sitemap+Company on row 2, Legal alone on row 3). */
@media (max-width: 480px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}
.site-footer__brand .tag {
  color: var(--c-ink-3);
  margin-top: 16px;
  max-width: 32ch;
}
@media (max-width: 880px) {
  /* Tagline gets to use brand's full row width on tablet/phone, but the
     32ch cap still keeps it readable on tablets — only relax it on the
     narrowest phones where the cap forces awkward 1-2 word lines. */
  .site-footer__brand .tag {
    max-width: 60ch;
    font-size: var(--fs-meta);
    line-height: 1.55;
  }
}
.site-footer h4 {
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--c-ink-2); }
.site-footer a:hover { color: var(--c-brand); }
.site-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-meta);
  color: var(--c-ink-3);
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer__bottom .lang-switch a { padding: 0 6px; }
.site-footer__bottom .lang-switch .active { color: var(--c-ink); font-weight: 700; }

/* ----- 16a. Scroll-to-top button (auto-injected by main.js on all pages) ----- */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  background: var(--c-brand);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: var(--z-banner);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity var(--dur-base) var(--ease-snap), transform var(--dur-base) var(--ease-snap), background var(--dur-fast);
  box-shadow: 0 8px 24px rgba(30, 91, 255, 0.32);
  cursor: pointer;
  border: 0;
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--c-brand-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(30, 91, 255, 0.4);
}
.scroll-top:active {
  transform: translateY(-1px) scale(0.96);
}
@media (max-width: 640px) {
  .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ----- 16. Floating whitepaper banner ----- */
.float-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 280px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: 20px;
  z-index: var(--z-banner);
  border: 1px solid var(--c-line);
  display: none;
  animation: float-in var(--dur-slow) var(--ease-out) both;
}
.float-banner.is-visible { display: block; }
@keyframes float-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.float-banner__close {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: var(--c-ink-3);
}
.float-banner__close:hover { background: var(--c-surface); color: var(--c-ink); }
.float-banner__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--c-brand-soft);
  color: var(--c-brand);
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.float-banner h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.float-banner p { font-size: var(--fs-meta); color: var(--c-ink-3); margin-bottom: 12px; }
.float-banner .btn { width: 100%; }
@media (max-width: 640px) {
  .float-banner {
    right: 12px; left: 12px; bottom: 12px; width: auto;
    padding: 16px;
  }
}

/* ----- 17. Forms ----- */
.form-shell {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 48px);
}
.form-row { margin-bottom: 24px; }
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row.two-col { grid-template-columns: 1fr; } }
.form-row label {
  display: block;
  font-size: var(--fs-body-s);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--c-ink);
}
.form-row label .req { color: var(--c-error); margin-left: 4px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease-snap), box-shadow var(--dur-fast);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-soft);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-checkbox {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: var(--fs-body-s);
  color: var(--c-ink-2);
}
.form-checkbox input { width: 18px; height: 18px; margin-top: 4px; }
.form-checkbox a { color: var(--c-brand); text-decoration: underline; }
.form-actions { margin-top: 32px; }
.form-actions .btn { width: 100%; padding: 16px; font-size: 1rem; }
.form-note {
  font-size: var(--fs-meta);
  color: var(--c-ink-3);
  margin-bottom: 24px;
  padding: 16px;
  background: var(--c-surface);
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-brand);
}

/* Whitepaper layout */
.whitepaper-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 980px) { .whitepaper-layout { grid-template-columns: 1fr; } }
.whitepaper-preview {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  text-align: center;
}
.whitepaper-preview .cover {
  width: 240px;
  aspect-ratio: 3/4;
  margin: 0 auto 32px;
  background: linear-gradient(180deg, var(--c-brand) 0%, var(--c-brand-deep) 100%);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}
.whitepaper-preview .cover .label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.8;
  text-transform: uppercase;
}
.whitepaper-preview .cover .title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.25;
}
.whitepaper-preview .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 100%, rgba(77,208,255,0.3), transparent 50%);
  pointer-events: none;
}
.whitepaper-preview h3 { font-size: 1.5rem; margin-bottom: 12px; }
.whitepaper-toc {
  text-align: left;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}
.whitepaper-toc h4 { font-size: var(--fs-meta); text-transform: uppercase; color: var(--c-ink-3); letter-spacing: 0.12em; margin-bottom: 12px; }
.whitepaper-toc ol { padding-left: 1.2em; color: var(--c-ink-2); font-size: var(--fs-body-s); }
.whitepaper-toc li { margin-bottom: 6px; }

/* Whitepaper spec block (replaces cover visual in left column) */
.wp-spec-block { padding: clamp(40px, 6vw, 72px) 0; }
.wp-spec-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-brand); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 7px; }
.wp-spec-eyebrow::before { content: ''; width: 7px; height: 7px; background: var(--c-accent-cyan); border-radius: 50%; display: inline-block; flex-shrink: 0; }
.wp-spec-title { font-size: clamp(26px, 3.2vw, 42px); font-weight: 700; color: var(--c-ink); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 18px; }
.wp-spec-intro { font-size: var(--fs-body); color: var(--c-ink-2); line-height: 1.85; margin-bottom: 28px; }

/* Document preview card */
.wp-doc-card { position: relative; background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-deep) 100%); border-radius: var(--r-lg); padding: 20px 22px; color: #fff; display: flex; align-items: center; gap: 18px; margin-bottom: 28px; overflow: hidden; box-shadow: 0 8px 32px rgba(8, 112, 202, 0.22); }
.wp-doc-card-icon { flex-shrink: 0; width: 44px; height: 56px; background: rgba(255,255,255,0.12); border-radius: 4px; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
.wp-doc-card-info { flex: 1; min-width: 0; }
.wp-doc-card-label { display: block; font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; opacity: 0.8; margin-bottom: 5px; text-transform: uppercase; }
.wp-doc-card-desc { font-size: var(--fs-meta); opacity: 0.72; line-height: 1.65; margin: 0; }
.wp-doc-card-badge { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.wp-doc-card-badge span { font-family: var(--font-en); font-size: 16px; font-weight: 800; letter-spacing: 0.02em; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.32); border-radius: var(--r-sm); padding: 4px 12px; line-height: 1.3; }
.wp-doc-card-badge small { font-size: 10px; opacity: 0.65; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-en); }
.wp-doc-card-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.wp-doc-card-deco--1 { width: 130px; height: 130px; background: radial-gradient(circle, rgba(77,208,255,0.22), transparent 70%); right: -20px; top: -48px; }
.wp-doc-card-deco--2 { width: 80px; height: 80px; background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%); left: -16px; bottom: -24px; }

/* Contents list with icons */
.wp-contents-list { list-style: none; padding: 24px 0; margin: 0 0 28px; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 14px; }
.wp-contents-list li { display: flex; align-items: center; gap: 14px; font-size: var(--fs-body-s); color: var(--c-ink-2); line-height: 1.6; }
.wp-item-icon { flex-shrink: 0; width: 36px; height: 36px; background: var(--c-brand-soft); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--c-brand); }
.wp-item-text { display: flex; align-items: center; gap: 10px; flex: 1; }
.wp-contents-num { flex-shrink: 0; font-family: var(--font-en); font-size: 11px; font-weight: 700; color: var(--c-brand); background: var(--c-brand-soft); border-radius: var(--r-sm); padding: 3px 8px; min-width: 28px; text-align: center; line-height: 1.5; }
.wp-meta { display: flex; align-items: center; gap: 18px; }
.wp-meta-item { display: flex; flex-direction: column; gap: 2px; font-size: 10px; font-weight: 600; color: var(--c-ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.wp-meta-item strong { font-size: 20px; font-weight: 800; color: var(--c-ink); letter-spacing: -0.01em; }
.wp-meta-divider { width: 1px; height: 32px; background: var(--c-line); flex-shrink: 0; }

/* Contact 2-column layout */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }
.contact-aside__title { font-size: clamp(22px, 2.8vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 14px; color: var(--c-ink); }
.contact-aside__intro { font-size: var(--fs-body); color: var(--c-ink-2); line-height: 1.85; margin-bottom: 28px; }
.contact-info-strip { display: flex; flex-direction: column; gap: 10px; }
.contact-info-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.contact-info-icon { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--c-brand-soft); color: var(--c-brand); display: grid; place-items: center; flex-shrink: 0; }
.contact-info-label { font-size: 10px; font-weight: 700; color: var(--c-ink-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.contact-info-val { font-size: var(--fs-body-s); font-weight: 600; color: var(--c-ink); }

/* ----- 18. Page hero (sub-page intro band, used on all non-home pages) -----
   The site-header is position:fixed, so every sub-page section must clear it.
   Dark gradient mirrors the home hero, so sub-pages feel part of the same
   product family. White text on dark navy gives the h1 strong contrast and
   reads as a deliberate "section above the fold" rather than an unstyled top. */
.page-hero {
  background: linear-gradient(160deg, #3FA5E8 0%, #0870CA 48%, #054494 100%);
  color: #fff;
  padding: clamp(140px, 16vw, 200px) 0 clamp(64px, 9vw, 96px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 208, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 208, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, #000 0%, transparent 75%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero .eyebrow { color: var(--c-accent-cyan); margin-bottom: 24px; }
.page-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: #fff;
}
.page-hero p {
  font-size: var(--fs-body-l);
  color: rgba(255, 255, 255, 0.82);
  max-width: 64ch;
  margin: 0 auto;
  line-height: 1.75;
}

/* ----- 19. Misc utility ----- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 24px; } .gap-6 { gap: 32px; }
.text-center { text-align: center; }
/* When .text-center is applied to a header block, also center direct block-level
   children that have a max-width (e.g. .section-lead with max-width:64ch).
   Without this, the block stays at left edge and only its inner text centers. */
.text-center > p,
.text-center > .section-lead,
.text-center > h1,
.text-center > h2,
.text-center > h3 { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 32px; }
.mt-6 { margin-top: 32px; } .mt-8 { margin-top: 48px; }
.section-cta { display: flex; justify-content: center; margin-top: 48px; }

/* Reveal on scroll — content visible by default; JS hides briefly then animates in.
   Avoids invisible-content failure mode if main.js fails to run. */
.reveal { opacity: 1; transform: none; transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); }
.reveal-stagger > * { opacity: 1; transform: none; transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out); }
.js-reveals .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.js-reveals .reveal-stagger:not(.is-visible) > * { opacity: 0; transform: translateY(16px); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .hero__marquee-track { animation: none; }
}

@media print {
  .site-header, .float-banner, .scroll-top, .hero__canvas-wrap, .hero__marquee { display: none !important; }
}

/* ── Custom cursor (fine pointer / mouse only) ── */
@media (pointer: fine) {
  * { cursor: none !important; }

  #s55-cur-dot,
  #s55-cur-ring {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
    backface-visibility: hidden;
  }

  #s55-cur-dot {
    width: 5px; height: 5px;
    background: var(--c-brand);
    transition: width 200ms var(--ease-out), height 200ms var(--ease-out),
                opacity 200ms var(--ease-out), background 200ms;
    z-index: 10000;
  }

  #s55-cur-ring {
    width: 30px; height: 30px;
    border: 1.5px solid rgba(30, 91, 255, 0.5);
    background: transparent;
    transition: width 380ms var(--ease-out), height 380ms var(--ease-out),
                border-color 250ms, background 250ms, opacity 200ms;
  }

  /* Hover state — interactive elements */
  body.cur--hover #s55-cur-dot {
    width: 0; height: 0; opacity: 0;
  }
  body.cur--hover #s55-cur-ring {
    width: 46px; height: 46px;
    border-color: rgba(30, 91, 255, 0.65);
    background: rgba(30, 91, 255, 0.07);
  }

  /* Text-input state */
  body.cur--text #s55-cur-dot {
    width: 2px; height: 20px;
    border-radius: 1px;
    background: var(--c-brand);
  }
  body.cur--text #s55-cur-ring {
    width: 0; height: 0; opacity: 0;
  }

  /* Hidden state (e.g. mouse left window) */
  body.cur--hidden #s55-cur-dot,
  body.cur--hidden #s55-cur-ring {
    opacity: 0;
  }
}

/* ─────────────────────────────────────────────────────────
   MOBILE: Diagram — 2-row layout (pipeline top, solutions below)
   ───────────────────────────────────────────────────────── */
.dg-scale-wrap { display: contents; }

@media (max-width: 720px) {
  .dg-scale-wrap {
    display: block;
    width: 100%;
    margin-top: 36px;
  }

  /* 2-row grid: pipeline cols A/B/C on top, solutions full-width below */
  .dg-scale-wrap .dg-stage {
    display: grid !important;
    grid-template-areas:
      "inputs platform ai"
      "solutions solutions solutions" !important;
    grid-template-columns: 1fr 1fr auto !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    width: 100% !important;
    min-height: unset !important;
    padding: 20px 16px !important;
    gap: 16px 8px !important;
    margin-top: 0 !important;
    transform: none !important;
    transform-origin: unset !important;
    transition: opacity 660ms var(--ease-out) !important;
  }

  /* Canvas can't redraw in new layout — hide it */
  .dg-scale-wrap .dg-canvas { display: none !important; }

  /* Skip scroll-reveal animation on mobile — show columns immediately */
  .dg-scale-wrap .dg-col--inputs,
  .dg-scale-wrap .dg-col--platform,
  .dg-scale-wrap .dg-col--ai,
  .dg-scale-wrap .dg-col--solutions {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .dg-scale-wrap .dg-sol-card {
    opacity: 1 !important;
    transform: none !important;
    transition: background 200ms ease, box-shadow 200ms ease !important;
  }

  /* Assign grid areas */
  .dg-scale-wrap .dg-col--inputs    { grid-area: inputs !important;    padding: 0 !important; border-left: 0 !important; width: auto !important; }
  .dg-scale-wrap .dg-col--platform  { grid-area: platform !important;  padding: 0 !important; border-left: 0 !important; width: auto !important; }
  .dg-scale-wrap .dg-col--ai        { grid-area: ai !important;        padding: 0 !important; border-left: 0 !important; width: auto !important; }
  .dg-scale-wrap .dg-col--solutions { grid-area: solutions !important; padding: 0 !important; border-left: 0 !important; width: auto !important; }

  /* Hide column separator lines in pipeline row */
  .dg-scale-wrap .dg-col--platform::before,
  .dg-scale-wrap .dg-col--ai::before,
  .dg-scale-wrap .dg-col--solutions::before { display: none !important; }

  /* Column labels */
  .dg-scale-wrap .dg-col-label {
    font-size: 8px !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.04em !important;
  }

  /* Pipeline nodes — compact (icon + name only, no descriptions) */
  .dg-scale-wrap .dg-node-list { gap: 5px !important; }
  .dg-scale-wrap .dg-input-node,
  .dg-scale-wrap .dg-platform-node {
    padding: 7px 8px !important;
    gap: 5px !important;
  }
  .dg-scale-wrap .dg-node-icon { width: 12px !important; height: 12px !important; flex-shrink: 0 !important; }
  .dg-scale-wrap .dg-node-icon svg { width: 12px !important; height: 12px !important; }
  .dg-scale-wrap .dg-node-name { font-size: 9px !important; white-space: normal !important; line-height: 1.3 !important; }
  .dg-scale-wrap .dg-node-desc,
  .dg-scale-wrap .dg-node-sub  { display: none !important; }
  .dg-scale-wrap .dg-node-dot  { display: none !important; }

  /* AI column — smaller circle, centred */
  .dg-scale-wrap .dg-col--ai {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: unset !important;
  }
  .dg-scale-wrap .dg-ai-wrap  { width: 72px !important; height: 72px !important; }
  .dg-scale-wrap .dg-ai-core  { width: 60px !important; height: 60px !important; }
  .dg-scale-wrap .dg-ai-ring--1 { width:  68px !important; height:  68px !important; }
  .dg-scale-wrap .dg-ai-ring--2 { width:  84px !important; height:  84px !important; }
  .dg-scale-wrap .dg-ai-ring--3 { width: 100px !important; height: 100px !important; }
  .dg-scale-wrap .dg-ai-label     { font-size: 18px !important; }
  .dg-scale-wrap .dg-ai-sub-label { font-size:  7px !important; }

  /* Solutions row — full width, readable 3-column card grid */
  .dg-scale-wrap .dg-col--solutions {
    border-top: 1px solid rgba(255,255,255,0.10) !important;
    padding-top: 14px !important;
  }
  .dg-scale-wrap .dg-sol-header {
    flex-wrap: nowrap !important;
    margin-bottom: 10px !important;
  }
  .dg-scale-wrap .dg-sol-header-label { font-size: 13px !important; }
  .dg-scale-wrap .dg-sol-count-pill   { margin-left: auto !important; }
  .dg-scale-wrap .dg-sol-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .dg-scale-wrap .dg-sol-card {
    min-height: unset !important;
    padding: 10px 8px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
  }
  .dg-scale-wrap .dg-sol-card-name {
    font-size: 11px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
  }
}

/* ─────────────────────────────────────────────────────────
   MOBILE: Case studies — 3-card limit, no expand button
   ───────────────────────────────────────────────────────── */
.case-expand-wrap { display: none; }

@media (max-width: 640px) {
  .case-mini.is-mobile-hidden { display: none; }
}

/* ─────────────────────────────────────────────────────────
   MOBILE: Japanese text readability fixes
   ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .case-mini-title     { letter-spacing: 0; }
  .case-mini-challenge { font-size: 0.8125rem; line-height: 1.7; }
  .case-mini-industry  { letter-spacing: 0.04em; }
}
