/* ==========================================================================
   Seamless Controls — Design System
   Dark, technical, precision-engineered aesthetic for embedded/controls work.
   ========================================================================== */

:root {
  --bg: #090c12;
  --bg-soft: #0c1019;
  --surface: #10141f;
  --surface-2: #141a28;
  --surface-hover: #182035;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f7;
  --text-dim: #a7b0c2;
  --text-faint: #626c80;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-2: #fbbf24;
  --accent-2-soft: rgba(251, 191, 36, 0.12);
  --violet: #8b8ff5;
  --danger: #f87171;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--text-dim); }

.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Background texture ---------- */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0ea5c4);
  color: #04141a;
  box-shadow: 0 8px 24px -8px rgba(34, 211, 238, 0.55);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(34, 211, 238, 0.65); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

.btn-arrow { transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  /* no filter/transform on this element itself: either would create a
     containing block for descendant position:fixed elements (the mobile
     nav), trapping it inside the header's own box instead of the viewport */
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px);
  background: rgba(9, 12, 18, 0.72);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}
/* the header carries six nav items, a language switcher and a button: give it
   more width than the content container so translated labels never wrap */
.site-header .container { max-width: 1400px; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo-img { display: block; height: 46px; width: auto; flex-shrink: 0; }
.logo-footer { margin-bottom: 12px; }
.logo-footer .logo-img { height: 52px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 500;
}
.site-nav > a { white-space: nowrap; }

.site-nav a {
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--text); }

.site-nav .nav-cta { display: none; }
.site-nav a.active { color: var(--accent); }

.site-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding-right: 6px;
}
.lang-switch a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  padding: 6px 5px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch a:hover { color: var(--text); background: rgba(238, 241, 247, 0.06); }
.lang-switch a.active { color: var(--accent); }
@media (max-width: 1360px) { .lang-switch { margin-left: 0; padding-right: 2px; } }
@media (max-width: 420px) { .lang-switch a { padding: 6px 4px; font-size: 0.68rem; } }

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

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero .lede { margin-bottom: 34px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-small {
  padding: 44px 0 52px;
}

/* Chips / badges */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
}

.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chip:nth-child(3n+2) .dot { background: var(--accent-2); }
.chip:nth-child(3n) .dot { background: var(--violet); }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-tight { padding: 60px 0; }
.section-border-top { border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 30px; }
.section-alt { background: var(--bg-soft); }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card-link { display: block; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.card-arrow {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.card-arrow svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.card-link:hover .card-arrow svg { transform: translateX(3px); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.feature-list svg { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); flex-shrink: 0; }

/* ---------- Small mono index label ---------- */
.split-index {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Photo cards (image-led cards) ---------- */
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-photo:hover .card-media img { transform: scale(1.06); }
.card-photo .card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-photo .card-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card-photo .card-body p { margin-bottom: 0; font-size: 0.9rem; }
.card-photo .card-arrow { margin-top: auto; padding-top: 14px; }

/* ---------- Slider arrows (shared) ---------- */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(9, 12, 18, 0.6);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  z-index: 3;
}
.slider-arrow:hover { background: rgba(9, 12, 18, 0.85); border-color: var(--accent); }
.slider-arrow:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 2px; }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-arrow svg { width: 20px; height: 20px; }

/* ---------- Showcase: tabs + text panel + big sliding media ---------- */
.showcase { position: relative; --showcase-interval: 3.5s; }

.showcase-tabs {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border-top: 1px solid var(--border);
  margin-bottom: 26px;
}

.showcase-tab {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 18px 14px 0;
  background: none;
  border: none;
  color: var(--text-faint);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.showcase-tab:hover { color: var(--text-dim); }
.showcase-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.showcase-tab .num { font-family: var(--font-mono); font-size: 0.72rem; flex-shrink: 0; }
.showcase-tab .label { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.showcase-tab.active { color: var(--text); }
.showcase-tab.active .num { color: var(--accent); }

.showcase-tab .bar {
  position: absolute;
  left: 0;
  top: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
}
.showcase-tab.active .bar { animation: showcase-fill var(--showcase-interval) linear forwards; }
.showcase.is-paused .showcase-tab.active .bar { animation-play-state: paused; }

@keyframes showcase-fill { from { width: 0; } to { width: calc(100% - 18px); } }

.showcase-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.7fr);
  gap: 40px;
  align-items: center;
}

.showcase-text { display: grid; }

.showcase-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.showcase-panel.active { opacity: 1; visibility: visible; transform: none; }

.showcase-panel .kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.showcase-panel h2 { font-size: clamp(1.35rem, 2vw, 1.8rem); margin-bottom: 12px; }
.showcase-panel p { font-size: 0.96rem; }
.showcase-panel .feature-list { margin-top: 6px; }
.showcase-panel .btn { margin-top: 6px; }
.panel-note { font-size: 0.85rem !important; color: var(--text-faint); margin-top: 14px !important; }

.showcase-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
}
.showcase-media:hover .slider-arrow { opacity: 1; }

