/* Pristine Material Handling — landing page (the homepage).
   Layout, spacing, type sizes and motion follow the approved Draft E; typeface and colours follow the Pristine design system.
   The palette, the Poppins typeface, the buttons and the header are in assets/chrome.css, loaded before this file.
   Nothing here names a colour: only the palette variables. */

:root {
  --film-shade: 0.5; /* strength of the flat Ink layer over both films (brief: 40-50%) */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.home { margin: 0; background: var(--charcoal); color: var(--mist); font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
/* the page frame (--gutter, --wrap, --edge) is defined in chrome.css and shared with every inner page */
.wrap { padding-inline: var(--edge); }
h1, h2, h3 { margin: 0; }

/* buttons: defined in chrome.css; on this page they never wrap */
.btn { white-space: nowrap; }

/* ---------- pinned film with four scrolling chapters ---------- */
.stage { position: relative; height: 420vh; height: 420svh; background: var(--ink); }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); color: var(--white); }
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; background: var(--ink); opacity: var(--film-shade); }
/* a chapter that is not showing is also hidden from the keyboard and from screen readers (after its fade-out) */
.chap { position: absolute; inset: 0; display: grid; align-content: end; padding: 0 var(--edge) 104px; z-index: 2; opacity: 0; visibility: hidden; transform: translateY(22px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; pointer-events: none; }
.chap.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; pointer-events: auto; }
.chap .k { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--pristine-blue); margin-bottom: 14px; }
.chap h1, .chap h2 { font-size: clamp(38px, 7vw, 104px); font-weight: 600; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; max-width: 7.4em; }
.chap p { max-width: 46ch; font-size: clamp(16px, 1.5vw, 21px); margin: 18px 0 0; color: var(--mist); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.chap .ctas { margin-top: 26px; }
.progress { position: absolute; left: var(--edge); right: var(--edge); bottom: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; z-index: 3; }
.progress i { display: block; height: 2px; background: var(--slate); position: relative; overflow: hidden; }
.progress i b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--white); }
.progress span { display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-top: 10px; line-height: 1.2; }
@media (max-width: 720px) { .progress span { display: none; } .chap { padding-bottom: 72px; } }

/* ---------- statements with the word-by-word reveal ---------- */
.statement { padding-block: clamp(72px, 14vh, 160px); }
.say { font-size: clamp(30px, 5.2vw, 78px); font-weight: 600; line-height: 1; letter-spacing: -.02em; max-width: 11.8em; margin: 0; color: var(--white); }
.say .w { display: inline-block; color: var(--slate); transition: color .35s ease; }
.say .w.on { color: var(--white); }
.statement .sub { font-size: clamp(16px, 1.4vw, 20px); color: var(--mist); max-width: 52ch; margin-top: 28px; line-height: 1.55; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--pristine-blue); margin-bottom: 22px; }

/* ---------- three facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--slate); border-bottom: 1px solid var(--slate); }
.facts div { padding: 30px 32px; border-right: 1px solid var(--slate); min-width: 0; }
.facts div:first-child { padding-left: 0; }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font-size: clamp(32px, 4vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--white); }
.facts span { display: block; margin-top: 14px; color: var(--steel); font-size: 15px; max-width: 26ch; line-height: 1.45; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } .facts div, .facts div:first-child { border-right: 0; border-bottom: 1px solid var(--slate); padding: 22px 0; } .facts div:last-child { border-bottom: 0; } }

/* ---------- robot view: full-bleed film with centred text ---------- */
.chapter { position: relative; height: 92vh; height: 92svh; min-height: 520px; overflow: hidden; background: var(--ink); color: var(--white); display: grid; place-items: center; text-align: center; }
.chapter::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: var(--film-shade); }
.chapter .in { position: relative; z-index: 2; padding-inline: var(--gutter); max-width: 960px; }
.chapter h2 { font-size: clamp(34px, 6vw, 84px); font-weight: 600; line-height: .98; letter-spacing: -.02em; text-transform: uppercase; }
.chapter p { font-size: clamp(16px, 1.5vw, 21px); max-width: 46ch; margin: 22px auto 30px; color: var(--mist); }
.chapter .ctas { justify-content: center; }
.hud { position: absolute; z-index: 2; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); font-variant-numeric: tabular-nums; line-height: 1.3; }
.hud.tl { top: calc(96px + env(safe-area-inset-top, 0px)); left: var(--edge); }
.hud.tr { top: calc(96px + env(safe-area-inset-top, 0px)); right: var(--edge); }
.hud.bl { bottom: 28px; left: var(--edge); }
.hud.br { bottom: 28px; right: var(--edge); }
/* the two bottom labels are too long to share one line on a phone: stack them */
@media (max-width: 760px) { .hud.bl { bottom: 50px; } .hud.tl, .hud.tr { top: calc(154px + env(safe-area-inset-top, 0px)); } }

