/* BE-MONT — Precision Industrial Theme */

:root {
  --bg-deep: #070b10;
  --bg-surface: #0f1419;
  --bg-elevated: #161d26;
  --bg-card: #1a222d;
  --steel: #8b9aab;
  --steel-light: #c5cdd8;
  --text: #eef2f7;
  --text-muted: #8a96a8;
  --accent: #e87722;
  --accent-dim: rgba(232, 119, 34, 0.12);
  --accent-glow: rgba(232, 119, 34, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 96px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --container: min(1200px, calc(100% - 3rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 56ch;
  font-size: 1.05rem;
}

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f0821f, var(--accent));
  box-shadow: 0 0 8px rgba(232, 119, 34, 0.65), 0 0 2px rgba(232, 119, 34, 0.9);
  border-radius: 0 2px 2px 0;
  transition: width 0.12s linear;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress__bar { transition: none; }
}

/* Grid overlay texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition), height var(--transition);
}

.header.scrolled {
  height: 78px;
  background: rgba(7, 11, 16, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--border), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  padding-right: 1.5rem;
}

.logo img {
  height: 68px;
  width: auto;
  transition: height var(--transition), opacity var(--transition), filter var(--transition);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.header.scrolled .logo img {
  height: 54px;
}

.logo:hover img {
  opacity: 0.9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  color: var(--steel-light);
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nav__lang a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav__lang a.active {
  background: var(--accent);
  color: var(--bg-deep);
}

.nav__cta {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.72rem 1.4rem;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}

/* Media layer wrapper — parallax-transformed as a whole.
   Small bleed pulls the machine ~10% smaller (its true min cover size);
   parallax amplitude is kept within this bleed so no edge is exposed. */
.hero__media {
  position: absolute;
  inset: -1% -1%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 35%;   /* machine right; framing pulled down so the top shows */
  transform: scale(1.03);
}

/* Directional overlay: keeps the left text column dark & readable,
   lets the machine body on the right stay visible. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 9, 14, 0.95) 0%,
      rgba(5, 9, 14, 0.9) 34%,
      rgba(5, 9, 14, 0.66) 56%,
      rgba(5, 9, 14, 0.42) 80%,
      rgba(5, 9, 14, 0.32) 100%
    ),
    linear-gradient(to top, var(--bg-deep) 0%, rgba(5, 9, 14, 0) 34%);
}

/* Subtle framing vignette */
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 100% at 66% 44%,
    rgba(0, 0, 0, 0) 42%,
    rgba(0, 0, 0, 0.28) 78%,
    rgba(0, 0, 0, 0.55) 100%
  );
  mix-blend-mode: multiply;
}

/* Single light sweep across the machine on load */
.hero__sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.10) 46%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.10) 54%,
    transparent 70%
  );
  transform: translateX(-120%);
  opacity: 0;
}

/* Spindle marker: precision detail near the machine head */
.hero__spindle {
  position: absolute;
  top: 44%;
  left: 62%;
  width: clamp(120px, 13vw, 190px);
  height: auto;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.hero__spindle-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232, 119, 34, 0.30) 0%, rgba(232, 119, 34, 0.10) 35%, transparent 68%);
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: blur(2px);
}

.hero.is-loaded .hero__spindle-glow {
  opacity: 0.6;
}

.hero__marker {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  opacity: 0;
}

.hero.is-loaded .hero__marker {
  opacity: 0.62;
  transition: opacity 0.9s ease 0.6s;
}

.mk-line {
  stroke: rgba(232, 119, 34, 0.85);
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.mk-line--h {
  stroke: rgba(232, 119, 34, 0.5);
  stroke-dasharray: 4 6;
}

.mk-dot { fill: var(--accent); }

.mk-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.7;
}

