/* ============================================================================
   ZZ ZAVARIVAČ ZAJEČAR — homepage styles
   Mobile-first (designed ~380px, then min-width breakpoints: 640 / 768 / 1024 / 1280)
   Light steel/white theme · red as the single accent.
   Content is fully visible by default; GSAP/SplitType is enhancement only.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — red */
  --red: #C4171A;
  --red-bright: #F90808;
  --red-deep: #8B0A0A;

  /* Brand — steel / neutrals */
  --steel-100: #FFFFFF;
  --steel-200: #E5E4E3;
  --steel-300: #CDCCCC;
  --steel-500: #8A8987;
  --graphite: #474340;
  --ink: #1A1A1A;

  /* Semantic */
  --bg: var(--steel-100);
  --bg-muted: var(--steel-200);
  --text: var(--graphite);
  --text-strong: var(--ink);
  --text-soft: var(--steel-500);
  --border: var(--steel-300);
  --accent: var(--red);

  /* Fonts — industrial/steel type system (loaded via Google Fonts in <head>) */
  --font-display: "Oswald", "Arial Narrow", sans-serif;          /* tall, condensed */
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Brushed-metal (chrome) gradient — from the logo. Best on dark backgrounds. */
  --brushed: linear-gradient(180deg, #FFFFFF 0%, var(--steel-300) 45%, var(--graphite) 100%);

  /* Spacing scale (4/8 rhythm) */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;

  --radius: 4px;
  --radius-lg: 10px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(26,26,26,.06), 0 1px 3px rgba(26,26,26,.08);
  --shadow-md: 0 6px 20px rgba(26,26,26,.10);
  --shadow-lg: 0 18px 50px rgba(26,26,26,.18);

  --nav-h: 64px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 220ms;

  /* z-index scale */
  --z-nav: 100;
  --z-dropdown: 150;
  --z-fixed: 500;
  --z-chat: 600;
  --z-menu: 800;
  --z-preloader: 9999;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text-strong); line-height: 1.14; margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--sp-5); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -60px; left: var(--sp-4); z-index: calc(var(--z-preloader) + 1);
  background: var(--red); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* ---------- Shared utilities ---------- */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft);
  margin: 0 0 var(--sp-4);
}
.eyebrow--red { color: var(--red); }
.eyebrow--light { color: rgba(255,255,255,.82); }

.brushed-metal {
  background: var(--brushed);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.section { padding-block: var(--sp-8); }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--graphite); color: var(--steel-200); }
.section--ink { background: var(--ink); color: var(--steel-300); }
.section__head { max-width: 40ch; margin-bottom: var(--sp-6); }
.section__title { font-size: clamp(1.6rem, 5vw, 2.4rem); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.4rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  touch-action: manipulation; white-space: nowrap;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(196,23,26,.28); }
.btn--primary:hover { background: var(--red-bright); box-shadow: 0 6px 22px rgba(249,8,8,.4); }
.btn--primary:active { background: var(--red-deep); transform: translateY(1px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-body); font-weight: 600; color: var(--red);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: gap var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link-arrow:hover { gap: .7rem; border-color: var(--red); }

/* Placeholder tags (swap the background-image rules below with real assets) */
.placeholder-tag {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em;
  color: rgba(255,255,255,.92); background: rgba(26,26,26,.55);
  padding: .5rem .9rem; border-radius: var(--radius); text-align: center;
  border: 1px dashed rgba(255,255,255,.5); pointer-events: none; max-width: 90%;
}
.placeholder-tag--sm { font-size: .68rem; padding: .35rem .6rem; }

/* ============================================================================
   PRELOADER
   ========================================================================= */
/* Preloader is shown ONLY when JS is running (`.js` is added synchronously by the
   inline <head> script). With JS disabled it never displays, so it can never
   trap the page — the content is visible immediately. */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader);
  display: grid; place-items: center;
  background: var(--steel-100);
  transition: opacity 400ms var(--ease), visibility 400ms var(--ease);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { display: grid; justify-items: center; gap: var(--sp-4); width: min(80vw, 320px); text-align: center; }
.preloader__logo { width: 200px; max-width: 60vw; }
.preloader__bar { width: 100%; height: 3px; background: var(--steel-200); border-radius: var(--radius-full); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 40%; background: var(--red); border-radius: inherit; animation: preload 1.1s var(--ease) infinite; }
.preloader__label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .22em; color: var(--text-soft); }
@keyframes preload { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* ============================================================================
   NAVBAR
   ========================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; gap: var(--sp-5); width: 100%; }
