/* Homepage (site/build/build-home.mjs; owner grilling session 24 Nov 2026). Loads after vendor.css and customers.css. */

/* ---------- hero carousel ---------- */
.hero-carousel { position: relative; background: var(--ink); color: var(--fg-dark); overflow: hidden; }
.slides { position: relative; height: clamp(540px, 74vh, 760px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 15, 28, .94) 0%, rgba(10, 15, 28, .82) 38%, rgba(10, 15, 28, .25) 72%, rgba(10, 15, 28, .1) 100%); }
.slide-copy { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding-bottom: 72px; }
.slide-label { font-family: var(--f-display); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.slide-title { font-size: clamp(34px, 4.6vw, 62px); font-weight: 700; line-height: 1.18; letter-spacing: 0; max-width: 15em; text-wrap: balance; margin: 0; }
.slide-text { font-size: 18px; color: #C9D3E1; max-width: 34em; margin: 0; }
.carousel-ui { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dots { display: flex; gap: 10px; }
.dot { width: 44px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; align-items: center; }
.dot span { display: block; height: 4px; border-radius: 2px; background: rgba(244, 247, 251, .35); overflow: hidden; position: relative; }
.dot[aria-current="true"] span { background: rgba(244, 247, 251, .35); }
.dot[aria-current="true"] span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: dot-fill var(--slide-ms, 6000ms) linear forwards; }
.hero-carousel.is-paused .dot[aria-current="true"] span::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.arrows { display: flex; gap: 8px; }
.c-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(244, 247, 251, .45); background: rgba(10, 15, 28, .45); color: var(--fg-dark); display: grid; place-items: center; cursor: pointer; }
.c-btn:hover { background: rgba(244, 247, 251, .14); }
.c-btn .i-play { display: none; }
.hero-carousel.is-paused .c-pause .i-pause { display: none; }
.hero-carousel.is-paused .c-pause .i-play { display: inline; }
.hero-carousel :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none; }
  .dot[aria-current="true"] span::after { animation: none; transform: scaleX(1); }
}

/* ---------- vendor logo strip ---------- */
.logo-strip { background: var(--ink); border-top: 1px solid var(--line-dark); }
.logo-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-top: 22px; padding-bottom: 22px; }
.strip-label { font-family: var(--f-display); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.logo-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.logo-strip a { display: flex; align-items: center; gap: 8px; color: var(--fg-dark); text-decoration: none; font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.logo-strip img { width: auto; display: block; }
.logo-strip a:hover { opacity: .8; }

/* ---------- product cards ---------- */
.eyebrow-dark { color: var(--accent); }
.prod-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.prod-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line-dark); border-radius: var(--r-lg); background: var(--panel); color: var(--fg-dark); text-decoration: none; min-height: 230px; transition: border-color .15s ease, transform .15s ease; }
.prod-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pc-top { display: flex; align-items: center; gap: 12px; }
.pc-top img { width: 36px; height: 36px; object-fit: contain; }
.pc-top b { font-family: var(--f-display); font-size: 21px; font-weight: 600; }
.pc-text { font-size: 15.5px; color: #C9D3E1; }
.prod-card small { font-size: 13px; color: var(--muted-dark); }
.pc-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15px; }

/* ---------- why, customers, articles ---------- */
.why-home .stat-grid { margin-top: 8px; }
.cust-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.cust-head h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; line-height: 1.2; }
.cust-head .text-link { margin-top: 0; }
.cust-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cust-strip li { aspect-ratio: 5 / 3; display: grid; place-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.cust-strip img { max-width: 80%; width: auto; height: auto; object-fit: contain; display: block; }
.art-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.art-card { display: flex; flex-direction: column; gap: 12px; padding: 0 0 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; overflow: hidden; }
.art-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.art-card .art-tag, .art-card h3, .art-card .text-link { margin-left: 22px; margin-right: 22px; }
.art-tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--link); background: #E6F3FB; padding: 4px 9px; border-radius: var(--r-sm); }
.art-card h3 { font-size: 20px; font-weight: 600; line-height: 1.4; }
.art-card:hover { border-color: var(--accent); }

@media (max-width: 1080px) {
  .prod-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cust-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .art-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .slides { height: 600px; }
  .slide-shade { background: linear-gradient(180deg, rgba(10, 15, 28, .55) 0%, rgba(10, 15, 28, .92) 55%); }
  .slide-copy { justify-content: flex-end; padding-bottom: 96px; }
  .slide-text { font-size: 16px; }
  .carousel-ui { bottom: 20px; }
  .dot { width: 30px; }
  .logo-strip a { font-size: 18px; }
  .logo-strip ul { gap: 14px 24px; }
}
@media (max-width: 560px) {
  .prod-cards { grid-template-columns: minmax(0, 1fr); }
  .cust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
