/* ==========================================================================
   LiderMAG — components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Brand mark — the real logo, flattened from the vector master (build/logo.py).
   Letterforms follow the surface's ink via currentColor; the hook stays red.
   -------------------------------------------------------------------------- */
.logo { height: 44px; width: auto; color: var(--fg); }
.nav__brand { display: block; }
.nav__brand .logo { height: 42px; transition: transform var(--d-fast) var(--ease-out); }
.nav__brand:hover .logo { transform: translateY(-1px); }
.logo--footer { height: 58px; margin-bottom: var(--s-2); }
@media (min-width: 900px) { .nav__brand .logo { height: 48px; } }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-base) var(--ease-out),
              background-color var(--d-base) var(--ease-out);
}
.nav.is-stuck { border-bottom-color: var(--line); }
@supports not (backdrop-filter: blur(1px)) { .nav { background: var(--paper); } }

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: var(--nav-h);
}
.nav__brand { flex: none; display: flex; align-items: center; }
.nav__menu { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(4px, 1.1vw, 18px); }
.nav__link {
  position: relative;
  display: block;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 0.845rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; bottom: 2px;
  height: 1.5px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-base) var(--ease-out);
}
.nav__link.is-active { color: var(--ink); font-weight: 600; }
.nav__link.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav__link { transition: color var(--d-fast) var(--ease-out),
               background-color var(--d-fast) var(--ease-out),
               transform var(--d-fast) var(--ease-out); }
  /* the underline draws in from the left and, on leave, exits to the right */
  .nav__link::after { transform-origin: right; }
  .nav__link:hover {
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 5%, transparent);
    transform: translateY(-1.5px);
  }
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
  .nav__link:hover .nav__caret { transform: translateY(1px) rotate(180deg); }
  .nav__caret { transition: transform var(--d-base) var(--ease-out); }
  @media (prefers-reduced-motion: reduce) {
    .nav__link:hover { transform: none; }
  }
}

.nav__side { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  transition: border-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.nav__lang .icon { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) {
  .nav__lang:hover { border-color: var(--ink-4); color: var(--ink); }
}

/* Language switch (2026-09-02): theme-toggle-sized pill showing the CURRENT
   language; hover/click springs open a menu with full names + flags. */
.lsw { position: relative; }
.lsw__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 27px; padding: 0 8px 0 7px;
  border: 1px solid var(--line); border-radius: var(--r-full);
  background: none; cursor: pointer;
  font-family: inherit; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--ink-2);
  transition: border-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.lsw__btn:hover, .lsw.is-open .lsw__btn { border-color: var(--ink-4); color: var(--ink); }
.lsw__caret { width: 11px; height: 11px; color: var(--ink-4); transition: transform var(--d-fast) var(--ease-out); }
.lsw.is-open .lsw__caret, .lsw:focus-within .lsw__caret { transform: rotate(180deg); }
.lsw__flag {
  display: inline-grid; width: 18px; height: 13px; flex: none;
  border-radius: 3.5px; overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent),
              inset 0 0 4px rgba(0, 0, 0, 0.12);
}
.lsw__flag svg { width: 100%; height: 100%; display: block; }
/* glass panel with a springy pop; items cascade in */
.lsw__menu {
  position: absolute; top: calc(100% + 10px); right: -4px; z-index: 120;
  min-width: 196px; padding: 6px;
  background: color-mix(in srgb, var(--bg-raised) 85%, transparent);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid color-mix(in srgb, var(--ink) 11%, transparent);
  border-radius: 15px;
  box-shadow:
    0 22px 44px -14px color-mix(in srgb, var(--ink) 30%, transparent),
    0 3px 10px color-mix(in srgb, var(--ink) 8%, transparent);
  opacity: 0; visibility: hidden; translate: 0 -10px; scale: 0.9;
  transform-origin: top right;
  transition: opacity 160ms var(--ease-out),
              translate 300ms cubic-bezier(0.32, 1.5, 0.5, 1),
              scale 300ms cubic-bezier(0.32, 1.5, 0.5, 1),
              visibility 0s linear 160ms;
}
.lsw__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
/* opening is driven by JS (.is-open, with a hover grace period) + keyboard
   focus — a raw CSS :hover opener fought the click toggle and flickered */
.lsw:focus-within .lsw__menu, .lsw.is-open .lsw__menu {
  opacity: 1; visibility: visible; translate: 0 0; scale: 1; transition-delay: 0s;
}
.lsw__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 0.8rem; font-weight: 650; letter-spacing: -0.005em; color: var(--ink-2);
  opacity: 0; translate: 0 -5px;
  transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out),
              opacity 220ms var(--ease-out), translate 260ms cubic-bezier(0.32, 1.4, 0.55, 1);
}
.lsw:focus-within .lsw__item, .lsw.is-open .lsw__item {
  opacity: 1; translate: 0 0;
}
.lsw:focus-within .lsw__item:nth-child(2),
.lsw.is-open .lsw__item:nth-child(2) { transition-delay: 0ms, 0ms, 55ms, 55ms; }
.lsw__menu .lsw__flag { width: 21px; height: 15px; border-radius: 4px; }
a.lsw__item:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
a.lsw__item:hover .lsw__flag { scale: 1.12; transition: scale 200ms cubic-bezier(0.32, 1.6, 0.6, 1); }
.lsw__item.is-current { color: var(--ink); }
.lsw__check {
  width: 14px; height: 14px; margin-left: auto; flex: none;
  color: var(--red);
}
/* in the mobile sheet the control sits at the bottom — open upward */
.mobile-menu .lsw__menu {
  top: auto; bottom: calc(100% + 8px); right: auto; left: 0;
  transform-origin: bottom left; translate: 0 6px;
}
.mobile-menu .lsw__menu::before { top: auto; bottom: -10px; }
.mobile-menu .lsw:focus-within .lsw__menu,
.mobile-menu .lsw.is-open .lsw__menu { translate: 0 0; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.nav__bars { display: block; width: 20px; height: 12px; position: relative; }
.nav__bars span {
  position: absolute; left: 0;
  width: 100%; height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--d-base) var(--ease-out), opacity var(--d-fast) var(--ease-out);
}
.nav__bars span:first-child { top: 1px; }
.nav__bars span:last-child { bottom: 1px; }
[aria-expanded="true"] .nav__bars span:first-child { transform: translateY(4.2px) rotate(45deg); }
[aria-expanded="true"] .nav__bars span:last-child { transform: translateY(-4.2px) rotate(-45deg); }

.nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.nav__progress span {
  display: block; height: 100%; width: 100%;
  background: var(--red);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

@media (max-width: 1040px) {
  .nav__menu { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__inner { justify-content: space-between; }
  .nav__side { margin-left: auto; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 99;
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__inner { padding: var(--s-8) var(--gutter) var(--s-16); }
.mobile-menu__list { display: grid; gap: 2px; }
.mobile-menu__list .nav__link {
  padding: var(--s-4) var(--s-3);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.mobile-menu__list .nav__link::after { display: none; }
.mobile-menu__list .nav__link.is-active { color: var(--red-ink); }
.mobile-menu__lang {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--s-8);
  min-height: 44px; padding: 0 var(--s-5);
  border: 1px solid var(--line); border-radius: var(--r-full);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Current-project band (EU publicity — must be visible on load)
   -------------------------------------------------------------------------- */
.cpb {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  padding-block: clamp(20px, 3vw, 34px);
}
.cpb__inner {
  display: grid;
  grid-template-columns: minmax(160px, 232px) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 48px);
  align-items: start;
}
.cpb__logos img {
  width: 100%;
  max-width: 232px;
  height: auto;
  border-radius: var(--r-xs);
}
.cpb__eyebrow { margin-bottom: 8px; }
.cpb__title {
  font-size: clamp(1.12rem, 0.95rem + 0.85vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.22;
  max-width: 40ch;
}
.cpb__meta { margin-top: 6px; font-size: 0.8rem; color: var(--fg-3); }
.cpb__summary { margin-top: var(--s-4); color: var(--fg-2); max-width: 70ch; font-size: 0.945rem; }
.cpb__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) clamp(20px, 3vw, 44px);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}
.cpb__stat dt { font-size: var(--fs-xs); color: var(--fg-3); }
.cpb__stat dd { margin: 2px 0 0; font-size: 0.98rem; font-weight: 600; color: var(--fg); }
.cpb__statement { margin-top: var(--s-4); font-size: 0.815rem; line-height: 1.55; color: var(--fg-3); max-width: 84ch; }
.cpb__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

@media (max-width: 720px) {
  .cpb__inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .cpb__logos img { max-width: 250px; }
  .cpb__statement { font-size: 0.78rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82svh, 900px);
  padding-block: clamp(64px, 10vw, 132px);
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 34%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 34%, #000 25%, transparent 78%);
}
.hero__inner { position: relative; z-index: 2; text-align: center; }
.hero .eyebrow { justify-content: center; }
.hero__title { margin-top: var(--s-5); }
.hero__lead { margin: var(--s-6) auto 0; max-width: 60ch; }
.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s-3); margin-top: var(--s-10);
}
.hero__scroll {
  position: absolute; left: 50%; bottom: clamp(18px, 3vw, 34px);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4);
}
.hero__scroll .icon { width: 16px; height: 16px; animation: nudge 2.4s var(--ease-in-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* floating parts */
.hero__parts { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__part {
  position: absolute;
  width: var(--w, 12%);
  filter: drop-shadow(0 22px 30px rgba(16, 16, 22, 0.22));
  will-change: transform;
  animation: floaty var(--dur, 13s) var(--ease-in-out) infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.96;
}
.hero__part-img { width: 100%; height: auto; }
@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
  50%      { transform: translate3d(0, var(--fly, -18px), 0) rotate(calc(var(--rot, 0deg) + var(--spin, 4deg))); }
}
.hero__part--1 { left: 3%;  top: 16%; --w: 11%;  --rot: -8deg;  --dur: 15s; --fly: -22px; }
.hero__part--2 { left: 12%; top: 58%; --w: 8.5%; --rot: 12deg;  --dur: 12s; --delay: -3s; --fly: 16px; }
.hero__part--3 { left: 1%;  top: 74%; --w: 9%;   --rot: -3deg;  --dur: 17s; --delay: -6s; }
.hero__part--4 { right: 4%; top: 13%; --w: 12%;  --rot: 9deg;   --dur: 14s; --delay: -2s; --fly: -20px; }
.hero__part--5 { right: 12%; top: 55%; --w: 10%; --rot: -6deg;  --dur: 16s; --delay: -8s; --fly: 18px; }
.hero__part--6 { right: 1%; top: 76%; --w: 8%;   --rot: 14deg;  --dur: 13s; --delay: -5s; }
.hero__part--7 { left: 24%; top: 6%;  --w: 6.5%; --rot: -14deg; --dur: 18s; --delay: -9s; }
.hero__part--8 { right: 25%; top: 84%; --w: 6%;  --rot: 7deg;   --dur: 15s; --delay: -4s; }

@media (max-width: 900px) {
  .hero__part--2, .hero__part--5, .hero__part--7, .hero__part--8 { display: none; }
  .hero__part--1 { left: -4%; top: 9%; --w: 20%; }
  .hero__part--3 { left: -6%; top: 78%; --w: 18%; }
  .hero__part--4 { right: -5%; top: 8%; --w: 21%; }
  .hero__part--6 { right: -4%; top: 80%; --w: 17%; }
  .hero__parts { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) { .hero__part { animation: none; } }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(84px, 12vw, 168px) clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.page-hero--short { padding-block: clamp(72px, 9vw, 124px) clamp(48px, 6vw, 84px); }
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 14, 0.82) 0%, rgba(10, 10, 14, 0.72) 45%, rgba(10, 10, 14, 0.9) 100%);
}
.page-hero__inner { position: relative; max-width: 940px; }
.page-hero__title { margin-top: var(--s-5); }
.page-hero__lead { margin-top: var(--s-6); }
.page-hero--plain { padding-block: clamp(92px, 13vw, 180px) clamp(56px, 7vw, 96px); }
.page-hero--plain::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(250, 38, 0, 0.12), transparent 60%),
    linear-gradient(180deg, #17171C, #0E0E11);
}
.page-hero__strip { margin-top: clamp(36px, 5vw, 64px); }

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6);
  padding-block: var(--s-6);
  border-block: 1px solid var(--rule);
}
.stat__value {
  display: flex; align-items: baseline; gap: 1px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
}
.stat__value--big { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); }
.stat__suffix { font-size: 0.62em; font-weight: 700; color: var(--accent-text); }
.stat__label { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--fg-3); }
@media (max-width: 780px) {
  .stats-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8) var(--s-5); }
}

/* --------------------------------------------------------------------------
   Capabilities
   -------------------------------------------------------------------------- */
.caps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-14);
}
@media (max-width: 1040px) { .caps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .caps__grid { grid-template-columns: minmax(0, 1fr); } }
.cap { display: flex; flex-direction: column; gap: var(--s-4); }
.cap__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--red-wash);
  color: var(--red-ink);
}
.cap__icon .icon { width: 26px; height: 26px; }
.cap__text { color: var(--fg-3); font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   Machine icon motion
   -------------------------------------------------------------------------- */
.icon--machine { width: 26px; height: 26px; }
.icon--machine .mi-tool,
.icon--machine .la-chuck,
.icon--machine .pr-ram,
.icon--machine .we-arc,
.icon--machine .mo-l,
.icon--machine .mo-r,
.icon--machine .as-a,
.icon--machine .as-b { transform-box: fill-box; transform-origin: center; }

.card:hover .icon--machine .mi-tool,
.proc:hover .icon--machine .mi-tool { animation: tool-plunge 1.1s var(--ease-in-out) infinite; }
.card:hover .icon--machine .la-chuck,
.proc:hover .icon--machine .la-chuck { animation: spin 1.5s linear infinite; }
.card:hover .icon--machine .pr-ram { animation: ram 1.1s var(--ease-in-out) infinite; }
.card:hover .icon--machine .we-arc,
.proc:hover .icon--machine .we-arc { animation: arc 0.75s steps(3) infinite; }
.card:hover .icon--machine .mo-l { animation: jaw-l 1.5s var(--ease-in-out) infinite; }
.card:hover .icon--machine .mo-r { animation: jaw-r 1.5s var(--ease-in-out) infinite; }
.card:hover .icon--machine .as-a { animation: jaw-r 1.6s var(--ease-in-out) infinite; }
.card:hover .icon--machine .as-b { animation: jaw-l 1.6s var(--ease-in-out) infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tool-plunge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2.2px); } }
@keyframes ram { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(2.6px); } }
@keyframes arc { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes jaw-l { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-1.6px); } }
@keyframes jaw-r { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1.6px); } }

/* --------------------------------------------------------------------------
   Product explorer
   -------------------------------------------------------------------------- */
.pex__tabs {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-top: var(--s-10);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--rule);
}
.pex__tab {
  min-height: 40px; padding: 0 var(--s-5);
  border-radius: var(--r-full);
  border: 1px solid var(--rule);
  font-size: 0.85rem; font-weight: 600;
  color: var(--fg-2);
  transition: background-color var(--d-fast) var(--ease-out),
              color var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-out),
              transform var(--d-press) var(--ease-out);
}
.pex__tab:active { transform: scale(0.97); }
.pex__tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .pex__tab:not([aria-selected="true"]):hover { border-color: var(--fg-4); color: var(--fg); }
}
.pex__panel { padding-top: var(--s-10); }
.pex__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: end;
}
.pex__part {
  margin: 0;
  aspect-ratio: 1;
  display: grid; place-items: center;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--rule);
  animation: part-in 640ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.pex__img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
  transition: transform var(--d-slow) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pex__part:hover .pex__img { transform: translateY(-6px) scale(1.04); }
}
@keyframes part-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
.pex__meta {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-10);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
}
.pex__sub { font-size: var(--fs-xs); color: var(--accent-text); letter-spacing: 0.06em; text-transform: uppercase; }
.pex__text { color: var(--fg-2); max-width: 62ch; }
.pex__more { margin-top: var(--s-12); }
@media (max-width: 1000px) { .pex__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .pex__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .pex__meta { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
}

/* --------------------------------------------------------------------------
   Exploded assembly
   -------------------------------------------------------------------------- */
.explode__wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.explode__stage {
  position: relative;
  height: clamp(340px, 46vw, 560px);
  perspective: 1200px;
}
.explode__layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(150px, 24vw, 260px);
  transform: translate(-50%, -50%) translateY(var(--y, 0)) rotateX(var(--rx, 0deg));
  transition: transform 900ms var(--ease-out);
  will-change: transform;
}
.explode__img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(16, 16, 22, 0.3)); }
.explode__layer--1 { --y: 0px; z-index: 3; }
.explode__layer--2 { --y: 0px; z-index: 2; width: clamp(96px, 15vw, 168px); }
.explode__layer--3 { --y: 0px; z-index: 1; width: clamp(110px, 17vw, 190px); }
[data-explode].is-exploded .explode__layer--1 { --y: calc(-1 * clamp(90px, 13vw, 160px)); }
[data-explode].is-exploded .explode__layer--3 { --y: clamp(96px, 14vw, 168px); }
.explode__tag {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: var(--s-4);
  padding-left: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--d-slow) var(--ease-out) 260ms;
  border-left: 1px solid var(--rule-strong);
}
[data-explode].is-exploded .explode__tag { opacity: 1; }
/* The nowrap callout tags need free air right of the centred assembly;
   between 900 and ~1220px they were the page's only horizontal overflow
   (they take layout space even while opacity: 0). */
@media (max-width: 1220px) { .explode__tag { display: none; } }
@media (max-width: 900px) {
  .explode__wrap { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Machine park
   -------------------------------------------------------------------------- */
.mpk__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-8); flex-wrap: wrap; }
.mpk__list { margin-top: var(--s-12); display: grid; gap: var(--s-2); }
.mpk__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(90px, 30%) 62px;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
}
.mpk__icon { color: var(--accent-text); }
.mpk__name { font-weight: 600; font-size: 0.98rem; }
.mpk__bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--fg) 10%, transparent); overflow: hidden; }
.mpk__fill {
  display: block; height: 100%; width: var(--pct);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), #FF7A5C);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1000ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.is-in .mpk__fill, [data-counters].is-in .mpk__fill { transform: scaleX(1); }
.mpk__count { text-align: right; font-weight: 700; font-size: 1.15rem; font-family: var(--font-mono); }
@media (max-width: 760px) {
  .mpk__row { grid-template-columns: 32px minmax(0, 1fr) 54px; row-gap: var(--s-2); }
  .mpk__bar { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Industries
   -------------------------------------------------------------------------- */
.ind__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ind__list { margin-top: var(--s-8); display: grid; gap: var(--s-1); }
.ind__list--wide { margin-top: var(--s-10); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1) var(--s-8); }
.ind__item {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.99rem;
}
.ind__dot { width: 6px; height: 6px; border-radius: 99px; background: var(--red); flex: none; }
.ind__map { width: 100%; height: auto; }
.ind__cap { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--fg-3); max-width: 52ch; }
@media (max-width: 900px) {
  .ind__wrap { grid-template-columns: minmax(0, 1fr); }
  .ind__list--wide { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Industries icon grid (ind2) — Fluent 3D emoji (Microsoft, MIT) tiles;
   the hover pop runs on Motion in app.js (industriesGrid)
   -------------------------------------------------------------------------- */
.ind2__grid {
  margin-top: var(--s-6);
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 14px);
}
.ind2 {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--bg-raised) 60%, transparent);
  transition: border-color var(--d-fast) var(--ease-out),
              background-color var(--d-fast) var(--ease-out),
              box-shadow var(--d-fast) var(--ease-out);
}
.ind2:hover { border-color: var(--rule-strong); background: var(--bg-raised); box-shadow: var(--sh-1); }
/* 2026-09-02: photoreal icons need a bigger well (36px turned them to smudges);
   labels bold per the user. Hover pop (industriesGrid) untouched. */
.ind2__ico { flex: none; width: 68px; height: 68px; display: grid; place-items: center; }
.ind2__ico img { width: 64px; height: 64px; object-fit: contain; will-change: transform; }
.ind2__label { font-size: var(--fs-sm); font-weight: 750; color: var(--fg); line-height: 1.35; }
@media (max-width: 980px) { .ind2__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .ind2__grid { grid-template-columns: minmax(0, 1fr); }
  .ind2 { padding: 10px 14px; }
}

/* --------------------------------------------------------------------------
   Compact facility band (fac2) — the cpb2 idiom: media | body | stats
   -------------------------------------------------------------------------- */
.fac2 {
  display: grid;
  grid-template-columns: clamp(190px, 22vw, 280px) minmax(0, 1fr) auto;
  gap: var(--s-4) clamp(20px, 3vw, 44px);
  align-items: center;
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-raised);
}
.fac2__media { margin: 0; }
.fac2__img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.fac2__kick {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.fac2__title { margin-top: var(--s-2); }
.fac2__lead { margin-top: var(--s-2); color: var(--fg-2); max-width: 56ch; font-size: var(--fs-sm); }
.fac2__stats {
  display: grid;
  gap: var(--s-4);
  padding-left: clamp(16px, 2.4vw, 36px);
  border-left: 1px solid var(--rule);
}
.fac2__stats .stat__value { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.fac2__stats .stat__label { font-size: var(--fs-xs); }
@media (max-width: 900px) {
  .fac2 { grid-template-columns: minmax(0, 1fr); }
  .fac2__stats {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: var(--s-6);
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: var(--s-4);
  }
}

/* --------------------------------------------------------------------------
   Quality list
   -------------------------------------------------------------------------- */
.qual__wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.qual__img { width: 100%; height: auto; border-radius: var(--r-xl); }
.qlist { margin-top: var(--s-8); display: grid; gap: var(--s-4); }
.qlist__item { display: flex; gap: var(--s-4); align-items: flex-start; color: var(--fg-2); }
.qlist__check { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--red); }
.qual__cta { margin-top: var(--s-8); }
@media (max-width: 900px) { .qual__wrap { grid-template-columns: minmax(0, 1fr); } }

/* Home certificate fan: ESG sits lower at the far left, behind ISO/AQAP.
   Hover lifts each real scan; homepage scans remain non-clickable. */
.qual--dossier { background: var(--bg-sunk); }
.qf__stack { position: relative; height: clamp(300px, 26vw, 350px); }
.qf__doc {
  position: absolute; margin: 0;
  width: clamp(104px, 25%, 168px);
  left: calc(var(--i) * 14.5%);
  top: calc(8px + (var(--i) - 3) * (var(--i) - 3) * 7px);
  transform: rotate(calc((var(--i) - 3) * 4deg));
  z-index: calc(var(--i) + 1);
  transition: transform var(--d-base) var(--ease-out);
  filter: drop-shadow(0 12px 20px rgba(10, 14, 20, 0.22));
}
.qf__doc img, .qf__doc .cwall__img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: 4px;
  background: #fff;
}
[data-qfan].is-live .qf__doc {
  animation: qfBreath 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.3s);
}
@keyframes qfBreath { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
[data-qfan] .qf__doc:hover, [data-qfan] .qf__doc:focus-visible {
  transform: rotate(0deg) translateY(-14px) scale(1.05);
  z-index: 40;
  animation-play-state: paused;
}
.qf__doc:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.qf__cap {
  position: absolute; top: 100%; left: 50%;
  translate: -50% 0;
  width: max-content; max-width: 130%;
  margin-top: 7px; text-align: center;
  display: grid; gap: 1px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.02em; color: var(--fg);
  opacity: 0; transition: opacity var(--d-fast) var(--ease-out);
  pointer-events: none;
}
.qf__cap span { font-weight: 400; font-size: 0.54rem; color: var(--fg-3); white-space: normal; }
.qf__doc:hover .qf__cap, .qf__doc:focus-visible .qf__cap { opacity: 1; }
.qf__strip {
  margin-top: var(--s-5);
  font-size: 0.6rem; line-height: 1.7; color: var(--fg-3);
}
@media (hover: none) { .qf__cap { opacity: 1; } }
@media (max-width: 900px) {
  .qf__stack { height: clamp(200px, 52vw, 330px); }
  /* Six scans, including the lower-left ESG sheet, stay inside the viewport. */
  .qf__doc { width: clamp(78px, 24vw, 150px); left: calc(var(--i) * 14%); }
  .qf__cap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-qfan].is-live .qf__doc { animation: none; }
}

/* --------------------------------------------------------------------------
   Why
   -------------------------------------------------------------------------- */
.why__list {
  margin-top: var(--s-14);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-8) var(--s-10);
}
.why__item { display: flex; gap: var(--s-5); align-items: flex-start; }
.why__no { font-size: 0.82rem; color: var(--accent-text); padding-top: 3px; flex: none; }
.why__text { color: var(--fg-2); }
@media (max-width: 900px) { .why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .why__list { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee { overflow: hidden; margin-top: var(--s-12); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: slide var(--marquee-speed, 60s) linear infinite; will-change: transform; transform: translateZ(0); }
.marquee__group { display: flex; align-items: center; gap: clamp(32px, 5vw, 72px); padding-right: clamp(32px, 5vw, 72px); }
.marquee__item { flex: none; display: grid; place-items: center; height: 54px; }
.marquee__item img { max-height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.62; transition: filter var(--d-base) var(--ease-out), opacity var(--d-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .marquee__item:hover img { filter: none; opacity: 1; } }
.marquee__item--part { height: 92px; }
.marquee__part { max-height: 88px; width: auto; filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.18)); opacity: 1; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* --------------------------------------------------------------------------
   Quotes
   -------------------------------------------------------------------------- */
.quotes__stage { position: relative; margin-top: var(--s-8); min-height: 190px; }
.quote {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out), visibility 0s linear var(--d-slow);
}
.quote[data-active] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.quote__text {
  margin: 0;
  font-size: clamp(1.16rem, 1rem + 0.9vw, 1.7rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--fg);
  max-width: 62ch; margin-inline: auto;
}
.quote__by { margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--fg-3); }
.quotes__dots { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-8); }
.quote-dot {
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.quote-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 99px;
  background: var(--ink-5);
  transition: background-color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out);
}
.quote-dot.is-active::before { background: var(--red); transform: scale(1.25); }

/* --------------------------------------------------------------------------
   EU teaser + index cards
   -------------------------------------------------------------------------- */