.mk-axis {
  fill: rgba(232, 119, 34, 0.9);
  font-family: var(--font-display), monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  max-width: 680px;
  text-align: left;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.8vw, 4.4rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.hero__title-1 {
  display: block;
  text-transform: uppercase;
  color: #fff;
  font-weight: 800;
}

.hero__title-1 .accent {
  color: var(--accent);
}

.hero__title-2 {
  display: block;
  margin-top: 0.28em;
  color: var(--text);
  font-weight: 600;
  font-size: 0.62em;
  letter-spacing: -0.02em;
  text-transform: none;
}

.hero__desc {
  font-size: 1.12rem;
  line-height: 1.6;
  color: #d5dde7;
  max-width: 44ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero CTAs — slightly lighter, more refined than the global buttons */
.hero__actions .btn {
  min-height: 50px;
  padding: 0.8rem 1.7rem;
}

.hero__actions .btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
}

.btn__arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 1.05rem 2rem;
  min-height: 56px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 6px 18px rgba(232, 119, 34, 0.22);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: #f0821f;
  box-shadow: 0 10px 24px rgba(232, 119, 34, 0.28);
}

.btn--primary:hover .btn__arrow {
  transform: translateX(4px);
}

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

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero__stats {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  background: linear-gradient(to top, rgba(5, 9, 14, 0.86), rgba(5, 9, 14, 0.55));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero__stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1.8rem 1.25rem;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat:last-child {
  border-right: none;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Long alphanumeric stat (ISO 9001:2015) — same hierarchy, scaled to fit */
.stat__value--iso {
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  white-space: nowrap;
}

.stat__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ── Sections ── */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

section:nth-child(even) {
  background: var(--bg-surface);
}

.reveal {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Scroll reveal disabled per request — content renders fully visible immediately */

/* ── About ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about__text p {
  color: var(--steel-light);
  margin-bottom: 1.25rem;
}

.about__text p strong {
  color: var(--text);
}

.about__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
}

.about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 119, 34, 0.2);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.about__badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(7, 11, 16, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.about__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.about__badge span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about__intro {
  margin-top: 0.5rem;
}

.about-timeline {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.timeline-item__year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-item__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-item__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
  align-items: start;
}

/* Single remaining block spans the full width so no half stays empty */
.about-split--solo {
  grid-template-columns: 1fr;
}

.about-split--solo .industries {
  max-width: 760px;
}

.about-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-block p,
.about-block li {
  color: var(--steel-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about-block li {
  padding-left: 1.25rem;
  position: relative;
}

.about-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.step-card__num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.step-card__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.step-card__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.industry-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--steel-light);
  background: var(--bg-card);
}

/* ── Industries & order types (structured B2B grid) ── */
.industries-block {
  margin-top: 4rem;
}

.industries-block__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.industries-block__intro {
  color: var(--steel-light);
  font-size: 1.02rem;
  max-width: 62ch;
  margin-bottom: 2rem;
}

/* Compact capability matrix — hairline-separated cells, tiny icons */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.industry-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.15rem;
  min-height: 56px;
  background: var(--bg-surface);
  transition: background 0.35s ease;
}

/* Short orange accent bar (left edge) on hover/focus */
.industry-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  transform: translateY(-50%);
  background: var(--accent);
  transition: height 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.industry-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--steel);
  transition: color 0.35s ease, transform 0.35s ease;
}

.industry-item__icon svg {
  width: 20px;
  height: 20px;
}

.industry-item__label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.25;
  transition: color 0.35s ease;
}

.industry-item:hover,
.industry-item:focus-within {
  background: var(--bg-elevated);
}

.industry-item:hover::before,
.industry-item:focus-within::before {
  height: 24px;
}

.industry-item:hover .industry-item__label,
.industry-item:focus-within .industry-item__label {
  color: #fff;
}

.industry-item:hover .industry-item__icon,
.industry-item:focus-within .industry-item__icon {
  color: var(--accent);
  transform: translateX(2px);
}

.industries-block__outro {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 74ch;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.about-page-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  margin-top: 2rem;
}

.about-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.info-panel h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.info-panel p,
.info-panel li {
  font-size: 0.9rem;
  color: var(--steel-light);
  line-height: 1.7;
}

