/* ==========================================================================
   Laser Tech Systems and Solutions — v2 layer
   Loaded after style.css; overrides + new components for the rebuilt site.
   ========================================================================== */

:root {
  --font-head: "Space Grotesk", "Barlow Condensed", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cyan: #35e0ff;
  --amber: #ffb020;
  --footer-bg: #f2f3f5;
  --footer-ink: #2a2d33;
}

h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.02em; text-transform: none; }
h1 { font-weight: 700; }
h2 { font-weight: 700; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

/* ---------------- Top bar + Nav ---------------- */
.topbar { background: var(--ink); font-size: 0.8rem; }
.topbar .container { height: 40px; }

.navbar { height: 96px; }
.brand img { height: 62px; }                 /* item 1: larger logo */
@media (max-width: 900px) { .brand img { height: 48px; } .navbar { height: 76px; } }

.nav-links {
  font-family: var(--font-head);             /* item 2: new nav font */
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  gap: 26px;
}

/* dropdown */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-item.has-menu > a::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}
.nav-item.has-menu:hover > a::after { transform: rotate(225deg) translateY(-2px); }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(11,11,12,.16);
  padding: 18px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 120;
}
.nav-item:hover .dropdown,
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown::before { content:""; position:absolute; top:-14px; left:0; right:0; height:14px; }

.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--steel);
  font-family: var(--font-body);
  white-space: nowrap;
}
.dropdown a:hover { background: #e2231a10; color: var(--red); }

/* mega menu for products */
.dropdown.mega { min-width: 720px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 20px; }
.dropdown.mega .col-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  padding: 10px 12px 4px;
  border-bottom: 1px solid var(--grey-100);
  margin-bottom: 4px;
}
.dropdown.mega .col { break-inside: avoid; }

@media (max-width: 900px) {
  .dropdown, .dropdown.mega {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0;
    display: block; background: transparent;
  }
  .nav-item.has-menu > a::after { margin-left: auto; }
  .dropdown a { padding: 8px 0; font-size: 0.9rem; }
  .dropdown.mega .col-title { padding-left: 0; }
}

/* ---------------- Hero (items 4,5) ---------------- */
.hero-v2 {
  position: relative;
  background: radial-gradient(120% 120% at 15% 10%, #16181f 0%, #0a0b0f 55%, #050609 100%);
  color: #fff;
  overflow: hidden;
  padding: 92px 0 0;
}
.hero-v2::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 620px; height: 620px;
  right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(226,35,26,.35), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  animation: heroGlow 9s ease-in-out infinite alternate;
}
@keyframes heroGlow { from { transform: translate3d(0,0,0) scale(1); opacity:.75 } to { transform: translate3d(-50px,40px,0) scale(1.14); opacity:1 } }

.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--font-head); font-weight: 600;
  color: #ffd9d5;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-bright); box-shadow: 0 0 10px 2px var(--red-bright);
  animation: sc-blink 1.4s infinite;
}
.hero-v2 h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.3rem);
  line-height: 1.03;
  margin: 20px 0 18px;
  letter-spacing: -0.035em;
}
.hero-v2 h1 .accent {
  background: linear-gradient(100deg, #fff 10%, var(--red-bright) 55%, var(--amber) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-v2 .lead { color: #ffffffb8; font-size: 1.08rem; max-width: 560px; }

/* machine collage (item 5) */
.hero-machines { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hm-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1d25, #0d0f14);
  border: 1px solid rgba(255,255,255,.09);
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .45s cubic-bezier(.16,1,.3,1), border-color .3s;
}
.hm-card:nth-child(1) { transform: translateY(-14px); }
.hm-card:nth-child(4) { transform: translateY(14px); }
.hm-card:hover { transform: translateY(-4px) scale(1.03); border-color: rgba(255,68,51,.55); }
.hm-card img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0,0,0,.5)); }
.hm-card .hm-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-family: var(--font-head); font-weight: 600;
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(0deg, rgba(5,6,9,.92), transparent);
}
.hm-card .hm-spark {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--red-bright) 45%, transparent 70%);
  opacity: 0; animation: sparkPop 4.5s ease-in-out infinite;
}
.hm-card:nth-child(2) .hm-spark { animation-delay: 1.1s; }
.hm-card:nth-child(3) .hm-spark { animation-delay: 2.2s; }
.hm-card:nth-child(4) .hm-spark { animation-delay: 3.3s; }
@keyframes sparkPop { 0%,72%,100% { opacity:0; transform:scale(.5) } 78% { opacity:1; transform:scale(1.15) } 86% { opacity:.6; transform:scale(.9) } }

