:root {
  --white: #ffffff;
  --off: #f4f7fb;
  --blue-50: #e8eef6;
  --blue-100: #d0dced;
  --blue-200: #a8bdd4;
  --blue-400: #6b84a8;
  --blue-500: #4a628a;
  --blue-600: #3b4f6d;
  --blue-700: #2a3a52;
  --blue-800: #1a2638;
  --text: #141c28;
  --text-body: #3a4d63;
  --text-muted: #5a6d82;
  --border: #dce4f0;
  --border-strong: #b8c8de;
  --glow: rgba(74, 98, 138, 0.2);
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", monospace;
  --header-h: 84px;
  --max: 1180px;
  --ease: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --band-industries: #3b4f6d;
  --band-philosophy: #2a3a52;
  --band-feature-from: #3b4f6d;
  --band-feature-to: #4a628a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  background: var(--off);
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(var(--max), 90vw); margin-inline: auto; }

/* ── Animated tile background ── */
.bg-tiles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: #f0f4f9;
  background-image:
    linear-gradient(rgba(74, 98, 138, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 98, 138, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: tileDrift 28s linear infinite;
}
.bg-tiles::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255,255,255,0.85), transparent 60%),
              radial-gradient(ellipse 80% 50% at 80% 100%, rgba(232,238,246,0.9), transparent 50%);
}
@keyframes tileDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 56px 56px, 56px 56px; }
}

