/* =========================================================
   OSA ARILJE — Design System
   Premium industrial B2B. Dark elegant surfaces.
   ========================================================= */

:root {
  /* Brand palette */
  --c-black: #0B0B0B;
  --c-ink: #111111;
  --c-surface: #141414;
  --c-surface-2: #1A1A1A;
  --c-graphite: #2A2A2A;
  --c-steel: #3A3A3A;
  --c-muted: #6E6E6E;
  --c-line: #2A2A2A;
  --c-line-soft: rgba(255,255,255,0.08);
  --c-light: #EAEAEA;
  --c-white: #FFFFFF;
  --c-red: #C40000;
  --c-red-600: #A60000;
  --c-red-700: #8C0000;

  /* Typography */
  --f-display: "Space Grotesk", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --f-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale (fluid) */
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: clamp(18px, 1.1vw + 12px, 22px);
  --fs-xl: clamp(22px, 1.4vw + 14px, 28px);
  --fs-h3: clamp(24px, 1.6vw + 14px, 34px);
  --fs-h2: clamp(32px, 2.6vw + 16px, 56px);
  --fs-h1: clamp(44px, 5vw + 16px, 96px);
  --fs-display: clamp(56px, 7vw + 16px, 140px);

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;
  --sp-11: 160px;

  /* Layout */
  --container: 1360px;
  --container-wide: 1560px;
  --gutter: clamp(20px, 3vw, 48px);
  --radius: 2px;
  --radius-lg: 6px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 520ms;
  --dur-4: 900ms;

  /* Header */
  --header-h: 88px;
  --topbar-h: 40px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-light);
  background: var(--c-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--c-white);
}

::selection { background: var(--c-red); color: var(--c-white); }

:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
}

/* Scrollbar */
@media (min-width: 900px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--c-black); }
  ::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 0; }
  ::-webkit-scrollbar-thumb:hover { background: var(--c-red); }
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 9vw, 160px); }
.section-sm { padding-block: clamp(48px, 6vw, 96px); }

.section-divider {
  height: 1px;
  background: var(--c-line);
  border: 0;
  margin: 0;
}

/* Section heading pattern */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-5);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-red);
}

.eyebrow--light { color: rgba(255,255,255,0.7); }

.section-title {
  font-size: var(--fs-h2);
  max-width: 22ch;
  margin-bottom: var(--sp-6);
}

.section-lede {
  font-size: var(--fs-md);
  color: rgba(234,234,234,0.72);
  max-width: 62ch;
  line-height: 1.65;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-white);
  --btn-border: rgba(255,255,255,0.22);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  min-height: 52px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 0;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  --btn-bg: var(--c-red);
  --btn-fg: var(--c-white);
  --btn-border: var(--c-red);
}
.btn--primary:hover { --btn-bg: var(--c-red-600); --btn-border: var(--c-red-600); }

.btn--ghost:hover {
  --btn-border: var(--c-white);
  --btn-bg: rgba(255,255,255,0.06);
}

.btn--dark {
  --btn-bg: var(--c-ink);
  --btn-fg: var(--c-white);
  --btn-border: var(--c-ink);
}
.btn--dark:hover { --btn-bg: var(--c-red); --btn-border: var(--c-red); }

.btn--outline-dark {
  --btn-fg: var(--c-ink);
  --btn-border: rgba(17,17,17,0.25);
}
.btn--outline-dark:hover { --btn-bg: var(--c-ink); --btn-fg: var(--c-white); --btn-border: var(--c-ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-white);
  position: relative;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0.4);
  opacity: 0.4;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); opacity: 1; }
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--dur-2) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar {
  position: relative;
  z-index: 60;
  background: var(--c-black);
  border-bottom: 1px solid var(--c-line);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: rgba(234,234,234,0.7);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.topbar__item svg { width: 13px; height: 13px; opacity: 0.7; }
.topbar a:hover { color: var(--c-white); }
.topbar__divider {
  width: 1px;
  height: 14px;
  background: var(--c-line);
  display: inline-block;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.lang-switch button {
  padding: 4px 8px;
  color: rgba(234,234,234,0.45);
  letter-spacing: inherit;
  transition: color var(--dur-1) var(--ease);
}
.lang-switch button:hover { color: var(--c-white); }
.lang-switch button.is-active { color: var(--c-white); }
.lang-switch .sep { color: rgba(234,234,234,0.25); }

/* Hide topbar details on small screens, keep lang */
@media (max-width: 900px) {
  .topbar__left .topbar__item:not(:first-child),
  .topbar__left .topbar__divider { display: none; }
}
@media (max-width: 640px) {
  .topbar { font-size: 10px; }
  .topbar__left { display: none; }
  .topbar__right { margin-left: auto; }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease), height var(--dur-3) var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-6);
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.header.is-transparent { background: transparent; }
.header.is-solid {
  background: rgba(11,11,11,0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--c-line-soft);
  height: 72px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-white);
  text-decoration: none;
}
.logo__img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--dur-2) var(--ease);
}
.logo:hover .logo__img { opacity: 0.85; }

/* Footer logo slightly larger to give footer presence */
.footer .logo__img { height: 52px; }
@media (max-width: 640px) {
  .logo__img { height: 38px; }
  .footer .logo__img { height: 44px; }
}

/* Nav */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 2vw, 36px);
}
.nav__link {
  font-family: var(--f-display);
  font-size: clamp(14px, 0.95vw + 6px, 17px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.88);
  padding: 10px 0;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.nav__link:hover { color: var(--c-white); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.header__cta { display: inline-flex; align-items: center; gap: var(--sp-4); }
.header__cta .btn { min-height: 46px; padding: 12px 22px; }

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--c-white);
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-1) var(--ease);
}
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle span:nth-child(3) { top: 33px; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav { display: none; }
  .header__cta > .btn { display: none; }
  .header__cta { gap: 0; }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    margin-right: calc(-0.35 * var(--gutter));
  }
  .header__inner { grid-template-columns: auto 1fr auto; }
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--c-black);
  padding: calc(var(--header-h) + var(--topbar-h) + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateY(-100%);
  transition: transform var(--dur-3) var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--f-display);
  font-size: clamp(20px, 4.2vw, 26px);
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding: 11px 0;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu a::after {
  content: "→";
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--c-red);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
  transform: translateX(-10px);
}
.mobile-menu a:hover::after,
.mobile-menu a:active::after { opacity: 1; transform: translateX(0); }
.mobile-menu__footer {
  margin-top: auto;
  padding-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--c-black);
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-4) var(--ease-out), visibility 0s linear var(--dur-4);
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 2; }

.hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 8000ms var(--ease-out);
}
.hero__slide.is-active .hero__media { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.25) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.hero__text {
  max-width: min(1100px, 78vw);
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sp-5);
  opacity: 0;
  transform: translateY(16px);
}
.hero__eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--c-red);
}
.hero__title {
  font-size: clamp(40px, 5.4vw + 8px, 92px);
  color: var(--c-white);
  margin-bottom: var(--sp-5);
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 600;
  max-width: 18ch;
  opacity: 0;
  transform: translateY(24px);
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--c-red);
  display: inline-block;
}
.hero__lede {
  font-size: clamp(16px, 1vw + 10px, 20px);
  line-height: 1.55;
  color: rgba(234,234,234,0.85);
  max-width: 56ch;
  margin-bottom: var(--sp-6);
  opacity: 0;
  transform: translateY(24px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  opacity: 0;
  transform: translateY(24px);
}

.hero__slide.is-active .hero__eyebrow { animation: heroIn var(--dur-4) var(--ease-out) 200ms forwards; }
.hero__slide.is-active .hero__title { animation: heroIn var(--dur-4) var(--ease-out) 320ms forwards; }
.hero__slide.is-active .hero__lede { animation: heroIn var(--dur-4) var(--ease-out) 440ms forwards; }
.hero__slide.is-active .hero__actions { animation: heroIn var(--dur-4) var(--ease-out) 560ms forwards; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Slider UI */
.hero__ui {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  z-index: 4;
}
.hero__ui-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.hero__counter {
  font-family: var(--f-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 80px;
}
.hero__counter .num { color: var(--c-white); font-size: 18px; }
.hero__counter .sep { width: 24px; height: 1px; background: rgba(255,255,255,0.3); display: inline-block; }
.hero__progress {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.hero__progress-bar {
  position: absolute;
  inset: 0;
  background: var(--c-red);
  transform-origin: left;
  transform: scaleX(0);
}
.hero__nav { display: flex; align-items: center; gap: 8px; }
.hero__nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  color: var(--c-white);
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.hero__nav-btn:hover { background: var(--c-red); border-color: var(--c-red); }
.hero__nav-btn svg { width: 16px; height: 16px; }

.hero__scroll {
  position: absolute;
  bottom: 120px;
  right: var(--gutter);
  z-index: 4;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-red);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__scroll::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--c-red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(196,0,0,0.18);
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--c-red), rgba(196,0,0,0));
  animation: scrollTrail 2.5s ease-in-out infinite;
}
@keyframes scrollTrail {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 900px) {
  .hero__scroll { display: none; }
  .hero__ui { bottom: 32px; }
  .hero__nav { display: none; }
}

/* ---------- Heritage / about section ---------- */
.heritage { background: var(--c-black); }
.heritage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.heritage__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--c-graphite);
}
.heritage__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.heritage__media:hover img { transform: scale(1.04); }
.heritage__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.heritage__badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 12px 18px;
  background: var(--c-black);
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-white);
}
.heritage__badge b { color: var(--c-red); font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: 0; }

.heritage__text p { color: rgba(234,234,234,0.72); margin-bottom: var(--sp-4); line-height: 1.7; font-size: var(--fs-md); }
.heritage__stats {
  margin-top: var(--sp-7);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-line);
}
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat__num em { font-style: normal; color: var(--c-red); }
.stat__label {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  max-width: 22ch;
}

@media (max-width: 900px) {
  .heritage__grid { grid-template-columns: 1fr; }
  .heritage__stats { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
}

/* ---------- Products / categories ---------- */
.products {
  background: var(--c-black);
  border-top: 1px solid var(--c-line);
}
.products__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: end;
  margin-bottom: var(--sp-8);
}
.products__head .section-lede { justify-self: end; }
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.product-card {
  position: relative;
  min-height: 440px;
  background: var(--c-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-6);
  color: var(--c-white);
  transition: background var(--dur-2) var(--ease);
}
.product-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 1s var(--ease-out);
  opacity: 0.55;
}
.product-card:hover .product-card__media { transform: scale(1.1); opacity: 0.75; }
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.92) 100%);
  z-index: 1;
}
.product-card__inner { position: relative; z-index: 2; }
.product-card__index {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.product-card__title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw + 8px, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
  color: var(--c-white);
}
.product-card__desc {
  color: rgba(234,234,234,0.75);
  font-size: var(--fs-sm);
  line-height: 1.6;
  max-width: 42ch;
  margin-bottom: var(--sp-4);
}
.product-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-white);
  transition: color var(--dur-2) var(--ease);
}
.product-card__arrow svg {
  width: 16px; height: 16px;
  transition: transform var(--dur-2) var(--ease);
}
.product-card:hover .product-card__arrow { color: var(--c-red); }
.product-card:hover .product-card__arrow svg { transform: translateX(6px); }

@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { min-height: 380px; }
}
@media (max-width: 640px) {
  .products__grid { grid-template-columns: 1fr; }
  .product-card { min-height: 320px; }
  .products__head { grid-template-columns: 1fr; }
  .products__head .section-lede { justify-self: start; }
}

/* ---------- Capabilities ---------- */
.capabilities {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
}
.capabilities__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.capability {
  padding: var(--sp-7) var(--sp-6);
  background: var(--c-surface);
  transition: background var(--dur-2) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-height: 320px;
}
.capability:hover { background: var(--c-surface-2); }
.capability__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-red);
  text-transform: uppercase;
}
.capability__icon {
  width: 48px;
  height: 48px;
  color: var(--c-white);
  stroke-width: 1.2;
}
.capability__title {
  font-size: var(--fs-xl);
  color: var(--c-white);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.capability__desc {
  color: rgba(234,234,234,0.65);
  font-size: var(--fs-sm);
  line-height: 1.65;
  margin-top: auto;
}

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

/* ---------- Industries ---------- */
.industries { background: var(--c-black); }
.industries__list {
  border-top: 1px solid var(--c-line);
  margin-top: var(--sp-6);
}
.industry-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr auto;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--c-line);
  position: relative;
  transition: padding var(--dur-2) var(--ease);
}
.industry-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(196,0,0,0.08), transparent);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
  pointer-events: none;
}
.industry-row:hover::before { opacity: 1; }
.industry-row:hover { padding-inline: var(--sp-3); }
.industry-row__num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.18em;
}
.industry-row__title {
  font-family: var(--f-display);
  font-size: clamp(24px, 2vw + 8px, 38px);
  color: var(--c-white);
  letter-spacing: -0.02em;
  font-weight: 500;
}
.industry-row__desc {
  color: rgba(234,234,234,0.6);
  font-size: var(--fs-sm);
  line-height: 1.6;
  max-width: 60ch;
}
.industry-row__arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line);
  display: grid;
  place-items: center;
  color: var(--c-white);
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.industry-row:hover .industry-row__arrow { background: var(--c-red); border-color: var(--c-red); transform: translateX(6px); }

