/* ==========================================================================
   Celltrio — shared stylesheet
   Plain CSS, no build step. Design tokens on :root.
   ========================================================================== */

:root {
  --accent: #3C3C71;        /* Celltrio indigo (logo dark) */
  --accent-hover: #2C2C58;
  --accent-light: #5F62A6;  /* logo light, darkened slightly for text contrast */
  --accent-tint: #EEEEF6;
  --text: #15151F;
  --text-secondary: #5B5F73;
  --text-muted: #62667A;
  --bg: #FFFFFF;
  --bg-alt: #F6F6FA;
  --bg-dark: #15151F;
  --border: #E4E5EE;
  --radius: 12px;
  --max-width: 1200px;
  --nav-h: 72px;
  --shadow: 0 10px 30px rgba(21, 21, 31, 0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
.container { max-width: var(--max-width); margin: 0 auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--accent); border-color: #fff; }
.btn-light:hover { background: var(--accent-tint); border-color: var(--accent-tint); color: var(--accent); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.text-link::after { content: '→'; transition: transform .2s; }
.text-link:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; height: 100%; }
.nav-logo img { height: 34px; width: auto; }
.logo-white { display: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px;
  font-size: 15px; font-weight: 500; color: var(--text); border-radius: 8px;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--accent); background: var(--accent-tint); }
.nav-links .nav-cta { margin-left: 8px; }
.nav-links > li > a.nav-cta { color: #fff; background: var(--accent); border-color: var(--accent); }
.nav-links > li > a.nav-cta:hover { color: #fff; background: var(--accent-hover); border-color: var(--accent-hover); }
.nav-dropdown > a::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  padding-top: 10px; /* invisible bridge so the pointer never leaves the hover area */
  display: none; z-index: 5;
}
.nav-dropdown-menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 24px; }
.nav-dropdown-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px; display: flex; gap: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu, .nav-dropdown.mobile-open .nav-dropdown-menu, .nav-dropdown.is-open .nav-dropdown-menu { display: flex; }
.dropdown-col { min-width: 220px; }
.dropdown-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); padding: 8px 12px 4px; }
.dropdown-col a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text); }
.dropdown-col a span { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; }
.dropdown-col a:hover { background: var(--bg-alt); color: var(--accent); }

