/* Home page: phone and tablet layout (900px and below). Desktop (901px+) is untouched.
   Loaded last on the home page so these rules win without editing the desktop sheets. */

/* Desktop never shows the mobile-only pieces. */
.h26-ops,.h26-outcome-icon,.h26-swipe-hint,.cp26-logos>.cp26-more{display:none}

/* ---------- Hero: the copy sits in the flow, pushed to the bottom, and the card grows when it must ----------
   It used to be pinned to the bottom of a fixed-height, clipped card, so on short screens or with a larger
   system font (common on Android, e.g. Realme) its top line, "Industrial Operating System", was cut off.
   The bottom padding clears the customer logo strip (88px, pinned to the card's bottom edge). */
@media(max-width:900px){
 .home-2026 .h26-hero{display:flex;flex-direction:column;justify-content:flex-end;height:auto;min-height:max(570px,min(850px,calc(100svh - 105px)))}
 .home-2026 .h26-hero-copy{position:relative;left:auto;bottom:auto;width:auto;padding:48px 16px 154px}
}
@media(max-width:800px){
 .home-2026 .h26-hero{min-height:max(600px,calc(100svh - 90px))}
 .home-2026 .h26-hero-copy{padding:40px 4px 136px}
}
@media(max-width:600px){
 .home-2026 .h26-hero{min-height:max(640px,calc(100svh - 76px))}
 .home-2026 .h26-hero-copy{padding:36px 8px 128px}
}
@media(max-width:600px){
 .home-2026 .h26-hero-copy h1{font-size:clamp(38px,10vw,48px)}
 .home-2026 .h26-hero-bottom>p{font-size:16px}
}
/* Phones turned sideways: the 76px headline would fill the whole screen. */
@media(max-width:900px) and (max-height:500px){
 .home-2026 .h26-hero{min-height:0}
 .home-2026 .h26-hero-copy{padding-block:32px 120px}
 .home-2026 .h26-hero-copy h1{font-size:clamp(40px,7vw,56px);margin-bottom:18px}
 .home-2026 .h26-hero-copy>p{margin-bottom:14px}
}