.info-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-panel a:hover {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .about-timeline,
  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-split,
  .about-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-timeline,
  .steps__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Machines ── */
.machines__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.machine-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.machine-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.machine-card:hover {
  border-color: rgba(232, 119, 34, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.machine-card:hover::before {
  opacity: 1;
}

.machine-card__type {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.machine-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.machine-card__year {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.machines__group-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ── Services ── */
/* ══════════════════════════════════════════════
   SERVICES — uniform horizontal service panels
   ══════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Thin orange top line — extends on hover */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 26px;
  background: var(--accent);
  transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.service-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.05rem;
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.service-card__icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform 0.35s ease;
}

.service-card__icon svg { width: 22px; height: 22px; display: block; }

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.35s ease;
}

.service-card__desc {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Hover / focus / tap — subtle, no size change */
.service-card:hover,
.service-card:focus-within,
.service-card:focus-visible,
.service-card:active {
  background: var(--bg-card);
  border-color: rgba(232, 119, 34, 0.28);
}

.service-card:hover::before,
.service-card:focus-within::before,
.service-card:focus-visible::before,
.service-card:active::before {
  width: 100%;
}

.service-card:hover .service-card__title,
.service-card:focus-within .service-card__title,
.service-card:focus-visible .service-card__title { color: #fff; }

.service-card:hover .service-card__icon,
.service-card:focus-within .service-card__icon,
.service-card:focus-visible .service-card__icon { transform: translateX(2px); }

/* Scroll reveal (JS-gated): header first, then a short card stagger */
.js #storitve .reveal,
.js #services .reveal,
.js .services-grid .service-card {
  opacity: 0;
  transform: translateY(16px);
}

.js #storitve .reveal,
.js #services .reveal {
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js #storitve .reveal.is-in,
.js #services .reveal.is-in,
.js .services-grid .service-card.is-in {
  opacity: 1;
  transform: none;
}

/* Services CTA — sits below the grid, aligned right */
.services__cta {
  margin-top: 1.75rem;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); } /* 3 + 2 */
}

@media (max-width: 760px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .services__cta { justify-content: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .js #storitve .reveal,
  .js #services .reveal,
  .js .services-grid .service-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════
   MACHINERY — horizontal equipment rail
   (low, flat premium technical tiles)
   ══════════════════════════════════════════════ */
.equipment-group { margin-top: 3.25rem; }
.equipment-group:first-of-type { margin-top: 3rem; }

/* Category header:  01 / NAME ————————— count */
.equipment-cat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.equipment-cat__index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.equipment-cat__sep {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: -0.35rem;
}

.equipment-cat__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.equipment-cat__rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.equipment-cat__count {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* The rail: hairline-separated cells */
.equipment-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.equipment-rail--single { grid-template-columns: 1fr; }

.equipment-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 148px;
  padding: 1.5rem 1.5rem 1.4rem;
  background: var(--bg-surface);
  transition: background 0.4s ease;
}

/* Orange accent indicator on hover (top edge) */
.equipment-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.equipment-tile:hover { background: var(--bg-elevated); }
.equipment-tile:hover::before { transform: scaleX(1); }

.equipment-tile__brand {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.4s ease;
}

.equipment-tile:hover .equipment-tile__brand { color: var(--accent); }

.equipment-tile__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--steel-light);
  margin-top: auto;
  transition: color 0.4s ease;
}

.equipment-tile:hover .equipment-tile__name { color: #fff; }

.equipment-tile__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Flagship (single lathe) — wide, low horizontal bar */
.equipment-tile--flagship {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 104px;
  padding-right: 3.5rem;
}

.equipment-tile--flagship .equipment-tile__head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.equipment-tile--flagship .equipment-tile__name { margin-top: 0; }
.equipment-tile--flagship .equipment-tile__meta { text-align: right; }

/* Reveal (JS-gated) */
.js #strojni-park .reveal,
.js #machinery .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js #strojni-park .reveal.is-in,
.js #machinery .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .equipment-rail:not(.equipment-rail--single) { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .equipment-rail:not(.equipment-rail--single) { grid-template-columns: 1fr; }
  .equipment-tile--flagship {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-right: 1.5rem;
  }
  .equipment-tile--flagship .equipment-tile__meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .js #strojni-park .reveal,
  .js #machinery .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .equipment-tile,
  .equipment-tile::before { transition: none !important; }
}

.section-footer {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.section-footer p {
  color: var(--text-muted);
  max-width: 48ch;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition);
}

.feature-box:hover {
  border-color: rgba(232, 119, 34, 0.25);
}

.feature-box__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.feature-box__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-box__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Home gallery — clean bento: one large feature + supporting tiles */
.home-gallery .gallery__grid {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 0.85rem;
}

.home-gallery .gallery__item:nth-child(4) {
  grid-column: auto;
}

.home-gallery .gallery__item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 1024px) {
  .home-gallery .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
  }
  .home-gallery .gallery__item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .home-gallery .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .home-gallery .gallery__item:nth-child(1) {
    grid-column: span 1;
  }
}

@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ── Gallery ── */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 0.75rem;
  margin-top: 3rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.4s ease;
}