.nav__brand { flex-shrink: 0; display: inline-flex; align-items: center; }
.nav__logo { height: 30px; width: auto; transition: filter var(--dur) var(--ease); }

/* Transparent-over-hero state: brighten logo + light links */
.nav:not(.is-scrolled) .nav__logo { filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }

/* Solid state on scroll */
.nav.is-scrolled {
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.nav__menu { margin-left: auto; }
.nav__list { display: none; list-style: none; margin: 0; padding: 0; gap: var(--sp-5); align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem;
  color: var(--text-strong); background: none; border: 0; padding: .4rem 0;
  position: relative; transition: color var(--dur) var(--ease);
}
.nav:not(.is-scrolled) .nav__link { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }

.nav__cta { display: none; flex-shrink: 0; padding: .55rem 1.1rem; min-height: 40px; }

/* ---------- Language switcher (SR active · EN inert placeholder) ---------- */
.lang {
  display: inline-flex; align-items: center; gap: .3rem; flex-shrink: 0;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .04em;
  user-select: none;
}
.lang__opt { padding: .1rem .3rem; border-radius: var(--radius); color: var(--text-soft); }
.lang__opt.is-active { color: var(--text-strong); font-weight: 600; }
.lang__opt--disabled { opacity: .5; cursor: not-allowed; }
.lang__sep { color: var(--text-soft); opacity: .55; }
/* Over-hero (transparent nav) — lighten for legibility */
.nav:not(.is-scrolled) .lang__opt,
.nav:not(.is-scrolled) .lang__sep { color: rgba(255,255,255,.72); text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.nav:not(.is-scrolled) .lang__opt.is-active { color: #fff; }
/* Desktop-only in the navbar; the mobile menu carries its own copy in the header strip */
.nav__lang { display: none; }

/* Dropdown */
.nav__item.has-dropdown { position: relative; }
.nav__chevron { transition: transform var(--dur) var(--ease); }
.has-dropdown.is-open .nav__chevron { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 220px;
  list-style: none; margin: 0; padding: var(--sp-2);
  background: var(--steel-100); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: var(--z-dropdown);
}
.has-dropdown.is-open .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown-link {
  display: block; padding: .6rem .75rem; border-radius: var(--radius);
  font-size: .92rem; color: var(--text-strong);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__dropdown-link:hover, .nav__dropdown-link:focus-visible { background: var(--bg-muted); color: var(--red); }

/* Hamburger */
.nav__burger {
  margin-left: auto; width: 44px; height: 44px; display: inline-flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px; background: none; border: 0;
}
.nav__burger span {
  display: block; width: 24px; height: 2px; background: var(--text-strong); border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav:not(.is-scrolled) .nav__burger span { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile slide-in menu ---------- */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-menu);
  width: min(86vw, 380px);
  background: var(--steel-100); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform 300ms var(--ease);
  display: flex; flex-direction: column; overscroll-behavior: contain;
}
.mobile-menu.is-open { transform: translateX(0); }

/* Pinned header strip: logo (left) + close X (right) — stays put while the list scrolls */
.mobile-menu__head {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); min-height: var(--nav-h);
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.mobile-menu__brand { display: inline-flex; align-items: center; }
.mobile-menu__logo { height: 28px; width: auto; }
.mobile-menu__head-actions { display: inline-flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.mobile-menu__close {
  flex-shrink: 0; width: 44px; height: 44px; display: inline-grid; place-items: center;
  background: none; border: 0; color: var(--red); cursor: pointer; border-radius: var(--radius);
  transition: background var(--dur) var(--ease);
}
.mobile-menu__close:hover { background: rgba(196,23,26,.08); }

/* Scrollable nav region — only this scrolls when the list is long */
.mobile-menu__nav {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
}
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body); font-weight: 500; font-size: 1.1rem;
  color: var(--text-strong); padding: var(--sp-3) 0; border-bottom: 1px solid var(--border);
  width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left;
}
.mobile-accordion__toggle svg { transition: transform var(--dur) var(--ease); }
.mobile-accordion.is-open .mobile-accordion__toggle svg { transform: rotate(180deg); }
/* Collapse via max-height (robust for the 5 direct child links). Collapsed panel
   is also visibility:hidden — removes the sub-links from tab order / a11y tree —
   flipped to hidden only after the height collapse finishes. */
.mobile-accordion__panel {
  overflow: hidden; max-height: 0; visibility: hidden; opacity: 0;
  transition: max-height 260ms var(--ease), opacity 200ms var(--ease), visibility 0s linear 260ms;
}
.mobile-accordion.is-open .mobile-accordion__panel {
  max-height: 360px; visibility: visible; opacity: 1;
  transition: max-height 260ms var(--ease), opacity 220ms var(--ease), visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-accordion__panel { transition: none; }
}
.mobile-accordion__link {
  display: block; padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
  font-size: 1rem; color: var(--text);
}
.mobile-accordion__link:hover { color: var(--red); }

/* Pinned footer with the primary CTA */
.mobile-menu__foot { flex-shrink: 0; padding: var(--sp-4) var(--sp-5) var(--sp-6); }
.mobile-menu__cta { width: 100%; }

.mobile-menu__scrim {
  position: fixed; inset: 0; z-index: calc(var(--z-menu) - 1);
  background: rgba(26,26,26,.5); opacity: 0; transition: opacity 300ms var(--ease);
}
.mobile-menu__scrim.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu__scrim { transition: none; }
}

/* ============================================================================
   HERO SLIDER
   ========================================================================= */
.hero {
  position: relative;
  height: 100vh;          /* fallback */
  height: 100svh;         /* mobile URL-bar correct */
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.hero__viewport { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 700ms var(--ease), visibility 700ms var(--ease);
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero__media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1);
}
/* Ken-burns on the active slide (disabled for reduced motion) */
.hero__slide.is-active .hero__media { animation: kenburns 8s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* Real hero photography (swap freely). Dark base color shows if an image is missing. */
.hero__media--1 { background-color: #23272e; background-image: url("assets/images/zz-zavarivac-slajder-3.png"); }
.hero__media--2 { background-color: #23272e; background-image: url("assets/images/zz-zavarivac-slajder-2.webp"); }
.hero__media--3 { background-color: #23272e; background-image: url("assets/images/zz-zavarivac-slajder-4.webp"); }

.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,26,26,.35) 0%, rgba(26,26,26,.15) 40%, rgba(26,26,26,.65) 100%),
    linear-gradient(90deg, rgba(26,26,26,.55) 0%, rgba(26,26,26,0) 70%);
}

.hero__caption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding-bottom: clamp(var(--sp-8), 14vh, 8rem);
  z-index: 2;
  /* Outgoing caption fades out FAST so it never sits over the incoming caption
     while the backgrounds crossfade. (active slide overrides below) */
  opacity: 0; transform: translateY(14px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.hero__slide.is-active .hero__caption {
  opacity: 1; transform: none;
  /* incoming caption rises in AFTER the outgoing has cleared */
  transition: opacity .6s var(--ease) .22s, transform .7s var(--ease) .22s;
}
.hero__title {
  color: #fff; font-weight: 600;
  font-size: clamp(2rem, 8vw, 4.4rem);
  letter-spacing: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  margin-bottom: var(--sp-4);
  max-width: 18ch;
}
.hero__lead {
  color: rgba(255,255,255,.9); font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 44ch; margin-bottom: var(--sp-5); text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.hero__cta { min-height: 48px; padding-inline: 1.6rem; }

/* Arrows — hidden by default; JS toggles .is-showing-arrows on the hero */
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; display: grid; place-items: center;
  color: #fff; background: rgba(26,26,26,.35);
  border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius-full);
  opacity: 0; visibility: hidden;
  transition: opacity 400ms var(--ease), visibility 400ms var(--ease), background var(--dur) var(--ease);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero.is-showing-arrows .hero__arrow { opacity: 1; visibility: visible; }
.hero__arrow:hover { background: var(--red); border-color: var(--red); }
.hero__arrow--prev { left: clamp(var(--sp-3), 3vw, var(--sp-6)); }
.hero__arrow--next { right: clamp(var(--sp-3), 3vw, var(--sp-6)); }
/* Touch devices: no arrows (swipe instead) */
@media (hover: none) { .hero__arrow { display: none; } }

/* Dots */
.hero__dots {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: clamp(var(--sp-4), 4vh, var(--sp-6)); z-index: 3;
  display: flex; gap: var(--sp-3);
}
.hero__dot {
  width: 10px; height: 10px; padding: 0; border-radius: var(--radius-full);
  background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.7);
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.hero__dot.is-active { background: var(--red); border-color: var(--red); width: 26px; }

/* ============================================================================
   INTRO / ABOUT
   ========================================================================= */
.intro__grid { display: grid; gap: var(--sp-5); }
.intro__title { font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: 0; }
.intro__text { margin-bottom: var(--sp-5); max-width: 60ch; }
.intro__text strong { color: var(--text-strong); }
.intro__statement {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--text-strong); border-left: 3px solid var(--red);
  padding-left: var(--sp-4); margin-bottom: var(--sp-5); line-height: 1.35;
}

/* ============================================================================
   PRODUCTS
   ========================================================================= */
.products__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.pcard {
  display: flex; flex-direction: column;
  background: var(--steel-100); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--steel-500); }
.pcard__media {
  position: relative; aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
}
/* Product-card imagery. A subtle graphite gradient over each photo unifies the set
   (they are shared factory shots, not dedicated product photos yet). */
.pcard__media { background-color: #23272e; }
.pcard__media--1 { background-image: linear-gradient(180deg, rgba(26,26,26,.10), rgba(26,26,26,.42)), url("assets/images/zz-zavarivac-slajder-1.jpg"); }
.pcard__media--2 { background-image: linear-gradient(180deg, rgba(26,26,26,.10), rgba(26,26,26,.42)), url("assets/images/zz-zavarivac-slajder-2.webp"); }
.pcard__media--3 { background-image: linear-gradient(180deg, rgba(26,26,26,.10), rgba(26,26,26,.42)), url("assets/images/zz-zavarivac-slajder-3.png"); }
.pcard__media--4 { background-image: linear-gradient(180deg, rgba(26,26,26,.10), rgba(26,26,26,.42)), url("assets/images/zz-zavarivac-slajder-4.webp"); }
.pcard__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.pcard__title { font-size: 1.25rem; }
.pcard__meta { font-size: .82rem; color: var(--text-soft); }
.pcard__meta .mono { color: var(--red); }
.pcard__desc { color: var(--text); font-size: .95rem; flex: 1; }
.pcard__more {
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--red);
  display: inline-flex; align-items: center; gap: .35rem; margin-top: var(--sp-2);
  position: relative; align-self: flex-start;
}
.pcard__more::after {
  content: ""; position: absolute; left: 0; right: 1.2rem; bottom: -3px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.pcard:hover .pcard__more::after { transform: scaleX(1); }

/* ============================================================================
   ECO STRIP
   ========================================================================= */
.eco { padding-block: var(--sp-8); }
.eco__grid { display: grid; gap: var(--sp-6); }
.eco__title { font-size: clamp(1.6rem, 5vw, 2.6rem); margin-bottom: var(--sp-4); letter-spacing: 0; }
.eco__lead { color: var(--steel-300); max-width: 52ch; }
.eco__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.eco__stat { display: flex; flex-direction: column; gap: var(--sp-1); border-top: 2px solid var(--red); padding-top: var(--sp-3); }
.eco__num { font-size: clamp(1.1rem, 3.5vw, 1.7rem); font-weight: 600; color: #fff; }
.eco__cap { font-size: .78rem; color: var(--steel-300); }

/* ============================================================================
   CUSTOM MANUFACTURING
   ========================================================================= */
.custom { text-align: center; }
.custom__inner { max-width: 60ch; margin-inline: auto; }
.custom__title { font-size: clamp(1.7rem, 5.5vw, 3rem); letter-spacing: 0; margin-bottom: var(--sp-5); }
.custom__text { margin-bottom: var(--sp-6); font-size: 1.05rem; }
.custom__inner .eyebrow { color: var(--red); }

/* ============================================================================
   FOOTER
   ========================================================================= */
.footer { padding-top: var(--sp-8); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.footer__logo { height: 34px; width: auto; margin-bottom: var(--sp-3); }
.footer__tagline { font-family: var(--font-mono); font-size: .78rem; color: var(--steel-500); letter-spacing: .04em; }
.footer__col .eyebrow { margin-bottom: var(--sp-3); }
.footer__mt { margin-top: var(--sp-5); }
.footer__address { font-style: normal; color: var(--steel-300); line-height: 1.7; }
.footer__contact { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; gap: var(--sp-1); }
.footer__contact a, .footer__nav a { color: var(--steel-300); transition: color var(--dur) var(--ease); }
.footer__contact a:hover, .footer__nav a:hover { color: #fff; }
.footer__hours { color: var(--steel-500); font-size: .9rem; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.footer__bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5); padding-bottom: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.1); color: var(--steel-500); font-size: .82rem;
}

/* ============================================================================
   BACK TO TOP
   ========================================================================= */
.to-top {
  position: fixed; right: clamp(var(--sp-4), 4vw, var(--sp-6)); bottom: clamp(var(--sp-4), 4vw, var(--sp-6));
  z-index: var(--z-fixed);
  width: 48px; height: 48px; display: grid; place-items: center;
  color: var(--text-strong); background: linear-gradient(160deg, #fff, var(--steel-300));
  border: 1px solid var(--border); border-radius: var(--radius-full); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease),
              transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ============================================================================
   AI CHAT WIDGET
   ========================================================================= */
.chat { position: fixed; left: clamp(var(--sp-4), 4vw, var(--sp-6)); bottom: clamp(var(--sp-4), 4vw, var(--sp-6)); z-index: var(--z-chat); }
.chat__launcher {
  position: relative; width: 56px; height: 56px; display: grid; place-items: center;
  color: #fff; background: var(--red); border: 0; border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(196,23,26,.4);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.chat__launcher:hover { background: var(--red-bright); transform: translateY(-2px); }
.chat__icon-open, .chat__icon-close { position: absolute; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.chat__icon-close { opacity: 0; transform: rotate(-45deg) scale(.6); }
.chat.is-open .chat__icon-open { opacity: 0; transform: rotate(45deg) scale(.6); }
.chat.is-open .chat__icon-close { opacity: 1; transform: rotate(0) scale(1); }

.chat__panel[hidden] { display: none; }   /* author rule must beat `.chat__panel{display:flex}` */
.chat__panel {
  position: absolute; left: 0; bottom: calc(56px + var(--sp-3));
  width: 360px; max-width: calc(100vw - 2 * clamp(var(--sp-4), 4vw, var(--sp-6)));
  height: 520px; max-height: calc(100svh - 120px);
  display: flex; flex-direction: column;
  background: var(--steel-100); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  transform-origin: bottom left;
  animation: chat-in 240ms var(--ease);
}
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.chat__header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-4); background: var(--graphite); color: #fff; flex-shrink: 0;
}
.chat__id { display: flex; align-items: center; gap: var(--sp-3); }
.chat__status { width: 9px; height: 9px; border-radius: var(--radius-full); background: #37d67a; box-shadow: 0 0 0 3px rgba(55,214,122,.25); flex-shrink: 0; }
.chat__name { font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.chat__sub { font-size: .68rem; color: var(--steel-300); letter-spacing: .04em; }
.chat__close { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); border: 0; border-radius: var(--radius); }
.chat__close:hover { background: rgba(255,255,255,.2); }

.chat__log { flex: 1; overflow-y: auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); overscroll-behavior: contain; background: var(--bg-muted); }
.msg { max-width: 82%; padding: .65rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-line; }
.msg--bot { align-self: flex-start; background: #fff; color: var(--text-strong); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }

.chat__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); background: var(--steel-100); border-top: 1px solid var(--border); flex-shrink: 0; }
.chat__chip {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .02em;
  padding: .4rem .7rem; border-radius: var(--radius-full);
  background: var(--bg-muted); border: 1px solid var(--border); color: var(--text-strong);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chat__chip:hover { background: #fff; border-color: var(--red); color: var(--red); }

.chat__form { display: flex; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); background: var(--steel-100); border-top: 1px solid var(--border); flex-shrink: 0; }
.chat__input {
  flex: 1; min-height: 44px; padding: .5rem .8rem; font: inherit; font-size: .95rem;
  color: var(--text-strong); background: var(--bg-muted);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.chat__input:focus { outline: none; border-color: var(--red); background: #fff; }
.chat__send { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; color: #fff; background: var(--red); border: 0; border-radius: var(--radius); transition: background var(--dur) var(--ease); }
.chat__send:hover { background: var(--red-bright); }

/* Mobile: chat panel becomes a bottom sheet */
@media (max-width: 560px) {
  .chat__panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    width: 100vw; max-width: 100vw; height: 82svh; max-height: 82svh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    animation: sheet-in 260ms var(--ease);
  }
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ============================================================================
   REVEAL BASELINE (JS enhancement only)
   With JS on, data-reveal starts slightly lowered/faded and GSAP animates it in.
   With JS off, .js is never added → content is fully visible. Safety net: if GSAP
   fails to load, script.js force-reveals everything.
   ========================================================================= */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-revealed,
.js [data-reveal].no-anim { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__slide.is-active .hero__media { animation: none; transform: none; }
  .preloader__bar span { animation: none; width: 100%; }
}

/* ============================================================================
   BREAKPOINTS
   ========================================================================= */
@media (min-width: 640px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .eco__stats { gap: var(--sp-5); }
}

@media (min-width: 768px) {
  .intro__grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-7); align-items: start; }
  .eco__grid { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  :root { --nav-h: 76px; }
  .nav__list { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__lang { display: inline-flex; }
  .nav__burger { display: none; }
  .nav__logo { height: 36px; }
  .section { padding-block: var(--sp-9); }
  .products__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.5fr repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .container { padding-inline: var(--sp-6); }
  .hero__caption { padding-bottom: clamp(var(--sp-9), 16vh, 10rem); }
}

/* ============================================================================
   PRODUCT PAGES — hub + detail (extends the homepage system; same tokens)
   ========================================================================= */

/* Anchor targets clear the fixed navbar when linked via #hash */
[id] { scroll-margin-top: calc(var(--nav-h) + var(--sp-4)); }

/* Reusable factory-photo backgrounds (shared shots; swap for dedicated photos) */
.bg-weld-1 { background-image: url("assets/images/zz-zavarivac-slajder-1.jpg"); }
.bg-weld-2 { background-image: url("assets/images/zz-zavarivac-slajder-2.webp"); }
.bg-weld-3 { background-image: url("assets/images/zz-zavarivac-slajder-3.png"); }
.bg-weld-4 { background-image: url("assets/images/zz-zavarivac-slajder-4.webp"); }

/* ---------- Compact page hero (NOT full-height) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 44vh;
  padding-top: calc(var(--nav-h) + var(--sp-6));
  padding-bottom: var(--sp-7);
  background: var(--ink);
}
.page-hero--compact { min-height: 34vh; }
.page-hero__media {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center; background-color: #23272e;
}
.page-hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(26,26,26,.60) 0%, rgba(26,26,26,.38) 45%, rgba(26,26,26,.78) 100%),
    linear-gradient(90deg, rgba(26,26,26,.55) 0%, rgba(26,26,26,0) 70%);
}
.page-hero__inner { width: 100%; }
.page-hero__title { color: #fff; font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: 0; margin-bottom: var(--sp-3); }
.page-hero__lead { color: rgba(255,255,255,.9); max-width: 56ch; font-size: clamp(1rem, 2.4vw, 1.15rem); text-shadow: 0 1px 10px rgba(0,0,0,.4); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: var(--sp-4); }
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.breadcrumb li { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.85); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }
.breadcrumb__sep { color: rgba(255,255,255,.4); }

/* ---------- Long-form content ---------- */
.lead { font-size: clamp(1.05rem, 2.5vw, 1.3rem); max-width: 66ch; color: var(--text); }
.prose { max-width: 66ch; }
.prose > p { margin-bottom: var(--sp-4); }
.prose > p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-strong); }

/* Detail section: eyebrow+title on the left, prose on the right (desktop) */
.detail-grid { display: grid; gap: var(--sp-5); }
.detail-grid .section__head { margin-bottom: 0; }

/* ---------- Technical spec table ---------- */
.spec { max-width: 100%; }
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--steel-100);
}
.spec-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .9rem; }
.spec-table caption {
  text-align: left; caption-side: top; padding: var(--sp-4) var(--sp-4) var(--sp-3);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red);
}
.spec-table th, .spec-table td {
  padding: .6rem .85rem; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap;
}
.spec-table thead th {
  background: var(--graphite); color: #fff; font-family: var(--font-display); font-weight: 600;
  position: sticky; top: 0;
}
/* The first header cell pins to BOTH top and left so it stays aligned above the
   sticky parameter column when the table is scrolled horizontally. */
.spec-table thead th:first-child { text-align: left; position: sticky; left: 0; z-index: 3; }
.spec-table tbody th[scope="row"] {
  text-align: left; font-family: var(--font-body); font-weight: 500; color: var(--text-strong);
  position: sticky; left: 0; background: var(--steel-100); z-index: 1;
  /* Wrap long labels and cap the column so data stays visible on narrow screens */
  white-space: normal; min-width: 150px; max-width: 230px;
  box-shadow: inset -1px 0 0 var(--border);
}
.spec-table tbody td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.spec-table tbody tr:nth-child(even) th[scope="row"] { background: var(--bg-muted); }
.spec-table tbody tr:nth-child(even) td { background: var(--bg-muted); }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: 0; }
.spec__note { margin-top: var(--sp-3); font-size: .85rem; color: var(--text-soft); max-width: 66ch; }
.spec__hint { margin-bottom: var(--sp-3); font-size: .8rem; color: var(--text-soft); font-family: var(--font-mono); }

/* Placeholder note for spec tables we don't have data for yet */
.spec-placeholder {
  border: 1px dashed var(--steel-500); border-radius: var(--radius-lg);
  padding: var(--sp-5); background: var(--bg-muted);
  font-family: var(--font-mono); font-size: .82rem; color: var(--graphite); line-height: 1.6; max-width: 66ch;
}

/* ---------- FAQ (native <details> — works with JS disabled) ---------- */
.faq { display: grid; gap: var(--sp-3); max-width: 80ch; }
.faq__item {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--steel-100); overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq__item[open] { border-color: var(--steel-500); box-shadow: var(--shadow-sm); }
.faq__q {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text-strong);
  transition: color var(--dur) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--red); }