@media(max-width:900px){
 /* ---------- "Built for the whole operation": one dark diagram card ----------
    Five teams converge on DelphEon, which fans out to the four outcomes (icon tiles). */
 .h26-reality-wiring,.h26-reality-sources,.h26-reality-hub,.h26-reality-summary{display:none!important}
 .home-2026 section.h26-reality .h26-reality-intro{gap:0}
 .home-2026 .h26-reality-map{position:relative;isolation:isolate;display:block;overflow:hidden;margin-top:28px;padding:28px 18px 18px;border:0;border-radius:24px;color:#fff;
  background:radial-gradient(circle at 50% 46%,rgb(255 95 45 / .22),transparent 38%),radial-gradient(circle at 50% 100%,rgb(0 122 255 / .16),transparent 45%),linear-gradient(165deg,#2B2F3A 0%,#22252F 38%,#181A24 100%)}
 .home-2026 .h26-reality-map::before{content:"";position:absolute;inset:0;z-index:-1;background-image:radial-gradient(rgb(255 255 255 / .07) 1px,transparent 1.2px);background-size:18px 18px;-webkit-mask-image:linear-gradient(180deg,#000,transparent 85%);mask-image:linear-gradient(180deg,#000,transparent 85%)}
 .h26-ops{display:block;text-align:center}
 .home-2026 .h26-ops-kicker,.home-2026 .h26-reality-outcomes .h26-map-label{margin:0 0 16px!important;color:#ACDDFF!important;font-size:12px!important;font-weight:600;letter-spacing:.12em;text-transform:uppercase;text-align:center;text-wrap:balance}
 .h26-ops-teams{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 8px;margin:0;padding:0;list-style:none}
 .h26-ops-teams li{grid-column:span 2;display:flex;flex-direction:column;align-items:center;gap:8px;color:#fff;font-size:13px;font-weight:500;line-height:1.2}
 .h26-ops-teams li:nth-child(4){grid-column:2/span 2}
 .h26-ops-teams li:nth-child(5){grid-column:4/span 2}
 .h26-ops-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid rgb(255 255 255 / .16);border-radius:14px;background:rgb(255 255 255 / .07);color:#ACDDFF;box-shadow:inset 0 1px 0 rgb(255 255 255 / .08)}
 .h26-ops svg,.h26-outcome-icon svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .h26-ops-icon svg{width:22px;height:22px}
 .h26-ops-lines{display:block;width:100%;height:52px;margin:6px 0 0;overflow:visible}
 .h26-ops-lines path{fill:none;stroke:rgb(255 255 255 / .2);stroke-width:1.2;vector-effect:non-scaling-stroke}
 .h26-ops-lines path.is-flow{stroke:#FF5F2D;stroke-width:2;stroke-dasharray:3 16;animation:h26-ops-flow 1.6s linear infinite}
 .h26-ops-lines .is-tablet{display:none}
 .h26-ops-lines.is-fan{height:40px;margin:4px 0 6px}
 @keyframes h26-ops-flow{to{stroke-dashoffset:-19}}
 .h26-ops-core{position:relative;display:grid;place-items:center;width:150px;height:62px;margin:0 auto;border:1px solid rgb(255 255 255 / .22);border-radius:999px;background:linear-gradient(180deg,rgb(255 255 255 / .14),rgb(255 255 255 / .05));box-shadow:0 0 0 6px rgb(255 95 45 / .1),0 12px 34px rgb(255 95 45 / .28)}
 .h26-ops-core img{width:118px;height:auto;filter:brightness(0) invert(1)}
 .h26-ops-ring{position:absolute;inset:-1px;border:1px solid rgb(255 95 45 / .55);border-radius:inherit;animation:h26-ops-pulse 2.8s ease-out infinite;pointer-events:none}
 .h26-ops-ring+.h26-ops-ring{animation-delay:1.4s}
 @keyframes h26-ops-pulse{from{transform:scale(1);opacity:.9}to{transform:scale(1.35,1.75);opacity:0}}
 .home-2026 .h26-ops-caption{margin:12px 0 0;color:#fff;font-size:15px;font-weight:600;letter-spacing:-.01em;text-align:center}
 .h26-reality-outcomes{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .home-2026 .h26-reality-outcomes .h26-map-label{grid-column:1/-1;width:auto;margin-bottom:6px!important;background:transparent}
 .home-2026 .h26-reality-outcomes .h26-outcome{flex-direction:column;align-items:flex-start;justify-content:space-between;gap:14px;min-height:118px!important;padding:14px!important;border:1px solid rgb(255 255 255 / .12)!important;border-radius:16px;background:rgb(255 255 255 / .06);color:#fff}
 .h26-reality-outcomes .h26-outcome>span,.h26-reality-outcomes .h26-outcome small{display:none!important}
 .h26-outcome-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:rgb(255 95 45 / .16);color:#FF5F2D}
 .h26-outcome-icon svg{width:20px;height:20px}
 .home-2026 .h26-reality-outcomes strong{color:#fff;font-size:15px!important;font-weight:600;line-height:1.25;letter-spacing:-.01em}

 /* ---------- "Connect the plant": no category chips, two bands ---------- */
 .home-2026 .h26-connection-categories{display:none}
 .home-2026 .h26-connection-band:nth-child(3){display:none}
 .home-2026 .h26-connections-description{margin-bottom:28px}

 /* ---------- "Start with the problem": tabs become one swipeable row of cards ---------- */
 .h26-applications.is-carousel .h26-solution-tabs{display:none}
 .h26-applications.is-carousel .h26-solution-panels{display:flex;gap:14px;margin-inline:-24px;padding:4px 24px 18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:24px;overscroll-behavior-x:contain;scrollbar-width:none}
 .h26-applications.is-carousel .h26-solution-panels::-webkit-scrollbar{display:none}
 .h26-applications.is-carousel .h26-solution-panel{display:flex;flex-direction:column;flex:0 0 min(82%,340px);min-height:0;padding:0 0 20px;border-radius:16px;scroll-snap-align:start;animation:none}
 .h26-applications.is-carousel .h26-solution-photo{position:relative;inset:auto;width:100%;height:150px;flex:0 0 150px}
 .h26-applications.is-carousel .h26-solution-photo::after{display:none}
 .h26-applications.is-carousel .h26-solution-main{align-self:stretch;padding:18px 20px 0}
 .h26-applications.is-carousel .h26-solution-category{margin:0 0 10px;font-size:12px;letter-spacing:.12em}
 .home-2026 .h26-applications.is-carousel .h26-solution-main h3{font-size:25px;line-height:1.12;margin:0 0 10px}
 /* Each card is just the picture, the area, its headline and the link: the detail lives on the solution page */
 .h26-applications.is-carousel .h26-solution-description,.h26-applications.is-carousel .h26-solution-capabilities{display:none!important}
 .h26-applications.is-carousel .h26-solution-links{display:block;align-self:stretch;margin:auto 20px 0;padding-top:14px}
 .h26-applications.is-carousel .h26-solution-links a{display:inline-flex;min-height:44px;font-size:15px}
 .h26-applications.is-carousel .h26-swipe-hint{display:block;margin:4px 0 0;color:#5d6470;font-size:13px;text-align:left}
 .h26-swipe-hint span{color:var(--design-orange,#ff5f2d)}

 /* ---------- "From real plants": one swipeable row of square logo cards ----------
    Four customers, then a "Show more" card that opens the customers page. */
 .cp26-logos{display:flex!important;gap:12px!important;margin-inline:-24px;padding:4px 24px 14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:24px;overscroll-behavior-x:contain;scrollbar-width:none}
 .cp26-logos::-webkit-scrollbar{display:none}
 .cp26-logos>li{flex:0 0 min(44%,170px);aspect-ratio:1;scroll-snap-align:start}
 .cp26-logos>li:nth-child(n+5):not(.cp26-more){display:none}
 .cp26-logo-link{min-height:0!important;padding:20px 12px 16px!important;gap:12px}
 .cp26-logos>.cp26-more{display:flex;border-color:var(--design-orange,#ff5f2d);background:#fff}
 .cp26-more .cp26-logo-link{justify-content:center;gap:14px}
 .cp26-more-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--design-orange,#ff5f2d);color:#fff;line-height:0}
 /* Drawn arrow, not a text glyph, so it sits dead centre in the circle whatever font the phone uses. */
 .cp26-more-icon svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
 .cp26-more .cp26-logo-link:hover .cp26-more-icon svg{transform:translateX(2px)}
 .cp26-more .cp26-logo-cta{font-size:14px;color:var(--ink,#1d1d1f)}

 /* ---------- Closing: FAQ first, the page ends on the call to action ---------- */
 .home-2026 .h26-faq-cta{grid-template-columns:1fr;gap:48px}
 .home-2026 .h26-faq-list{order:1}
 .home-2026 .h26-final-copy{order:2}

 /* ---------- Scroll story: the pinned panel always fits the screen ----------
    The text keeps its height and the product window takes what is left (it shrinks, never overflows),
    so nothing is cut off and nothing spills into the next section when the story ends. */
 .h26-platform.enhanced .scx-sticky{gap:14px}
 .h26-platform.enhanced .scx-narrative{flex:none}
 .h26-platform.enhanced .scx-line-product{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;margin-top:0}
 .h26-platform.enhanced .scx-line-product .scx-window{flex:0 1 auto;min-height:0}

 /* ---------- Scroll story: readable text and 44px controls ---------- */
 .scx-narrative .h26-label,.scx-narrative-eyebrow{font-size:12px!important}
 .scx-narrative-description{font-size:14px!important;line-height:1.45!important}
 .scx-narrative-fact{font-size:13px!important}
 .scx-narrative-secondary{font-size:12px!important}
 /* The changing story text sits in a small bordered card (phones and tablets only). */
 .scx-narrative-stage{box-sizing:border-box;padding:12px 14px;border:1px solid #d9e3f0;border-radius:12px;background:#fff;box-shadow:0 4px 14px #25406a0b}
 .scx-line-product .scx-progress button{min-height:44px!important;font-size:12px!important}
 .scx-line-product .scx-progress button b{font-size:12px!important}
 .scx-line-product .scx-app-path .scx-window-live{font-size:11px!important}
 .scx-line-product .scx-app-path{font-size:11px!important}
 .scx-line-product .scx-line-heading p{font-size:12px!important}
 .scx-line-product .scx-line-task{font-size:12px!important}
 /* The bar keeps its height; only the Next button's tap area grows to 44px. */
 .scx-line-product .scx-line-task>button{min-height:44px;margin-block:-8px;font-size:13px!important}
 .scx-line-product .scx-window-bottom{font-size:11px!important}
 .scx-line-product .scx-line-popover p,.scx-line-product .scx-popup-facts{font-size:12px!important}
 .scx-line-product .scx-line-popover small,.scx-line-product .scx-line-status{font-size:11px!important}
 .scx-line-product .scx-line-button{font-size:12px!important;min-height:36px}
 .scx-line-product .scx-evidence-detail{font-size:11px!important}
 .scx-line-product .scx-request-label{font-size:10px!important}
 .scx-line-product .scx-line-request dl,.scx-line-product details,.scx-line-product details p{font-size:11px!important}
 .scx-line-product .scx-request-pending{font-size:11px!important}
 /* Diagram labels inside the stages (issue map, analysis, action scene). */
 .scx-issue-summary span,.scx-issue-summary small,.scx-issue-loss{font-size:11px!important}
 .scx-context-node>span{font-size:10px!important}
 .scx-context-node strong{font-size:13px!important}
 .scx-context-node small{font-size:11px!important}
 .scx-issue-hub strong{font-size:11px!important}
 .scx-issue-hub small{font-size:10px!important}
 .scx-cinema-controls,.scx-cinema-controls span,.scx-cinema-controls button{font-size:11px!important}
 .scx-cinema-controls button,.scx-analysis-replay{min-height:44px;margin-block:-12px}
 .scx-cinema-caption span,.scx-cinema-caption small{font-size:11px!important}
 .scx-analysis-replay{font-size:12px!important}

 /* ---------- Small labels and tap targets across the page ---------- */
 .h26-customer-label,.h26-solution-category,.h26-reality-outcomes .h26-outcome>span{font-size:12px}
 .home-2026 .h26-engineering .h26-eng-eyebrow,.home-2026 .h26-engineering .h26-eng-rollout-kicker,.h26-eng-number,.h26-eng-step-number{font-size:12px}
 .h26-connections-footer>a.h26-text-link,.h26-final-copy .h26-text-link,.h26-faq-list>.h26-text-link{display:inline-flex;align-items:center;min-height:44px}
 .h26-customer-pause{width:44px;height:44px}
 .h26-faq-list details{padding:10px 0}
 .h26-faq-list summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
 .h26-faq-list summary::before{content:"▸";flex:0 0 auto;color:var(--design-orange,#ff5f2d);transition:transform .15s}
 .h26-faq-list details[open] summary::before{transform:rotate(90deg)}
 .h26-faq-list summary::-webkit-details-marker{display:none}
 .h26-faq-list summary{list-style:none}
}

/* Tablets (601-900px): the five teams sit in one row and the outcomes in four columns. */
@media(min-width:601px) and (max-width:900px){
 .home-2026 .h26-reality-map{padding:36px 28px 28px}
 .h26-ops-teams{grid-template-columns:repeat(5,minmax(0,1fr))}
 .h26-ops-teams li,.h26-ops-teams li:nth-child(4),.h26-ops-teams li:nth-child(5){grid-column:auto}
 .h26-ops-lines .is-phone{display:none}
 .h26-ops-lines .is-tablet{display:inline}
 .h26-ops-lines{height:64px}
 .h26-reality-outcomes{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

/* ---------- Phones (600px and below) ---------- */
@media(max-width:600px){
 /* Hero: full-width call to action. The video has no phone source, so the poster shows. */
 .home-2026 .h26-hero-bottom>div .h26-button{width:100%;justify-content:center}
 .h26-customer-strip{grid-template-columns:minmax(0,1fr) 44px}

 /* Section headings: 2-3 lines instead of 4-5. */
 .home-2026 h2,
 .home-2026 section.h26-reality h2,.home-2026 .h26-connections h2,.home-2026 .h26-connections-heading h2,.home-2026 .h26-applications .h26-section-heading h2,.home-2026 .h26-proof h2,.home-2026 .cp26-intro h2,
 .home-2026 .h26-engineering .h26-eng-title,.home-2026 .h26-faq-cta h2{font-size:32px;line-height:1.1}
 .scx-narrative h2{font-size:27px}
 .home-2026 section.h26-reality .h26-reality-summary p,.home-2026 .h26-connections-description,.home-2026 .h26-applications .h26-section-heading>p:last-child:not(.h26-label){font-size:16px;line-height:1.5}
 .home-2026 .h26-final-copy>p:not(.h26-label){font-size:17px}


 /* Scroll story: step numbers only (labels stay for screen readers); breadcrumb hidden. */
 .scx-line-product .scx-progress button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .scx-line-product .scx-progress button b{font-size:13px!important}
 .scx-line-product .scx-app-path{display:none!important}
 /* The step bar already shows which step is active, so the "02 / 07" counter row is dropped. */
 .h26-platform.enhanced .scx-line-product .scx-window-bottom{display:none!important}

 /* Closing call to action: full width. */
 .h26-final-copy>div{flex-direction:column;align-items:stretch}
 .h26-final-copy .h26-button{width:100%;justify-content:center}
 .h26-final-copy .h26-text-link{align-self:flex-start}
}

/* Phones up to 820px tall (most real phones once the browser bars are shown): tighter story text. */
@media(max-width:600px) and (max-height:820px){
 .h26-platform .scx-sticky{gap:10px}
 .scx-narrative .h26-label{margin-bottom:4px!important}
 .scx-narrative h2{font-size:23px;margin-bottom:4px}
 .scx-narrative-stage{min-height:172px!important}
 .scx-narrative-headline{font-size:20px!important;margin-bottom:6px!important}
 .scx-narrative-description{font-size:13px!important;margin-bottom:6px!important}
 .scx-line-product{margin-top:0!important}
 /* Mock-up subtitle repeats the story text above it. */
 .scx-line-product .scx-line-heading p{display:none!important}
 /* Signals stage: slimmer trace cards so all three fit. */
 .scx-line-product .scx-signal-board{padding:2px 0 6px!important;gap:12px!important}
 .scx-line-product .scx-signal-range{display:none!important}
 .scx-line-product .scx-signal-row{padding:5px 8px!important;margin-bottom:5px!important}
 .scx-line-product .scx-signal-row>svg{height:24px!important;margin:1px 0!important}
 .scx-line-product .scx-signal-event-key,.scx-line-product .scx-signal-eyebrow{display:none!important}
 /* Issue stage: the three metric tiles repeat the figures already in the heading above them. */
 .scx-issue-summary{display:none!important}
 .scx-line-product .scx-issue-map{gap:8px 10px!important;padding:6px 0!important}
 .scx-line-product .scx-line-factory .line-machine-alert{transform:translate(252px,10px) scale(1.3)!important}
 /* One-line hint so the stage keeps its height. */
 .scx-line-product .scx-line-task{font-size:11px!important}
 .scx-line-product .scx-line-task>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* Very short phones: the small section label gives its line to the product window. */
@media(max-width:600px) and (max-height:680px){
 .h26-platform.enhanced .scx-narrative>.h26-label{display:none}
 .scx-line-product .scx-signal-row{padding:4px 8px!important;margin-bottom:4px!important}
 .scx-line-product .scx-signal-row>svg{height:20px!important}
}

@media(prefers-reduced-motion:reduce){.h26-faq-list summary::before,.cp26-more-icon svg{transition:none}.h26-ops-lines path.is-flow,.h26-ops-ring{animation:none}.h26-ops-ring{opacity:0}}