.eu-teaser__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-8); flex-wrap: wrap; }
.eu-teaser__grid { margin-top: var(--s-12); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.eu-mini {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .eu-mini:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--rule-strong); } }
.eu-mini__title { font-weight: 600; font-size: 0.96rem; line-height: 1.35; letter-spacing: -0.015em; }
.eu-mini__no { font-size: 0.72rem; color: var(--fg-3); margin-top: auto; }
.eu-mini__status, .euc__status {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.eu-mini__status--active, .euc__status--active { background: var(--red-wash); color: var(--red-ink); }
.eu-mini__status--done, .euc__status--done { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg-3); }
@media (max-width: 1000px) { .eu-teaser__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .eu-teaser__grid { grid-template-columns: minmax(0, 1fr); } }

.eu-notice { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-4) var(--s-5); border: 1px solid var(--rule); border-radius: var(--r-md); color: var(--fg-3); margin-bottom: var(--s-8); }
.eu-notice .icon { flex: none; }
.euc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-5);
}
@media (max-width: 620px) { .euc__grid { grid-template-columns: minmax(0, 1fr); } }
.euc {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-raised);
  transition: transform var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .euc:hover { transform: translateY(-3px); border-color: var(--rule-strong); box-shadow: var(--sh-3); }
}

/* Framed compliance logo bar at the head of each card. */
.euc__mat {
  display: grid; place-items: center;
  grid-auto-flow: column;
  gap: 10px;
  aspect-ratio: 16 / 7;
  padding: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 20, 26, 0.1) inset;
}
.euc__img {
  width: 100%; height: 100%;
  min-width: 0; min-height: 0;
  object-fit: contain;
}
.euc__title { font-size: 1rem; font-weight: 700; letter-spacing: -0.016em; line-height: 1.3; }
/* Programme line in the technical face, matching the certificate cards. */
.euc__desc {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--fg-3);
}
.euc__top { display: flex; align-items: center; gap: var(--s-3); }
.euc__new { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; color: var(--red); border: 1px solid var(--red); border-radius: var(--r-full); padding: 2px 8px; }
.euc__title a { transition: color var(--d-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .euc__title a:hover { color: var(--accent-text); } }
.euc__no { font-size: 0.7rem; color: var(--accent-text); }
.euc__meta {
  display: grid; gap: 4px;
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
/* Cards share a row height; the slack collects above the footer link rather
   than opening a gap in the middle of the content. */
.euc__subs { margin-top: var(--s-1); }
.euc__go { margin-top: auto; }
.euc__meta-row { display: flex; justify-content: space-between; gap: var(--s-3); font-size: 0.72rem; }
.euc__meta-row dt { color: var(--fg-3); }
.euc__meta-row dd { margin: 0; text-align: right; font-weight: 600; }
.euc__subs { display: grid; gap: 2px; padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.euc__subs a, .sub-list a, .doc-list a {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) 0;
  font-size: var(--fs-sm); color: var(--fg-2);
  transition: color var(--d-fast) var(--ease-out);
}
.euc__subs .icon, .sub-list .icon { flex: none; width: 15px; height: 15px; color: var(--fg-4); }
@media (hover: hover) and (pointer: fine) { .euc__subs a:hover, .sub-list a:hover, .doc-list a:hover { color: var(--accent-text); } }
.euc__go { padding-top: var(--s-3); }

/* --------------------------------------------------------------------------
   CTA band + footer
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 50% 0%, rgba(250, 38, 0, 0.16), transparent 62%);
}
.cta-band > * { position: relative; }
/* compact pre-footer row: text left, buttons right */
.cta2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-8);
  flex-wrap: wrap;
}
.cta2__lead { margin-top: var(--s-2); color: var(--fg-2); max-width: 64ch; }
.cta2__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.footer { background: var(--bg); color: var(--fg); padding-block: var(--s-10) var(--s-6); border-top: 1px solid var(--rule); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.4fr 1.2fr; gap: clamp(22px, 3vw, 44px); }
.footer__tag { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--accent-text); }
.footer__about { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--fg-3); max-width: 44ch; }
.footer__title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-4); margin-bottom: var(--s-3); }
.footer__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 4px var(--s-4); }
.footer__list a, .footer__address a { color: var(--fg-2); font-size: var(--fs-sm); transition: color var(--d-fast) var(--ease-out); }
.footer__navlink { display: flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 0; line-height: 1.4; }
.footer__navlink span { min-width: 0; overflow-wrap: anywhere; }
.footer__navlink .icon { width: 11px; height: 11px; flex: none; color: var(--red); opacity: 0.7; transition: translate var(--d-fast) var(--ease-out); }
.footer__navlink:hover .icon { translate: 3px 0; }
/* contact column: plain clickable rows — icon + bold text, no chrome */
.footer__cta-list { display: grid; gap: 7px; }
.footer__cbtn {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 0;
  color: var(--fg-2); font-size: var(--fs-sm); font-weight: 650; line-height: 1.4;
  transition: color var(--d-fast) var(--ease-out);
}
.footer__cbtn .icon { width: 15px; height: 15px; flex: none; color: var(--red); }
.footer__cbtn:hover { color: var(--fg); }
@media (hover: hover) and (pointer: fine) { .footer__list a:hover, .footer__address a:hover { color: var(--fg); } }
.footer__address { font-style: normal; font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.7; }
.footer__eu-title { font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; }
.footer__eu-no { font-size: 0.72rem; color: var(--fg-4); margin-top: 4px; }
.footer__eu-logos { margin: var(--s-3) 0; }
.footer__eu-logos img { width: 100%; max-width: 176px; height: auto; background: #fff; padding: 7px 9px; border-radius: var(--r-xs); }
.link--invert { color: var(--accent-text); }
.footer__bar {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--s-4);
  margin-top: var(--s-8); padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-xs); color: var(--fg-4);
}
.footer__bar--center { flex-direction: column; align-items: center; justify-content: center; gap: var(--s-4); }
.footer__credit { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 0.62rem; letter-spacing: 0.06em; color: var(--fg-4); text-align: center; }
.footer__credit img { display: inline-block; border-radius: 4px; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__credit { width: 100%; gap: 12px 6px; }
  .footer__credit > span { display: contents; }
  .footer__rights { flex-basis: 100%; }
  .footer__creator { display: block; white-space: nowrap; }
  .footer__credit-separator { display: none; }
}

/* --------------------------------------------------------------------------
   Split layout
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 84px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__img { width: 100%; height: auto; border-radius: var(--r-xl); }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
}
.facility__stats { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-top: var(--s-10); }
.facility__stats .stat__value { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.tl { margin-top: var(--s-14); display: grid; gap: 0; }
.tl__item {
  display: grid;
  grid-template-columns: 92px 24px minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--rule);
}
.tl__item:last-child { border-bottom: 1px solid var(--rule); }
.tl__year { font-weight: 700; color: var(--accent-text); font-size: 0.95rem; padding-top: 2px; }
.tl__dot { position: relative; width: 24px; height: 24px; }
.tl__dot::before { content: ''; position: absolute; left: 8px; top: 6px; width: 8px; height: 8px; border-radius: 99px; background: var(--red); }
.tl__dot::after { content: ''; position: absolute; left: 11.5px; top: 14px; bottom: -34px; width: 1px; background: var(--rule); }
.tl__item:last-child .tl__dot::after { display: none; }
.tl__text { color: var(--fg-2); }
@media (max-width: 640px) {
  .tl__item { grid-template-columns: 62px 20px minmax(0, 1fr); gap: var(--s-3); }
  .tl__dot::before { left: 6px; }
  .tl__dot::after { left: 9.5px; }
}

/* --------------------------------------------------------------------------
   Investment cards + chart
   -------------------------------------------------------------------------- */
.ivc__grid { margin-top: var(--s-12); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.ivc { display: flex; flex-direction: column; gap: var(--s-2); }
.ivc__value { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.15rem); font-weight: 800; letter-spacing: -0.035em; }
.ivc__label { font-size: var(--fs-sm); font-weight: 600; color: var(--accent-text); }
.ivc__text { font-size: var(--fs-sm); color: var(--fg-3); }
.ivc__chart { margin-top: var(--s-10); }
.chart { width: 100%; height: clamp(220px, 30vw, 340px); }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart__area { fill: url(#lm-grad); opacity: 0; transition: opacity 800ms var(--ease-out) 400ms; }
.chart__line { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart__grid { stroke: var(--rule); stroke-width: 1; }
.chart__label { fill: var(--fg-4); font-size: 11px; font-family: var(--font-mono); }
.chart__dot { fill: var(--bg); stroke: var(--red); stroke-width: 2.5; opacity: 0; transition: opacity 400ms var(--ease-out); }
.chart.is-in .chart__area { opacity: 1; }
.chart.is-in .chart__dot { opacity: 1; }
@media (max-width: 1000px) { .ivc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ivc__grid { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Machine groups (production page)
   -------------------------------------------------------------------------- */
.mg__grid { margin-top: var(--s-12); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.mg { display: flex; flex-direction: column; gap: var(--s-3); }
.mg__head { display: flex; align-items: center; justify-content: space-between; }
.mg__icon { color: var(--accent-text); }
.mg__count { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.04em; font-family: var(--font-mono); }
.mg__name { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.018em; line-height: 1.3; }
.mg__label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-4); margin-top: var(--s-2); }
.mg__models { display: grid; gap: 5px; font-size: var(--fs-sm); color: var(--fg-3); }
.mg__models li { padding-left: 14px; position: relative; }
.mg__models li::before { content: ''; position: absolute; left: 0; top: 0.66em; width: 5px; height: 1px; background: var(--fg-4); }
@media (max-width: 1000px) { .mg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .mg__grid { grid-template-columns: minmax(0, 1fr); } }

/* processes as one compact title + chips row */
.proc2__row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}
.proc2__title { flex: none; color: var(--fg); }
.proc2__list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.proc2 {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px 13px;
  border: 1px solid var(--rule); border-radius: var(--r-full);
  background: var(--bg-raised);
  font-size: var(--fs-xs); font-weight: 600;
}
.proc2__icon { color: var(--accent-text); display: inline-flex; flex: none; }
.proc2__icon .icon--machine { width: 15px; height: 15px; }
/* production only: pull the brands strip closer to the chips */
.pr-night .brands { margin-top: var(--s-6); padding-top: var(--s-4); }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gal { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
@media (max-width: 1100px) { .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gal__item { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-sunk); aspect-ratio: 4 / 3; }
.gal__img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gal__item:hover .gal__img { transform: scale(1.045); } }
@media (max-width: 900px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }
@media (max-width: 520px) { .gal { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Products page
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 var(--s-5);
  border-radius: var(--r-full);
  border: 1px solid var(--rule);
  font-size: 0.85rem; font-weight: 600; color: var(--fg-2);
  transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-out), transform var(--d-press) var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.chip__n { font-size: 0.72rem; opacity: 0.7; }
.chip.is-active .chip__n { opacity: 0.85; }

.products__body { margin-top: var(--s-14); display: grid; gap: var(--s-20); }
.pcat[hidden] { display: none; }
.pcat__head { max-width: 70ch; }
.pcat__sub { margin-top: var(--s-2); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.pcat__text { margin-top: var(--s-4); color: var(--fg-2); }
.pcat__grid { margin-top: var(--s-10); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); }
.ptile { margin: 0; cursor: zoom-in; }
.ptile__frame {
  display: grid; place-items: center;
  aspect-ratio: 1;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition: border-color var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}
.ptile__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.45));
  transition: transform var(--d-slow) var(--ease-out);
}
.ptile__cap { margin-top: var(--s-3); font-size: 0.68rem; color: var(--fg-4); letter-spacing: 0.05em; }
@media (hover: hover) and (pointer: fine) {
  .ptile:hover .ptile__frame { border-color: var(--rule-strong); }
  .ptile:hover .ptile__img { transform: translateY(-5px) scale(1.05); }
}
.products__note { margin-top: var(--s-14); padding-top: var(--s-6); border-top: 1px solid var(--rule); }
@media (max-width: 1100px) { .pcat__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 780px) { .pcat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); } }
@media (max-width: 520px) { .pcat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lightbox */
/* 2026-09-03: viewer v2 — arrows mirror around the image at equal distance,
   one consistent control style, close button clear of the viewport edge. */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
  align-items: center;
  padding: clamp(20px, 4vw, 48px);
  background: rgba(8, 8, 11, 0.94);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity var(--d-base) var(--ease-out);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; display: grid; place-items: center; }
.lightbox__img {
  max-width: min(76vw, 900px); max-height: 82svh; width: auto; height: auto;
  border-radius: 6px;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
  transform: scale(0.96); opacity: 0;
  transition: transform var(--d-slow) var(--ease-out), opacity var(--d-slow) var(--ease-out);
}
.lightbox.is-open .lightbox__img { transform: none; opacity: 1; }
.lightbox__close, .lightbox__nav {
  display: grid; place-items: center;
  border-radius: var(--r-full); color: #fff;
  background: rgba(22, 24, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-out),
              transform var(--d-press) var(--ease-out);
}
.lightbox__close {
  position: absolute; top: clamp(18px, 3vw, 30px); right: clamp(18px, 3vw, 30px);
  width: 46px; height: 46px;
}
.lightbox__close .icon, .lightbox__nav .icon { width: 20px; height: 20px; }
.lightbox__nav { width: 54px; height: 54px; }
.lightbox__nav:active { transform: scale(0.94); }
.lightbox__nav--prev { justify-self: end; margin-right: clamp(14px, 2.4vw, 36px); }
.lightbox__nav--prev .icon { transform: rotate(180deg); }
.lightbox__nav--next { justify-self: start; margin-left: clamp(14px, 2.4vw, 36px); }
@media (hover: hover) and (pointer: fine) {
  .lightbox__nav:hover, .lightbox__close:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
  }
}
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; padding: var(--s-5); }
  .lightbox__img { max-width: 92vw; }
  .lightbox__nav { position: absolute; bottom: var(--s-6); margin: 0 !important; }
  .lightbox__nav--prev { left: calc(50% - 66px); }
  .lightbox__nav--next { right: calc(50% - 66px); }
}

/* --------------------------------------------------------------------------
   Quality page
   -------------------------------------------------------------------------- */
.scope { display: flex; flex-direction: column; gap: var(--s-3); }
.scope__text { font-weight: 600; max-width: 60ch; }
.cert__grid { margin-top: var(--s-12); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.cert { display: flex; flex-direction: column; gap: var(--s-3); }
.cert__badge { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--accent-text); }
.cert__ico { width: 22px; height: 22px; }
.cert__code { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.cert__name { font-size: var(--fs-sm); color: var(--fg-3); }
.cert__meta { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--rule); display: grid; gap: 5px; font-size: 0.74rem; }
.cert__meta > div { display: flex; justify-content: space-between; gap: var(--s-3); }
.cert__meta dt { color: var(--fg-4); }
.cert__meta dd { margin: 0; text-align: right; color: var(--fg-2); }
@media (max-width: 1000px) { .cert__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cert__grid { grid-template-columns: minmax(0, 1fr); } }

.gauge { position: relative; width: min(320px, 76vw); margin-inline: auto; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: var(--rule); stroke-width: 12; }
.gauge__fill {
  fill: none; stroke: var(--red); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 528;
  stroke-dashoffset: 528;
  transition: stroke-dashoffset 1400ms var(--ease-out);
}
.gauge__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge__grade { display: block; font-size: 3.4rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--accent-text); }
.gauge__num { font-size: 1.5rem; font-weight: 700; font-family: var(--font-mono); }
.gauge__of { font-size: 0.9rem; color: var(--fg-4); }

.nato__code { margin-top: var(--s-8); font-size: 1.05rem; }
.nato__code strong { color: var(--accent-text); }
.nato__mark {
  display: grid; place-items: center; gap: var(--s-4);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  color: var(--accent-text);
}
.nato__mark .icon { width: 76px; height: 76px; stroke-width: 1; }
.nato__mark span { font-size: 0.9rem; letter-spacing: 0.16em; color: var(--fg-2); }

.policy { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; }
.policy__ico { width: 34px; height: 34px; color: var(--accent-text); }
.policy__body { flex: 1 1 320px; }

/* --------------------------------------------------------------------------
   EU detail
   -------------------------------------------------------------------------- */
.crumbs { padding-block: var(--s-5); border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); }
.crumbs .wrap { display: flex; align-items: center; gap: var(--s-2); color: var(--fg-3); }
.crumbs .icon { width: 14px; height: 14px; color: var(--fg-4); }
.crumbs a { transition: color var(--d-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--accent-text); } }

.eud__head { max-width: 62rem; }
.eud__logos { display: flex; flex-wrap: wrap; gap: var(--s-6); align-items: center; margin-bottom: var(--s-8); }
.eud__logos img { max-height: 92px; width: auto; max-width: min(340px, 76vw); background: #fff; padding: 8px 12px; border-radius: var(--r-xs); }
.eud__title { margin-top: var(--s-3); }
.eud__contracts { margin-top: var(--s-4); font-size: 0.9rem; color: var(--accent-text); }
.eud__body { margin-top: var(--s-12); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .eud__body { grid-template-columns: minmax(0, 1fr); } }

.prose { max-width: 72ch; color: var(--fg-2); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-size: var(--fs-h3); color: var(--fg); margin-top: var(--s-10); }
.prose h3 { font-size: var(--fs-h4); color: var(--fg); margin-top: var(--s-8); }
.prose h4, .prose h5, .prose h6 { font-size: 1.02rem; color: var(--fg); margin-top: var(--s-6); }
.prose strong, .prose b { color: var(--fg); font-weight: 650; }
.prose ul, .prose ol { display: grid; gap: var(--s-2); padding-left: var(--s-5); }
.prose ul li { list-style: none; position: relative; padding-left: var(--s-4); }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1px; background: var(--red); }
.prose ol { list-style: decimal; }
.prose ol li { list-style: decimal; padding-left: var(--s-1); }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose td, .prose th { border: 1px solid var(--rule); padding: var(--s-3); text-align: left; }

.eud__posters { display: grid; gap: var(--s-4); }
.eud__poster {
  position: relative; display: block;
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  overflow: hidden; background: #fff;
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.eud__poster img { width: 100%; height: auto; }
.eud__poster-cta {
  position: absolute; left: var(--s-3); bottom: var(--s-3);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-full);
  background: rgba(14, 14, 17, 0.86); color: #fff;
  font-size: 0.72rem; font-weight: 600;
}
.eud__poster-cta .icon { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .eud__poster:hover { transform: translateY(-3px); box-shadow: var(--sh-3); } }

.eud__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); padding: var(--s-5) 0; border-block: 1px solid var(--rule); }
.eud__stat dt { font-size: var(--fs-xs); color: var(--fg-4); }
.eud__stat dd { margin: 4px 0 0; font-weight: 700; color: var(--fg); }
@media (max-width: 560px) { .eud__stats { grid-template-columns: minmax(0, 1fr); } }