.faq__chevron { flex-shrink: 0; color: var(--red); transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__a { padding: 0 var(--sp-5) var(--sp-5); color: var(--text); line-height: 1.65; }
.faq__a > p { margin-bottom: var(--sp-3); }
.faq__a > p:last-child { margin-bottom: 0; }
.js .faq__item[open] .faq__a { animation: faq-open .28s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Product hub cards (larger, 1 → 2 columns) ---------- */
.hub__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.hub__grid .pcard__media { aspect-ratio: 16 / 10; }

/* ---------- CTA band (product pages) ---------- */
.cta-band { background: var(--graphite); color: #fff; text-align: center; }
.cta-band__inner { max-width: 60ch; margin-inline: auto; }
.cta-band .eyebrow { color: var(--red); }
.cta-band__title { color: #fff; font-size: clamp(1.5rem, 4.5vw, 2.4rem); letter-spacing: 0; margin-bottom: var(--sp-4); }
.cta-band__text { color: var(--steel-300); margin-bottom: var(--sp-6); }

/* ---------- Product-page responsive ---------- */
@media (min-width: 768px) {
  .page-hero { min-height: 48vh; }
  .page-hero--compact { min-height: 38vh; }
  .detail-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-7); align-items: start; }
  .hub__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .page-hero { min-height: 52vh; }
  .page-hero--compact { min-height: 40vh; }
}

/* Nav dropdown hover-bridge: keeps the pointer "inside" across the 12px gap so
   the menu doesn't close while moving from the parent link to the panel. */
.nav__dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }

/* ============================================================================
   VISUAL COMPONENTS (product redesign + O nama + Kontakt) — same tokens
   ========================================================================= */

/* Centered section head variant */
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { margin-inline: auto; }

/* ---------- Stat / highlight cards ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.stat-card {
  display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0;
  background: var(--steel-100); border: 1px solid var(--border); border-top: 2px solid var(--red);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: var(--sp-5);
}
.stat-card__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 4.5vw, 2.1rem); color: var(--text-strong); letter-spacing: 0; line-height: 1; min-width: 0; overflow-wrap: anywhere; }
.stat-card__num .unit { font-size: .6em; color: var(--red); }
.stat-card__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); min-width: 0; overflow-wrap: anywhere; }
.stat-card__label a { color: var(--red); }
.stat-card__label a:hover { text-decoration: underline; }
/* On dark bands */
.section--dark .stat-card, .section--ink .stat-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); border-top-color: var(--red); }
.section--dark .stat-card__num, .section--ink .stat-card__num { color: #fff; }

/* ---------- Alternating image / text rows ---------- */
.feature-row { display: grid; gap: var(--sp-5); align-items: center; }
.feature-row + .feature-row { margin-top: var(--sp-7); }
.feature-row__media {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; min-height: 220px;
  background-size: cover; background-position: center; background-color: #23272e;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.feature-row__body { display: flex; flex-direction: column; gap: var(--sp-3); }
.feature-row__title { font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: 0; }
.feature-row__text { color: var(--text); }
.feature-row__text p + p { margin-top: var(--sp-3); }

/* ---------- Full-width image band ---------- */
.image-band {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding-block: clamp(var(--sp-8), 13vw, var(--sp-9)); background: var(--ink); color: #fff;
}
.image-band__media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.image-band__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,26,26,.72), rgba(26,26,26,.6)); }
.image-band__inner { max-width: 46ch; margin-inline: auto; }
.image-band .eyebrow { color: var(--red); }
.image-band__quote {
  font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: clamp(1.4rem, 4.5vw, 2.4rem); line-height: 1.2; letter-spacing: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.image-band__num { font-family: var(--font-mono); font-size: clamp(2.2rem, 9vw, 4rem); font-weight: 600; color: #fff; line-height: 1; }

/* ---------- Feature icon grid ---------- */
.features { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.feature { display: flex; gap: var(--sp-4); align-items: flex-start; }
.feature__icon {
  flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center;
  color: var(--red); background: rgba(196,23,26,.07);
  border: 1px solid rgba(196,23,26,.22); border-radius: var(--radius);
}
.feature__title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text-strong); margin-bottom: 2px; }
.feature__text { font-size: .92rem; color: var(--text); }
.feature__text .mono { color: var(--red); }

/* ---------- Technical drawing figure (Presek bojlera) ---------- */
.tech-figure { margin: 0; }
.tech-figure__frame {
  position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--steel-500);
  border-radius: var(--radius-lg); background-color: var(--steel-100);
  background-image:
    linear-gradient(var(--steel-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-200) 1px, transparent 1px);
  background-size: 28px 28px; background-position: center;
  display: grid; place-items: center; overflow: hidden;
}
.tech-figure__frame::before, .tech-figure__frame::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--red);
}
.tech-figure__frame::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.tech-figure__frame::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.tech-figure__label {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; color: var(--graphite);
  text-align: center; padding: var(--sp-4); max-width: 30ch;
}
.tech-figure figcaption, .figure-caption {
  margin-top: var(--sp-3); font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .06em; color: var(--text-soft); text-align: center;
}

