:root {
  --carbon: #090a0d;
  --carbon-elev: #111318;
  --carbon-panel: #151821;
  --paper: #f4f3ef;
  --white: #ffffff;

  --ink: #111215;
  --ink-secondary: #52555e;
  --ink-muted: #858994;

  --light: #f2f3f7;
  --light-secondary: #9ca1af;
  --light-muted: #636875;

  --blue: #0022ff;
  --blue-hover: #1a38ff;
  --ws-red: #fe3459;
  --ws-coral: #ff7979;
  --ws-red-hover: #e11d48;
  --ws-soft: rgba(254, 52, 89, 0.14);

  --line-light: rgba(17, 18, 21, 0.11);
  --line-light-strong: rgba(17, 18, 21, 0.22);
  --line-dark: rgba(255, 255, 255, 0.1);
  --line-dark-strong: rgba(255, 255, 255, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Space Grotesk', 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei', sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Menlo', 'Monaco', 'Consolas', ui-monospace, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--carbon);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--carbon);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================================
   Restrained Physical Cursor (Snappy 0ms Core + Elastic Ring, Zero Fireworks)
   ========================================================================= */
@media (pointer: fine) {
  .cursor-core,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    will-change: transform;
    opacity: 0;
  }

  .cursor-core {
    z-index: 9999;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: #ffffff;
    mix-blend-mode: difference;
    transition: opacity 0.15s ease;
  }

  .cursor-ring {
    z-index: 9998;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    mix-blend-mode: difference;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out),
                margin 0.2s var(--ease-out), background 0.18s ease,
                border-color 0.18s ease, opacity 0.15s ease;
  }

  .cursor-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s ease;
  }

  body.cursor-visible .cursor-core,
  body.cursor-visible .cursor-ring {
    opacity: 1;
  }

  body.cursor-hover .cursor-ring {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border-color: rgba(255, 255, 255, 0.85);
  }

  body.cursor-pill .cursor-ring {
    width: auto;
    height: 26px;
    padding: 0 10px;
    margin: 12px 0 0 12px;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.22);
    mix-blend-mode: normal;
  }

  body.cursor-pill .cursor-label {
    opacity: 1;
  }
}

@media (pointer: coarse) {
  .cursor-core, .cursor-ring { display: none; }
}

/* =========================================================================
   Preloader Curtain
   ========================================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--carbon);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 48px;
  transition: transform 0.8s var(--ease-out);
}

.preloader.done {
  transform: translateY(-100%);
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.preloader-brand {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--light-secondary);
}

.preloader-pct {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--white);
}

.preloader-bar {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: var(--white);
  transition: width 0.1s linear;
}

/* =========================================================================
   Base Layout & Typography Utilities
   ========================================================================= */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 36px;
}

.mono { font-family: var(--font-mono); }

.section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.section-index.light {
  color: var(--light-secondary);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   Topbar: Clean Architectural Bar
   ========================================================================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 10, 13, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 36px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand-slash {
  color: var(--light-muted);
  font-weight: 400;
}

.brand-subword {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--light-secondary);
}

.nav-minimal {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: var(--light-secondary);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Clean Editorial Buttons (No Smiley Dots or Gimmicks) */
.btn-solid,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid.blue {
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
}

.btn-solid.blue:hover {
  background: var(--blue-hover);
}

.btn-solid.dark {
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
}

.btn-solid.dark:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-solid.white {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--white);
}

.btn-solid.white:hover {
  background: #e4e6ed;
}

.btn-solid.ws {
  background: var(--ws-red);
  color: var(--white);
  border: 1px solid var(--ws-red);
}

.btn-solid.ws:hover {
  background: var(--ws-red-hover);
  border-color: var(--ws-red-hover);
}

.btn-line.light {
  background: transparent;
  color: var(--light);
  border: 1px solid var(--line-dark-strong);
}

.btn-line.light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-line.dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-light-strong);
}

.btn-line.dark:hover {
  border-color: var(--ink);
  background: rgba(17, 18, 21, 0.04);
}

/* =========================================================================
   HERO: Editorial Typography + 3D Product Workbench (Option B)
   ========================================================================= */
.hero-stage {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: var(--carbon);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line-dark);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.65;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 72% 46%, rgba(0, 34, 255, 0.09), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 92px 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--light-muted);
}

.hero-main-grid {
  margin: auto 0;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--light-secondary);
  margin-bottom: 18px;
}

.hero-display {
  margin: 0;
  font-family: 'Noto Sans SC', var(--font-display);
  font-size: clamp(2.35rem, 4.3vw, 4.1rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--white);
}

.display-line {
  display: block;
}

.display-line.muted-line {
  color: #a3a8b8;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 530px;
  font-size: 0.96rem;
  color: var(--light-secondary);
  line-height: 1.75;
}

.hero-lead strong {
  color: var(--white);
  font-weight: 600;
}

/* =========================================================================
   4-Quadrant Zero-Overlap Isometric 3D Spatial Glass Matrix
   ========================================================================= */
.hero-spatial-stage {
  position: relative;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 490px;
}

.spatial-rig {
  position: relative;
  width: 100%;
  max-width: 610px;
  height: 484px;
  transform-style: preserve-3d;
  transform: rotateX(11deg) rotateY(-18deg) rotateZ(1.4deg);
  will-change: transform;
}