@media (max-width: 900px) {
  .industry-row { grid-template-columns: 48px 1fr auto; }
  .industry-row__desc { grid-column: 2 / -1; grid-row: 2; }
}

/* ---------- Why OSA ---------- */
.why {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-6);
}
.why__head { grid-column: span 4; position: sticky; top: 120px; align-self: start; }
.why__items { grid-column: span 8; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.why__item {
  padding: var(--sp-6);
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 240px;
  transition: background var(--dur-2) var(--ease);
  position: relative;
}
.why__item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 1px;
  background: var(--c-red);
}
.why__item:hover { background: var(--c-surface-2); }
.why__item-title { font-size: var(--fs-lg); color: var(--c-white); font-weight: 600; letter-spacing: -0.01em; }
.why__item-desc { color: rgba(234,234,234,0.65); font-size: var(--fs-sm); line-height: 1.65; margin-top: auto; }

@media (max-width: 1024px) {
  .why__head, .why__items { grid-column: span 12; }
  .why__head { position: static; }
}
@media (max-width: 640px) {
  .why__items { grid-template-columns: 1fr; }
}

/* ---------- References ---------- */
.refs { background: var(--c-black); }
.refs__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}
.refs__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-5);
  row-gap: var(--sp-7);
}
.ref-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.ref-card--lg { grid-column: span 3; }
.ref-card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-graphite);
  position: relative;
}
.ref-card--lg .ref-card__media { aspect-ratio: 16/10; }
.ref-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.ref-card:hover .ref-card__media img { transform: scale(1.06); }
.ref-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.4), rgba(0,0,0,0) 40%);
}
.ref-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding-top: 12px;
}
.ref-card__title {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.4vw + 8px, 24px);
  color: var(--c-white);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.ref-card__desc { color: rgba(234,234,234,0.6); font-size: var(--fs-sm); line-height: 1.6; }

@media (max-width: 1024px) {
  .refs__grid { grid-template-columns: repeat(2, 1fr); }
  .ref-card, .ref-card--lg { grid-column: span 1; }
  .ref-card--lg .ref-card__media { aspect-ratio: 4/3; }
}
@media (max-width: 640px) {
  .refs__grid { grid-template-columns: 1fr; }
  .ref-card, .ref-card--lg { grid-column: span 1; }
  .refs__head { flex-direction: column; align-items: flex-start; }
}

/* Strict 2-column editorial grid on the dedicated References page */
html[data-page="references"] .refs__grid {
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
  row-gap: clamp(40px, 5vw, 72px);
}
html[data-page="references"] .ref-card,
html[data-page="references"] .ref-card--lg {
  grid-column: span 1;
}
html[data-page="references"] .ref-card__media,
html[data-page="references"] .ref-card--lg .ref-card__media {
  aspect-ratio: 16/10;
}
@media (max-width: 640px) {
  html[data-page="references"] .refs__grid { grid-template-columns: 1fr; row-gap: 32px; }
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--c-ink);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--c-line);
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 0L80 80M80 0L0 80' stroke='%23ffffff' stroke-opacity='0.03' /%3E%3C/svg%3E");
  opacity: 1;
}
.cta-band__accent {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--c-red), transparent);
  opacity: 0.5;
}
.cta-band__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  padding-block: clamp(80px, 10vw, 140px);
}
.cta-band__title {
  font-size: clamp(32px, 3.2vw + 14px, 64px);
  color: var(--c-white);
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 16ch;
}
.cta-band__title em { font-style: normal; color: var(--c-red); }
.cta-band__text {
  color: rgba(234,234,234,0.72);
  font-size: var(--fs-md);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-6);
  max-width: 56ch;
  line-height: 1.7;
}
.cta-band__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.cta-band__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding-left: var(--sp-7);
  border-left: 1px solid var(--c-line);
}
.cta-band__info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cta-band__info-item span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.cta-band__info-item strong {
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  color: var(--c-white);
  font-weight: 500;
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .cta-band__inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .cta-band__info { padding-left: 0; border-left: 0; padding-top: var(--sp-6); border-top: 1px solid var(--c-line); }
}

/* ---------- Footer ---------- */
.footer {
  background: #060606;
  color: rgba(234,234,234,0.6);
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-5);
  border-top: 1px solid var(--c-line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--c-line);
}
.footer__brand { max-width: 380px; }
.footer__brand .logo { margin-bottom: var(--sp-4); }
.footer__tagline {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(234,234,234,0.55);
}
.footer__title {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: var(--sp-5);
}
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__list a {
  font-size: var(--fs-sm);
  color: rgba(234,234,234,0.65);
  transition: color var(--dur-1) var(--ease), padding var(--dur-2) var(--ease);
}
.footer__list a:hover { color: var(--c-white); padding-left: 6px; }
.footer__contact p { font-size: var(--fs-sm); color: rgba(234,234,234,0.65); margin-bottom: 8px; line-height: 1.5; }
.footer__contact a:hover { color: var(--c-white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  font-size: 12px;
  color: rgba(234,234,234,0.45);
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer__legal { display: flex; gap: var(--sp-5); align-items: center; flex-wrap: wrap; }
.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(234,234,234,0.4);
  padding-left: var(--sp-5);
  border-left: 1px solid var(--c-line);
}
.footer__credit a {
  color: var(--c-white);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  position: relative;
  transition: color var(--dur-2) var(--ease);
}
.footer__credit a:hover { color: var(--c-red); }
@media (max-width: 540px) {
  .footer__credit { padding-left: 0; border-left: 0; }
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: 60vh;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 80px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,11,0.7) 0%, rgba(11,11,11,0.25) 45%, rgba(11,11,11,0.95) 100%),
    linear-gradient(90deg, rgba(11,11,11,0.35) 0%, rgba(11,11,11,0) 55%);
}
.page-hero__inner { position: relative; z-index: 2; width: 100%; }
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--sp-5);
}
.breadcrumbs a:hover { color: var(--c-white); }
.breadcrumbs .sep { color: rgba(255,255,255,0.3); }
.page-hero__title {
  font-size: var(--fs-h1);
  color: var(--c-white);
  max-width: 18ch;
  letter-spacing: -0.03em;
}
.page-hero__lede {
  color: rgba(234,234,234,0.75);
  font-size: var(--fs-md);
  max-width: 62ch;
  margin-top: var(--sp-5);
  line-height: 1.7;
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 100ms; }
[data-reveal-delay="2"] { transition-delay: 180ms; }
[data-reveal-delay="3"] { transition-delay: 260ms; }
[data-reveal-delay="4"] { transition-delay: 340ms; }
[data-reveal-delay="5"] { transition-delay: 420ms; }
[data-reveal-delay="6"] { transition-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__media { transform: none; }
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field--full { grid-column: span 2; }
.form__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.form__input,
.form__textarea,
.form__select {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 16px 18px;
  color: var(--c-white);
  font-size: var(--fs-base);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
  border-radius: 0;
}
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: 0;
  border-color: var(--c-red);
  background: var(--c-surface-2);
}
.form__textarea { min-height: 160px; resize: vertical; }
.form__actions { grid-column: span 2; display: flex; gap: var(--sp-3); justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.form__note { font-size: var(--fs-xs); color: var(--c-muted); margin-right: auto; }

@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .form__field--full, .form__actions { grid-column: span 1; }
}