.gallery__item:nth-child(1) {
  grid-row: span 2;
}

.gallery__item:nth-child(4) {
  grid-column: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
}

.gallery__item:hover,
.gallery__item:focus-visible {
  border-color: rgba(232, 119, 34, 0.4);
}

/* Subtle darken on hover so the expand cue reads */
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 16, 0.6), rgba(7, 11, 16, 0.12));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after {
  opacity: 1;
}

/* Expand cue — appears centred on hover */
.gallery__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 2;
  pointer-events: none;
}

.gallery__item:hover::before,
.gallery__item:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Scroll reveal (JS-gated) — header first, then a short image stagger */
.js #galerija .container > .reveal,
.js #gallery .container > .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .home-gallery .gallery__item {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.4s ease;
}

.js #galerija .container > .reveal.is-in,
.js #gallery .container > .reveal.is-in,
.js .home-gallery .gallery__item.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js #galerija .container > .reveal,
  .js #gallery .container > .reveal,
  .js .home-gallery .gallery__item {
    opacity: 1 !important;
    transform: none !important;
  }
  .gallery__item img,
  .gallery__item::before,
  .gallery__item::after { transition: none !important; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 11, 16, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__close:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__nav:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

.lightbox__prev { left: 1.5rem; }
.lightbox__next { right: 1.5rem; }

/* ── Contact ── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact__cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.contact-card p,
.contact-card a {
  color: var(--steel-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-card .detail-row {
  display: flex;
  gap: 0.5rem;
}

.contact-card .detail-label {
  color: var(--text-muted);
  min-width: 140px;
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 420px;
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

@media (max-width: 768px) {
  .contact__map,
  .contact__map iframe {
    min-height: 320px;
  }
}

/* ── Footer ── */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__brand img {
  height: 40px;
  opacity: 0.8;
}

.footer__info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__info a:hover {
  color: var(--accent);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Subpages ── */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.page-hero__breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.page-hero__breadcrumb a:hover {
  color: var(--accent);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-hero__desc {
  color: var(--steel-light);
  max-width: 60ch;
  font-size: 1.05rem;
}

.page-content {
  padding: 4rem 0 6rem;
}

.outline-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232, 119, 34, 0.2);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.outline-text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* Homepage previews */
.previews {
  padding: 5rem 0;
}

.previews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.preview-card:hover {
  border-color: rgba(232, 119, 34, 0.3);
  transform: translateY(-4px);
}

.preview-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.preview-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.preview-card:hover .preview-card__img img {
  transform: scale(1.05);
}

.preview-card__body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.preview-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.preview-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.preview-card__link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.preview-card__link:hover {
  gap: 0.6rem;
}

/* Expanded machines */
.machines-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.machine-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.machine-detail__img {
  aspect-ratio: 16/10;
  background: var(--bg-elevated);
}

.machine-detail__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.machine-detail__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.machine-detail__body {
  padding: 1.5rem;
}

.machine-detail__specs {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.machine-detail__specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  padding: 0.35rem 0;
  color: var(--steel-light);
}

.machine-detail__specs li span:first-child {
  color: var(--text-muted);
}

/* Expanded services */
.services-detail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.service-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition);
}

.service-detail:hover {
  border-color: rgba(232, 119, 34, 0.25);
}

.service-detail__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.service-detail__icon svg {
  width: 26px;
  height: 26px;
}

.service-detail__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-detail__desc {
  color: var(--steel-light);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* Gallery categories */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.gallery-tab {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-tab:hover,
.gallery-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-deep);
}

.gallery-page .gallery__grid {
  grid-auto-rows: 240px;
}

.gallery-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--steel);
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.gallery-section-title:first-of-type {
  margin-top: 0;
}