.glass-term,
.holo-satellite {
  position: absolute;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(20, 25, 42, 0.88) 0%, rgba(9, 11, 19, 0.94) 100%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    -20px 30px 60px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s ease;
}

.glass-glare {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(
    320px circle at var(--gx, 30%) var(--gy, 20%),
    rgba(255, 255, 255, 0.14),
    transparent 65%
  );
  pointer-events: none;
  overflow: hidden;
}

.glass-rim-top {
  position: absolute;
  top: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
}

.glass-rim-top.blue {
  background: linear-gradient(90deg, transparent, #3d5afe, #a5b8ff, transparent);
  box-shadow: 0 0 20px rgba(61, 90, 254, 0.88);
}

.glass-rim-top.rose {
  background: linear-gradient(90deg, transparent, #fe3459, #ff94a8, transparent);
  box-shadow: 0 0 20px rgba(254, 52, 89, 0.88);
}

/* Layer 0 (Z = -64px): Deep Optical Motherboard */
.term-back {
  inset: 8px 4px;
  transform: translate3d(0, 0, -64px);
  background: radial-gradient(circle at 50% 50%, rgba(25, 35, 72, 0.46), rgba(7, 9, 15, 0.82));
  border: 1px solid rgba(120, 145, 255, 0.18);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}

.term-back-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: rgba(156, 161, 175, 0.68);
}

.back-status-dots {
  display: inline-flex;
  gap: 5px;
}

.back-status-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.back-status-dots i:first-child { background: #3d5afe; box-shadow: 0 0 8px #3d5afe; }
.back-status-dots i:last-child { background: var(--ws-red); box-shadow: 0 0 8px var(--ws-red); }

.conduit-svg {
  width: 100%;
  flex: 1;
}

/* Quadrant 1 · Top-Left (Z = +48px): FDE Engineering Deck */
.term-fde {
  top: 0;
  left: 0;
  width: 368px;
  padding: 15px 17px;
  transform: translate3d(0, 0, 48px);
  border-color: rgba(77, 107, 255, 0.48);
  cursor: pointer;
}

/* Quadrant 4 · Bottom-Right (Z = +32px): Wanshoo Creator Matrix Deck */
.term-ws {
  bottom: 0;
  right: 0;
  width: 382px;
  padding: 15px 17px;
  transform: translate3d(0, 0, 32px);
  border-color: rgba(254, 52, 89, 0.48);
  cursor: pointer;
}

.term-fde:hover,
body.focus-fde .term-fde {
  transform: translate3d(-6px, -6px, 86px) scale(1.015);
  border-color: #829bff;
  box-shadow:
    -24px 36px 72px rgba(0, 6, 28, 0.88),
    0 0 46px rgba(61, 90, 254, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.term-ws:hover,
body.focus-ws .term-ws {
  transform: translate3d(6px, -4px, 86px) scale(1.015);
  border-color: var(--ws-coral);
  box-shadow:
    -24px 36px 72px rgba(24, 2, 10, 0.88),
    0 0 46px rgba(254, 52, 89, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Quadrant 2 (Top-Right, Z = +88px) & Quadrant 3 (Bottom-Left, Z = +82px):
   Independent High-Altitude Holographic Telemetry Pods (ZERO OVERLAP!) */
.holo-satellite {
  width: 204px;
  padding: 14px 16px;
  cursor: pointer;
}

.holo-satellite.sat-fde {
  top: 12px;
  right: 0;
  transform: translate3d(0, 0, 88px);
  border-color: rgba(91, 120, 255, 0.55);
  box-shadow:
    -22px 32px 60px rgba(0, 4, 22, 0.85),
    0 0 32px rgba(61, 90, 254, 0.25);
}

.holo-satellite.sat-ws {
  bottom: 14px;
  left: 0;
  transform: translate3d(0, 0, 82px);
  border-color: rgba(254, 52, 89, 0.55);
  box-shadow:
    -22px 32px 60px rgba(20, 2, 8, 0.85),
    0 0 32px rgba(254, 52, 89, 0.24);
}

.holo-satellite.sat-fde:hover,
body.focus-fde .holo-satellite.sat-fde {
  transform: translate3d(4px, -6px, 112px) scale(1.03);
  border-color: #9bb1ff;
}

.holo-satellite.sat-ws:hover,
body.focus-ws .holo-satellite.sat-ws {
  transform: translate3d(-4px, -6px, 112px) scale(1.03);
  border-color: #ff94a8;
}

.sat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sat-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sat-tag.blue { color: #9bb1ff; }
.sat-tag.rose { color: var(--ws-coral); }

.sat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sat-dot.blue {
  background: #3d5afe;
  box-shadow: 0 0 10px #3d5afe;
}

.sat-dot.rose {
  background: var(--ws-red);
  box-shadow: 0 0 10px var(--ws-red);
}

.sat-main-val {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.sat-main-val span {
  font-size: 1.15rem;
  margin-left: 1px;
}

.sat-main-val.blue { color: #ffffff; text-shadow: 0 0 22px rgba(61, 90, 254, 0.7); }
.sat-main-val.rose { color: #ffffff; text-shadow: 0 0 22px rgba(254, 52, 89, 0.7); }

.sat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--light-secondary);
  margin-bottom: 10px;
}

.sat-bars {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sat-bar-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--light-muted);
  margin-bottom: 5px;
}

.sat-bar-row strong {
  font-family: var(--font-mono);
  color: var(--white);
}

.sat-mini-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sat-mini-track i {
  display: block;
  height: 100%;
}

.sat-mini-track i.blue {
  background: linear-gradient(90deg, #3d5afe, #9bb1ff);
}

.sat-mini-track i.rose {
  background: linear-gradient(90deg, var(--ws-red), var(--ws-coral));
}

/* Central Open-Channel Reactor Core (Z = +72px, positioned in open diagonal gap) */
.spatial-core-badge {
  position: absolute;
  top: 234px;
  left: 300px;
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 26, 46, 0.95), rgba(8, 10, 18, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.82),
    0 0 28px rgba(91, 120, 255, 0.32);
  transform: translate3d(0, 0, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.core-outer-halo {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: pulseHalo 2.6s ease-in-out infinite;
}

@keyframes pulseHalo {
  0%, 100% { transform: scale(0.96); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

.core-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.32);
  border-top-color: #4d6bff;
  border-bottom-color: var(--ws-red);
  animation: spinRing 8s linear infinite;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.core-code {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--white);
}

.node-pulse-ring {
  animation: pulseHalo 2s ease-in-out infinite;
}

.ws-ring-spin {
  transform-origin: 44px 44px;
  animation: spinRing 12s linear infinite;
}

/* Window Header Bars */
.term-window-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.win-lights {
  display: flex;
  gap: 5px;
}

.win-lights i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.win-lights i:first-child { background: #fe3459; }
.win-lights i:nth-child(2) { background: #f59e0b; }
.win-lights i:last-child { background: #3d5afe; }

.win-title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--light);
}

.win-pill {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.win-pill.blue {
  background: rgba(61, 90, 254, 0.22);
  color: #9bb1ff;
  border: 1px solid rgba(61, 90, 254, 0.45);
}

.win-pill.rose {
  background: var(--ws-soft);
  color: var(--ws-coral);
  border: 1px solid rgba(254, 52, 89, 0.45);
}

/* FDE Visual Graph Deck */
.fde-visual-deck {
  position: relative;
  z-index: 1;
  padding: 10px 10px 4px;
  border-radius: 8px;
  background: rgba(7, 9, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 10px;
}

.fde-graph-svg {
  width: 100%;
  height: 92px;
  overflow: visible;
}

.scan-laser {
  animation: scanSweep 3.8s ease-in-out infinite alternate;
}

@keyframes scanSweep {
  0% { transform: translateX(-110px); }
  100% { transform: translateX(48px); }
}

.text-blue-light { color: #8da4ff; }
.text-rose-light { color: var(--ws-coral); }

.win-meta-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.71rem;
  color: var(--light-muted);
}

/* Wanshoo Radar + Feed Grid inside Deck 2 */
.ws-deck-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.ws-radar-box {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 9, 15, 0.65);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ws-ring-svg {
  width: 78px;
  height: 78px;
}

.ws-ring-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.ws-ring-center strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
}

.ws-ring-center span {
  font-size: 0.58rem;
  color: var(--light-muted);
}

.ws-feed-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-feed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(7, 9, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-plat {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ws-soft);
  color: var(--ws-coral);
  flex-shrink: 0;
}

.feed-plat.dy {
  background: rgba(61, 90, 254, 0.2);
  color: #9bb1ff;
}

.feed-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.feed-meta strong {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-prog {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mini-prog i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ws-red), var(--ws-coral));
}

.feed-metric {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ws-coral);
  white-space: nowrap;
}

/* Hero Bottom Architectural Three-Column Index (01 / 02 / 03) */
.hero-dual-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark-strong);
  border-bottom: 1px solid var(--line-dark);
}

.hero-biz-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--white);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.hero-biz-card:first-child {
  padding-left: 0;
}

.hero-biz-card + .hero-biz-card {
  border-left: 1px solid var(--line-dark);
}

.hero-biz-card:last-child {
  padding-right: 0;
}

.hero-biz-card:hover .biz-go {
  color: var(--white);
  transform: translateY(2px);
}

.hero-biz-card.biz-fde .biz-index {
  color: #9bb1ff;
}

.hero-biz-card.biz-lab .biz-index {
  color: #c4b5fd;
}

.hero-biz-card.biz-ws .biz-index {
  color: var(--ws-coral);
}

.hero-biz-card.biz-ws:hover .biz-go {
  color: var(--ws-coral);
}

.biz-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.biz-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--light-secondary);
}

.biz-go {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--light-muted);
  transition: color 0.2s, transform 0.2s;
}

.hero-biz-card h2,
.hero-biz-card h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-biz-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--light-secondary);
  line-height: 1.62;
}

/* =========================================================================
   Chapters & Swiss Editorial Grid
   ========================================================================= */
.section {
  padding: 104px 0;
}

.section-light {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line-light);
}