.eud__gallery { margin-top: var(--s-14); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.eud__gallery figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-sunk); }
.eud__gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 780px) { .eud__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.eud__docs, .eud__subs { margin-top: var(--s-14); }
.doc-list, .sub-list { margin-top: var(--s-5); display: grid; gap: 0; max-width: 72ch; }
.doc-list a { padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); gap: var(--s-3); }
.doc-list .icon { flex: none; width: 18px; height: 18px; color: var(--fg-4); }
.doc-list span { flex: 1; word-break: break-word; }
.doc__dl { color: var(--accent-text) !important; }
.sub-list a { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.eud__note { margin-top: var(--s-12); padding: var(--s-6); border-radius: var(--r-lg); background: var(--bg-sunk); font-size: var(--fs-sm); color: var(--fg-3); }
.eud__note pre { white-space: pre-wrap; font-family: var(--font-mono); font-size: 0.78rem; margin-top: var(--s-3); color: var(--fg-2); }
.eud__back { margin-top: var(--s-14); padding-top: var(--s-6); border-top: 1px solid var(--rule); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }
.contact__info { display: grid; gap: var(--s-8); }
.cblock { display: flex; gap: var(--s-5); align-items: flex-start; }
.cblock__ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--red-wash); color: var(--red-ink); }
.cblock__ico .icon { width: 20px; height: 20px; }
.cblock__title { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-4); margin-bottom: 6px; }
.cblock address, .cblock p { font-style: normal; color: var(--fg-2); line-height: 1.75; }
.cblock a { transition: color var(--d-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cblock a:hover { color: var(--accent-text); } }

.cform { display: grid; gap: var(--s-5); }
.cform__title { margin-bottom: var(--s-2); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--fg-2); }
.req { color: var(--red); }
.field input, .field textarea {
  width: 100%;
  padding: 13px var(--s-4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg);
  font-size: 0.97rem;
  transition: border-color var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent);
}
.field__err { font-size: var(--fs-xs); color: var(--red-ink); display: none; }
.field.is-invalid .field__err { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.cform__submit { justify-self: start; }
.cform__note { color: var(--fg-4); }

.map-sec { padding-bottom: 0; }
.map { position: relative; margin-top: var(--s-10); height: clamp(320px, 44vw, 520px); }
.map__frame { width: 100%; height: 100%; border: 0; }
.map__cta { position: absolute; left: var(--gutter); bottom: var(--s-6); box-shadow: var(--sh-3); }

/* --------------------------------------------------------------------------
   Section heads with a trailing CTA
   -------------------------------------------------------------------------- */
.mpk__cta, .eu-teaser__cta { padding-bottom: 6px; }

/* --------------------------------------------------------------------------
   Page loader
   -------------------------------------------------------------------------- */
/* Loader v2 (2026-09-05): machining boot screen — wordmark over a machined
   progress groove with a glowing red feed and a live percentage. */
.loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background:
    linear-gradient(to right, rgba(180, 196, 214, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 196, 214, 0.045) 1px, transparent 1px),
    radial-gradient(90% 70% at 50% 30%, #14171D, #0A0C0F);
  background-size: 44px 44px, 44px 44px, 100% 100%;
  transition: opacity 520ms var(--ease-out), visibility 0s linear 520ms;
}
.loader::before, .loader::after {
  content: '';
  position: absolute; width: 22px; height: 22px;
  border: 0 solid var(--red); opacity: 0.85;
}
.loader::before { top: clamp(16px, 4vw, 34px); left: clamp(16px, 4vw, 34px); border-top-width: 2px; border-left-width: 2px; }
.loader::after { bottom: clamp(16px, 4vw, 34px); right: clamp(16px, 4vw, 34px); border-bottom-width: 2px; border-right-width: 2px; }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: grid; justify-items: center; gap: var(--s-6); width: min(320px, 74vw); }
.loader__logo { width: clamp(170px, 30vw, 220px); height: auto; color: #F4F4F6; }
.loader__gearbox { position: relative; width: 178px; height: 122px; }
.loader__g { position: absolute; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
/* margins are alpha-cropped, so the pitch circles genuinely interlock */
.loader__g--a {
  left: 0; top: 0; width: 116px; height: 116px;
  animation: loader-cw 5.2s linear infinite;
}
.loader__g--b {
  left: 104px; top: 44px; width: 72px; height: 72px;
  animation: loader-ccw 3.12s linear infinite;
}
@keyframes loader-cw  { to { rotate: 360deg; } }
@keyframes loader-ccw { to { rotate: -360deg; } }
.loader__meta {
  display: flex; align-items: baseline; gap: 10px;
  color: #8E98A5;
}
.loader__pct { font-size: 1.05rem; font-weight: 700; color: #F4F4F6; min-width: 2.2ch; text-align: right; }
.loader__unit { font-size: 0.7rem; color: #6B7480; margin-left: -6px; }
.loader__word { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* ==========================================================================
   Review pass — fixes found while checking rendered pages
   ========================================================================== */

/* Machine icons were too small to read at a glance. */
.cap__icon { width: 56px; height: 56px; }
.cap__icon .icon { width: 30px; height: 30px; }
.mpk__icon .icon { width: 24px; height: 24px; }
.mg__icon .icon { width: 30px; height: 30px; }
.icon--machine { stroke-width: 1.5; }

/* Grid items default to min-height:auto, which stopped the square part frames
   from shrinking to their aspect-ratio box and left rows ragged. */
.ptile__frame, .pex__part { min-height: 0; min-width: 0; overflow: hidden; }
.ptile__img, .pex__img { min-height: 0; min-width: 0; }

/* Part cut-outs in a marquee are the product, not a client logo: full colour. */
.marquee__item--part img {
  max-height: 88px;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.18));
  opacity: 1;
}

/* A 12px ring at this diameter read as a heavy donut. */
.gauge__track, .gauge__fill { stroke-width: 9; }

/* Keep the floating parts clear of the centre column. */
.hero__part--2 { left: 3.5%; top: 62%; }
.hero__part--5 { right: 4.5%; top: 60%; }
.hero__part--7 { left: 21%; top: 4%; }
.hero__part--8 { right: 22%; top: 86%; }

/* Read the exploded view as genuinely exploded. */
[data-explode].is-exploded .explode__layer--1 { --y: calc(-1 * clamp(120px, 16vw, 200px)); }
[data-explode].is-exploded .explode__layer--3 { --y: clamp(126px, 17vw, 208px); }

/* The EU emblem pair is a legal mark — give it room to be legible. */
.cpb__logos img { max-width: 268px; }
.cpb__inner { grid-template-columns: minmax(180px, 268px) minmax(0, 1fr); }
@media (max-width: 720px) { .cpb__inner { grid-template-columns: minmax(0, 1fr); } }

/* Dark mode: night sections must still read as a distinct band, so lift them
   above the page ground rather than sinking them into it. */
:root[data-theme="dark"] [data-tone="night"] {
  --bg: #191920;
  --bg-raised: #212129;
  --bg-sunk: #101014;
  --rule: #32323C;
  --rule-strong: #43434F;
}
:root[data-theme="dark"] .nav {
  background: color-mix(in srgb, #101014 82%, transparent);
}
:root[data-theme="dark"] .page-hero--plain::before {
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(250, 38, 0, 0.14), transparent 60%),
    linear-gradient(180deg, #202028, #14141A);
}

/* Map: the embed can fail (no WebGL, blocked third party) — never show a
   broken white box, and keep the address usable regardless. */
.map { background: var(--bg-sunk); }
.map__fallback {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: var(--s-3);
  text-align: center; padding: var(--s-8);
  color: var(--fg-3);
}
.map__frame { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Location plate — drawn locally; the OSM embed loads only on request
   -------------------------------------------------------------------------- */
.map { position: relative; height: clamp(360px, 46vw, 560px); overflow: hidden; background: var(--bg-sunk); }
.map__plate { position: absolute; inset: 0; }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__roads path { fill: none; stroke: var(--rule-strong); stroke-width: 2; stroke-linecap: round; opacity: 0.85; }
.map__roads path:nth-child(1), .map__roads path:nth-child(2) { stroke-width: 6; stroke: var(--rule); }
.map__blocks rect { fill: color-mix(in srgb, var(--fg) 6%, transparent); }

.map__pin { position: absolute; left: 27%; top: 52%; width: 0; height: 0; }
.map__pin-dot {
  position: absolute; left: -7px; top: -7px;
  width: 14px; height: 14px; border-radius: 99px;
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 22%, transparent);
}
.map__pin-ring {
  position: absolute; left: -26px; top: -26px;
  width: 52px; height: 52px; border-radius: 99px;
  border: 1.5px solid var(--red);
  opacity: 0;
  animation: ping 2.8s var(--ease-out) infinite;
}
@keyframes ping {
  0% { transform: scale(0.4); opacity: 0.7; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .map__pin-ring { animation: none; opacity: 0.35; } }

.map__card {
  position: absolute;
  left: var(--gutter); bottom: clamp(20px, 4vw, 40px);
  max-width: min(420px, calc(100% - 2 * var(--gutter)));
  padding: clamp(20px, 3vw, 30px);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
}
.map__addr { margin-top: var(--s-3); font-weight: 600; line-height: 1.5; }
.map__coords { margin-top: 4px; color: var(--fg-4); }
.map__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.map__privacy { margin-top: var(--s-4); color: var(--fg-4); line-height: 1.5; }
.map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.map.is-live .map__plate { display: none; }
.map__close {
  position: absolute; z-index: 3; right: var(--s-4); top: var(--s-4);
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 99px; background: var(--bg-raised); color: var(--fg);
  box-shadow: var(--sh-2);
}

/* Products page: the hero strip already provides separation. */
.products { padding-top: var(--section-y-tight); }

/* Pin sat behind the address card and the drawn streets read too faint. */
.map__pin { left: 64%; top: 44%; }
.map__roads path { stroke: color-mix(in srgb, var(--fg) 16%, transparent); }
.map__roads path:nth-child(1), .map__roads path:nth-child(2) {
  stroke: color-mix(in srgb, var(--fg) 11%, transparent);
}
.map__blocks rect { fill: color-mix(in srgb, var(--fg) 9%, transparent); }
@media (max-width: 700px) { .map__pin { left: 70%; top: 28%; } }

/* Document thumbnails from the old site are PDF first pages, not photos. */
.eud__doctiles { margin-top: var(--s-14); }
.doctile__grid {
  margin-top: var(--s-5);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-4);
}
.doctile {
  position: relative; display: block;
  border: 1px solid var(--rule); border-radius: var(--r-md);
  overflow: hidden; background: #fff;
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.doctile__thumb { display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.doctile__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doctile__cta {
  position: absolute; left: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: var(--r-full);
  background: rgba(14, 14, 17, 0.86); color: #fff;
  font-size: 0.68rem; font-weight: 600;
}
.doctile__cta .icon { width: 13px; height: 13px; }
@media (hover: hover) and (pointer: fine) {
  .doctile:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
}
/* Logos and diagrams must not be cropped like photographs. */
.eud__gallery img { object-fit: cover; }

/* --------------------------------------------------------------------------
   Contrast pass (WCAG AA)
   -------------------------------------------------------------------------- */

/* White on the raw logo red is 3.9:1. Filled interactive surfaces use a
   fractionally darker red (4.9:1); the brand red stays for marks and rules. */
.btn--primary { --btn-bg: var(--red-btn); }
.skip-link { background: var(--red-btn); }
.pex__tab[aria-selected="true"] { background: var(--red-btn); border-color: var(--red-btn); }
.chip.is-active { background: var(--red-btn); border-color: var(--red-btn); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { --btn-bg: #C81C00; }
}

/* .btn--light is white by design, so its label must stay dark in every theme. */
.btn--light { --btn-bg: #FFFFFF; --btn-fg: #16161A; }
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { --btn-bg: #EFEEEB; --btn-fg: #16161A; }
}

/* Status pills follow the per-theme accent so they stay legible on the
   theme-adjusted wash behind them. */
.eu-mini__status--active, .euc__status--active { color: var(--accent-text); }

/* Small red labels need the darker red to clear 4.5:1. */
.req, .euc__new { color: var(--accent-text); }
.euc__new { border-color: var(--accent-text); }

/* The EU emblem pair is the audited artwork — make sure it is comfortably legible. */
.cpb__inner { grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); }
.cpb__logos img { max-width: 320px; }
@media (max-width: 760px) { .cpb__inner { grid-template-columns: minmax(0, 1fr); } }

/* A section head followed by loose prose needs the same rhythm as one with a lead. */
.sec-head + p,
.sec-head + .body,
.sec-head + ul,
.sec-head + ol,
.sec-head + dl { margin-top: var(--s-6); }

/* ==========================================================================
   Revision pass — compact scale, 3D showcase, brands, AI 3D Builder
   ========================================================================== */

/* Nav gained an item — flip to the burger a little earlier. */
@media (max-width: 1150px) {
  .nav__menu { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__inner { justify-content: space-between; }
  .nav__side { margin-left: auto; }
}

/* Hero: shorter, calmer, smaller floating parts. */
.hero {
  min-height: clamp(440px, 62svh, 640px);
  padding-block: clamp(48px, 7vw, 88px);
}
.hero__actions { margin-top: var(--s-8); }
.hero__part--1 { --w: 8.5%; }
.hero__part--2 { --w: 6.5%; }
.hero__part--3 { --w: 7%; }
.hero__part--4 { --w: 9%; }
.hero__part--5 { --w: 7.5%; }
.hero__part--6 { --w: 6.5%; }
.hero__part--7 { --w: 5%; }
.hero__part--8 { --w: 4.5%; }

/* Numbers and cards a notch smaller. */
.stat__value--big { font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.7rem); }
.card { padding: var(--s-6); }
.cap__icon { width: 48px; height: 48px; }
.cap__icon .icon { width: 25px; height: 25px; }
.caps__grid { margin-top: var(--s-10); }

/* Pictures: cap their height so photo blocks stop dominating the page. */
.split__img { max-height: 400px; object-fit: cover; }
.qual__img { max-height: 420px; object-fit: cover; }
.gal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ind__map { max-width: 460px; margin-inline: auto; }

/* Product explorer: one row, tighter tiles. */
.pex__panel { padding-top: var(--s-8); }
.pex__part { padding: var(--s-3); border-radius: var(--r-md); }
.pex__meta { margin-top: var(--s-8); }
.pex__more { margin-top: var(--s-8); }
.pcat__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pcat__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 780px) { .pcat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pcat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chip { min-height: 36px; padding: 0 var(--s-4); font-size: 0.82rem; }

/* EU band: unchanged content, a little tighter chrome. */
.cpb { padding-block: clamp(16px, 2.4vw, 28px); }
.cpb__inner { grid-template-columns: minmax(180px, 264px) minmax(0, 1fr); }
.cpb__logos img { max-width: 264px; }
.cpb__summary { font-size: 0.9rem; }
@media (max-width: 760px) { .cpb__inner { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   3D showcase
   -------------------------------------------------------------------------- */
.v3d__head {
  display: flex; align-items: end; justify-content: space-between;
  gap: var(--s-6); flex-wrap: wrap;
  margin-bottom: var(--s-8);
}
.v3d {
  position: relative;
  height: clamp(340px, 42vw, 500px);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 50% -10%, rgba(250, 38, 0, 0.08), transparent 55%),
    radial-gradient(70% 110% at 50% 115%, rgba(120, 140, 170, 0.10), transparent 60%),
    var(--bg-sunk);
}
.v3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.v3d__canvas:active { cursor: grabbing; }
.v3d__fallback { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.v3d.is-live .v3d__fallback { display: none; }
.v3d__fallback-img { max-height: 72%; width: auto; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5)); }
.v3d__hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-4); pointer-events: none; white-space: nowrap;
}
.v3d__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.v3d__cta { margin-top: var(--s-6); }

/* --------------------------------------------------------------------------
   Machine brand strip
   -------------------------------------------------------------------------- */
.brands { margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid var(--rule); }
.brands__title {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-4);
}
.marquee--brands { margin-top: var(--s-2); }
.marquee--brands .marquee__item { height: 44px; }
.marquee--brands .marquee__item img { max-height: 26px; max-width: 150px; object-fit: contain; }
[data-tone="night"] .marquee--brands .marquee__item img {
  filter: grayscale(1) invert(1) brightness(1.5) contrast(0.86);
  opacity: 0.72;
}
@media (hover: hover) and (pointer: fine) {
  [data-tone="night"] .marquee--brands .marquee__item:hover img {
    filter: grayscale(1) invert(1) brightness(1.8);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   AI 3D Builder
   -------------------------------------------------------------------------- */
.ai3d__steps {
  display: flex; gap: var(--s-6); flex-wrap: wrap;
  margin-bottom: var(--s-8);
}
.ai3d__step {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-sm); color: var(--fg-4);
  transition: color var(--d-base) var(--ease-out);
}
.ai3d__step-no {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 99px;
  border: 1px solid var(--rule-strong);
  font-size: 0.66rem;
  transition: background-color var(--d-base) var(--ease-out),
              color var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out);
}
.ai3d__step.is-on { color: var(--fg); }
.ai3d__step.is-on .ai3d__step-no { background: var(--red-btn); border-color: var(--red-btn); color: #fff; }

.ai3d__stage { border: 1px solid var(--rule); border-radius: var(--r-xl); background: var(--bg-raised); }
.ai3d__panel { padding: clamp(20px, 3vw, 40px); }
.ai3d__panel[hidden] { display: none; }

.dropzone {
  display: grid; place-items: center; gap: var(--s-3);
  padding: clamp(36px, 6vw, 72px) var(--s-6);
  border: 1.5px dashed var(--rule-strong);
  border-radius: var(--r-lg);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out);
}
.dropzone.is-over, .dropzone:focus-visible { border-color: var(--red); background: color-mix(in srgb, var(--red) 5%, transparent); }
.dropzone__ico { width: 34px; height: 34px; color: var(--accent-text); }
.dropzone__title { font-weight: 700; font-size: 1.05rem; }
.dropzone__or { margin-top: -6px; }
.dropzone__formats { color: var(--fg-4); }
.ai3d__sample { margin-top: var(--s-5); }
.ai3d__privacy {
  display: flex; gap: var(--s-2); align-items: flex-start;
  margin-top: var(--s-5); color: var(--fg-3); max-width: 70ch;
}
.ai3d__privacy .icon { flex: none; margin-top: 2px; color: var(--accent-text); }

.ai3d__cols {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .ai3d__cols { grid-template-columns: minmax(0, 1fr); } }
.ai3d__source-head { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); margin-bottom: var(--s-3); }
.ai3d__ctl { display: inline-flex; align-items: center; gap: var(--s-3); }
.ai3d__ctl input[type="range"] { width: 140px; accent-color: var(--red); }
.ai3d__ctl select {
  padding: 4px 10px; border: 1px solid var(--rule-strong);
  border-radius: var(--r-xs); background: var(--bg);
}
.ai3d__source-canvas {
  border: 1px solid var(--rule); border-radius: var(--r-md);
  overflow: auto; max-height: 480px; background: #fff;
}
.ai3d__source-canvas canvas { width: 100%; height: auto; }

.ai3d__viewer {
  position: relative;
  min-height: 380px;
  border: 1px solid var(--rule); border-radius: var(--r-md);
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 50% -10%, rgba(250, 38, 0, 0.07), transparent 55%),
    #101014;
}
.ai3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.ai3d__canvas:active { cursor: grabbing; }
/* faint brand watermark behind the transparent canvas: the model occludes it */
.ai3d__wm {
  position: absolute;
  left: 50%; top: 50%;
  width: min(52%, 340px);
  transform: translate(-50%, -50%) rotate(-8deg);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
.ai3d__watermark {
  position: absolute; right: 12px; bottom: 10px;
  font-size: 0.62rem; letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4); pointer-events: none;
}
.ai3d__viewer-hint {
  position: absolute; left: 12px; bottom: 10px;
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35); pointer-events: none;
}
.ai3d__busy {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  background: rgba(16, 16, 20, 0.72); color: #fff;
  font-size: var(--fs-sm);
}
.ai3d__busy[hidden] { display: none; }
.ai3d__spinner {
  width: 22px; height: 22px; border-radius: 99px;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--red);
  animation: spin 0.8s linear infinite;
}
.ai3d__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
  margin-top: var(--s-5); padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}
.ai3d__modes { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.ai3d__bar-side { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.ai3d__nodl { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-3); }
.ai3d__nodl .icon { width: 14px; height: 14px; color: var(--accent-text); }
.ai3d__error { margin-top: var(--s-4); color: var(--accent-text); }
.ai3d__error[hidden] { display: none; }
.ai3d__beta { margin-top: var(--s-6); max-width: 80ch; color: var(--fg-4); }

/* --------------------------------------------------------------------------
   3D gallery page
   -------------------------------------------------------------------------- */
.g3d__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.v3d--tall { height: clamp(400px, 58vh, 620px); }
.p3card__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4); margin-top: var(--s-5);
}
@media (max-width: 820px) { .p3card__grid { grid-template-columns: minmax(0, 1fr); } }
.p3card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2);
  padding: var(--s-5) var(--s-6);
  text-align: left;
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--bg-raised);
  transition: border-color var(--d-base) var(--ease-out),
              background-color var(--d-base) var(--ease-out),
              transform var(--d-press) var(--ease-out);
}
.p3card:active { transform: scale(0.985); }
.p3card__no { font-size: 0.66rem; color: var(--fg-4); letter-spacing: 0.12em; }
.p3card__name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.018em; }
.p3card__sub { font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.p3card__text { font-size: var(--fs-sm); color: var(--fg-3); line-height: 1.55; }
.p3card.is-active { border-color: var(--red); background: color-mix(in srgb, var(--red) 7%, var(--bg-raised)); }
@media (hover: hover) and (pointer: fine) {
  .p3card:not(.is-active):hover { border-color: var(--rule-strong); }
}
.g3d__note { margin-top: var(--s-6); max-width: 70ch; color: var(--fg-4); }
.g3d__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.v3d__cta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3); }
.v3d__cta-sep { color: var(--fg-4); }

/* Nine nav items: switch to the burger a little earlier and tighten gaps. */
@media (max-width: 1280px) {
  .nav__menu { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__inner { justify-content: space-between; }
  .nav__side { margin-left: auto; }
}
@media (min-width: 1281px) and (max-width: 1480px) {
  .nav__list { gap: 2px; }
  .nav__link { padding: 8px 8px; font-size: 0.8rem; }
}

/* Accuracy signalling on the AI 3D Builder — exact CAD vs inferred from a drawing. */
.ai3d__samples { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-5); }
.ai3d__badge {
  position: absolute; z-index: 3; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--r-full);
  background: rgba(16, 16, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em;
}
.ai3d__badge-dot { width: 7px; height: 7px; border-radius: 99px; background: #35C759; }
.ai3d__badge[data-kind="approx"] .ai3d__badge-dot { background: #FFB020; }
.ai3d__accuracy { margin-top: var(--s-4); color: var(--fg-3); max-width: 78ch; }
.ai3d__accuracy[hidden] { display: none; }

/* Spec sheet shown in place of the drawing when the input is already a model. */
.ai3d__spec {
  display: grid; gap: 0;
  border: 1px solid var(--rule); border-radius: var(--r-md);
  background: var(--bg); overflow: hidden;
}
.ai3d__spec[hidden] { display: none; }
.ai3d__spec > div {
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.ai3d__spec > div:last-child { border-bottom: 0; }
.ai3d__spec dt { font-size: var(--fs-sm); color: var(--fg-3); }
.ai3d__spec dd { margin: 0; font-size: var(--fs-sm); font-weight: 600; text-align: right; }

/* --------------------------------------------------------------------------
   Certificate wall — the real scans, framed and hung
   -------------------------------------------------------------------------- */
.cwall-sec {
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--fg) 4%, transparent), transparent 60%),
    var(--bg-sunk);
}
.cwall {
  margin-top: var(--s-10);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: var(--s-5);
  align-items: stretch;
}
@media (max-width: 560px) { .cwall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }
.cwall__item {
  margin: 0;
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  padding: var(--s-4);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-raised);
  transition: transform var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
}

/* Frame: a thin dark moulding with a paper mat inside, lifted off the wall. */
.cwall__frame,
.euc__frame {
  display: block;
  padding: 2px;                /* slim moulding — the mat carries the breathing room */
  border-radius: 2px;
  background: linear-gradient(160deg, #52525b, #26262c 45%, #40404a);
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.14) inset,
    0 4px 10px -6px rgba(16, 16, 22, 0.4);
}
/* Scans come in different aspects; a fixed mat keeps every frame the same
   height so the captions line up across the row. */
.cwall__mat {
  display: grid;
  place-items: center;
  aspect-ratio: 1088 / 1495;
  padding: 6px;
  background: #f7f6f3;
  box-shadow: 0 0 0 1px rgba(20, 20, 26, 0.12) inset;
}
.cwall__img {
  display: block;
  width: 100%; height: 100%;
  min-width: 0; min-height: 0;
  object-fit: contain;
  background: #fff;
}
.cwall__cap { display: flex; flex-direction: column; gap: 3px; margin-top: var(--s-4); flex: 1; }
.cwall__code {
  font-size: 0.85rem; font-weight: 700; letter-spacing: -0.012em;
  color: var(--fg);
}
/* Description deliberately set in the technical mono face, not the UI sans —
   it reads as an archival label under the scan. */
.cwall__desc {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--fg-3);
}
.cwall__line {
  margin-top: auto;            /* pin to the card foot */
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  font-size: 0.6rem;
  line-height: 1.5;
  /* reserve two lines so the rule sits at the same height on every card,
     even where the certificate number and validity wrap */
  min-height: calc(2 * 1.5em + var(--s-3));
  letter-spacing: 0.04em;
  color: var(--fg-4);
}
.cwall__frame--none { cursor: default; }
.cwall__noscan {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  color: var(--ink-5); background: #f7f6f3;
}
.cwall__noscan .icon { width: 44px; height: 44px; }
/* Hang them at slightly different heights so it reads as a wall, not a table. */

@media (hover: hover) and (pointer: fine) {
  .cwall__item:hover {
    transform: translateY(-3px);
    border-color: var(--rule-strong);
    box-shadow: var(--sh-3);
  }
}
.cwall__item:focus-visible { outline: none; }
.cwall__item:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}
:root[data-theme="dark"] .cwall__frame {
  background: linear-gradient(160deg, #55555e, #2a2a31 45%, #43434c);
}


/* The wall sits on a dark ground, so the moulding needs its own contrast. */
[data-tone="night"] .cwall__frame,
[data-tone="night"] .euc__frame {
  background: linear-gradient(160deg, #61616b, #2f2f36 45%, #4e4e58);
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.18) inset,
    0 6px 14px -8px rgba(0, 0, 0, 0.6);
}

/* Sub-page labels on the EU index are long; clamp to two lines so one rich card
   does not set the height of its whole grid row. Full text stays in title=. */
.euc__sub-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.euc__subs a { align-items: flex-start; }
.euc__subs .icon { margin-top: 3px; }

/* --------------------------------------------------------------------------
   European-projects dropdown — the original site's two-level menu
   -------------------------------------------------------------------------- */
.nav__has-sub { position: static; }
.nav__caret {
  width: 13px; height: 13px; margin-left: 3px;
  transition: transform var(--d-fast) var(--ease-out);
}
.nav__has-sub.is-open .nav__caret { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--paper);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--d-fast) var(--ease-out),
              transform var(--d-fast) var(--ease-out),
              visibility 0s linear var(--d-fast);
}
.nav__has-sub.is-open .nav__sub {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav__sub-inner {
  max-width: var(--maxw-wide, 1560px);
  margin-inline: auto;
  padding: var(--s-8) var(--gutter);
  max-height: min(70vh, 620px);
  overflow-y: auto;
}
/* Panel body: the running projects as status cards on the left, the
   completed archive as a numbered index flowing down two columns. */
.nav__sub-cols {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: var(--s-6) var(--s-12);
  align-items: start;
}
.nav__sub-head {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.nav__sub-card {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s-4) var(--s-5);
  background: var(--bg-sunk);
}
.nav__sub-card + .nav__sub-card { margin-top: var(--s-3); }
.nav__sub-card__status {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red-ink);
}
.nav__sub-led {
  width: 7px; height: 7px; border-radius: var(--r-full); flex: none;
  background: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent);
  animation: nav-led 2.4s var(--ease-out) infinite;
}
@keyframes nav-led { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .nav__sub-led { animation: none; } }
.nav__sub-card__title {
  display: block;
  margin-top: var(--s-3);
  font-size: 0.85rem; font-weight: 650; line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color var(--d-fast) var(--ease-out);
}
.nav__sub-card__meta {
  margin-top: 3px;
  font-size: 0.62rem; color: var(--ink-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav__sub-card__meta + .nav__sub-card__meta { margin-top: 1px; }
.nav__sub-card .nav__sub-kids {
  margin-top: var(--s-3); padding-top: var(--s-2);
  border-top: 1px dashed var(--line);
}
.nav__sub-new {
  font-size: 0.56rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--red-ink); border: 1px solid var(--red-ink);
  border-radius: var(--r-full); padding: 1px 5px; flex: none;
  margin-left: auto;
}
.nav__sub-index {
  columns: 2; column-gap: var(--s-12);
  margin: 0; padding: 0; list-style: none;
}
.nav__sub-group { break-inside: avoid; padding-bottom: var(--s-4); max-width: 100%; overflow: hidden; }
.nav__sub-lead {
  display: flex; align-items: baseline; gap: var(--s-3);
  font-size: 0.8rem; font-weight: 650; line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color var(--d-fast) var(--ease-out);
}
.nav__sub-num { font-size: 0.6rem; color: var(--red-ink); flex: none; }
.nav__sub-lead__t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__sub-yr { margin-left: auto; padding-left: var(--s-3); flex: none; font-size: 0.62rem; color: var(--ink-4); }
.nav__sub-kids { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin-top: 1px; }
.nav__sub-kids li { min-width: 0; }
.nav__sub-index .nav__sub-kids { padding-left: 21px; }
.nav__sub-child {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 0;
  font-size: 0.74rem; line-height: 1.45;
  color: var(--ink-3);
  transition: color var(--d-fast) var(--ease-out);
}
.nav__sub-child .icon { width: 12px; height: 12px; flex: none; color: var(--ink-5); }
.nav__sub-child span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__sub-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
  margin-top: var(--s-5); padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.nav__sub-count {
  font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4);
}
@media (hover: hover) and (pointer: fine) {
  .nav__sub-card__title:hover, .nav__sub-lead:hover { color: var(--red-ink); }
  .nav__sub-child:hover { color: var(--ink); }
  .nav__sub-child:hover .icon { color: var(--red-ink); }
}
@media (max-width: 1200px) {
  .nav__sub-cols { grid-template-columns: 290px minmax(0, 1fr); gap: var(--s-6) var(--s-8); }
  .nav__sub-index { column-gap: var(--s-8); }
}