/* ---------- Utility ---------- */
.text-red { color: var(--c-red); }
.u-max-w-lg { max-width: 680px; }
.u-mt-6 { margin-top: var(--sp-6); }
.u-mt-7 { margin-top: var(--sp-7); }

/* Spec strip / technical marquee */
.spec-strip {
  border-block: 1px solid var(--c-line);
  padding-block: var(--sp-4);
  overflow: hidden;
  background: var(--c-black);
}
.spec-strip__track {
  display: flex;
  gap: var(--sp-7);
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.spec-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(234,234,234,0.55);
}
.spec-strip__item::before {
  content: "◆";
  color: var(--c-red);
  font-size: 8px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   Process / Capabilities — premium step grid
   2×2 on desktop, single column on mobile.
   Large mono number, red hairline accent, clean typography.
   ========================================================= */
.process {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.process__head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-6);
  align-items: end;
  margin-bottom: var(--sp-8);
}
.process__head .section-lede { justify-self: end; max-width: 42ch; }

.process__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  counter-reset: step;
}
.process__step {
  counter-increment: step;
  position: relative;
  background: var(--c-surface);
  padding: clamp(28px, 3vw, 48px);
  min-height: 280px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: clamp(20px, 2vw, 32px);
  align-items: start;
  transition: background var(--dur-2) var(--ease);
}
.process__step:hover { background: var(--c-surface-2); }
.process__step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px;
  height: 1px;
  background: var(--c-red);
}
.process__num {
  font-family: var(--f-display);
  font-size: clamp(48px, 4vw + 8px, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--c-white);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.process__num::before {
  content: counter(step, decimal-leading-zero);
}
.process__num::after {
  content: ".";
  color: var(--c-red);
  font-size: 0.55em;
  transform: translateY(-4px);
}
.process__content { padding-top: 12px; }
.process__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.process__label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--c-red);
}
.process__title {
  font-size: clamp(20px, 1.4vw + 10px, 26px);
  color: var(--c-white);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
  line-height: 1.2;
}
.process__desc {
  color: rgba(234,234,234,0.65);
  line-height: 1.7;
  font-size: var(--fs-sm);
  max-width: 46ch;
}

@media (max-width: 900px) {
  .process__head { grid-template-columns: 1fr; }
  .process__head .section-lede { justify-self: start; }
  .process__grid { grid-template-columns: 1fr; }
  .process__step { min-height: 0; }
}
@media (max-width: 540px) {
  .process__step { grid-template-columns: 64px 1fr; gap: 16px; }
  .process__num { font-size: 44px; }
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.blog-card { display: flex; flex-direction: column; gap: var(--sp-4); }
.blog-card__media {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--c-graphite);
  transition: filter var(--dur-3) var(--ease);
}
.blog-card:hover .blog-card__media { filter: brightness(1.1); }
.blog-card__meta {
  display: flex;
  gap: var(--sp-4);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.blog-card__meta .cat { color: var(--c-red); }
.blog-card__title {
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  color: var(--c-white);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.blog-card__excerpt { color: rgba(234,234,234,0.6); font-size: var(--fs-sm); line-height: 1.6; }

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

/* Product single gallery — uniform 2x3 editorial grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: transparent;
  border: none;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--c-graphite);
  position: relative;
}
.gallery a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: zoom-in;
}
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease);
  pointer-events: none;
}
.gallery a::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  background: rgba(11,11,11,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M11 8v6M8 11h6M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
  z-index: 2;
}
.gallery a:hover::after,
.gallery a:focus-visible::after { opacity: 1; }
.gallery a:hover::before,
.gallery a:focus-visible::before { opacity: 1; transform: translateY(0); }
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-3) var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); }

/* =========================================================
   Capability grid — premium service cards (zupcanici, reduktori).
   2-col on desktop, 1px border-fed grid, subtle red hover tint.
   ========================================================= */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(22px, 1.6vw + 14px, 36px);
  background: var(--c-surface);
  transition: background var(--dur-2) var(--ease);
}
.cap-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--c-red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-3) var(--ease-out);
}
.cap-card:hover { background: rgba(196,0,0,0.04); }
.cap-card:hover::before { transform: scaleY(1); }
.cap-card--ghost {
  pointer-events: none;
}
.cap-card--ghost::before { content: none; }
@media (max-width: 700px) {
  .cap-card--ghost { display: none; }
}
.cap-card__index {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-red);
}
.cap-card__title {
  font-family: var(--f-display);
  font-size: clamp(18px, 0.5vw + 14px, 22px);
  line-height: 1.3;
  color: var(--c-white);
  letter-spacing: -0.01em;
  margin: 0;
}
.cap-card__desc {
  color: rgba(234,234,234,0.72);
  font-size: var(--fs-sm);
  line-height: 1.65;
  margin: 0;
}

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

/* =========================================================
   Prop grid — premium value/why blocks with red left rule.
   2-col text-block layout for "why/custom production" section.
   ========================================================= */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw + 8px, 64px);
}
.prop {
  position: relative;
  padding-left: var(--sp-5);
  border-left: 2px solid var(--c-red);
}
.prop__num {
  display: block;
  margin-bottom: var(--sp-3);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-red);
}
.prop__title {
  margin: 0 0 var(--sp-3);
  font-family: var(--f-display);
  font-size: clamp(20px, 0.7vw + 14px, 24px);
  line-height: 1.3;
  color: var(--c-white);
  letter-spacing: -0.01em;
}
.prop__desc {
  margin: 0;
  color: rgba(234,234,234,0.72);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

@media (max-width: 800px) {
  .prop-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* =========================================================
   Partner / reference logo grid — premium dark card with
   white logo panel and uppercase mono company name strip.
   ========================================================= */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 1.5vw + 10px, 32px);
}
.partner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-black);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-3) var(--ease-out);
}
.partner-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-3) var(--ease-out);
  z-index: 2;
}
.partner-card:hover {
  border-color: rgba(196,0,0,0.45);
  transform: translateY(-2px);
}
.partner-card:hover::before { transform: scaleX(1); }
.partner-card__panel {
  background: var(--c-white);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 2vw + 8px, 36px);
}
.partner-card__panel img {
  max-width: 80%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.partner-card__body {
  padding: var(--sp-4);
  text-align: center;
  border-top: 1px solid var(--c-line);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}
.partner-card__name {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(234,234,234,0.85);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .partner-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* =========================================================
   Specification list — premium technical data table
   Used on product detail pages (zupcanici, reduktori).
   ========================================================= */
.spec-list {
  margin: 0;
  border-top: 1px solid var(--c-line);
}
.spec-list__row {
  display: grid;
  grid-template-columns: minmax(180px, 32%) 1fr;
  gap: clamp(20px, 3vw, 56px);
  align-items: baseline;
  padding-block: clamp(16px, 1.4vw + 6px, 24px);
  padding-inline: clamp(0px, 1vw, 16px);
  border-bottom: 1px solid var(--c-line);
  transition: background var(--dur-2) var(--ease);
}
.spec-list__row:hover { background: rgba(255,255,255,0.025); }
.spec-list dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(234,234,234,0.55);
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}
.spec-list dd {
  margin: 0;
  color: rgba(234,234,234,0.92);
  font-size: var(--fs-sm);
  line-height: 1.65;
}
.spec-list__row--highlight dd {
  color: var(--c-white);
}

@media (max-width: 640px) {
  .spec-list__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 18px;
  }
}

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