/* ---------- light block: second statement and the equipment rail ---------- */
.light { background: var(--paper); color-scheme: light; }
.light .eyebrow { color: var(--pristine-blue-deep); }
.light .say { color: var(--charcoal); }
.light .say .w { color: var(--mist); }
.light .say .w.on { color: var(--charcoal); }

.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 8px var(--edge) 40px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.card { flex: 0 0 min(78vw, 320px); scroll-snap-align: start; background: var(--white); border: 1px solid var(--mist); border-radius: 8px; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card .ph { height: 200px; display: grid; place-items: center; background: var(--white); }
.card .ph img { max-height: 170px; width: auto; height: auto; max-width: 100%; }
.card h3 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; color: var(--charcoal); }
.card .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--slate); border-top: 1px solid var(--mist); padding-top: 12px; font-variant-numeric: tabular-nums; }
.card .meta--b { border: 0; padding: 0; }
.card .meta b { color: var(--charcoal); font-weight: 500; }
.card a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--pristine-blue-deep); }
.card a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* the photo and the name open that range's page */
.card a.ph { display: grid; }
.card h3 a { font: inherit; color: inherit; }
.card h3 a:hover { color: var(--pristine-blue-deep); text-decoration: none; }
.rail-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-bottom: clamp(56px, 9vh, 96px); color: var(--slate); font-size: 15px; }

/* ---------- band: supplied, installed, serviced ---------- */
.band { background: var(--ink); color: var(--white); padding-block: clamp(64px, 10vh, 120px); }
.band .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.band h2 { font-size: clamp(34px, 5.4vw, 76px); font-weight: 600; line-height: .98; letter-spacing: -.02em; text-transform: uppercase; max-width: 6.2em; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.band li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--slate); font-size: 17px; }
.band li:last-child { border-bottom: 1px solid var(--slate); }
.band li i { font-style: normal; font-weight: 500; color: var(--steel); font-size: 14px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.band li span b { display: block; font-weight: 500; color: var(--white); }
.band li span em { display: block; font-style: normal; color: var(--mist); font-size: 15px; }
@media (max-width: 860px) { .band .grid { grid-template-columns: 1fr; } }

/* ---------- survey ---------- */
.survey { padding-block: clamp(72px, 12vh, 140px); text-align: center; }
.survey h2 { font-size: clamp(34px, 6vw, 88px); font-weight: 600; line-height: .96; letter-spacing: -.02em; text-transform: uppercase; color: var(--white); margin: 0 auto 22px; max-width: 8em; }
.survey > p { margin: 0 auto 32px; max-width: 48ch; color: var(--mist); font-size: 18px; }
.survey .ctas { justify-content: center; }
.form { max-width: 720px; margin: 0 auto; text-align: left; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.field { display: block; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field span { display: block; font-size: 13px; font-weight: 500; color: var(--mist); margin-bottom: 6px; }
.field input, .field textarea { display: block; width: 100%; background: var(--graphite); border: 1px solid var(--slate); border-radius: 4px; color: var(--white); font: 400 16px/1.4 var(--font); padding: 0 14px; height: 48px; -webkit-appearance: none; appearance: none; transition: border-color .2s; }
.field textarea { height: auto; min-height: 112px; padding: 12px 14px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--steel); opacity: 1; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--pristine-blue-light); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--pristine-blue-light); outline-offset: 1px; }
.survey a:not(.btn) { color: var(--pristine-blue-light); }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.survey .num { font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: .02em; color: var(--white); margin-top: 30px; font-variant-numeric: tabular-nums; }
.survey .num small { display: block; font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-top: 6px; }

/* the footer is the shared site footer (chrome.css), written by _tools/site_chrome.py */

/* ---------- reduced motion: no crossfade, words shown at once ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chap { transition: none; transform: none; }
  .say .w { transition: none; }
  .field input, .field textarea { transition: none; }
}