/* Mobile: the same tree as a collapsible block inside the sheet. */
.mobile-menu .nav__has-sub { position: relative; }
.mobile-menu .nav__caret { margin-left: auto; width: 18px; height: 18px; }
.mobile-menu .nav__link { display: flex; align-items: center; }
.mobile-menu .nav__sub {
  position: static;
  opacity: 1; visibility: visible; transform: none;
  background: none; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  display: none;
}
.mobile-menu .nav__has-sub.is-open .nav__sub { display: block; }
.mobile-menu .nav__sub-inner { padding: 0 0 var(--s-5); max-height: none; overflow: visible; }
.mobile-menu .nav__sub-cols { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.mobile-menu .nav__sub-index { columns: 1; }
.mobile-menu .nav__sub-lead { font-size: 0.92rem; }
.mobile-menu .nav__sub-child { font-size: 0.84rem; padding: 6px 0; }
.mobile-menu .nav__sub-lead__t,
.mobile-menu .nav__sub-child span {
  white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.mobile-menu .nav__sub-foot { flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   EU project detail — key figures beside the verbatim text
   -------------------------------------------------------------------------- */
.eud__aside { display: grid; gap: var(--s-5); align-content: start; position: sticky; top: calc(var(--nav-h) + 20px); }
@media (max-width: 900px) { .eud__aside { position: static; } }
.eufacts {
  display: grid; gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-raised);
}
.eufacts .euc__status { justify-self: start; }
.eufacts__list { display: grid; gap: 6px; }
.eufacts__row { display: flex; justify-content: space-between; gap: var(--s-3); font-size: 0.76rem; }
.eufacts__row dt { color: var(--fg-3); }
.eufacts__row dd { margin: 0; text-align: right; font-weight: 600; color: var(--fg); }

/* --------------------------------------------------------------------------
   EU projects timeline
   -------------------------------------------------------------------------- */
/* Compact gantt (2026-09-01): one 25px line per project — slim bar at its
   axis position, single-line label beside it on whichever side has room.
   Details live in the hint strip below the chart (JS) and in title tooltips. */
.tml-sec { background: var(--bg-sunk); }
.tml__chips { margin-top: var(--s-8); }
.tml {
  position: relative;
  margin-top: var(--s-6);
  padding: var(--s-6) 0 var(--s-4);
}

/* year rules + today marker across the full chart width */
.tml__grid { position: absolute; inset: 0; pointer-events: none; }
.tml__year { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.tml__year-label {
  position: absolute; top: -2px; left: 0;
  transform: translateX(-50%);
  font-size: 0.62rem; color: var(--fg-3);
  background: var(--bg-sunk); padding: 0 4px;
}
.tml__now { position: absolute; top: 12px; bottom: 0; width: 1.5px; background: var(--red); }
.tml__now-label {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: var(--red-btn);
  padding: 1px 6px; border-radius: var(--r-full); white-space: nowrap;
}

.tml__rows { position: relative; display: grid; gap: 3px; padding-top: var(--s-6); }
.tml__row {
  position: relative;
  height: 25px;
  border-radius: var(--r-xs);
  transition: opacity var(--d-base) var(--ease-out);
}
.tml__bar {
  position: absolute; top: 4px; height: 17px;
  left: var(--l); width: var(--w);
  border-radius: var(--r-full);
  display: flex; align-items: center; padding: 0 8px;
  overflow: hidden;
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
  transform-origin: left center;
}
.tml__bar--ciep { background: linear-gradient(90deg, var(--red-btn), #FF7A5C); }
.tml__bar--rrp  { background: linear-gradient(90deg, #1F6FEB, #64A6FF); }
.tml__bar--opic { background: linear-gradient(90deg, #454C57, #6B7280); }
.tml__bar-period {
  font-size: 0.56rem; color: #fff; white-space: nowrap;
  opacity: 0; transition: opacity var(--d-fast) var(--ease-out);
}
.tml__label {
  position: absolute; top: 0;
  line-height: 25px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: -0.01em; color: var(--fg-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--d-fast) var(--ease-out);
}
.tml__row--rgt .tml__label {
  left: calc(var(--l) + var(--w) + 0.8%);
  max-width: calc(98.5% - var(--l) - var(--w));
}
.tml__row--lft .tml__label {
  right: calc(100% - var(--l) + 0.8%);
  max-width: calc(var(--l) - 1.5%);
  text-align: right;
}
@media (hover: hover) and (pointer: fine) {
  .tml__row:hover .tml__label { color: var(--fg); }
  .tml__row:hover .tml__bar { transform: scaleY(1.18); box-shadow: var(--sh-2); }
  .tml__row:hover .tml__bar-period { opacity: 1; }
}
.tml__row:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.tml__row.is-dim { opacity: 0.22; }

.tml__dot { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.tml__dot--ciep { background: var(--red-btn); }
.tml__dot--rrp { background: #1F6FEB; }
.tml__dot--opic { background: #545B66; }

/* live detail line under the chart — fixed height, so hover never reflows */
.tml__hint {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  font-size: 0.64rem; color: var(--fg-3);
  min-height: 1.6em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.tml__undated {
  margin-top: var(--s-2); color: var(--fg-3);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px;
}
.tml__undated-head { font-weight: 600; }
.tml__undated-item {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--fg-2); font-weight: 600;
  transition: color var(--d-fast) var(--ease-out), opacity var(--d-base) var(--ease-out);
}
.tml__undated-item.is-dim { opacity: 0.22; }
@media (hover: hover) and (pointer: fine) { .tml__undated-item:hover { color: var(--accent-text); } }
.tml__undated-note { color: var(--fg-3); }

@media (max-width: 760px) {
  /* year rules stay; labels move above their bars — two thin lines per row */
  .tml__year-label { display: none; }
  .tml__now-label { font-size: 0.54rem; }
  .tml__row { height: 42px; }
  .tml__row--rgt .tml__label, .tml__row--lft .tml__label {
    left: 0; right: auto; max-width: 100%;
    text-align: left; line-height: 20px;
  }
  .tml__bar { top: 22px; }
  .tml__bar-period { display: none; }
  .tml__hint { display: none; }
}

/* --------------------------------------------------------------------------
   Day/night switch — ported from the Mubu trading dashboard.
   Everything hangs off html[data-theme]: the knob, the two emoji, the sky and
   the stars all animate off that single attribute change, so the switch cannot
   disagree with the page — including on first paint, where the theme is
   restored from localStorage before this element has ever been touched.
   -------------------------------------------------------------------------- */
.thsw {
  position: relative;
  border: 0; background: none; padding: 0;
  cursor: pointer; line-height: 0;
  -webkit-tap-highlight-color: transparent;
  flex: none;
}
/* Keeps the touch target at 44pt while the visible track stays header-sized. */
.thsw::after { content: ""; position: absolute; left: -8px; right: -8px; top: -9px; bottom: -9px; }

.thsw-track {
  position: relative; display: block;
  width: 46px; height: 25px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  background: linear-gradient(160deg, #141a2e, #0d1120);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
  transition: background 550ms var(--ease-out), box-shadow 550ms var(--ease-out);
}
html[data-theme="light"] .thsw-track {
  background: linear-gradient(160deg, #8fd0ff, #4aa8f0);
  box-shadow: inset 0 1px 3px rgba(0, 60, 120, 0.25);
}

/* Three stars painted with one radial-gradient stack, so the night sky costs no
   extra DOM. They fade as the sun comes up rather than flipping off. */
.thsw-stars {
  position: absolute; inset: 0; opacity: 1;
  transition: opacity 450ms var(--ease-out);
  background:
    radial-gradient(1.4px 1.4px at 12px 8px, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(1.1px 1.1px at 20px 17px, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(1px 1px at 9px 18px, rgba(255, 255, 255, 0.6), transparent 60%);
}
html[data-theme="light"] .thsw-stars { opacity: 0; }

.thsw-knob {
  position: absolute; top: 2px; left: 2px;
  width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 30%, #fffdf6, #e8ecf5 70%, #cfd6e6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: transform 480ms var(--ease-spring),
              background 500ms var(--ease-out),
              box-shadow 500ms var(--ease-out);
}
html[data-theme="light"] .thsw-knob {
  transform: translateX(21px);
  background: radial-gradient(circle at 34% 30%, #fff6cf, #ffd76a 68%, #f6b52e);
  box-shadow: 0 2px 10px rgba(246, 181, 46, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Both glyphs stay in the DOM, stacked; cross-fading them is what makes the swap
   read as the sun rotating INTO the moon rather than one character replacing
   another mid-slide. */
.thsw-face {
  position: absolute; font-size: 11px; line-height: 1;
  transition: opacity 340ms var(--ease-out), transform 480ms var(--ease-spring);
}
.thsw-moon { opacity: 1; transform: rotate(0) scale(1); }
.thsw-sun { opacity: 0; transform: rotate(-120deg) scale(0.3); }
html[data-theme="light"] .thsw-moon { opacity: 0; transform: rotate(120deg) scale(0.3); }
html[data-theme="light"] .thsw-sun { opacity: 1; transform: rotate(0) scale(1); }

.thsw:active .thsw-knob { width: 23px; border-radius: 999px; }  /* squash, like a real switch */
.thsw:focus-visible { outline: none; }
.thsw:focus-visible .thsw-track { outline: 2px solid var(--accent-text); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .thsw-track, .thsw-stars, .thsw-knob, .thsw-face { transition: none; }
}

/* In the mobile sheet it sits beside the language pill. */
.mobile-menu__foot {
  display: flex; align-items: center; gap: var(--s-5);
  margin-top: var(--s-8);
}
.mobile-menu__foot .mobile-menu__lang { margin-top: 0; }
@media (max-width: 380px) { .thsw--mobile .thsw-track { width: 42px; height: 23px; } }


/* ==========================================================================
   EU projects index — restructured list (jump bar, status groups, row-cards)
   ========================================================================== */
/* --------------------------------------------------------------------------
   EU projects index — restructured list (jump bar · status groups · row-cards)
   Appended to app.css. Old .euc styles remain for safety; the index no longer
   emits .euc/.euc__grid markup.
   -------------------------------------------------------------------------- */

/* in-page jump bar ---------------------------------------------------------- */
.eu-jump {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
@supports not (backdrop-filter: blur(1px)) { .eu-jump { background: var(--bg); } }
.eu-jump__inner {
  display: flex; align-items: center; gap: var(--s-2);
  min-height: 46px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.eu-jump__inner::-webkit-scrollbar { display: none; }
.eu-jump__label {
  color: var(--fg-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: var(--s-2);
}
.eu-jump__link {
  flex: none;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--fg-2);
  white-space: nowrap;
  transition: color var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-out),
              background var(--d-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .eu-jump__link:hover { color: var(--accent-text); border-color: var(--red); }
}
@media (max-width: 560px) { .eu-jump__label { display: none; } }

/* anchor targets land clear of the fixed nav + jump bar */
.eu-anchor, #all-projects { scroll-margin-top: calc(var(--nav-h) + 56px); }

/* list section -------------------------------------------------------------- */
.eul__chips { margin-bottom: var(--s-10); }

.eul { display: grid; gap: var(--s-14); }
.eul__group { display: grid; gap: var(--s-5); }
.eul__group.is-hidden { display: none; }

.eul__ghead {
  display: flex; align-items: center; gap: var(--s-4);
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: var(--tr-head);
}
.eul__gcount {
  flex: none;
  min-width: 30px; height: 26px;
  display: inline-grid; place-items: center;
  padding: 0 8px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  color: var(--fg-3);
}
.eul__grule { flex: 1; height: 1px; background: var(--rule); }

/* row-card ------------------------------------------------------------------ */
.eur {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: var(--s-8);
  row-gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-raised);
  transition: border-color var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .eur:hover { border-color: var(--rule-strong); box-shadow: var(--sh-2); }
}
.eur.is-hidden { display: none; }
.eur--nologo { grid-template-columns: minmax(0, 1fr); }

/* compliance artwork keeps the framed-white-mat treatment of the old cards */
.eur__frame {
  grid-row: 1;
  align-self: start;
  display: block;
  padding: 2px;
  border-radius: 2px;
  background: linear-gradient(160deg, #52525b, #26262c 45%, #40404a);
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.14) inset,
    0 4px 10px -6px rgba(16, 16, 22, 0.4);
}
.eur__mat {
  display: grid; place-items: center;
  grid-auto-flow: column;
  gap: 10px;
  aspect-ratio: 16 / 7;
  padding: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 20, 26, 0.1) inset;
}
.eur__img {
  width: 100%; height: 100%;
  min-width: 0; min-height: 0;
  object-fit: contain;
}

.eur__body { display: grid; gap: var(--s-2); align-content: start; }
.eur__top {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-2) var(--s-3);
}
.eur__status {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eur__status--active { background: var(--red-wash); color: var(--accent-text); }
.eur__status--done { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg-3); }
.eur__new {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent-text);
  border: 1px solid currentColor;
  border-radius: var(--r-full);
  padding: 2px 8px;
}
.eur__prog { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; }
.eur__prog-name {
  font-size: 0.68rem;
  letter-spacing: 0.005em;
  color: var(--fg-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eur__title { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -0.016em; line-height: 1.3; }
.eur__title a { transition: color var(--d-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .eur__title a:hover { color: var(--accent-text); } }
.eur__no { font-size: 0.72rem; color: var(--accent-text); }

.eur__facts {
  display: flex; flex-wrap: wrap;
  gap: var(--s-2) var(--s-8);
  margin-top: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
.eur__fact { display: grid; gap: 2px; }
.eur__fact dt {
  font-size: var(--fs-xs);
  color: var(--fg-4);
  letter-spacing: 0.04em;
}
.eur__fact dd { margin: 0; font-size: 0.8rem; font-weight: 600; }

/* documents + open link ----------------------------------------------------- */
.eur__foot {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--s-3);
  border-top: 1px solid var(--rule);
  padding-top: var(--s-4);
}
.eur--nologo .eur__foot { grid-column: 1; }
.eur__docs { min-width: 0; }
.eur__docs-sum {
  display: flex; align-items: center; gap: var(--s-2);
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--fg-2);
  padding: var(--s-1) 0;
  transition: color var(--d-fast) var(--ease-out);
  -webkit-user-select: none; user-select: none;
}
.eur__docs-sum::-webkit-details-marker { display: none; }
.eur__docs-sum::marker { content: ""; }
@media (hover: hover) and (pointer: fine) { .eur__docs-sum:hover { color: var(--accent-text); } }
.eur__docs-sum .icon { width: 16px; height: 16px; color: var(--fg-4); }
.eur__docs-n {
  min-width: 24px; height: 20px;
  display: inline-grid; place-items: center;
  padding: 0 6px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-full);
  font-size: 0.68rem;
  color: var(--fg-3);
}
.eur__docs-caret {
  width: 15px; height: 15px;
  margin-left: auto;
  transition: transform var(--d-base) var(--ease-out);
}
.eur__docs[open] .eur__docs-caret { transform: rotate(180deg); }
.eur__docs-list {
  display: grid; gap: 2px;
  margin-top: var(--s-2);
  padding: var(--s-2) 0 var(--s-1) calc(16px + var(--s-2));
  border-left: 2px solid var(--rule);
}
.eur__docs-list a {
  display: flex; align-items: flex-start; gap: var(--s-2);
  padding: var(--s-2) 0;
  font-size: var(--fs-sm);
  color: var(--fg-2);
  transition: color var(--d-fast) var(--ease-out);
}
.eur__docs-list .icon { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--fg-4); }
@media (hover: hover) and (pointer: fine) { .eur__docs-list a:hover { color: var(--accent-text); } }
.eur__go { margin: 0; }

/* responsive ---------------------------------------------------------------- */
@media (max-width: 760px) {
  .eur { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-4); padding: var(--s-5); }
  .eur__frame { grid-row: auto; max-width: 300px; }
  .eur__foot { grid-column: 1; }
  .eur__facts { gap: var(--s-2) var(--s-6); }
}
@media (max-width: 420px) {
  .eur__prog { flex-basis: 100%; }
  .eur__facts { flex-direction: column; gap: var(--s-2); }
  .eur__fact { display: flex; justify-content: space-between; gap: var(--s-3); }
}


/* ==========================================================================
   Industries — three animated machining scenes
   ========================================================================== */
/* --------------------------------------------------------------------------
   Industries — three animated machining scenes (glass / defence / automotive)
   Scenes are decorative SVG; motion runs only while a panel carries .is-live
   (set by industries() in app.js) and freezes to a designed static pose under
   prefers-reduced-motion via the base.css global kill-switch.
   -------------------------------------------------------------------------- */
.ind { position: relative; overflow: hidden; }
.ind::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 50% at 85% 0%, rgba(250, 38, 0, 0.07), transparent 62%),
    radial-gradient(60% 44% at 8% 96%, rgba(250, 38, 0, 0.05), transparent 60%);
}
.ind .wrap { position: relative; z-index: 1; }
.ind__panels { display: grid; gap: clamp(64px, 8vw, 128px); margin-top: clamp(40px, 5vw, 72px); }

.ind-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}
.ind-panel--flip .ind-panel__text { order: 2; }
.ind-panel--flip .ind-scene { order: 1; }

/* oversized outlined index numeral behind the text column */
.ind-panel__num {
  position: absolute;
  top: -0.28em;
  left: -0.04em;
  z-index: 0;
  font-family: var(--font-mono);
  font-size: clamp(96px, 11vw, 168px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--night-line);
  pointer-events: none;
  user-select: none;
}
.ind-panel--flip .ind-panel__num { left: auto; right: -0.04em; }

.ind-panel__text { position: relative; z-index: 1; }
.ind-panel__kicker {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent-text);
}
.ind-panel__title { margin-top: var(--s-4); }
.ind-panel__body { margin-top: var(--s-5); color: var(--fg-2); max-width: 46ch; }

.ind-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); padding: 0; list-style: none; }
.ind-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--night-line);
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: color-mix(in srgb, var(--night-2) 60%, transparent);
}
.ind-tag::before { content: '▸'; color: var(--accent-text); font-size: 0.62rem; }

/* --- the scene viewport ------------------------------------------------- */
.ind-scene { position: relative; min-width: 0; }
.ind-scene__frame {
  position: relative;
  border: 1px solid var(--night-line);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--night-2) 88%, transparent), var(--night)),
    var(--night);
  background-image:
    linear-gradient(to right, rgba(180, 196, 214, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 196, 214, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  will-change: transform;
  transition: transform 300ms var(--ease-out);
}
/* comparator-style corner ticks, two red corners */
.ind-scene__frame::before,
.ind-scene__frame::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 0 solid var(--red);
  opacity: 0.85;
  pointer-events: none;
}
.ind-scene__frame::before { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.ind-scene__frame::after { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }

.ind-scene__bar {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--night-ink-3);
  pointer-events: none;
  white-space: nowrap;
}
.ind-scene__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.is-live .ind-scene__dot { animation: ind-led 1.8s var(--ease-in-out) infinite; }
@keyframes ind-led { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.ind-scene__svg { display: block; width: 100%; height: auto; }

/* --- shared scene strokes ------------------------------------------------ */
.ind-scene__svg .ind-steel   { fill: #23232B; stroke: var(--steel-light); stroke-width: 1.5; }
.ind-scene__svg .ind-steel-2 { fill: #2C2C36; stroke: var(--steel-light); stroke-width: 1.5; }
.ind-scene__svg .ind-axis {
  stroke: var(--steel); stroke-width: 1;
  stroke-dasharray: 14 5 2 5; opacity: 0.5;
}
.ind-scene__svg .ind-cross { stroke: var(--steel); stroke-width: 1; opacity: 0.7; }
.ind-scene__svg .ind-cross-c { fill: var(--red); }
.ind-scene__svg .ind-ann {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  fill: var(--night-ink-3);
}
.ind-scene__svg .ind-ann--red { fill: var(--accent-text); }
.ind-scene__svg .ind-dim path { stroke: var(--steel); stroke-width: 1; opacity: 0.65; }
.ind-scene__svg .ind-lead { stroke: var(--steel); stroke-width: 1; opacity: 0.65; }
.ind-scene__svg .ind-tool-edge { fill: var(--red); stroke: none; }
.ind-scene__svg .ind-gear { fill: rgba(35, 35, 43, 0.85); stroke: var(--steel-light); stroke-width: 1.6; }
.ind-scene__svg .ind-gear__dot { fill: var(--red); }

/* --- rotation: one keyframe pair, three exact speeds ---------------------
   The meshing phase sits on a parent <g> as an SVG attribute; these classes
   only ever spin from 0, so attribute and animation never fight. fill-box
   keeps the rotation centred on each gear regardless of ancestors. */
.ind-spin { transform-box: fill-box; transform-origin: center; }
@keyframes ind-rot-cw  { to { transform: rotate(1turn); } }
@keyframes ind-rot-ccw { to { transform: rotate(-1turn); } }
/* z12 · z18 · z24 → periods 8s / 12s / 16s keep pitch-line speed identical */
.is-live .ind-spin--a { animation: ind-rot-cw 8s linear infinite; }
.is-live .ind-spin--b { animation: ind-rot-ccw 12s linear infinite; }
.is-live .ind-spin--c { animation: ind-rot-cw 16s linear infinite; }
.is-live .ind-spin--chuck { animation: ind-rot-cw 2.6s linear infinite; }

/* --- sparks and chips ----------------------------------------------------- */
.ind-spark {
  stroke: #FFC24D; stroke-width: 1.6; stroke-linecap: round; opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
.is-live .ind-spark { animation: ind-spark 0.42s steps(2, jump-none) infinite; }
@keyframes ind-spark { 0% { opacity: 0.95; transform: scale(1); } 100% { opacity: 0.1; transform: scale(0.72); } }

.ind-chip { fill: var(--steel-light); opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-live .ind-chip--1 { animation: ind-chip1 1.1s linear infinite; }
.is-live .ind-chip--2 { animation: ind-chip2 1.3s linear 0.35s infinite; }
.is-live .ind-chip--3 { animation: ind-chip3 0.9s linear 0.6s infinite; }
@keyframes ind-chip1 { 0% { opacity: 0.9; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(34px, 26px) rotate(140deg); } }
@keyframes ind-chip2 { 0% { opacity: 0.9; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(-26px, 30px) rotate(-120deg); } }
@keyframes ind-chip3 { 0% { opacity: 0.8; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(24px, -18px) rotate(90deg); } }

/* --- defence scene -------------------------------------------------------- */
.ind-tex path { stroke: rgba(180, 196, 214, 0.28); stroke-width: 1; }
.is-live .ind-tex { animation: ind-tex 0.7s linear infinite; }
@keyframes ind-tex { from { transform: translateX(0); } to { transform: translateX(-12px); } }
.is-live .ind-carriage { animation: ind-feed 7s var(--ease-in-out) infinite alternate; }
@keyframes ind-feed { from { transform: translateX(36px); } to { transform: translateX(-52px); } }

/* --- glass scene ----------------------------------------------------------
   Static pose = 0% = closed mould, formed bottle, soft heat. The loop:
   open → gob drops → close → glow + contour draw → cool → back to pose. */
.is-live .ind-half--l { animation: ind-half-l 9s var(--ease-in-out) infinite; }
.is-live .ind-half--r { animation: ind-half-r 9s var(--ease-in-out) infinite; }
@keyframes ind-half-l {
  0%, 78% { transform: translateX(0); }
  8%, 26% { transform: translateX(-46px); }
  34%, 100% { transform: translateX(0); }
}
@keyframes ind-half-r {
  0%, 78% { transform: translateX(0); }
  8%, 26% { transform: translateX(46px); }
  34%, 100% { transform: translateX(0); }
}

.ind-gob { fill: url(#indg-glass); opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-live .ind-gob { animation: ind-gob 9s var(--ease-in-out) infinite; }
@keyframes ind-gob {
  0%, 9% { opacity: 0; transform: translateY(-16px) scale(0.9); }
  13% { opacity: 1; transform: translateY(0) scale(1); }
  27% { opacity: 1; transform: translateY(118px) scale(1.06, 0.94); }
  33%, 100% { opacity: 0; transform: translateY(150px) scale(1.4, 0.5); }
}

.ind-bottle { stroke: url(#indg-glass); stroke-width: 2.2; stroke-linecap: round; }
.ind-bottle-glow { stroke: #FF5C22; stroke-width: 9; stroke-linecap: round; opacity: 0.22; filter: blur(6px); }
.is-live .ind-bottle {
  stroke-dasharray: 980;
  animation: ind-bottle 9s linear infinite;
}
@keyframes ind-bottle {
  0%, 4% { stroke-dashoffset: 0; opacity: 1; }
  8%, 34% { stroke-dashoffset: 980; opacity: 0; }
  36% { opacity: 1; }
  62%, 100% { stroke-dashoffset: 0; opacity: 1; }
}
.is-live .ind-bottle-glow { animation: ind-bglow 9s var(--ease-in-out) infinite; }
@keyframes ind-bglow {
  0%, 4% { opacity: 0.22; }
  8%, 34% { opacity: 0; }
  44% { opacity: 0.5; }
  70%, 100% { opacity: 0.22; }
}
.ind-heat { opacity: 0.5; transform-box: fill-box; transform-origin: center; }
.is-live .ind-heat { animation: ind-heat 9s var(--ease-in-out) infinite; }
@keyframes ind-heat {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  20% { opacity: 0.3; transform: scale(0.94); }
  48% { opacity: 0.95; transform: scale(1.05); }
  74% { opacity: 0.55; transform: scale(1); }
}
.ind-mould { fill: #23232B; stroke: var(--steel-light); stroke-width: 1.6; }
.ind-mould-hatch { stroke: rgba(180, 196, 214, 0.16); stroke-width: 1; }

/* --- automotive: milling head bob (inner group; position sits on parent) -- */
.is-live .ind-mill-bob { animation: ind-millbob 1.6s var(--ease-in-out) infinite; }
@keyframes ind-millbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2.4px); } }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1020px) {
  .ind-panel { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .ind-panel--flip .ind-panel__text { order: 1; }
  .ind-panel--flip .ind-scene { order: 2; }
  .ind-panel__num { font-size: 96px; top: -0.35em; }
}
@media (max-width: 560px) {
  .ind-scene__bar { display: none; }
  .ind-tag { font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ind-scene__frame { transform: none; }
  .ind-spark, .ind-chip, .ind-gob { opacity: 0 !important; }
}

/* --------------------------------------------------------------------------
   Hero — alive pass: kinetic title, toolpath draw, staged fade-ins
   -------------------------------------------------------------------------- */
.kin { display: block; overflow: clip; padding-block: 0.08em; margin-block: -0.08em; }
.kin__in {
  display: inline-block;
  transform: translateY(115%);
  animation: kin-up 860ms var(--ease-out) forwards;
  animation-delay: calc(200ms + var(--kin-d, 0ms));
}
@keyframes kin-up { to { transform: translateY(0); } }
.no-js .kin__in { transform: none; animation: none; }

.hero .eyebrow, .hero__lead, .hero__actions {
  opacity: 0;
  animation: hero-fade 800ms var(--ease-out) forwards;
}
.hero .eyebrow { animation-delay: 160ms; }
.hero__lead { animation-delay: 520ms; }
.hero__actions { animation-delay: 680ms; }
@keyframes hero-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.no-js .hero .eyebrow, .no-js .hero__lead, .no-js .hero__actions { opacity: 1; animation: none; }

/* the machining grid crawls one cell per 40s — loops seamlessly */
.hero__grid { animation: hero-grid 40s linear infinite; }
@keyframes hero-grid { to { background-position: 72px 72px; } }

.hero__toolpath { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__toolpath svg { width: 100%; height: 100%; display: block; }
.hero__tp-line {
  stroke: currentColor; color: var(--fg);
  opacity: 0.13; stroke-width: 1.5;
  stroke-dasharray: 1700; stroke-dashoffset: 1700;
  animation: hero-tp-draw 2.6s var(--ease-out) 500ms forwards;
}
@keyframes hero-tp-draw { to { stroke-dashoffset: 0; } }
.hero__tp-cross {
  stroke: var(--red); stroke-width: 1.5; opacity: 0;
  animation: hero-tp-in 600ms var(--ease-out) 2.4s forwards;
}
@keyframes hero-tp-in { to { opacity: 0.75; } }
.hero__tp-dot {
  fill: var(--red); opacity: 0;
  offset-path: path('M60 588 H340 Q368 588 368 560 V416 Q368 388 396 388 H804 Q832 388 832 416 V560 Q832 588 860 588 H1140');
  offset-rotate: 0deg;
  animation: hero-tp-travel 22s linear 3.2s infinite;
}
@keyframes hero-tp-travel {
  0% { offset-distance: 0%; opacity: 0; }
  3% { opacity: 0.9; }
  97% { opacity: 0.9; }
  100% { offset-distance: 100%; opacity: 0; }
}
@supports not (offset-path: path('M0 0H10')) { .hero__tp-dot { display: none; } }
@media (max-width: 900px) { .hero__toolpath { display: none; } }

/* primary buttons: red surface, light sweep on hover-in only */
.btn { position: relative; overflow: hidden; }
.btn--primary::before {
  content: '';
  position: absolute; inset: 0;
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.22) 50%, transparent 75%);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover::before {
    transform: translateX(130%) skewX(-18deg);
    transition: transform 640ms var(--ease-out);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kin__in, .hero .eyebrow, .hero__lead, .hero__actions {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .hero__grid { animation: none; }
  .hero__tp-line { stroke-dashoffset: 0; animation: none; }
  .hero__tp-cross { opacity: 0.75; animation: none; }
  .hero__tp-dot { display: none; }
}


/* ==========================================================================
   Contact — spec-card channels, distance graph, RFQ form (Motion-driven)
   ========================================================================== */
/* --------------------------------------------------------------------------
   Contact — channel spec-cards, distance graph, RFQ form, map
   The industries drawing-frame idiom carried onto the light page tone:
   token-driven so both themes hold.
   -------------------------------------------------------------------------- */
.ct__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: clamp(28px, 3.5vw, 48px);
}
@media (max-width: 1100px) { .ct__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ct__grid { grid-template-columns: minmax(0, 1fr); } }

.ct-card,
.ct-route,
.ct-form {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background:
    linear-gradient(to right, color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px),
    var(--bg-raised);
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow: var(--sh-1);
  overflow: hidden;
}
/* comparator corner ticks, two red corners — same as the industry scenes */
.ct-card::before, .ct-route::before, .ct-form::before,
.ct-card::after, .ct-route::after, .ct-form::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 0 solid var(--red);
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}
.ct-card::before, .ct-route::before, .ct-form::before {
  top: 9px; left: 9px; border-top-width: 2px; border-left-width: 2px;
}
.ct-card::after, .ct-route::after, .ct-form::after {
  bottom: 9px; right: 9px; border-bottom-width: 2px; border-right-width: 2px;
}

.ct-card { padding: var(--s-8) var(--s-6) var(--s-6); }

.ct-card__bar {
  position: absolute;
  top: 12px; right: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-4);
}
.ct-card__bar--left { right: auto; left: 16px; }
.ct-card__led {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  animation: ind-led 1.8s var(--ease-in-out) infinite;
}
@media (prefers-reduced-motion: reduce) { .ct-card__led { animation: none !important; } }

.ct-card__ico {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  color: var(--accent-text);
  background: color-mix(in srgb, var(--red) 6%, transparent);
}
.ct-card__title { margin-top: var(--s-4); }
.ct-card__rows { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.ct-card__addr { font-style: normal; line-height: 1.55; color: var(--fg-2); }
.ct-card__legal { font-weight: 600; margin-bottom: var(--s-2); }

.ct-row {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 30px;
  border-bottom: 1px dashed var(--rule);
  padding-bottom: var(--s-2);
}
.ct-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ct-row--tail { margin-top: var(--s-3); }
.ct-row__k {
  flex: none;
  min-width: 44px;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.ct-row__v {
  font-size: var(--fs-sm);
  color: var(--fg);
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.ct-row__v:hover { color: var(--accent-text); }

.ct-copy {
  position: relative;
  flex: none;
  margin-left: auto;
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--rule);
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--fg-3);
  cursor: pointer;
  transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}
.ct-copy:hover { color: var(--accent-text); border-color: var(--rule-strong); }
.ct-copy .icon { width: 15px; height: 15px; }
.ct-copy__flag {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  translate: 0 -50%;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
.ct-copy__flag:not(:empty) { opacity: 1; }
.no-js .ct-copy { display: none; }

/* --- form + route band --------------------------------------------------- */
.ct-duo__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
@media (max-width: 980px) { .ct-duo__grid { grid-template-columns: minmax(0, 1fr); } }

.ct-form { padding: var(--s-10) var(--s-8) var(--s-8); display: grid; gap: var(--s-5); }
@media (max-width: 640px) { .ct-form { padding: var(--s-8) var(--s-5) var(--s-6); } }
.ct-form__title { margin-top: var(--s-2); }
.ct-form .req { color: var(--accent-text); }
.ct-form .field input:focus,
.ct-form .field textarea:focus { border-color: var(--red); outline: none; }
.ct-form__foot { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.ct-form__sent { color: var(--accent-text); opacity: 0; }
.ct-form__sent:not(:empty) { opacity: 1; }
.ct-form__note { color: var(--fg-3); max-width: 52ch; }

/* start, not stretch: an empty framed void below the last bar reads as
   unfinished next to the taller form */
.ct-route { padding: var(--s-10) var(--s-6) var(--s-6); align-self: start; }
.ct-route__title { margin-top: var(--s-2); }
.ct-dist { margin-top: var(--s-6); display: grid; gap: var(--s-4); }
.ct-dist__row {
  display: grid;
  grid-template-columns: minmax(84px, 128px) minmax(0, 1fr) 88px;
  align-items: center;
  gap: var(--s-3);
}
@media (max-width: 420px) { .ct-dist__row { grid-template-columns: minmax(72px, 96px) minmax(0, 1fr) 82px; } }
.ct-dist__city { font-size: var(--fs-sm); color: var(--fg-2); }
.ct-dist__track {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: var(--bg-sunk);
  overflow: hidden;
}
.ct-dist__bar {
  position: absolute; inset: 0 auto 0 0;
  width: var(--w, 100%);
  border-radius: 99px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--red) 70%, var(--red-deep)), var(--red));
  transform-origin: left center;
}
.ct-dist__val { font-size: var(--fs-sm); color: var(--fg-2); text-align: right; }
.ct-route__note { margin-top: var(--s-6); color: var(--fg-4); }

/* --- map: draw the plate roads once it scrolls in ------------------------ */
.map--ct .map__roads path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.3s var(--ease-out);
}
.map--ct.is-drawn .map__roads path { stroke-dashoffset: 0; }
.map--ct.is-drawn .map__roads path:nth-child(2) { transition-delay: 120ms; }
.map--ct.is-drawn .map__roads path:nth-child(3) { transition-delay: 240ms; }
.map--ct.is-drawn .map__roads path:nth-child(4) { transition-delay: 320ms; }
.map--ct.is-drawn .map__roads path:nth-child(5) { transition-delay: 400ms; }
.map--ct.is-drawn .map__roads path:nth-child(6) { transition-delay: 520ms; }
.map--ct.is-drawn .map__roads path:nth-child(7) { transition-delay: 600ms; }
.no-js .map--ct .map__roads path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .map--ct .map__roads path { stroke-dashoffset: 0; transition: none; }
}
/* when Motion drives the ping, the CSS ping stands down */
.map__pin.is-m .map__pin-ring { animation: none; }


/* ==========================================================================
   Machine park explorer — five machine elevations, hotspots, callouts
   ========================================================================== */
/* --------------------------------------------------------------------------
   Machine-park explorer (.mx) — tabs, drawing-frame scenes, hotspots.
   Reuses the .ind-scene__frame/.ind-scene__svg vocabulary from the
   industries section; reduced motion is covered by the base.css global
   kill-switch plus the explicit rules at the end.
   -------------------------------------------------------------------------- */
.mx { margin-top: clamp(20px, 3vw, 36px); }
.mx__hint { color: var(--fg-3); margin-bottom: var(--s-3); }

.mx-scene { position: relative; }

/* --- v3: five compact type tiles that filter one flat card grid ----------- */
.mx2__types {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
}
.mx2-type {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 6px 6px 0;
  background: color-mix(in srgb, var(--bg-raised) 70%, transparent);
  border: 1px solid var(--rule);
  border-radius: calc(var(--r-md) + 6px);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  will-change: transform;
  transition: border-color var(--d-fast) var(--ease-out),
              background-color var(--d-fast) var(--ease-out),
              box-shadow var(--d-fast) var(--ease-out);
}
.mx2-type:hover { border-color: var(--rule-strong); background: var(--bg-raised); }
.mx2-type:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.mx2-type[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--red) 55%, transparent);
  background: color-mix(in srgb, var(--red) 7%, var(--bg-raised));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 40%, transparent), var(--sh-2);
}
/* the compact scene: no tilt layer, smaller HUD chrome */
.mx2-type__scene {
  transform: none;
  will-change: auto;
  border-radius: var(--r-md);
}
.mx2-type__scene::before { top: 6px; left: 6px; width: 10px; height: 10px; }
.mx2-type__scene::after { bottom: 6px; right: 6px; width: 10px; height: 10px; }
.mx2-type__scene .ind-scene__bar {
  top: 8px;
  gap: 5px;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}
.mx2-type__scene .ind-scene__dot { width: 5px; height: 5px; }
.mx2-type__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 8px 8px 10px;
}
.mx2-type__name {
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--fg);
  line-height: 1.25;
}
.mx2-type__n { font-size: var(--fs-lg); font-weight: 500; color: var(--fg-3); }
.mx2-type[aria-pressed="true"] .mx2-type__n { color: var(--accent-text); }

/* --- per-group info panel (the old hotspot copy lives here now) ----------- */
/* 2026-09-02: single-column panel — the spec column is gone, so the name
   leads inline and the blurb flows beside it on one compact row. */
.mx2-info {
  display: flex;
  align-items: baseline;
  gap: var(--s-3) clamp(20px, 2.6vw, 40px);
  flex-wrap: wrap;
  margin-top: clamp(14px, 2vw, 22px);
  padding: clamp(14px, 2vw, 22px) clamp(18px, 2.6vw, 30px);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--red);
  border-radius: var(--r-md);
}
.mx2-info__name { color: var(--fg); flex: none; }
.mx2-info__blurb { margin: 0; color: var(--fg-2); flex: 1 1 46ch; min-width: min(100%, 34ch); max-width: 78ch; }
.mx2-info__specs { display: grid; gap: var(--s-3); margin: 0; align-content: start; }
.mx2-spec { padding-left: var(--s-4); border-left: 2px solid color-mix(in srgb, var(--red) 55%, transparent); }
.mx2-spec__l {
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg);
}
.mx2-spec__t { margin: 2px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--fg-2); }

/* --- list header ----------------------------------------------------------- */
.mx2__head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: clamp(16px, 2.2vw, 26px);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--fg-3);
}
.mx2__label { display: inline-flex; align-items: center; gap: var(--s-2); text-transform: uppercase; }
.mx2__count { margin-left: auto; white-space: nowrap; }
.mx2__count [data-mx2-count] { display: inline-block; color: var(--fg); will-change: transform; }
.mx2__reset {
  padding: 3px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--fg-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}
.mx2__reset:hover { color: var(--fg); border-color: var(--red); }

/* --- the flat card grid ---------------------------------------------------- */
.mx2__grid {
  list-style: none;
  margin: var(--s-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: clamp(8px, 1vw, 12px);
  align-items: stretch;
}
.mx2-card {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  background: color-mix(in srgb, var(--bg-raised) 78%, transparent);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: border-color var(--d-fast) var(--ease-out),
              background-color var(--d-fast) var(--ease-out),
              box-shadow var(--d-fast) var(--ease-out);
}
.mx2-card:hover {
  border-color: var(--rule-strong);
  background: var(--bg-raised);
  box-shadow: var(--sh-2);
}
.mx2-card__media {
  display: grid;
  place-items: center;
  height: 78px;
  margin-bottom: 8px;
}
.mx2-card__media img {
  max-width: 100%;
  /* px, not %: the auto grid row makes a percentage max-height resolve to none */
  max-height: 78px;
  object-fit: contain;
  transition: transform 280ms var(--ease-out);
}
.mx2-card:hover .mx2-card__media img { transform: scale(1.05); }
.mx2-card__media--txt .icon--machine { width: 34px; height: 34px; color: var(--fg-4); }
.mx2-card__name { font-size: var(--fs-xs); line-height: 1.4; color: var(--fg); }
.mx2-card__tag {
  margin-top: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-4);
}

/* --- no-js fallback: everything visible, tiles inert, all info shown ------- */
html.no-js .mx__hint, html.no-js .mx2__reset, html.no-js .mx2__count { display: none; }
html.no-js .mx2-type { pointer-events: none; }
html.no-js .mx2-info[hidden] { display: flex; }

/* --- idle scene motion (gated by .is-live, like the industries scenes) ----- */
.mx-spin { transform-box: fill-box; transform-origin: center; }
.is-live .mx-spin { animation: ind-rot-cw var(--mx-d, 3s) linear infinite; }

.is-live .mx-table { animation: mx-table 6.5s var(--ease-in-out) infinite alternate; }
@keyframes mx-table { from { transform: translateX(-16px); } to { transform: translateX(16px); } }

.is-live .mx-head { animation: ind-millbob 1.7s var(--ease-in-out) infinite; }

.mx-turret { transform-box: fill-box; transform-origin: center; }
.is-live .mx-turret { animation: mx-turret 9s var(--ease-in-out) infinite; }
@keyframes mx-turret {
  0%, 21% { transform: rotate(0deg); }
  25%, 46% { transform: rotate(30deg); }
  50%, 71% { transform: rotate(60deg); }
  75%, 96% { transform: rotate(90deg); }
  100% { transform: rotate(120deg); }
}

.is-live .mx-carriage { animation: mx-carriage 7s var(--ease-in-out) infinite alternate; }
@keyframes mx-carriage { from { transform: translateX(28px); } to { transform: translateX(-40px); } }

.is-live .mx-headstock { animation: mx-headstock 6s var(--ease-in-out) infinite alternate; }
@keyframes mx-headstock { from { transform: translateX(0); } to { transform: translateX(20px); } }

.is-live .mx-gang { animation: mx-gang 2.8s var(--ease-in-out) infinite alternate; }
@keyframes mx-gang { from { transform: translateY(0); } to { transform: translateY(9px); } }

.is-live .mx-ram { animation: mx-ram 2.6s var(--ease-in-out) infinite; }
@keyframes mx-ram {
  0%, 52% { transform: translateY(0); }
  64%, 70% { transform: translateY(44px); }
  84%, 100% { transform: translateY(0); }
}
.mx-flash path { stroke: var(--red); stroke-width: 1.6; }
.mx-flash { opacity: 0; }
.is-live .mx-flash { animation: mx-flash 2.6s linear infinite; }
@keyframes mx-flash {
  0%, 62% { opacity: 0; }
  66%, 69% { opacity: 0.9; }
  74%, 100% { opacity: 0; }
}
.is-live .mx-strip { animation: mx-strip 2.6s var(--ease-in-out) infinite; }
@keyframes mx-strip {
  0%, 70% { transform: translateX(0); }
  88%, 100% { transform: translateX(14px); }
}

/* the mill's tool shimmer reuses .ind-tex but needs its own cadence */
.is-live .ind-tex--tool { animation-duration: 0.35s; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  /* the type strip becomes a snapping rail */
  .mx2__types {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 44vw);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .mx2__types::-webkit-scrollbar { display: none; }
  .mx2-type { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .mx2__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx2-card { padding: 9px 10px 11px; }
  .mx2-card__media { height: 70px; }
  .mx2-card__media img { max-height: 70px; }
  .mx2__head { flex-wrap: wrap; row-gap: var(--s-2); }
  /* the scene bar is display:none on small screens (shared industries rule) */
}

@media (prefers-reduced-motion: reduce) {
  .mx-flash { opacity: 0 !important; }
}


/* ==========================================================================
   Home v2 — compact EU band, drifting hero parts, cap2/pex2/mpk2
   ========================================================================== */
/* --------------------------------------------------------------------------
   EU band, compact (cpb2) — same information, half the height
   -------------------------------------------------------------------------- */
.cpb { padding-block: clamp(12px, 1.8vw, 20px); }
.cpb2 {
  display: grid;
  grid-template-columns: clamp(116px, 13vw, 164px) minmax(0, 1fr) auto;
  gap: var(--s-2) clamp(16px, 2.6vw, 36px);
  align-items: start;
}
.cpb2__logos img { width: 100%; max-width: 164px; height: auto; border-radius: var(--r-xs); }
.cpb2__kick {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.cpb2__title {
  margin-top: 4px;
  font-size: clamp(0.98rem, 0.9rem + 0.5vw, 1.22rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.22;
  max-width: 56ch;
}
.cpb2__summary { margin-top: 6px; font-size: 0.855rem; line-height: 1.5; color: var(--fg-2); max-width: 96ch; }
.cpb2__stats { display: flex; flex-wrap: wrap; gap: 4px clamp(16px, 2.4vw, 32px); margin: 8px 0 0; }
.cpb2__stat { display: flex; align-items: baseline; gap: 7px; }
.cpb2__stat dt { font-size: 0.72rem; color: var(--fg-3); }
.cpb2__stat dd { margin: 0; font-size: 0.83rem; font-weight: 600; color: var(--fg); }
.cpb2__actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-2); }
.cpb2__actions .btn { justify-content: center; }
.cpb2__statement {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--fg-4);
}
@media (max-width: 1100px) {
  .cpb2 { grid-template-columns: clamp(116px, 16vw, 150px) minmax(0, 1fr); }
  .cpb2__actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .cpb2 { grid-template-columns: minmax(0, 1fr); }
  .cpb2__logos img { max-width: 190px; }
  .cpb2__actions { grid-column: 1; }
}

/* --------------------------------------------------------------------------
   Hero parts — two-axis drift ("suspended for inspection"), replaces the
   old bob + pointer parallax. Different X and Y periods per part trace a
   slow Lissajous glide; the image itself rocks a few degrees. All transform.
   -------------------------------------------------------------------------- */
.hero__parts { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__part {
  position: absolute;
  width: var(--w, 12%);
  opacity: 0;
  transform: scale(0.72);
  filter: blur(var(--blur, 0px)) drop-shadow(0 22px 30px rgba(16, 16, 22, 0.22));
  animation: hero-part-in 760ms var(--ease-out) forwards;
  animation-delay: calc(420ms + var(--n, 0) * 90ms);
}
@keyframes hero-part-in { to { opacity: var(--op, 0.96); transform: none; } }
.hero__drift-x { animation: hero-drift-x var(--tx, 12s) var(--ease-in-out) calc(var(--n, 0) * -1.7s) infinite alternate; }
.hero__drift-y { animation: hero-drift-y var(--ty, 16s) var(--ease-in-out) calc(var(--n, 0) * -2.3s) infinite alternate; }
.hero__part-img { width: 100%; height: auto; rotate: var(--r1, -6deg); animation: hero-rock var(--sp, 22s) var(--ease-in-out) calc(var(--n, 0) * -3.1s) infinite alternate; }
@keyframes hero-drift-x { from { transform: translateX(calc(var(--ax, 10px) * -1)); } to { transform: translateX(var(--ax, 10px)); } }
@keyframes hero-drift-y { from { transform: translateY(calc(var(--ay, 14px) * -1)); } to { transform: translateY(var(--ay, 14px)); } }
@keyframes hero-rock { from { rotate: var(--r1, -6deg); } to { rotate: var(--r2, 6deg); } }

/* anchors + per-part drift character (periods co-prime so paths never sync) */
.hero__part--1 { left: 3%;  top: 16%; --w: 11%;  --ax: 14px; --ay: 20px; --tx: 11s; --ty: 17s; --r1: -10deg; --r2: -2deg; --sp: 21s; }
.hero__part--2 { left: 12%; top: 58%; --w: 8.5%; --ax: 10px; --ay: 15px; --tx: 13s; --ty: 9s;  --r1: 7deg;  --r2: 16deg; --sp: 18s; --blur: 1px; --op: 0.85; }
.hero__part--3 { left: 1%;  top: 74%; --w: 9%;   --ax: 16px; --ay: 12px; --tx: 15s; --ty: 11s; --r1: -7deg; --r2: 2deg;  --sp: 24s; }
.hero__part--4 { right: 4%; top: 13%; --w: 12%;  --ax: 13px; --ay: 21px; --tx: 12s; --ty: 19s; --r1: 4deg;  --r2: 13deg; --sp: 20s; }
.hero__part--5 { right: 12%; top: 55%; --w: 10%; --ax: 11px; --ay: 16px; --tx: 17s; --ty: 10s; --r1: -11deg; --r2: -1deg; --sp: 23s; --blur: 1px; --op: 0.85; }
.hero__part--6 { right: 1%; top: 76%; --w: 8%;   --ax: 15px; --ay: 13px; --tx: 10s; --ty: 15s; --r1: 9deg;  --r2: 18deg; --sp: 19s; }
.hero__part--7 { left: 24%; top: 6%;  --w: 6.5%; --ax: 9px;  --ay: 18px; --tx: 14s; --ty: 21s; --r1: -18deg; --r2: -9deg; --sp: 26s; --blur: 2px; --op: 0.7; }
.hero__part--8 { right: 25%; top: 84%; --w: 6%;  --ax: 12px; --ay: 10px; --tx: 16s; --ty: 12s; --r1: 3deg;  --r2: 12deg; --sp: 25s; --blur: 2px; --op: 0.7; }

@media (max-width: 900px) {
  .hero__part--2, .hero__part--5, .hero__part--7, .hero__part--8 { display: none; }
  .hero__part--1 { left: -4%; top: 9%; --w: 20%; }
  .hero__part--3 { left: -6%; top: 78%; --w: 18%; }
  .hero__part--4 { right: -5%; top: 8%; --w: 21%; }
  .hero__part--6 { right: -4%; top: 80%; --w: 17%; }
  .hero__parts { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__part, .hero__drift-x, .hero__drift-y, .hero__part-img { animation: none; }
  .hero__part { opacity: var(--op, 0.96); transform: none; }
  .hero__part-img { rotate: calc((var(--r1, -6deg) + var(--r2, 6deg)) / 2); }
}
.no-js .hero__part { opacity: var(--op, 0.96); transform: none; animation: none; }

/* --------------------------------------------------------------------------
   Какво правим — numbered index rows (cap2)
   -------------------------------------------------------------------------- */
.caps2 { margin-top: var(--s-12); border-top: 1px solid var(--rule-strong); }
.cap2 {
  position: relative;
  display: grid;
  grid-template-columns: clamp(64px, 7vw, 96px) 56px minmax(0, 1fr);
  gap: var(--s-5);
  align-items: center;
  padding: clamp(18px, 2.4vw, 28px) var(--s-3);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  transition: background-color var(--d-base) var(--ease-out);
}
.cap2:hover { background: color-mix(in srgb, var(--red-wash) 55%, transparent); }
.cap2__num {
  font-family: var(--font-card);
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-5);
  transition: color var(--d-base) var(--ease-out), -webkit-text-stroke-color var(--d-base) var(--ease-out);
}
.cap2:hover .cap2__num { color: var(--red); -webkit-text-stroke-color: var(--red); }
.cap2__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  color: var(--red-ink);
  background: var(--bg-raised);
}
.cap2__icon .icon { width: 26px; height: 26px; }
.cap2__title { font-family: var(--font-card); font-weight: 400; font-size: 1.08rem; letter-spacing: 0.01em; }
.cap2__text { margin-top: 4px; color: var(--fg-3); font-size: 0.94rem; max-width: 72ch; }
.cap2__tick {
  position: absolute; right: var(--s-3); top: 50%;
  width: 14px; height: 14px; translate: 0 -50%;
  border-right: 2px solid var(--red); border-top: 2px solid var(--red);
  opacity: 0; transition: opacity var(--d-base) var(--ease-out), translate var(--d-base) var(--ease-out);
}
.cap2:hover .cap2__tick { opacity: 0.85; translate: 6px -50%; }
/* reveal: rows glide in from alternating sides */
.cap2.reveal { opacity: 0; transition: opacity 640ms var(--ease-out) var(--reveal-delay, 0ms), transform 640ms var(--ease-out) var(--reveal-delay, 0ms); }
.cap2.reveal:nth-child(odd) { transform: translateX(-26px); }
.cap2.reveal:nth-child(even) { transform: translateX(26px); }
.cap2.reveal.is-in { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .cap2 { grid-template-columns: 44px minmax(0, 1fr); }
  .cap2__num { grid-row: 1; font-size: 1.5rem; align-self: start; }
  .cap2__icon { display: none; }
  .cap2__tick { display: none; }
}

/* Glare sweep — adapted from React Bits "GlareHover" (reactbits.dev, MIT):
   an oversized diagonal gradient parked off-canvas, swept across by moving
   background-position on hover. */
.gh-sweep::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(-58deg,
      transparent 60%, color-mix(in srgb, var(--fg) 9%, transparent) 70%, transparent 80%)
    -120% -120% / 240% 240% no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .gh-sweep:hover::after { background-position: 120% 120%; transition: background-position 900ms var(--ease-out); }
}