.section-dark {
  background: var(--carbon);
  color: var(--light);
  border-bottom: 1px solid var(--line-dark);
}

.chapter-header {
  display: grid;
  grid-template-columns: 90px 1.15fr 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-light-strong);
}

.chapter-header.dark {
  border-bottom-color: var(--line-dark-strong);
}

.chapter-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.chapter-header.dark .chapter-num {
  color: var(--white);
}

.chapter-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.chapter-header.dark .chapter-kicker {
  color: var(--light-muted);
}

.editorial-title {
  margin: 0;
  font-family: 'Noto Sans SC', var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.editorial-sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.chapter-header.dark .editorial-sub {
  color: var(--light-secondary);
}

.chapter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.sub-block {
  padding-top: 56px;
}

.sub-block + .sub-block {
  margin-top: 56px;
  border-top: 1px solid var(--line-light);
}

.sub-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.sub-block-title {
  margin: 6px 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================================
   01.1: 8 Services Hairline Matrix & Cooperation Paths
   ========================================================================= */
.light-filter-bar {
  display: flex;
  gap: 6px;
}

.light-filter-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light-strong);
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
}

.light-filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light-strong);
  border-left: 1px solid var(--line-light-strong);
  margin-bottom: 32px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  background: var(--white);
  border-right: 1px solid var(--line-light-strong);
  border-bottom: 1px solid var(--line-light-strong);
  transition: background 0.2s ease;
}