.showcase-track {
  display: flex;
  height: 100%;
  transition: transform 0.33s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* diagrams / screenshots: show the whole image on a soft panel */
.showcase-slide.contain {
  padding: 46px 26px 52px;
  background:
    radial-gradient(circle at 50% 35%, rgba(34, 211, 238, 0.08), transparent 65%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}
.showcase-slide.contain img { object-fit: contain; border-radius: var(--radius-sm); }

/* drawn graphics */
.showcase-slide.graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px 44px;
  background:
    radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.09), transparent 62%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}
.showcase-slide.graphic svg { width: 100%; height: 100%; }

.slide-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(9, 12, 18, 0.72);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.showcase-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text);
  background: rgba(9, 12, 18, 0.72);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}

.mini-stats { display: flex; gap: 34px; margin-top: 4px; }
.mini-stats .stat h4 { font-size: 1.6rem; margin-bottom: 2px; }

@media (hover: none) {
  .slider-arrow { opacity: 1; }
}

@media (max-width: 900px) {
  .showcase-stage { grid-template-columns: 1fr; gap: 22px; }
  .showcase-media { order: -1; aspect-ratio: 4 / 3; }
  .showcase-slide.graphic { padding: 34px 6px 40px; }
  .showcase-slide.contain { padding: 42px 12px 46px; }
  .showcase-tabs {
    grid-auto-columns: minmax(150px, 1fr);
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 18px;
  }
  .showcase-tabs::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-track, .showcase-panel, .card-media img { transition: none; }
  .showcase-tab.active .bar { animation: none; width: calc(100% - 18px); }
}

/* ---------- Stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stat h4 {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat p { font-size: 0.85rem; color: var(--text-faint); margin: 0; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Compact page intro ---------- */
.hero-wide { position: relative; z-index: 1; }

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 34px;
}
.page-intro h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 12px; }
.page-intro .lede { font-size: 1.04rem; margin-bottom: 18px; max-width: 700px; }
.page-intro .lede:last-child { margin-bottom: 0; }
.page-intro .eyebrow { margin-bottom: 14px; }

/* with no side column, the intro/process block uses the full width */
.page-intro:not(:has(> * + *)),
.process-cta:not(:has(> * + *)) { grid-template-columns: minmax(0, 1fr); }

.intro-side { display: flex; flex-direction: column; gap: 18px; }
.intro-side .hero-cta { margin-bottom: 0; }

.cta-mini {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-mini h3 { font-size: 1.08rem; margin: 0; }
.cta-mini p { margin: 0 0 4px; font-size: 0.88rem; }
.cta-mini .btn { align-self: flex-start; }

.section-head-row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}
.section-head-row h2 { margin-bottom: 0; }
.section-head-row p { margin: 0; }