.page-cta {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.page-cta p {
  color: var(--steel-light);
  margin-bottom: 1.25rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .previews__grid {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery__item:nth-child(1) {
    grid-row: span 1;
  }

  .gallery__item:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 72px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(7, 11, 16, 0.98);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }

  .nav.open .nav__links a {
    width: 100%;
    padding: 0.85rem 1rem;
  }

  .nav.open .nav__cta {
    display: inline-flex;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
  }

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

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__info {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ══════════════════════════════════════════════
   ABOUT — Guided reveal flow, precision line,
   active focus & refined machine visual
   (all JS-gated so content stays visible without JS)
   ══════════════════════════════════════════════ */

/* ── Scoped scroll reveal ── */
.js .about-section .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.js .about-section .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Once settled, switch to snappier transitions for hover/focus micro-interactions */
.js .about-section .reveal.is-settled {
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  will-change: auto;
}

/* Headline word-by-word reveal */
.js .about-section .section-title .rw,
.js .about-section .industries-block__title .rw {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--w, 0) * 55ms + 0.08s);
}

.js .about-section .reveal.is-visible .section-title .rw,
.js .about-section .reveal.is-visible.industries-block .industries-block__title .rw {
  opacity: 1;
  transform: none;
}

/* ── Precision line (thin technical marker, built by JS) ── */
.about-section .container {
  position: relative;
}

.precision-line {
  position: absolute;
  top: 0;
  left: -0.65rem;
  width: 1px;
  height: 0; /* capped to the panoge node by JS */
  z-index: 2;
  pointer-events: none;
}

.precision-line__track {
  position: absolute;
  inset: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(232, 119, 34, 0.14) 4%,
    rgba(232, 119, 34, 0.14) 96%,
    transparent 100%
  );
}

.precision-line__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(
    to bottom,
    rgba(232, 119, 34, 0) 0%,
    rgba(232, 119, 34, 0.55) 14%,
    rgba(232, 119, 34, 0.6) 100%
  );
}

.precision-line__node {
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--bg-deep);
  border: 1px solid rgba(232, 119, 34, 0.4);
  transition: background 0.45s ease, border-color 0.45s ease;
}

.precision-line__node.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .precision-line { display: none; }
}

/* ── Machine visual: frame, parallax, corner markers, chip, badge ── */
.about__visual-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.about-section .about__visual img {
  transform: scale(1.08);
  will-change: transform;
}

/* Technical corner markers */
.about__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 3;
  pointer-events: none;
  border: 0 solid rgba(232, 119, 34, 0.55);
  opacity: 0;
  transition: opacity 0.6s ease 0.25s;
}

.js .about-section .about__visual.is-visible .about__corner {
  opacity: 1;
}

.about__corner--tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.about__corner--tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.about__corner--bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.about__corner--br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }

/* Discreet info-chip */
.about__chip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(7, 11, 16, 0.72);
  border: 1px solid rgba(232, 119, 34, 0.28);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s;
}

.about__chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.js .about-section .about__visual.is-visible .about__chip {
  opacity: 1;
  transform: none;
}

/* Refined DN Solutions badge */
.about__badge {
  padding-left: 1.35rem;
}

.about__badge-tick {
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(232, 119, 34, 0.25));
}

/* ── Active focus: feature boxes ── */
.about-section .feature-box {
  position: relative;
  overflow: hidden;
}

.about-section .feature-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.about-section .feature-box__title,
.about-section .timeline-item__title {
  transition: color var(--transition);
}

.js .about-section .feature-box.reveal:hover,
.js .about-section .feature-box.reveal:focus-within {
  background: var(--bg-elevated);
  border-color: rgba(232, 119, 34, 0.32);
  transform: translateY(-4px);
}

.js .about-section .feature-box.reveal:hover::before,
.js .about-section .feature-box.reveal:focus-within::before {
  width: 100%;
}

.js .about-section .feature-box.reveal:hover .feature-box__title,
.js .about-section .feature-box.reveal:focus-within .feature-box__title {
  color: #fff;
}

/* ── Timeline: horizontal rail with milestone dots ── */
.about-section .about-timeline {
  position: relative;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 3rem;
}

/* Rail: faint track + accent fill that draws left→right (branching right
   from the vertical precision line) once the timeline enters view */