/* Contact page split */
.contact-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-9);
}
.contact-split h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-5); }
.contact-info {
  border-top: 1px solid var(--c-line);
}
.contact-info__item {
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--sp-4);
  align-items: baseline;
}
.contact-info__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.contact-info__value { color: var(--c-white); font-size: var(--fs-md); }
.contact-info__value a:hover { color: var(--c-red); }

@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; gap: var(--sp-6); } }
@media (max-width: 540px) { .contact-info__item { grid-template-columns: 1fr; gap: 6px; } }

/* Map placeholder */
.map-placeholder {
  aspect-ratio: 16/9;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.35);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(196,0,0,0.08), transparent 40%),
    linear-gradient(135deg, transparent 48%, var(--c-line) 48%, var(--c-line) 52%, transparent 52%);
  background-size: 100% 100%, 24px 24px;
}
.map-placeholder::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--c-red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(196,0,0,0.25), 0 0 0 12px rgba(196,0,0,0.08);
}

/* Map embed — Google Maps iframe wrapper that matches the
   .map-placeholder visual envelope (16:9, dark frame, line border). */
.map-embed {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  overflow: hidden;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.25) contrast(1.05);
}

/* Pill / tag */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--c-line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(234,234,234,0.75);
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-line);
}
.filter-bar button {
  padding: 10px 16px;
  border: 1px solid var(--c-line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(234,234,234,0.7);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.filter-bar button:hover,
.filter-bar button.is-active { background: var(--c-red); color: var(--c-white); border-color: var(--c-red); }

/* Two-col feature block */
.feature-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.feature-two img,
.feature-two__media {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--c-graphite);
}
.feature-two__list { margin-top: var(--sp-5); padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.feature-two__list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid var(--c-line);
  color: rgba(234,234,234,0.75);
  font-size: var(--fs-sm);
}
.feature-two__list li::before {
  content: "+";
  color: var(--c-red);
  font-family: var(--f-mono);
  font-weight: 600;
}
@media (max-width: 800px) { .feature-two { grid-template-columns: 1fr; } }

/* Values block */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  margin-top: var(--sp-7);
}
.values-grid__item {
  padding: var(--sp-6);
  background: var(--c-black);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.values-grid__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-red);
}
.values-grid__title { font-size: var(--fs-lg); color: var(--c-white); font-weight: 600; }
.values-grid__desc { color: rgba(234,234,234,0.6); font-size: var(--fs-sm); line-height: 1.65; margin-top: auto; }

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

/* Timeline */
.timeline { margin-top: var(--sp-7); position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--c-line);
}
.timeline__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--sp-6);
  padding-block: var(--sp-6);
  position: relative;
}
.timeline__row::before {
  content: "";
  position: absolute;
  left: 114px;
  top: 32px;
  width: 13px; height: 13px;
  background: var(--c-red);
  border: 3px solid var(--c-black);
  border-radius: 50%;
}
.timeline__year {
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw + 8px, 32px);
  color: var(--c-white);
}
.timeline__content h3 { font-size: var(--fs-lg); margin-bottom: 10px; }
.timeline__content p { color: rgba(234,234,234,0.6); line-height: 1.65; font-size: var(--fs-sm); max-width: 70ch; }

@media (max-width: 640px) {
  .timeline::before { left: 8px; }
  .timeline__row { grid-template-columns: 1fr; padding-left: 32px; }
  .timeline__row::before { left: 2px; top: 28px; }
}

/* =========================================================
   Timeline section (about) — 2-column composition with aside.
   Premium media + editorial pull-quote + supporting stats.
   ========================================================= */
.timeline-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
}
.timeline-section__main { min-width: 0; }

.timeline-aside {
  position: sticky;
  top: 96px;
}
.timeline-aside__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-graphite);
  border: 1px solid var(--c-line);
}
.timeline-aside__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease-out);
}
.timeline-aside:hover .timeline-aside__media img { transform: scale(1.04); }
.timeline-aside__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
  z-index: 1;
}
.timeline-aside__corner {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-right: 1px solid rgba(255,255,255,0.12);
}
.timeline-aside__since {
  font-family: var(--f-display);
  font-size: clamp(22px, 1.4vw + 12px, 30px);
  line-height: 1;
  color: var(--c-white);
  letter-spacing: -0.01em;
}
.timeline-aside__place {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-red);
}

@media (max-width: 1024px) {
  .timeline-section__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: clamp(28px, 4vw, 56px);
  }
  .timeline-aside { position: static; }
}
@media (max-width: 800px) {
  .timeline-section__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
  .timeline-aside { position: static; }
  .timeline-aside__media { aspect-ratio: 16 / 11; }
}

/* =========================================================
   Preloader
   Full-screen black curtain with centered icon.
   Subtle fade-in + pulse, smooth fade-out on page ready.
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 600ms var(--ease-out), visibility 0s linear 700ms;
  pointer-events: all;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  opacity: 0;
  transform: translateY(6px);
  animation: preloaderIn 600ms var(--ease-out) 80ms forwards;
}
.preloader__icon {
  width: clamp(160px, 18vw, 240px);
  max-width: 60vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 32px rgba(196,0,0,0.14));
  animation: preloaderPulse 2200ms var(--ease) infinite;
  transform-origin: center;
  will-change: transform, opacity;
}
.preloader__bar {
  width: 64px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
  position: relative;
}
.preloader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-red);
  transform: translateX(-100%);
  animation: preloaderBar 1600ms var(--ease) infinite;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-loading {
  overflow: hidden;
}

@keyframes preloaderIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(1.045); opacity: 1; }
}
@keyframes preloaderBar {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(110%); }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__icon { animation: none; }
  .preloader__bar::after { animation: none; transform: translateX(0); }
}

/* =========================================================
   Back to Top button
   Fixed, bottom-right, reveals after scroll threshold.
   Dark surface with red accent on hover + subtle ring pulse.
   ========================================================= */