.process-cta {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 44px;
  align-items: end;
}
.process-cta:not(:has(> * + *)) { grid-template-columns: minmax(0, 1fr); }
.process-cta h2 { margin-bottom: 26px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { border-top: 1px solid var(--border-strong); padding-top: 16px; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; margin: 0; }

@media (max-width: 900px) {
  .page-intro, .section-head-row, .process-cta { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Products ---------- */
.showcase-slide.studio {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 34px 54px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #eef1f6 55%, #d7dce5 100%);
}
.showcase-slide.studio img { object-fit: contain; mix-blend-mode: multiply; }
.showcase-slide.studio.sheet { background: #ffffff; padding: 44px 14px 50px; }

.product-sub {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin: -4px 0 14px;
}

.h-sub { display: block; font-size: 0.55em; font-weight: 600; color: var(--accent); letter-spacing: 0; margin-top: 6px; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-mini .btn-row { margin-top: 4px; }
.contact-lines { display: grid; gap: 2px; font-size: 0.86rem; color: var(--text-dim); }
.contact-lines a { color: var(--accent); }
.contact-lines a:hover { text-decoration: underline; }
.text-link { color: var(--accent); }
.text-link:hover { text-decoration: underline; }

.feature-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-tile { background: var(--surface); padding: 22px 22px 24px; transition: background 0.2s ease; }
.feature-tile:hover { background: var(--surface-2); }
.feature-tile .fig {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 6px;
}
.feature-tile p { margin: 0; font-size: 0.88rem; }

.spec-columns { column-count: 3; column-gap: 40px; }
.spec-group { break-inside: avoid; margin-bottom: 26px; }
.spec-group h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.spec-list li { position: relative; padding-left: 14px; font-size: 0.9rem; color: var(--text-dim); line-height: 1.5; }
.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
}

.pinout {
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.pinout summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
}
.pinout summary::-webkit-details-marker { display: none; }
.pinout summary:hover { color: var(--accent); }
.pinout summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-lg); }
.pinout .chev { flex-shrink: 0; color: var(--text-faint); transition: transform 0.25s ease; }
.pinout[open] .chev { transform: rotate(180deg); color: var(--accent); }
.kicker-inline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 10px;
}
.pinout-body { padding: 0 22px 20px; }
.pin-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pins { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.pins th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-strong);
}
.pins td { padding: 6px 10px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.pins td:first-child { width: 60px; font-family: var(--font-mono); color: var(--accent); }
.pins tbody tr:hover td { background: var(--surface-2); color: var(--text); }
.doc-note { font-size: 0.8rem; color: var(--text-faint); margin: 16px 0 0; }

.product-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}
.product-shot {
  display: block;
  aspect-ratio: 4 / 3;
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #eef1f6 55%, #d7dce5 100%);
  box-shadow: var(--shadow-lg);
}
.product-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-shot:hover img { transform: scale(1.05); }
.fig-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 24px; }
.fig-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 12px 14px; }
.fig-item b { display: block; font-family: var(--font-mono); font-size: 1.05rem; color: var(--accent); }
.fig-item span { display: block; font-size: 0.76rem; line-height: 1.35; color: var(--text-faint); margin-top: 2px; }

@media (max-width: 980px) {
  .feature-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-columns { column-count: 2; }
}

@media (max-width: 900px) {
  .product-teaser { grid-template-columns: 1fr; gap: 26px; }
  .fig-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-slide.studio { padding: 40px 16px 46px; }
  .showcase-slide.studio.sheet { padding: 40px 6px 44px; }
}

@media (max-width: 720px) {
  .spec-columns { column-count: 1; }
  .pin-tables { grid-template-columns: 1fr; gap: 0; }
  .pin-tables .pins + .pins thead { display: none; }
  .pin-tables > div + div { margin-top: 18px; }
  .pinout summary { padding: 16px 18px; }
  .pinout-body { padding: 0 18px 18px; }
  .kicker-inline { display: block; margin-bottom: 4px; }
}

@media (max-width: 480px) {
  .feature-tiles { grid-template-columns: 1fr; }
}