/* ── Animated global mesh ── */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  animation: blobDrift 22s ease-in-out infinite;
  will-change: transform;
}
.blob-1 {
  width: 50vw; height: 50vw; max-width: 520px; max-height: 520px;
  background: #c8d6e8;
  top: -8%; right: -8%;
}
.blob-2 {
  width: 40vw; height: 40vw; max-width: 420px; max-height: 420px;
  background: #d4deec;
  bottom: 25%; left: -12%;
  animation-delay: -7s;
  animation-duration: 26s;
}
.blob-3 {
  width: 30vw; height: 30vw; max-width: 320px; max-height: 320px;
  background: #bccde0;
  top: 55%; left: 35%;
  animation-delay: -14s;
  animation-duration: 20s;
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ── Scroll animations ── */
.anim {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.anim[data-anim="fade-up"] { transform: translateY(24px); }
.anim[data-anim="fade-left"] { transform: translateX(-24px); }
.anim[data-anim="fade-right"] { transform: translateX(24px); }
.anim[data-anim="scale-in"] { transform: scale(0.96); }
.anim.in-view { opacity: 1; transform: none; will-change: auto; }

/* ── Header ── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  border-color: var(--border);
  box-shadow: 0 4px 30px rgba(74,98,138,0.08);
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 100%;
  gap: 2rem;
}
.brand-mark { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;
}
.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}
.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.1rem;
  transition: color 0.25s;
  position: relative;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue-500);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.site-nav a:hover { color: var(--blue-600); }
.site-nav a:hover::after { transform: scaleX(1); }
.header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; background: var(--off);
}
.lang-btn {
  border: none; background: none; font-family: var(--mono);
  font-size: 0.65rem; padding: 0.4rem 0.5rem; color: var(--text-muted);
  cursor: pointer; transition: all 0.25s;
}
.lang-btn.active { background: var(--blue-500); color: #fff; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--off);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--blue-500);
  border-color: var(--border-strong);
}
.theme-icon {
  width: 17px;
  height: 17px;
}
.theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--sun { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--blue-600); border-radius: 2px; transition: var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.75rem; border-radius: 8px;
  font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.78rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-primary {
  background: var(--blue-500); color: #fff; border-color: var(--blue-500);
  box-shadow: 0 4px 20px rgba(74,98,138,0.25);
}
.btn-primary:hover {
  background: var(--blue-600); transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(74,98,138,0.35);
}
.btn-secondary {
  background: var(--white); color: var(--blue-600);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--blue-50); border-color: var(--blue-500);
  transform: translateY(-2px);
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(160deg, #f8fafd 0%, #eef3f9 50%, #e8eef6 100%);
  isolation: isolate;
}
#hero-stars {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero-glow {
  position: absolute;
  right: 5%; top: 50%;
  transform: translateY(-50%);
  width: min(50vw, 480px); height: min(50vw, 480px);
  background: radial-gradient(circle, rgba(74,98,138,0.1) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  animation: heroGlowPulse 5s ease-in-out infinite;
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.08); }
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem; align-items: center; position: relative; z-index: 2;
}
.hero-domain {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-500); margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.035em;
  color: var(--text); margin-bottom: 1.75rem;
}
.hero-text-block { display: flex; flex-direction: column; gap: 1.1rem; }
.hero-text-block p { font-size: 1.05rem; line-height: 1.8; max-width: 580px; }
.hero-lead { font-weight: 600; color: var(--text) !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 2rem 0 1.75rem; }
.hero-pillars { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-pillars li {
  font-size: 0.75rem; font-weight: 600; color: var(--blue-600);
  padding: 0.45rem 0.9rem; background: var(--white);
  border: 1px solid var(--border-strong); border-radius: 100px;
  transition: all 0.3s;
}
.hero-pillars li:hover {
  border-color: var(--blue-500);
  box-shadow: 0 4px 16px var(--glow);
  transform: translateY(-2px);
}

/* CPU visual */
.hero-deco { display: flex; justify-content: center; align-items: center; }
.cpu-visual {
  position: relative;
  width: min(100%, 340px);
}
.cpu-glow-ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,98,138,0.15), transparent 70%);
  animation: cpuGlow 3s ease-in-out infinite;
}
@keyframes cpuGlow {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
.cpu-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  color: var(--blue-500);
  filter: drop-shadow(0 8px 32px rgba(74,98,138,0.2));
}
.cpu-package {
  fill: rgba(255,255,255,0.9);
  animation: packagePulse 3s ease-in-out infinite;
}
@keyframes packagePulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(74,98,138,0.2)); }
  50% { filter: drop-shadow(0 0 16px rgba(74,98,138,0.45)); }
}
.cpu-die {
  fill: rgba(74,98,138,0.06);
}
.die-trace {
  stroke: var(--blue-400);
  stroke-width: 0.8;
  opacity: 0.35;
}
.cpu-core {
  fill: var(--blue-500);
  animation: corePulse 2s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.pin {
  fill: var(--blue-400);
  animation: pinBlink 2.5s ease-in-out infinite;
}
.cpu-pins--top .pin:nth-child(odd) { animation-delay: 0s; }
.cpu-pins--top .pin:nth-child(even) { animation-delay: 0.4s; }
.cpu-pins--bottom .pin:nth-child(odd) { animation-delay: 0.8s; }
.cpu-pins--bottom .pin:nth-child(even) { animation-delay: 1.2s; }
.cpu-pins--left .pin:nth-child(odd) { animation-delay: 0.2s; }
.cpu-pins--left .pin:nth-child(even) { animation-delay: 0.6s; }
.cpu-pins--right .pin:nth-child(odd) { animation-delay: 1s; }
.cpu-pins--right .pin:nth-child(even) { animation-delay: 1.4s; }
@keyframes pinBlink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.data-flow {
  stroke: var(--blue-400);
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
  animation: dataFlow 1.8s linear infinite;
}
.df-1 { animation-delay: 0s; }
.df-2 { animation-delay: 0.45s; }
.df-3 { animation-delay: 0.9s; }
.df-4 { animation-delay: 1.35s; }
@keyframes dataFlow {
  to { stroke-dashoffset: -32; }
}
.signal-dot {
  fill: var(--blue-500);
  animation: signalTravel 2s ease-in-out infinite;
}
.sd-1 { animation-name: signalTravel1; }
.sd-2 { animation-name: signalTravel2; animation-delay: 0.5s; }
.sd-3 { animation-name: signalTravel3; animation-delay: 1s; }
.sd-4 { animation-name: signalTravel4; animation-delay: 1.5s; }
@keyframes signalTravel1 {
  0%, 100% { cy: 80; opacity: 0.3; }
  50% { cy: 108; opacity: 1; }
}
@keyframes signalTravel2 {
  0%, 100% { cy: 240; opacity: 0.3; }
  50% { cy: 212; opacity: 1; }
}
@keyframes signalTravel3 {
  0%, 100% { cx: 80; opacity: 0.3; }
  50% { cx: 108; opacity: 1; }
}
@keyframes signalTravel4 {
  0%, 100% { cx: 240; opacity: 0.3; }
  50% { cx: 212; opacity: 1; }
}

/* ── Blocks ── */
.block {
  padding: 6rem 0; position: relative;
  isolation: isolate;
}
.section-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.35; z-index: 0;
}
.block .container { position: relative; z-index: 1; }
.block-head { margin-bottom: 2.5rem; max-width: 680px; }
.block-head--light h2 {
  color: #fff !important;
  font-weight: 700;
}
.block-head--light .block-intro {
  color: #e2eaf4 !important;
  font-weight: 400;
}
.block-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--text); line-height: 1.15;
}
.block-intro {
  margin-top: 0.85rem; font-size: 1.05rem;
  color: var(--text-muted); line-height: 1.75;
}

