/* ==========================================================================
   Mechaunik — the company website's design.
   Graphite ink and Mechaunik's orange (the Mecha3D theme); Persian, right to
   left. --accent and --ink come again from /theme.css, which the panel sets.
   Motion: everything that moves stops for prefers-reduced-motion.
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@property --m3d-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --ink: #15181d;
  --accent: #f26b1d;
  --ink-2: #1d2128;
  --ink-3: #272c34;
  --ink-soft: #3b414b;
  --muted: #646a74;
  --muted-2: #8b919b;
  --line: #e8e3dc;
  --paper: #f6f3ee;
  --paper-2: #eee8e0;
  --white: #fff;
  --error: #d92d20;
  /* derived colours (fallbacks first, for browsers without color-mix) */
  --accent-2: #ff9a5a;
  --accent-ink: #b84d0f;
  --accent-soft: #fdeee4;
  --accent-line: #f6c3a2;
  --glow: rgba(242, 107, 29, 0.42);
  --glow-soft: rgba(242, 107, 29, 0.16);
  --radius: 24px;
  --radius-sm: 16px;
  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1240px;
  --hdr-h: 78px;
  --shadow-1: 0 1px 2px rgba(21, 24, 29, 0.05), 0 4px 16px rgba(21, 24, 29, 0.06);
  --shadow-2: 0 12px 32px -10px rgba(21, 24, 29, 0.2);
  --shadow-3: 0 34px 80px -28px rgba(21, 24, 29, 0.38);
}