/* ---------- Product cards (home + products overview) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.product-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card-media.studio {
  padding: 26px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #eef1f6 55%, #d7dce5 100%);
}
.product-card-media.studio img { object-fit: contain; mix-blend-mode: multiply; }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.product-card-body h3 { font-size: 1.5rem; margin-bottom: 2px; }
.card-sub { color: var(--accent) !important; font-weight: 600; font-size: 0.95rem; margin-bottom: 10px !important; }
.product-card-body p { font-size: 0.92rem; }
.product-card .fig-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 4px 0 20px; }
.product-card .btn-row { margin-top: auto; }

.pin-title { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--text); margin: 4px 0 2px; }
.pin-desc { font-size: 0.78rem; color: var(--text-faint); margin: 0 0 6px; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* single-photo product block (no tabs) */
/* photo-only showcase: no tab row, no text column — just the picture */
.showcase-photo .showcase-media { max-width: 900px; margin: 0 auto; }

/* light screenshots (model charts) on a soft white panel */
.showcase-slide.contain.light {
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #eef1f6 60%, #d9dee7 100%);
  padding: 26px 26px 40px;
}
.showcase-slide.contain.light img { border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(9, 12, 18, 0.18); }

/* source-code slide */
.showcase-slide.code {
  display: flex;
  align-items: center;
  padding: 22px 26px 34px;
  background:
    radial-gradient(circle at 50% 30%, rgba(34, 211, 238, 0.08), transparent 62%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}
.showcase-slide.code pre {
  margin: 0;
  width: 100%;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 1.12vw, 0.84rem);
  line-height: 1.5;
  color: #b7c0d0;
  white-space: pre;
  tab-size: 4;
}
@media (max-width: 860px) {
  .showcase-slide.code { padding: 12px 14px 28px; }
  .showcase-slide.code pre { font-size: 0.52rem; line-height: 1.42; }
}
.showcase-slide.code .c { color: #5d6a7f; }
.showcase-slide.code .k { color: #8b8ff5; }
.showcase-slide.code .fn { color: #22d3ee; }
.showcase-slide.code .pp,
.showcase-slide.code .n { color: #fbbf24; }

/* capability table shown in a slide's media pane */
.showcase-slide.table {
  display: flex;
  align-items: center;
  padding: 20px 26px 24px;
  background:
    radial-gradient(circle at 50% 25%, rgba(34, 211, 238, 0.08), transparent 62%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}
.cap-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: clamp(0.56rem, 0.82vw, 0.76rem);
}
.cap-table th {
  text-align: left;
  color: var(--text-faint);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border-strong);
}
.cap-table td {
  padding: 3px 0;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(238, 241, 247, 0.05);
}
.cap-table td:first-child { color: var(--text); }
.cap-table th:not(:first-child),
.cap-table td:not(:first-child) { text-align: right; width: 34%; }
.cap-table td:nth-child(2) { color: var(--accent); font-weight: 600; }
/* keep the header clear of the slide counter badge */
.cap-table thead th:last-child { padding-right: 74px; }
@media (max-width: 860px) {
  .showcase-slide.table { padding: 12px 16px 18px; }
  .cap-table { font-size: 0.54rem; line-height: 1.25; }
  .cap-table th { font-size: 0.5rem; padding-bottom: 4px; }
  .cap-table td { padding: 1px 0; }
  .cap-table th:not(:first-child),
  .cap-table td:not(:first-child) { width: 34%; }
}
.cap-table tr:last-child td { border-bottom: 0; }

.cap-block { width: 100%; }
.cap-notes {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--border-strong);
  display: grid;
  gap: 6px;
}
.cap-notes li {
  font-family: var(--font-mono);
  font-size: clamp(0.52rem, 0.74vw, 0.7rem);
  line-height: 1.45;
  color: var(--text-dim);
  padding-left: 14px;
  position: relative;
}
.cap-notes li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 860px) {
  .cap-notes { margin-top: 8px; padding-top: 8px; gap: 4px; }
  .cap-notes li { font-size: 0.5rem; line-height: 1.3; }
}

/* home: short summary of the sub-pages */
.page-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
  margin-top: 10px;
}
.summary-item {
  display: block;
  border-top: 1px solid var(--border-strong);
  padding-top: 16px;
  transition: border-color 0.2s ease;
}
.summary-item h3 { font-size: 1.02rem; margin: 8px 0 8px; }
.summary-item p { font-size: 0.88rem; color: var(--text-dim); margin: 0; }
.summary-item:hover { border-color: var(--accent); }
.summary-item:hover h3 { color: var(--accent); }