.to-top {
  position: fixed;
  right: clamp(16px, 2.2vw, 28px);
  bottom: clamp(16px, 2.2vw, 28px);
  z-index: 40;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(17,17,17,0.82);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--c-white);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-out),
              transform var(--dur-3) var(--ease-out),
              background var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease);
}
.to-top::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(196,0,0,0.3);
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.to-top:hover {
  background: var(--c-red);
  border-color: var(--c-red);
  color: var(--c-white);
}
.to-top:hover::before { opacity: 1; transform: scale(1); }
.to-top svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease); }
.to-top:hover svg { transform: translateY(-2px); }
.to-top:focus-visible { outline-offset: 4px; }

@media (max-width: 640px) {
  .to-top { width: 44px; height: 44px; }
}

/* =========================================================
   Nav products dropdown
   Desktop: hover-open panel aligned under the nav item.
   Mobile: tap-toggle stacked list inside the drawer.
   ========================================================= */
.nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav__item .nav__link { display: inline-flex; align-items: center; gap: 6px; }
.nav__caret {
  width: 10px;
  height: 10px;
  transition: transform var(--dur-2) var(--ease);
  opacity: 0.7;
}
.nav__item:hover .nav__caret,
.nav__item.is-open .nav__caret { transform: rotate(180deg); opacity: 1; }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 320px;
  background: rgba(15,15,15,0.96);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid var(--c-line);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out),
              visibility 0s linear var(--dur-2);
  z-index: 51;
}
.nav__dropdown::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--c-red);
  opacity: 0.75;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown,
.nav__item.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

/* Bridge the gap between nav item and dropdown so hover doesn't break */
.nav__item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 12px;
  pointer-events: none;
}
.nav__item:hover::after { pointer-events: auto; }

.nav__dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(234,234,234,0.82);
  border-left: 1px solid transparent;
  transition: color var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              padding var(--dur-2) var(--ease);
  white-space: nowrap;
}
.nav__dropdown-link::after {
  content: "→";
  font-family: var(--f-mono);
  color: var(--c-red);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.nav__dropdown-link:hover {
  color: var(--c-white);
  background: rgba(196,0,0,0.08);
  border-left-color: var(--c-red);
  padding-left: 18px;
}
.nav__dropdown-link:hover::after { opacity: 1; transform: translateX(0); }

@media (max-width: 1100px) {
  .nav__dropdown { display: none; }
}

/* Second-level dropdown (Machines submenu) */
.nav__dropdown-item {
  position: relative;
  display: flex;
  flex-direction: column;
}
.nav__dropdown-item--has-sub > .nav__dropdown-link::after { content: none; }
.nav__sub-caret {
  width: 12px;
  height: 12px;
  color: var(--c-red);
  opacity: 0.9;
  flex-shrink: 0;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
}
.nav__dropdown-item--has-sub:hover > .nav__dropdown-link .nav__sub-caret,
.nav__dropdown-item--has-sub:focus-within > .nav__dropdown-link .nav__sub-caret {
  transform: translateX(3px);
  opacity: 1;
}
.nav__dropdown-item--has-sub:hover > .nav__dropdown-link,
.nav__dropdown-item--has-sub:focus-within > .nav__dropdown-link {
  color: var(--c-white);
  background: rgba(196,0,0,0.08);
  border-left-color: var(--c-red);
  padding-left: 18px;
}

.nav__subdropdown {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 12px;
  min-width: 360px;
  background: rgba(15,15,15,0.96);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid var(--c-line);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out),
              visibility 0s linear var(--dur-2);
  z-index: 52;
}
.nav__subdropdown::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--c-red);
  opacity: 0.75;
}
.nav__subdropdown .nav__dropdown-link {
  white-space: normal;
}
/* Hover bridge between item and its sub-dropdown */
.nav__dropdown-item--has-sub::before {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 14px;
  height: 100%;
  pointer-events: none;
}
.nav__dropdown-item--has-sub:hover::before,
.nav__dropdown-item--has-sub:focus-within::before { pointer-events: auto; }

.nav__dropdown-item--has-sub:hover > .nav__subdropdown,
.nav__dropdown-item--has-sub:focus-within > .nav__subdropdown,
.nav__dropdown-item--has-sub.is-open > .nav__subdropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

@media (max-width: 1100px) {
  .nav__subdropdown { display: none; }
}

/* Mobile submenu inside drawer */
.mobile-menu__group { display: flex; flex-direction: column; }
.mobile-menu__group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid var(--c-line);
}
.mobile-menu__group-head a { border-bottom: 0; flex: 1 1 auto; }
.mobile-menu__group-head a::after { content: ""; }
.mobile-menu__toggle {
  width: 40px; height: 40px;
  display: inline-grid;
  place-items: center;
  color: var(--c-red);
  flex: 0 0 auto;
}
.mobile-menu__toggle svg {
  width: 16px; height: 16px;
  transition: transform var(--dur-2) var(--ease);
}
.mobile-menu__group.is-open .mobile-menu__toggle svg { transform: rotate(180deg); }
.mobile-menu__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-3) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.mobile-menu__group.is-open .mobile-menu__submenu { max-height: 480px; }
.mobile-menu__submenu a {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(234,234,234,0.7);
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid var(--c-line);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.35;
}
.mobile-menu__submenu a::after { content: ""; }
.mobile-menu__submenu a:hover { color: var(--c-white); }

/* Nested mobile group (Mašine submenu inside Proizvodi) */
.mobile-menu__group--nested {
  border-bottom: 1px solid var(--c-line);
}
.mobile-menu__group--nested > .mobile-menu__group-head {
  border-bottom: 0;
}
.mobile-menu__group--nested > .mobile-menu__group-head a {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(234,234,234,0.85);
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 9px 0 9px 20px;
  line-height: 1.35;
  border-bottom: 0;
}
.mobile-menu__group--nested > .mobile-menu__group-head .mobile-menu__toggle {
  width: 36px;
  height: 36px;
}
.mobile-menu__group--nested > .mobile-menu__group-head .mobile-menu__toggle svg {
  width: 14px;
  height: 14px;
}
.mobile-menu__group--nested > .mobile-menu__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-3) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.mobile-menu__group--nested.is-open > .mobile-menu__submenu {
  max-height: 320px;
}
.mobile-menu__group--nested > .mobile-menu__submenu a {
  padding-left: 36px;
  font-size: 13px;
  color: rgba(234,234,234,0.65);
}

/* =========================================================
   Trust Bar (below hero / page-hero)
   Premium horizontal strip with red separators.
   ========================================================= */