.svc-card:hover {
  background: #faf9f6;
}

.svc-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.svc-no {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-muted);
}

.svc-mode {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.svc-mode.custom {
  color: var(--blue);
}

.svc-card h4 {
  margin: 2px 0 0;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
}

.svc-card p {
  margin: 0;
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.svc-price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  padding-top: 10px;
  border-top: 1px solid var(--line-light);
}

.buy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.buy-card-light {
  padding: 28px 30px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line-light-strong);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.buy-card-light h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.buy-card-light p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.7;
}

.buy-tags-light {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.buy-tags-light span {
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  color: var(--ink);
}

.buy-card-light.is-blue {
  background: var(--carbon);
  border-color: var(--carbon);
  color: var(--white);
}

.buy-card-light.is-blue h4 { color: var(--white); }
.buy-card-light.is-blue p { color: var(--light-secondary); }

.buy-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--light);
}

.buy-flow .arrow { color: var(--light-muted); }
.buy-card-light button { align-self: flex-start; margin-top: auto; }

/* =========================================================================
   01.2: Delivery Cases & Industries
   ========================================================================= */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-light-strong);
  border-left: 1px solid var(--line-light-strong);
  margin-bottom: 32px;
}

.case-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
  background: var(--white);
  border-right: 1px solid var(--line-light-strong);
  border-bottom: 1px solid var(--line-light-strong);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease;
}

.case-card:hover {
  background: #faf9f6;
}

.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.case-arrow {
  font-size: 1rem;
  color: var(--ink-muted);
}

.case-title {
  margin: 10px 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.case-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.case-expert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.case-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.industries-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ind-pill {
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--line-light);
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

/* =========================================================================
   02: Wanshoo (丸薯通告) Chapter — Official Rose-Coral Theme (#fe3459 / #ff7979)
   ========================================================================= */
.wanshoo-section .chapter-num {
  color: var(--ws-red);
}

.wanshoo-section .chapter-kicker {
  color: var(--ws-coral);
}

.wanshoo-console {
  margin-top: 44px;
  margin-bottom: 48px;
  border: 1px solid rgba(254, 52, 89, 0.25);
  border-radius: var(--radius-md);
  background: var(--carbon-elev);
  padding: 30px;
}

.ws-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
}

.ws-mode-tabs {
  display: flex;
  gap: 8px;
}

.ws-tab {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark-strong);
  background: transparent;
  color: var(--light-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ws-tab:hover {
  border-color: var(--ws-coral);
  color: var(--white);
}

.ws-tab.active {
  background: var(--ws-red);
  border-color: var(--ws-red);
  color: var(--white);
}

.ws-channels-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--light-secondary);
}

.ws-mode-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.ws-mode-title {
  margin: 6px 0 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.ws-mode-desc {
  margin: 0;
  max-width: 680px;
  font-size: 0.9rem;
  color: var(--light-secondary);
  line-height: 1.7;
}

.ws-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
  margin-bottom: 20px;
}

.ws-pillar {
  padding: 20px 22px;
  background: var(--carbon);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.ws-pillar-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ws-coral);
  font-weight: 600;
}

.ws-pillar h4 {
  margin: 6px 0 8px;
  font-size: 0.98rem;
  color: var(--white);
}

.ws-pillar p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--light-secondary);
  line-height: 1.65;
}

.ws-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ws-step-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--light);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(254, 52, 89, 0.06);
  border: 1px solid rgba(254, 52, 89, 0.2);
}

.ws-quote {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 2px solid var(--ws-red);
  font-size: 0.86rem;
  color: var(--light-secondary);
}

.ws-cases-block {
  margin-bottom: 32px;
}

.ws-cases-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ws-sub-title {
  margin: 6px 0 0;
  font-size: 1.25rem;
  color: var(--white);
}

.ws-platform-filters {
  display: flex;
  gap: 6px;
}

.ws-plat-btn {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark-strong);
  background: transparent;
  color: var(--light-secondary);
  cursor: pointer;
}

.ws-plat-btn:hover {
  border-color: var(--ws-coral);
  color: var(--white);
}

.ws-plat-btn.active {
  background: var(--ws-red);
  border-color: var(--ws-red);
  color: var(--white);
}

.ws-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark-strong);
  border-left: 1px solid var(--line-dark-strong);
}