@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --accent-2: color-mix(in srgb, var(--accent) 70%, #ffd0a8);
    --accent-ink: color-mix(in srgb, var(--accent) 76%, #000);
    --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
    --accent-line: color-mix(in srgb, var(--accent) 40%, #fff);
    --glow: color-mix(in srgb, var(--accent) 45%, transparent);
    --glow-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
bdi { unicode-bidi: isolate; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 860px; }
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: absolute;
  right: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }
.anchor-point { position: absolute; bottom: 0; }

/* ---------- reveal motion ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.95s var(--ease), transform 1.05s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal="zoom"] { transform: scale(0.94); }
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal="rise"] { transform: translateY(70px); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

.split-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: 0.08em 0.16em;
  margin-block: -0.08em -0.16em;
}
.split-i {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  transform-origin: right bottom;
  transition: transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.is-in > .split-w > .split-i,
.is-in .split-w > .split-i { transform: none; }

/* ---------- first visit: the mark, then the curtain ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  background: var(--ink);
  clip-path: inset(0 0 0 0);
}
html.intro-on .intro { display: grid; }
html.intro-on.intro-done .intro { animation: intro-out 0.95s var(--ease) 0.15s forwards; }
.intro-mark { width: 96px; }
.intro .mark { width: 100%; height: auto; }
.intro .mark-bg { fill: #0e1013; }
.intro .mark-m { fill: #fff; animation: intro-in 0.8s var(--ease-out) both; }
.intro .mark-u { fill: var(--accent); animation: intro-in 0.8s var(--ease-out) 0.18s both; }
@keyframes intro-in { from { opacity: 0; transform: translateY(40px); } }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ---------- scroll progress, to top, cursor tag ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 70;
  height: 3px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(to left, var(--accent), var(--accent-2));
  transform-origin: right;
  transform: scaleX(var(--sp, 0));
}
.to-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px) scale(0.9);
  transition: opacity 0.4s, transform 0.5s var(--ease), background 0.3s;
}
.to-top .icon { transform: rotate(180deg); }
.to-top.is-on { opacity: 1; transform: none; }
.to-top:hover { background: var(--accent); }
.cursor-tag {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  pointer-events: none;
}
.cursor-tag span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 12px 30px -8px var(--glow);
  transform: scale(0);
  transition: transform 0.45s var(--spring);
}
.cursor-tag.is-active span { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .cursor-tag { display: none; } }

.draft-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  z-index: 75;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 999px;
  background: #b54708;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-2);
}

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--ink);
  --b-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--b-bg);
  color: var(--b-fg);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, background 0.3s, color 0.3s, border-color 0.3s;
}
.btn .icon { width: 19px; height: 19px; transition: transform 0.4s var(--ease); }
.btn:hover .icon { transform: translateX(-4px); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.32) 48%, transparent 72%);
  transform: translateX(120%);
  transition: transform 0.9s var(--ease);
}
.btn:hover::before { transform: translateX(-120%); }
.btn--primary { --b-bg: var(--accent); box-shadow: 0 12px 30px -12px var(--glow); }
.btn--primary:hover { box-shadow: 0 18px 44px -12px var(--glow); }
.btn--ghost { --b-bg: transparent; --b-fg: currentColor; border-color: rgba(255, 255, 255, 0.3); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--outline { --b-bg: transparent; --b-fg: var(--ink); border-color: var(--ink); }
.btn--outline:hover { --b-bg: var(--ink); --b-fg: #fff; }
.btn--light { --b-bg: #fff; --b-fg: var(--ink); box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.45); }
.btn--light:hover { --b-bg: var(--ink); --b-fg: #fff; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn--lg { height: 58px; padding: 0 30px; font-size: 16.5px; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .icon { animation: spin 0.9s linear infinite; }

/* ---------- section scaffolding ---------- */
.sec { position: relative; padding-block: clamp(84px, 10vw, 140px); }
.sec--light { background: #fff; }
.sec--paper { background: var(--paper); }
.sec--dark { background: var(--ink); color: #fff; }
.sec--accent { background: var(--accent); color: #fff; }
.sec-head { max-width: 740px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 800;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.sec-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--onColor { color: #fff; }
.sec-title {
  font-size: clamp(2rem, 1.15rem + 2.7vw, 3.45rem);
  font-weight: 850;
  line-height: 1.24;
}
.sec-sub {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.16rem);
}
.sec-head--center .sec-sub { margin-inline: auto; }
.sec--dark .sec-sub { color: rgba(255, 255, 255, 0.66); }
.hl { font-style: normal; color: var(--accent); }
.sec-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.sec-top .sec-head { margin-bottom: 0; }
.sec-foot { margin-top: 48px; display: flex; justify-content: center; }
.sec--dark .btn--outline { --b-fg: #fff; border-color: rgba(255, 255, 255, 0.4); }

.prose { color: var(--muted); font-size: 1.02rem; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1em; }
.prose h2 { margin: 1.5em 0 0.55em; color: var(--ink); font-size: 1.55rem; font-weight: 850; line-height: 1.4; }
.prose h3 { margin: 1.3em 0 0.5em; color: var(--ink); font-size: 1.22rem; font-weight: 800; }
.prose > :first-child { margin-top: 0; }
.prose ul { display: grid; gap: 0.55em; }
.prose li { position: relative; padding-inline-start: 24px; }
.prose li::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.prose a { color: var(--accent-ink); border-bottom: 1px solid var(--accent-line); transition: color 0.25s, border-color 0.25s; }
.prose a:hover { color: var(--accent); border-color: var(--accent); }
.prose strong { color: var(--ink); }
.prose--lg { font-size: 1.08rem; line-height: 2.05; }
.sec--dark .prose { color: rgba(255, 255, 255, 0.72); }
.sec--dark .prose h2, .sec--dark .prose h3, .sec--dark .prose strong { color: #fff; }

/* ---------- gears (drawn by the gear_train and lone_gear tags) ---------- */
.gr { transform-box: fill-box; transform-origin: center; }
.gr-a { animation: spin 48s linear infinite; }
.gr-b { animation: spin-back 24s linear infinite; }
.gr-c { animation: spin 16s linear infinite; }
.gr-solo { animation: spin 70s linear infinite; }
.gr-body { fill: rgba(255, 255, 255, 0.02); stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.4; }
.gr-a .gr-body { fill: rgba(242, 107, 29, 0.05); stroke: var(--accent); stroke-opacity: 0.75; }
.gr-pitch { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-dasharray: 3 7; }
.gr-spoke, .gr-axis { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.2; }
.gr-ring { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-dasharray: 2 10; }
.gr-dim {
  fill: none;
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 1;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw 2.4s var(--ease) 0.7s forwards;
}
.gr-note {
  fill: rgba(255, 255, 255, 0.5);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  direction: ltr;
  opacity: 0;
  animation: fade-in 1s ease 1.6s forwards;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-back { to { transform: rotate(-360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- header ---------- */
.hdr {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 55;
  height: var(--hdr-h);
  color: #fff;
  transition: background 0.45s, box-shadow 0.45s, transform 0.5s var(--ease), height 0.35s var(--ease);
}
.hdr.is-scrolled {
  --hdr-h: 68px;
  background: rgba(15, 17, 21, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 40px -30px rgba(0, 0, 0, 0.8);
}
.hdr.is-hidden { transform: translateY(-105%); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-tile {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 20px -8px rgba(0, 0, 0, 0.7);
  transition: transform 0.6s var(--spring);
}
.brand:hover .brand-tile { transform: rotate(-8deg) scale(1.06); }
.mark { width: 100%; height: 100%; }
.mark-bg { fill: #0e1013; }
.mark-m { fill: #fff; }
.mark-u { fill: var(--accent); }
.brand-word { display: flex; flex-direction: column; gap: 6px; }
.wordmark { width: auto; height: 15px; }
.wm-ink { fill: #fff; }
.wm-hot { fill: var(--accent); }
.brand-word small { font-size: 11.5px; line-height: 1; color: rgba(255, 255, 255, 0.55); font-weight: 600; }
.brand-logo { height: 44px; width: auto; }
.nav { margin-inline: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-link {
  position: relative;
  display: block;
  padding: 10px 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 15px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.hdr-actions { display: flex; align-items: center; gap: 12px; }

/* The distinct menu item: Mecha3D, the 3D printing service */
.m3d-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding-inline: 7px 14px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(#171a20, #171a20) padding-box,
    conic-gradient(from var(--m3d-angle), var(--accent), #ffd7b5 18%, var(--accent) 36%, rgba(255, 255, 255, 0.14) 55%, rgba(255, 255, 255, 0.14) 80%, var(--accent)) border-box;
  box-shadow: 0 0 26px -8px var(--glow);
  animation: m3d-turn 5s linear infinite;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.m3d-pill:hover { transform: translateY(-2px); box-shadow: 0 0 36px -6px var(--glow); }
@keyframes m3d-turn { to { --m3d-angle: 360deg; } }
.m3d-pill-tile { width: 32px; height: 32px; flex: none; }
.m3d-mark { width: 100%; height: 100%; }
.m3d-mark-bg { fill: #0b0c0f; }
.m3d-mark-tip { fill: var(--accent); }
.m3d-pill-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.m3d-pill-text b { font-size: 13.5px; font-weight: 750; }
.m3d-pill-text small { font-size: 10.5px; color: rgba(255, 255, 255, 0.58); letter-spacing: 0.06em; }
.m3d-pill-ext { width: 15px; height: 15px; opacity: 0.6; }

.burger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  right: 13px;
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease), width 0.45s var(--ease);
}
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; width: 14px; }
.burger.is-open span:first-child { top: 23px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 23px; width: 21px; transform: rotate(-45deg); }

.mnav {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  padding: calc(var(--hdr-h) + 24px) 0 40px;
  background: radial-gradient(800px circle at 0% 0%, rgba(242, 107, 29, 0.18), transparent 60%), var(--ink);
  color: #fff;
  visibility: hidden;
  clip-path: circle(0 at 40px 40px);
  transition: clip-path 0.75s var(--ease), visibility 0s linear 0.75s;
}
.mnav.is-open { visibility: visible; clip-path: circle(150% at 40px 40px); transition: clip-path 0.8s var(--ease); }
.mnav-list { display: grid; gap: 4px; }
.mnav-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 8px;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 900;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), color 0.25s;
}
.mnav-link:hover { color: var(--accent); }
.mnav-link--cta { color: var(--accent); }
.mnav-num { font-size: 13px; font-weight: 700; color: var(--accent); }
.mnav.is-open .mnav-link { opacity: 1; transform: none; }
.mnav.is-open li:nth-child(1) .mnav-link { transition-delay: 0.12s; }
.mnav.is-open li:nth-child(2) .mnav-link { transition-delay: 0.18s; }
.mnav.is-open li:nth-child(3) .mnav-link { transition-delay: 0.24s; }
.mnav.is-open li:nth-child(4) .mnav-link { transition-delay: 0.3s; }
.mnav.is-open li:nth-child(5) .mnav-link { transition-delay: 0.36s; }
.mnav.is-open li:nth-child(6) .mnav-link { transition-delay: 0.42s; }
.mnav-m3d {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(242, 107, 29, 0.45);
  border-radius: 20px;
  background: rgba(242, 107, 29, 0.1);
  font-size: 14px;
  line-height: 1.7;
}
.mnav-m3d-logo { flex: none; }
.mnav-m3d .m3d-wordmark { width: auto; height: 15px; }
.m3d-wm-root { fill: #fff; }
.m3d-wm-hot { fill: var(--accent); }
.mnav-contact { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.mnav-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
}
.mnav-contact .icon { color: var(--accent); }
body.nav-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--hdr-h) + 48px) 0 96px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg, .phero .hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 40% 45%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 40% 45%, #000 15%, transparent 75%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px circle at var(--mx, 30%) var(--my, 35%), var(--glow-soft), transparent 62%),
    radial-gradient(900px circle at 90% 115%, rgba(242, 107, 29, 0.14), transparent 60%),
    radial-gradient(700px circle at 0% 0%, rgba(255, 255, 255, 0.04), transparent 60%);
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.hero-eyebrow { margin-bottom: 22px; }
.hero-title {
  font-size: clamp(2.5rem, 1.2rem + 3.9vw, 4.75rem);
  font-weight: 900;
  line-height: 1.16;
}
.hero-slogan {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.hero-sub {
  margin-top: 22px;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
}
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 18px 0; }
.hero-stat { padding-inline: 0 clamp(20px, 3.4vw, 44px); }
.hero-stat + .hero-stat { padding-inline-start: clamp(20px, 3.4vw, 44px); border-inline-start: 1px solid rgba(255, 255, 255, 0.12); }
.hero-stat dt { font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.7rem); font-weight: 850; line-height: 1; }
.hero-stat dd { margin-top: 10px; color: rgba(255, 255, 255, 0.55); font-size: 13.5px; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  perspective: 1400px;
}
.hero-gears {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  max-width: none;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 0.6s var(--ease);
}
.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: 30px;
  background: #f4f1ec;
  box-shadow: 0 50px 90px -34px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card--main {
  inset: 13% 8% 15% 6%;
  transform: rotate(-3deg) translate3d(var(--tx, 0), var(--ty, 0), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.7s var(--ease);
  animation: rise-in 1.4s var(--ease-out) 0.25s both;
}
.hero-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
  transform: translateX(-110%);
  animation: shine 7s ease-in-out 2.4s infinite;
}
.hero-card--side {
  width: 36%;
  aspect-ratio: 1;
  bottom: 3%;
  left: -1%;
  border: 6px solid var(--ink);
  border-radius: 26px;
  transform: rotate(7deg) translate3d(calc(var(--tx, 0) * -1.6), calc(var(--ty, 0) * -1.6), 0);
  transition: transform 0.7s var(--ease);
  animation: rise-in 1.4s var(--ease-out) 0.55s both;
}
.hero-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(21, 24, 29, 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
  animation: chip-float 7s ease-in-out infinite, fade-in 0.8s ease both;
}
.hero-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--glow-soft); }
.hero-chip--1 { top: 5%; right: 6%; animation-delay: 0s, 1.2s; }
.hero-chip--2 { top: 40%; right: -3%; animation-delay: -2.4s, 1.4s; }
.hero-chip--3 { bottom: 9%; right: 26%; animation-delay: -4.6s, 1.6s; }
.hero-chip--4 { top: 18%; left: -2%; animation-delay: -1.2s, 1.8s; }
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 28px;
  height: 46px;
  margin-left: -14px;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}
.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--accent);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes rise-in { from { opacity: 0; translate: 0 60px; } }
@keyframes shine { 0%, 100% { transform: translateX(-110%); } 45%, 55% { transform: translateX(110%); } }
@keyframes chip-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- inner pages' hero ---------- */
.phero {
  position: relative;
  padding: calc(var(--hdr-h) + clamp(64px, 9vw, 120px)) 0 clamp(72px, 9vw, 120px);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.phero-media { position: absolute; inset: 0; z-index: -2; }
.phero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; filter: grayscale(0.35); transform: scale(1.06); }
.phero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 24, 29, 0.55), var(--ink) 94%); }
.phero-gear { position: absolute; z-index: -1; width: 380px; left: -110px; bottom: -150px; opacity: 0.55; pointer-events: none; }
.phero-gear .gr-body, .statement-gear .gr-body { fill: none; stroke: var(--accent); stroke-opacity: 0.4; stroke-width: 1.2; }
.phero-gear .gr-pitch, .statement-gear .gr-pitch { stroke: rgba(255, 255, 255, 0.1); }
.phero-in { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; color: rgba(255, 255, 255, 0.52); font-size: 13.5px; }
.crumbs a { transition: color 0.25s; }
.crumbs a:hover { color: #fff; }
.crumbs-sep { width: 14px; height: 14px; opacity: 0.55; }
.phero-title { max-width: 18ch; font-size: clamp(2.3rem, 1.25rem + 3.7vw, 4.5rem); font-weight: 900; line-height: 1.17; }
.phero-sub { margin-top: 22px; max-width: 62ch; color: rgba(255, 255, 255, 0.7); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); }
.phero .hero-actions { margin-top: 32px; }
.detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.detail-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 40px -14px var(--glow);
}
.detail-icon .icon { width: 30px; height: 30px; }
.pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.pill--onDark { border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.07); color: #fff; }
.facts { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 12px; }
.fact {
  min-width: 170px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}
.fact dt { color: rgba(255, 255, 255, 0.5); font-size: 12.5px; }
.fact dd { margin-top: 4px; font-weight: 700; line-height: 1.6; }
.phero--project { padding-bottom: clamp(130px, 14vw, 200px); }

/* ---------- marquee ---------- */
.mq { position: relative; z-index: 3; margin-block: -42px -28px; padding-block: 26px; overflow: hidden; pointer-events: none; }
.mq-band {
  margin-inline: -6vw;
  padding-block: 20px;
  background: var(--accent);
  transform: rotate(-2deg);
  box-shadow: 0 24px 44px -22px var(--glow);
  pointer-events: auto;
}
.mq--dark .mq-band { background: var(--ink-2); box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.5); }
.mq-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.mq--slow .mq-track { animation-duration: 72s; }
.mq--fast .mq-track { animation-duration: 26s; }
.mq-band:hover .mq-track { animation-play-state: paused; }
.mq-group { display: flex; flex: none; align-items: center; }
.mq-group li {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-inline-end: 30px;
  color: #fff;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.95rem);
  font-weight: 850;
  white-space: nowrap;
}
.mq-sep { width: 26px; height: 26px; stroke: rgba(255, 255, 255, 0.8); animation: spin 9s linear infinite; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- text and pictures ---------- */
.about-in {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(44px, 6vw, 100px);
}
.about--image_end .about-media { order: 2; }
.about-media { position: relative; padding: 0 0 14% 14%; }
.about-img { overflow: hidden; border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow-3); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img--main { aspect-ratio: 4 / 4.8; }
.about-img--small { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 8px solid #fff; }
.sec--paper .about-img--small { border-color: var(--paper); }
.sec--dark .about-img--small { border-color: var(--ink); }
.about-frame {
  position: absolute;
  inset: 6% 4% 20% 18%;
  z-index: -1;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  transform: translate(-22px, 22px);
}
.badge-spin { position: absolute; z-index: 2; top: -34px; left: 10%; width: 136px; height: 136px; filter: drop-shadow(0 16px 30px rgba(21, 24, 29, 0.35)); }
.badge { width: 100%; height: 100%; }
.badge-bg { fill: var(--ink); }
.badge-text { transform-box: fill-box; transform-origin: center; animation: spin 24s linear infinite; }
.badge-text text { fill: #fff; font-family: var(--font); font-size: 13px; font-weight: 700; }
.badge-tile { fill: #0b0c0f; }
.badge-m { fill: #fff; }
.badge-u { fill: var(--accent); }
.about-copy .sec-head { margin-bottom: 26px; }
.points { margin-top: 30px; display: grid; gap: 12px; }
.point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color 0.3s, background 0.3s, transform 0.45s var(--ease);
}
.sec--paper .point { background: #fff; }
.point:hover { border-color: var(--accent-line); background: #fff; transform: translateX(-6px); }
.point-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--ink); color: var(--accent); }
.point-icon .icon { width: 23px; height: 23px; }
.point-body { display: flex; flex-direction: column; }
.point-body b { font-size: 1.03rem; font-weight: 800; }
.point-body span { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.about-actions { margin-top: 34px; }

/* ---------- statement ---------- */
.statement { overflow: hidden; }
.statement-in { position: relative; z-index: 1; max-width: 1120px; }
.statement-text { font-size: clamp(1.75rem, 1rem + 3vw, 3.35rem); font-weight: 850; line-height: 1.55; }
.statement-text .w { opacity: 0.15; transition: opacity 0.4s; }
.statement-text .w.on { opacity: 1; }
.statement-sub { margin-top: 28px; color: var(--accent); font-weight: 800; }
.statement-gear { position: absolute; width: 520px; left: -170px; top: 50%; translate: 0 -50%; opacity: 0.5; pointer-events: none; }
.sec--light .statement-gear .gr-pitch, .sec--paper .statement-gear .gr-pitch { stroke: rgba(21, 24, 29, 0.1); }

/* ---------- stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 34px 28px 4px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat-value { color: var(--accent); font-size: clamp(2.7rem, 1.6rem + 3.2vw, 4.4rem); font-weight: 900; line-height: 1; }
.stat-title { margin-top: 16px; font-size: 1.12rem; font-weight: 850; }
.stat-text { margin-top: 6px; color: var(--muted); font-size: 0.93rem; line-height: 1.75; }
.sec--dark .stats-grid, .sec--dark .stat { border-color: rgba(255, 255, 255, 0.1); }
.sec--dark .stat-text { color: rgba(255, 255, 255, 0.6); }
.sec--accent .stat-value { color: #fff; }
.sec--accent .stats-grid, .sec--accent .stat { border-color: rgba(255, 255, 255, 0.3); }
.sec--accent .stat-text { color: rgba(255, 255, 255, 0.85); }

/* ---------- tabs (filters) ---------- */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.tabs--wrap { flex-wrap: wrap; margin-bottom: 38px; border-radius: 26px; }
.tab {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; }
.tab-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-inline-start: 6px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; }
.sec--dark .tabs { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); }
.sec--dark .tab { color: rgba(255, 255, 255, 0.6); }
.sec--dark .tab.is-active { background: var(--accent); color: #fff; }
[data-filter-grid] > .is-hidden { display: none !important; }
[data-filter-grid] > .is-shown { animation: pop-in 0.6s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 330px;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.55s var(--ease), box-shadow 0.55s, border-color 0.4s;
}
.sec--light .svc-card { background: var(--paper); border-color: transparent; }
[data-glow]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(440px circle at var(--gx, 50%) var(--gy, 0%), var(--glow-soft), transparent 58%);
  opacity: 0;
  transition: opacity 0.45s;
}
[data-glow]:hover::before { opacity: 1; }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-3); border-color: var(--accent-line); background: #fff; }
.svc-num {
  position: absolute;
  top: 20px;
  left: 24px;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--line);
  font-size: 3.7rem;
  font-weight: 900;
  line-height: 1;
  transition: -webkit-text-stroke-color 0.4s;
}
.svc-card:hover .svc-num { -webkit-text-stroke-color: var(--accent-line); }
.svc-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: var(--ink);
  color: #fff;
  transition: background 0.4s, transform 0.7s var(--spring);
}
.svc-icon .icon { width: 29px; height: 29px; }
.svc-card:hover .svc-icon { background: var(--accent); transform: rotate(-10deg) scale(1.06); }
.svc-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-kind { padding: 3px 11px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: 11.5px; font-weight: 750; }
.svc-kind--turnkey { background: var(--accent-soft); color: var(--accent-ink); }
.sec--light .svc-kind { background: #fff; }
.svc-title { font-size: 1.28rem; font-weight: 850; line-height: 1.5; }
.svc-text { flex: 1; color: var(--muted); font-size: 0.96rem; line-height: 1.8; }
.svc-more { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14.5px; font-weight: 750; transition: color 0.3s; }
.svc-more .icon { width: 18px; transition: transform 0.4s var(--ease); }
.svc-card:hover .svc-more { color: var(--accent); }
.svc-card:hover .svc-more .icon { transform: translateX(-6px); }
.sec--dark .svc-card { border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.035); }
.sec--dark .svc-card:hover { background: rgba(255, 255, 255, 0.06); }
.sec--dark .svc-text { color: rgba(255, 255, 255, 0.62); }
.sec--dark .svc-more { color: #fff; }
.sec--dark .svc-num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.1); }
.sec--dark .svc-icon { background: rgba(255, 255, 255, 0.08); }

/* ---------- Turnkey / OEM ---------- */
.models { overflow: hidden; }
.models::before {
  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: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%);
  pointer-events: none;
}
.models .container { position: relative; }
.models-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1080px; margin-inline: auto; }
.model {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.55s var(--ease), border-color 0.4s;
}
.model:hover { transform: translateY(-6px); }
.model--lead { border-color: var(--glow); box-shadow: 0 40px 90px -50px var(--glow); }
.model--lead::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -160px;
  left: -140px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--glow), transparent 66%);
  opacity: 0.6;
}
.model-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.model-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}
.model-icon .icon { width: 30px; height: 30px; }
.model--lead .model-icon { border-color: transparent; background: var(--accent); color: #fff; }
.model-badge { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.85); font-size: 13px; font-weight: 700; }
.model-title { margin-top: 26px; font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3rem); font-weight: 900; line-height: 1.1; }
.model-list { flex: 1; margin: 24px 0 32px; display: grid; gap: 12px; align-content: start; }
.model-list li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255, 255, 255, 0.78); }
.model-list .icon { width: 20px; margin-top: 5px; color: var(--accent); stroke-width: 2.2; }
.model .btn { align-self: flex-start; }
.sec--paper .model, .sec--light .model { border-color: var(--line); background: #fff; }
.sec--paper .model-list li, .sec--light .model-list li { color: var(--muted); }
.sec--paper .model-badge, .sec--light .model-badge { background: var(--paper); color: var(--ink-soft); }
.sec--paper .model-icon, .sec--light .model-icon { border-color: var(--line); background: var(--paper); }
.sec--paper .model .btn--ghost, .sec--light .model .btn--ghost { border-color: var(--ink); color: var(--ink); }

/* ---------- process ---------- */
.steps-wrap { position: relative; }
.steps-line { position: absolute; top: 9px; inset-inline: 10px 0; height: 2px; border-radius: 2px; background: var(--line); }
.steps-fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(to left, var(--accent), var(--accent-2));
  transform-origin: right;
  transform: scaleX(var(--p, 0));
  transition: transform 0.2s linear;
}
.steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; padding-top: 50px; }
.step-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.sec--paper .step-dot { background: var(--paper); }
.step.is-on .step-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 7px var(--glow-soft); }
.step-num { position: absolute; top: 48px; left: 0; color: transparent; -webkit-text-stroke: 1.2px var(--line); font-size: 3.1rem; font-weight: 900; line-height: 1; transition: -webkit-text-stroke-color 0.4s; }
.step.is-on .step-num { -webkit-text-stroke-color: var(--accent-line); }
.step-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow-1);
  transition: transform 0.6s var(--spring);
}
.step:hover .step-icon { transform: translateY(-6px) rotate(-6deg); }
.step-icon .icon { width: 26px; height: 26px; }
.step-title { margin-top: 18px; font-size: 1.08rem; font-weight: 850; line-height: 1.5; }
.step-text { margin-top: 8px; color: var(--muted); font-size: 0.93rem; line-height: 1.75; }
.sec--dark .steps-line { background: rgba(255, 255, 255, 0.12); }
.sec--dark .step-dot { border-color: rgba(255, 255, 255, 0.2); background: var(--ink); }
.sec--dark .step-icon { border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); }
.sec--dark .step-num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.12); }
.sec--dark .step-text { color: rgba(255, 255, 255, 0.6); }