/* --------------------------------------------------------------------------
   Продукти — vertical rail + staged diorama (pex2), night tone
   -------------------------------------------------------------------------- */
.pex2 {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 56px);
  margin-top: var(--s-12);
  align-items: start;
}
.pex2__rail { display: flex; flex-direction: column; border-left: 1px solid var(--rule); }
.pex2__tab {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: center;
  padding: 14px var(--s-3);
  margin-left: -1px;
  border: 0; border-left: 2px solid transparent;
  background: none; color: var(--fg-3);
  text-align: left; cursor: pointer;
  transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out);
}
.pex2__tab-ix { font-size: 0.72rem; color: var(--fg-4); transition: color var(--d-fast) var(--ease-out); }
.pex2__tab-name { font-family: var(--font-card); font-weight: 400; font-size: 0.95rem; letter-spacing: 0.01em; line-height: 1.25; }
.pex2__tab:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.pex2__tab[aria-selected="true"] { color: var(--fg); border-left-color: var(--red); }
.pex2__tab[aria-selected="true"] .pex2__tab-ix { color: var(--accent-text); }
.pex2__tab:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

.pex2__panel[hidden] { display: none; }
.pex2__stage {
  position: relative;
  min-height: clamp(300px, 36vw, 430px);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background:
    linear-gradient(to right, color-mix(in srgb, var(--steel-light) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--steel-light) 6%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  overflow: hidden;
}
.pex2__stage::before, .pex2__stage::after {
  content: '';
  position: absolute; width: 16px; height: 16px;
  border: 2px solid var(--red); opacity: 0.8;
}
.pex2__stage::before { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.pex2__stage::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.pex2__stage-bar {
  position: absolute; top: 12px; left: 50%; translate: -50%;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); white-space: nowrap;
}
.pex2__stage-led { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.pex2__hero {
  position: absolute; left: 8%; top: 16%; bottom: 14%;
  width: min(48%, 380px);
  display: flex; align-items: flex-end; justify-content: center;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
}
.pex2__hero-img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.pex2__thumbs {
  position: absolute; right: 6%; top: 18%; bottom: 18%;
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-4);
  width: clamp(84px, 12vw, 128px);
}
.pex2__thumb {
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--bg-raised) 60%, transparent);
  padding: 10px;
}
.pex2__thumb-img { width: 100%; height: auto; }
.pex2__base {
  position: absolute; left: 6%; right: 6%; bottom: 10%;
  border-bottom: 1px solid var(--rule-strong);
}
.pex2__base::before, .pex2__base::after {
  content: ''; position: absolute; bottom: -4px; width: 1px; height: 8px; background: var(--rule-strong);
}
.pex2__base::before { left: 0; }
.pex2__base::after { right: 0; }
.pex2__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-8); margin-top: var(--s-5); align-items: baseline; }
.pex2__sub { font-size: var(--fs-xs); color: var(--accent-text); letter-spacing: 0.06em; text-transform: uppercase; }
.pex2__text { color: var(--fg-2); max-width: 62ch; font-size: 0.95rem; }
.pex2__more { margin-top: var(--s-10); }
@media (max-width: 1040px) {
  .pex2 { grid-template-columns: minmax(0, 1fr); }
  .pex2__rail { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
  .pex2__tab { grid-template-columns: auto; gap: 2px; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; padding: 10px 14px; white-space: nowrap; }
  .pex2__tab[aria-selected="true"] { border-bottom-color: var(--red); }
  .pex2__tab-ix { display: none; }
}
@media (max-width: 640px) {
  .pex2__stage { min-height: 300px; }
  .pex2__hero { left: 6%; bottom: 18%; width: 52%; }
  .pex2__thumbs { right: 4%; width: 76px; gap: var(--s-2); }
}

/* --------------------------------------------------------------------------
   Машинен парк — segmented line + legend (mpk2), night tone
   -------------------------------------------------------------------------- */
.mpk2 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-top: var(--s-12);
}
.mpk2__dial { text-align: center; }
.mpk2__total {
  display: block;
  font-family: var(--font-card);
  font-size: clamp(3.6rem, 2.6rem + 4vw, 6.4rem);
  line-height: 0.95;
  color: var(--fg);
}
.mpk2__total-label { display: block; margin-top: 6px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.mpk2__bar {
  display: flex;
  height: 30px;
  border-radius: var(--r-xs);
  overflow: hidden;
  gap: 3px;
}
.mpk2__seg { flex: 0 0 var(--w); min-width: 14px; }
.mpk2__seg-fill {
  display: block; width: 100%; height: 100%;
  background: color-mix(in srgb, var(--red) calc(100% - var(--i) * 19%), var(--steel));
  transform-origin: left center;
}
.mpk2__legend { margin: var(--s-6) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-8); }
.mpk2__leg { display: grid; grid-template-columns: 10px 24px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: 4px 0; }
.mpk2__leg-dot { width: 10px; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--red) calc(100% - var(--i) * 19%), var(--steel)); }
.mpk2__leg-ico { color: var(--fg-3); }
.mpk2__leg-name { font-size: 0.9rem; color: var(--fg-2); }
.mpk2__leg-n { font-size: 1.02rem; font-weight: 700; text-align: right; }
@media (max-width: 900px) {
  .mpk2 { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .mpk2__dial { text-align: left; display: flex; align-items: baseline; gap: var(--s-4); }
  .mpk2__legend { grid-template-columns: minmax(0, 1fr); }
}


/* ==========================================================================
   Dense page mode — body.pg-dense (production): the whole page runs on a
   tighter vertical rhythm; sections, heads and the hero all shrink together
   ========================================================================== */
.pg-dense .section { padding-block: clamp(34px, 3.8vw, 60px); }
.pg-dense .section--tight { padding-block: clamp(26px, 3vw, 44px); }
.pg-dense .page-hero--short { padding-block: clamp(56px, 7vw, 92px) clamp(30px, 3.8vw, 52px); }
.pg-dense .page-hero__title { margin-top: var(--s-3); }
.pg-dense .page-hero__lead { margin-top: var(--s-4); }
/* section heads: slightly smaller titles, less air around them */
.pg-dense .sec-head .h2 {
  margin-top: var(--s-2);
  font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.4rem);
}
.pg-dense .sec-head .lead { margin-top: var(--s-3); }
.pg-dense .sec-head + p,
.pg-dense .sec-head + .body,
.pg-dense .sec-head + ul,
.pg-dense .sec-head + ol,
.pg-dense .sec-head + dl { margin-top: var(--s-4); }
/* the design split: narrower media column, tighter gap */
.pg-dense .split { gap: clamp(24px, 3.5vw, 56px); }
.pg-dense .split--reverse { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr); }
@media (max-width: 900px) {
  .pg-dense .split--reverse { grid-template-columns: minmax(0, 1fr); }
}
/* compact band + grids lose a little more air */
.pg-dense .fac2 { padding: clamp(14px, 2vw, 20px) clamp(16px, 2.4vw, 26px); }
.pg-dense .mx { margin-top: clamp(14px, 2vw, 24px); }
.pg-dense .ind2__grid { margin-top: var(--s-4); }
.pg-dense .gal { margin-top: var(--s-4); }
/* quality page: metrology, cert wall and the badge/policy tail */
.pg-dense .scope {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  padding: var(--s-5) var(--s-6);
}
.pg-dense .scope__text { font-size: var(--fs-h4); font-weight: 650; }
.pg-dense .metq { margin-top: var(--s-4); gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); }
.pg-dense .metq__card { padding: var(--s-4); }
.pg-dense .metq__fig { height: 118px; margin-bottom: var(--s-3); }
.pg-dense .metq__fig img { max-height: 102px; }
.pg-dense .metq__brand { font-size: 0.9rem; }
.pg-dense .metq__more { margin-top: var(--s-3); }
.pg-dense .cwall {
  margin-top: var(--s-5);
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
}
.pg-dense .qbadges { gap: var(--s-4); }
.pg-dense .qbadge { padding: var(--s-4) var(--s-5); gap: var(--s-4); }
.pg-dense .qbadge__ico { width: 56px; }
.pg-dense .qbadges + .policy { margin-top: var(--s-4); }
.pg-dense .policy { gap: var(--s-4); }
/* home: the signature hero keeps its stage but loses dead air; the furniture
   below it (caps index, product explorer, park dial, EU teaser) tightens with it */