@media (max-width: 1100px) {
  .page-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 620px) {
  .page-summary { grid-template-columns: 1fr; gap: 18px; }
}

/* service card showing source code instead of a photo */
.card-media.code-card {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background:
    radial-gradient(circle at 50% 25%, rgba(34, 211, 238, 0.09), transparent 62%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}
.card-media.code-card pre {
  margin: 0;
  width: 100%;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: clamp(0.56rem, 0.78vw, 0.72rem);
  line-height: 1.5;
  color: #b7c0d0;
  white-space: pre;
}
.card-media.code-card .c { color: #5d6a7f; }
.card-media.code-card .k { color: #8b8ff5; }
.card-media.code-card .fn { color: #22d3ee; }
.card-media.code-card .n { color: #fbbf24; }

/* expertise artwork cards */
.card-media.art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 35%, rgba(34, 211, 238, 0.07), transparent 65%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}
.card-media.art svg { width: 100%; height: 100%; }
.expertise-card .card-arrow { color: var(--accent); }
.expertise-card .card-arrow:hover svg { transform: translateX(3px); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 24px;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.7fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}

.footer-brand p { font-size: 0.9rem; max-width: 280px; }

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.contact-grid:not(:has(> * + *)) { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin: 0 auto; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row { display: grid; gap: 8px; margin-bottom: 20px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 20px; }

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input, textarea {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 10px; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--accent);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 18px;
}

.form-success.show { display: flex; }

.info-row a { color: var(--accent); }
.info-row a:hover { text-decoration: underline; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  margin-bottom: 20px;
}

.info-row { display: flex; gap: 14px; margin-bottom: 20px; }
.info-row:last-child { margin-bottom: 0; }

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg { width: 18px; height: 18px; }

.info-row h4 { margin: 0 0 4px; font-size: 0.95rem; }
.info-row p { margin: 0; font-size: 0.9rem; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 260px;
}

.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) invert(0.9) contrast(0.9); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
}

/* Collapse the main navigation into the menu button before it runs out of room */
@media (max-width: 1360px) {
  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 28px;
    gap: 22px;
    font-size: 1.1rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 90;
  }
  .site-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 44px 0; }
  .form-row.two { grid-template-columns: 1fr; }
  .header-actions .btn-sm { display: none; }
  .site-nav .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #04121a;
    font-weight: 700;
    font-size: 0.95rem;
  }
  .site-nav .nav-cta:hover { color: #04121a; }
  .logo-img { height: 40px; }
}

/* Narrow phones: the header carries the logo, the five-language switcher and
   the menu button, so tighten its spacing before anything runs off screen. */
@media (max-width: 600px) {
  .site-header .container { padding: 0 16px; gap: 10px; }
  .lang-switch { padding-right: 0; }
  .lang-switch a { padding: 6px 3px; font-size: 0.66rem; }
}
@media (max-width: 400px) {
  .logo-img { height: 34px; }
  .lang-switch a { padding: 6px 2px; font-size: 0.62rem; }
}
@media (max-width: 340px) {
  .logo-img { height: 28px; }
  .lang-switch a { padding: 6px 1px; font-size: 0.6rem; }
}

@media (max-width: 600px) {
  .info-card { padding: 22px; }
  .info-row p { overflow-wrap: anywhere; }
}
@media (max-width: 400px) {
  .container { padding: 0 18px; }
}