/* Dedicated product-photo slot */
.photo-slot {
  aspect-ratio: 4 / 3; border: 1px dashed var(--steel-500); border-radius: var(--radius-lg);
  background: var(--bg-muted); display: grid; place-items: center; text-align: center; padding: var(--sp-4);
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; color: var(--graphite);
}

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: var(--sp-6); padding-left: var(--sp-6); }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline__item { position: relative; }
.timeline__item::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-6)); top: 4px;
  width: 14px; height: 14px; border-radius: var(--radius-full);
  background: var(--red); box-shadow: 0 0 0 4px var(--bg);
}
.timeline__year { font-family: var(--font-mono); font-weight: 600; font-size: .8rem; letter-spacing: .1em; color: var(--red); }
.timeline__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text-strong); margin: var(--sp-1) 0; }
.timeline__text { color: var(--text); font-size: .95rem; }
.section--muted .timeline__item::before { box-shadow: 0 0 0 4px var(--bg-muted); }

/* ---------- Founder highlight (dark) ---------- */
.founder__grid { display: grid; gap: var(--sp-6); align-items: center; }
.founder__portrait {
  aspect-ratio: 3 / 4; border-radius: var(--radius-lg); border: 1px dashed rgba(255,255,255,.35);
  background: rgba(255,255,255,.04); display: grid; place-items: center; text-align: center; padding: var(--sp-4);
  font-family: var(--font-mono); font-size: .76rem; color: var(--steel-300);
}
.founder__title { color: #fff; }
.founder__text { color: var(--steel-300); }
.founder__text p + p { margin-top: var(--sp-3); }

/* ---------- Location cards ---------- */
.loc-cards { display: grid; gap: var(--sp-5); }
.loc-card {
  background: var(--steel-100); border: 1px solid var(--border); border-top: 2px solid var(--red);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.loc-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--text-strong); }