.pg-dense .hero { min-height: clamp(400px, 52svh, 560px); padding-block: clamp(40px, 5.5vw, 68px); }
.pg-dense .caps2 { margin-top: var(--s-8); }
.pg-dense .cap2 { padding: clamp(13px, 1.7vw, 20px) var(--s-3); }
.pg-dense .pex2 { margin-top: var(--s-8); }
.pg-dense .pex2__stage { min-height: clamp(270px, 30vw, 380px); }
.pg-dense .pex2__more { margin-top: var(--s-6); }
.pg-dense .mpk2 { margin-top: var(--s-8); }
.pg-dense .marquee { margin-top: var(--s-8); }
.pg-dense .brands { margin-top: var(--s-8); padding-top: var(--s-5); }
.pg-dense .qlist { margin-top: var(--s-6); }
.pg-dense .eu-teaser__grid { margin-top: var(--s-8); }
/* home industries: scenes keep their aspect, so the panel column narrows a
   touch and the stack between panels closes — biggest single win on the page */
.pg-dense .ind__panels { gap: clamp(44px, 5.5vw, 84px); margin-top: clamp(28px, 3.5vw, 48px); }
.pg-dense .ind-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
@media (max-width: 900px) {
  .pg-dense .ind-panel { grid-template-columns: minmax(0, 1fr); }
}
/* about: timeline, investment cards and the why list close ranks */
.pg-dense .tl { margin-top: var(--s-8); }
.pg-dense .tl__item { padding: var(--s-4) 0; }
.pg-dense .ivc__grid { margin-top: var(--s-8); }
.pg-dense .ivc__chart { margin-top: var(--s-6); }
.pg-dense .why__list { margin-top: var(--s-8); gap: var(--s-6) var(--s-8); }
/* products: category blocks stack closer; one extra column on wide screens
   pulls the two big groups a full row shorter */
.pg-dense .products__body { margin-top: var(--s-8); gap: var(--s-12); }
.pg-dense .pcat__grid { margin-top: var(--s-6); }
.pg-dense .products__note { margin-top: var(--s-8); }
.pg-dense .ptile__frame { padding: 14px; }
@media (min-width: 1280px) {
  .pg-dense .pcat__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
/* EU index + detail: groups, chips and row-cards on the tighter rhythm —
   spacing only, the publicity text itself stays verbatim */
.pg-dense .eul__chips { margin-bottom: var(--s-6); }
.pg-dense .eul { gap: var(--s-10); }
.pg-dense .tml__chips { margin-top: var(--s-6); }
.pg-dense .eur { padding: var(--s-5); row-gap: var(--s-3); column-gap: var(--s-6); grid-template-columns: 200px minmax(0, 1fr); }
.pg-dense .eur--nologo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .pg-dense .eur { grid-template-columns: minmax(0, 1fr); }
}
.pg-dense .eud__body { margin-top: var(--s-8); }

/* ==========================================================================
   Card voice + tactile pass (Russo One titles, glare sheen, press feedback)
   NOTE: must stay the LAST block in this file — several rules win by cascade.
   ========================================================================== */
/* --------------------------------------------------------------------------
   Card voice — Russo One via --font-card.
   Scope: short titles and labels on card-like tiles across the inner pages.
   Russo One ships ONE weight (400): every rule below resets font-weight so
   the browser never synthesizes a fake bold. Deliberately NOT applied to:
   .eur__title (EU index stays institutional), .stat__value (Russo digits are
   proportional — count-ups would jitter in width), body text anywhere.
   -------------------------------------------------------------------------- */

/* quality — certificate wall (the cards the user pointed at) */
.cwall__code {
  font-family: var(--font-card);
  font-weight: 400;
  font-size: 0.94rem;
  letter-spacing: 0.015em;
}
/* quality — scope / policy cards */
.policy__body .h4 {
  font-family: var(--font-card);
  font-weight: 400;
  letter-spacing: 0.012em;
}
.scope__label { letter-spacing: 0.16em; }

/* about — investment figures and timeline years */
.ivc__value {
  font-family: var(--font-card);
  font-weight: 400;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.95rem);
  letter-spacing: 0.005em;
}
.tl__year {
  font-family: var(--font-card);
  font-weight: 400;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.why__no {
  font-family: var(--font-card);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* products — category titles above each tile grid */
.pcat__name {
  font-family: var(--font-card);
  font-weight: 400;
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem);
  letter-spacing: 0.012em;
}

/* contact — CH 01–04 spec-card titles */
.ct-card__title {
  font-family: var(--font-card);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: 0.012em;
}

/* production — process labels: font voice lives on .proc2__name above */
.mx2-card__name,
.proc2__name {
  font-family: var(--font-card);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* dead-code companion: the .cert grid is currently never emitted by
   build_quality, but if it ever returns it joins the same voice */
.cert__code {
  font-family: var(--font-card);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Sheen — diagonal glare sweep on hover.
   Ported to plain CSS from React Bits "GlareHover" (reactbits.dev, MIT):
   same mechanism — an oversized angled gradient parked off-canvas by
   background-position, driven corner-to-corner on hover. Attached straight
   to existing card frames (no new markup); tone-aware color.
   -------------------------------------------------------------------------- */
:root { --sheen-c: rgba(22, 22, 26, 0.07); }
[data-tone="night"] { --sheen-c: rgba(255, 255, 255, 0.15); }

.cwall__frame::after,
.ptile__frame::after,
.gal__item::after,
.ivc.card::after,
.policy.card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(-52deg,
      transparent 58%, var(--sheen-c) 70%, transparent 82%) no-repeat;
  background-size: 240% 240%;
  background-position: -110% -110%;
  transition: background-position 700ms ease;
}
.cwall__frame,
.gal__item,
.ptile__frame {
  position: relative;
  overflow: hidden;
}
.ivc.card,
.policy.card { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .cwall__item:hover .cwall__frame::after,
  .ptile:hover .ptile__frame::after,
  .gal__item:hover::after,
  .ivc.card:hover::after,
  .policy.card:hover::after {
    background-position: 110% 110%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cwall__frame::after, .ptile__frame::after, .gal__item::after,
  .ivc.card::after, .policy.card::after { transition: none; }
}

/* the certificate scans get an archival registration tick + a gentle lift */
.cwall__frame::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}
.cwall__item .cwall__frame { transition: transform var(--d-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .cwall__item:hover .cwall__frame { transform: translateY(-3px); }
}

/* --------------------------------------------------------------------------
   EU pipeline notice (stage-1 approved application) + pending certificate
   -------------------------------------------------------------------------- */
.eur-applied {
  position: relative;
  display: flex; align-items: flex-start; gap: var(--s-5);
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-6);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r-md);
  background: var(--red-wash);
}
/* the site's corner-tick motif instead of a side accent */
.eur-applied::before {
  content: '';
  position: absolute; top: -1px; left: -1px;
  width: 18px; height: 18px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
  border-top-left-radius: var(--r-md);
}
.eur-applied__status {
  flex-shrink: 0;
  font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text);
  padding: 3px 10px; border: 1px solid currentColor; border-radius: var(--r-full);
  margin-top: 2px;
}
.eur-applied__title { display: block; font-family: var(--font-card); font-size: 1.02rem; margin-bottom: 4px; color: var(--fg); }
.eur-applied__text { display: block; font-size: var(--fs-sm); color: var(--fg-3); max-width: 72ch; }
@media (max-width: 640px) { .eur-applied { flex-direction: column; gap: var(--s-3); } }

.cwall__frame--pending .cwall__mat { position: relative; overflow: hidden; border: 1px dashed var(--rule-strong); }
.cwall__blur { display: block; }
.cwall__blur img {
  filter: blur(12px) saturate(0.55) brightness(1.03);
  transform: scale(1.12);           /* hide the blur's soft edges */
  opacity: 0.8;
}
/* rubber-stamp: double ring, tilted, inked unevenly */
.cwall__stamp {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-9deg);
  font-family: var(--font-card);
  font-size: 0.7rem; line-height: 1.35; letter-spacing: 0.08em;
  text-transform: uppercase; text-align: center;
  max-width: 78%;
  color: #C81E00;
  padding: 7px 13px;
  border: 3px double #C81E00;
  border-radius: 6px;
  opacity: 0.92;
  mix-blend-mode: multiply;
  box-shadow: inset 0 0 14px rgba(200, 30, 0, 0.12);
}
.cwall__item--pending { cursor: default; }


/* ==========================================================================
   RFQ form v2 — floating labels, drawn baselines, live validity
   (must stay after the base .field rules — cascade re-skin)
   ========================================================================== */
/* --------------------------------------------------------------------------
   RFQ form v2 — floating labels, drawn baselines, live validity
   Appended after everything else on purpose: it re-skins the .field controls
   inside .ct-form by cascade order. The old .field rules stay (harmless).
   -------------------------------------------------------------------------- */

/* two-column rhythm: name + email share a row, the rest span */
.ct-form { grid-template-columns: 1fr 1fr; column-gap: var(--s-5); }
.ct-form > * { grid-column: 1 / -1; }
.ct-form .f2-field--half { grid-column: auto / span 1; }
@media (max-width: 700px) {
  .ct-form { grid-template-columns: 1fr; }
  .ct-form .f2-field--half { grid-column: 1 / -1; }
}

.f2-field { position: relative; display: grid; gap: 5px; }

/* mono station index, engraved until the field wakes up */
.f2-idx {
  position: absolute; top: 8px; right: 12px; z-index: 1;
  font-size: 0.62rem; letter-spacing: 0.12em;
  color: var(--ink-5); pointer-events: none;
  transition: color var(--d-fast) var(--ease-out);
}
.f2-field:focus-within .f2-idx { color: var(--accent-text); }

.f2-box { position: relative; }

/* the control: quiet slab, hairline base, no box outline */
.ct-form .f2-box input,
.ct-form .f2-box textarea {
  width: 100%;
  padding: 26px var(--s-4) 11px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: var(--bg-sunk);
  color: var(--fg);
  font-size: 0.97rem;
  font-family: inherit;
  box-shadow: none;
  transition: background-color var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .ct-form .f2-box input:hover,
  .ct-form .f2-box textarea:hover { background: color-mix(in srgb, var(--bg-sunk) 55%, var(--bg-raised)); }
}
.ct-form .f2-box input:focus,
.ct-form .f2-box textarea:focus {
  outline: none;
  /* stays a visible slab (the form card itself is --bg-raised) with the
     faintest warm lean toward the drawn red baseline */
  background: color-mix(in srgb, var(--red) 4%, var(--bg-sunk));
  border-color: transparent;
  border-bottom-color: transparent;   /* the drawn f2-line takes over */
  box-shadow: none;
}
.ct-form .f2-box textarea {
  resize: none;
  min-height: 138px;
  overflow: hidden;
  line-height: 1.55;
}
/* without JS there is no autogrow — give the native resizer back */
.no-js .ct-form .f2-box textarea { resize: vertical; overflow: auto; }

/* floating label: full-size placeholder that machines itself up on focus/fill */
.ct-form .f2-label {
  position: absolute; left: var(--s-4); top: 18px;
  margin: 0; font-size: 0.97rem; font-weight: 500; color: var(--fg-3);
  pointer-events: none; transform-origin: left top;
  transition: transform var(--d-base) var(--ease-out),
              color var(--d-fast) var(--ease-out),
              letter-spacing var(--d-base) var(--ease-out);
}
.ct-form .f2-box input:focus ~ .f2-label,
.ct-form .f2-box input:not(:placeholder-shown) ~ .f2-label,
.ct-form .f2-box textarea:focus ~ .f2-label,
.ct-form .f2-box textarea:not(:placeholder-shown) ~ .f2-label {
  transform: translateY(-12px) scale(0.7);
  letter-spacing: 0.07em;
  color: var(--fg-4);
}
.ct-form .f2-box input:focus ~ .f2-label,
.ct-form .f2-box textarea:focus ~ .f2-label { color: var(--accent-text); }

/* the red baseline draws across on focus, retracts to the right on leave */
.f2-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red);
  border-radius: 1px;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--d-slow) var(--ease-out);
}
.f2-field:focus-within .f2-line { transform: scaleX(1); transform-origin: left; }

/* validity check: parked invisible; JS springs it in, CSS keeps the state */
.f2-ok {
  position: absolute; right: 12px; bottom: 12px;
  width: 20px; height: 20px; display: grid; place-items: center;
  color: #33A06F;
  opacity: 0; transform: scale(0.5);
  transition: opacity var(--d-fast) var(--ease-out),
              transform var(--d-fast) var(--ease-out);
  pointer-events: none;
}
.f2-ok .icon { width: 16px; height: 16px; }
.field.is-valid .f2-ok { opacity: 1; transform: scale(1); }
/* the message field's tick would sit on the autogrow text — tuck it up */
.f2-field:focus-within .f2-idx { opacity: 0; }
.field.is-valid .f2-idx { opacity: 0; }

/* invalid: base turns red, the message slides in under the slab */
.field.is-invalid .f2-box input,
.field.is-invalid .f2-box textarea { border-bottom-color: var(--red); }
.f2-field.is-invalid .field__err { animation: f2-err-in 240ms var(--ease-out); }
@keyframes f2-err-in {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: none; }
}

/* the frame's LED leans in while the visitor is typing */
.ct-form:focus-within .ct-card__led {
  box-shadow: 0 0 9px var(--red);
}

/* submit row breathes a little more */
.ct-form__foot { margin-top: var(--s-2); }

@media (prefers-reduced-motion: reduce) {
  .f2-line, .ct-form .f2-label, .f2-ok { transition: none; }
  .f2-field.is-invalid .field__err { animation: none; }
}


/* ==========================================================================
   Automotive scene v2 — drive-shaft machining -> production line (12 s loop)
   ========================================================================== */
/* --------------------------------------------------------------------------
   Automotive scene v2 — drive-shaft production narrative.
   One 12 s master loop; every shx-* animation shares that duration so the
   phases stay locked. The wrap is seamless: each conveyor slot shows an
   identical shaft on both sides of the seam (different elements, same
   pixels). Motion only under .is-live; the base pose is the reduced-motion
   still: mid-cut on the lathe, full line and wheel below.
   -------------------------------------------------------------------------- */
.ind-scene__svg .shx-rib { stroke: var(--steel-light); stroke-width: 1; opacity: 0.5; }
.ind-scene__svg .shx-belt path { stroke: var(--steel); stroke-width: 3; stroke-dasharray: 12 6; opacity: 0.8; }
.ind-scene__svg .shx-flash { stroke: var(--red); stroke-width: 2; opacity: 0; }

.shx-work, .shx-blank, .shx-wheelspin { transform-box: fill-box; transform-origin: center; }

/* tool saddle: parked/engaged base pose; one pass per cycle when live */
.shx-saddle { transform: translate(-20px, 0); }
.is-live .shx-saddle { animation: shx-saddle 12s linear infinite; }
@keyframes shx-saddle {
  0%       { transform: translate(70px, 22px); opacity: 0.35; animation-timing-function: ease-out; }
  5%       { transform: translate(70px, 0);    opacity: 1;    animation-timing-function: linear; }
  42%      { transform: translate(-80px, 0);   opacity: 1;    animation-timing-function: ease-in; }
  46%      { transform: translate(-80px, 22px); opacity: 0.35; animation-timing-function: ease-in-out; }
  70%, 100% { transform: translate(70px, 22px); opacity: 0.35; }
}

/* sparks + chips only while the tool is actually cutting */
.shx-cutgate { opacity: 0; }
.is-live .shx-cutgate { animation: shx-cut 12s linear infinite; }
@keyframes shx-cut {
  0%, 6% { opacity: 0; } 9%, 40% { opacity: 1; } 44%, 100% { opacity: 0; }
}

/* spin texture on the workpiece: spindle runs during the cut window */
.is-live .shx-worktex { animation: shx-worktex 12s linear infinite; }
@keyframes shx-worktex {
  0%, 44% { opacity: 1; } 48%, 100% { opacity: 0; }
}

/* the machined shaft: lathe -> arc down -> settle onto the vacated slot.
   Translate targets are bbox-centre to bbox-centre, so the landed drawing
   is pixel-identical to the queue member that reappears there at the wrap. */
.is-live .shx-work { animation: shx-work 12s linear infinite; }
@keyframes shx-work {
  0%, 60% { transform: translate(0, 0) scale(1); animation-timing-function: ease-in; }
  68%     { transform: translate(-92px, 112px) scale(0.72); animation-timing-function: ease-out; }
  76%     { transform: translate(-193.5px, 245px) scale(0.36); animation-timing-function: ease-in-out; }
  81%, 100% { transform: translate(-193.5px, 239px) scale(0.36); }
}

/* a new blank slides into the chuck near the end of the cycle */
.shx-blank { opacity: 0; }
.is-live .shx-blank { animation: shx-blank 12s linear infinite; }
@keyframes shx-blank {
  0%, 80% { opacity: 0; transform: translate(-36px, 0); animation-timing-function: ease-out; }
  92%, 100% { opacity: 1; transform: translate(0, 0); }
}

/* the line advances one station (108px pitch) while the lathe is idle */
.is-live .shx-queue { animation: shx-queue 12s linear infinite; }
@keyframes shx-queue {
  0%, 44% { transform: translate(0, 0); animation-timing-function: ease-in-out; }
  62%, 100% { transform: translate(108px, 0); }
}

/* the leading shaft docks into the hub, then is "installed" (fades) */
.is-live .shx-q3 { animation: shx-q3 12s linear infinite; }
@keyframes shx-q3 {
  0%, 78% { opacity: 1; } 92%, 100% { opacity: 0; }
}

/* belt surface marks move with the advance (36px = 2 dash periods) */
.is-live .shx-belt { animation: shx-beltmove 12s linear infinite; }
@keyframes shx-beltmove {
  0%, 44% { transform: translate(0, 0); animation-timing-function: ease-in-out; }
  62%, 100% { transform: translate(36px, 0); }
}

/* the wheel turns one full revolution as the shaft engages (wrap-safe) */
.is-live .shx-wheelspin { animation: shx-wheel 12s linear infinite; }
@keyframes shx-wheel {
  0%, 62% { transform: rotate(0); animation-timing-function: ease-in-out; }
  96%, 100% { transform: rotate(360deg); }
}

/* hub flash when the stub docks */
.is-live .shx-flash { animation: shx-flash 12s linear infinite; }
@keyframes shx-flash {
  0%, 58% { opacity: 0; transform: scale(0.6); }
  64% { opacity: 0.9; transform: scale(1); }
  72%, 100% { opacity: 0; transform: scale(1.25); }
}
.shx-flash { transform-box: fill-box; transform-origin: center; }

/* --------------------------------------------------------------------------
   RFQ form — drawing attachment (staged client-side; sent via the mail client)
   -------------------------------------------------------------------------- */