/* ── About ── */
.about { background: transparent; }
.about-modern {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-feature {
  padding: 2.25rem 2.5rem;
  background: linear-gradient(135deg, var(--band-feature-from) 0%, var(--band-feature-to) 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.about-feature-body {
  display: grid;
  grid-template-columns: 1fr min(42%, 300px);
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.about-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: tileDrift 20s linear infinite;
}
.about-hook-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.about-hook {
  position: relative;
  z-index: 1;
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.4;
  color: #fff;
  max-width: none;
  flex: 1;
}
.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  color: var(--blue-500);
  background: var(--blue-50);
}
.about-icon svg { width: 100%; height: 100%; }
.about-icon--light {
  width: 44px;
  height: 44px;
  padding: 9px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
}
.about-blueprint {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
}
.blueprint-svg {
  width: 100%;
  height: auto;
  display: block;
}
.bp-frame { stroke: rgba(255,255,255,0.45); stroke-width: 1.2; }
.bp-guide { stroke: rgba(255,255,255,0.12); stroke-width: 0.8; stroke-dasharray: 4 6; }
.bp-pcb { stroke: rgba(255,255,255,0.55); stroke-width: 1.2; fill: rgba(255,255,255,0.04); }
.bp-trace { stroke: rgba(255,255,255,0.35); stroke-width: 0.8; }
.bp-pad { fill: rgba(255,255,255,0.55); }
.bp-chip { stroke: rgba(255,255,255,0.45); stroke-width: 0.8; fill: rgba(255,255,255,0.05); }
.bp-gear-ring { stroke: rgba(255,255,255,0.45); stroke-width: 1; fill: none; }
.bp-gear { transform-origin: 220px 92px; animation: bpGearSpin 12s linear infinite; }
.bp-gear-core { stroke: rgba(255,255,255,0.5); stroke-width: 1; fill: rgba(255,255,255,0.06); }
.bp-gear-spoke { stroke: rgba(255,255,255,0.45); stroke-width: 1.2; }
@keyframes bpGearSpin { to { transform: rotate(360deg); } }
.bp-dim { stroke: rgba(255,255,255,0.4); stroke-width: 0.8; }
.bp-leader { stroke: rgba(255,255,255,0.28); stroke-width: 0.7; stroke-dasharray: 3 3; }
.bp-label {
  fill: rgba(255,255,255,0.45);
  font-family: var(--mono);
  font-size: 9px;
  text-anchor: middle;
  dominant-baseline: middle;
}
.bp-corner { stroke: rgba(255,255,255,0.55); stroke-width: 1.2; }
.bp-scan {
  fill: none;
  stroke: rgba(255,255,255,0.25);
  stroke-width: 1.5;
  stroke-dasharray: 40 600;
  animation: bpScan 4s linear infinite;
}
@keyframes bpScan { to { stroke-dashoffset: -640; } }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-card {
  padding: 1.5rem 1.6rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.about-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(59, 79, 109, 0.08);
}
.about-card--wide { grid-column: 1 / -1; }
.about-card p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* ── Services ── */
.services { background: transparent; }
.services-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.svc-card {
  padding: 1.5rem 1.55rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.svc-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 6px 20px rgba(59, 79, 109, 0.07);
}
.svc-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}
.svc-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  color: var(--blue-500);
  padding: 7px;
  background: var(--blue-50);
  border-radius: 8px;
}
.svc-icon svg { width: 100%; height: 100%; }
.svc-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding-top: 0.1rem;
}
.svc-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}
.svc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}
.svc-list li {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--blue-600);
  padding: 0.28rem 0.6rem;
  background: var(--off);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── Industries ── */