.ws-case-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--carbon-elev);
  border-right: 1px solid var(--line-dark-strong);
  border-bottom: 1px solid var(--line-dark-strong);
  text-decoration: none;
  color: var(--white);
  transition: background 0.2s ease;
}

.ws-case-card:hover {
  background: rgba(254, 52, 89, 0.06);
}

.ws-case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ws-plat-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ws-soft);
  color: var(--ws-coral);
}

.ws-cat-label {
  font-size: 0.74rem;
  color: var(--light-muted);
}

.ws-case-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.5;
}

.ws-case-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
  color: var(--light-muted);
}

.ws-likes {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ws-coral);
}

.ws-academy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--carbon-elev);
  border: 1px solid var(--line-dark);
}

.ws-academy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ws-academy-tags span {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-secondary);
}

/* =========================================================================
   03: FDE Methodology 4-in-1 Lab Hub
   ========================================================================= */
.hub-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light-strong);
  border-left: 1px solid var(--line-light-strong);
  margin: 36px 0 28px;
}

.hub-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border: none;
  border-right: 1px solid var(--line-light-strong);
  border-bottom: 1px solid var(--line-light-strong);
  background: var(--white);
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.hub-tab.active {
  background: var(--ink);
  color: var(--white);
}

.hub-tab-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  opacity: 0.65;
}

.hub-panel { display: none; }
.hub-panel.active { display: block; }

.lab-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.studio-card {
  background: var(--white);
  border: 1px solid var(--line-light-strong);
  border-radius: var(--radius-md);
  padding: 28px;
}

.dark-card {
  background: var(--carbon);
  color: var(--light);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius-md);
  padding: 28px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.card-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.card-meta {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* Lab 01: Role Spectrum */
.role-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light-strong);
  background: var(--white);
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}

.role-chip.active-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.role-chip.active-compare {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.radar-legend {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
}

.legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.radar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.radar-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  overflow: visible;
}

.radar-svg.small { max-width: 320px; }

.studio-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  color: var(--ink);
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.kpi-callout {
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border-left: 2px solid var(--blue);
  padding: 10px 14px;
}

.stacked-bar {
  display: flex;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
  background: #e2e1dc;
  margin: 8px 0;
}

.stacked-seg { height: 100%; transition: width 0.4s var(--ease-out); }

.stacked-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.editorial-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink-secondary);
  font-size: 0.88rem;
}

.editorial-list li { margin-bottom: 6px; }

.diff-callout {
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-light);
  padding: 12px 14px;
}

/* Lab 02: Execution Loop */
.loop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
}

.loop-steps-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.loop-step-btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark-strong);
  background: transparent;
  color: var(--light-secondary);
  cursor: pointer;
}

.loop-step-btn.active {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.loop-visual {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--carbon-elev);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
}

.arch-zone {
  background: var(--carbon);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.arch-zone.lit-client,
.arch-zone.lit-platform {
  border-color: rgba(255, 255, 255, 0.45);
}

.zone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--light-muted);
  margin-bottom: 10px;
}

.zone-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--light-secondary); }

.zone-nodes { display: flex; flex-direction: column; gap: 6px; }

.arch-node {
  font-size: 0.82rem;
  padding: 9px 11px;
  border-radius: 4px;
  background: var(--carbon-elev);
  border: 1px solid var(--line-dark);
  color: var(--light-secondary);
}

.arch-node.active,
.arch-node.active-amber {
  color: var(--white);
  border-color: var(--white);
}

.arch-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.bridge-track {
  position: relative;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bridge-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line-dark-strong);
}

.signal-packet {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--white);
  left: 12%;
  transition: left 0.6s var(--ease-out);
}

.bridge-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  background: var(--carbon);
  border: 1px solid var(--line-dark-strong);
  color: var(--light);
}

.fde-core-node {
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--carbon);
  border: 1px solid var(--line-dark-strong);
}

.fde-core-title { font-weight: 700; font-size: 0.88rem; color: var(--white); }
.fde-core-sub { font-size: 0.78rem; color: var(--light-secondary); margin-top: 2px; }

.loop-detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

.stage-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.stage-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.stage-duration { font-size: 0.8rem; color: var(--light-muted); }
.stage-title { margin: 0 0 8px; font-size: 1.3rem; }
.stage-desc { margin: 0 0 16px; color: var(--light-secondary); font-size: 0.9rem; }

.stage-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--carbon-elev);
  border: 1px solid var(--line-dark);
  font-size: 0.84rem;
}

.mini-card p { margin: 6px 0 0; color: var(--light-secondary); }
.mini-card.good .mini-card-title { color: var(--white); font-weight: 600; }
.mini-card.bad .mini-card-title { color: var(--light-muted); font-weight: 600; }

.loop-metrics {
  background: var(--carbon-elev);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.metric-row { margin-top: 14px; }

.metric-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--light-secondary);
  margin-bottom: 6px;
}

.progress-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--white);
  transition: width 0.5s var(--ease-out);
}

.artifact-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.artifact-val { font-size: 0.86rem; font-weight: 600; color: var(--white); }

/* Lab 03: Decision Simulator */
.sim-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-light);
}

.scenario-tabs { display: flex; flex-wrap: wrap; gap: 6px; }

.scenario-tab {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light-strong);
  background: var(--paper);
  color: var(--ink-secondary);
  cursor: pointer;
}