.about-section .about-timeline::before,
.about-section .about-timeline::after {
  content: "";
  position: absolute;
  top: 10px;
  left: -0.65rem;
  height: 2px;
  border-radius: 2px;
}

.about-section .about-timeline::before {
  right: 0;
  background: rgba(232, 119, 34, 0.16);
}

/* Fill width is driven by scroll progress (--rail-p: 0 → 1), so the rail
   draws left→right in sync with scrolling — same feel as the vertical line */
.about-section .about-timeline::after {
  width: calc((100% + 0.65rem) * var(--rail-p, 0));
  background: var(--accent);
}

.about-section .timeline-item {
  transition: border-color var(--transition), background var(--transition);
}

/* Milestone dot sitting on the rail, centred above each card */
.about-section .timeline-item::before {
  content: "";
  position: absolute;
  top: calc(10px - 3rem);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent);
  transition: transform 0.4s ease, background 0.4s ease;
  z-index: 1;
}

.js .about-section .timeline-item.reveal:hover,
.js .about-section .timeline-item.reveal:focus-within {
  background: var(--bg-elevated);
  border-color: rgba(232, 119, 34, 0.3);
}

.js .about-section .timeline-item.reveal:hover::before,
.js .about-section .timeline-item.reveal:focus-within::before {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.3);
}

.js .about-section .timeline-item.reveal:hover .timeline-item__title,
.js .about-section .timeline-item.reveal:focus-within .timeline-item__title {
  color: #fff;
}

