/* ==========================================================================
   Kovis Livarna Kiosk
   Design canvas: 3840 x 2160 (scaled to viewport via JS)
   ========================================================================== */

:root {
  --bg:            #00121b;
  --cyan:          #0abcf9;
  --cyan-soft:     rgba(10, 188, 249, 0.2);
  --cyan-border:   rgba(150, 220, 255, 0.2);
  --ice:           #96dcff;
  --ice-strong:    rgba(150, 220, 255, 1);
  --blue:          #1f5afb;
  --blue-shadow:   rgba(31, 90, 251, 0.4);
  --blue-ring:     rgba(10, 188, 249, 0.5);
  --muted:         #a3a3ad;
  --white:         #ffffff;

  --font-display:  'azo-sans-web', system-ui, sans-serif;
  --font-ui:       'azo-sans-web', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--white);
  font-family: var(--font-display);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
}

a { text-decoration: none; color: inherit; cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: none; }

/* -------------------------------------------------------------------------- */
/* Stage / scaled canvas                                                      */
/* -------------------------------------------------------------------------- */

.stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.canvas {
  position: relative;
  width: 3840px;
  height: 2160px;
  overflow: hidden;
  background: var(--bg);
  transform-origin: center center;
  /* --scale set by JS on resize */
  transform: scale(var(--scale, 1));
  flex: none;
}

/* -------------------------------------------------------------------------- */
/* Screens                                                                    */
/* -------------------------------------------------------------------------- */

.screen {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 0;
}
.screen.is-active {
  display: block;
  z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* Screensaver / idle attract loop                                            */
/* -------------------------------------------------------------------------- */

.screensaver {
  position: absolute;
  inset: 0;
  z-index: 9999;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}
.screensaver.is-active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
.screensaver__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* Logo + CTA positions copied from Figma node 468-1671 (3840 × 2160 canvas) */
.screensaver__logo {
  position: absolute;
  top: 409px;
  left: 1266px;
  width: 1274px;
  height: 188px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.screensaver__cta {
  position: absolute;
  top: 1476px;
  left: 1156px;
  width: 1440px;
  margin: 0;
  font-family: 'Space Grotesk', var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -1px;
  color: #fff;
  text-align: center;
  pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* Background layers                                                          */
/* -------------------------------------------------------------------------- */

.bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/bg-home.png');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.bg-video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  background: var(--bg);
}
.bg-video--blur {
  filter: blur(50px) brightness(0.7);
  transform: scale(1.05);
}
/* pre-blurred asset — avoids runtime GPU blur on a 4K surface */
.bg-glow {
  background-image: url('assets/bg-glow.jpg');
}
.bg-glow--dim {
  opacity: 0.4;
}
/* Warm amber glow used behind the industry detail (Figma asset). */
.bg-glow--orange {
  background-color: #00121b;
  background-image: url('assets/bg-glow-orange.jpg');
}
.bg-home-new {
  background-image: url('assets/bg-home-new.png');
}
.bg-video--foundry {
  filter: blur(30px) brightness(0.55) saturate(0.9);
  transform: scale(1.05);
}

/* -------------------------------------------------------------------------- */
/* Logo                                                                       */
/* -------------------------------------------------------------------------- */

.logo-bar {
  position: absolute;
  top: 0;
  left: 0;
  padding: 100px;
  z-index: 20;
}
.logo-img {
  display: block;
  width: 600px;
  height: 89px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 59px;
  width: 400px;
  color: var(--white);
}
.logo__mark {
  width: 44px;
  height: 44px;
  flex: none;
}
.logo__word {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 1.5px;
  font-weight: 400;
  line-height: 1;
}
.logo__word b {
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* -------------------------------------------------------------------------- */
/* Back button (top-right by default, bottom-left variant)                    */
/* -------------------------------------------------------------------------- */

.back-btn {
  position: absolute;
  top: 80px;
  right: 80px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 40px 120px 40px 80px;
  border: 0.25px solid rgba(255, 255, 255, 0.25);
  border-radius: 1000px;
  color: var(--ice);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 6.1px;
  text-transform: uppercase;
  line-height: 1;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  transition: background .2s ease, box-shadow .2s ease;
}
.back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 40px rgba(10, 188, 249, 0.4);
}
.back-btn__icon {
  width: 48px;
  height: 48px;
  transform: rotate(180deg);
}
.back-btn--bottom {
  top: auto;
  right: auto;
  bottom: 80px;
  left: 80px;
}
.back-btn--cyan {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 2px solid #8DDFFB;
  color: #8DDFFB;
}
.back-btn--cyan:hover {
  background: rgba(141, 223, 251, 0.08);
  box-shadow: none;
}

/* -------------------------------------------------------------------------- */
/* Typography: eyebrow / title / body                                         */
/* -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 60px;
  line-height: 60px;
  letter-spacing: -1px;
  color: var(--ice);
  text-transform: uppercase;
}
.eyebrow--small {
  font-size: 30px;
  letter-spacing: -1px;
}

.info-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 120px;
  line-height: 140px;
  letter-spacing: -6px;
  color: var(--white);
}

.info-body {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -1px;
  color: var(--ice);
}
.info-body p {
  margin: 0 0 60px;
}
.info-body p:last-child { margin-bottom: 0; }
.info-body__strong {
  font-weight: 700;
}
.info-body--white {
  color: var(--white);
}
.info-body--light {
  font-weight: 300;
}

/* Industry-detail key highlights block */
.highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 980px;
}
.eyebrow--cyan {
  color: #96dcff;
  letter-spacing: 6px;
}
.highlights-list {
  list-style: disc;
  padding-left: 54px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: -1px;
  color: var(--white);
}
.highlights-list li { margin: 0; }

/* Product specs table — shown on product detail pages */
.product-specs {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding-top: 40px;
}
.product-specs[hidden] { display: none; }
.product-specs__row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(215, 219, 223, 0.35);
}
.product-specs__row--last {
  border-bottom: 1px solid rgba(215, 219, 223, 0.35);
}
.product-specs__label {
  flex: 0 0 320px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 44px;
  letter-spacing: 6px;
  color: #D7DBDF;
  text-transform: uppercase;
  margin: 0;
}
.product-specs__value {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: -1px;
  color: var(--white);
  margin: 0;
}
/* "Advantages" body wraps and uses regular weight, not bold */
.product-specs__row--last .product-specs__value {
  font-weight: 400;
}