.trust-bar {
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 14px 0;
}
.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  row-gap: 8px;
}
.trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 22px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: rgba(234,234,234,0.82);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
}
.trust-bar__item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-red);
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(196,0,0,0.15);
}
.trust-bar__item + .trust-bar__item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  background: var(--c-line);
  transform: translateY(-50%);
}
@media (max-width: 760px) {
  .trust-bar { padding: 10px 0; }
  .trust-bar__item { padding: 3px 12px; font-size: 10.5px; gap: 8px; letter-spacing: 0.1em; }
  .trust-bar__item::before { width: 5px; height: 5px; box-shadow: 0 0 0 2px rgba(196,0,0,0.15); }
  .trust-bar__item + .trust-bar__item::after { height: 11px; }
}

/* =========================================================
   FAQ Floating Assistant Widget
   Fixed bottom-left. Premium dark base with red accent.
   ========================================================= */
.faq-widget {
  position: fixed;
  left: clamp(16px, 2.2vw, 28px);
  bottom: clamp(16px, 2.2vw, 28px);
  z-index: 60;
  font-family: var(--f-sans);
}
.faq-widget__toggle {
  position: relative;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(17,17,17,0.92);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--c-white);
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0,0,0,0.45);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: background var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease);
}
.faq-widget__toggle::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(196,0,0,0.3);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.faq-widget__toggle::after {
  content: "";
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-red);
  border: 2px solid var(--c-ink);
  transition: opacity var(--dur-2) var(--ease);
}
.faq-widget__toggle:hover { background: var(--c-red); border-color: var(--c-red); }
.faq-widget__toggle:hover::before { opacity: 1; transform: scale(1); }
.faq-widget__toggle svg { width: 22px; height: 22px; }
.faq-widget__toggle:focus-visible { outline: 2px solid var(--c-red); outline-offset: 4px; }
.faq-widget.is-open .faq-widget__toggle { background: var(--c-red); border-color: var(--c-red); }
.faq-widget.is-open .faq-widget__toggle::after { opacity: 0; }

.faq-widget__panel {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 140px));
  background: rgba(17,17,17,0.96);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  transition: opacity var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out),
              visibility 0s linear var(--dur-2);
}
.faq-widget.is-open .faq-widget__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
}
.faq-widget__header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--c-line);
}
.faq-widget__header::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -1px;
  width: 28px;
  height: 1px;
  background: var(--c-red);
}
.faq-widget__title {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--c-white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.faq-widget__close {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  color: rgba(234,234,234,0.7);
  flex: 0 0 auto;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.faq-widget__close:hover { background: rgba(255,255,255,0.06); color: var(--c-white); }
.faq-widget__close svg { width: 16px; height: 16px; }
.faq-widget__body {
  padding: 14px 20px 6px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.faq-widget__intro {
  font-size: 12.5px;
  color: rgba(234,234,234,0.7);
  margin-bottom: 12px;
  line-height: 1.6;
}
.faq-widget__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.faq-widget__item {
  border-bottom: 1px solid var(--c-line-soft);
}
.faq-widget__item:last-child { border-bottom: 0; }
.faq-widget__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-light);
  line-height: 1.4;
  transition: color var(--dur-1) var(--ease);
}
.faq-widget__q:hover { color: var(--c-white); }
.faq-widget__q-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--c-red);
  transition: transform var(--dur-2) var(--ease);
}
.faq-widget__item.is-open .faq-widget__q-mark { transform: rotate(45deg); }
.faq-widget__a {
  max-height: 0;
  overflow: hidden;
  font-size: 12.5px;
  color: rgba(234,234,234,0.72);
  line-height: 1.65;
  transition: max-height var(--dur-3) var(--ease-out);
}
.faq-widget__a-inner { padding: 0 0 14px; }
.faq-widget__item.is-open .faq-widget__a { max-height: 360px; }
.faq-widget__footer {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-widget__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--c-red);
  color: var(--c-white);
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--dur-1) var(--ease);
}
.faq-widget__cta:hover { background: var(--c-red-600); color: var(--c-white); }
.faq-widget__cta svg { width: 14px; height: 14px; }
.faq-widget__note {
  font-size: 11px;
  color: rgba(234,234,234,0.5);
  line-height: 1.55;
  text-align: center;
  margin: 0;
}
@media (max-width: 640px) {
  .faq-widget__toggle { width: 50px; height: 50px; }
  .faq-widget__toggle svg { width: 20px; height: 20px; }
  .faq-widget__panel {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 160px);
  }
  .faq-widget__title { font-size: 16px; }
}

/* =========================================================
   Sticky Industrial Inquiry CTA (product pages only)
   Fixed bottom-right, positioned above the back-to-top.
   ========================================================= */
.sticky-cta {
  position: fixed;
  right: clamp(16px, 2.2vw, 28px);
  bottom: calc(clamp(16px, 2.2vw, 28px) + 60px);
  z-index: 39;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  background: rgba(17,17,17,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  max-width: 320px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-out),
              transform var(--dur-3) var(--ease-out),
              border-color var(--dur-2) var(--ease);
}
.sticky-cta::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--c-red);
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: rgba(196,0,0,0.14);
  color: var(--c-red);
  display: inline-grid;
  place-items: center;
}
.sticky-cta__icon svg { width: 18px; height: 18px; }
.sticky-cta__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; min-width: 0; }
.sticky-cta__title {
  font-family: var(--f-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: 0.02em;
}
.sticky-cta__sub {
  font-size: 11px;
  color: rgba(234,234,234,0.6);
  letter-spacing: 0.01em;
}
.sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--c-red);
  color: var(--c-white);
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  flex: 0 0 auto;
  transition: background var(--dur-1) var(--ease);
}
.sticky-cta__btn:hover { background: var(--c-red-600); color: var(--c-white); }
.sticky-cta__btn svg { width: 12px; height: 12px; }
.sticky-cta__close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-ink);
  border: 1px solid var(--c-line);
  color: rgba(234,234,234,0.7);
  font-size: 0;
  cursor: pointer;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.sticky-cta__close:hover { background: var(--c-red); color: var(--c-white); border-color: var(--c-red); }
.sticky-cta__close svg { width: 10px; height: 10px; }

@media (max-width: 900px) {
  .sticky-cta {
    max-width: 260px;
    padding: 10px 12px 10px 10px;
    gap: 10px;
  }
  .sticky-cta__icon { width: 32px; height: 32px; }
  .sticky-cta__icon svg { width: 16px; height: 16px; }
  .sticky-cta__sub { display: none; }
}
@media (max-width: 520px) {
  .sticky-cta {
    bottom: calc(clamp(16px, 2.2vw, 28px) + 54px);
    max-width: calc(100vw - 90px);
  }
  .sticky-cta__btn span { display: none; }
  .sticky-cta__btn { padding: 8px; }
}