/* laser sweep line across hero */
.hero-laser {
  position: absolute; left: 0; right: 0; top: 46%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-bright) 30%, #fff 50%, var(--red-bright) 70%, transparent);
  filter: blur(.4px);
  opacity: .55;
  animation: laserScan 6.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes laserScan { 0%,100% { transform: translateY(-120px) scaleX(.6); opacity:0 } 45%,55% { opacity:.7 } 50% { transform: translateY(120px) scaleX(1) } }

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* stats strip moved BELOW hero (item 6) */
.stats-band { background: #fff; border-bottom: 1px solid var(--grey-200); }
.stats-band .inner { display: grid; grid-template-columns: repeat(4,1fr); }
@media (max-width: 760px) { .stats-band .inner { grid-template-columns: repeat(2,1fr); } }
.stats-band .cell { padding: 30px 24px; border-right: 1px solid var(--grey-200); }
.stats-band .cell:last-child { border-right: 0; }
.stats-band strong {
  display:block; font-family: var(--font-head); font-weight:700;
  font-size: 2.3rem; color: var(--red); line-height:1;
}
.stats-band span { font-size: .82rem; text-transform: uppercase; letter-spacing:.07em; color: var(--grey-600); }

/* animated colour-shifting line (item 8) */
.shimmer-line {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  background: linear-gradient(90deg, var(--red) 0%, var(--amber) 25%, var(--cyan) 50%, var(--red-bright) 75%, var(--red) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmerMove 6s linear infinite;
}
@keyframes shimmerMove { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) {
  .shimmer-line { animation: none; }
  .hero-laser, .hm-card .hm-spark, .hero-glow { animation: none; }
}

/* ---------------- Carousel (item 12) ---------------- */
.carousel-wrap { position: relative; }
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 26px) / 3);
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
@media (max-width: 1000px) { .carousel { grid-auto-columns: calc((100% - 26px) / 2); } }
@media (max-width: 640px)  { .carousel { grid-auto-columns: 86%; } }