/* Mode-based visibility on the industry detail screen */
[data-screen="industry"][data-mode="product"] .industry-content,
[data-screen="industry"][data-mode="product"] .industry-hologram { display: none !important; }
[data-screen="industry"][data-mode="industry"] .product-specs,
[data-screen="industry"][data-mode="industry"] .product-controls { display: none !important; }

/* Bottom-center pause / reset view buttons */
.product-controls {
  position: absolute;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  z-index: 20;
}
.product-controls[hidden] { display: none; }
.product-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 32px 80px 32px 60px;
  border: 2px solid #8DDFFB;
  border-radius: 1000px;
  background: transparent;
  color: #8DDFFB;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 6.1px;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.product-control-btn:hover {
  background: rgba(141, 223, 251, 0.08);
}
.product-control-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
}

/* -------------------------------------------------------------------------- */
/* HOME                                                                       */
/* -------------------------------------------------------------------------- */

.home-content {
  position: absolute;
  left: 620px;
  top: 334px;
  width: 2600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 180px;
  z-index: 10;
}

.home-hero {
  width: 1440px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  text-align: center;
}

.home-title {
  margin: 0;
  width: 1800px;
  align-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 160px;
  line-height: 148px;
  letter-spacing: -8px;
  color: var(--white);
}

.home-subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -1px;
  color: var(--white);
}

.home-buttons {
  width: 100%;
  display: flex;
  gap: 200px;
  align-items: center;
  justify-content: center;
}

/* -- Big pill button (home CTAs) — Figma frosted gradient -- */
.pill-big {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 61px;
  width: 1200px;
  height: 480px;
  padding: 120px;
  border-radius: 1000px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(215, 219, 223, 0.8) 9.4%, rgba(233, 67, 38, 0) 100%),
    linear-gradient(90deg, rgba(185, 209, 219, 0.2) 0%, rgba(185, 209, 219, 0.2) 100%);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition: transform .25s ease, filter .25s ease;
}
.pill-big > * { position: relative; z-index: 1; }
.pill-big:hover {
  transform: translateY(-4px);
  filter: brightness(1.05);
}