/* dark variant over hero */
.nav-dark:not(.scrolled) { background: transparent; border-color: transparent; }
.nav-dark:not(.scrolled) .logo-dark { display: none; }
.nav-dark:not(.scrolled) .logo-white { display: block; }
.nav-dark:not(.scrolled) .nav-links > li > a { color: #fff; }
.nav-dark:not(.scrolled) .nav-links > li > a:hover, .nav-dark:not(.scrolled) .nav-links > li > a.active { background: rgba(255,255,255,.12); color: #fff; }
.nav-dark:not(.scrolled) .nav-links .nav-cta { background: #fff; color: var(--accent); border-color: #fff; }
.nav-dark:not(.scrolled) .hamburger span { background: #fff; }

.hamburger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: auto; }
.hamburger span { width: 22px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero (home & category pages)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--bg-dark); color: #fff; overflow: hidden;
  padding: calc(var(--nav-h) + 48px) 24px 72px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img, .hero-bg-video { width: 100%; height: 100%; object-fit: cover; opacity: .55; display: block; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(21,21,31,.92) 0%, rgba(44,44,88,.7) 55%, rgba(21,21,31,.35) 100%); }
#particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.hero-inner { position: relative; max-width: var(--max-width); margin: 0 auto; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 88px; align-items: center; }
.hero-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #B9BBE6; margin-bottom: 20px; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 700; letter-spacing: -.025em; line-height: 1.06; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: #B9BBE6; }
.hero-tagline { font-size: 19px; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 32px; word-break: keep-all; }
.hero-note { margin-top: 24px; font-size: 13px; color: rgba(255,255,255,.75); }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.hero-badge { position: absolute; left: -12px; bottom: 24px; background: #fff; color: var(--text); border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 13px; }
.hero-badge strong { display: block; color: var(--accent); font-size: 15px; }
.hero-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* Page headers (interior pages) */
.page-header { padding: calc(var(--nav-h) + 72px) 24px 56px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-header-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.page-header h1 { font-size: clamp(34px, 4.2vw, 52px); letter-spacing: -.025em; margin: 14px 0 18px; }
.page-header h1 em { font-style: normal; color: var(--accent); }
.page-header p { font-size: 18px; color: var(--text-secondary); max-width: 600px; word-break: keep-all; }
.page-header-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.page-header-dark { background: var(--bg-dark); color: #fff; border: 0; position: relative; overflow: hidden; }
.page-header-dark .page-header-inner { position: relative; }
.page-header-dark p { color: rgba(255,255,255,.78); }
.page-header-dark h1 em { color: #B9BBE6; }
.page-header-dark .eyebrow { color: #B9BBE6; }
.page-header-dark #particle-canvas { opacity: .35; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 72px 48px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-dark .section-desc, .section-dark p { color: rgba(255,255,255,.78); }
.section-dark .eyebrow { color: #B9BBE6; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-title { font-size: clamp(28px, 3.2vw, 40px); margin: 12px 0 14px; }
.section-desc { font-size: 17px; color: var(--text-secondary); word-break: keep-all; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-top: 2px solid var(--accent); padding-top: 16px; }
.stat-num { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -.02em; }
.stat p { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }
.section-dark .stat { border-color: #B9BBE6; }
.section-dark .stat-num { color: #fff; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.card:hover, .card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D2D4E6; }
.card > .badge { align-self: flex-start; }
.card-num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent-light); letter-spacing: .08em; }
.card h3 { font-size: 20px; }
.card p { color: var(--text-secondary); font-size: 15px; word-break: keep-all; }
.card-link { margin-top: auto; font-weight: 600; color: var(--accent); font-size: 14px; padding-top: 6px; }
.card-link::after { content: ' →'; }
.card-media { margin: -28px -28px 12px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: #fff; border-bottom: 1px solid var(--border); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.card-media.cover img { object-fit: cover; padding: 0; }
.card.dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.card.dark p { color: rgba(255,255,255,.75); }
.card.dark .card-link { color: #B9BBE6; }
a.card { color: inherit; }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 22px; height: 22px; }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-secondary); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-shipped { background: var(--accent); border-color: var(--accent); color: #fff; }
.badge-progress { background: #FFF6E5; border-color: #F5D28A; color: #8A5A00; }
.badge-roadmap { background: transparent; border-style: dashed; color: var(--text-muted); }
.section-dark .badge-roadmap { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.3); }

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > .split-media { order: 2; }
.split-media img { border-radius: var(--radius); }
.split-media.plain img { border-radius: 0; }
.split h2 { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 16px; }
.split p { color: var(--text-secondary); font-size: 16px; word-break: keep-all; }
.section-dark .split p { color: rgba(255,255,255,.78); }
.feature-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 28px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); }
.feature-list li::before { content: ''; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233C3C71' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.section-dark .feature-list li { color: #fff; }
.feature-list.status li { justify-content: space-between; border-bottom: 1px solid var(--border); padding: 10px 0; }
.feature-list.status li::before { display: none; }
.section-dark .feature-list.status li { border-color: rgba(255,255,255,.15); }

/* Logo row */
.logo-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; align-items: center; }
.logo-row img { max-height: 44px; max-width: 100%; width: auto; margin: 0 auto; opacity: .75; transition: opacity .2s; }
.logo-row img:hover { opacity: 1; }
.logo-row img[src*="agilent"] { max-height: 60px; } /* spark mark makes the wordmark read small */
.logo-row-title { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 28px; }

/* Roadmap (RX → DX → AIX) */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.roadmap .card { padding-top: 24px; }
.roadmap-head { display: flex; justify-content: space-between; align-items: center; }
.roadmap-step { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--accent-light); }
.roadmap .card h3 { font-size: 22px; }
.roadmap .card .sub { font-weight: 600; color: var(--accent); margin-top: auto; font-size: 14px; padding: 6px 0; }

/* Layers / two-column feature blocks */
.layer { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 28px; }
.layer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.layer h3 { font-size: 22px; margin: 8px 0 6px; }

/* Loop diagram */
.loop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.loop-step { flex: 1 1 120px; border: 1px solid var(--border); border-radius: 10px; padding: 18px 12px; text-align: center; font-weight: 600; background: #fff; }
.loop-step.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.loop-step.active small { display: block; font-size: 11px; letter-spacing: .1em; font-weight: 500; opacity: .8; margin-top: 4px; }
.loop-arrow { color: var(--text-muted); font-size: 20px; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 820px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
table.compare th { background: var(--bg-alt); font-weight: 700; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare td.k { font-weight: 600; color: var(--text-secondary); width: 160px; background: #FBFBFD; }
table.compare-2 { table-layout: fixed; }
table.compare-2 th:first-child { width: 160px; }
table.compare .cell-sub { display: block; color: var(--text-muted); font-size: 12px; }

/* Product lineup list */
.robot-category { border-top: 1px solid var(--border); }
.robot-item { display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.robot-item:hover h3 { color: var(--accent); }
.robot-item h3 { font-size: 18px; transition: color .2s; }
.robot-item p { color: var(--text-secondary); font-size: 14px; }
.robot-item .arrow { color: var(--accent); font-size: 20px; }
.robot-item img { max-height: 90px; width: auto; margin: 0 auto; }

/* Module grid */
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.module { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.module-img { height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.module-img img { max-height: 100%; width: auto; }
.module h3 { font-size: 16px; margin-bottom: 4px; }
.module p { font-size: 13px; color: var(--text-secondary); }
.module small { display: block; font-size: 11px; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.module-grid-5 { grid-template-columns: repeat(5, 1fr); }
.module-img.dark { background: #141420; border-radius: 8px; overflow: hidden; }
.module-img.dark img { max-height: 100%; max-width: 100%; }
@media (max-width: 1100px) { .module-grid-5 { grid-template-columns: repeat(3, 1fr); } }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.team-photo { aspect-ratio: 4 / 5; background: #F1F1F5; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-body { padding: 18px 20px 20px; }
.team-body h3 { font-size: 17px; }
.team-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.team-li { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; color: var(--accent); background: var(--accent-tint); flex: 0 0 auto; transition: background .15s, color .15s; }
.team-li:hover { background: var(--accent); color: #fff; }
.team-body .role { color: var(--accent); font-size: 13px; font-weight: 600; margin: 2px 0 10px; }
.team-body p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.team-bio { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.team-bio li { position: relative; padding-left: 14px; font-size: 13px; color: var(--text-secondary); line-height: 1.45; word-break: keep-all; }
.team-bio li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-light); }

/* Quote */
.quote { border-left: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.quote blockquote { margin: 0 0 12px; font-size: 20px; font-weight: 500; line-height: 1.4; }
.quote cite { font-style: normal; color: var(--text-secondary); font-size: 14px; }

/* Carousel */
.product-carousel { position: relative; overflow: hidden; border-radius: var(--radius); background: transparent; }
.carousel-track { display: flex; transition: transform .45s ease; }
.carousel-slide { min-width: 100%; background: transparent; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 20px 56px 32px; }
.carousel-slide img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 20px; }
.carousel-btn.prev { left: 12px; } .carousel-btn.next { right: 12px; }
.carousel-pause { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--accent); cursor: pointer; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.carousel-pause[aria-pressed="true"] { background: var(--accent); color: #fff; }
.carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #C9CBE0; cursor: pointer; padding: 0; }
.carousel-dots button.active { background: var(--accent); width: 20px; border-radius: 4px; }

/* News */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-item { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); }
.news-item .meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }
.news-item h3 { font-size: 17px; line-height: 1.35; }
.news-item p { font-size: 14px; color: var(--text-secondary); }
.news-item:hover h3 { color: var(--accent); }

/* Video embed */
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.card-grid > div > .video-wrap { box-shadow: none; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }

/* CTA */
.cta-section { padding: 60px 48px; background: var(--accent); color: #fff; }
.cta-section.cta-section-alt { background: var(--bg-dark); }
.cta-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-section h2 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 8px; }
.cta-section p { color: rgba(255,255,255,.8); margin: 0; word-break: keep-all; }

/* Footer */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.75); padding: 64px 48px 32px; font-size: 14px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 16px; }
.footer-brand p { line-height: 1.6; }
.footer h4, .footer .footer-heading { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer li { margin-bottom: 4px; }
.footer li a { display: inline-block; padding: 6px 0; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: #fff; }
.footer-bottom { max-width: var(--max-width); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.65); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info h2.h-small { font-size: 16px; margin-bottom: 6px; }
.contact-info .block { margin-bottom: 24px; }
.contact-info p { color: var(--text-secondary); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; margin-top: 8px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
form.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--accent-light); outline-offset: 1px; border-color: var(--accent-light); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 12px; color: var(--text-muted); grid-column: 1 / -1; }
.form-success { display: flex; gap: 12px; align-items: flex-start; background: #EAF7EE; border: 1px solid #B7E1C2; color: #1E5E33; border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.form-success[hidden] { display: none; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Utilities */
.mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mb-24 { margin-bottom: 24px; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.sub-links { color: var(--text-secondary); } .sub-links a { font-weight: 600; }
/* Links inside running text get an underline so they do not rely on colour alone (WCAG 1.4.1). */
p.small a, .contact-info .block p a, .video-caption a, .form-note a { text-decoration: underline; text-underline-offset: 2px; }
.note-box { font-size: 13px; color: var(--text-secondary); background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.section-dark .note-box { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .section { padding: 60px 24px; }
  .cta-section { padding: 48px 24px; }
  .footer { padding: 48px 24px 24px; }
  .hamburger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 32px; overflow-y: auto; display: none;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 14px 8px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--border); color: var(--text) !important; background: none !important; }
  .nav-links .nav-cta { margin: 16px 0 0; justify-content: center; border-radius: 999px !important; background: var(--accent) !important; color: #fff !important; border: 0 !important; }
  .nav-dropdown-menu { position: static; padding: 0; min-width: 0; }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-panel { box-shadow: none; border: 0; padding: 0 0 8px 12px; flex-direction: column; gap: 0; }
  .nav-dropdown:focus-within .nav-dropdown-menu { display: none; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.mobile-open .nav-dropdown-menu { display: block; }
  .nav.menu-open { background: #fff !important; border-color: var(--border) !important; }
  .nav.menu-open .logo-white { display: none !important; } .nav.menu-open .logo-dark { display: block !important; }
  .nav.menu-open .hamburger span { background: var(--text) !important; }
  .hero { min-height: 0; padding: calc(var(--nav-h) + 56px) 24px 64px; }
  .hero-inner, .page-header-inner, .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > .split-media { order: 0; }
  .hero-badge { position: static; display: inline-block; margin-top: 16px; }
  .hero-scroll { display: none; }
  .page-header { padding: calc(var(--nav-h) + 48px) 24px 40px; }
  .stats, .card-grid, .card-grid-4, .roadmap, .news-list, .module-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2 { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .robot-item { grid-template-columns: 120px 1fr auto; }
}
@media (max-width: 640px) {
  .stats, .card-grid, .card-grid-4, .roadmap, .news-list, .module-grid, .team-grid { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  form.contact-form { grid-template-columns: 1fr; padding: 22px; }
  .robot-item { grid-template-columns: 1fr; text-align: center; }
  .robot-item .arrow { display: none; }
  .hero h1 { font-size: 34px; }
  .btn-row .btn { width: 100%; }
}

/* ---------- Photo grid (home) ---------- */
.photo-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.photo-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.photo-grid-main { grid-row: 1 / 3; }
.photo-grid-main img { aspect-ratio: auto; }
.photo-grid figcaption { position: absolute; left: 14px; bottom: 12px; padding: 5px 10px; border-radius: 6px; background: rgba(20,20,40,.62); color: #fff; font-size: 13px; font-weight: 500; backdrop-filter: blur(4px); }
@media (max-width: 1024px) {
  .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .photo-grid-main { grid-column: 1 / 3; grid-row: auto; }
  .photo-grid-main img { aspect-ratio: 3 / 2; }
}
@media (max-width: 600px) { .photo-grid { grid-template-columns: 1fr; } .photo-grid-main { grid-column: auto; } }
.module-img img[src*="photos/"] { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.page-header-media.tall img, .split-media.tall img { max-height: 560px; width: auto; max-width: 100%; display: block; margin: 0 auto; }
.no-frame img { border-radius: 0 !important; box-shadow: none !important; }
/* Hero product stage: neutral spotlight behind the machine + floor plane and contact shadow under it */
.hero-media.hero-panel { align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 0; position: relative; isolation: isolate; }
.hero-media.hero-panel::before { content: ""; position: absolute; left: 50%; top: 50%; width: 130%; height: 115%; transform: translate(-50%, -50%); z-index: -3; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.42), rgba(255,255,255,.22) 35%, rgba(255,255,255,.08) 62%, rgba(255,255,255,0) 82%); }
.hero-stand { position: relative; width: 100%; isolation: isolate; }
@media (min-width: 1360px) { .hero-stand { width: 114%; margin-right: -14%; } }
.hero-stand::before { content: ""; position: absolute; left: -35%; right: -12%; top: 93%; height: 22%; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 100%); border-top: 1px solid rgba(255,255,255,.32);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 80%, transparent); }
.hero-stand::after { content: ""; position: absolute; left: 6%; right: 2%; top: 84%; height: 20%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 55% 50%, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,0) 70%); }
.hero-media img.hero-cutout { position: relative; border-radius: 0; box-shadow: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.3)); }
@media (max-width: 1024px) { .hero-media.hero-panel { padding: 8px 0 0; } .hero-stand { max-width: 720px; margin: 0 auto; } .hero-stand::before { left: -8%; right: -8%; } }
.photo-grid-3 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto; }
@media (max-width: 600px) { .photo-grid-3 { grid-template-columns: 1fr; } }
.module-img.contain img { object-fit: contain; }
.feature-video { margin-top: 56px; max-width: 960px; margin-left: auto; margin-right: auto; }
.video-caption { margin-top: 14px; text-align: center; color: var(--text-muted); font-size: 14px; }
.video-caption a { color: var(--accent); font-weight: 600; }

/* ---------- RoboCell configurator (systems.html#configure) ---------- */
.cfg { --floor: #ECECF4; --floor-line: #D9DAE8; }
.cfg .mods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cfg .btn-row-cfg { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
main [id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.cfg .cfg-note { font-size: 13px; color: var(--text-muted); margin-top: 18px; }
.cfg .bench { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 860px) { .cfg .bench { grid-template-columns: 1fr; } }
.cfg .palette, .cfg .stage { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-width: 0; }
.cfg .palette h2 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; }
@media (max-width: 860px) { .cfg .mods { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } }
.cfg .mod { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); cursor: grab; user-select: none; touch-action: none; transition: border-color .15s, box-shadow .15s; }
.cfg .mod:hover { border-color: var(--accent-light); box-shadow: 0 6px 16px rgba(20,20,60,.10); }
.cfg .mod .thumb { height: 64px; display: grid; place-items: center; }
.cfg .mod img { max-height: 64px; max-width: 80px; width: auto; image-rendering: auto; pointer-events: none; }
.cfg .mod b { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; }
.cfg .mod small { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 10.5px; color: var(--text-muted); }
.cfg .hint { margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }
.cfg .stage-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cfg .seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--bg-alt); }
.cfg .seg button { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; }
.cfg .seg button.active { background: var(--accent); color: #fff; }
.cfg .seg button:focus-visible { outline: 2px solid var(--accent-light); }
.cfg .tools { display: flex; gap: 8px; align-items: center; }
.cfg .chip { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px dashed var(--border); background: var(--bg); color: var(--text-secondary); cursor: pointer; }
.cfg .chip:hover { border-color: var(--accent-light); color: var(--accent); }
.cfg .floor { position: relative; width: 100%; aspect-ratio: 3070 / 1430; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--floor); touch-action: none; user-select: none; }
.cfg .world { position: relative; background-image: linear-gradient(var(--floor-line) 1px, transparent 1px), linear-gradient(90deg, var(--floor-line) 1px, transparent 1px); background-size: calc(var(--s) * 50px) calc(var(--s) * 50px); }
.cfg .floor.drop-ok { box-shadow: inset 0 0 0 3px var(--accent-light); }
.cfg .rail { position: absolute; z-index: 0; left: calc(var(--s) * 700px); top: calc(var(--s) * 560px); height: calc(var(--s) * 280px); display: flex; transition: width .3s ease; pointer-events: none; }
.cfg .rail img, .cfg .rail .mid { height: 100%; display: block; }
.cfg .rail .mid { flex: 1 1 auto; background-size: 100% 100%; }
.cfg .rail-label { position: absolute; left: calc(var(--s) * 700px); top: calc(var(--s) * 546px); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); pointer-events: none; }
.cfg .piece { position: absolute; z-index: 1; transform-origin: center center; cursor: grab; filter: drop-shadow(0 4px 8px rgba(0,0,0,.22)); }
.cfg .piece img { display: block; width: 100%; height: 100%; pointer-events: none; }
.cfg .piece.dragging { cursor: grabbing; filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); z-index: 10; }
.cfg .piece .tag { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); white-space: nowrap; font-size: 10.5px; font-weight: 600; color: var(--text-secondary); background: var(--bg); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); pointer-events: none; }
.cfg .piece .del { position: absolute; left: -10px; top: -10px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: #B3261E; font-size: 15px; line-height: 19px; text-align: center; cursor: pointer; opacity: 0; transition: opacity .12s; }
.cfg .piece:hover .del, .cfg .piece.selected .del, .cfg .piece.selected .rot { opacity: 1; }
.cfg .piece.selected { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.cfg .piece .var { position: absolute; right: -10px; bottom: -10px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--accent); font-size: 12px; line-height: 20px; text-align: center; cursor: pointer; opacity: 0; transition: opacity .12s; }
.cfg .piece:hover .var, .cfg .piece.selected .var { opacity: 1; }
.cfg .piece .rot { position: absolute; right: -10px; top: -10px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--accent); font-size: 12px; line-height: 20px; text-align: center; cursor: pointer; opacity: 0; transition: opacity .12s; }
.cfg .piece:hover .rot { opacity: 1; }
.cfg .ghost { position: fixed; pointer-events: none; z-index: 50; opacity: .85; filter: drop-shadow(0 10px 16px rgba(0,0,0,.3)); }
.cfg .ghost img { display: block; width: 100%; height: 100%; }
.cfg .summary { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-secondary); }
.cfg .summary b { font-family: 'Space Grotesk', Inter, sans-serif; color: var(--accent); }
.cfg .summary .varnote { flex-basis: 100%; color: var(--text-muted); font-size: 12.5px; }
.cfg .actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cfg .toast { font-size: 13px; color: #1F8A5B; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .cfg .rail { transition: none; } }
.cfg .palette h2 { display: flex; align-items: center; gap: 8px; }
.cfg .tip { position: relative; display: inline-flex; }
.cfg .tip-btn { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--accent); font: 700 11px/16px Inter, system-ui, sans-serif; padding: 0; cursor: help; text-transform: none; letter-spacing: 0; }
.cfg .tip-btn:hover, .cfg .tip-btn:focus-visible { border-color: var(--accent-light); background: var(--accent-tint); outline: none; }
.cfg .tip-text { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: 280px; padding: 10px 12px; border-radius: 8px; background: var(--text); color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; box-shadow: 0 8px 24px rgba(0,0,0,.18); display: none; pointer-events: none; }
.cfg .tip:hover .tip-text, .cfg .tip:focus-within .tip-text { display: block; }
@media (max-width: 860px) { .cfg .tip-text { width: min(280px, calc(100vw - 32px)); left: 50%; transform: translateX(-50%); } }

/* ---------- Platform: problem, tours, ladder, compliance badge ---------- */
.problem { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.callout { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.callout .eyebrow { color: #C9CAF0; margin-bottom: 0; }
.callout h3 { font-size: 24px; line-height: 1.2; margin: 0; }
.callout p { color: #DCDDF3; margin: 0; }
.layer .speaks { margin: 18px 0 0; font-family: 'Space Grotesk', Inter, sans-serif; font-size: 13px; color: var(--text-muted); }
.layer .speaks b { color: var(--accent); font-weight: 700; }
.tour { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-steps { display: grid; gap: 8px; }
.tour-step { text-align: left; font: inherit; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; cursor: pointer; color: var(--text); transition: border-color .15s, background .15s; }
.tour-step .k { display: block; font-family: 'Space Grotesk', Inter, sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-light); font-weight: 700; }
.tour-step b { display: block; font-size: 15px; margin-top: 2px; }
.tour-step > span:last-child { display: block; color: var(--text-muted); font-size: 13px; margin-top: 4px; line-height: 1.45; }
.tour-step:hover { border-color: var(--accent-light); }
.tour-step.active { border-color: var(--accent); background: var(--accent-tint); }
.tour-step:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.tour-shot { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.tour-shot img, .tour-shot video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8.4; object-fit: cover; object-position: top left; background: #fff; }
.tour-shot figcaption { padding: 12px 16px; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); background: var(--bg); }
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rung { border-radius: var(--radius); padding: 22px 20px; background: var(--bg); border: 1px solid var(--border); }
.rung:nth-child(2) { background: #F3F3FA; } .rung:nth-child(3) { background: var(--accent-tint); }
.rung:nth-child(4) { background: var(--accent); color: #fff; border-color: var(--accent); }
.rung .k { display: block; font-family: 'Space Grotesk', Inter, sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.rung h3 { font-size: 22px; margin: 6px 0; } .rung p { font-size: 14px; margin: 0; color: var(--text-secondary); }
.rung:nth-child(4) p { color: #E4E5F5; }
.badge-box { background: #FFF7D6; border: 1px solid #EBCC7F; border-radius: var(--radius); padding: 22px 24px; color: #5A4300; }
.badge-box .k { display: block; font-family: 'Space Grotesk', Inter, sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.badge-box h3 { font-size: 26px; margin: 4px 0 6px; color: var(--text); } .badge-box p { margin: 0; font-size: 14px; }
@media (max-width: 1024px) { .tour { grid-template-columns: 1fr; } .problem { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .ladder { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ladder { grid-template-columns: 1fr; } }

/* ===== Localization (ko / ja) ===== */
html[lang="ko"] { --font: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html[lang="ja"] { --font: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html:is([lang="ko"], [lang="ja"]) body { line-height: 1.7; }
html:is([lang="ko"], [lang="ja"]) :is(h1, h2, h3, h4, .hero h1, .page-header h1, .section-title, .split h2) { letter-spacing: 0; line-height: 1.3; }
html:is([lang="ko"], [lang="ja"]) .hero h1 { font-size: clamp(32px, 4.2vw, 52px); }
html:is([lang="ko"], [lang="ja"]) .page-header h1 { font-size: clamp(30px, 3.6vw, 46px); }
html:is([lang="ko"], [lang="ja"]) :is(.eyebrow, .hero-eyebrow, .dropdown-label, .roadmap-step, .module small, .card-num, .footer-heading, .logo-row-title, .badge) { letter-spacing: .06em; }
/* Japanese has no word spaces: keep-all (set for Korean) would stop lines breaking at all. */
html[lang="ja"] body * { word-break: normal; overflow-wrap: anywhere; }
html[lang="ja"] :is(h1, h2, h3, .hero h1, .page-header h1) { word-break: auto-phrase; }
html[lang="ko"] body * { word-break: keep-all; overflow-wrap: anywhere; }

/* Nav language switcher */
.nav-lang > a { gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.nav-lang .nav-dropdown-menu { left: auto; right: 0; min-width: 0; }
.nav-lang .dropdown-col { min-width: 140px; }
.nav-lang .dropdown-col a.is-current { color: var(--accent); background: var(--accent-tint); font-weight: 600; }
@media (max-width: 1024px) { .nav-lang .nav-dropdown-menu { position: static; } }
/* German: long compounds — let the browser hyphenate rather than overflow. */
html[lang="de"] body * { hyphens: auto; overflow-wrap: anywhere; }
html[lang="de"] :is(h1, h2, h3, .btn, .nav-links a, .eyebrow) { hyphens: manual; }

/* ---------- Installed-base world map (customers.html) ---------- */
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.map-wrap-world { position: relative; margin-top: 40px; }
.world-map { width: 100%; height: auto; display: block; }
.world-map .land path { fill: #E6E6F0; stroke: #fff; stroke-width: .6; vector-effect: non-scaling-stroke; }
.world-map .site { cursor: pointer; outline: none; }
.world-map .site .halo { fill: var(--accent); opacity: .12; transition: opacity .15s; pointer-events: none; }
.world-map .site .dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.world-map .site.hq rect { fill: var(--accent-light); stroke: #fff; stroke-width: 2; }
.world-map .site:focus-visible .halo { opacity: .3; }
.world-map .site:focus-visible .dot, .world-map .site:focus-visible rect { stroke: var(--accent); }
.map-tip { position: absolute; pointer-events: none; background: var(--bg-dark); color: #fff; font-size: 13px; line-height: 1.4; padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow); max-width: 260px; transform: translate(-50%, calc(-100% - 14px)); z-index: 3; }
.map-tip[hidden] { display: none; }
.map-tip strong { display: block; font-size: 13px; margin-bottom: 2px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--text-secondary); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.map-legend i.lg-hq { border-radius: 2px; transform: rotate(45deg); background: var(--accent-light); width: 10px; height: 10px; }
@media (max-width: 1024px) { .stats-3 { grid-template-columns: 1fr; } .map-legend { font-size: 12px; } }
.world-map .loupe { display: none; pointer-events: none; }
.world-map.loupe-on .loupe { display: block; }
.world-map.loupe-on { cursor: crosshair; }
.world-map .loupe-bg { fill: #fff; }
.section-alt .world-map .loupe-bg { fill: var(--bg-alt); }
.world-map .loupe-ring { fill: none; stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
.world-map .loupe-sites .dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.world-map .loupe-sites .hq { fill: var(--accent-light); stroke: #fff; stroke-width: 2; }
.world-map .loupe-land path { fill: #DCDCE9; stroke: #fff; stroke-width: .6; vector-effect: non-scaling-stroke; }
.world-map .site.is-active .halo { opacity: .3; }
.world-map .site.is-active .dot, .world-map .site.is-active rect { stroke: var(--accent); }