/* Mobile: fold the horizontal rail into a clean vertical one */
@media (max-width: 900px) {
  .about-section .about-timeline {
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-left: 1.75rem;
    gap: 1rem;
  }

  .about-section .about-timeline::before {
    top: 0;
    bottom: 0;
    left: 5px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .about-section .about-timeline::after { display: none; }

  .about-section .timeline-item::before {
    top: 1.75rem;
    left: calc(-1.75rem + 5px);
  }
}

/* ── ISO 9001 certificate download — sits just below the About timeline ── */
.cert-download {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
  padding: 0.8rem 1.35rem;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid rgba(232, 119, 34, 0.35);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.cert-btn:hover,
.cert-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px var(--accent-glow);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
}

.cert-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* PDF glyph — small orange badge on the left */
.cert-btn__icon--pdf {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(232, 119, 34, 0.3);
  color: var(--accent);
  transition: background var(--transition), border-color var(--transition);
}

.cert-btn__icon--pdf svg { width: 18px; height: 18px; }

.cert-btn:hover .cert-btn__icon--pdf,
.cert-btn:focus-visible .cert-btn__icon--pdf {
  background: rgba(232, 119, 34, 0.2);
  border-color: var(--accent);
}

/* Download arrow — muted, turns accent and nudges down on hover */
.cert-btn__icon--dl {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.cert-btn__icon--dl svg { width: 20px; height: 20px; }

.cert-btn:hover .cert-btn__icon--dl,
.cert-btn:focus-visible .cert-btn__icon--dl {
  color: var(--accent);
  transform: translateY(2px);
}

.cert-btn__label { min-width: 0; }

/* Mobile: full-width, capped, and let the label wrap inside the button */
@media (max-width: 520px) {
  .cert-btn {
    width: 100%;
    max-width: 24rem;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  .cert-btn__label { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cert-btn,
  .cert-btn__icon--dl { transition: none; }
  .cert-btn:hover,
  .cert-btn:focus-visible { transform: none; }
  .cert-btn:hover .cert-btn__icon--dl,
  .cert-btn:focus-visible .cert-btn__icon--dl { transform: none; }
}

/* Panoge cells reveal by fade only (no slide — avoids clipping in the
   overflow-hidden matrix grid) */
.js .about-section .industries-grid .reveal {
  transform: none;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .js .about-section .reveal,
  .js .about-section .section-title .rw,
  .js .about-section .industries-block__title .rw,
  .about__corner,
  .about__chip {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .about-section .about__visual img { transform: scale(1) !important; }
  .about-section .about-timeline::after { transition: none !important; }
  .precision-line { display: none !important; }
}

/* ══════════════════════════════════════════════
   HERO — load reveal, sweep & motion
   ══════════════════════════════════════════════ */

/* Initial hidden state applied only when JS is active,
   so the hero stays visible if JS fails. */
.js .hero__content .reveal-line {
  opacity: 0;
  transform: translateY(22px);
}

.js .hero.is-loaded .reveal-line {
  animation: heroLineIn 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero.is-loaded .hero__tagline    { animation-delay: 0.15s; }
.hero.is-loaded .hero__title-1    { animation-delay: 0.30s; }
.hero.is-loaded .hero__title-2    { animation-delay: 0.44s; }
.hero.is-loaded .hero__desc       { animation-delay: 0.66s; }
.hero.is-loaded .hero__actions    { animation-delay: 0.82s; }

/* title lines are inside .hero__title (not direct children of content),
   so target them explicitly */
.js .hero__title .reveal-line { opacity: 0; transform: translateY(22px); }
.js .hero.is-loaded .hero__title .reveal-line {
  animation: heroLineIn 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

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

/* Subtle image settle on load: 1.03 -> 1 */
.js .hero__bg img { transform: scale(1.03); }
.js .hero.is-loaded .hero__bg img {
  transform: scale(1);
  transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Single light sweep */
.hero.is-loaded .hero__sweep {
  animation: heroSweep 1.5s cubic-bezier(0.3, 0, 0.2, 1) 0.35s 1 forwards;
}

@keyframes heroSweep {
  0%   { transform: translateX(-120%); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* Stats fade up once hero has loaded */
.js .hero__stats { opacity: 0; transform: translateY(16px); }
.js .hero.is-loaded .hero__stats {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
}

/* ── Hero responsive ── */
@media (max-width: 1024px) {
  .hero__overlay {
    background:
      linear-gradient(
        90deg,
        rgba(5, 9, 14, 0.92) 0%,
        rgba(5, 9, 14, 0.80) 46%,
        rgba(5, 9, 14, 0.5) 78%,
        rgba(5, 9, 14, 0.32) 100%
      ),
      linear-gradient(to top, var(--bg-deep) 0%, rgba(5, 9, 14, 0) 34%);
  }

  .hero__spindle { left: 70%; }
}

@media (max-width: 768px) {
  .hero__bg img {
    object-position: 66% 42%;   /* keep the machine subject in view */
  }

  .hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(5, 9, 14, 0.62) 0%,
        rgba(5, 9, 14, 0.78) 55%,
        rgba(5, 9, 14, 0.92) 100%
      ),
      linear-gradient(90deg, rgba(5, 9, 14, 0.55) 0%, rgba(5, 9, 14, 0.2) 100%);
  }

  .hero__content {
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: 3rem;
    max-width: 100%;
  }

  /* Reduce parallax intensity + hide moving spindle marker on small screens */
  .hero__spindle { display: none; }

  .stat { padding: 1.6rem 1rem; }
}

@media (max-width: 480px) {
  .hero__title-2 { font-size: 0.7em; }
  .hero__desc { font-size: 1.05rem; }
}

/* ── Respect reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .js .hero__content .reveal-line,
  .js .hero__title .reveal-line,
  .js .hero__stats {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .hero__bg img,
  .js .hero.is-loaded .hero__bg img { transform: scale(1); transition: none; }
  .hero__sweep,
  .hero.is-loaded .hero__sweep { display: none; }
  .hero__media { transform: none !important; }
  .hero__spindle { transform: translate(-50%, -50%) !important; }
  .hero__marker { opacity: 0.62 !important; transition: none; }
  .hero__spindle-glow { opacity: 0.6 !important; transition: none; }
}

/* ══════════════════════════════════════════════
   TOUCH / COARSE-POINTER FALLBACKS
   Cues that rely on :hover on desktop are made
   readable/accessible where there is no hover.
   ══════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  /* Equipment tiles: names/brands brighten on hover — keep them fully legible */
  .equipment-tile__name { color: #fff; }
  .equipment-tile__brand { color: var(--steel); }

  /* Gallery: images zoom/overlay on hover; give a persistent tappable hint */
  .gallery__item::after { opacity: 0.28; }

  /* Services strip already shows every description when stacked on mobile;
     panoge titles are bright by default — nothing hidden behind hover there. */
}