.industries-band {
  background: var(--band-industries);
  padding: 5.5rem 0; position: relative;
  isolation: isolate;
}
.industries-band::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.industries-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem;
}
.ind-card {
  padding: 1.15rem 0.9rem;
  text-align: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 10px;
  transition: background 0.25s, transform 0.25s;
}
.ind-card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}
.ind-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* ── Why — horizontal feature list ── */
.why { background: transparent; }
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}
.why-item {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}
.why-item:nth-child(odd) { border-right: 1px solid var(--border); }
.why-item:nth-last-child(-n+2) { border-bottom: none; }
.why-item:hover { background: var(--off); }
.why-marker {
  flex-shrink: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--blue-500);
  align-self: stretch;
  min-height: 2.5rem;
}
.why-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.why-content p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* ── Process — grid pipeline ── */
.process { background: transparent; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.process-card {
  padding: 1.5rem;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.process-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-400);
  box-shadow: 0 12px 32px rgba(59, 79, 109, 0.1);
}
.process-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.process-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.5rem;
  background: var(--blue-500);
  color: #fff;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
}
.process-arrow {
  color: var(--blue-300, var(--blue-200));
  font-size: 1.1rem;
  opacity: 0.6;
}
.process-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.process-card p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-body);
}
/* hide arrow on last column items */
.process-card:nth-child(3n) .process-arrow { display: none; }

/* ── Philosophy ── */
.philosophy-band {
  background: var(--band-philosophy); padding: 6rem 0;
  position: relative; overflow: hidden;
  isolation: isolate;
}
#philosophy-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.25; pointer-events: none; z-index: 0;
}
.philosophy-wrap {
  position: relative; z-index: 1; text-align: center;
  max-width: 780px; margin-inline: auto;
}
.philosophy-label {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-200); margin-bottom: 2rem;
}
.philosophy-line {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.7); line-height: 1.55; margin-bottom: 0.4rem;
}
.philosophy-line--mid { color: rgba(255,255,255,0.9); font-weight: 500; }
.philosophy-line--hero {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: #fff; line-height: 1.05;
  margin: 1.25rem 0 2rem;
}
.philosophy-closing {
  font-size: 1.02rem; line-height: 1.85;
  color: rgba(255,255,255,0.65); max-width: 600px; margin-inline: auto;
}