.pill-big__label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 6.1px;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.pill-big__icon {
  flex: none;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.pill-big__icon svg {
  width: 48px;
  height: 48px;
}

/* -- Top-right cyan-bordered pill ("Explore Kovis Group") -- */
.pill-link {
  position: absolute;
  top: 95px;
  right: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 32px 80px 32px 60px;
  border: 2px solid #8DDFFB;
  border-radius: 97.654px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 6.1px;
  line-height: 24px;
  text-transform: uppercase;
  color: #8DDFFB;
  white-space: nowrap;
  z-index: 20;
}

/* -- Stats row -- */
.stats {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 160px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}
.stat {
  width: 400px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 80px;
  line-height: 80px;
  letter-spacing: -4px;
  color: var(--white);
}
.stat__label {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 40px;
  letter-spacing: 2.8px;
  color: var(--white);
}
.stat__divider {
  width: 1px;
  height: 120px;
  background: rgba(255, 255, 255, 0.25);
  align-self: center;
}

/* -------------------------------------------------------------------------- */
/* Info panel (Foundry + Industries right column)                             */
/* -------------------------------------------------------------------------- */

.info-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 80px;
  z-index: 10;
}
.info-panel--right {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1920px;
  padding-left: 20px;
  padding-right: 200px;
}

/* -------------------------------------------------------------------------- */
/* Industries — left pill list                                                */
/* -------------------------------------------------------------------------- */

.industry-list {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}
.industry-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 200px;
  padding: 60px 120px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.25px solid rgba(255, 255, 255, 0.25);
  border-radius: 0 1000px 1000px 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  transition: background .25s ease, transform .25s ease, filter .25s ease;
}
.industry-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(20px);
  filter: drop-shadow(50px 0 100px rgba(31, 90, 251, 0.8));
}
.industry-pill__num {
  font-size: 20px;
  letter-spacing: 6.1px;
  opacity: .75;
}
.industry-pill__name {
  margin-top: 14px;
  font-size: 40px;
  letter-spacing: 6.1px;
}

/* -------------------------------------------------------------------------- */
/* Railway                                                                    */
/* -------------------------------------------------------------------------- */

.product-list {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 603px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}
.product-pill {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 160px;
  padding: 0 120px 0 40px;
  background:
    linear-gradient(90deg, rgba(215, 219, 223, 0.8) 9.4%, rgba(233, 67, 38, 0) 100%),
    linear-gradient(90deg, rgba(185, 209, 219, 0.2) 0%, rgba(185, 209, 219, 0.2) 100%);
  border: 2px solid var(--cyan-border);
  border-radius: 0 1000px 1000px 0;
  color: var(--white);
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.product-pill:hover {
  transform: translateX(16px);
  filter: brightness(1.05);
}
.product-pill.is-active {
  background:
    linear-gradient(90deg, rgba(141, 223, 251, 1) 0%, rgba(141, 223, 251, 1) 100%),
    linear-gradient(90deg, rgba(215, 219, 223, 0.8) 9.4%, rgba(233, 67, 38, 0) 100%),
    linear-gradient(90deg, rgba(185, 209, 219, 0.2) 0%, rgba(185, 209, 219, 0.2) 100%);
  color: #000;
  border-color: var(--ice);
  box-shadow: 0 0 80px rgba(10, 188, 249, 0.25);
}
.product-pill.is-active .product-pill__name { color: #000; }
.product-pill__thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}
.product-pill__name {
  font-size: 32px;
  letter-spacing: 6.1px;
  font-weight: 400;
}

/* Railway hub uses the same product-pill style as the industry detail
   page, but with the wider 949px menu shown in Figma 807-2482 so the
   "Gearbox & Stator Housings" label fits on one line. */
.product-list--railway-hub { width: 949px; }

/* 3D viewer — positioned in the Figma "model" slot between the product
   pills (left) and the info panel (right), not centered on the full canvas. */
.casting-viewer {
  position: absolute;
  left: 603px;
  top: 0;
  width: 2037px;
  height: 2160px;
  z-index: 5;
}
.casting-viewer__mv {
  width: 100%;
  height: 100%;
  display: block;
  background-color: transparent;
  --poster-color: transparent;
  --progress-bar-color: rgba(10, 188, 249, 0.7);
  --progress-bar-height: 3px;
  /* subtle cyan halo around the model */
  filter: drop-shadow(0 0 180px rgba(10, 188, 249, 0.22));
}
.industry-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 200px;
  pointer-events: none;
  background: transparent;
  filter: drop-shadow(0 0 180px rgba(10, 188, 249, 0.22));
}
/* Hologram video sits at the screen level (not inside .casting-viewer)
   so its `screen` blend can reach the bg-glow behind it. It fills the
   full 3840×2160 canvas so the subject renders at its natural size in
   the file — pills, info panel, logo, and back button overlay on top
   via higher z-index, and the video's black pixels go transparent under
   `mix-blend-mode: screen`. */