.scenario-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.sim-hud { display: flex; gap: 8px; }

.hud-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line-light);
}

.hud-label { font-size: 0.68rem; color: var(--ink-muted); }
.hud-val { font-family: var(--font-mono); font-size: 1.08rem; font-weight: 700; color: var(--ink); }

.mission-brief {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.mission-step-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.mission-prompt { margin: 0 0 8px; font-size: 1.12rem; color: var(--ink); }
.mission-context { margin: 0; font-size: 0.88rem; color: var(--ink-secondary); }

.choices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.choice-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light-strong);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
}

.choice-card:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--paper);
}

.choice-card:disabled { cursor: default; opacity: 0.55; }
.choice-card.selected { opacity: 1; border-color: var(--ink); background: var(--paper); }

.choice-tag { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-muted); margin-bottom: 6px; }
.choice-title { font-size: 0.94rem; font-weight: 700; margin-bottom: 6px; }
.choice-desc { font-size: 0.83rem; color: var(--ink-secondary); line-height: 1.6; }

.feedback-banner {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light-strong);
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feedback-text { flex: 1; min-width: 260px; }
.feedback-title { font-weight: 700; font-size: 0.96rem; margin-bottom: 4px; color: var(--ink); }
.feedback-desc { font-size: 0.86rem; color: var(--ink-secondary); margin: 0; }

.delta-pills { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.delta-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--line-light);
  color: var(--ink);
}

.debrief-box {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.debrief-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.debrief-rank { font-size: 1.4rem; font-weight: 700; margin: 4px 0 0; }
.debrief-log { margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }

.log-item {
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line-light);
  font-size: 0.85rem;
}

/* Lab 04: Assessment */
.sliders-list { display: flex; flex-direction: column; gap: 18px; }
.slider-item { display: flex; flex-direction: column; gap: 4px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; }
.slider-name { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.slider-val { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-secondary); }
.slider-hint { font-size: 0.76rem; color: var(--ink-muted); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--line-light-strong);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.profile-title { margin: 4px 0 0; font-size: 1.3rem; color: var(--ink); }

.score-pill {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
}

.score-num { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700; }
.score-unit { font-family: var(--font-mono); font-size: 0.72rem; opacity: 0.75; }
.profile-summary { margin: 0 0 12px; font-size: 0.88rem; color: var(--ink-secondary); }
.profile-radar-wrap { display: flex; justify-content: center; margin: 8px 0 14px; }
.roadmap-box { padding-top: 14px; border-top: 1px solid var(--line-light); }

/* =========================================================================
   Footer: Restrained Architectural Dark Footer
   ========================================================================= */
.footer-lusion {
  background: var(--carbon);
  color: var(--light);
  padding: 80px 0 36px;
}

.footer-giant {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark-strong);
}

.footer-giant-title {
  font-family: 'Noto Sans SC', var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.footer-dual-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--white);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.footer-cta-btn:hover {
  background: #e5e7ef;
}

.footer-cta-btn.ws-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(254, 52, 89, 0.55);
}

.footer-cta-btn.ws-outline:hover {
  border-color: var(--ws-red);
  background: var(--ws-red);
  color: var(--white);
}

.footer-meta-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  padding: 36px 0 32px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--light-secondary);
  max-width: 460px;
}

.footer-brand-desc strong { color: var(--white); }

.footer-cities {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--light-muted);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--light-muted);
  margin-bottom: 4px;
}

.footer-links-col a {
  text-decoration: none;
  color: var(--light-secondary);
  font-size: 0.86rem;
}

.footer-links-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--light-muted);
}

/* QR Modal */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(9, 10, 13, 0.76);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.qr-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.qr-dialog {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 28px 24px 24px;
  text-align: center;
}

.qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid var(--line-light);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.qr-title { margin: 8px 0 6px; font-size: 1.2rem; }
.qr-desc { margin: 0 0 16px; font-size: 0.84rem; color: var(--ink-secondary); }

.qr-img-box {
  display: inline-flex;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line-light);
}

.qr-img-box img { width: 210px; height: 210px; object-fit: contain; }
.qr-cities { margin-top: 14px; font-size: 0.76rem; color: var(--ink-muted); }

@media (max-width: 1100px) {
  .hero-main-grid,
  .chapter-header,
  .lab-grid.two-col,
  .loop-visual,
  .loop-detail-grid,
  .choices-grid,
  .ws-pillars-grid,
  .ws-cases-grid {
    grid-template-columns: 1fr;
  }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .spatial-rig {
    transform: none !important;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .term-back, .spatial-core-badge { display: none; }
  .term-fde, .term-ws, .holo-satellite {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    transform: none !important;
  }
  .nav-minimal { display: none; }
}

@media (max-width: 720px) {
  .container, .topbar-inner, .hero-overlay { padding-left: 20px; padding-right: 20px; }
  .hero-dual-cards, .svc-grid, .buy-grid, .cases-grid, .hub-tabs, .footer-dual-cta, .footer-meta-grid, .ws-steps-row {
    grid-template-columns: 1fr;
  }
  .hero-biz-card,
  .hero-biz-card + .hero-biz-card,
  .hero-biz-card:last-child {
    padding-left: 0;
    padding-right: 0;
    border-left: none;
  }
  .hero-biz-card + .hero-biz-card {
    border-top: 1px solid var(--line-dark);
  }
}

/* =========================================================================
   Warm Stone Section (02 FDE Methodology) & Self-Contained Contact Card
   ========================================================================= */
.section-stone {
  background: #eae8e1;
  color: var(--ink);
  border-bottom: 1px solid var(--line-light-strong);
}

.case-status-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.case-initial {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
}

.contact-card-box {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  text-align: left;
  margin-bottom: 6px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.86rem;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-label {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.contact-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.contact-val.ws-link {
  color: var(--ws-red);
}

/* =========================================================================
   SEO & Core Web Vitals Additions (Skip Link, Top Progress, FAQ Accordion)
   ========================================================================= */
.sr-skip {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 10001;
  padding: 8px 14px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.sr-skip:focus {
  top: 12px;
}

.top-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 10000;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.top-progress.done {
  opacity: 0;
}

.top-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--ws-red));
  transition: width 0.12s linear;
}

.hero-biz-card h2 {
  margin: 4px 0 0;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-giant-title {
  margin: 0 0 24px;
}

/* 04: FAQ Accordion List */
.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--line-light-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-light-strong);
  background: var(--white);
}

.faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q:hover {
  background: #faf9f6;
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform 0.25s var(--ease-out);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--blue);
}

.faq-a {
  padding: 0 26px 22px;
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--ink-secondary);
  max-width: 920px;
}

.faq-a p {
  margin: 0;
}

.faq-a a {
  color: var(--ws-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================================
   Static Pre-Rendered Tab Panes & Dedicated SEO Topic Sub-Pages
   ========================================================================= */
.ws-mode-pane {
  display: none;
}

.ws-mode-pane.active {
  display: block;
}

.sr-only-seo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.subpage-hero {
  padding: 132px 0 72px;
  background: var(--carbon);
  color: var(--light);
  border-bottom: 1px solid var(--line-dark);
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--light-muted);
  margin-bottom: 24px;
}

.breadcrumb-nav a {
  color: var(--light-secondary);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

.subpage-h1 {
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--white);
}

.subpage-lead {
  margin: 0 0 28px;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--light-secondary);
}

.case-deep-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-deep-card {
  background: var(--white);
  border: 1px solid var(--line-light-strong);
  border-radius: var(--radius-md);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
}

.case-deep-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding-right: 24px;
  border-right: 1px solid var(--line-light);
}

.case-deep-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-deep-body h4 {
  margin: 0;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  text-transform: uppercase;
}

.case-deep-body p {
  margin: 4px 0 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-secondary);
}

@media (max-width: 860px) {
  .case-deep-card {
    grid-template-columns: 1fr;
  }
  .case-deep-meta {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--line-light);
    padding-bottom: 16px;
  }
}

/* =========================================================================
   H5 Mobile Compatibility, Drawer Menu, Safe-Area Bottom Bar & SEO Hub
   ========================================================================= */
.h5-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.h5-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 14px;
}

.h5-bars i {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s var(--ease-out);
}

.h5-menu-btn[aria-expanded="true"] .h5-bars i:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.h5-menu-btn[aria-expanded="true"] .h5-bars i:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.h5-nav-drawer {
  display: none;
  background: rgba(9, 10, 13, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark-strong);
  padding: 10px 20px 18px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
}

.h5-nav-drawer.open {
  display: block;
}

@media (min-width: 1101px) {
  .h5-menu-btn,
  .h5-nav-drawer,
  .h5-nav-drawer.open {
    display: none !important;
  }
}

.h5-drawer-links {
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin: 0 auto;
}

.h5-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 11px 6px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--light);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.h5-drawer-link:hover,
.h5-drawer-link:active {
  color: var(--white);
  padding-left: 10px;
}

.h5-drawer-link.sub {
  color: #9bb1ff;
  font-size: 0.85rem;
}

.h5-drawer-link:last-child {
  border-bottom: none;
}

/* SEO Internal Keyword Anchor Hub */
.seo-keyword-hub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.78rem;
}

.seo-hub-label {
  font-family: var(--font-mono);
  color: var(--light-muted);
}