/* ---------- project cards ---------- */
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  border-radius: var(--radius);
  background: var(--ink-2);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-2);
}
.work-media { position: absolute; inset: 0; z-index: -2; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 14, 17, 0) 34%, rgba(12, 14, 17, 0.55) 62%, rgba(12, 14, 17, 0.92));
}
.work-info { margin-top: auto; padding: 26px; transform: translateY(12px); transition: transform 0.65s var(--ease); }
.work-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.work-cat { padding: 4px 12px; border-radius: 999px; background: var(--accent); font-size: 12px; font-weight: 750; }
.work-ind { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 12px; }
.work-title { font-size: 1.28rem; font-weight: 850; line-height: 1.5; }
.work-sum {
  display: -webkit-box;
  margin-top: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.75;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: max-height 0.6s var(--ease), opacity 0.5s;
}
.work-go {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transform: scale(0) rotate(-45deg);
  transition: transform 0.55s var(--spring);
}
.work-card:hover .work-media img { transform: scale(1.07); }
.work-card:hover .work-info { transform: none; }
.work-card:hover .work-sum { max-height: 4.2em; opacity: 1; }
.work-card:hover .work-go { transform: none; }
@media (hover: none) {
  .work-info { transform: none; }
  .work-sum { max-height: 4.2em; opacity: 1; }
}
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 22px; }
.works-grid .work-card { aspect-ratio: 4 / 4.7; }
.works-grid .work-card:nth-child(7n + 1) { grid-column: span 2; aspect-ratio: auto; }

/* the home page's sideways showcase, pinned while it scrolls */
.showcase { position: relative; background: var(--ink); color: #fff; }
.showcase.sec--light { background: #fff; color: var(--ink); }
.showcase.sec--paper { background: var(--paper); color: var(--ink); }
.showcase-sticky { padding-block: clamp(84px, 10vw, 130px); overflow: hidden; }
.showcase.is-pinned .showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--hdr-h) + 8px) 36px;
}
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.showcase-head .sec-head { max-width: 660px; margin-bottom: 0; }
.showcase .sec-sub { color: rgba(255, 255, 255, 0.64); }
.showcase.sec--light .sec-sub, .showcase.sec--paper .sec-sub { color: var(--muted); }
.showcase-side { display: flex; align-items: center; gap: 20px; }
.showcase-progress { width: 150px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.showcase-progress span { display: block; height: 100%; background: var(--accent); transform-origin: right; transform: scaleX(var(--p, 0)); }
.showcase-viewport { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.showcase-viewport::-webkit-scrollbar { display: none; }
.showcase.is-pinned .showcase-viewport { overflow: visible; scroll-snap-type: none; }
.showcase-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding-inline: max(16px, calc((100vw - var(--container)) / 2));
  transform: translate3d(var(--x, 0px), 0, 0);
  will-change: transform;
}
.work-card--big { flex: none; width: min(78vw, 420px); height: min(64vh, 540px); min-height: 380px; scroll-snap-align: center; }
.showcase.is-pinned .work-card--big { width: clamp(300px, 30vw, 430px); height: clamp(330px, calc(100vh - 380px), 540px); min-height: 0; }
.showcase.is-pinned .showcase-head { margin-bottom: 28px; }
.work-more {
  flex: none;
  width: min(70vw, 340px);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px dashed rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.4s, background 0.4s;
  scroll-snap-align: center;
}
.showcase.sec--light .work-more, .showcase.sec--paper .work-more { border-color: var(--line); }
.work-more:hover { border-color: var(--accent); background: var(--glow-soft); }
.work-more-icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; transition: transform 0.6s var(--spring); }
.work-more-icon .icon { width: 32px; height: 32px; }
.work-more:hover .work-more-icon { transform: rotate(-45deg) scale(1.08); }
.work-more-text { margin-top: 8px; font-size: 1.4rem; font-weight: 850; }
.work-more-sub { color: rgba(255, 255, 255, 0.55); font-size: 0.92rem; }

