/* ===== Home hero: "Digitise Your Plant" – 4 capabilities ===== */
.ih {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    font-family: 'Roboto Condensed', sans-serif;
    background: radial-gradient(1200px 600px at 75% 30%, #0e3a56 0%, rgba(14, 58, 86, 0) 60%),
                linear-gradient(135deg, #050f19 0%, #0a2235 45%, #13163a 100%);
/* fill the screen below the header exactly, so the client logo strip ends at the bottom edge (100% visible) */
    --ih-header: 96px;
    min-height: calc(100vh - var(--ih-header));
    min-height: calc(100svh - var(--ih-header));
    display: flex;
    flex-direction: column;
}
.ih:before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,15,25,.82) 0%, rgba(5,15,25,.55) 32%, rgba(5,15,25,0) 52%); }
.ih-waves { position: absolute; left: 0; top: 0; width: 200%; height: 100%; pointer-events: none; }
.ih-waves-a { animation: ihFlow 28s linear infinite; }
.ih-waves-b { animation: ihFlow 40s linear infinite reverse; }
@keyframes ihFlow { to { transform: translateX(-1600px); } }
.ih-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 36px 30px 28px;
    flex: 1 0 auto;
    align-content: center;
    flex: 1 0 auto;
    align-content: center;
    display: grid;
    grid-template-columns: 36% 1fr 230px;
    gap: 34px;
    align-items: center;
}
/* left: headline + active capability */
.ih-eyebrow { font-size: 13px !important; letter-spacing: 4px; text-transform: uppercase; color: #00c1cf; margin: 0 0 12px; }
.ih-h1 { font-family: 'Roboto Condensed', sans-serif; font-size: 44px; line-height: 1.08; font-weight: 700; margin: 0 0 12px; color: #fff; }
.ih-h1:before { content: none; }
.ih-h1 span { background: linear-gradient(90deg, #00c1cf, #6c8cff 60%, #DD2476); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ih-sub { font-size: 15.5px !important; line-height: 1.6; color: #b8cad6; margin: 0 0 22px; max-width: 430px; }
.ih-details { position: relative; min-height: 238px; border-left: 3px solid var(--acc, #00c1cf); padding-left: 20px; transition: border-color .5s; }
.ih-detail { position: absolute; left: 20px; right: 0; top: 0; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.ih-detail.is-active { position: relative; left: 0; opacity: 1; transform: none; pointer-events: auto; transition-delay: .15s; }
.ih-title { font-family: 'Roboto Condensed', sans-serif; font-size: 25px !important; line-height: 1.2; font-weight: 700; color: #fff; margin: 0 0 4px; text-transform: none; text-align: left; }
.ih-title:before { content: none; }
.ih-tag { font-size: 16px !important; font-style: italic; color: var(--acc); margin: 0 0 10px; }
.ih-desc { font-size: 14.5px !important; line-height: 1.6; color: #c9d7e1; margin: 0 0 12px; }
.ih-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ih-chips li { font-size: 12.5px; padding: 5px 11px 5px 24px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #e4eef4; position: relative; margin: 0; }
.ih-chips li:before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--acc); }
/* centre: animated diagram panel */
.ih-panel {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 26px 120px 120px 26px;
    background: linear-gradient(160deg, rgba(13, 42, 64, .92), rgba(9, 24, 38, .92));
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
    overflow: hidden;
}
.ih-panel:after { content: ""; position: absolute; left: 26px; right: 120px; top: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #00c1cf, transparent); opacity: .7; }
.ih-slide { display: none; position: absolute; inset: 0; padding: 10px 40px 10px 14px; }
.ih-slide.is-active { display: block; animation: ihIn .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ihIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.ih-svg { width: 100%; height: 100%; display: block; }
.ih-tabs { display: none; }
/* right: curved capability wheel */
.ih-wheel { position: relative; height: 440px; }
.ih .ih-item-btn {
    position: absolute; left: 0; top: 50%;
    width: 230px; margin-top: -24px; min-height: 48px; display: flex; align-items: center;
    padding: 0 0 0 26px !important;
    background: none !important; border: 0; border-radius: 0; box-shadow: none;
    text-align: left; color: #fff; cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif; font-weight: 400;
    transform-origin: 470px 50%;
    transition: transform .9s cubic-bezier(.65,0,.25,1), opacity .9s ease;
}
.ih-lbl { display: block; font-size: 18px; line-height: 1.2; color: rgba(255,255,255,.75); transition: font-size .6s, color .6s; }
.ih .ih-item-btn:before { content: ""; position: absolute; left: 4px; top: 50%; margin-top: -7px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); transition: all .5s; }
.ih .ih-item-btn.is-active:before { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 0 18px var(--acc); }
.ih .ih-item-btn.is-active .ih-lbl { font-size: 22px; color: #fff; font-weight: 700; }
.ih .ih-item-btn:focus { outline: none; }
.ih .ih-item-btn:focus-visible .ih-lbl { text-decoration: underline; }

/* ---------- shared diagram styling ---------- */
.ih-t { fill: #fff; font-family: 'Roboto Condensed', Arial, sans-serif; font-weight: 700; }
.ih-cap { fill: #9fc3db; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 13px; letter-spacing: 2.5px; font-weight: 700; }
.ih-mini { fill: #a9c2d4; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 12.5px; }
.ih-dim { fill: #5f7a8e; }
.ih-mono { fill: #8fe3ff; font-family: Consolas, 'Courier New', monospace; font-size: 12.5px; }
.ih-pop { opacity: 0; animation: ihPop .6s cubic-bezier(.2,.8,.2,1) both; transform-box: fill-box; transform-origin: center; }
@keyframes ihPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
/* 1: shop floor */
.ih-edge { stroke: #6f8fab; stroke-width: 2; fill: none; stroke-dasharray: 140; stroke-dashoffset: 140; animation: ihDraw .7s ease forwards; }
@keyframes ihDraw { to { stroke-dashoffset: 0; } }
.ih-pulse { stroke: #7fd3ff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 8 160; stroke-dashoffset: 168; opacity: 0; animation: ihPulse 1.6s linear infinite; }
@keyframes ihPulse { 0% { stroke-dashoffset: 168; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
.ih-root { stroke: #ff8a3d; stroke-width: 4; fill: none; stroke-dasharray: 140; stroke-dashoffset: 140; animation: ihDraw .8s ease 3s forwards; filter: drop-shadow(0 0 5px rgba(255,138,61,.7)); }
.ih-hot rect { animation: ihHot .6s ease 3s forwards; }
@keyframes ihHot { to { stroke: #ff8a3d; stroke-width: 3; } }
.ih-ring { opacity: 0; transform-box: fill-box; transform-origin: center; animation: ihRing 1.6s ease-out 3.6s infinite; }
@keyframes ihRing { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.6); } }
.ih-cap-a { animation: ihOut .4s ease 3.2s forwards; }
.ih-cap-b { opacity: 0; animation: ihFade .5s ease 3.5s forwards; letter-spacing: 3px; }
@keyframes ihOut { to { opacity: 0; } }
@keyframes ihFade { to { opacity: 1; } }
.ih-type { animation: ihType 3.2s steps(60) 1s forwards; }
@keyframes ihType { to { width: 560px; } }
/* 2: autonomous control */
.ih-arc { stroke: #8fb3cf; stroke-width: 2.5; fill: none; stroke-dasharray: 6 6; animation: ihMarch 1s linear infinite; }
@keyframes ihMarch { to { stroke-dashoffset: -12; } }
.ih-node { fill: none; stroke: #7ff6ff; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ihRing 3s ease-out infinite; }
.ih-tr { transform-box: fill-box; transform-origin: center; animation: ihRing 2.4s ease-out infinite; }
.ih-tr2 { animation-delay: 1.2s; }
.ih-settle { stroke-dasharray: 260; stroke-dashoffset: 260; animation: ihSettle 4.5s ease-in-out .4s infinite; }
@keyframes ihSettle { 0% { stroke-dashoffset: 260; } 60%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -260; } }
.ih-glowdot { filter: drop-shadow(0 0 6px #7ff6ff); }
/* 3: predictive maintenance */
.ih-trend { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: ihDraw 2.4s ease-out .3s forwards; }
.ih-proj { opacity: 0; animation: ihFade .4s ease 2.6s forwards, ihMarch 1s linear 2.6s infinite; }
.ih-window { opacity: 0; animation: ihWin 2s ease-in-out 3.1s infinite; }
@keyframes ihWin { 0%, 100% { opacity: .14; } 50% { opacity: .32; } }
.ih-winlab { opacity: 0; animation: ihFade .5s ease 3.2s forwards; }
.ih-alert { opacity: 0; animation: ihPop .6s cubic-bezier(.2,.8,.2,1) 3.9s both; transform-box: fill-box; transform-origin: center; }
.ih-wave1, .ih-wave2 { fill: none; stroke: #19c3a6; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ihRing 2s ease-out infinite; }
.ih-wave2 { animation-delay: 1s; }
/* 4: computer vision */
.ih-belt { animation: ihBelt 6s linear infinite; }
@keyframes ihBelt { to { transform: translateX(-720px); } }
.ih-roll { animation: ihSpin 1.2s linear infinite; }
@keyframes ihSpin { to { transform: rotate(-360deg); } }
.ih-frame { stroke: #19c3a6; stroke-width: 2; opacity: .55; }
.ih-bad .ih-frame { animation: ihBad 6s linear infinite; }
@keyframes ihBad { 0%, 25% { stroke: #19c3a6; opacity: .55; } 27%, 44% { stroke: #ff8a3d; opacity: 1; stroke-width: 3; } 46%, 100% { stroke: #19c3a6; opacity: .55; } }
.ih-bad .ih-tag { opacity: 0; animation: ihTag 6s linear infinite; }
@keyframes ihTag { 0%, 26% { opacity: 0; } 28%, 60% { opacity: 1; } 64%, 100% { opacity: 0; } }
.ih-scan { fill: none; stroke: #7ff6ff; stroke-width: 2; stroke-dasharray: 8 6; animation: ihScan 6s linear infinite; }
@keyframes ihScan { 0%, 25% { stroke: #7ff6ff; } 27%, 44% { stroke: #ff8a3d; } 46%, 100% { stroke: #7ff6ff; } }
.ih-cone { fill: #00c1cf; opacity: .14; animation: ihWin 1.8s ease-in-out infinite; }
.ih-lens { fill: #7ff6ff; animation: ihWin 1.2s ease-in-out infinite; }

/* ---------- responsive ---------- */
/* client names strip (flows right to left) */
.ih-clients {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(3, 10, 18, .86);
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.ih-clients-lbl {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 16px 32px 16px 34px;
    font-size: 17px !important;
    line-height: 1.35;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c1cf;
    border-right: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 193, 207, .06);
}
.ih-marquee {
    flex: 1 1 auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.ih-track { display: flex; width: max-content; animation: ihMarquee 32s linear infinite; }
.ih-clients:hover .ih-track { animation-play-state: paused; }
@keyframes ihMarquee { to { transform: translateX(-50%); } }
.ih-set { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.ih-set li { display: flex; align-items: center; margin: 0; padding: 14px 0; }
.ih-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    min-width: 140px;
    margin: 0 14px;
    padding: 6px 16px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.ih-logo img { display: block; height: auto; width: auto; max-height: 58px; max-width: 190px; object-fit: contain; }

@media screen and (max-width: 1150px) {
    .ih-wrap { grid-template-columns: 1fr 1fr; }
    .ih-wheel { display: none; }
    .ih-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
    .ih .ih-tab { padding: 7px 14px !important; border-radius: 20px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04) !important; color: #cfe0ea; font-size: 13px; font-weight: 400; cursor: pointer; font-family: 'Roboto Condensed', sans-serif; }
    .ih .ih-tab.is-active { background: var(--acc) !important; border-color: var(--acc); color: #fff; }
}
@media screen and (max-width: 767px) {
    .ih { min-height: 0; }
    .ih-wrap { grid-template-columns: 1fr; padding: 36px 18px 40px; gap: 22px; }
    .ih-h1 { font-size: 32px; }
    .ih-text { display: contents; }
    .ih-eyebrow { order: 1; margin: 0; }
    .ih-h1 { order: 2; margin: 0; }
    .ih-sub { order: 3; margin: 0; }
    .ih-stage { order: 4; }
    .ih-details { order: 5; }
    .ih-panel { border-radius: 18px 60px 60px 18px; }
    .ih-panel:after { right: 60px; }
    .ih-slide { padding: 6px 18px 6px 6px; }
    .ih-details { min-height: 0; }
    .ih-clients { flex-direction: column; align-items: stretch; }
    .ih-clients-lbl { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); text-align: center; padding: 10px; }
    .ih-clients-lbl br { display: none; }
    .ih-set li { padding: 10px 0; }
    .ih-logo { height: 50px; min-width: 100px; margin: 0 9px; padding: 6px 12px; }
    .ih-logo img { max-height: 38px; max-width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
    .ih *, .ih *:before, .ih *:after { animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
}

/* performance: animations stop while the hero is scrolled out of view */
.ih.is-offscreen *, .ih.is-offscreen *:before, .ih.is-offscreen *:after { animation-play-state: paused !important; }