.car-btn {
  position: absolute; top: 42%; z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 1px solid var(--grey-200);
  box-shadow: 0 10px 26px rgba(11,11,12,.14);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, color .2s, transform .2s;
  color: var(--ink);
}
.car-btn:hover { background: var(--red); color: #fff; border-color: var(--red); transform: scale(1.07); }
.car-btn.prev { left: -22px; }
.car-btn.next { right: -22px; }
.car-btn svg { width: 20px; height: 20px; }
@media (max-width: 1240px) { .car-btn.prev { left: 4px; } .car-btn.next { right: 4px; } }

/* machine card in carousel */
.mcard {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
}
.mcard:hover { transform: translateY(-8px); box-shadow: 0 24px 54px rgba(11,11,12,.16); border-color: #e2231a55; }
.mcard .shot {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #f7f8fa, #eceef2);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.mcard .shot img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.mcard:hover .shot img { transform: scale(1.07) rotate(-1deg); }
.mcard .shot .cat-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink); color: #fff;
  font-family: var(--font-head); font-weight: 600;
  font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.mcard .meta { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mcard .meta h3 { font-size: 1.12rem; margin: 0; }
.mcard .meta p { font-size: .9rem; margin: 0; flex: 1; }
.mcard .go {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: 7px;
}
.mcard .go::after { content: "→"; transition: transform .25s; }
.mcard:hover .go::after { transform: translateX(5px); }

/* ---------------- Why LTSS (item 13) ---------------- */
.why-ltss {
  position: relative;
  color: #fff;
  background:
    linear-gradient(rgba(6,7,10,.86), rgba(6,7,10,.9)),
    url("../images/hero_texture.jpeg") center/cover fixed;
}
.why-ltss .fullform {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .04em;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: #fff;
}
.why-ltss .fullform b { color: var(--red-bright); }
.why-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 28px 26px;
  transition: transform .3s, background .3s, border-color .3s;
}
.why-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); border-color: rgba(255,68,51,.5); }
.why-card h4 { color: #fff; margin-bottom: 8px; }
.why-card p { color: #ffffffab; margin: 0; font-size: .93rem; }
.why-card .ic {
  width: 50px; height: 50px; border-radius: 13px;
  background: rgba(255,68,51,.16); color: var(--red-bright);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.why-card .ic svg { width: 24px; height: 24px; }

/* ---------------- Materials & Industries (items 14,15) ---------------- */
.showcase-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 980px) { .showcase-split { grid-template-columns: 1fr; } }

.picker {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: 18px;
  padding: 22px;
  min-height: 400px;
}
@media (max-width: 620px) { .picker { grid-template-columns: 1fr; } }

.picker-list { max-height: 380px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.picker-list button {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 11px 14px; border-radius: 10px;
  font-family: var(--font-body); font-size: .92rem; font-weight: 500;
  color: var(--grey-600);
  border-left: 3px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.picker-list button:hover { background: var(--grey-50); color: var(--ink); }
.picker-list button.active {
  background: #e2231a0f; color: var(--red); font-weight: 600;
  border-left-color: var(--red);
}
.picker-view { position: relative; border-radius: 14px; overflow: hidden; background: var(--grey-100); min-height: 340px; }
.picker-view img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .55s ease, transform .8s cubic-bezier(.16,1,.3,1);
}
.picker-view img.on { opacity: 1; transform: scale(1); }
.picker-view .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 22px;
  background: linear-gradient(0deg, rgba(5,6,9,.9), transparent);
  color: #fff;
}
.picker-view .cap h4 { color: #fff; margin: 0 0 4px; font-size: 1.15rem; }
.picker-view .cap p { color: #ffffffb5; margin: 0; font-size: .87rem; }

/* ---------------- Testimonials (item 16) ---------------- */
.tcard {
  background: #fff; border: 1px solid var(--grey-200);
  border-radius: 18px; padding: 30px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s, box-shadow .3s;
}
.tcard:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(11,11,12,.13); }
.tcard .quote-mark { font-family: Georgia, serif; font-size: 3rem; line-height: .6; color: #e2231a35; }
.tcard blockquote { margin: 0; font-size: .98rem; line-height: 1.62; color: var(--steel); }
.tcard .who { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.tcard .who .av {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-bright));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; flex: none;
}
.tcard .who strong { display: block; font-size: .95rem; color: var(--ink); }
.tcard .who span { font-size: .82rem; color: var(--grey-600); }

/* ---------------- Reach / map (item 17) ---------------- */
.reach {
  position: relative;
  background: linear-gradient(150deg, #0b0d12 0%, #131720 60%, #0b0d12 100%);
  color: #fff;
  overflow: hidden;
}
.reach::before {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,68,51,.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
}
.reach .container { position: relative; z-index: 2; }
.reach h2, .reach h3, .reach h4 { color: #fff; }
.reach p { color: #ffffffb0; }
.map-figure {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 26px;
}
.map-figure img { width: 100%; max-width: 420px; margin: 0 auto; display: block; filter: brightness(0) invert(1) opacity(.9); }
.state-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.state-chips span {
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  font-size: .84rem; color: #fff;
  transition: background .2s, transform .2s, border-color .2s;
}
.state-chips span:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }

/* ---------------- Footer (item 18: lighter) ---------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-top: 3px solid var(--red);
}
.site-footer h4 { color: var(--ink); }
.site-footer p, .site-footer li, .site-footer a { color: #4d525a; }
.site-footer .footer-grid { border-bottom: 1px solid #dcdfe4; }
.site-footer .footer-links a:hover { color: var(--red); }
.site-footer .brand img { height: 52px; }
.social-row a {
  border: 1px solid #ccd0d6; color: var(--footer-ink);
  background: #fff;
}
.social-row a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-bottom { color: #6c727b; border-top: 0; }

/* ---------------- Machine / product pages ---------------- */
.prod-hero { background: linear-gradient(140deg, #0a0b0f, #14171e); color: #fff; padding: 54px 0 60px; }
.prod-hero .breadcrumb { color: #ffffff8a; }
.prod-hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 10px 0 14px; }
.prod-hero p { color: #ffffffb5; }

.gallery-main {
  background: linear-gradient(160deg, #fff, #f1f3f6);
  border: 1px solid var(--grey-200);
  border-radius: 18px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  padding: 28px; overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s ease; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.thumbs button {
  width: 84px; height: 68px; border-radius: 11px;
  border: 2px solid var(--grey-200); background: #fff;
  padding: 6px; cursor: pointer; transition: border-color .2s, transform .2s;
}
.thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.thumbs button:hover { transform: translateY(-3px); }
.thumbs button.active { border-color: var(--red); }

.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .spec-list { grid-template-columns: 1fr; } }
.spec-list .row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 13px 16px; background: var(--grey-50);
  border-radius: 10px; font-size: .9rem;
}
.spec-list .row span { color: var(--grey-600); }
.spec-list .row strong { color: var(--ink); text-align: right; }

.feat-item {
  display: flex; gap: 15px; padding: 18px 0;
  border-bottom: 1px solid var(--grey-100);
}
.feat-item:last-child { border-bottom: 0; }
.feat-item .n {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: #e2231a12; color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
}
.feat-item h4 { margin: 0 0 5px; font-size: 1rem; }
.feat-item p { margin: 0; font-size: .92rem; }

.app-card {
  border: 1px solid var(--grey-200); border-radius: 16px;
  padding: 24px; background: #fff;
  transition: transform .3s, box-shadow .3s;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.app-card h4 { color: var(--red); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.app-card p { margin: 0; font-size: .92rem; }

/* process flow (technical training page) */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }
.flow-step {
  position: relative; background: #fff;
  border: 1px solid var(--grey-200); border-radius: 16px; padding: 26px 22px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.flow-step:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: var(--shadow); }
.flow-step .step-n {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; margin-bottom: 15px;
}
.flow-step:hover .step-n { background: var(--red); }
.flow-step h4 { margin: 0 0 7px; font-size: 1.02rem; }
.flow-step p { margin: 0; font-size: .89rem; }
.flow-step::after {
  content: "→"; position: absolute; right: -14px; top: 50%;
  transform: translateY(-50%); color: var(--grey-400); font-size: 1.2rem;
}
.flow-step:last-child::after { display: none; }
@media (max-width: 900px) { .flow-step::after { display: none; } }

/* gallery grid for library */
.lib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .lib-grid { grid-template-columns: repeat(2,1fr); } }
.lib-grid figure {
  margin: 0; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg,#fff,#eef0f3);
  border: 1px solid var(--grey-200);
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  padding: 16px; transition: transform .3s, box-shadow .3s;
}
.lib-grid figure:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.lib-grid img { width: 100%; height: 100%; object-fit: contain; }

/* video grid (item 11) */
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .vid-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .vid-grid { grid-template-columns: 1fr; } }
.vid-tile {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16/10; background: #0b0d12; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
}
.vid-tile video, .vid-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-tile .vlabel {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(0deg, rgba(5,6,9,.92), transparent);
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  z-index: 2;
}
.vid-tile .vplay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: opacity .3s; z-index: 2;
}
.vid-tile .vplay i {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(226,35,26,.92); display: flex; align-items: center; justify-content: center;
}
.vid-tile .vplay svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.vid-tile:hover .vplay { opacity: 0; }
.vid-tile.playing .vplay, .vid-tile.playing .vlabel { opacity: 0; }

/* section helper */
.section--light { background: var(--grey-50); }
.lead-sm { font-size: 1.02rem; color: var(--grey-600); }

/* ---------------- Hero: spacing fix + extra motion ---------------- */
/* was padding:92px 0 0 — content collided with the next section */
.hero-v2 { padding: 92px 0 86px; }
@media (max-width: 980px) { .hero-v2 { padding: 64px 0 64px; } }

/* drifting embers */
.hero-embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-embers i {
  position: absolute; bottom: -12px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px 2px rgba(255,68,51,.7);
  opacity: 0;
  animation: emberRise linear infinite;
}
@keyframes emberRise {
  0%   { transform: translateY(0) translateX(0) scale(.6); opacity: 0; }
  12%  { opacity: .9; }
  80%  { opacity: .5; }
  100% { transform: translateY(-105vh) translateX(var(--drift,20px)) scale(1.1); opacity: 0; }
}

/* rotating keyword in the headline */
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(18px) rotateX(-45deg);
  animation: rotWord 9s cubic-bezier(.16,1,.3,1) infinite;
  background: linear-gradient(100deg, #fff 5%, var(--red-bright) 55%, var(--amber) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.rotator > span:nth-child(1) { animation-delay: 0s; }
.rotator > span:nth-child(2) { animation-delay: 3s; }
.rotator > span:nth-child(3) { animation-delay: 6s; }
@keyframes rotWord {
  0%    { opacity: 0; transform: translateY(18px) rotateX(-45deg); }
  4%,30%{ opacity: 1; transform: translateY(0) rotateX(0); }
  34%   { opacity: 0; transform: translateY(-18px) rotateX(45deg); }
  100%  { opacity: 0; transform: translateY(-18px) rotateX(45deg); }
}

/* machine tiles gently float + shimmer sweep */
.hm-card { animation: tileFloat 7s ease-in-out infinite; }
.hm-card:nth-child(2) { animation-delay: .9s; }
.hm-card:nth-child(3) { animation-delay: 1.8s; }
.hm-card:nth-child(4) { animation-delay: 2.7s; }
@keyframes tileFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.hm-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: tileSheen 6s ease-in-out infinite;
  pointer-events: none;
}
.hm-card:nth-child(2)::after { animation-delay: 1.4s; }
.hm-card:nth-child(3)::after { animation-delay: 2.8s; }
.hm-card:nth-child(4)::after { animation-delay: 4.2s; }
@keyframes tileSheen { 0%,70%,100% { transform: translateX(-120%); } 85% { transform: translateX(120%); } }

/* hero trust strip */
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 30px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-trust span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .84rem; color: #ffffffa8;
}
.hero-trust svg { width: 16px; height: 16px; color: var(--red-bright); flex: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-embers, .hm-card::after { display: none; }
  .hm-card { animation: none; }
  .rotator > span { animation: none; opacity: 1; transform: none; }
  .rotator > span:not(:first-child) { display: none; }
}

/* ---------------- Application cards with sample photos ---------------- */
.app-card.has-shot { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.app-card .app-shot {
  aspect-ratio: 16/10; overflow: hidden; background: var(--grey-100);
}
.app-card .app-shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.app-card.has-shot:hover .app-shot img { transform: scale(1.07); }
.app-card .app-body { padding: 22px 24px 26px; }

/* ---------------- Machine video section ---------------- */
.video-section .showcase.vid-single { aspect-ratio: 16/9; cursor: default; }
.video-section .showcase.vid-single video { opacity: 1; position: static; }
.video-await {
  border: 2px dashed rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: 54px 30px;
  text-align: center;
  background: rgba(255,255,255,.03);
  max-width: 760px; margin: 0 auto;
}
.video-await .va-icon {
  width: 62px; height: 62px; margin: 0 auto 18px;
  border-radius: 16px; background: rgba(255,68,51,.14); color: var(--red-bright);
  display: flex; align-items: center; justify-content: center;
}
.video-await .va-icon svg { width: 30px; height: 30px; }
.video-await h4 { color: #fff; margin-bottom: 8px; }
.video-await p { color: #ffffff9e; margin: 0; font-size: .92rem; }
.video-await code {
  background: rgba(255,255,255,.1); padding: 2px 7px; border-radius: 5px;
  font-size: .86em; color: #ffd9d5;
}

/* ---------------- Hero slider (3 rotating slides) ---------------- */
.hero-slider {
  display: grid;                     /* all slides share one cell -> height = tallest */
  position: relative;
}
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateX(60px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1),
              transform .6s cubic-bezier(.16,1,.3,1),
              visibility .6s;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.hero-slide.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: translateX(-60px);
}

/* stagger the copy as a slide enters */
.hero-slide .hero-copy > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.hero-slide.is-active .hero-copy > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-copy > *:nth-child(1) { transition-delay: .08s; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { transition-delay: .15s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { transition-delay: .22s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { transition-delay: .29s; }

.hero-slide .hm-card { opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); animation: none; }
.hero-slide.is-active .hm-card { opacity: 1; transform: none; animation: tileFloat 7s ease-in-out infinite; }
.hero-slide.is-active .hm-card:nth-child(1) { transition-delay: .12s; }
.hero-slide.is-active .hm-card:nth-child(2) { transition-delay: .19s; animation-delay: .9s; }
.hero-slide.is-active .hm-card:nth-child(3) { transition-delay: .26s; animation-delay: 1.8s; }
.hero-slide.is-active .hm-card:nth-child(4) { transition-delay: .33s; animation-delay: 2.7s; }

/* controls row: dots + trust strip */
.hero-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-controls .hero-trust { margin-top: 0; padding-top: 0; border-top: 0; }

.hero-dots { display: flex; gap: 10px; align-items: center; flex: none; }
.hero-dot {
  position: relative;
  width: 46px; height: 5px;
  border: 0; padding: 0; cursor: pointer;
  border-radius: 99px;
  background: rgba(255,255,255,.2);
  overflow: hidden;
  transition: background .3s;
}
.hero-dot:hover { background: rgba(255,255,255,.34); }
.hero-dot .dot-fill {
  position: absolute; inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  border-radius: 99px;
}
.hero-dot.is-active .dot-fill { width: 100%; transition: width var(--fill-ms, 6000ms) linear; }
.hero-dot.is-active.no-anim .dot-fill { transition: none; width: 100%; }

@media (max-width: 700px) {
  .hero-controls { flex-direction: column; align-items: flex-start; }
  .hero-dot { width: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide .hero-copy > *, .hero-slide .hm-card { transition: none; }
  .hero-dot.is-active .dot-fill { transition: none; }
}