.industry-hologram {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  background: transparent;
  z-index: 4;
  mix-blend-mode: screen;
  transform: translateX(-260px) scale(0.9);
  transform-origin: center center;
}
.industry-preview[hidden],
.industry-hologram[hidden] { display: none; }
.casting-viewer__mv[hidden] { display: none; }

/* + markers overlaid on the 3D viewer */
.plus-marker {
  position: absolute;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--blue-ring);
  box-shadow: 0 20px 40px var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.plus-marker:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 60px var(--blue), 0 0 80px rgba(10, 188, 249, 0.5);
}
.plus-marker svg {
  width: 48px;
  height: 48px;
}

/* Industry info column (right, narrower) */
.info-panel--railway {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1200px;
  padding-left: 20px;
  padding-right: 200px;
  gap: 80px;
}
.info-panel--railway .eyebrow--small {
  letter-spacing: 6px;
}
.info-panel--railway .info-title {
  font-size: 120px;
  line-height: 140px;
}

/* Player controls at bottom center */
.player-controls {
  position: absolute;
  left: 50%;
  top: 1980px;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  z-index: 15;
}
.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 32px 80px 32px 60px;
  border: 2px solid var(--cyan);
  border-radius: 1000px;
  color: var(--ice);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 6.1px;
  text-transform: uppercase;
  line-height: 1;
  background: rgba(0, 18, 27, 0.4);
  transition: background .2s ease;
}
.ctrl-btn:hover { background: rgba(10, 188, 249, 0.15); }
.ctrl-btn svg { width: 24px; height: 24px; }

/* Toggle between pause and play glyphs based on button state */
.ctrl-btn[data-state="playing"] .ctrl-btn__icon--play  { display: none; }
.ctrl-btn[data-state="paused"]  .ctrl-btn__icon--pause { display: none; }

/* -------------------------------------------------------------------------- */
/* FOUNDRY — left list of stages                                              */
/* -------------------------------------------------------------------------- */

.foundry-list {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}
.foundry-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 120px;
  background:
    linear-gradient(90deg, rgba(215, 219, 223, 0.8) 9.4%, rgba(233, 67, 38, 0) 100%),
    linear-gradient(90deg, rgba(185, 209, 219, 0.2) 0%, rgba(185, 209, 219, 0.2) 100%);
  border: 2px solid rgba(185, 209, 219, 0.2);
  border-radius: 0 1000px 1000px 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition: transform .25s ease, filter .25s ease;
}
a.foundry-pill:hover {
  transform: translateX(20px);
  filter: brightness(1.05);
}
.foundry-pill--disabled {
  opacity: 0.55;
  cursor: default;
}
.foundry-pill__num {
  font-size: 20px;
  line-height: 20px;
  letter-spacing: 6.1px;
}
.foundry-pill__name {
  margin-top: 20px;
  font-size: 40px;
  line-height: 60px;
  letter-spacing: 6.1px;
}

/* Foundry right info panel — vertically centered */
.info-panel--foundry {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1920px;
  padding-left: 20px;
  padding-right: 200px;
}

/* Foundry — big right-side title above schema */
.foundry-title {
  position: absolute;
  top: 220px;
  right: 200px;
  width: 1700px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 120px;
  line-height: 140px;
  letter-spacing: -6px;
  color: var(--white);
  z-index: 11;
}

/* Foundry — isometric schema layered on the right with floating labels */
.schema-stage {
  position: absolute;
  left: 1501px;
  top: 786px;
  width: 2196px;
  height: 1237px;
  z-index: 10;
}
.schema-stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  pointer-events: none;
}
.schema-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 6.1px;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  pointer-events: none;
}