.f2-attach { position: relative; }
.f2-attach__input {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; overflow: hidden; clip-path: inset(50%);
}
.f2-attach__zone {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border: 1.5px dashed var(--rule-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color var(--d-fast) var(--ease-out),
              background-color var(--d-fast) var(--ease-out);
}
.f2-attach__zone .icon { flex-shrink: 0; color: var(--fg-3); }
.f2-attach__txt { flex: 1; min-width: 0; }
.f2-attach__label { display: block; font-family: var(--font-card); font-size: 0.9rem; color: var(--fg); }
.f2-attach__hint { display: block; font-size: var(--fs-sm); color: var(--fg-4); }
.f2-attach__fmts { font-size: var(--fs-xs); color: var(--fg-4); letter-spacing: 0.04em; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .f2-attach__zone:hover { border-color: var(--red); background: var(--red-wash); }
  .f2-attach__zone:hover .icon { color: var(--accent-text); }
}
.f2-attach__input:focus-visible + .f2-attach__zone { border-color: var(--red); outline: 2px solid var(--red); outline-offset: 2px; }
.f2-attach.is-drag .f2-attach__zone {
  border-color: var(--red); border-style: solid; background: var(--red-wash);
}
.f2-attach__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.f2-attach__list:not(:empty) { margin-top: var(--s-3); }
.f2-attach__file {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  border-radius: var(--r-xs);
  font-size: var(--fs-sm);
}
.f2-attach__file .icon { flex-shrink: 0; width: 16px; height: 16px; color: var(--accent-text); }
.f2-attach__fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f2-attach__fsize { color: var(--fg-4); }
.f2-attach__rm {
  flex-shrink: 0; display: grid; place-items: center;
  width: 24px; height: 24px; padding: 0;
  border: 0; background: none; cursor: pointer;
  color: var(--fg-4); border-radius: var(--r-xs);
  transition: color var(--d-press) var(--ease-out), background-color var(--d-press) var(--ease-out);
}
.f2-attach__rm:hover { color: var(--accent-text); background: var(--red-wash); }
.f2-attach__rm .icon { width: 14px; height: 14px; color: inherit; }
.f2-attach__note { margin-top: var(--s-2); color: var(--fg-4); }
.no-js .f2-attach { display: none; }   /* the mailto flow needs JS; keep honest */
@media (max-width: 560px) { .f2-attach__fmts { display: none; } }

/* --------------------------------------------------------------------------
   Quality — metrology equipment nameplates
   -------------------------------------------------------------------------- */
.metq { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s-5); margin-top: var(--s-8); }
.metq__card {
  position: relative;
  padding: var(--s-6);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.metq__card::before {
  content: '';
  position: absolute; top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
  border-top-left-radius: var(--r-md);
}
.metq__fig {
  display: grid; place-items: end center;
  height: 240px; margin-bottom: var(--s-5);
  padding: var(--s-3);
  background:
    linear-gradient(to right, color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  border-bottom: 1px solid var(--rule);
}
.metq__fig img {
  max-height: 216px; width: auto; max-width: 100%;
  filter: drop-shadow(0 14px 22px rgba(14, 14, 20, 0.35));
  transition: transform var(--d-slow) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .metq__card:hover .metq__fig img { transform: translateY(-4px) scale(1.02); }
}
.metq__brand { display: block; font-family: var(--font-card); font-size: 1.08rem; letter-spacing: 0.01em; }
.metq__model { display: block; font-size: var(--fs-xs); color: var(--accent-text); letter-spacing: 0.06em; margin: 2px 0 6px; }
.metq__desc { display: block; font-size: var(--fs-sm); color: var(--fg-3); }
.metq__more { margin-top: var(--s-4); color: var(--fg-4); }
@media (max-width: 860px) { .metq { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Quality — compact ESG + NATO badge tiles (replace the two split sections)
   -------------------------------------------------------------------------- */
.qbadges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.qbadge {
  position: relative;
  display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-6);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.qbadge::before {
  content: '';
  position: absolute; top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--red); border-left: 2px solid var(--red);
  border-top-left-radius: var(--r-md);
}
.qbadge__ico {
  width: 72px; height: auto; flex-shrink: 0;
  filter: drop-shadow(0 8px 14px rgba(14, 14, 20, 0.25));
  transition: transform var(--d-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .qbadge:hover .qbadge__ico { transform: translateY(-3px) rotate(-4deg); }
}
.qbadge__title { font-family: var(--font-card); font-size: 1.05rem; }
.qbadge__meta { font-size: var(--fs-xs); color: var(--accent-text); letter-spacing: 0.06em; margin: 2px 0 6px; }
.qbadge__meta strong { font-weight: 700; }
.qbadge__line { color: var(--fg-3); }
@media (max-width: 820px) { .qbadges { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .qbadge { flex-direction: column; align-items: flex-start; } }


/* ==========================================================================
   Ported interactions — React Bits Pro (licensed), rebuilt on Motion
   primitives (motionValue/styleEffect). Logic in app.js.
   .cmp    comparison slider  · production, design section
   .galpan pannable photo wall · production, „В цеха" (fine pointers only)
   metq tilt · quality metrology cards (perspective lives here, motion in JS)
   ========================================================================== */
.cmp { margin-top: clamp(24px, 3vw, 44px); }
.cmp__frame {
  position: relative;
  border: 1px solid var(--night-line);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--night-2) 88%, transparent), var(--night)),
    var(--night);
  overflow: hidden;
}
.cmp__frame::before, .cmp__frame::after {
  content: '';
  position: absolute; z-index: 3;
  width: 18px; height: 18px;
  border: 0 solid var(--red);
  opacity: 0.85; pointer-events: none;
}
.cmp__frame::before { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.cmp__frame::after { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.cmp__bar {
  position: absolute; top: 14px; left: 50%; translate: -50%;
  z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel-light); white-space: nowrap; pointer-events: none;
}
.cmp__led { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.cmp__stage { position: relative; height: clamp(280px, 32vw, 400px); touch-action: pan-y; }
.cmp__side {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  will-change: clip-path;
}
/* the drawing half: engineering-grid ground, the SAME cut-out as a negative */
.cmp__side--draw {
  clip-path: inset(0 50% 0 0);
  background:
    linear-gradient(to right, color-mix(in srgb, var(--steel-light) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--steel-light) 7%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
}
.cmp__side--real {
  clip-path: inset(0 0 0 50%);
  background: radial-gradient(70% 85% at 50% 42%, color-mix(in srgb, var(--steel) 16%, transparent), transparent 70%);
}
.cmp__img {
  max-height: 72%; max-width: min(58%, 620px);
  width: auto; height: auto;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.55));
}
.cmp__img--draw {
  filter: grayscale(1) invert(0.92) sepia(0.5) hue-rotate(175deg) saturate(1.7) contrast(1.22) brightness(1.05);
  opacity: 0.92;
  mix-blend-mode: screen;
}
.cmp__dims { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cmp__axis { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 12 5 2 5; opacity: 0.7; }
.cmp__dimline { stroke: var(--steel); stroke-width: 1; opacity: 0.65; }
.cmp__ann {
  fill: #FF7A5C;
  font: 600 11px var(--font-mono, monospace);
  letter-spacing: 0.06em;
}
.cmp__tag {
  position: absolute; top: 40px; z-index: 3;
  padding: 4px 9px;
  border: 1px solid var(--night-line); border-radius: 3px;
  background: color-mix(in srgb, var(--night) 62%, transparent);
  color: var(--steel-light);
  font-size: 0.64rem; letter-spacing: 0.13em;
  pointer-events: none;
}
.cmp__tag--l { left: 14px; }
.cmp__tag--r { right: 14px; }
.cmp__slider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px; z-index: 4;
  background: color-mix(in srgb, #fff 82%, transparent);
  cursor: grab; touch-action: none;
  will-change: transform;
}
.cmp__slider:focus-visible { outline: none; }
.cmp__slider:focus-visible .cmp__handle { outline: 2px solid var(--red); outline-offset: 2px; }
.cmp__handle {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #16161C; border: 1px solid var(--steel);
  color: #EDEDF0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: scale var(--d-fast) var(--ease-out);
}
.cmp__handle svg { width: 20px; height: 20px; }
.cmp__slider.is-active { cursor: grabbing; }
.cmp__slider.is-active .cmp__handle { scale: 1.08; }
@media (max-width: 700px) {
  .cmp__img { max-width: 62%; }
  .cmp__tag { top: 36px; }
}

/* pannable photo wall — enhancement classes only; no-js keeps the plain grid */
.galpan { position: relative; }
.galpan__hint { display: none; }
.galpan.is-pan {
  overflow: hidden; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
}
.galpan.is-pan.is-drag { cursor: grabbing; }
.galpan.is-pan:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.galpan.is-pan .gal {
  display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-columns: clamp(230px, 24vw, 330px);
  width: max-content; height: clamp(330px, 34vw, 430px);
  will-change: transform;
}
.galpan.is-pan .gal__item { aspect-ratio: auto; height: 100%; }
.galpan.is-pan .gal__img {
  user-select: none; -webkit-user-drag: none;
  pointer-events: none;
}
.galpan.is-pan .galpan__hint {
  display: inline-flex; align-items: center; gap: 6px;
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  padding: 5px 11px; border-radius: 99px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--fg-3); font-size: 0.62rem; letter-spacing: 0.14em;
  pointer-events: none;
}

/* metrology depth tilt — JS drives rotate/parallax, CSS supplies the space */
.metq { perspective: 1100px; }
.metq__card[data-tilt] { transform-style: preserve-3d; }
.metq__card.has-tilt { will-change: transform; }
.metq__card.has-tilt .metq__fig img { transition: none; will-change: transform; }
.metq__card.has-tilt:hover .metq__fig img { transform: none; }


/* ==========================================================================
   Home v3 (2026-08-28) — compact pass:
   hero = 6 high-res cut-outs in the side gutters only (no title overlap);
   mpk3 = machine renders floating around the 81 dial + counts;
   ind3 = the three industry scenes as one compact 3-across row;
   eu-teaser + cta band tightened. „Какво правим" section removed.
   ========================================================================== */
/* hero: tighter stage, parts pinned to the gutters at sharp (≤ natural/3) sizes */
.pg-dense .hero {
  min-height: clamp(370px, 46svh, 520px);
  padding-block: clamp(38px, 5vw, 60px);
}
.pg-dense .hero__actions { margin-top: var(--s-6); }
.hero__part--1 { left: 2%;  top: 16%; --w: 13%;  --rot: -7deg; }
.hero__part--2 { left: 9%;  top: 56%; --w: 9%;   --rot: 10deg; }
.hero__part--3 { left: 2%;  top: 72%; --w: 7%;   --rot: -4deg; }
.hero__part--4 { right: 4%; top: 13%; --w: 8%;   --rot: 8deg; }
.hero__part--5 { right: 10%; top: 52%; --w: 10%; --rot: -6deg; }
.hero__part--6 { right: 2%; top: 72%; --w: 8.5%; --rot: 12deg; }
@media (max-width: 900px) {
  .hero__part--1 { left: -5%; top: 10%; --w: 24%; }
  .hero__part--3 { left: -4%; top: 80%; --w: 15%; }
  .hero__part--4 { right: -4%; top: 9%; --w: 17%; }
  .hero__part--6 { right: -5%; top: 80%; --w: 18%; }
}

/* mpk3 — machine renders drift around a centred dial + counts core */
.mpk3 { position: relative; margin-top: var(--s-6); min-height: 400px; display: grid; align-items: center; }
.mpk3 .mpk2 { margin-top: 0; display: block; max-width: 620px; margin-inline: auto; position: relative; z-index: 2; }
.mpk3 .mpk2__dial { text-align: center; display: block; }
.mpk3 .mpk2__legend { margin-top: var(--s-6); }
.mpk3__cloud { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mpk3__m {
  position: absolute; margin: 0;
  width: clamp(102px, 10vw, 150px);
  pointer-events: auto;
}
.mpk3__m img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
}
.mpk3__chip {
  position: absolute; left: 50%; bottom: -4px; translate: -50% 0;
  padding: 3px 9px; white-space: nowrap;
  border: 1px solid var(--night-line); border-radius: 3px;
  background: color-mix(in srgb, var(--night) 78%, transparent);
  color: var(--steel-light);
  font-size: 0.62rem; letter-spacing: 0.1em;
  opacity: 0; translate: -50% 6px;
  transition: opacity var(--d-base) var(--ease-out), translate var(--d-base) var(--ease-out);
  pointer-events: none;
}
.mpk3__m:hover .mpk3__chip { opacity: 1; translate: -50% 0; }
.mpk3__m--1 { left: 1%;  top: 0; }
.mpk3__m--2 { left: 5%;  top: 37%; }
.mpk3__m--3 { left: 1%;  bottom: 2%; }
.mpk3__m--4 { right: 1%; top: 0; }
.mpk3__m--5 { right: 5%; top: 39%; }
.mpk3__m--6 { right: 1%; bottom: 2%; }
@keyframes mpk3-bob {
  0%, 100% { transform: translateY(-7px) rotate(-0.6deg); }
  50% { transform: translateY(8px) rotate(0.6deg); }
}
.mpk3.is-live .mpk3__m { animation: mpk3-bob calc(10s + var(--n) * 1.9s) var(--ease-in-out) calc(var(--n) * -2.4s) infinite; }
@media (prefers-reduced-motion: reduce) { .mpk3.is-live .mpk3__m { animation: none; } }
@media (max-width: 1150px) {
  .mpk3 { min-height: 0; }
  .mpk3__m--2, .mpk3__m--5 { display: none; }
  .mpk3__m { width: clamp(120px, 14vw, 170px); }
}
@media (max-width: 860px) {
  /* 2026-09-05: mini machine cloud on phones — top pair beside the dial,
     bottom pair in reserved space below the legend */
  .mpk3 { padding-bottom: 118px; }
  .mpk3__m { width: clamp(72px, 21vw, 96px); }
  .mpk3__m--2, .mpk3__m--5 { display: none; }
  .mpk3__m--1 { left: -4px; top: 0; }
  .mpk3__m--3 { left: 8vw; bottom: 0; }
  .mpk3__m--4 { right: -4px; top: 0; }
  .mpk3__m--6 { right: 8vw; bottom: 0; }
  .mpk3__chip { display: none; }
}

/* ind3 — the three scenes side by side, everything under them compact */
.ind3 {
  margin-top: var(--s-6);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.ind3__card { min-width: 0; }
.ind3 .ind-scene__bar { top: 9px; gap: 6px; font-size: 0.56rem; }
.ind3 .ind-scene__frame::before, .ind3 .ind-scene__frame::after { width: 12px; height: 12px; }
.ind3 .ind-panel__kicker { margin-top: var(--s-4); }
.ind3__title { margin-top: var(--s-2); }
.ind3__text { margin-top: var(--s-2); color: var(--fg-2); }
.ind3__tags { margin-top: var(--s-3); }
@media (max-width: 980px) {
  .ind3 { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .ind3 .ind-scene__frame { max-width: 480px; margin-inline: auto; }
  .ind3 .ind-scene__bar { font-size: 0.64rem; }
}

/* eu-teaser — cards enter staggered (JS), active project pulses, arrow slides */
.eu-mini__led {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 6px; vertical-align: 1px;
  background: currentColor;
  animation: eu-led 1.8s var(--ease-in-out) infinite;
}
@keyframes eu-led { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .eu-mini__led { animation: none; } }
.eu-mini__no { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.eu-mini__go { display: inline-grid; place-items: center; color: var(--accent-text); }
.eu-mini__go .icon { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) {
  .eu-mini__go { opacity: 0; translate: -6px 0; transition: opacity var(--d-base) var(--ease-out), translate var(--d-base) var(--ease-out); }
  .eu-mini:hover .eu-mini__go { opacity: 1; translate: 0 0; }
}

/* „Имате чертеж?" band — slimmer everywhere */
.cta-band.section--tight { padding-block: clamp(20px, 2.4vw, 36px); }
.cta2__title { font-size: clamp(1.1rem, 0.95rem + 0.9vw, 1.5rem); }
.cta2__lead { margin-top: 2px; }

/* EU current-project band — slimmer top strip (all publicity content stays
   visible; only type scale, logo size and paddings shrink) */
.cpb { padding-block: clamp(8px, 1.2vw, 14px); }
.cpb2 { grid-template-columns: clamp(100px, 10vw, 128px) minmax(0, 1fr) auto; }
.cpb2__logos img { max-width: 128px; }
.cpb2__kick { font-size: 0.62rem; }
.cpb2__title { font-size: clamp(0.92rem, 0.86rem + 0.4vw, 1.08rem); margin-top: 2px; }
.cpb2__summary { font-size: 0.78rem; line-height: 1.42; margin-top: 4px; }
.cpb2__stats { margin-top: 5px; }
.cpb2__stat dd { font-size: 0.78rem; }
.cpb2__statement { font-size: 0.66rem; line-height: 1.4; padding-top: 5px; }

/* home products — the Продукти-page sliding strip instead of the explorer */
.pexs__strip { margin-top: var(--s-2); }
.pexs__strip .marquee { margin-top: var(--s-4); }
.pexs__more { margin-top: var(--s-5); }

/* hero v4 — cinematic shop floor: the CTX beta photo full-bleed under a
   scrim, kinetic title + red toolpath on top (floating parts retired) */
.hero--photo { isolation: isolate; }
.hero--photo .hero__media { position: absolute; inset: 0; z-index: -2; }
.hero--photo .hero__media img,
.hero--photo .hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero--photo .hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(62% 74% at 50% 44%, rgba(9, 9, 14, 0.38), transparent 76%),
    linear-gradient(180deg, rgba(9, 9, 14, 0.78), rgba(9, 9, 14, 0.42) 40%, rgba(9, 9, 14, 0.46) 62%, rgba(9, 9, 14, 0.85));
}
.hero--photo.hero { min-height: clamp(420px, 54svh, 600px); }
.hero--photo .hero__tp-line { opacity: 0.85; }

/* hero v5 — „РАБОТЕН ЦИКЪЛ": animated machining-cycle scene in a technical
   frame, title left. ONE 16s master loop drives every hx keyframe (block in →
   clamp → 3 passes eat the stock behind the tool, sparks + chips → retract →
   dims draw → part out). Off-screen / reduced-motion = posed mid-cut frame. */
.hero--cycle.hero { min-height: clamp(430px, 55svh, 600px); }
.hero5 {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  width: 100%;
  position: relative; z-index: 2;
}
.hero5__text { text-align: left; }
.hero5__text .hero__title { font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.9rem); }
.hero5__text .hero__lead { margin-left: 0; margin-right: 0; max-width: 46ch; }
.hero5__text .hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: flex-start; }
.hero5__scene { min-width: 0; }
.hx-frame {
  position: relative;
  border: 1px solid var(--night-line);
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    linear-gradient(to right, color-mix(in srgb, var(--steel-light) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--steel-light) 7%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in srgb, var(--night-2) 88%, transparent), var(--night)),
    var(--night);
  background-size: 36px 36px, 36px 36px, auto, auto;
}
.hx-frame::before, .hx-frame::after {
  content: '';
  position: absolute; z-index: 3;
  width: 16px; height: 16px;
  border: 0 solid var(--red);
  opacity: 0.85; pointer-events: none;
}
.hx-frame::before { top: 9px; left: 9px; border-top-width: 2px; border-left-width: 2px; }
.hx-frame::after { bottom: 9px; right: 9px; border-bottom-width: 2px; border-right-width: 2px; }
.hx-bar {
  position: absolute; top: 12px; left: 50%; translate: -50%;
  z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel-light); white-space: nowrap; pointer-events: none;
}
.hx-led { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
[data-hero-scene].is-live .hx-led { animation: hx-led 1.8s var(--ease-in-out) infinite; }
@keyframes hx-led { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hx-svg { display: block; width: 100%; height: auto; }

/* palette — mirrors the industry scenes */
.hx-steel  { fill: #23232B; stroke: var(--steel-light); stroke-width: 1.5; }
.hx-steel2 { fill: #2C2C36; stroke: var(--steel-light); stroke-width: 1.5; }
.hx-hatch  { stroke: var(--steel); stroke-width: 1; opacity: 0.4; }
.hx-slot   { stroke: #17171D; stroke-width: 2; }
.hx-part   { fill: #31313D; stroke: var(--steel-light); stroke-width: 1.6; }
.hx-edge   { stroke: var(--red); stroke-width: 2; }
.hx-layerA, .hx-shl, .hx-shr { fill: #2B2B36; stroke: var(--steel-light); stroke-width: 1.2; stroke-dasharray: 6 4; }
.hx-tool   { fill: #3A3A46; stroke: var(--steel-light); stroke-width: 1.2; }
.hx-flutes path { stroke: #181820; stroke-width: 2; }
.hx-tool-edge { fill: var(--red); }
.hx-spark  { stroke: var(--red); stroke-width: 2; stroke-linecap: round; }
.hx-chip path { fill: #4A4A56; stroke: var(--steel-light); stroke-width: 0.8; }
.hx-ann    { fill: #8A8A95; font: 600 12px var(--font-mono, monospace); letter-spacing: 0.05em; }
.hx-ann--red { fill: #FF6A4D; }
.hx-axis   { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 12 5 2 5; opacity: 0.55; }
.hx-dim    { stroke: var(--steel); stroke-width: 1; }

/* posed defaults: mid-cut, slab gone, no sparks/chips, dims shown */
.hx-layerA, .hx-sparks, .hx-chip { opacity: 0; }
.hx-stock, .hx-jawr, .hx-headx, .hx-heady, .hx-layerA, .hx-shl, .hx-shr,
.hx-chip, .hx-sparks, .hx-flutes { transform-box: fill-box; }
.hx-layerA { transform-origin: right center; }
.hx-shl { transform-origin: left center; }
.hx-shr { transform-origin: right center; }
.hx-chip { transform-origin: center; }

/* the 16s master loop — every duration below MUST stay 16s */
.is-live .hx-stock  { animation: hxStock 16s linear infinite; }
.is-live .hx-jawr   { animation: hxJawR 16s linear infinite; }
.is-live .hx-headx  { animation: hxHeadX 16s var(--ease-in-out) infinite; }
.is-live .hx-heady  { animation: hxHeadY 16s var(--ease-in-out) infinite; }
.is-live .hx-layerA { opacity: 1; animation: hxLayerA 16s linear infinite; }
.is-live .hx-shl    { animation: hxShL 16s linear infinite; }
.is-live .hx-shr    { animation: hxShR 16s linear infinite; }
.is-live .hx-sparks { animation: hxSparksO 16s linear infinite; }
.is-live .hx-spark  { animation: hxSparkFlick 0.38s steps(2, jump-none) infinite; }
.is-live .hx-chip--1 { animation: hxChip1 16s linear infinite; }
.is-live .hx-chip--2 { animation: hxChip2 16s linear infinite; }
.is-live .hx-chip--3 { animation: hxChip3 16s linear infinite; }
.is-live .hx-dims   { animation: hxDims 16s linear infinite; }
.is-live .hx-flutes { animation: hxFlutes 0.14s linear infinite alternate; }
@keyframes hxStock {
  0% { transform: translateX(-300px); }
  8%, 88% { transform: translateX(0); }
  97%, 100% { transform: translateX(-380px); }
}
@keyframes hxJawR {
  0%, 8% { transform: translateX(18px); }
  11%, 86% { transform: translateX(0); }
  89%, 100% { transform: translateX(18px); }
}
@keyframes hxHeadY {
  0%, 14% { transform: translateY(-170px); }
  18%, 32% { transform: translateY(0); }
  34%, 60% { transform: translateY(46px); }
  66%, 100% { transform: translateY(-170px); }
}
@keyframes hxHeadX {
  0%, 18% { transform: translateX(-95px); }
  32%, 34% { transform: translateX(88px); }
  46% { transform: translateX(-95px); }
  60%, 66% { transform: translateX(88px); }
  78%, 100% { transform: translateX(-95px); }
}
@keyframes hxLayerA {
  0%, 18% { transform: scaleX(1); }
  32%, 100% { transform: scaleX(0); }
}
@keyframes hxShL {
  0%, 40% { transform: scaleX(1); }
  46%, 100% { transform: scaleX(0); }
}
@keyframes hxShR {
  0%, 53% { transform: scaleX(1); }
  60%, 100% { transform: scaleX(0); }
}
@keyframes hxSparksO {
  0%, 17.5% { opacity: 0; }
  19%, 31% { opacity: 1; }
  33% { opacity: 0.2; }
  35%, 59% { opacity: 1; }
  62%, 100% { opacity: 0; }
}
@keyframes hxSparkFlick { from { opacity: 1; } to { opacity: 0.15; } }
@keyframes hxChip1 {
  0%, 20% { opacity: 0; transform: translate(0, 0) rotate(0); }
  22% { opacity: 1; }
  30%, 100% { opacity: 0; transform: translate(-70px, -95px) rotate(-160deg); }
}
@keyframes hxChip2 {
  0%, 36% { opacity: 0; transform: translate(0, 0) rotate(0); }
  38% { opacity: 1; }
  45%, 100% { opacity: 0; transform: translate(60px, -80px) rotate(140deg); }
}
@keyframes hxChip3 {
  0%, 52% { opacity: 0; transform: translate(0, 0) rotate(0); }
  54% { opacity: 1; }
  60%, 100% { opacity: 0; transform: translate(-55px, -85px) rotate(-120deg); }
}
@keyframes hxDims {
  0%, 66% { opacity: 0; }
  73%, 85% { opacity: 1; }
  88%, 100% { opacity: 0; }
}
@keyframes hxFlutes { from { transform: translateY(0); } to { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) {
  .is-live .hx-stock, .is-live .hx-jawr, .is-live .hx-headx, .is-live .hx-heady,
  .is-live .hx-shl, .is-live .hx-shr, .is-live .hx-spark, .is-live .hx-dims,
  .is-live .hx-flutes, .is-live .hx-chip--1, .is-live .hx-chip--2, .is-live .hx-chip--3 { animation: none; }
  .is-live .hx-layerA { animation: none; opacity: 0; }
  .is-live .hx-sparks { animation: none; opacity: 0; }
  [data-hero-scene].is-live .hx-led { animation: none; }
}
@media (max-width: 1000px) {
  .hero5 { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .hero5__text { text-align: center; }
  .hero5__text .hero__lead { margin-inline: auto; }
  .hero5__text .hero__actions { justify-content: center; }
  .hero5__scene { max-width: 540px; margin-inline: auto; width: 100%; }
}

/* --------------------------------------------------------------------------
   Defence assembly module (asmx) — Products + Production (2026-09-02).
   Three transparent cutouts screw together: descent via --e (cqh offsets),
   thread-feed + full-part sheen = the spin. GOTCHA: CSS animations on the
   masked .asm__spin carrier never applied opacity in Chrome — animate the
   CHILD (.asm__spin-in) only.
   -------------------------------------------------------------------------- */
.asmx__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.asm { max-width: 440px; width: 100%; margin-inline: auto; }
.asm__frame {
  position: relative;
  aspect-ratio: 864 / 1184;
  container-type: size;
  border: 1px solid #2E343C;
  border-radius: var(--r-md);
  background:
    linear-gradient(to right, rgba(180, 196, 214, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 196, 214, 0.05) 1px, transparent 1px),
    #000;
  background-size: 40px 40px, 40px 40px, 100% 100%;
  overflow: hidden;
}
.asm__frame--doc::before, .asm__frame--doc::after {
  content: '';
  position: absolute; width: 18px; height: 18px;
  border: 0 solid var(--red); opacity: 0.85; z-index: 3;
}
.asm__frame--doc::before { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.asm__frame--doc::after { bottom: 42px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }
.asm__pc {
  position: absolute; display: block;
  translate: 0 calc(var(--off) * 1cqh * (1 - var(--e, 0)));
  transition: translate 1150ms cubic-bezier(0.3, 0.85, 0.3, 1.02);
  will-change: translate;
  isolation: isolate;
}
.asm__pc img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55)); }
/* assembly: the body seats first, the head follows; DISASSEMBLY mirrors it —
   the head must detach before the body moves, or the body lifts into the
   still-seated head (2026-09-03 fix) */
.asm__pc--head { transition-delay: 380ms; }
.asm.is-apart .asm__pc--head { transition-delay: 0ms; }
.asm.is-apart .asm__pc--body { transition-delay: 380ms; }
.asm__frame { --e: 0; }
.asm.is-apart .asm__frame { --e: 1; }
/* rotation sheen: streaks sweep across the whole part, masked to its alpha */
.asm__spin {
  position: absolute; inset: 0; display: block; overflow: hidden; pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  mix-blend-mode: overlay;
}
.asm__spin-in {
  position: absolute; top: 0; bottom: 0; left: 0; width: 300%;
  opacity: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0%, transparent 7%,
    rgba(255, 255, 255, 0.55) 11%, transparent 15%,
    transparent 20%, rgba(0, 0, 0, 0.5) 26%, transparent 31%, transparent 33.333%);
}
.asm--free:not(.is-apart) .asm__pc--body .asm__spin-in { animation: asmSpinIn 1.15s linear; }
.asm--free:not(.is-apart) .asm__pc--head .asm__spin-in { animation: asmSpinIn 1.3s linear 340ms; }
.asm--free.is-apart .asm__pc--head .asm__spin-in { animation: asmSpinOut 1s linear; }
.asm--free.is-apart .asm__pc--body .asm__spin-in { animation: asmSpinOut 1s linear 300ms; }
@keyframes asmSpinIn {
  0% { translate: 0 0; opacity: 0; }
  12% { opacity: 0.55; }
  88% { opacity: 0.55; }
  100% { translate: -66.666% 0; opacity: 0; }
}
@keyframes asmSpinOut {
  0% { translate: -66.666% 0; opacity: 0; }
  12% { opacity: 0.55; }
  88% { opacity: 0.55; }
  100% { translate: 0 0; opacity: 0; }
}
/* thread feed: a tile of the same photographed thread scrolls in a soft mask */
.asm__thr {
  position: absolute; display: block; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.asm__thr-in {
  position: absolute; left: 0; top: 0; width: 100%; height: 400%;
  background-size: 100% auto; background-repeat: repeat-y;
  opacity: 0;
}
.asm--free:not(.is-apart) .asm__pc--body .asm__thr-in { animation: asmThrIn 1.15s linear; }
.asm--free:not(.is-apart) .asm__pc--head .asm__thr-in { animation: asmThrIn 1.3s linear 340ms; }
.asm--free.is-apart .asm__pc--head .asm__thr-in { animation: asmThrOut 1s linear; }
.asm--free.is-apart .asm__pc--body .asm__thr-in { animation: asmThrOut 1s linear 300ms; }
@keyframes asmThrIn {
  0% { translate: 0 -18%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { translate: 0 0; opacity: 0; }
}
@keyframes asmThrOut {
  0% { translate: 0 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { translate: 0 -18%; opacity: 0; }
}
/* numbered positions, title block, spec table */
.asm__mark {
  position: absolute; width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid var(--red); border-radius: var(--r-full);
  font-size: 0.56rem; font-weight: 700; color: #E8ECF1;
  background: rgba(10, 12, 15, 0.7);
  opacity: 0; transition: opacity var(--d-slow) var(--ease-out) 350ms;
  pointer-events: none; z-index: 2;
}
.asm__mark--l { left: 14px; }
.asm__mark--r { right: 14px; }
.asm.is-apart .asm__mark { opacity: 1; }
.asm__tblock {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 7px 12px;
  border-top: 1px solid #2E343C;
  background: rgba(8, 10, 13, 0.8);
  font-size: 0.54rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8E98A5;
}
.asm__tblock b { color: #E8ECF1; }
.asm__bom { width: 100%; margin-top: var(--s-3); border-collapse: collapse; font-size: 0.62rem; color: var(--fg-2); }
.asm__bom td { padding: 5px 10px; border-bottom: 1px solid var(--night-line, #23282F); }
.asm__bom td:first-child { width: 40px; color: var(--red); font-weight: 700; }
.asm__bom-foot td { color: var(--fg-3); border-bottom: 0; font-size: 0.58rem; }
@media (max-width: 900px) {
  .asmx__wrap { grid-template-columns: minmax(0, 1fr); }
  .asm { max-width: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  .asm__pc { transition: none; }
  .asm__thr-in, .asm__spin-in { animation: none !important; }
  .asm.is-apart .asm__frame { --e: 0; }
  .asm.is-apart .asm__mark { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Facility band v2 „Заводът на здрач" (2026-09-02, user pick B) — the real
   render re-lit at dusk in a deliberately-dark card (both themes), plus the
   machine-park fold. Counters ride the global [data-count] animator.
   -------------------------------------------------------------------------- */
.fx {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) auto;
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
  background: linear-gradient(120deg, #101318, #171B22);
  border: 1px solid #2E343C;
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 30px);
  position: relative;
  overflow: hidden;
}
.fx__media { position: relative; border-radius: var(--r-md); overflow: hidden; margin: 0; }
.fx__img { display: block; width: 100%; height: auto; }
.fx__media::before, .fx__media::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border: 0 solid var(--red); z-index: 2; opacity: 0.9;
}
.fx__media::before { top: 6px; left: 6px; border-top-width: 2px; border-left-width: 2px; }
.fx__media::after { bottom: 6px; right: 6px; border-bottom-width: 2px; border-right-width: 2px; }
.fx__loc {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  padding: 4px 9px;
  font-size: 0.54rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #E8ECF1; background: rgba(8, 10, 13, 0.72);
  border: 1px solid #3A4048; border-radius: var(--r-full);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.fx__kick { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.fx__title { color: #E8ECF1; margin-top: 8px; }
.fx__lead { color: #A8B2BE; margin-top: 10px; max-width: 44ch; }
.fx__stats { display: grid; gap: 16px; padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid #2E343C; }
.fx__stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: #E8ECF1; line-height: 1; }
.fx__stat > span { display: block; margin-top: 3px; font-size: 0.68rem; color: #8E98A5; }
.fx__stat i { display: block; width: 22px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 7px; }
@media (max-width: 980px) {
  .fx { grid-template-columns: minmax(0, 1fr); }
  .fx__stats { border-left: 0; padding-left: 0; grid-template-columns: repeat(3, minmax(0, auto)); gap: clamp(12px, 4vw, 28px); }
}

/* machine park behind a fold, closed by default */
.mpkfold { border: 1px solid var(--night-line); border-radius: var(--r-md); background: color-mix(in srgb, var(--night-2, #14181E) 70%, transparent); }
.mpkfold__btn {
  display: flex; align-items: center; gap: var(--s-4);
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 28px);
  cursor: pointer; list-style: none;
  transition: background-color var(--d-fast) var(--ease-out);
}
.mpkfold__btn::-webkit-details-marker { display: none; }
.mpkfold__label { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 800; color: var(--fg); letter-spacing: -0.01em; }
.mpkfold__n { margin-left: auto; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.mpkfold__caret { width: 20px; height: 20px; flex: none; color: var(--red); transition: transform var(--d-base) var(--ease-out); }
.mpkfold[open] .mpkfold__caret { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .mpkfold__btn:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
}
.mpkfold__body { padding: 0 clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px); }
.mpkfold[open] .mpkfold__body { animation: mpkfoldIn 460ms var(--ease-out); }
@keyframes mpkfoldIn { from { opacity: 0; translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .mpkfold[open] .mpkfold__body { animation: none; } }

/* --------------------------------------------------------------------------
   About v2 (2026-09-02): why = self-drawing check ticks; reach = animated
   dot-matrix Europe (static/img/gen/europe-dots.svg, traced from the old
   europe-map asset — regen script in the memory note). Both gate on the
   .reveal .is-in class from reveals().
   -------------------------------------------------------------------------- */
.why__item {
  display: flex; align-items: flex-start; gap: var(--s-4);
  padding: var(--s-5) var(--s-5);
  border: 1px solid var(--night-line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--night-2, #14181E) 55%, transparent);
  transition: transform var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .why__item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--red) 55%, var(--night-line)); }
}
.why__box {
  flex: none; width: 27px; height: 27px;
  display: grid; place-items: center;
  border: 1.5px solid var(--night-line); border-radius: 8px;
  color: var(--red);
  transition: border-color var(--d-base) var(--ease-out);
}
.why__box svg { width: 17px; height: 17px; }
.why__tick { stroke-dasharray: 27; stroke-dashoffset: 27; }
.why__item.is-in .why__tick {
  animation: whyTick 0.55s var(--ease-out) forwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + 380ms);
}
.why__item.is-in .why__box {
  animation: whyPop 0.5s var(--ease-out) both;
  animation-delay: calc(var(--reveal-delay, 0ms) + 380ms);
}
@keyframes whyTick { to { stroke-dashoffset: 0; } }
@keyframes whyPop {
  0% { border-color: var(--night-line); }
  45% { scale: 1.18; border-color: var(--red); }
  100% { scale: 1; border-color: var(--night-line); }
}
@media (prefers-reduced-motion: reduce) {
  .why__item.is-in .why__tick { animation: none; stroke-dashoffset: 0; }
  .why__item.is-in .why__box { animation: none; }
}

/* reach: dot-matrix Europe */
.emap-fig { position: relative; max-width: 560px; margin-inline: auto; }
.emap { display: block; width: 100%; height: auto; }
.emap-dot { fill: #3E434B; opacity: 0; transform-box: fill-box; transform-origin: center; }
[data-theme="dark"] .emap-dot { fill: #4A5058; }
.emap-dot--bg { fill: var(--red); }
.reveal.is-in .emap-dot { animation: emapDot 0.5s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes emapDot { from { opacity: 0; scale: 0.2; } to { opacity: 1; scale: 1; } }
.emap-pin, .emap-arcs { opacity: 0; }
.reveal.is-in .emap-pin, .reveal.is-in .emap-arcs { animation: emapFade 0.6s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes emapFade { to { opacity: 1; } }
.emap-core { fill: var(--red); }
.emap-ring { fill: none; stroke: var(--red); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.reveal.is-in .emap-ring--1 { animation: emapFade 0.6s var(--ease-out) forwards, emapPulse 2.6s var(--ease-in-out) 2s infinite; animation-delay: var(--d, 0ms), 2s; }
@keyframes emapPulse { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.35; opacity: 0.25; } }
.emap-arc {
  fill: none; stroke: color-mix(in srgb, var(--red) 65%, transparent); stroke-width: 3;
  stroke-dasharray: 7 9;
}
.reveal.is-in .emap-arc { animation: emapArcMove 1.4s linear infinite; }
@keyframes emapArcMove { to { stroke-dashoffset: -16; } }
.emap-label {
  position: absolute; left: 66%; top: 71%;
  padding: 4px 10px; white-space: nowrap;
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg); background: var(--bg-raised);
  border: 1px solid var(--rule); border-radius: var(--r-full);
  box-shadow: var(--sh-1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal.is-in .emap-dot, .reveal.is-in .emap-pin, .reveal.is-in .emap-arcs,
  .reveal.is-in .emap-ring--1, .reveal.is-in .emap-arc { animation: none; opacity: 1; }
}

/* --------------------------------------------------------------------------
   Contact compact pass (2026-09-03): tighter hero, cards, form and map.
   -------------------------------------------------------------------------- */
.pg-contact .page-hero--short { min-height: 0; padding-block: clamp(24px, 3.5vw, 46px) clamp(18px, 2.6vw, 34px); }
.pg-contact .ct { padding-block: var(--section-y-tight); }
.pg-contact .ct__grid { margin-top: var(--s-6); gap: var(--s-3); }
.pg-contact .ct-card { padding: var(--s-5) var(--s-5) var(--s-4); }
.pg-contact .ct-duo { padding-block: clamp(24px, 3vw, 44px); }
.pg-contact .f2-field { gap: 4px; }
.pg-contact .ct-form { gap: var(--s-3); }
.pg-contact .ct-form textarea { min-height: 92px; height: 92px; }
.pg-contact .ct-route__title { margin-bottom: var(--s-4); }
.pg-contact .ct-dist { margin-top: var(--s-5); }
.pg-contact .sec-head .lead { margin-top: var(--s-3); }
.pg-contact .map { margin-top: var(--s-6); height: clamp(280px, 34vw, 430px); }

/* --------------------------------------------------------------------------
   V2 colour scheme — component patches (2026-09-03). Inside light-theme
   beige sections, chips/cards that reached for the night ramp directly now
   use the semantic tokens; the drawn scene frames stay dark instruments.
   -------------------------------------------------------------------------- */
html:not([data-theme="dark"]) [data-tone="night"]:not(.page-hero):not(.hero) .ind-tag {
  border-color: var(--rule-strong);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  color: var(--fg-2);
}
html:not([data-theme="dark"]) [data-tone="night"]:not(.page-hero):not(.hero) .ind-panel__num {
  -webkit-text-stroke-color: var(--rule-strong);
}
html:not([data-theme="dark"]) [data-tone="night"]:not(.page-hero):not(.hero) .mpkfold {
  border-color: var(--rule-strong);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}
html:not([data-theme="dark"]) [data-tone="night"]:not(.page-hero):not(.hero) .why__item {
  border-color: var(--rule-strong);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}
html:not([data-theme="dark"]) [data-tone="night"]:not(.page-hero):not(.hero) .asm__bom td {
  border-color: var(--rule);
}
html:not([data-theme="dark"]) [data-tone="night"]:not(.page-hero):not(.hero) .mx2-type__name,
html:not([data-theme="dark"]) [data-tone="night"]:not(.page-hero):not(.hero) .mx2-type__n {
  color: var(--fg);
}
html:not([data-theme="dark"]) [data-tone="night"]:not(.page-hero):not(.hero) .marquee--brands .marquee__item img {
  filter: grayscale(1) contrast(1.15);
  opacity: 0.88;
}
html:not([data-theme="dark"]) [data-tone="night"]:not(.page-hero):not(.hero) .marquee--brands .marquee__item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   EU band duo (2026-09-03): both running projects side by side, larger EU
   emblem. End-of-file rules outrank the pg-dense/home-v3 cpb2 overrides.
   -------------------------------------------------------------------------- */
.cpb2--duo { grid-template-columns: clamp(170px, 18vw, 250px) minmax(0, 1fr); align-items: center; }
.cpb2--duo .cpb2__logos img { max-width: 250px; }
.cpb2__projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: var(--s-4) clamp(20px, 3vw, 48px);
}
.cpb2__proj { display: grid; gap: 4px; align-content: start; }
.cpb2__period { font-size: 0.7rem; color: var(--fg-3); }
.cpb2__links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: 4px; }
.cpb2--duo .cpb2__statement { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .cpb2--duo { grid-template-columns: minmax(0, 1fr); }
  .cpb2--duo .cpb2__logos img { max-width: 210px; }
}

/* EU band: a fading divider with a red diamond between the two projects */
.cpb2__projects { position: relative; }
.cpb2__proj + .cpb2__proj { position: relative; }
@media (min-width: 761px) {
  .cpb2__proj + .cpb2__proj::before {
    content: '';
    position: absolute;
    left: calc(-0.5 * clamp(20px, 3vw, 48px));
    top: 4%; bottom: 4%; width: 1px;
    background: linear-gradient(180deg, transparent,
      color-mix(in srgb, var(--fg) 26%, transparent) 28%,
      color-mix(in srgb, var(--fg) 26%, transparent) 72%, transparent);
  }
  .cpb2__proj + .cpb2__proj::after {
    content: '';
    position: absolute;
    left: calc(-0.5 * clamp(20px, 3vw, 48px) - 2.5px);
    top: 50%; translate: 0 -50%; rotate: 45deg;
    width: 6px; height: 6px;
    background: var(--red);
    box-shadow: 0 0 0 3px var(--bg);
  }
}
@media (max-width: 760px) {
  .cpb2__proj + .cpb2__proj { padding-top: var(--s-4); }
  .cpb2__proj + .cpb2__proj::before {
    content: '';
    position: absolute;
    top: 0; left: 4%; right: 4%; height: 1px;
    background: linear-gradient(90deg, transparent,
      color-mix(in srgb, var(--fg) 26%, transparent) 28%,
      color-mix(in srgb, var(--fg) 26%, transparent) 72%, transparent);
  }
  .cpb2__proj + .cpb2__proj::after {
    content: '';
    position: absolute;
    top: -2.5px; left: 50%; translate: -50% 0; rotate: 45deg;
    width: 6px; height: 6px;
    background: var(--red);
    box-shadow: 0 0 0 3px var(--bg);
  }
}

/* dropdown: the EU emblem brands the running-project cards */
.nav__sub-card__eu {
  display: block;
  width: 118px; height: auto;
  margin-top: var(--s-3);
  background: #fff; padding: 4px 6px;
  border-radius: 5px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
}

/* --------------------------------------------------------------------------
   Mobile polish (2026-09-05, iPhone pass): instant taps, safe areas,
   comfortable touch targets, reachable "Всички проекти" in the sheet.
   -------------------------------------------------------------------------- */
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mobile-menu__inner { padding-bottom: calc(var(--s-8) + env(safe-area-inset-bottom, 0px)); }
.mobile-menu__list .nav__link { padding-block: 12px; min-height: 44px; }
.mobile-menu .nav__sub-foot {
  margin-top: var(--s-4);
  padding: var(--s-3) 0 var(--s-2);
}
.mobile-menu .nav__sub-foot .link { font-size: 0.95rem; font-weight: 700; }
@media (max-width: 640px) {
  .lsw__btn, .thsw { min-height: 32px; }
}

/* EU band on phones: centred emblem reads better (2026-09-05) */
@media (max-width: 760px) {
  .cpb2--duo { justify-items: center; }
  .cpb2--duo .cpb2__logos { display: flex; justify-content: center; width: 100%; }
  .cpb2--duo .cpb2__logos img { margin-inline: auto; }
  .cpb2--duo .cpb2__projects, .cpb2--duo .cpb2__statement { width: 100%; }
}

/* EU teaser cards carry the co-funding emblem (2026-09-05) */
.eu-mini__eu {
  display: block;
  width: 108px; height: auto;
  margin-top: auto; margin-bottom: 10px;
  background: #fff; padding: 4px 6px;
  border-radius: 5px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 10%, transparent);
}

/* --------------------------------------------------------------------------
   Growth v2 + contact logistics + products density (2026-09-06)
   -------------------------------------------------------------------------- */
.grw {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
  margin-top: var(--s-8);
}
.grw__metric { padding: var(--s-4) 0; border-top: 1px solid var(--rule); }
.grw__metric:first-child { border-top: 0; padding-top: 0; }
.grw__value {
  font-family: var(--font-display); font-weight: 830; line-height: 1;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem); color: var(--fg);
}
.grw__label {
  margin-top: 7px; font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text);
}
.grw__text { margin-top: 5px; font-size: var(--fs-sm); color: var(--fg-3); max-width: 44ch; }

/* the chart as a dark instrument panel, bars grow on scroll */
.grw__panel {
  margin: 0; position: relative;
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid #2E343C; border-radius: var(--r-md);
  background:
    linear-gradient(to right, rgba(180, 196, 214, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 196, 214, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #14171D, #0B0D10);
  background-size: 38px 38px, 38px 38px, 100% 100%;
}
.grw__panel::before, .grw__panel::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border: 0 solid var(--red); opacity: 0.85;
}
.grw__panel::before { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.grw__panel::after { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }
.grw__panel-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8E98A5;
}
.grw__chart {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: clamp(5px, 0.9vw, 13px);
  height: clamp(180px, 21vw, 250px);
  padding-bottom: 26px;
  margin-top: var(--s-5);
}
.grw__bar { position: relative; height: 100%; }
.grw__bar-fill {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 0; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  transition: height 1s cubic-bezier(0.22, 0.9, 0.3, 1);
  transition-delay: calc(var(--i) * 65ms);
}
.grw__panel.is-in .grw__bar-fill { height: var(--h); }
.grw__bar--proj .grw__bar-fill {
  background: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--red) 65%, transparent) 0 5px, transparent 5px 11px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 55%, transparent);
}
.grw__bar-yr {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px;
  text-align: center; font-size: 0.56rem; color: #7A838F;
}
.grw__bar-v {
  position: absolute; bottom: var(--h); left: 0; right: 0; margin-bottom: 6px;
  text-align: center; font-size: 0.58rem; font-weight: 700; color: #E8ECF1;
  opacity: 0; transition: opacity 400ms var(--ease-out);
  transition-delay: calc(var(--i) * 65ms + 620ms);
}
.grw__panel.is-in .grw__bar-v { opacity: 1; }
.grw__panel-note { margin-top: var(--s-5); font-size: 0.56rem; color: #6F7783; }
@media (max-width: 900px) {
  .grw { grid-template-columns: minmax(0, 1fr); }
  .grw__bar-v { display: none; }
  .grw__bar-yr { font-size: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .grw__bar-fill { transition: none; height: var(--h); }
  .grw__bar-v { transition: none; opacity: 1; }
}

/* contact: grouped logistics rows */
.ct-dist { gap: var(--s-3); }
.ct-dist__head {
  display: flex; align-items: center; gap: 9px;
  margin-top: var(--s-4);
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-4);
}
.ct-dist__head:first-child { margin-top: 0; }
.ct-dist__head::before {
  content: ''; width: 15px; height: 2px; border-radius: 2px;
  background: var(--red); flex: none;
}
.ct-dist__sub {
  display: block; margin-top: 1px;
  font-size: 0.56rem; letter-spacing: 0.08em; color: var(--fg-4);
}

/* products: tighter showcase */
.pg-dense .pcat { margin-top: var(--s-10); }
.pg-dense .pcat__head { margin-bottom: var(--s-5); }
.pg-dense .ptile__frame { padding: 10px; }

/* products showcase: shorter tiles, denser grid (2026-09-06) */
.pg-dense .pcat__grid { margin-top: var(--s-6); gap: var(--s-3); }
.pg-dense .ptile__frame { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.pg-dense .ptile__cap { margin-top: 6px; font-size: 0.62rem; }
@media (min-width: 1280px) { .pg-dense .pcat__grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Export map (2026-09-07) — Търговище as origin, animated routes to the
   European markets. Geometry: build/gen_map.py; behaviour: emapRoutes() in
   app.js (hover/focus traces one route, otherwise it auto-tours).
   -------------------------------------------------------------------------- */
.emap-wrap { display: grid; gap: var(--s-5); }
.emap-fig {
  position: relative; margin: 0;
  max-width: 720px; width: 100%; margin-inline: auto;
}
.emap { display: block; width: 100%; height: auto; overflow: visible; }

/* the landmass */
.emap-dot { fill: var(--rule-strong); opacity: 0; transform-box: fill-box; transform-origin: center; }
[data-theme="dark"] .emap-dot { fill: #3F4650; }
.emap-dot--bg { fill: var(--red); }
.reveal.is-in .emap-dot { animation: emapDot 520ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes emapDot { from { opacity: 0; scale: 0.2; } to { opacity: 1; scale: 1; } }

/* routes */
.emap-arc {
  fill: none; stroke: var(--red); stroke-width: 3.5; stroke-linecap: round;
  opacity: 0; stroke-dasharray: var(--len, 900); stroke-dashoffset: var(--len, 900);
  transition: stroke-width 260ms var(--ease-out), opacity 260ms var(--ease-out);
}
.reveal.is-in .emap-arc {
  animation: emapDraw 1s var(--ease-out) forwards;
  animation-delay: calc(900ms + var(--i) * 70ms);
}
@keyframes emapDraw { to { opacity: 0.38; stroke-dashoffset: 0; } }
.emap-node {
  fill: var(--bg); stroke: var(--red); stroke-width: 3.5;
  opacity: 0; transform-box: fill-box; transform-origin: center;
  transition: scale 240ms var(--ease-out), fill 240ms var(--ease-out);
}
.reveal.is-in .emap-node {
  animation: emapPop 420ms var(--ease-out) forwards;
  animation-delay: calc(1500ms + var(--i) * 70ms);
}
@keyframes emapPop { from { opacity: 0; scale: 0.2; } to { opacity: 1; scale: 1; } }
.emap-node-hit { fill: transparent; cursor: pointer; }
.emap-packet { fill: var(--red); opacity: 0; filter: drop-shadow(0 0 7px rgba(250, 38, 0, 0.8)); }

/* the traced route — !important because the draw-in animation's forwards
   fill otherwise wins over these plain declarations */
.emap-route.is-hot .emap-arc { opacity: 1 !important; stroke-width: 5.5; }
.emap-route.is-hot .emap-node { scale: 1.45; fill: var(--red); }
[data-emap].has-hot .emap-route:not(.is-hot) .emap-arc { opacity: 0.12 !important; }
[data-emap].has-hot .emap-route:not(.is-hot) .emap-packet { opacity: 0 !important; }

/* origin */
.emap-core { fill: var(--red); }
.emap-ring { fill: none; stroke: var(--red); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.emap-origin { opacity: 0; }
.reveal.is-in .emap-origin { animation: emapFade 600ms var(--ease-out) 700ms forwards; }
@keyframes emapFade { to { opacity: 1; } }
.reveal.is-in .emap-ring--1 { animation: emapPulse 2.6s var(--ease-in-out) 1.4s infinite; }
@keyframes emapPulse { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.4; opacity: 0.2; } }

/* labels over the map */
.emap-origin-tag, .emap-tag {
  position: absolute; z-index: 2; translate: -50% -50%;
  padding: 4px 9px; white-space: nowrap;
  font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--r-full); box-shadow: var(--sh-2);
  pointer-events: none;
}
.emap-origin-tag {
  margin-top: 26px;
  color: #fff; background: var(--red-btn); border: 1px solid var(--red-btn);
  opacity: 0; transition: opacity 500ms var(--ease-out) 1.1s;
}
.reveal.is-in .emap-origin-tag { opacity: 1; }
.emap-tag {
  margin-top: -22px;
  color: var(--fg); background: var(--bg-raised); border: 1px solid var(--rule-strong);
  opacity: 0; scale: 0.9;
  transition: opacity 200ms var(--ease-out), scale 200ms var(--ease-out);
}
.emap-tag.is-hot { opacity: 1; scale: 1; }

/* legend */
.emap-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.emap-chip {
  padding: 6px 12px; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-3);
  background: var(--bg-raised); border: 1px solid var(--rule); border-radius: var(--r-full);
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out),
              background-color 180ms var(--ease-out);
}
.emap-chip.is-hot, .emap-chip:hover, .emap-chip:focus-visible {
  color: #fff; background: var(--red-btn); border-color: var(--red-btn);
}
.emap-hint { text-align: center; font-size: 0.58rem; color: var(--fg-4); }
@media (max-width: 640px) {
  .emap-chip { font-size: 0.54rem; padding: 5px 9px; }
  .emap-tag { font-size: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .emap-packet { display: none; }
  .reveal.is-in .emap-dot, .reveal.is-in .emap-arc, .reveal.is-in .emap-node,
  .reveal.is-in .emap-origin, .reveal.is-in .emap-ring--1 { animation: none; opacity: 1; }
  .emap-arc { stroke-dashoffset: 0; opacity: 0.38; }
}