/* ── Contact ── */
.contact { background: transparent; padding-bottom: 5rem; }
.contact-panel {
  position: relative; padding: 3rem 3.5rem;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(59, 79, 109, 0.08);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr min(42%, 320px);
  gap: 2.5rem;
  align-items: center;
}
.contact-content { position: relative; z-index: 1; }
.contact-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.motor-visual {
  position: relative;
  width: min(100%, 280px);
  animation: motorFloat 5s ease-in-out infinite;
}
@keyframes motorFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.motor-glow {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,98,138,0.12), transparent 70%);
  animation: cpuGlow 3s ease-in-out infinite;
}
.motor-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  color: var(--blue-500);
  filter: drop-shadow(0 8px 28px rgba(74,98,138,0.18));
}
.motor-housing {
  stroke: var(--blue-400);
  stroke-width: 2;
  fill: rgba(255,255,255,0.85);
}
.motor-stator-ring {
  stroke: var(--blue-300, var(--blue-200));
  stroke-width: 1;
  fill: none;
  opacity: 0.5;
}
.motor-stator-core {
  stroke: var(--blue-400);
  stroke-width: 1.2;
  fill: rgba(74,98,138,0.05);
}
.motor-coil {
  stroke: var(--blue-500);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  opacity: 0.55;
  animation: coilPulse 2s ease-in-out infinite;
}
.motor-coil:nth-child(2) { animation-delay: 0.5s; }
.motor-coil:nth-child(3) { animation-delay: 1s; }
.motor-coil:nth-child(4) { animation-delay: 1.5s; }
@keyframes coilPulse {
  0%, 100% { opacity: 0.35; stroke-width: 2.5; }
  50% { opacity: 0.85; stroke-width: 3.5; }
}
.motor-tooth {
  stroke: var(--blue-400);
  stroke-width: 2;
  opacity: 0.6;
}
.motor-rotor {
  transform-origin: 150px 150px;
  animation: motorSpin 6s linear infinite;
}
@keyframes motorSpin { to { transform: rotate(360deg); } }
.motor-rotor-body {
  stroke: var(--blue-500);
  stroke-width: 1.5;
  fill: rgba(74,98,138,0.1);
}
.motor-magnet {
  fill: var(--blue-600);
  opacity: 0.75;
}
.motor-shaft {
  fill: var(--blue-400);
  opacity: 0.5;
}
.motor-shaft-core {
  fill: var(--blue-500);
}
.motor-lead {
  stroke: var(--blue-500);
  stroke-width: 2;
  stroke-linecap: round;
}
.motor-terminal {
  fill: var(--blue-500);
}
.motor-spark {
  stroke: var(--blue-400);
  stroke-width: 1.5;
  stroke-dasharray: 4 8;
  animation: dataFlow 1.6s linear infinite;
}
.ms-2 { animation-delay: 0.4s; }
.ms-3 { animation-delay: 0.8s; }
.ms-4 { animation-delay: 1.2s; }
.contact-glow { display: none; }
.contact-panel h2 {
  position: relative; z-index: 1;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--text); line-height: 1.2;
  margin: 0 0 1.25rem; letter-spacing: -0.02em;
  max-width: 640px;
}
.contact-panel p {
  font-size: 1.02rem; line-height: 1.8; max-width: 600px;
  margin-bottom: 1rem;
}
.contact-actions { position: relative; z-index: 1; }
.contact-actions {
  margin-top: 2rem; display: flex; flex-direction: column;
  align-items: flex-start; gap: 1rem;
}
.contact-mail {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: 0.01em;
  transition: color 0.25s;
}
.contact-mail:hover { color: var(--blue-500); text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
}
.footer-row {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.55rem; text-align: center;
}
.footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.footer-tag { font-size: 0.82rem; color: var(--text-muted); }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }

/* ── Dark theme ── */
[data-theme="dark"] {
  color-scheme: dark;
  --white: #1e2a3a;
  --off: #121a26;
  --blue-50: #243044;
  --blue-100: #2e4058;
  --blue-200: #5a7494;
  --blue-400: #8aa0be;
  --blue-500: #a0b4d0;
  --blue-600: #b8c8de;
  --blue-700: #d0dced;
  --blue-800: #e8eef6;
  --text: #eef2f8;
  --text-body: #b8c8dc;
  --text-muted: #8498b0;
  --border: #2e4058;
  --border-strong: #405470;
  --glow: rgba(160, 180, 208, 0.18);
  --band-industries: #243044;
  --band-philosophy: #1a2638;
  --band-feature-from: #2a3a52;
  --band-feature-to: #3b4f6d;
}