/* ---------- feature cards and chips ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.55s var(--ease), box-shadow 0.55s, border-color 0.4s;
}
.sec--light .feat { border-color: transparent; background: var(--paper); }
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); border-color: var(--accent-line); background: #fff; }
.feat-icon {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.4s, color 0.4s, transform 0.7s var(--spring);
}
.feat-icon .icon { width: 28px; height: 28px; }
.feat:hover .feat-icon { background: var(--accent); color: #fff; transform: rotate(-8deg); }
.feat-title { font-size: 1.2rem; font-weight: 850; line-height: 1.5; }
.feat-text { margin-top: 10px; color: var(--muted); font-size: 0.95rem; line-height: 1.85; }
.sec--dark .feat { border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.035); }
.sec--dark .feat:hover { background: rgba(255, 255, 255, 0.06); }
.sec--dark .feat-icon { background: rgba(255, 255, 255, 0.07); }
.sec--dark .feat-text { color: rgba(255, 255, 255, 0.62); }
.feat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1020px; margin-inline: auto; }
.feat-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 1.08rem;
  font-weight: 750;
  transition: background 0.35s, border-color 0.35s, color 0.35s, transform 0.45s var(--ease);
}
.feat-chip-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); transition: background 0.35s, color 0.35s; }
.feat-chip:hover { border-color: var(--accent); background: var(--accent); color: #fff; transform: translateY(-4px); }
.feat-chip:hover .feat-chip-icon { background: rgba(255, 255, 255, 0.2); color: #fff; }
.sec--dark .feat-chip { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); }
.sec--dark .feat-chip-icon { background: rgba(255, 255, 255, 0.08); }

/* ---------- capabilities ---------- */
.caps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cap { padding: 26px; border: 1px solid transparent; border-radius: var(--radius); background: var(--paper); transition: border-color 0.35s, background 0.35s, transform 0.5s var(--ease); }
.sec--paper .cap { background: #fff; }
.cap:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.cap-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cap-icon { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--ink); color: var(--accent); }
.cap-icon .icon { width: 24px; height: 24px; }
.cap-title { flex: 1; font-size: 1.12rem; font-weight: 850; }
.cap-count { min-width: 32px; height: 32px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 850; }
.cap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cap-chips li {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
  transition: border-color 0.25s, color 0.25s;
}
.sec--paper .cap-chips li { background: var(--paper); }
.cap-chips li:hover { border-color: var(--accent); color: var(--accent-ink); }
.sec--dark .cap { background: rgba(255, 255, 255, 0.04); }
.sec--dark .cap-chips li { border-color: rgba(255, 255, 255, 0.12); background: transparent; color: rgba(255, 255, 255, 0.78); }

/* ---------- galleries and the viewer ---------- */
.masonry { columns: 3 280px; column-gap: 18px; }
.masonry-item { margin: 0 0 18px; break-inside: avoid; }
.lb-link { display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper-2); }
.lb-link img { width: 100%; transition: transform 0.9s var(--ease); }
.lb-link:hover img { transform: scale(1.05); }
.masonry-item figcaption { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.sec--dark .masonry-item figcaption { color: rgba(255, 255, 255, 0.6); }

.lb {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(9, 10, 12, 0.95);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0s linear 0.35s;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: rgba(255, 255, 255, 0.65); font-size: 14px; }
.lb-stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: 0 76px; touch-action: pan-y; }
.lb-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  opacity: 0;
  transform: scale(0.96);
  transition: transform 0.55s var(--ease), opacity 0.4s;
  cursor: zoom-in;
}
.lb-img.is-in { opacity: 1; transform: none; }
.lb-img.is-zoom { transform: scale(1.9); cursor: zoom-out; }
.lb-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.lb-btn:hover { border-color: var(--accent); background: var(--accent); }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { right: 14px; }
.lb-next { left: 14px; }
.lb-cap { padding: 14px 20px 24px; color: rgba(255, 255, 255, 0.8); font-size: 14.5px; text-align: center; }

/* ---------- questions ---------- */
.faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(32px, 6vw, 96px); }
.faq-side { position: sticky; top: calc(var(--hdr-h) + 32px); }
.faq-side .sec-head { margin-bottom: 28px; }
.faq-list { display: grid; gap: 12px; }
.qa { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color 0.3s, box-shadow 0.3s; }
.sec--light .qa { border-color: transparent; background: var(--paper); }
.qa[open] { border-color: var(--accent-line); background: #fff; box-shadow: var(--shadow-2); }
.qa-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}
.qa-q::-webkit-details-marker { display: none; }
.qa-sign { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); transition: background 0.3s, transform 0.5s var(--ease); }
.sec--light .qa-sign { background: #fff; }
.qa-sign::before, .qa-sign::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 12px;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.45s var(--ease), background 0.3s;
}
.qa-sign::after { transform: rotate(90deg); }
.qa[open] .qa-sign { background: var(--accent); transform: rotate(180deg); }
.qa[open] .qa-sign::before, .qa[open] .qa-sign::after { background: #fff; }
.qa[open] .qa-sign::after { transform: rotate(0deg); }
.qa-a { overflow: hidden; }
.qa-a-in { padding: 0 24px 22px; color: var(--muted); line-height: 1.95; }
.qa-a-in a { color: var(--accent-ink); border-bottom: 1px solid var(--accent-line); }
.sec--dark .qa { border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); }
.sec--dark .qa-a-in { color: rgba(255, 255, 255, 0.66); }

/* ---------- call to action ---------- */
.cta { padding-block: clamp(64px, 8vw, 110px); }
.cta-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: clamp(40px, 6vw, 84px);
  border-radius: 36px;
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta--dark .cta-box { background: var(--ink); }
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 20px);
  -webkit-mask-image: linear-gradient(to left, transparent 10%, #000);
  mask-image: linear-gradient(to left, transparent 10%, #000);
}
.cta-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-gear { position: absolute; }
.cta-gear--a { width: 400px; left: -110px; top: -140px; }
.cta-gear--b { width: 200px; left: 230px; bottom: -90px; }
.cta-gear .gr-body { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.38); stroke-width: 1.2; }
.cta-gear .gr-pitch { stroke: rgba(255, 255, 255, 0.18); }
.cta-gear--b .gr-solo { animation-name: spin-back; animation-duration: 35s; }
.cta-title { font-size: clamp(2rem, 1.15rem + 3.1vw, 3.7rem); font-weight: 900; line-height: 1.22; }
.cta .hl { color: var(--ink); }
.cta--dark .hl { color: var(--accent); }
.cta-sub { margin-top: 16px; max-width: 54ch; color: rgba(255, 255, 255, 0.9); font-size: 1.08rem; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta .btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }

/* ---------- Mecha3D ---------- */
.promo-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  background: linear-gradient(140deg, #1d2128, #111317);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.promo-media { position: relative; min-height: 460px; overflow: hidden; background: #0e1013; }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(17, 19, 23, 0.9), rgba(17, 19, 23, 0) 45%);
}
.promo-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 22px 6px var(--glow);
  animation: print-scan 4.6s ease-in-out infinite;
}
@keyframes print-scan { 0% { top: 96%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 4%; opacity: 0; } }
.promo-layers { display: none; }
.promo-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 66px); }
.promo-wordmark { display: block; margin-bottom: 28px; }
.promo-wordmark .m3d-wordmark { width: auto; height: 26px; }
.promo .sec-head { margin-bottom: 24px; }
.promo .sec-title { color: #fff; }
.promo .sec-sub { color: rgba(255, 255, 255, 0.7); }
.promo-points { margin-bottom: 32px; display: grid; gap: 12px; }
.promo-points li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.86); font-weight: 650; }
.promo-points .icon { width: 42px; height: 42px; padding: 10px; border-radius: 13px; background: rgba(255, 255, 255, 0.06); color: var(--accent); }
.promo .btn { align-self: flex-start; }