/* =========================================================
   Technical Request Checklist
   Premium "what to send" block for contact + product pages.
   ========================================================= */
.tech-checklist {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: 3px;
  position: relative;
}
.tech-checklist::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 2px;
  background: var(--c-red);
}
.tech-checklist__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}
.tech-checklist__eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--c-red);
}
.tech-checklist__title {
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  color: var(--c-white);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--sp-3);
}
.tech-checklist__intro {
  color: rgba(234,234,234,0.72);
  font-size: var(--fs-base);
  line-height: 1.7;
  max-width: 62ch;
  margin: 0;
}
.tech-checklist__grid {
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.tech-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--c-ink);
  border: 1px solid var(--c-line-soft);
  border-radius: 2px;
  font-size: 13.5px;
  color: var(--c-light);
  line-height: 1.5;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.tech-checklist__item:hover {
  border-color: rgba(196,0,0,0.4);
  background: var(--c-surface-2);
}
.tech-checklist__check {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 2px;
  background: rgba(196,0,0,0.14);
  color: var(--c-red);
  margin-top: 1px;
}
.tech-checklist__check svg { width: 12px; height: 12px; stroke-width: 2.6; }

.tech-checklist--compact { padding: clamp(20px, 2.8vw, 28px); }
.tech-checklist--compact .tech-checklist__title { font-size: var(--fs-lg); }
.tech-checklist--compact .tech-checklist__grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

@media (prefers-reduced-motion: reduce) {
  .faq-widget__panel,
  .faq-widget__a,
  .faq-widget__q-mark,
  .sticky-cta,
  .tech-checklist__item { transition: none !important; }
}

/* =========================================================
   Product page section indicator (mini-nav)
   Sticky horizontal nav that appears below the header on
   product pages. Reveals after the page hero leaves view.
   ========================================================= */
.product-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 45;
  background: rgba(11,11,11,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--c-line);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-out),
              transform var(--dur-3) var(--ease-out);
}
.product-nav.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.product-nav__inner {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-nav__inner::-webkit-scrollbar { display: none; }
.product-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234,234,234,0.62);
  white-space: nowrap;
  flex: 0 0 auto;
  transition: color var(--dur-1) var(--ease);
}
.product-nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.product-nav__link:hover { color: var(--c-white); }
.product-nav__link.is-active {
  color: var(--c-white);
}
.product-nav__link.is-active::after { transform: scaleX(1); }
.product-nav__num {
  font-size: 10px;
  color: var(--c-red);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.product-nav__link.is-active .product-nav__num { color: var(--c-red); }

@media (max-width: 720px) {
  .product-nav { top: 0; }
  .product-nav__link {
    padding: 12px 12px;
    font-size: 10px;
    letter-spacing: 0.12em;
    gap: 6px;
  }
  .product-nav__link::after { left: 12px; right: 12px; height: 1.5px; }
  .product-nav__num { font-size: 9px; }
}

/* =========================================================
   Partner / reference card — premium hover enhancement
   Adds tagline that fades in on hover, retains existing layout.
   ========================================================= */
.partner-card__tagline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(11,11,11,0.96) 0%, rgba(11,11,11,0.88) 60%, rgba(11,11,11,0) 100%);
  color: rgba(234,234,234,0.85);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
  z-index: 3;
}
.partner-card__tagline::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--c-red);
  margin: 0 auto 8px;
}
.partner-card:hover .partner-card__tagline,
.partner-card:focus-within .partner-card__tagline {
  opacity: 1;
  transform: translateY(0);
}
.partner-card__panel { position: relative; }

/* Make tagline always visible on coarse pointer / touch devices */
@media (hover: none) {
  .partner-card__tagline {
    position: static;
    background: none;
    padding: 8px 12px 0;
    opacity: 1;
    transform: none;
    color: rgba(234,234,234,0.6);
    font-size: 10px;
  }
  .partner-card__tagline::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .product-nav,
  .product-nav__link::after,
  .partner-card__tagline { transition: none !important; }
}

/* =========================================================
   Page transition curtain (premium dark fade)
   ========================================================= */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--c-black);
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 360ms cubic-bezier(.85, .05, .18, 1),
              visibility 0s linear 360ms;
}
.page-transition.is-leaving {
  visibility: visible;
  transform: translateY(0);
  transition: transform 360ms cubic-bezier(.85, .05, .18, 1);
}
.page-transition__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
}
.page-transition.is-leaving .page-transition__bar {
  animation: page-transition-bar 360ms cubic-bezier(.85, .05, .18, 1) forwards;
}
@keyframes page-transition-bar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .page-transition,
  .page-transition.is-leaving,
  .page-transition__bar { transition: none !important; animation: none !important; }
}

/* =========================================================
   Gallery skeleton (loading state)
   Plays a subtle dark shimmer while gallery images load.
   ========================================================= */
.gallery figure.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg,
      rgba(255,255,255,0) 30%,
      rgba(255,255,255,0.06) 50%,
      rgba(255,255,255,0) 70%),
    var(--c-graphite);
  background-size: 200% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: gallery-skel 1.4s linear infinite;
  z-index: 1;
  pointer-events: none;
}
.gallery figure.is-loading img { opacity: 0; }
.gallery figure img {
  opacity: 1;
  transition: opacity 320ms var(--ease-out);
}
@keyframes gallery-skel {
  0%   { background-position: 100% 0, 0 0; }
  100% { background-position: -100% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery figure.is-loading::after { animation: none; background: var(--c-graphite); }
}

/* =========================================================
   Desktop card hover badge ("Pogledaj" / "View")
   CSS-only, hidden on touch/coarse pointer.
   Uses ::before on .product-card (its ::after is already used
   for the dark gradient overlay) and ::after on the others.
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  html[lang="sr"] body { --hover-label: "Pogledaj"; }
  html[lang="en"] body { --hover-label: "View"; }

  .product-card,
  .ref-card,
  .gallery figure { position: relative; }

  .product-card::before,
  .ref-card::after,
  .gallery figure:not(.is-loading)::after {
    content: var(--hover-label, "View");
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: auto;
    left: auto;
    z-index: 4;
    padding: 5px 10px;
    width: auto;
    height: auto;
    inset: auto 14px auto auto;
    background: rgba(11, 11, 11, 0.86);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--c-white);
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity var(--dur-2) var(--ease-out),
                transform var(--dur-2) var(--ease-out);
  }
  .product-card::before { top: 14px; }
  .product-card:hover::before,
  .ref-card:hover::after,
  .gallery figure:not(.is-loading):hover::after {
    opacity: 1;
    transform: translateY(0);
  }
  .gallery figure:not(.is-loading)::after { top: 12px; inset: 12px 12px auto auto; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card::before,
  .ref-card::after,
  .gallery figure::after { transition: none !important; }
}