[data-theme="dark"] .bg-tiles {
  background-color: #0e141e;
  background-image:
    linear-gradient(rgba(143, 168, 200, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 168, 200, 0.08) 1px, transparent 1px);
}
[data-theme="dark"] .bg-tiles::after {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(30, 42, 58, 0.9), transparent 60%),
    radial-gradient(ellipse 80% 50% at 80% 100%, rgba(18, 26, 38, 0.95), transparent 50%);
}
[data-theme="dark"] .blob-1 { background: #243044; opacity: 0.35; }
[data-theme="dark"] .blob-2 { background: #2a3a52; opacity: 0.3; }
[data-theme="dark"] .blob-3 { background: #1e2e44; opacity: 0.35; }

[data-theme="dark"] .philosophy-label {
  color: #8aa0be;
}

[data-theme="dark"] .site-header {
  background: rgba(18, 26, 38, 0.82);
}
[data-theme="dark"] .site-header.scrolled {
  background: rgba(18, 26, 38, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .hero {
  background: linear-gradient(160deg, #121a26 0%, #1a2638 50%, #1e2a3a 100%);
}
[data-theme="dark"] .hero-glow {
  background: radial-gradient(circle, rgba(160, 180, 208, 0.12) 0%, transparent 65%);
}

[data-theme="dark"] .about-icon:not(.about-icon--light) {
  background: var(--blue-50);
  color: var(--blue-500);
}

[data-theme="dark"] .about-card {
  background: rgba(30, 42, 58, 0.92);
}
[data-theme="dark"] .about-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .svc-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .svc-list li {
  color: var(--blue-500);
}

[data-theme="dark"] .process-card {
  background: rgba(30, 42, 58, 0.95);
}
[data-theme="dark"] .process-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .contact-panel {
  background: rgba(30, 42, 58, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .site-footer {
  background: rgba(18, 26, 38, 0.95);
}

[data-theme="dark"] .btn-primary {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .btn-secondary {
  background: var(--white);
  color: var(--blue-600);
}

@media (max-width: 768px) {
  [data-theme="dark"] .site-nav {
    background: rgba(18, 26, 38, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .header-row {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
  }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-deco { max-width: 280px; margin-inline: auto; margin-top: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card--wide { grid-column: auto; }
  .about-feature-body { grid-template-columns: 1fr; }
  .about-blueprint { max-width: 260px; margin-inline: auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-visual { order: -1; }
  .motor-visual { max-width: 220px; }
  .services-bento { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-card:nth-child(3n) .process-arrow { display: inline; }
  .process-card:nth-child(2n) .process-arrow { display: none; }
  .why-list { grid-template-columns: 1fr; }
  .why-item:nth-child(odd) { border-right: none; }
  .why-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .why-item:last-child { border-bottom: none; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .header-end .btn-sm { display: none; }
}

@media (max-width: 768px) {
  .header-row {
    display: flex;
    justify-content: space-between;
  }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    justify-content: flex-start;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--ease);
    pointer-events: none;
    box-shadow: 0 12px 40px rgba(74,98,138,0.12);
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: all; }
  .nav-toggle { display: flex; }
  .services-bento { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card .process-arrow { display: none !important; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .hero-pillars li {
    text-align: center;
    width: 100%;
    padding: 0.55rem 1rem;
  }
  .contact-panel { padding: 2rem; }
  .block { padding: 4rem 0; }
  .header-end { gap: 0.45rem; }
  .lang-switcher { flex-shrink: 0; }
  .lang-btn {
    font-size: 0.6rem;
    padding: 0.35rem 0.42rem;
  }
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .brand-logo { height: 38px; }
  .industries-grid { grid-template-columns: 1fr; }
  .lang-btn {
    font-size: 0.58rem;
    padding: 0.32rem 0.38rem;
  }
}

[data-theme="dark"] .motor-housing {
  fill: rgba(30, 42, 58, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim { opacity: 1; transform: none; }
  .bg-tiles { animation: none; }
  .about-feature::before { animation: none; }
  .cpu-visual, .cpu-glow-ring, .cpu-package, .cpu-core, .pin, .data-flow, .signal-dot, .hero-glow { animation: none !important; }
  .motor-visual, .motor-rotor, .motor-coil, .motor-spark, .bp-gear, .bp-scan { animation: none !important; }
}
