/* Home page: video hero with copy, jump bar, then sections over the line-art railway (track.js) */
html { scroll-behavior: smooth; }
.ix-page .ab-scene { scroll-margin-top: 70px; }
.ix-page .ab-veil { background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.6) 50%, rgba(255,255,255,.15) 85%); }

.ix-hero { display: flex; align-items: flex-end; }
.ix-shade { background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,0) 80%),
  linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 65%, rgba(0,0,0,.5) 100%); }
.ix-hero-copy { position: relative; z-index: 1; max-width: 1180px; padding-bottom: clamp(110px, 16vh, 170px); color: #fff; }
.ix-eyebrow { margin: 0 0 16px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; opacity: .9; }
.ix-hero h1 { margin: 0 0 18px; font-size: clamp(2.3rem, 5.6vw, 4.6rem); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; }
.ix-hero h1 em { font-style: normal; color: var(--red); }
.ix-hero-lead { margin: 0 0 26px; max-width: 52ch; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; color: rgba(255,255,255,.88); }
.ix-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ix-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.ix-ghost:hover { background: #fff; color: var(--ink); }
.ix-hero-copy > * { animation: ix-rise .9s var(--ease) both; }
.ix-hero-copy > :nth-child(2) { animation-delay: .12s; } .ix-hero-copy > :nth-child(3) { animation-delay: .24s; } .ix-hero-copy > :nth-child(4) { animation-delay: .36s; }
@keyframes ix-rise { from { opacity: 0; transform: translateY(28px); } }

.ix-jump { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px rgba(22,25,28,.05); }
.ix-jump .ab-wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.ix-jump a { flex: 1 0 auto; display: flex; align-items: center; gap: 10px; padding: 20px 18px; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.ix-jump a b { color: var(--red); font-size: .74rem; letter-spacing: .1em; }
.ix-jump a:hover { color: var(--red); border-color: var(--red); }

.ix-text { color: var(--body); line-height: 1.7; font-size: 1.04rem; margin: 0 0 16px; max-width: 60ch; }
.ix-link { display: inline-flex; gap: 8px; margin-top: 10px; color: var(--red); font-weight: 500; text-decoration: none; }
.ix-link span { transition: transform .3s var(--ease); } .ix-link:hover span { transform: translateX(4px); }

.ix-about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ix-about .ab-facts { margin: 22px 0 8px; }
.ix-about-img { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.ix-about-img img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.ix-prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ix-prod { border-radius: 24px; padding: 22px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.ix-prod:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(22,25,28,.12); }
.ix-prod-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 18px; background: radial-gradient(circle at 50% 60%, #fff 0%, #eef0f2 100%); margin-bottom: 18px; overflow: hidden; }
.ix-prod-img img { max-width: 82%; max-height: 82%; object-fit: contain; transition: transform .5s var(--ease); }
.ix-prod:hover .ix-prod-img img { transform: scale(1.06) rotate(-1deg); }
.ix-prod h3 { margin: 0 0 8px; font-size: 1.25rem; }
.ix-prod p { margin: 0 0 16px; color: var(--body); line-height: 1.6; font-size: .96rem; flex: 1; }
.ix-facts { display: flex; gap: 22px; margin: 0 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.ix-facts dt { font-weight: 700; color: var(--red); } .ix-facts dd { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.ix-all { margin-top: 24px; }

.ix-svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ix-svc li { border-radius: 22px; padding: 24px 22px; border-top: 3px solid var(--red); }
.ix-svc b { color: var(--red); font-size: .78rem; letter-spacing: .1em; }
.ix-svc h3 { margin: 10px 0 8px; font-size: 1.08rem; } .ix-svc p { margin: 0; color: var(--body); font-size: .94rem; line-height: 1.55; }

.ix-contact { border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.ix-contact .ab-h2 { margin-bottom: 10px; } .ix-contact .ix-text { margin: 0; }
.ix-contact-act { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 900px) {
  .ix-about { grid-template-columns: 1fr; }
  .ix-prods { grid-template-columns: 1fr; max-width: 560px; }
  .ix-svc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .ix-svc { grid-template-columns: 1fr; } .ix-contact-act { width: 100%; } .ix-contact-act .hm-btn { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .ix-hero-copy > * { animation: none; } html { scroll-behavior: auto; } }

/* home-only background: plain white studio + 3D locomotive (loco.js) */
.ix-flow { position: fixed; inset: 0; z-index: -2; background: radial-gradient(ellipse at 70% 60%, #ffffff 0%, #f3f4f5 60%, #eceef0 100%); }
.ix-flow canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ix-page .ab-veil { background: linear-gradient(90deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.55) 42%, rgba(255,255,255,0) 70%); }
@media (max-width: 991px) { .ix-flow canvas { opacity: .3; } .ix-page .ab-veil { background: rgba(255,255,255,.4); } }

/* Home intro (no video: the video lives on the landing page) */
.ix-top { min-height: 78vh; display: flex; align-items: center; padding-top: 130px; }
.ix-h1 { margin: 0 0 20px; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; font-weight: 900; letter-spacing: -.035em; }
.ix-h1 em { font-style: normal; color: var(--red); }
.ix-lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); margin-bottom: 28px; max-width: 44ch; }
.ix-jump { position: sticky; top: 64px; z-index: 40; }

/* cards built by sync.js from products.html / Services.html */
.ix-synced { animation: ix-rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * .08s); }
.ix-svc { grid-template-columns: repeat(3, 1fr); }
.ix-svc li { display: flex; flex-direction: column; }
.ix-svc li p { flex: 1; }
.ix-svc-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.ix-svc-link { font-size: .9rem; }
@media (max-width: 900px) { .ix-svc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ix-svc { grid-template-columns: 1fr; } }

/* product card with several images (sync.js gallery) */
.ix-prod-img.ix-gal { position: relative; }
.ix-prod-img.ix-gal img { position: absolute; inset: 0; margin: auto; opacity: 0; scale: .9; filter: blur(4px); transition: opacity .8s var(--ease), scale .8s var(--ease), filter .8s, transform .5s var(--ease); }
.ix-prod-img.ix-gal img.is-on { opacity: 1; scale: 1; filter: none; }