/* Bottom-center certificates / where-we-are buttons */
.foundry-bottom {
  position: absolute;
  left: 50%;
  top: 1980px;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  z-index: 15;
}
.small-pill {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 32px 80px 32px 60px;
  border: 0.25px solid rgba(255, 255, 255, 0.25);
  border-radius: 1000px;
  color: var(--ice);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 6.1px;
  text-transform: uppercase;
  line-height: 1;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  transition: background .2s ease, box-shadow .2s ease;
}
.small-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 40px rgba(10, 188, 249, 0.3);
}
.small-pill__icon {
  width: 48px;
  height: 48px;
  flex: none;
}
.small-pill--cyan {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 2px solid #8DDFFB;
  color: #8DDFFB;
}
.small-pill--cyan:hover {
  background: rgba(141, 223, 251, 0.08);
  box-shadow: none;
}

/* -------------------------------------------------------------------------- */
/* Detail screens (Development & Technology / Pattern Shop)                   */
/* -------------------------------------------------------------------------- */

.bg-detail {
  background-size: cover;
  background-position: center;
}
.bg-detail::before,
.bg-detail::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bg-detail::before {
  background: #00121b;
  opacity: 0.8;
}
.bg-detail::after {
  background: rgba(31, 90, 251, 0.1);
}
.bg-detail--dev    { background-image: url('assets/foundry/dev-tech-bg.jpg'); }
.bg-detail--pattern{ background-image: url('assets/foundry/pattern-shop-bg.jpg'); }
.bg-detail--coreshop { background-image: url('assets/foundry/core-shop-bg.png'); }
.bg-detail--melting { background-image: url('assets/foundry/melting-bg.png'); }
.bg-detail--moulding { background-image: url('assets/foundry/moulding-line-bg.png'); }
.bg-detail--cleaning { background-image: url('assets/foundry/cleaning-painting-bg.png'); }
.bg-detail--quality  { background-image: url('assets/foundry/quality-control-bg.png'); }
.bg-detail--sustainability { background-image: url('assets/sustainability/sustainability-bg.png'); }
.bg-detail--kovis-doo { background-image: url('assets/group/kovis-doo-bg.png'); }
.bg-detail--kovis-livarna-group { background-image: url('assets/group/kovis-livarna-group-bg.png'); }
.bg-detail--kovis-bp { background-image: url('assets/group/kovis-bp-bg.png'); }
.bg-detail--kovis-transporti { background-image: url('assets/group/kovis-transporti-bg.png'); }
.bg-detail--jwl-kovis { background-image: url('assets/group/jwl-kovis-bg.png'); }
/* Detail pages: black knockdown over the photo + 30% molten-orange wash */
.bg-detail--dev::before,
.bg-detail--coreshop::before,
.bg-detail--melting::before,
.bg-detail--moulding::before,
.bg-detail--cleaning::before,
.bg-detail--quality::before,
.bg-detail--sustainability::before,
.bg-detail--kovis-doo::before,
.bg-detail--kovis-livarna-group::before,
.bg-detail--kovis-bp::before,
.bg-detail--kovis-transporti::before,
.bg-detail--jwl-kovis::before {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
}
.bg-detail--quality::before {
  background: rgba(0, 0, 0, 0.4);
}
.bg-detail--dev::after,
.bg-detail--coreshop::after,
.bg-detail--melting::after,
.bg-detail--moulding::after,
.bg-detail--cleaning::after,
.bg-detail--quality::after,
.bg-detail--sustainability::after,
.bg-detail--kovis-doo::after,
.bg-detail--kovis-livarna-group::after,
.bg-detail--kovis-bp::after,
.bg-detail--kovis-transporti::after,
.bg-detail--jwl-kovis::after {
  background: url('assets/foundry/sub-detail-bg.png') center / cover no-repeat;
  opacity: 0.3;
}

/* Sub-detail bg (3D printing / Pattern shop) — molten gradient w/ 20% black */
.bg-sub-detail {
  position: absolute;
  inset: 0;
  background: #000 url('assets/foundry/sub-detail-bg.png') center / cover no-repeat;
  pointer-events: none;
}
.bg-sub-detail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* Left-side hero image */
.detail-hero {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1920px;
  padding: 0 320px;
  z-index: 10;
}
.detail-hero img {
  width: 100%;
  aspect-ratio: 1200 / 800;
  object-fit: cover;
  border-radius: 60px;
  display: block;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}