.loc-row { display: flex; align-items: flex-start; gap: var(--sp-3); color: var(--text); }
.loc-row svg { flex-shrink: 0; color: var(--red); margin-top: 2px; }
.loc-row a { color: var(--text); transition: color var(--dur) var(--ease); }
.loc-row a:hover { color: var(--red); }
.loc-card address { font-style: normal; line-height: 1.6; }

/* ---------- Contact form ---------- */
.cform { display: grid; gap: var(--sp-4); }
.cform__row { display: grid; gap: var(--sp-4); }
.cform__field { display: grid; gap: var(--sp-2); }
.cform__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.cform__label .req { color: var(--red); }
.cform input, .cform textarea {
  width: 100%; min-height: 46px; padding: .7rem .9rem; font: inherit; font-size: .98rem;
  color: var(--text-strong); background: var(--steel-100);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cform textarea { min-height: 130px; resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(196,23,26,.12); }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.cform__status { font-size: .92rem; font-weight: 500; }
.cform__status[data-state="success"] { color: #1a7f4b; }
.cform__status[data-state="error"] { color: var(--red-deep); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Map ---------- */
.map-frame {
  position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-muted);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-frame__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: .8rem; color: var(--text-soft); }

/* ---------- Company / legal data block ---------- */
.legal-block {
  font-family: var(--font-mono); font-size: .82rem; line-height: 1.9; color: var(--text);
  background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5);
}
.legal-block strong { color: var(--text-strong); font-weight: 600; }

/* ---------- Component responsive ---------- */
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .loc-cards { grid-template-columns: repeat(2, 1fr); }
  .cform__row--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats--3 { grid-template-columns: repeat(3, 1fr); }
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
  .feature-row--reverse .feature-row__media,
  .feature-row--reverse .photo-slot { order: 2; }
  .features--4 { grid-template-columns: repeat(4, 1fr); }
  .founder__grid { grid-template-columns: 0.7fr 1.3fr; gap: var(--sp-7); }
}