.seo-keyword-hub a {
  color: var(--light-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.seo-keyword-hub a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* H5 Bottom Fixed Conversion Bar */
.h5-bottom-bar {
  display: none;
}

@media (max-width: 1100px) {
  .h5-menu-btn {
    display: inline-flex;
  }

  .hero-spatial-stage {
    min-height: auto;
    margin-top: 4px;
  }

  /* Hide the 2 floating satellite telemetry cards on H5 so the Hero isn't stretched vertically */
  .holo-satellite,
  .term-back,
  .spatial-core-badge {
    display: none !important;
  }

  .spatial-rig {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    height: auto !important;
    transform: none !important;
  }

  .term-fde,
  .term-ws {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    -webkit-text-size-adjust: 100%;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-overlay {
    padding-top: 74px;
    padding-bottom: 20px;
  }

  .hero-top-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding-bottom: 10px;
    font-size: 0.66rem;
  }

  .hero-main-grid {
    padding: 16px 0 18px;
    gap: 18px;
  }

  .hero-eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  .hero-display {
    font-size: clamp(1.85rem, 7.2vw, 2.45rem);
    line-height: 1.18;
  }

  .hero-lead {
    margin-top: 12px;
    font-size: 0.88rem;
    line-height: 1.62;
  }

  /* Compact Hero 3D Preview Cards on H5 */
  .term-fde,
  .term-ws {
    padding: 12px 14px;
  }

  .fde-graph-svg {
    height: 68px;
  }

  .term-ws .ws-feed-item:nth-child(3) {
    display: none;
  }

  .hero-biz-card {
    padding: 16px 0;
  }

  .hero-biz-card h2 {
    font-size: 1.02rem;
  }

  .hero-biz-card p {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Compact Section Vertical Paddings */
  .section {
    padding: 48px 0;
  }

  .chapter-header {
    gap: 10px;
    padding-bottom: 22px;
  }

  .chapter-num {
    font-size: 1.85rem;
  }

  .editorial-title {
    font-size: clamp(1.38rem, 5.6vw, 1.8rem);
  }

  .editorial-sub {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .sub-block {
    padding-top: 28px;
  }

  .sub-block + .sub-block {
    margin-top: 28px;
  }

  /* Keep 8 Services in a Compact 2-Column Grid on H5 (Saves 60% vertical height!) */
  .svc-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-bottom: 20px;
  }

  .svc-card {
    padding: 14px 12px;
    gap: 6px;
  }

  .svc-card h4,
  .svc-card h3 {
    font-size: 0.94rem;
  }

  .svc-card p {
    font-size: 0.78rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .svc-price {
    font-size: 0.72rem;
    padding-top: 8px;
  }

  /* Convert Cases into Horizontal Swipe Carousels on H5 (Saves ~1,400px of vertical scrolling!) */
  .cases-grid,
  .ws-cases-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    border: none !important;
    padding-bottom: 4px;
    margin-bottom: 22px;
  }

  .cases-grid::-webkit-scrollbar,
  .ws-cases-grid::-webkit-scrollbar {
    display: none;
  }

  .case-card,
  .ws-case-card {
    flex: 0 0 82%;
    max-width: 310px;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    padding: 18px 16px;
  }

  .case-card {
    border: 1px solid var(--line-light-strong) !important;
  }

  .ws-case-card {
    border: 1px solid var(--line-dark-strong) !important;
  }

  /* Compact Wanshoo Pillars & 2x2 Steps Grid on H5 */
  .ws-pillar {
    padding: 14px 16px;
  }

  .ws-steps-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .ws-step-chip {
    font-size: 0.72rem;
    padding: 8px 10px;
  }

  /* Horizontal Touch Scroll for Filter & Tab Bars on H5 */
  .light-filter-bar,
  .ws-mode-tabs,
  .ws-platform-filters,
  .role-controls,
  .loop-steps-nav,
  .scenario-tabs,
  .industries-row,
  .ws-academy-tags,
  .seo-keyword-hub {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .light-filter-bar::-webkit-scrollbar,
  .ws-mode-tabs::-webkit-scrollbar,
  .ws-platform-filters::-webkit-scrollbar,
  .role-controls::-webkit-scrollbar,
  .loop-steps-nav::-webkit-scrollbar,
  .scenario-tabs::-webkit-scrollbar,
  .industries-row::-webkit-scrollbar,
  .ws-academy-tags::-webkit-scrollbar,
  .seo-keyword-hub::-webkit-scrollbar {
    display: none;
  }

  .light-filter-btn,
  .ws-tab,
  .ws-plat-btn,
  .role-chip,
  .loop-step-btn,
  .scenario-tab,
  .ind-pill,
  .ws-academy-tags span,
  .seo-keyword-hub a,
  .seo-hub-label {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Compact FDE Methodology Hub on H5 */
  .hub-tabs {
    grid-template-columns: repeat(2, 1fr);
    margin: 20px 0 16px;
  }

  .hub-tab {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .radar-wrap {
    min-height: 220px;
  }

  .radar-svg {
    max-width: 270px;
  }

  .studio-card,
  .dark-card,
  .wanshoo-console,
  .buy-card-light {
    padding: 18px 16px;
  }

  .stage-two-col {
    grid-template-columns: 1fr;
  }

  .faq-list {
    margin-top: 24px;
  }

  .faq-q {
    padding: 15px 14px;
    font-size: 0.9rem;
  }

  .faq-a {
    padding: 0 14px 15px;
    font-size: 0.84rem;
  }

  /* Compact 2-Column Footer Nav on H5 */
  .footer-lusion {
    padding: 48px 0 28px;
  }

  .footer-giant {
    padding-bottom: 28px;
  }

  .footer-cta-btn {
    padding: 15px 18px;
    font-size: 0.92rem;
  }

  .footer-meta-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px;
    padding: 24px 0 20px;
  }

  .footer-meta-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .h5-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(9, 10, 13, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line-dark-strong);
  }

  .h5-bar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
  }

  .h5-bar-btn.blue {
    background: var(--blue);
    color: var(--white);
  }

  .h5-bar-btn.ws {
    background: var(--ws-red);
    color: var(--white);
  }
}

@media (max-width: 480px) {
  .h5-hide-xs {
    display: none !important;
  }

  .ws-deck-grid {
    grid-template-columns: 74px 1fr;
    gap: 8px;
  }

  .ws-radar-box {
    width: 72px;
    height: 72px;
  }

  .ws-ring-svg {
    width: 62px;
    height: 62px;
  }

  .ws-ring-center strong {
    font-size: 0.9rem;
  }
}