/* Dev-tech gallery: two overlapping image cards + pager arrows */
.detail-gallery {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1920px;
  padding: 0 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  z-index: 10;
}
.detail-gallery__cards {
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-card {
  position: relative;
  border-radius: 60px;
  overflow: hidden;
}
.detail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-card--small {
  width: 900px;
  height: 600px;
  margin-right: -820px;
}
.detail-card--main {
  width: 1200px;
  height: 800px;
  box-shadow: -40px 40px 80px rgba(0, 0, 0, 0.33);
}
.detail-card__tint {
  position: absolute;
  inset: 0;
  background: rgba(10, 188, 249, 0.1);
  border-radius: 60px;
  pointer-events: none;
}
.detail-gallery__pager {
  display: flex;
  align-items: center;
  gap: 60px;
  color: var(--white);
  opacity: 0.6;
}
.detail-gallery__pager-icon {
  width: 80px;
  height: 80px;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.detail-gallery__pager-icon:hover {
  opacity: 1;
  transform: scale(1.08);
}
.detail-gallery__cards {
  touch-action: pan-y;
  user-select: none;
}
.detail-card img {
  transition: opacity .35s ease;
}
.detail-card.is-swapping img {
  opacity: 0;
}

/* Right-side text column */
.detail-content {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1920px;
  padding-left: 20px;
  padding-right: 200px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  z-index: 10;
}
.detail-content__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-content .eyebrow--small {
  font-size: 30px;
  line-height: 60px;
  letter-spacing: 6px;
}
.detail-content .info-title {
  font-size: 120px;
  line-height: 140px;
  letter-spacing: -6px;
}
.eyebrow-cyan {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 60px;
  letter-spacing: 6px;
  color: #96dcff;
  text-transform: uppercase;
}
.detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 120px;
  line-height: 140px;
  letter-spacing: -6px;
  color: var(--white);
}

/* Bullet list */
.detail-list {
  margin: 0;
  padding-left: 60px;
  list-style: disc outside;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 60px;
  letter-spacing: -1px;
  width: 1440px;
}
.detail-list li { margin-bottom: 0; }
.detail-list li::marker { color: var(--white); }
.detail-list strong {
  font-weight: 700;
}
.detail-list--lg {
  font-size: 48px;
  line-height: 60px;
  padding-left: 72px;
  width: 1440px;
}

/* Sub-detail two-column layout (3D printing / Pattern Shop) */
.sub-detail-photo {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1600px;
  overflow: hidden;
  z-index: 5;
}
.sub-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sub-detail-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 51%, rgba(0,0,0,0.5) 88%),
    rgba(10, 188, 249, 0.1);
  pointer-events: none;
}

.sub-detail-content .detail-content__head {
  gap: 20px;
}
.sub-detail-body {
  margin: 0;
  width: 1440px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -1px;
  color: var(--white);
}

.sub-detail-image {
  position: relative;
  width: 1200px;
  height: 800px;
  border-radius: 60px;
  overflow: hidden;
}
.sub-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sub-detail-image__tint {
  position: absolute;
  inset: 0;
  background: rgba(10, 188, 249, 0.1);
  pointer-events: none;
}
.sub-detail-image--clickable {
  display: block;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.sub-detail-image--clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(10, 188, 249, 0.25);
}

/* Play-video pill (cyan filled) used on subpages that link to a video screen */
.play-pill {
  position: absolute;
  bottom: 80px;
  left: 1960px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 20px 20px 20px 60px;
  border-radius: 1000px;
  background: #8DDFFB;
  color: #000;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  line-height: 1;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.play-pill:hover {
  background: #b6ebff;
  box-shadow: 0 0 40px rgba(141, 223, 251, 0.5);
}
.play-pill:active { transform: scale(0.98); }
.play-pill__label { white-space: nowrap; }
.play-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  flex: none;
}
.play-pill__icon svg { width: 32px; height: 32px; }

/* Fullscreen video stage (e.g. Robot Cleaning → Play video) */
.video-stage {
  position: absolute;
  left: 41px;
  top: 49px;
  width: 3743px;
  height: 2048px;
  border-radius: 60px;
  overflow: hidden;
  background: #000;
  z-index: 5;
}
.video-stage__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.video-stage__tint {
  position: absolute;
  inset: 0;
  background: rgba(10, 188, 249, 0.1);
  pointer-events: none;
}