/* ---------- contact ---------- */
.contact-in { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: start; gap: clamp(32px, 5vw, 80px); }
.contact-side { position: sticky; top: calc(var(--hdr-h) + 28px); }
.ccards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ccards > li:has(> .ccard--wide) { grid-column: 1 / -1; }
.ccard {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--paper);
  transition: border-color 0.3s, background 0.3s, transform 0.45s var(--ease);
}
a.ccard:hover { border-color: var(--accent); background: #fff; transform: translateY(-3px); }
.ccard-icon { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--ink); color: var(--accent); }
.ccard--tg .ccard-icon { background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; }
.ccard--tg .ccard-icon .icon { fill: #fff; stroke: #fff; stroke-width: 0.8; }
.ccard-text { display: flex; flex-direction: column; min-width: 0; }
.ccard-text small { color: var(--muted); font-size: 12.5px; }
.ccard-text b { font-size: 1.02rem; font-weight: 800; line-height: 1.6; }
.ccard-text b[dir="ltr"] { text-align: right; }
.cform {
  position: relative;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-3);
}
.cform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
.field { position: relative; display: block; min-width: 0; }
.field input, .field textarea {
  width: 100%;
  height: 60px;
  padding: 24px 16px 6px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  outline: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 15.5px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field input[dir="ltr"] { text-align: right; }
.field textarea { height: auto; min-height: 160px; padding-top: 30px; line-height: 1.85; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--glow-soft); }
.field-label {
  position: absolute;
  top: 18px;
  right: 17px;
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
  transition: top 0.25s var(--ease), font-size 0.25s var(--ease), color 0.25s;
}
.field input:focus ~ .field-label,
.field input:not(:placeholder-shown) ~ .field-label,
.field textarea:focus ~ .field-label,
.field textarea:not(:placeholder-shown) ~ .field-label { top: 7px; font-size: 12px; }
.field input:focus ~ .field-label, .field textarea:focus ~ .field-label { color: var(--accent-ink); }
.field-label small { color: var(--muted-2); font-size: 0.85em; }
.req { margin-inline-start: 3px; color: var(--accent); font-weight: 900; }
.field-error { display: block; color: var(--error); font-size: 12.5px; line-height: 1.6; }
.field-error:not(:empty) { margin-top: 6px; }
.field-error--all:not(:empty) { margin-top: 14px; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.topics { margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.topics legend { margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 750; }
.topics legend small { color: var(--muted-2); font-weight: 500; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.topic span:hover { border-color: var(--ink-soft); }
.topic input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.topic input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop { position: relative; }
.drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 2px dashed var(--line);
  border-radius: 18px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.drop-zone:hover, .drop.is-over .drop-zone { border-color: var(--accent); background: var(--accent-soft); }
.drop-input:focus-visible + .drop-zone { outline: 2px solid var(--accent); outline-offset: 3px; }
.drop-icon { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--accent); box-shadow: var(--shadow-1); }
.drop-icon .icon { width: 24px; height: 24px; }
.drop-text b { display: block; font-size: 15px; font-weight: 750; }
.drop-text small { color: var(--muted); font-size: 12.5px; }
.drop-file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; }
.drop-file-icon { color: var(--accent); }
.drop-file-name { flex: 1; min-width: 0; overflow: hidden; direction: ltr; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.drop-clear { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; }
.drop-clear:hover { background: var(--accent); }
.cform-foot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cform-note { display: flex; align-items: center; gap: 10px; max-width: 42ch; color: var(--muted); font-size: 13px; line-height: 1.7; }
.cform-note .icon { color: var(--accent); }
.cform-done { padding: 40px 10px; text-align: center; }
.cform-done-icon { width: 88px; height: 88px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 20px 40px -14px var(--glow); animation: pop-big 0.7s var(--spring) both; }
.cform-done-icon .icon { width: 42px; height: 42px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s var(--ease) 0.35s forwards; }
.cform-done h3 { font-size: 1.6rem; font-weight: 900; }
.cform-done p { margin: 10px auto 26px; max-width: 42ch; color: var(--muted); }
.cform.is-done .cform-grid, .cform.is-done .cform-foot, .cform.is-done .field-error--all, .cform.is-done .cform-flash { display: none; }
.cform-flash { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; background: #ecfdf3; color: #067647; font-weight: 650; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@keyframes pop-big { from { opacity: 0; transform: scale(0.4); } }

/* ---------- service and project pages ---------- */
.cover-wrap { position: relative; z-index: 2; margin-top: clamp(-150px, -11vw, -90px); }
.project-cover { overflow: hidden; border-radius: 32px; background: var(--paper-2); box-shadow: var(--shadow-3); }
.project-cover a { display: block; }
.project-cover img { width: 100%; max-height: 80vh; object-fit: cover; }
.detail--project { padding-top: clamp(56px, 7vw, 90px); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: clamp(32px, 5vw, 72px); }
.detail-side { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 16px; }
.detail-cover { margin-bottom: 38px; overflow: hidden; border-radius: 28px; background: var(--paper-2); }
.detail-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.side-card { padding: 24px; border-radius: 22px; background: var(--paper); }
.side-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 1.05rem; font-weight: 850; }
.side-h .icon { color: var(--accent); }
.side-card--accent { background: var(--ink); color: #fff; }
.side-card--accent p { margin-bottom: 18px; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; line-height: 1.6; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.8; }
.checks .icon { width: 20px; margin-top: 4px; color: var(--accent); stroke-width: 2.3; }
.side-links { display: grid; gap: 2px; }
.side-links a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 13px; font-weight: 650; transition: background 0.25s; }
.side-links a:hover { background: #fff; }
.side-links .icon { color: var(--accent); }
.side-links .side-go { width: 16px; margin-inline-start: auto; color: var(--muted-2); }
.next-work { background: var(--ink); color: #fff; overflow: hidden; }
.next-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 30px;
  padding-block: clamp(56px, 8vw, 100px);
}
.next-label { grid-column: 1 / -1; color: var(--accent); font-size: 13.5px; font-weight: 750; }
.next-title { font-size: clamp(1.8rem, 1rem + 3vw, 3.5rem); font-weight: 900; line-height: 1.3; transition: color 0.3s; }
.next-arrow { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); transition: transform 0.6s var(--ease); }
.next-arrow .icon { width: 34px; height: 34px; }
.next-card:hover .next-arrow { transform: translateX(-12px); }
.next-thumb {
  position: absolute;
  top: 50%;
  left: 22%;
  width: 250px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) rotate(-8deg) scale(0.6);
  transition: opacity 0.5s, transform 0.7s var(--ease);
}
.next-thumb img { width: 100%; height: 100%; object-fit: cover; }
.next-card:hover .next-thumb { opacity: 1; transform: translateY(-50%) rotate(-4deg) scale(1); }
.nf { text-align: center; }
.nf .phero-title, .nf .phero-sub { margin-inline: auto; }
.nf .hero-actions { justify-content: center; }
.nf-code { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 18px; color: var(--accent); font-size: clamp(6rem, 16vw, 11rem); font-weight: 900; line-height: 1; }
.nf-gear { width: 0.95em; height: 0.95em; }
.nf-gear .gr-body { fill: rgba(242, 107, 29, 0.1); stroke: var(--accent); stroke-width: 3; }
.nf-gear .gr-solo { animation-duration: 12s; }
.page-500 .phero { min-height: 100vh; display: grid; place-items: center; }

/* ---------- testimonials and logos ---------- */
.quotes-track { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.quotes-track::-webkit-scrollbar { display: none; }
.quote { flex: none; width: min(86vw, 420px); padding: 30px; border-radius: var(--radius); background: #fff; scroll-snap-align: start; }
.quote-mark { width: 42px; height: 42px; color: var(--accent); }
.quote blockquote { margin: 16px 0 22px; font-size: 1.05rem; line-height: 1.95; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote-face { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; }
.quote figcaption small { color: var(--muted); }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 44px; }
.logo-img { height: 54px; width: auto; filter: grayscale(1); opacity: 0.6; transition: filter 0.3s, opacity 0.3s; }
.logo-row a:hover .logo-img, .logo-row li:hover .logo-img { filter: none; opacity: 1; }

/* ---------- footer ---------- */
.ftr { position: relative; padding-top: clamp(72px, 9vw, 120px); background: #0e1013; color: rgba(255, 255, 255, 0.7); overflow: hidden; isolation: isolate; }
.ftr-glow { position: absolute; z-index: -1; top: -360px; right: -220px; width: 760px; height: 760px; background: radial-gradient(circle, rgba(242, 107, 29, 0.17), transparent 62%); }
.ftr-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.brand--lg .brand-tile { width: 54px; height: 54px; border-radius: 15px; }
.brand--lg .wordmark { height: 20px; }
.brand--lg .brand-word small { font-size: 13px; }
.ftr-slogan { margin-top: 22px; color: var(--accent); font-size: 12.5px; font-weight: 650; letter-spacing: 0.3em; text-transform: uppercase; }
.ftr-about { margin-top: 12px; max-width: 48ch; font-size: 0.95rem; line-height: 1.95; }
.ftr-cta {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px 24px;
  padding: 26px 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
  transition: background 0.45s, border-color 0.45s;
}
.ftr-cta:hover { border-color: var(--accent); background: var(--accent); }
.ftr-cta-label { color: rgba(255, 255, 255, 0.6); font-size: 13px; }
.ftr-cta:hover .ftr-cta-label { color: rgba(255, 255, 255, 0.85); }
.ftr-cta-text { grid-row: 2; color: #fff; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.05rem); font-weight: 900; line-height: 1.3; }
.ftr-cta-arrow { grid-row: 1 / 3; grid-column: 2; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; transition: transform 0.6s var(--ease), background 0.4s; }
.ftr-cta-arrow .icon { width: 26px; height: 26px; }
.ftr-cta:hover .ftr-cta-arrow { background: var(--ink); transform: rotate(-45deg); }
.ftr-grid { display: grid; grid-template-columns: 0.9fr 1.2fr 1.4fr 1.25fr; gap: 40px; padding-block: 56px; }
.ftr-h { margin-bottom: 20px; color: #fff; font-size: 15px; font-weight: 850; }
.ftr-links { display: grid; gap: 10px; }
.ftr-links a { font-size: 14.5px; transition: color 0.25s, padding 0.35s var(--ease); }
.ftr-links a:hover { padding-inline-start: 6px; color: #fff; }
.ftr-line { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 14.5px; line-height: 1.85; transition: color 0.25s; }
.ftr-line .icon { width: 18px; margin-top: 4px; color: var(--accent); }
a.ftr-line:hover { color: #fff; }
.tg-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 158, 217, 0.28);
  border-radius: 18px;
  background: rgba(34, 158, 217, 0.1);
  transition: background 0.3s, transform 0.4s var(--ease);
}
.tg-card:hover { background: rgba(34, 158, 217, 0.2); transform: translateY(-2px); }
.tg-badge { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; box-shadow: 0 10px 22px -10px rgba(34, 158, 217, 0.8); }
.tg-badge .icon { width: 22px; height: 22px; fill: #fff; stroke: #fff; stroke-width: 0.8; translate: -1px 0; }
.tg-text b { display: block; color: #fff; font-size: 14px; }
.tg-text small { color: rgba(255, 255, 255, 0.55); font-size: 12.5px; }
.tg-arrow { width: 18px; margin-inline-start: auto; opacity: 0.6; }
.ftr-social { display: flex; gap: 10px; margin-top: 16px; }
.ftr-social:empty { display: none; }
.ftr-social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.ftr-social a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.ftr-m3d {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(242, 107, 29, 0.3);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(242, 107, 29, 0.14), rgba(255, 255, 255, 0.02));
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.ftr-m3d:hover { border-color: var(--accent); transform: translateY(-4px); }
.ftr-m3d-logo .m3d-wordmark { width: auto; height: 19px; }
.ftr-m3d-text { font-size: 13.5px; line-height: 1.85; }
.ftr-m3d-go { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; font-weight: 750; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.45); font-size: 13px; }
.ftr-giant { margin-bottom: -3.2vw; padding-inline: 16px; pointer-events: none; }
.ftr-giant .wordmark { width: 100%; height: auto; }
.ftr-giant .wm-ink, .ftr-giant .wm-hot { fill: rgba(255, 255, 255, 0.025); stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.ftr-giant .wm-hot { stroke: rgba(242, 107, 29, 0.25); }

/* ---------- page change ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* ==========================================================================
   Every screen
   ========================================================================== */
@media (max-width: 1240px) {
  .hdr-cta { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr-actions { margin-inline-start: auto; }
  .svc-grid, .feat-grid, .caps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .steps-line { display: none; }
  .step { padding-top: 46px; }
  .step-dot { display: none; }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-grid .work-card:nth-child(7n + 1) { grid-column: span 2; aspect-ratio: 16 / 10; }
}
@media (max-width: 960px) {
  .hero { min-height: 0; padding-bottom: 80px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 540px; }
  .about-in, .faq-in, .contact-in { grid-template-columns: minmax(0, 1fr); }
  .about--image_end .about-media { order: 0; }
  .faq-side, .contact-side { position: static; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .promo-card { grid-template-columns: minmax(0, 1fr); }
  .promo-media { min-height: 300px; }
  .promo-media::before { background: linear-gradient(0deg, rgba(17, 19, 23, 0.9), rgba(17, 19, 23, 0) 50%); }
  .cta-box { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .models-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  :root { --hdr-h: 68px; }
  .hdr.is-scrolled { --hdr-h: 62px; }
  .brand-word small { display: none; }
  .wordmark { height: 12px; }
  .brand-tile { width: 38px; height: 38px; }
  .m3d-pill { height: 44px; padding-inline: 6px 11px; gap: 8px; }
  .m3d-pill-tile { width: 30px; height: 30px; }
  .m3d-pill-text small, .m3d-pill-ext { display: none; }
  .m3d-pill-text b { font-size: 12.5px; }
  .burger { width: 44px; height: 44px; }
  .burger span { right: 11px; }
  .burger span:first-child { top: 17px; }
  .burger span:last-child { top: 25px; }
  .burger.is-open span:first-child, .burger.is-open span:last-child { top: 21px; }
  .svc-grid, .feat-grid, .caps-grid, .works-grid, .cform-grid, .ccards { grid-template-columns: minmax(0, 1fr); }
  .works-grid .work-card:nth-child(7n + 1) { grid-column: auto; aspect-ratio: 4 / 4.7; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-stat + .hero-stat { border: 0; padding-inline-start: 0; }
  .hero-stats { gap: 18px 28px; }
  .hero-stat { padding: 0; }
  .hero-chip { font-size: 11.5px; padding: 7px 11px; }
  .hero-chip--2 { right: 0; }
  .hero-chip--4 { display: none; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
  .ftr-cta { width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
  .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .tabs--wrap { flex-wrap: nowrap; border-radius: 999px; }
  .facts { display: grid; grid-template-columns: minmax(0, 1fr); }
  .lb-stage { padding: 0 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; translate: none; }
  .next-thumb { display: none; }
  .badge-spin { width: 104px; height: 104px; top: -22px; }
  .about-media { padding: 0 0 16% 12%; }
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .stat { border-inline-start: 0 !important; padding-inline-start: 0 !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .cform-foot .btn { width: 100%; }
  .hero-slogan { font-size: 11.5px; letter-spacing: 0.16em; }
}
@media (max-width: 480px) {
  .hdr-in { gap: 10px; }
  .hdr-actions { gap: 8px; }
  .brand { gap: 8px; }
  .wordmark { height: 10px; }
  .m3d-pill { padding-inline: 5px 10px; gap: 6px; }
  .m3d-pill-tile { width: 28px; height: 28px; }
  .m3d-pill-text b { font-size: 12px; }
}
@media (max-width: 370px) {
  .brand-word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .split-i { transform: none; }
  .statement-text .w { opacity: 1; }
}

/* Older iPhones (before iOS 16.2) know no color-mix(); what lies over the page keeps a solid colour. */
@supports not (color: color-mix(in srgb, red, blue)) {
  .hdr.is-scrolled { background: #121418; }
  .mnav { background: var(--ink); }
}

/* ==========================================================================
   The second pass (asked by the owner: more graphic, more of its own).
   - the hero's exploded view: a plate, one cut-out per part, drawing-sheet ink
   - the site's own animated line drawings (cms/art.py, classes a-*)
   - the steps as a story with pictures, the chart of the cheapest way to make
     a part by quantity, material swatches, key figures of a project
   - search, the floating contact button, a wipe for pictures as they appear
   ========================================================================== */

/* ---------- hero: the exploded view ---------- */
.hero-title { font-size: clamp(2.5rem, 1.1rem + 3.5vw, 4.2rem); }
.hero-in { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
.hero-visual--scene {
  aspect-ratio: auto;
  max-width: none;
  min-height: 500px;
  display: grid;
  align-content: center;
}
.hero-visual--scene .hero-gears {
  inset: auto;
  top: -9%;
  left: -20%;
  width: 78%;
  height: auto;
  opacity: 0.5;
}
/* The sheet reaches a little past its column, towards the edge of the screen, as far as there is room
   beside the page's own width: never off the screen (at 1280 it once lost its corners there). */
.xv {
  --reach: clamp(0px, (100vw - var(--container)) / 2 - 24px, 64px);
  position: relative;
  z-index: 1;
  width: calc(100% + var(--reach));
  margin-inline-end: calc(var(--reach) * -1);
  container: xv / inline-size;
}
/* The sheet stands straight and follows the pointer by whole pixels only: turned or tilted, a browser
   draws the picture and the labels on it a little soft (asked by the owner: as sharp as can be). */
.xv-sheet {
  position: relative;
  aspect-ratio: 1726 / 1000;
  overflow: hidden;
  border-radius: 28px;
  background: #e2e5ed;
  box-shadow: 0 60px 110px -42px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  transition: transform 0.7s var(--ease);
  animation: rise-in 1.4s var(--ease-out) 0.2s both;
}
.xv-plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a fine grain over the backdrop, under the parts: its smooth tones show no bands with it */
.xv-grain {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
/* The parts lie where the picture has them (tools/hero/export.py prints these lines): as they stand
   they are the picture. --dx and --dy are how far each comes when all are drawn together, in widths of
   the sheet. */
.xv-part {
  position: absolute;
  max-width: none;
  height: auto;
  will-change: transform;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  transition: opacity 0.45s;
}
.xv-part--base { left: 6.952%; top: 15.6%; width: 21.669%; --dx: -0.2976; --dy: -0.0556; }
.xv-part--pcb { left: 25.492%; top: 26.4%; width: 15.295%; --dx: -0.1559; --dy: -0.0291; }
.xv-part--filter { left: 37.659%; top: 36.8%; width: 5.91%; --dx: -0.089; --dy: -0.0166; }
.xv-part--housing { left: 42.294%; top: 24.8%; width: 21.669%; --dx: 0.0417; --dy: 0.0078; }
.xv-part--pad { left: 57.937%; top: 30.2%; width: 18.656%; --dx: 0.1348; --dy: 0.0252; }
.xv-part--cover { left: 71.727%; top: 30.4%; width: 21.669%; --dx: 0.2957; --dy: 0.0552; }
.xv-part--pin { left: 66.976%; top: 56.0%; width: 9.849%; --dx: 0.1348; --dy: 0.0252; }
.xv-part--pin { transition: none; }
/* Until their pictures are here the parts are not shown (no part without its neighbours), and until
   the script moves them they stand drawn together, never apart for a moment first. Not for someone
   who asked for less motion, nor without scripts: they see the picture as it is. */
@media (prefers-reduced-motion: no-preference) {
  html.js .xv:not(.is-ready) .xv-part { opacity: 0; }
  html.js .xv:not(.is-live) .xv-part { transform: translate3d(calc(var(--dx) * -100cqw), calc(var(--dy) * -100cqw), 0); }
  html.js .xv:not(.is-live) .xv-part--pin { opacity: 0; }
}
.xv-ink { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.xv-axis {
  fill: none;
  stroke: rgba(21, 24, 29, 0.3);
  stroke-width: 2;
  stroke-dasharray: 30 9 5 9;
}
.xv-lead { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-dasharray: 520; }
.xv-dot { fill: var(--accent); stroke: #fff; stroke-width: 3.5; transform-box: fill-box; transform-origin: center; }
/* A label: a pill at the end of its line, its number at the end the line comes in at. Its size goes
   with the sheet's (cqw), so labels that do not touch at one width do not at another. */
.xv-note {
  --rest: translateY(-50%);
  --away: translateY(-50%) translateX(-8px);
  position: absolute;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.55em;
  padding: 0.36em 0.92em 0.36em 0.42em;
  border-radius: 999px;
  background: rgba(21, 24, 29, 0.9);
  color: #fff;
  font-size: 12px;
  font-size: clamp(10.5px, 1.9cqw, 13.5px);
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
  max-width: 46cqw;      /* a label typed long in the panel is cut short, never laid over another */
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.55);
  transform: var(--rest);
}
.xv-note > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.xv-note b { flex: none; width: 1.7em; height: 1.7em; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-size: 0.9em; line-height: 1; }
/* where each label sits: at the end of its line (the lines are in site_tags.XV_INK) */
.xv-note--base { left: 19.35%; top: 6.2%; }
.xv-note--pcb { left: 35.81%; top: 17.8%; }
.xv-note--filter { left: 42.99%; top: 90%; }
.xv-note--pad { left: 68.6%; top: 6.2%; max-width: 24cqw; }
/* With scripts, the drawing's ink waits until the parts stand apart: the axis, then each label's dot,
   line and words. Without scripts it is simply there. */
html.js .xv-axis { opacity: 0; transition: opacity 0.25s; }
html.js .xv-lead { stroke-dashoffset: 520; transition: stroke-dashoffset 0.2s; }
html.js .xv-dot { transform: scale(0); transition: transform 0.2s; }
html.js .xv-note { opacity: 0; transform: var(--away); transition: opacity 0.2s, transform 0.3s var(--ease); }
html.js .xv.is-open .xv-axis { opacity: 1; transition: opacity 0.9s 0.15s; }
html.js .xv.is-open .xv-dot { transform: scale(1); transition: transform 0.5s var(--spring) 0.1s; }
html.js .xv.is-open .xv-lead { stroke-dashoffset: 0; transition: stroke-dashoffset 0.8s var(--ease) 0.2s; }
html.js .xv.is-open .xv-note { opacity: 1; transform: var(--rest); transition: opacity 0.45s 0.6s, transform 0.6s var(--ease) 0.6s; }
.xv-tick { position: absolute; z-index: 3; width: 18px; height: 18px; border: 2px solid var(--accent); pointer-events: none; }
.xv-tick--a { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.xv-tick--b { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.xv-tick--c { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.xv-tick--d { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.xv-hud {
  position: absolute;
  bottom: 16px;
  left: 44px;
  color: rgba(21, 24, 29, 0.45);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.3em;
}
/* The labels as a list under the sheet, for a sheet too narrow for them: there a label on the sheet is
   its number alone, on its part. So on a phone (the rule is with the other phone rules, at the end),
   and on a sheet narrower than 470px beside the text, as in a small laptop window. */
.xv-legend {
  position: relative;   /* over the sheet's shadow, which is drawn after what is not positioned */
  z-index: 1;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  margin: 14px 2px 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.65;
}
.xv-legend li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.xv-legend b { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; line-height: 1; }
@container xv (max-width: 469.98px) {
  .xv-note {
    --rest: translate(-50%, -50%);
    --away: translate(-50%, -50%) scale(0.6);
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .xv-note > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .xv-note b { width: 21px; height: 21px; font-size: 11.5px; box-shadow: 0 0 0 2px #fff, 0 6px 12px -4px rgba(0, 0, 0, 0.55); }
  .xv-note--base { left: 17.38%; top: 17.2%; }
  .xv-note--pcb { left: 33.84%; top: 28.2%; }
  .xv-note--filter { left: 41.02%; top: 48.6%; }
  .xv-note--pad { left: 66.63%; top: 32.4%; }
  .xv-lead, .xv-dot { display: none; }
  .xv-legend { display: grid; }
}
.xv-bar {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 22px;
  padding-inline: 4px 8px;
  animation: fade-in 0.9s ease 1.3s both;
}
.xv-case {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  transition: border-color 0.3s, background 0.3s;
}
.xv-case small { color: rgba(255, 255, 255, 0.55); }
.xv-case b { font-weight: 750; }
.xv-case .icon { width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: var(--accent); color: #fff; transition: transform 0.4s var(--ease); }
.xv-case:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.08); }
.xv-case:hover .icon { transform: translateX(-4px); }

/* ---------- the site's own animated drawings ---------- */
.art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art .a-f { opacity: 0.5; }
.art .a-x { stroke: var(--accent); }
.art .a-d { opacity: 0.26; stroke-width: 1.2; stroke-dasharray: 3 4; }
.art .a-k { fill: var(--art-bg, #fff); stroke: var(--accent); stroke-width: 1.8; }
.art .a-heat { stroke: none; fill: var(--accent); opacity: 0.2; transform-box: fill-box; transform-origin: center; }
.art .a-stripes { stroke-linecap: butt; stroke-width: 50; stroke-dasharray: 1.6 4.4; opacity: 0.26; }
.art .a-stripes--v { stroke-width: 22; }
.art .a-stripes--t { stroke-width: 10; stroke: var(--accent); opacity: 0.45; }
.art .a-beam { stroke: var(--accent); stroke-width: 2.4; }
.art .a-spark { stroke: none; fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.art .a-part { fill: var(--glow-soft); transform-box: fill-box; transform-origin: center; }
.art .a-spin { transform-box: fill-box; transform-origin: center; }
.art .a-lid { transform-box: fill-box; transform-origin: 0% 100%; }
/* Still until its card is pointed at (or, on a touch screen, in view): site.js adds is-live. */
.art * { animation-play-state: paused; }
.is-live .art *, .art.is-live *, [data-live]:hover .art * { animation-play-state: running; }
.a-draw { stroke-dasharray: 100; animation: a-draw 3.4s var(--ease) -2.3s infinite; }
.a-spin { animation: spin 6s linear infinite; }
.a-slide { animation: a-slide 3.4s ease-in-out -0.8s infinite; }
.a-slide--s { animation-name: a-slide-s; }
.a-bob { animation: a-bob 2.4s ease-in-out infinite; }
.a-stripes { animation: a-stripes 0.7s linear infinite; }
.a-feed { animation: a-feed 2.8s ease-in-out infinite; }
.a-heat--1 { animation: a-heat 2.6s ease-in-out infinite; }
.a-heat--2 { animation: a-heat 2.6s ease-in-out -1.3s infinite; }
.a-layers > * { animation: a-layer 4s linear infinite; }
.a-layers > :nth-child(1) { animation-delay: -2.4s; }
.a-layers > :nth-child(2) { animation-delay: -2s; }
.a-layers > :nth-child(3) { animation-delay: -1.6s; }
.a-layers > :nth-child(4) { animation-delay: -1.2s; }
.a-open-l { animation: a-open-l 3.6s var(--ease) -2.2s infinite; }
.a-open-r { animation: a-open-r 3.6s var(--ease) -2.2s infinite; }
.a-part { animation: a-part 3.6s var(--ease) -2.2s infinite; }
.a-screw { animation: a-screw 3.2s var(--ease) -2.2s infinite; }
.a-ok { stroke-dasharray: 100; animation: a-ok 3.2s var(--ease) -2.4s infinite; }
.a-lid { animation: a-lid 3.4s var(--ease) infinite; }
.a-rise { animation: a-rise 2.4s linear -0.8s infinite; }
.a-rise--b { animation-delay: -2s; }
.a-lift { animation: a-lift 3s ease-in-out infinite; }
.a-beam { animation: a-flicker 0.18s steps(2) infinite; }
.a-spark { animation: a-spark 0.5s ease-in-out infinite; }
@keyframes a-draw { 0% { stroke-dashoffset: 100; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes a-slide { 0%, 100% { transform: translateX(-12px); } 50% { transform: translateX(12px); } }
@keyframes a-slide-s { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes a-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes a-stripes { to { stroke-dashoffset: -6; } }
@keyframes a-feed { 0%, 100% { transform: translate(8px, 6px); } 50% { transform: translate(-8px, 0); } }
@keyframes a-heat { 0%, 100% { transform: scale(0.7); opacity: 0.1; } 50% { transform: scale(1.15); opacity: 0.34; } }
@keyframes a-layer { 0%, 8% { opacity: 0; } 14%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes a-open-l { 0%, 25%, 100% { transform: translateX(0); } 45%, 80% { transform: translateX(-9px); } }
@keyframes a-open-r { 0%, 25%, 100% { transform: translateX(0); } 45%, 80% { transform: translateX(9px); } }
@keyframes a-part { 0%, 30%, 100% { opacity: 0.35; transform: scale(0.9); } 50%, 80% { opacity: 1; transform: scale(1.06); } }
@keyframes a-screw { 0%, 100% { transform: translateY(-8px); } 45%, 75% { transform: translateY(8px); } }
@keyframes a-ok { 0%, 45% { stroke-dashoffset: 100; } 65%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes a-lid { 0%, 100% { transform: rotate(0); } 45%, 70% { transform: rotate(-16deg); } }
@keyframes a-rise { 0% { transform: translateY(8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
@keyframes a-lift { 0%, 100% { transform: translateY(3px); } 50% { transform: translateY(-5px); } }
@keyframes a-flicker { 50% { opacity: 0.5; } }
@keyframes a-spark { 0%, 100% { transform: scale(0.6); } 50% { transform: scale(1.5); } }

/* a service card with its drawing */
.svc-card--art { padding-top: 24px; }
.svc-art { display: block; width: 136px; margin: 0 0 2px; color: var(--ink); --art-bg: #fff; transition: transform 0.7s var(--spring); }
.sec--light .svc-art { --art-bg: var(--paper); }
.sec--dark .svc-art { color: #fff; --art-bg: var(--ink); }
.svc-card:hover .svc-art { transform: scale(1.07) rotate(-2deg); }
.phero--art .phero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
.phero-art { width: clamp(190px, 25vw, 330px); color: #fff; --art-bg: var(--ink); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35)); }
.model-art { width: 132px; margin-inline-start: auto; color: #fff; --art-bg: transparent; }
.sec--paper .model-art, .sec--light .model-art { color: var(--ink); }
.model-top .model-badge { direction: ltr; letter-spacing: 0.08em; font-size: 12px; text-transform: uppercase; }
.model-list .model-lead-line { color: #fff; font-weight: 750; font-size: 1.05rem; }
.model-list .model-lead-line .icon { display: none; }
.sec--paper .model-list .model-lead-line, .sec--light .model-list .model-lead-line { color: var(--ink); }

/* ---------- the steps as a story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; gap: clamp(32px, 6vw, 96px); }
.story-media { position: sticky; top: calc(var(--hdr-h) + 30px); }
.story-frame {
  position: relative;
  aspect-ratio: 4 / 3.25;
  overflow: hidden;
  border-radius: 30px;
  background: var(--paper-2);
  box-shadow: var(--shadow-3);
}
.story-pic { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); }
.story-pic.was-on { clip-path: inset(0); z-index: 1; }
.story-pic.is-on { clip-path: inset(0); z-index: 2; animation: story-wipe 0.95s var(--ease) both; }
.story-pic img { width: 100%; height: 100%; object-fit: cover; }
.story-pic.is-on img { animation: story-zoom 1.5s var(--ease) both; }
.story-blank { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.story-blank .icon { width: 90px; height: 90px; }
@keyframes story-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes story-zoom { from { transform: scale(1.14); } to { transform: none; } }
.story-count {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 22px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(21, 24, 29, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
  font-weight: 700;
}
.story-count b { color: #fff; font-size: 1.25rem; font-weight: 900; }
.story-bar { position: absolute; z-index: 4; inset-inline: 0; bottom: 0; height: 5px; background: rgba(21, 24, 29, 0.25); }
.story-bar span { display: block; height: 100%; background: var(--accent); transform-origin: right; transform: scaleX(var(--p, 0.16)); transition: transform 0.6s var(--ease); }
.story-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  padding-block: clamp(34px, 6.5vh, 62px);
  border-top: 1px solid var(--line);
  opacity: 0.36;
  transition: opacity 0.5s;
}
.story-step:first-child { border-top: 0; padding-top: 6px; }
.story-step.is-on { opacity: 1; }
.story-num {
  color: transparent;
  -webkit-text-stroke: 1.3px var(--muted-2);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  transition: -webkit-text-stroke-color 0.4s, color 0.4s;
}
.story-step.is-on .story-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.story-title { display: flex; align-items: center; gap: 12px; font-size: 1.42rem; font-weight: 850; line-height: 1.5; }
.story-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.4s, color 0.4s, transform 0.6s var(--spring);
}
.story-step.is-on .story-icon { background: var(--accent); color: #fff; transform: rotate(-6deg); }
.story-text { margin-top: 12px; max-width: 48ch; color: var(--muted); font-size: 1.02rem; line-height: 1.95; }
.story-inline { display: none; }
.sec--dark .story-step { border-color: rgba(255, 255, 255, 0.1); }
.sec--dark .story-text { color: rgba(255, 255, 255, 0.66); }

/* ---------- the cheapest way to make a part, by quantity ---------- */
.econ { overflow: hidden; }
.econ::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 24, 29, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 24, 29, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, #000 20%, transparent 78%);
  pointer-events: none;
}
.sec--dark.econ::before { background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); }
.econ-in { position: relative; display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.econ .sec-head { margin-bottom: 30px; }
.econ-pick-label { margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 750; }
.econ-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.econ-n {
  height: 42px;
  min-width: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--spring);
}
.econ-n:hover { border-color: var(--ink); transform: translateY(-2px); }
.econ-n.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.econ-result {
  position: relative;
  margin: 24px 0 28px;
  padding: 24px 26px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.econ-result::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  left: -90px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--glow), transparent 66%);
  opacity: 0.7;
}
.econ-result-top { color: rgba(255, 255, 255, 0.62); font-size: 14px; }
.econ-result-top b { color: #fff; font-size: 1.2em; font-weight: 850; }
.econ-result-name { margin-top: 6px; color: var(--accent-2); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 900; line-height: 1.4; }
.econ-result-note { margin-top: 8px; min-height: 5.6em; color: rgba(255, 255, 255, 0.72); font-size: 0.96rem; line-height: 1.85; }
.econ-result.is-swap .econ-result-name, .econ-result.is-swap .econ-result-note { animation: econ-swap 0.5s var(--ease) both; }
@keyframes econ-swap { from { opacity: 0; transform: translateY(10px); } }
.econ-chart {
  position: relative;
  padding: 16px 14px 8px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-2);
  touch-action: pan-y;
  outline-offset: 5px;
}
.econ-chart.is-drawn { cursor: ew-resize; }
.econ-chart.is-drawn .econ-list { display: none; }
.econ-chart svg { display: block; width: 100%; height: auto; max-width: none; overflow: visible; direction: ltr; user-select: none; }
.econ-list { display: grid; gap: 12px; padding: 10px; }
.econ-method { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.econ-method > span:last-child { grid-column: 2; color: var(--muted); font-size: 0.93rem; }
.econ-method-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.ec-grid { stroke: var(--line); stroke-width: 1; }
.ec-tick { fill: var(--muted); font-family: var(--font); font-size: 12.5px; font-weight: 650; }
.ec-curve { fill: none; stroke: var(--muted-2); stroke-width: 2; stroke-linecap: round; opacity: 0.75; transition: opacity 0.3s, stroke 0.3s; }
.ec-curve--1 { stroke-dasharray: 2 7; }
.ec-curve--3 { stroke-dasharray: 11 7; }
.ec-curve.is-best { stroke: var(--ink); opacity: 1; }
.ec-area { fill: var(--accent); opacity: 0.07; }
.ec-env { fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 10px var(--glow)); }
.ec-name { fill: var(--muted); font-family: var(--font); font-size: 13px; font-weight: 750; transition: fill 0.3s; }
.ec-name.is-best { fill: var(--accent-ink); }
.ec-cross { fill: #fff; stroke: var(--accent); stroke-width: 2.5; }
.ec-mark { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 5; }
.ec-knob { fill: var(--accent); stroke: #fff; stroke-width: 4; filter: drop-shadow(0 4px 10px var(--glow)); }
.ec-handle { fill: var(--ink); }
.ec-handle-text { fill: #fff; font-family: var(--font); font-size: 13px; font-weight: 800; }
.econ-axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-inline: 8px; color: var(--muted); font-size: 12.5px; }
.econ-foot { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding-inline: 8px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.econ-foot .icon { margin-top: 3px; color: var(--accent); }
.sec--dark .econ-n { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); color: #fff; }
.sec--dark .econ-n.is-on { border-color: var(--accent); background: var(--accent); }
.sec--dark .econ-result { background: rgba(255, 255, 255, 0.06); }
.sec--dark .econ-pick-label, .sec--dark .econ-axis, .sec--dark .econ-foot { color: rgba(255, 255, 255, 0.6); }

/* ---------- capabilities: a link to the projects that show each, a swatch for a material ---------- */
.cap-chips li { padding: 0; border: 0; background: none; }
.sec--paper .cap-chips li { background: none; }
.cap-link, .cap-plain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.35s var(--ease);
}
.sec--paper .cap-link, .sec--paper .cap-plain { background: var(--paper); }
.cap-link { padding-inline-end: 6px; }
.cap-link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); transform: translateY(-2px); }
.cap-n {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  transition: background 0.25s;
}
.cap-link:hover .cap-n { background: var(--accent); }
.sec--dark .cap-link, .sec--dark .cap-plain { border-color: rgba(255, 255, 255, 0.12); background: transparent; color: rgba(255, 255, 255, 0.78); }
.sec--dark .cap-n { background: rgba(255, 255, 255, 0.16); }
.sw { flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 1px 2px rgba(0, 0, 0, 0.16); }
.sw--alu { background: linear-gradient(135deg, #f6f8fa, #b7bec7 45%, #eef1f4 60%, #a0a8b2); }
.sw--steel { background: linear-gradient(135deg, #e4e7eb, #868e98 50%, #d4d8dd 62%, #6c747e); }
.sw--tool { background: linear-gradient(135deg, #8c929b, #3b4149 55%, #7b828b); }
.sw--brass { background: linear-gradient(135deg, #f7df8e, #b6872a 50%, #ecd07a 62%, #98701c); }
.sw--copper { background: linear-gradient(135deg, #f4b28d, #b3552a 50%, #e79b71 62%, #8d3e1d); }
.sw--poly { background: radial-gradient(circle at 35% 30%, #5c626c, #1c1f25 72%); }
.sw--white { background: radial-gradient(circle at 35% 30%, #fff, #dcdfe3 76%); }
.sw--clear { background: linear-gradient(135deg, #fff, #b9dcee 55%, #f4fbff); }
.sw--rubber { background: radial-gradient(circle at 35% 30%, #3c3c40, #0c0c0e 76%); }
.sw--foam { background: radial-gradient(circle at 32% 34%, #74777c 0 13%, transparent 14%), radial-gradient(circle at 68% 64%, #74777c 0 13%, transparent 14%), #2a2c30; }
.sw--resin { background: radial-gradient(circle at 35% 30%, #ffdca8, #d6871c 76%); }
.tag-list li { display: inline-flex; align-items: center; gap: 8px; }
.tag-list li a { transition: color 0.25s; }
.tag-list li:has(a) { transition: border-color 0.25s, background 0.25s; }
.tag-list li:has(a):hover { border-color: var(--accent); background: var(--accent-soft); }
.tag-list li a:hover { color: var(--accent-ink); }

/* ---------- projects: the figures on a card, the list opened for one process ---------- */
.work-facts { position: absolute; top: 18px; right: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.work-facts li {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(12, 14, 17, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.6;
}
.work-facts b { font-weight: 800; }
.works-with {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 14px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  background: var(--accent-soft);
}
.works-with-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.works-with p { flex: 1; font-weight: 650; }
.works-with b { color: var(--accent-ink); font-weight: 850; }
.works-with-clear { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 700; transition: background 0.25s, color 0.25s; }
.works-with-clear:hover { background: var(--ink); color: #fff; }
.works-with-clear .icon { width: 16px; height: 16px; }
.works-none { padding: 40px 0; color: var(--muted); text-align: center; }
[data-filter-grid] > .is-out { display: none !important; }

/* a project's key figures and what the company did */
.figures { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.figure {
  min-width: 190px;
  padding: 18px 22px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}
.figure dt { color: var(--accent-2); font-size: clamp(1.45rem, 1rem + 1.4vw, 2.05rem); font-weight: 900; line-height: 1.3; }
.figure dd { margin-top: 6px; color: rgba(255, 255, 255, 0.62); font-size: 13.5px; }
.phero-scope { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; color: rgba(255, 255, 255, 0.72); font-size: 0.98rem; }
.phero-scope .icon { margin-top: 5px; color: var(--accent); stroke-width: 2.3; }
.phero-scope b { color: #fff; }
.project-cover { position: relative; }
.prose--case h2 { display: flex; align-items: center; gap: 12px; }
.prose--case h2::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

/* ---------- a picture wiped in as it appears ---------- */
/* The frame itself stays whole (a browser does not see a fully clipped box come into view); what it
   holds is wiped in. */
html.js [data-reveal="wipe"] { opacity: 1; transform: none; }
html.js [data-reveal="wipe"] > a,
html.js [data-reveal="wipe"] > img {
  display: block;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease), transform 1.7s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal="wipe"] img { transform: scale(1.14); transition: clip-path 1.2s var(--ease), transform 1.7s var(--ease); }
html.js [data-reveal="wipe"].is-in > a,
html.js [data-reveal="wipe"].is-in > img { clip-path: inset(0); }
html.js [data-reveal="wipe"].is-in img { transform: none; }

/* ---------- search ---------- */
.hdr-search {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.hdr-search:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.09); color: var(--accent-2); }
.hdr-search .icon { width: 20px; height: 20px; }
.mnav-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 54px;
  margin-bottom: 14px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  cursor: pointer;
}
.srch {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(64px, 13vh, 130px) 16px 24px;
  background: rgba(10, 12, 15, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fade-in 0.25s ease both;
}
.srch-box { width: min(100%, 700px); overflow: hidden; border-radius: 26px; background: #fff; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.75); animation: pop-in 0.45s var(--ease) both; }
.srch-field { display: flex; align-items: center; gap: 12px; padding: 4px 20px; border-bottom: 1px solid var(--line); }
.srch-field .icon { color: var(--accent); }
.srch-field input { flex: 1; min-width: 0; height: 62px; border: 0; outline: 0; background: none; font-size: 1.08rem; }
.srch-field kbd { padding: 3px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font: 600 11.5px/1.6 var(--font); direction: ltr; }
.srch-list { max-height: min(56vh, 470px); overflow: auto; padding: 8px; }
.srch-list:empty { display: none; }
.srch-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; transition: background 0.2s; }
.srch-row:hover, .srch-row.is-at { background: var(--paper); }
.srch-thumb { width: 58px; height: 46px; border-radius: 11px; background: var(--paper-2); object-fit: cover; }
.srch-thumb--none { display: grid; place-items: center; color: var(--muted-2); }
.srch-t { display: block; font-weight: 800; line-height: 1.6; }
.srch-s { display: block; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.srch-kind { padding: 3px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.srch mark { background: none; color: var(--accent); }
.srch-empty { padding: 28px 20px; color: var(--muted); text-align: center; }
.srch-empty a { color: var(--accent-ink); font-weight: 700; }
.srch-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px 18px; color: var(--muted); font-size: 13px; }
.srch-word { height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; cursor: pointer; transition: border-color 0.25s, color 0.25s; }
.srch-word:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- the floating contact button ---------- */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: grid;
  justify-items: start;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.fab.is-on { opacity: 1; pointer-events: auto; transform: none; }
body.nav-open .fab { display: none; }
.fab-btn {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 36px -10px var(--glow);
  cursor: pointer;
  transition: transform 0.45s var(--spring), background 0.3s;
}
.fab-btn:hover { transform: scale(1.08); }
.fab-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: fab-ring 2.8s ease-out infinite;
}
@keyframes fab-ring { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
.fab-open, .fab-close { grid-area: 1 / 1; display: grid; transition: opacity 0.3s, transform 0.45s var(--ease); }
.fab-btn .icon { width: 26px; height: 26px; }
.fab-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.fab.is-open .fab-open { opacity: 0; transform: rotate(90deg) scale(0.5); }
.fab.is-open .fab-close { opacity: 1; transform: none; }
.fab.is-open .fab-btn { background: var(--ink); }
.fab.is-open .fab-btn::before { animation: none; opacity: 0; }
.fab-menu { display: grid; justify-items: start; gap: 8px; }
.fab-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-2);
  animation: pop-in 0.4s var(--ease) both;
  transition: transform 0.3s var(--ease);
}
.fab-item:nth-child(2) { animation-delay: 0.05s; }
.fab-item:nth-child(3) { animation-delay: 0.1s; }
.fab-item:nth-child(4) { animation-delay: 0.15s; }
.fab-item:hover { transform: translateX(-4px); }
.fab-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; }
.fab-ico--tg { background: #229ed9; }
.fab-ico .icon { width: 19px; height: 19px; }

/* ---------- every screen, for what the second pass added ---------- */
@media (max-width: 1080px) {
  .phero-art { width: 200px; }
  .econ-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-visual--scene { min-height: 0; max-width: 680px; margin-top: 8px; }
  .hero-visual--scene .hero-gears { top: -22%; left: -8%; width: 62%; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-media { display: none; }
  .story-step { opacity: 1; padding-block: 30px; }
  .story-step .story-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
  .story-inline { display: block; margin-top: 18px; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 10; background: var(--paper-2); }
  .story-inline img { width: 100%; height: 100%; object-fit: cover; }
  .phero--art .phero-in { grid-template-columns: minmax(0, 1fr); }
  .phero-art { display: none; }
}
@media (max-width: 680px) {
  .xv-sheet { border-radius: 20px; }
  /* on a phone a label is its number alone, on its part; its words are in the list under the sheet
     (the same rules as for a narrow sheet, above: change both) */
  .xv-note {
    --rest: translate(-50%, -50%);
    --away: translate(-50%, -50%) scale(0.6);
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .xv-note > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .xv-note b { width: 21px; height: 21px; font-size: 11.5px; box-shadow: 0 0 0 2px #fff, 0 6px 12px -4px rgba(0, 0, 0, 0.55); }
  .xv-note--base { left: 17.38%; top: 17.2%; }
  .xv-note--pcb { left: 33.84%; top: 28.2%; }
  .xv-note--filter { left: 41.02%; top: 48.6%; }
  .xv-note--pad { left: 66.63%; top: 32.4%; }
  .xv-lead, .xv-dot { display: none; }
  .xv-legend { display: grid; }
  .xv-hud { display: none; }
  .xv-tick { width: 13px; height: 13px; }
  .xv-bar { margin-top: 16px; }
  .xv-case small { display: none; }
  .xv-case { height: 40px; font-size: 12.5px; }
  .hdr-search { display: none; }
  .story-step { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .story-num { font-size: 2.2rem; }
  .story-title { font-size: 1.22rem; }
  .svc-art { width: 118px; }
  .model-art { width: 104px; }
  .figure { min-width: 0; flex: 1 1 140px; padding: 14px 16px; }
  .works-with { flex-wrap: wrap; }
  .econ-result { padding: 20px; }
  .econ-result-note { min-height: 0; }
  .econ-chart { padding: 10px 6px 4px; border-radius: 20px; }
  .ec-tick, .ec-name { font-size: 15px; }
  .fab { right: 14px; bottom: 14px; }
  .fab-btn { width: 54px; height: 54px; }
  .srch { padding-top: 56px; }
  .srch-row { grid-template-columns: 50px minmax(0, 1fr); }
  .srch-kind { display: none; }
  .srch-field kbd { display: none; }
}
@media (min-width: 681px) {
  .mnav-search { display: none; }
}
@media (hover: none) {
  .cap-link:hover, .econ-n:hover, .fab-item:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .xv-lead { stroke-dashoffset: 0; }
  html.js .xv-note, html.js .xv.is-open .xv-note { opacity: 1; transform: var(--rest); }
  html.js .xv-dot { transform: scale(1); }
  html.js .xv-axis { opacity: 1; }
  .story-pic.is-on { animation: none; }
  html.js [data-reveal="wipe"] > a, html.js [data-reveal="wipe"] > img { clip-path: none; }
  html.js [data-reveal="wipe"] img { transform: none; }
  .art * { animation: none !important; }
  .fab-btn::before { display: none; }
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .srch { background: rgba(10, 12, 15, 0.9); }
  .xv-note, .story-count, .work-facts li { background: #15181d; }
}