/* Quality Control — body composition (intro + 3-stage list) */
.qc-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 1440px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 60px;
  letter-spacing: -1px;
  color: var(--white);
}
.qc-body__intro {
  margin: 0;
}
.qc-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qc-stage__title {
  font-weight: 700;
}
.qc-stage__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: qc-step;
}
.qc-stage__list li {
  counter-increment: qc-step;
}
.qc-stage__list li::before {
  content: counter(qc-step) ".  ";
}

/* Inspections — 2-column grid of bold-headed paragraphs */
.inspections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 80px;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -1px;
  color: var(--white);
}
.inspections-cell strong {
  font-weight: 700;
}

/* Certificates — chip-wrap */
.cert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  width: 100%;
}
.cert-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -1px;
  color: var(--white);
  white-space: nowrap;
}

/* Certificates — document preview gallery (one or more cert PDFs/JPGs) */
.cert-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 80px;
  width: 445px;
}
.cert-viewer__frame {
  width: 445px;
  height: 630px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-viewer__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cert-viewer__caption {
  width: 445px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  color: var(--ice);
  min-height: 32px;
}
.cert-viewer__pager {
  display: inline-flex;
  align-items: center;
  gap: 40px;
}
.cert-viewer__count {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  min-width: 80px;
  text-align: center;
}
.cert-viewer__arrow {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: transform .15s ease, color .15s ease;
}
.cert-viewer__arrow:hover { color: var(--ice); transform: scale(1.08); }
.cert-viewer__arrow svg { width: 48px; height: 48px; }
.cert-viewer__arrow[disabled] { opacity: 0.35; cursor: default; transform: none; }

/* Stats row with vertical dividers */
.detail-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}
.detail-stats__divider {
  width: 1px;
  align-self: stretch;
  min-height: 180px;
  background: rgba(150, 220, 255, 0.35);
}
.detail-stat {
  width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-stat--wide {
  width: 1200px;
  text-align: left;
}
.detail-stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -4px;
  color: var(--ice);
}
.detail-stat__unit {
  font-size: 48px;
  letter-spacing: -2px;
}
.detail-stat__label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: 2.8px;
  color: #d7dbdf;
}
.detail-stat__label--prose {
  text-transform: none;
  letter-spacing: 0;
  font-size: 28px;
  line-height: 36px;
}

/* Dev-tech: "3D printing" / "Pattern Shop" follow-up cards */
.more-row {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding: 40px 0;
}
.more-row--single {
  justify-content: center;
}
.more-grid {
  display: grid;
  grid-template-columns: 711px 711px;
  gap: 80px;
  padding: 40px 0;
}

/* ----- Kovis Group main page ----- */
.kovis-map {
  position: absolute;
  left: -1007px;
  top: 399px;
  width: 2784px;
  height: 1568px;
  object-fit: cover;
  opacity: 0.75;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 5;
}
.map-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 32px 80px 32px 60px;
  border: 2px solid #8DDFFB;
  border-radius: 1000px;
  background: rgba(0, 0, 0, 0.4);
  color: #8DDFFB;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 6.1px;
  line-height: 24px;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 15;
}
.map-pin__icon {
  width: 48px;
  height: 48px;
  flex: none;
}
.kovis-group-pins--top {
  position: absolute;
  left: 880.5px;
  top: 517px;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  z-index: 15;
}
.kovis-group-pins--top .map-pin {
  position: static;
}
.map-pin--bp  { left: 132px; top: 1681px; }
.map-pin--jwl { left: 537px; top: 1678px; }

/* Sub-page head variant: title first, location subtitle below */
.detail-content__head--reversed {
  flex-direction: column;
  gap: 20px;
}
.detail-location {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 60px;
  letter-spacing: 6px;
  color: #96dcff;
}
.more-card {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.more-card--wide {
  width: 1200px;
}
.more-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -4px;
  color: var(--white);
}
.more-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 61px;
  padding: 20px 20px 20px 60px;
  background: #8DDFFB;
  color: #000;
  border-radius: 1000px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 32px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  transition: filter .2s ease, transform .2s ease;
}
.more-pill:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.more-pill__icon {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.more-pill__icon svg {
  width: 32px;
  height: 32px;
}

